@digipair/skill-vespa 0.11.4 → 0.12.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 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 nextMatch = nextMatch1, i = i1, tokens = tokens1, {
68125
+ return i = i1, tokens = tokens1, 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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
68132
+ return i = i1, tokens = tokens1, 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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
68151
+ return i = i1, tokens = tokens1, 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 nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
68170
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
68171
68171
  }
68172
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
68172
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
68173
68173
  v: nextMatch1
68174
68174
  };
68175
68175
  };
@@ -71960,6 +71960,9 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
71960
71960
  LIBRARIES: {},
71961
71961
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
71962
71962
  };
71963
+ const isPinsSettings = (value)=>{
71964
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
71965
+ };
71963
71966
  const applyTemplate = (value, context)=>{
71964
71967
  let result = value;
71965
71968
  if (typeof value === 'string') {
@@ -71972,7 +71975,7 @@ const applyTemplate = (value, context)=>{
71972
71975
  result = evaluate(path, context);
71973
71976
  }
71974
71977
  } else if (typeof value === 'object' && Array.isArray(value)) {
71975
- result = value;
71978
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
71976
71979
  } else if (typeof value === 'object') {
71977
71980
  result = {};
71978
71981
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/index.esm.js CHANGED
@@ -68100,14 +68100,14 @@ function indent(str, spaces) {
68100
68100
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
68101
68101
  // match is required
68102
68102
  if (!match) {
68103
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
68103
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
68104
68104
  v: nextMatch1
68105
68105
  };
68106
68106
  }
68107
68107
  var token = match.token, offset = match.offset;
68108
68108
  i1 += offset;
68109
68109
  if (token === " ") {
68110
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
68110
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
68111
68111
  }
68112
68112
  tokens1 = _to_consumable_array$1(tokens1).concat([
68113
68113
  token
@@ -68126,7 +68126,7 @@ function indent(str, spaces) {
68126
68126
  if (contextKeys.some(function(el) {
68127
68127
  return el.startsWith(name);
68128
68128
  })) {
68129
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
68129
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
68130
68130
  }
68131
68131
  if (dateTimeIdentifiers.some(function(el) {
68132
68132
  return el === name;
@@ -68145,9 +68145,9 @@ function indent(str, spaces) {
68145
68145
  if (dateTimeIdentifiers.some(function(el) {
68146
68146
  return el.startsWith(name);
68147
68147
  })) {
68148
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
68148
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
68149
68149
  }
68150
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
68150
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
68151
68151
  v: nextMatch1
68152
68152
  };
68153
68153
  };
@@ -71938,6 +71938,9 @@ const _config = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR
71938
71938
  LIBRARIES: {},
71939
71939
  BASE_URL: 'https://cdn.jsdelivr.net/npm'
71940
71940
  };
71941
+ const isPinsSettings = (value)=>{
71942
+ return typeof value === 'object' && value !== null && typeof value.element === 'string' && typeof value.library === 'string';
71943
+ };
71941
71944
  const applyTemplate = (value, context)=>{
71942
71945
  let result = value;
71943
71946
  if (typeof value === 'string') {
@@ -71950,7 +71953,7 @@ const applyTemplate = (value, context)=>{
71950
71953
  result = evaluate(path, context);
71951
71954
  }
71952
71955
  } else if (typeof value === 'object' && Array.isArray(value)) {
71953
- result = value;
71956
+ result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
71954
71957
  } else if (typeof value === 'object') {
71955
71958
  result = {};
71956
71959
  Object.entries(value || {}).forEach(([key, attributeValue])=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-vespa",
3
- "version": "0.11.4",
3
+ "version": "0.12.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"