Skip to content

Commit

Permalink
deploy: update dist v1.7.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlassian Bamboo committed Dec 26, 2022
1 parent 67f240a commit 88c982d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=1.7.19
version=1.7.20
2 changes: 1 addition & 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.7.19
# Version 1.7.20
#
- title: 1x1-transparent.gif
description: |-
Expand Down
2 changes: 1 addition & 1 deletion dist/scriptlets.corelibs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.7.19",
"version": "1.7.20",
"scriptlets": [
{
"names": [
Expand Down
20 changes: 18 additions & 2 deletions dist/scriptlets.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* AdGuard Scriptlets
* Version 1.7.19
* Version 1.7.20
*/

(function () {
Expand Down Expand Up @@ -13518,6 +13518,7 @@
* @property {string} comment
* @property {string} content
* @property {string} contentType
* @property {string} file
* @property {boolean} [isBlocking]
* @property {string} [sha]
*/
Expand Down Expand Up @@ -13545,7 +13546,7 @@
/**
* Returns redirect source object
* @param {string} title
* @return {Redirect}
* @return {Redirect|undefined} Found redirect source object, or `undefined` if not found.
*/
createClass(Redirects, [{
key: "getRedirect",
Expand All @@ -13567,6 +13568,21 @@
return aliases.indexOf(title) > -1;
});
}
/**
* Checks if redirect is blocking like click2load.html
* @param {string} title Title of the redirect.
* @returns True if redirect is blocking otherwise returns `false` even if redirect name is
* unknown.
*/
}, {
key: "isBlocking",
value: function isBlocking(title) {
var redirect = this.redirects[title];
if (redirect) {
return !!redirect.isBlocking;
}
return false;
}
}]);
return Redirects;
}();
Expand Down
8 changes: 7 additions & 1 deletion dist/umd/scriptlets.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ declare module '@adguard/scriptlets' {
*/
contentType: string;

/**
* Filename of the redirect.
*/
file: string;

/**
* If it's new type of redirects, i.e. click2load
*/
Expand All @@ -81,6 +86,7 @@ declare module '@adguard/scriptlets' {
class Redirects {
constructor(rawYaml: string);
getRedirect(title: string): Redirect;
isBlocking(title: string): boolean;
}

/**
Expand Down Expand Up @@ -117,7 +123,7 @@ declare module '@adguard/scriptlets' {
/**
* Object with redirects titles in the keys and RedirectSources
*/
Redirects: Redirects;
Redirects: typeof Redirects;

/**
* Returns filename with extension for requested alias
Expand Down
20 changes: 18 additions & 2 deletions dist/umd/scriptlets.umd.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* AdGuard Scriptlets
* Version 1.7.19
* Version 1.7.20
*/

(function (factory) {
Expand Down Expand Up @@ -13520,6 +13520,7 @@
* @property {string} comment
* @property {string} content
* @property {string} contentType
* @property {string} file
* @property {boolean} [isBlocking]
* @property {string} [sha]
*/
Expand Down Expand Up @@ -13547,7 +13548,7 @@
/**
* Returns redirect source object
* @param {string} title
* @return {Redirect}
* @return {Redirect|undefined} Found redirect source object, or `undefined` if not found.
*/
createClass(Redirects, [{
key: "getRedirect",
Expand All @@ -13569,6 +13570,21 @@
return aliases.indexOf(title) > -1;
});
}
/**
* Checks if redirect is blocking like click2load.html
* @param {string} title Title of the redirect.
* @returns True if redirect is blocking otherwise returns `false` even if redirect name is
* unknown.
*/
}, {
key: "isBlocking",
value: function isBlocking(title) {
var redirect = this.redirects[title];
if (redirect) {
return !!redirect.isBlocking;
}
return false;
}
}]);
return Redirects;
}();
Expand Down

0 comments on commit 88c982d

Please sign in to comment.