@digipair/skill-web 0.8.6 → 0.8.8
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 +9 -8
- package/index.esm.js +9 -8
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -23510,14 +23510,14 @@ function indent(str, spaces) {
|
|
|
23510
23510
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23511
23511
|
// match is required
|
|
23512
23512
|
if (!match) {
|
|
23513
|
-
return
|
|
23513
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23514
23514
|
v: nextMatch1
|
|
23515
23515
|
};
|
|
23516
23516
|
}
|
|
23517
23517
|
var token = match.token, offset = match.offset;
|
|
23518
23518
|
i1 += offset;
|
|
23519
23519
|
if (token === " ") {
|
|
23520
|
-
return
|
|
23520
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23521
23521
|
}
|
|
23522
23522
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23523
23523
|
token
|
|
@@ -23536,7 +23536,7 @@ function indent(str, spaces) {
|
|
|
23536
23536
|
if (contextKeys.some(function(el) {
|
|
23537
23537
|
return el.startsWith(name);
|
|
23538
23538
|
})) {
|
|
23539
|
-
return
|
|
23539
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23540
23540
|
}
|
|
23541
23541
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23542
23542
|
return el === name;
|
|
@@ -23555,9 +23555,9 @@ function indent(str, spaces) {
|
|
|
23555
23555
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23556
23556
|
return el.startsWith(name);
|
|
23557
23557
|
})) {
|
|
23558
|
-
return
|
|
23558
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
|
|
23559
23559
|
}
|
|
23560
|
-
return
|
|
23560
|
+
return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
|
|
23561
23561
|
v: nextMatch1
|
|
23562
23562
|
};
|
|
23563
23563
|
};
|
|
@@ -27483,7 +27483,7 @@ let WebService = class WebService {
|
|
|
27483
27483
|
});
|
|
27484
27484
|
return result;
|
|
27485
27485
|
}
|
|
27486
|
-
findFactoryPinsSettings(path,
|
|
27486
|
+
findFactoryPinsSettings(path, item) {
|
|
27487
27487
|
const pinsSettings = path.split('.').reduce((acc, key)=>{
|
|
27488
27488
|
if (key.indexOf('[') !== -1) {
|
|
27489
27489
|
const index = parseInt(key.match(/\d+/)[0]);
|
|
@@ -27491,7 +27491,7 @@ let WebService = class WebService {
|
|
|
27491
27491
|
}
|
|
27492
27492
|
return acc[key];
|
|
27493
27493
|
}, {
|
|
27494
|
-
|
|
27494
|
+
[path.split('[')[0]]: item
|
|
27495
27495
|
});
|
|
27496
27496
|
return pinsSettings.properties.execute;
|
|
27497
27497
|
}
|
|
@@ -27505,7 +27505,8 @@ let WebService = class WebService {
|
|
|
27505
27505
|
const engineVersion = libraries['@digipair/engine'] || 'latest';
|
|
27506
27506
|
const preparedData = {};
|
|
27507
27507
|
if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
|
|
27508
|
-
const
|
|
27508
|
+
const param = context.request.body.params.path.split('[')[0];
|
|
27509
|
+
const pinsSettingsList = this.findFactoryPinsSettings(context.request.body.params.path, params[param]);
|
|
27509
27510
|
return await executePinsList(pinsSettingsList, _extends({}, context.request.body.context, context));
|
|
27510
27511
|
}
|
|
27511
27512
|
await executePinsList(factoryInitialize, context);
|
package/index.esm.js
CHANGED
|
@@ -23488,14 +23488,14 @@ function indent(str, spaces) {
|
|
|
23488
23488
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23489
23489
|
// match is required
|
|
23490
23490
|
if (!match) {
|
|
23491
|
-
return tokens = tokens1,
|
|
23491
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23492
23492
|
v: nextMatch1
|
|
23493
23493
|
};
|
|
23494
23494
|
}
|
|
23495
23495
|
var token = match.token, offset = match.offset;
|
|
23496
23496
|
i1 += offset;
|
|
23497
23497
|
if (token === " ") {
|
|
23498
|
-
return tokens = tokens1,
|
|
23498
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23499
23499
|
}
|
|
23500
23500
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23501
23501
|
token
|
|
@@ -23514,7 +23514,7 @@ function indent(str, spaces) {
|
|
|
23514
23514
|
if (contextKeys.some(function(el) {
|
|
23515
23515
|
return el.startsWith(name);
|
|
23516
23516
|
})) {
|
|
23517
|
-
return tokens = tokens1,
|
|
23517
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23518
23518
|
}
|
|
23519
23519
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23520
23520
|
return el === name;
|
|
@@ -23533,9 +23533,9 @@ function indent(str, spaces) {
|
|
|
23533
23533
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23534
23534
|
return el.startsWith(name);
|
|
23535
23535
|
})) {
|
|
23536
|
-
return tokens = tokens1,
|
|
23536
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23537
23537
|
}
|
|
23538
|
-
return tokens = tokens1,
|
|
23538
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23539
23539
|
v: nextMatch1
|
|
23540
23540
|
};
|
|
23541
23541
|
};
|
|
@@ -27461,7 +27461,7 @@ let WebService = class WebService {
|
|
|
27461
27461
|
});
|
|
27462
27462
|
return result;
|
|
27463
27463
|
}
|
|
27464
|
-
findFactoryPinsSettings(path,
|
|
27464
|
+
findFactoryPinsSettings(path, item) {
|
|
27465
27465
|
const pinsSettings = path.split('.').reduce((acc, key)=>{
|
|
27466
27466
|
if (key.indexOf('[') !== -1) {
|
|
27467
27467
|
const index = parseInt(key.match(/\d+/)[0]);
|
|
@@ -27469,7 +27469,7 @@ let WebService = class WebService {
|
|
|
27469
27469
|
}
|
|
27470
27470
|
return acc[key];
|
|
27471
27471
|
}, {
|
|
27472
|
-
|
|
27472
|
+
[path.split('[')[0]]: item
|
|
27473
27473
|
});
|
|
27474
27474
|
return pinsSettings.properties.execute;
|
|
27475
27475
|
}
|
|
@@ -27483,7 +27483,8 @@ let WebService = class WebService {
|
|
|
27483
27483
|
const engineVersion = libraries['@digipair/engine'] || 'latest';
|
|
27484
27484
|
const preparedData = {};
|
|
27485
27485
|
if (context.request.method === 'POST' && ((_context_request_body = context.request.body) == null ? void 0 : _context_request_body.type) === 'DIGIPAIR_EXECUTE_FACTORY') {
|
|
27486
|
-
const
|
|
27486
|
+
const param = context.request.body.params.path.split('[')[0];
|
|
27487
|
+
const pinsSettingsList = this.findFactoryPinsSettings(context.request.body.params.path, params[param]);
|
|
27487
27488
|
return await executePinsList(pinsSettingsList, _extends({}, context.request.body.context, context));
|
|
27488
27489
|
}
|
|
27489
27490
|
await executePinsList(factoryInitialize, context);
|