@digipair/skill-html 0.60.7 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +7 -8
- package/index.esm.js +2 -3
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23923,14 +23923,14 @@ function indent(str, spaces) {
|
|
|
23923
23923
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23924
23924
|
// match is required
|
|
23925
23925
|
if (!match) {
|
|
23926
|
-
return
|
|
23926
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23927
23927
|
v: nextMatch1
|
|
23928
23928
|
};
|
|
23929
23929
|
}
|
|
23930
23930
|
var token = match.token, offset = match.offset;
|
|
23931
23931
|
i1 += offset;
|
|
23932
23932
|
if (token === " ") {
|
|
23933
|
-
return
|
|
23933
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23934
23934
|
}
|
|
23935
23935
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23936
23936
|
token
|
|
@@ -23949,7 +23949,7 @@ function indent(str, spaces) {
|
|
|
23949
23949
|
if (contextKeys.some(function(el) {
|
|
23950
23950
|
return el.startsWith(name);
|
|
23951
23951
|
})) {
|
|
23952
|
-
return
|
|
23952
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23953
23953
|
}
|
|
23954
23954
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23955
23955
|
return el === name;
|
|
@@ -23968,9 +23968,9 @@ function indent(str, spaces) {
|
|
|
23968
23968
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23969
23969
|
return el.startsWith(name);
|
|
23970
23970
|
})) {
|
|
23971
|
-
return
|
|
23971
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23972
23972
|
}
|
|
23973
|
-
return
|
|
23973
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23974
23974
|
v: nextMatch1
|
|
23975
23975
|
};
|
|
23976
23976
|
};
|
|
@@ -28039,13 +28039,12 @@ let HtmlService = class HtmlService {
|
|
|
28039
28039
|
async parseHtml(params, _pinsSettingsList, context) {
|
|
28040
28040
|
const { html, execute = [] } = params;
|
|
28041
28041
|
const dom = new jsdom.JSDOM(html);
|
|
28042
|
-
const result = await executePinsList(execute, {
|
|
28043
|
-
context,
|
|
28042
|
+
const result = await executePinsList(execute, _extends({}, context, {
|
|
28044
28043
|
document: {
|
|
28045
28044
|
querySelector: (selector)=>this.querySelector(selector, dom.window.document),
|
|
28046
28045
|
querySelectorAll: (selector)=>this.querySelectorAll(selector, dom.window.document)
|
|
28047
28046
|
}
|
|
28048
|
-
});
|
|
28047
|
+
}));
|
|
28049
28048
|
return result;
|
|
28050
28049
|
}
|
|
28051
28050
|
querySelector(selector, parent) {
|
package/index.esm.js
CHANGED
|
@@ -28017,13 +28017,12 @@ let HtmlService = class HtmlService {
|
|
|
28017
28017
|
async parseHtml(params, _pinsSettingsList, context) {
|
|
28018
28018
|
const { html, execute = [] } = params;
|
|
28019
28019
|
const dom = new JSDOM(html);
|
|
28020
|
-
const result = await executePinsList(execute, {
|
|
28021
|
-
context,
|
|
28020
|
+
const result = await executePinsList(execute, _extends({}, context, {
|
|
28022
28021
|
document: {
|
|
28023
28022
|
querySelector: (selector)=>this.querySelector(selector, dom.window.document),
|
|
28024
28023
|
querySelectorAll: (selector)=>this.querySelectorAll(selector, dom.window.document)
|
|
28025
28024
|
}
|
|
28026
|
-
});
|
|
28025
|
+
}));
|
|
28027
28026
|
return result;
|
|
28028
28027
|
}
|
|
28029
28028
|
querySelector(selector, parent) {
|