-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in ADGUARD-FILTERS/scriptlets from fix/AG-16980 to release/v1.7 Squashed commit of the following: commit 3443834 Author: Stanislav A <[email protected]> Date: Fri Nov 18 19:33:19 2022 +0300 fix misc commit cfd9486 Author: Stanislav A <[email protected]> Date: Fri Nov 18 17:41:33 2022 +0300 improve jsdoc for forced parameter commit 295c12b Author: Stanislav A <[email protected]> Date: Fri Nov 18 17:22:43 2022 +0300 update description for 'forced' arg of logMessage commit 03cba16 Author: Stanislav A <[email protected]> Date: Fri Nov 18 17:11:03 2022 +0300 add default value for logMessage 'forced' arg commit 4f80768 Author: Stanislav A <[email protected]> Date: Fri Nov 18 14:15:43 2022 +0300 add Source typedef commit 2056cb7 Author: Stanislav A <[email protected]> Date: Thu Nov 17 20:20:46 2022 +0300 redo logger & swap everywhere commit fa95a0b Merge: cb86ba7 48bd360 Author: Stanislav A <[email protected]> Date: Thu Nov 17 15:59:46 2022 +0300 resolve conflicts commit cb86ba7 Merge: 3cce20b ef618b3 Author: Stanislav A <[email protected]> Date: Wed Nov 16 19:09:40 2022 +0300 Merge branch 'release/v1.7' into fix/AG-16980 commit 3cce20b Author: Stanislav A <[email protected]> Date: Wed Nov 16 19:09:06 2022 +0300 redo typo commit 117da17 Author: Stanislav A <[email protected]> Date: Wed Nov 16 19:08:31 2022 +0300 remove legacy eslnit no-console directives commit a2b90e5 Author: Stanislav A <[email protected]> Date: Wed Nov 16 19:06:02 2022 +0300 add logVerbose to getLimitedStorageItemValue commit cb97abe Author: Stanislav A <[email protected]> Date: Wed Nov 16 14:21:58 2022 +0300 fix console.error calls commit 3ae7455 Author: Stanislav A <[email protected]> Date: Wed Nov 16 14:16:21 2022 +0300 fix logging in ga & log-on-stack-trace commit 4d2cb8f Author: Stanislav A <[email protected]> Date: Tue Nov 15 14:21:51 2022 +0300 fix jsdocs commit c7b0de8 Author: Stanislav A <[email protected]> Date: Tue Nov 15 13:51:15 2022 +0300 fix throttle imports commit f18dc3a Author: Stanislav A <[email protected]> Date: Fri Nov 11 15:43:00 2022 +0300 add getLimitedStorageItemValue helper commit e411fe3 Author: Stanislav A <[email protected]> Date: Fri Nov 11 15:23:29 2022 +0300 remove getWildcardSymbol helper commit dfd8ce1 Author: Stanislav A <[email protected]> Date: Fri Nov 11 15:07:46 2022 +0300 add log helpers & refactor logging in scriptlets commit 959fe50 Author: Stanislav A <[email protected]> Date: Fri Nov 11 12:35:41 2022 +0300 sort index commit e1b8933 Author: Stanislav A <[email protected]> Date: Thu Nov 10 19:29:09 2022 +0300 fix logging at trusted-replace-fetch-response ... and 6 more commits
- Loading branch information
1 parent
48bd360
commit 4ad761d
Showing
59 changed files
with
536 additions
and
482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
/** | ||
* This file must export all used dependencies | ||
*/ | ||
export * from './constants'; | ||
export * from './random-id'; | ||
export * from './set-property-access'; | ||
export * from './get-property-in-chain'; | ||
export * from './get-wildcard-property-in-chain'; | ||
export * from './string-utils'; | ||
export * from './create-on-error-handler'; | ||
export * from './noop'; | ||
export * from './hit'; | ||
export * from './observer'; | ||
export * from './match-stack'; | ||
export * from './script-source-utils'; | ||
export * from './open-shadow-dom-utils'; | ||
|
||
export * from './add-event-listener-utils'; | ||
export * from './adjust-set-utils'; | ||
export * from './array-utils'; | ||
export * from './cookie-utils'; | ||
export * from './noop-utils'; | ||
export * from './number-utils'; | ||
export * from './adjust-set-utils'; | ||
export * from './request-utils'; | ||
export * from './object-utils'; | ||
export * from './prevent-window-open-utils'; | ||
export * from './add-event-listener-utils'; | ||
export * from './script-source-utils'; | ||
export * from './open-shadow-dom-utils'; | ||
export * from './prevent-utils'; | ||
export * from './prevent-window-open-utils'; | ||
export * from './regexp-utils'; | ||
export * from './random-response'; | ||
export * from './request-utils'; | ||
export * from './storage-utils'; | ||
export * from './string-utils'; | ||
|
||
export * from './log-message'; | ||
export * from './create-on-error-handler'; | ||
export * from './get-descriptor-addon'; | ||
export * from './parse-flags'; | ||
export * from './get-property-in-chain'; | ||
export * from './get-wildcard-property-in-chain'; | ||
export * from './hit'; | ||
export * from './match-request-props'; | ||
export * from './storage-utils'; | ||
export * from './match-stack'; | ||
export * from './observer'; | ||
export * from './parse-flags'; | ||
export * from './parse-keyword-value'; | ||
export * from './random-id'; | ||
export * from './throttle'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @typedef { import('../scriptlets/index').Source } Source | ||
*/ | ||
|
||
/** | ||
* Conditionally logs message to console. | ||
* Convention is to log messages by source.verbose if such log | ||
* is not a part of scriptlet's functionality, eg on invalid input, | ||
* and use 'forced' argument otherwise. | ||
* @param {Source} source required | ||
* @param {string} message required, message to log | ||
* @param {boolean} [forced=false] to log message unconditionally | ||
*/ | ||
export const logMessage = (source, message, forced = false) => { | ||
if (forced || source.verbose) { | ||
// eslint-disable-next-line no-console | ||
console.log(`${source.name}: ${message}`); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { | ||
noopFunc, | ||
trueFunc, | ||
} from './noop'; | ||
} from './noop-utils'; | ||
import { | ||
startsWith, | ||
endsWith, | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.