Skip to content

Commit

Permalink
deploy: update dist v1.9.101
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlassian Bamboo committed Nov 30, 2023
1 parent 4d6350d commit 223b8a3
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.9.96
version=1.9.101
1 change: 1 addition & 0 deletions dist/redirect-files/googletagservices-gpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
setCookieOptions: noopThis,
setForceSafeFrame: noopThis,
setLocation: noopThis,
setPrivacySettings: noopThis,
setPublisherProvidedId: noopThis,
setRequestNonPersonalizedAds: noopThis,
setSafeFrameConfig: noopThis,
Expand Down
5 changes: 4 additions & 1 deletion dist/redirects.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/redirects.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# AdGuard Scriptlets (Redirects Source)
# Version 1.9.96
# Version 1.9.101
#
- title: 1x1-transparent.gif
added: v1.0.4
Expand Down Expand Up @@ -127,6 +127,8 @@
```adblock
||example.org/geo/location$xmlhttprequest,redirect=noopjson
```
aliases:
- noop.json
file: noopjson.json
contentType: application/json
content: '{}'
Expand Down Expand Up @@ -2507,6 +2509,7 @@
setCookieOptions: noopThis,
setForceSafeFrame: noopThis,
setLocation: noopThis,
setPrivacySettings: noopThis,
setPublisherProvidedId: noopThis,
setRequestNonPersonalizedAds: noopThis,
setSafeFrameConfig: noopThis,
Expand Down
8 changes: 4 additions & 4 deletions dist/scriptlets.corelibs.json

Large diffs are not rendered by default.

73 changes: 70 additions & 3 deletions dist/scriptlets.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* AdGuard Scriptlets
* Version 1.9.96
* Version 1.9.101
*/

(function () {
Expand Down Expand Up @@ -1184,6 +1184,23 @@
}
});

// In the case if responseType is opaque
// mock response' body, status & statusText to avoid adb checks
// https://github.com/AdguardTeam/Scriptlets/issues/364
if (responseType === 'opaque') {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ''
}
});
}

// eslint-disable-next-line consistent-return
return Promise.resolve(response);
};
Expand Down Expand Up @@ -6402,6 +6419,7 @@
* defaults to `emptyObj`. Possible values:
* - `emptyObj` — empty object
* - `emptyArr` — empty array
* - `emptyStr` — empty string
* - `responseType` — optional, string for defining response type,
* original response type is used if not specified. Possible values:
* - `default`
Expand Down Expand Up @@ -6478,6 +6496,8 @@
strResponseBody = '{}';
} else if (responseBody === 'emptyArr') {
strResponseBody = '[]';
} else if (responseBody === 'emptyStr') {
strResponseBody = '';
} else {
logMessage(source, "Invalid responseBody parameter: '".concat(responseBody, "'"));
return;
Expand Down Expand Up @@ -10158,7 +10178,8 @@
ubo: 'noop.js',
abp: 'blank-js'
}, {
adg: 'noopjson'
adg: 'noopjson',
ubo: 'noop.json'
}, {
adg: 'nooptext',
ubo: 'noop.txt',
Expand Down Expand Up @@ -11999,6 +12020,7 @@
setCookieOptions: noopThis,
setForceSafeFrame: noopThis,
setLocation: noopThis,
setPrivacySettings: noopThis,
setPublisherProvidedId: noopThis,
setRequestNonPersonalizedAds: noopThis,
setSafeFrameConfig: noopThis,
Expand Down Expand Up @@ -16895,6 +16917,7 @@
"noop.js": "noopjs.js",
"blank-js": "noopjs.js",
noopjson: "noopjson.json",
"noop.json": "noopjson.json",
nooptext: "nooptext.js",
"noop.txt": "nooptext.js",
"blank-text": "nooptext.js",
Expand Down Expand Up @@ -17044,6 +17067,8 @@
convertAdgRedirectToUbo
};

var version = "1.9.101";

function abortCurrentInlineScript(source, args) {
function abortCurrentInlineScript(source, property, search) {
var searchRegexp = toRegExp(search);
Expand Down Expand Up @@ -20841,6 +20866,19 @@
value: responseType
}
});
if (responseType === "opaque") {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ""
}
});
}
return Promise.resolve(response);
}
var updatedArgs = args ? [].concat(source).concat(args) : [source];
Expand Down Expand Up @@ -21757,6 +21795,8 @@
strResponseBody = "{}";
} else if (responseBody === "emptyArr") {
strResponseBody = "[]";
} else if (responseBody === "emptyStr") {
strResponseBody = "";
} else {
logMessage(source, "Invalid responseBody parameter: '".concat(responseBody, "'"));
return;
Expand Down Expand Up @@ -21922,6 +21962,19 @@
value: responseType
}
});
if (responseType === "opaque") {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ""
}
});
}
return Promise.resolve(response);
}
function modifyResponse(origResponse) {
Expand Down Expand Up @@ -24788,6 +24841,19 @@
value: responseType
}
});
if (responseType === "opaque") {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ""
}
});
}
return Promise.resolve(response);
}
function getPropertyInChain(base, chain) {
Expand Down Expand Up @@ -28606,7 +28672,8 @@
convertAbpToAdg: convertAbpSnippetToAdg,
convertScriptletToAdg,
convertAdgToUbo: convertAdgScriptletToUbo,
redirects
redirects,
SCRIPTLETS_VERSION: version
};
}();

Expand Down
5 changes: 5 additions & 0 deletions dist/umd/scriptlets.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
declare module '@adguard/scriptlets' {

/**
* Scriptlets version
*/
const SCRIPTLETS_VERSION: string;

/**
* Scriptlet properties
*/
Expand Down
73 changes: 70 additions & 3 deletions dist/umd/scriptlets.umd.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* AdGuard Scriptlets
* Version 1.9.96
* Version 1.9.101
*/

(function (factory) {
Expand Down Expand Up @@ -1186,6 +1186,23 @@
}
});

// In the case if responseType is opaque
// mock response' body, status & statusText to avoid adb checks
// https://github.com/AdguardTeam/Scriptlets/issues/364
if (responseType === 'opaque') {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ''
}
});
}

// eslint-disable-next-line consistent-return
return Promise.resolve(response);
};
Expand Down Expand Up @@ -6404,6 +6421,7 @@
* defaults to `emptyObj`. Possible values:
* - `emptyObj` — empty object
* - `emptyArr` — empty array
* - `emptyStr` — empty string
* - `responseType` — optional, string for defining response type,
* original response type is used if not specified. Possible values:
* - `default`
Expand Down Expand Up @@ -6480,6 +6498,8 @@
strResponseBody = '{}';
} else if (responseBody === 'emptyArr') {
strResponseBody = '[]';
} else if (responseBody === 'emptyStr') {
strResponseBody = '';
} else {
logMessage(source, "Invalid responseBody parameter: '".concat(responseBody, "'"));
return;
Expand Down Expand Up @@ -10160,7 +10180,8 @@
ubo: 'noop.js',
abp: 'blank-js'
}, {
adg: 'noopjson'
adg: 'noopjson',
ubo: 'noop.json'
}, {
adg: 'nooptext',
ubo: 'noop.txt',
Expand Down Expand Up @@ -12001,6 +12022,7 @@
setCookieOptions: noopThis,
setForceSafeFrame: noopThis,
setLocation: noopThis,
setPrivacySettings: noopThis,
setPublisherProvidedId: noopThis,
setRequestNonPersonalizedAds: noopThis,
setSafeFrameConfig: noopThis,
Expand Down Expand Up @@ -16897,6 +16919,7 @@
"noop.js": "noopjs.js",
"blank-js": "noopjs.js",
noopjson: "noopjson.json",
"noop.json": "noopjson.json",
nooptext: "nooptext.js",
"noop.txt": "nooptext.js",
"blank-text": "nooptext.js",
Expand Down Expand Up @@ -17046,6 +17069,8 @@
convertAdgRedirectToUbo
};

var version = "1.9.101";

function abortCurrentInlineScript(source, args) {
function abortCurrentInlineScript(source, property, search) {
var searchRegexp = toRegExp(search);
Expand Down Expand Up @@ -20843,6 +20868,19 @@
value: responseType
}
});
if (responseType === "opaque") {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ""
}
});
}
return Promise.resolve(response);
}
var updatedArgs = args ? [].concat(source).concat(args) : [source];
Expand Down Expand Up @@ -21759,6 +21797,8 @@
strResponseBody = "{}";
} else if (responseBody === "emptyArr") {
strResponseBody = "[]";
} else if (responseBody === "emptyStr") {
strResponseBody = "";
} else {
logMessage(source, "Invalid responseBody parameter: '".concat(responseBody, "'"));
return;
Expand Down Expand Up @@ -21924,6 +21964,19 @@
value: responseType
}
});
if (responseType === "opaque") {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ""
}
});
}
return Promise.resolve(response);
}
function modifyResponse(origResponse) {
Expand Down Expand Up @@ -24790,6 +24843,19 @@
value: responseType
}
});
if (responseType === "opaque") {
Object.defineProperties(response, {
body: {
value: null
},
status: {
value: 0
},
statusText: {
value: ""
}
});
}
return Promise.resolve(response);
}
function getPropertyInChain(base, chain) {
Expand Down Expand Up @@ -28608,7 +28674,8 @@
convertAbpToAdg: convertAbpSnippetToAdg,
convertScriptletToAdg,
convertAdgToUbo: convertAdgScriptletToUbo,
redirects
redirects,
SCRIPTLETS_VERSION: version
};
}();

Expand Down
1 change: 1 addition & 0 deletions wiki/about-scriptlets.md
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,7 @@ example.org#%#//scriptlet('prevent-fetch'[, propsToMatch[, responseBody[, respon
defaults to `emptyObj`. Possible values:
- `emptyObj` — empty object
- `emptyArr` — empty array
- `emptyStr` — empty string
- `responseType` — optional, string for defining response type,
original response type is used if not specified. Possible values:
- `default`
Expand Down

0 comments on commit 223b8a3

Please sign in to comment.