@digipair/skill-cron 0.15.3 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs.js +7 -6
- package/index.esm.js +7 -6
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -23517,14 +23517,14 @@ function indent(str, spaces) {
|
|
23517
23517
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23518
23518
|
// match is required
|
23519
23519
|
if (!match) {
|
23520
|
-
return
|
23520
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23521
23521
|
v: nextMatch1
|
23522
23522
|
};
|
23523
23523
|
}
|
23524
23524
|
var token = match.token, offset = match.offset;
|
23525
23525
|
i1 += offset;
|
23526
23526
|
if (token === " ") {
|
23527
|
-
return
|
23527
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23528
23528
|
}
|
23529
23529
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23530
23530
|
token
|
@@ -23543,7 +23543,7 @@ function indent(str, spaces) {
|
|
23543
23543
|
if (contextKeys.some(function(el) {
|
23544
23544
|
return el.startsWith(name);
|
23545
23545
|
})) {
|
23546
|
-
return
|
23546
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23547
23547
|
}
|
23548
23548
|
if (dateTimeIdentifiers.some(function(el) {
|
23549
23549
|
return el === name;
|
@@ -23562,9 +23562,9 @@ function indent(str, spaces) {
|
|
23562
23562
|
if (dateTimeIdentifiers.some(function(el) {
|
23563
23563
|
return el.startsWith(name);
|
23564
23564
|
})) {
|
23565
|
-
return
|
23565
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
23566
23566
|
}
|
23567
|
-
return
|
23567
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
23568
23568
|
v: nextMatch1
|
23569
23569
|
};
|
23570
23570
|
};
|
@@ -27355,6 +27355,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
|
|
27355
27355
|
LIBRARIES: {},
|
27356
27356
|
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
27357
27357
|
};
|
27358
|
+
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
27358
27359
|
const isPinsSettings = (value)=>{
|
27359
27360
|
return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
|
27360
27361
|
};
|
@@ -27411,7 +27412,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27411
27412
|
return results;
|
27412
27413
|
}
|
27413
27414
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
27414
|
-
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
27415
|
+
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
27415
27416
|
const pins = library == null ? void 0 : library[settings.element];
|
27416
27417
|
if (!pins) {
|
27417
27418
|
throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
|
package/index.esm.js
CHANGED
@@ -23491,14 +23491,14 @@ function indent(str, spaces) {
|
|
23491
23491
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23492
23492
|
// match is required
|
23493
23493
|
if (!match) {
|
23494
|
-
return
|
23494
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
23495
23495
|
v: nextMatch1
|
23496
23496
|
};
|
23497
23497
|
}
|
23498
23498
|
var token = match.token, offset = match.offset;
|
23499
23499
|
i1 += offset;
|
23500
23500
|
if (token === " ") {
|
23501
|
-
return
|
23501
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
23502
23502
|
}
|
23503
23503
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23504
23504
|
token
|
@@ -23517,7 +23517,7 @@ function indent(str, spaces) {
|
|
23517
23517
|
if (contextKeys.some(function(el) {
|
23518
23518
|
return el.startsWith(name);
|
23519
23519
|
})) {
|
23520
|
-
return
|
23520
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
23521
23521
|
}
|
23522
23522
|
if (dateTimeIdentifiers.some(function(el) {
|
23523
23523
|
return el === name;
|
@@ -23536,9 +23536,9 @@ function indent(str, spaces) {
|
|
23536
23536
|
if (dateTimeIdentifiers.some(function(el) {
|
23537
23537
|
return el.startsWith(name);
|
23538
23538
|
})) {
|
23539
|
-
return
|
23539
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
23540
23540
|
}
|
23541
|
-
return
|
23541
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
23542
23542
|
v: nextMatch1
|
23543
23543
|
};
|
23544
23544
|
};
|
@@ -27329,6 +27329,7 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
|
|
27329
27329
|
LIBRARIES: {},
|
27330
27330
|
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
27331
27331
|
};
|
27332
|
+
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
27332
27333
|
const isPinsSettings = (value)=>{
|
27333
27334
|
return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
|
27334
27335
|
};
|
@@ -27385,7 +27386,7 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
27385
27386
|
return results;
|
27386
27387
|
}
|
27387
27388
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
27388
|
-
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(`${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
27389
|
+
const library = _config.LIBRARIES[settings.library] || (typeof window === 'undefined' ? require(settings.library) : await import(isRemoteVersion.test(version) ? `${version}` : `${_config.BASE_URL}/${settings.library}@${version}/index.esm.js`));
|
27389
27390
|
const pins = library == null ? void 0 : library[settings.element];
|
27390
27391
|
if (!pins) {
|
27391
27392
|
throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
|