@digipair/skill-web 0.33.0 → 0.33.1
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 +6 -4
- package/index.esm.js +11 -9
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -27390,7 +27390,9 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27390
27390
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27391
27391
|
if (alias) {
|
|
27392
27392
|
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
27393
|
-
settings
|
|
27393
|
+
settings: _extends({}, settings, {
|
|
27394
|
+
library: settings.library.substring(alias.name.length + 1)
|
|
27395
|
+
})
|
|
27394
27396
|
});
|
|
27395
27397
|
}
|
|
27396
27398
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
@@ -27601,10 +27603,10 @@ let WebService = class WebService {
|
|
|
27601
27603
|
return html;
|
|
27602
27604
|
}
|
|
27603
27605
|
async javascript(params, _pinsSettingsList, context) {
|
|
27604
|
-
const { execute } = params;
|
|
27605
|
-
const
|
|
27606
|
+
const { execute, baseUrl = 'https://cdn.jsdelivr.net/npm' } = params;
|
|
27607
|
+
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
27606
27608
|
const js = `
|
|
27607
|
-
import { executePinsList } from '${
|
|
27609
|
+
import { executePinsList } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
27608
27610
|
|
|
27609
27611
|
const context = {
|
|
27610
27612
|
variables: ${JSON.stringify(context.variables || {})},
|
package/index.esm.js
CHANGED
|
@@ -23489,14 +23489,14 @@ function indent(str, spaces) {
|
|
|
23489
23489
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23490
23490
|
// match is required
|
|
23491
23491
|
if (!match) {
|
|
23492
|
-
return
|
|
23492
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23493
23493
|
v: nextMatch1
|
|
23494
23494
|
};
|
|
23495
23495
|
}
|
|
23496
23496
|
var token = match.token, offset = match.offset;
|
|
23497
23497
|
i1 += offset;
|
|
23498
23498
|
if (token === " ") {
|
|
23499
|
-
return
|
|
23499
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23500
23500
|
}
|
|
23501
23501
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23502
23502
|
token
|
|
@@ -23515,7 +23515,7 @@ function indent(str, spaces) {
|
|
|
23515
23515
|
if (contextKeys.some(function(el) {
|
|
23516
23516
|
return el.startsWith(name);
|
|
23517
23517
|
})) {
|
|
23518
|
-
return
|
|
23518
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23519
23519
|
}
|
|
23520
23520
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23521
23521
|
return el === name;
|
|
@@ -23534,9 +23534,9 @@ function indent(str, spaces) {
|
|
|
23534
23534
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23535
23535
|
return el.startsWith(name);
|
|
23536
23536
|
})) {
|
|
23537
|
-
return
|
|
23537
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
|
23538
23538
|
}
|
|
23539
|
-
return
|
|
23539
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
|
23540
23540
|
v: nextMatch1
|
|
23541
23541
|
};
|
|
23542
23542
|
};
|
|
@@ -27368,7 +27368,9 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
|
27368
27368
|
const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
27369
27369
|
if (alias) {
|
|
27370
27370
|
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
27371
|
-
settings
|
|
27371
|
+
settings: _extends({}, settings, {
|
|
27372
|
+
library: settings.library.substring(alias.name.length + 1)
|
|
27373
|
+
})
|
|
27372
27374
|
});
|
|
27373
27375
|
}
|
|
27374
27376
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
@@ -27579,10 +27581,10 @@ let WebService = class WebService {
|
|
|
27579
27581
|
return html;
|
|
27580
27582
|
}
|
|
27581
27583
|
async javascript(params, _pinsSettingsList, context) {
|
|
27582
|
-
const { execute } = params;
|
|
27583
|
-
const
|
|
27584
|
+
const { execute, baseUrl = 'https://cdn.jsdelivr.net/npm' } = params;
|
|
27585
|
+
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
27584
27586
|
const js = `
|
|
27585
|
-
import { executePinsList } from '${
|
|
27587
|
+
import { executePinsList } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
27586
27588
|
|
|
27587
27589
|
const context = {
|
|
27588
27590
|
variables: ${JSON.stringify(context.variables || {})},
|