@digipair/skill-vespa 0.18.8 → 0.18.10
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 +31 -20
- package/index.esm.js +26 -15
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -68122,14 +68122,14 @@ function indent(str, spaces) {
|
|
68122
68122
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
68123
68123
|
// match is required
|
68124
68124
|
if (!match) {
|
68125
|
-
return
|
68125
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
68126
68126
|
v: nextMatch1
|
68127
68127
|
};
|
68128
68128
|
}
|
68129
68129
|
var token = match.token, offset = match.offset;
|
68130
68130
|
i1 += offset;
|
68131
68131
|
if (token === " ") {
|
68132
|
-
return
|
68132
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
68133
68133
|
}
|
68134
68134
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
68135
68135
|
token
|
@@ -68148,7 +68148,7 @@ function indent(str, spaces) {
|
|
68148
68148
|
if (contextKeys.some(function(el) {
|
68149
68149
|
return el.startsWith(name);
|
68150
68150
|
})) {
|
68151
|
-
return
|
68151
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
68152
68152
|
}
|
68153
68153
|
if (dateTimeIdentifiers.some(function(el) {
|
68154
68154
|
return el === name;
|
@@ -68167,9 +68167,9 @@ function indent(str, spaces) {
|
|
68167
68167
|
if (dateTimeIdentifiers.some(function(el) {
|
68168
68168
|
return el.startsWith(name);
|
68169
68169
|
})) {
|
68170
|
-
return
|
68170
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
68171
68171
|
}
|
68172
|
-
return
|
68172
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
68173
68173
|
v: nextMatch1
|
68174
68174
|
};
|
68175
68175
|
};
|
@@ -71986,7 +71986,7 @@ const applyTemplate = (value, context)=>{
|
|
71986
71986
|
return result;
|
71987
71987
|
};
|
71988
71988
|
const executePins = async (settingsOrigin, context = {})=>{
|
71989
|
-
var _settings_conditions;
|
71989
|
+
var _settings_conditions, _settings_conditions1;
|
71990
71990
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
71991
71991
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
71992
71992
|
const results = [];
|
@@ -72011,11 +72011,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
72011
72011
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
72012
72012
|
continue;
|
72013
72013
|
}
|
72014
|
-
|
72014
|
+
let itemResult = null;
|
72015
|
+
try {
|
72016
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
72017
|
+
} catch (error) {
|
72018
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
72019
|
+
continue;
|
72020
|
+
}
|
72021
|
+
throw error;
|
72022
|
+
}
|
72015
72023
|
results.push(itemResult);
|
72016
72024
|
}
|
72017
72025
|
return results;
|
72018
72026
|
}
|
72027
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
72028
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
72029
|
+
}
|
72019
72030
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
72020
72031
|
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`));
|
72021
72032
|
const pins = library == null ? void 0 : library[settings.element];
|
@@ -72029,23 +72040,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
72029
72040
|
const steps = [];
|
72030
72041
|
// parcourir tous les pins
|
72031
72042
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
72032
|
-
var _settings_conditions;
|
72033
72043
|
const settings = pinsSettingsList[i];
|
72034
|
-
|
72035
|
-
|
72036
|
-
|
72044
|
+
try {
|
72045
|
+
previous = await executePins(settings, _extends({}, context, {
|
72046
|
+
previous,
|
72047
|
+
steps,
|
72048
|
+
parent: {
|
72049
|
+
previous: context.previous,
|
72050
|
+
steps: context.steps,
|
72051
|
+
parent: context.parent
|
72052
|
+
}
|
72053
|
+
}));
|
72054
|
+
} catch (error) {
|
72055
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
72037
72056
|
continue;
|
72038
72057
|
}
|
72058
|
+
throw error;
|
72039
72059
|
}
|
72040
|
-
previous = await executePins(settings, _extends({}, context, {
|
72041
|
-
previous,
|
72042
|
-
steps,
|
72043
|
-
parent: {
|
72044
|
-
previous: context.previous,
|
72045
|
-
steps: context.steps,
|
72046
|
-
parent: context.parent
|
72047
|
-
}
|
72048
|
-
}));
|
72049
72060
|
steps[i] = {
|
72050
72061
|
name: settings.name,
|
72051
72062
|
result: previous
|
package/index.esm.js
CHANGED
@@ -71964,7 +71964,7 @@ const applyTemplate = (value, context)=>{
|
|
71964
71964
|
return result;
|
71965
71965
|
};
|
71966
71966
|
const executePins = async (settingsOrigin, context = {})=>{
|
71967
|
-
var _settings_conditions;
|
71967
|
+
var _settings_conditions, _settings_conditions1;
|
71968
71968
|
const settings = await preparePinsSettings(settingsOrigin, context);
|
71969
71969
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
71970
71970
|
const results = [];
|
@@ -71989,11 +71989,22 @@ const executePins = async (settingsOrigin, context = {})=>{
|
|
71989
71989
|
if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
|
71990
71990
|
continue;
|
71991
71991
|
}
|
71992
|
-
|
71992
|
+
let itemResult = null;
|
71993
|
+
try {
|
71994
|
+
itemResult = await executePins(itemSettingsOrigin, itemContext);
|
71995
|
+
} catch (error) {
|
71996
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
71997
|
+
continue;
|
71998
|
+
}
|
71999
|
+
throw error;
|
72000
|
+
}
|
71993
72001
|
results.push(itemResult);
|
71994
72002
|
}
|
71995
72003
|
return results;
|
71996
72004
|
}
|
72005
|
+
if (typeof ((_settings_conditions1 = settings.conditions) == null ? void 0 : _settings_conditions1.if) !== 'undefined' && !settings.conditions.if) {
|
72006
|
+
throw 'DIGIPAIR_CONDITIONS_IF_FALSE';
|
72007
|
+
}
|
71997
72008
|
const version = context.config.VERSIONS[settings.library] || 'latest';
|
71998
72009
|
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`));
|
71999
72010
|
const pins = library == null ? void 0 : library[settings.element];
|
@@ -72007,23 +72018,23 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
72007
72018
|
const steps = [];
|
72008
72019
|
// parcourir tous les pins
|
72009
72020
|
for(let i = 0; i < pinsSettingsList.length; i++){
|
72010
|
-
var _settings_conditions;
|
72011
72021
|
const settings = pinsSettingsList[i];
|
72012
|
-
|
72013
|
-
|
72014
|
-
|
72022
|
+
try {
|
72023
|
+
previous = await executePins(settings, _extends({}, context, {
|
72024
|
+
previous,
|
72025
|
+
steps,
|
72026
|
+
parent: {
|
72027
|
+
previous: context.previous,
|
72028
|
+
steps: context.steps,
|
72029
|
+
parent: context.parent
|
72030
|
+
}
|
72031
|
+
}));
|
72032
|
+
} catch (error) {
|
72033
|
+
if (error === 'DIGIPAIR_CONDITIONS_IF_FALSE') {
|
72015
72034
|
continue;
|
72016
72035
|
}
|
72036
|
+
throw error;
|
72017
72037
|
}
|
72018
|
-
previous = await executePins(settings, _extends({}, context, {
|
72019
|
-
previous,
|
72020
|
-
steps,
|
72021
|
-
parent: {
|
72022
|
-
previous: context.previous,
|
72023
|
-
steps: context.steps,
|
72024
|
-
parent: context.parent
|
72025
|
-
}
|
72026
|
-
}));
|
72027
72038
|
steps[i] = {
|
72028
72039
|
name: settings.name,
|
72029
72040
|
result: previous
|