@digipair/skill-web-notification 0.66.2 → 0.66.4

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
@@ -23921,14 +23921,14 @@ function indent(str, spaces) {
23921
23921
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23922
23922
  // match is required
23923
23923
  if (!match) {
23924
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23924
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23925
23925
  v: nextMatch1
23926
23926
  };
23927
23927
  }
23928
23928
  var token = match.token, offset = match.offset;
23929
23929
  i1 += offset;
23930
23930
  if (token === " ") {
23931
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23931
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23932
23932
  }
23933
23933
  tokens1 = _to_consumable_array$1(tokens1).concat([
23934
23934
  token
@@ -23947,7 +23947,7 @@ function indent(str, spaces) {
23947
23947
  if (contextKeys.some(function(el) {
23948
23948
  return el.startsWith(name);
23949
23949
  })) {
23950
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23950
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23951
23951
  }
23952
23952
  if (dateTimeIdentifiers.some(function(el) {
23953
23953
  return el === name;
@@ -23966,9 +23966,9 @@ function indent(str, spaces) {
23966
23966
  if (dateTimeIdentifiers.some(function(el) {
23967
23967
  return el.startsWith(name);
23968
23968
  })) {
23969
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23969
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23970
23970
  }
23971
- return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23971
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23972
23972
  v: nextMatch1
23973
23973
  };
23974
23974
  };
@@ -27898,12 +27898,12 @@ const applyTemplate = (value, context)=>{
27898
27898
  };
27899
27899
  const executePins = async (settingsOrigin, context = {})=>{
27900
27900
  var _settings_conditions, _settings_conditions1;
27901
- let settings = await preparePinsSettings(settingsOrigin, context);
27901
+ let settings = preparePinsSettings(settingsOrigin, context);
27902
27902
  const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
27903
27903
  const config = context.config || {};
27904
27904
  let version = (config.VERSIONS || {})[settings.library] || 'latest';
27905
27905
  if (alias) {
27906
- settings = await preparePinsSettings(_extends({}, settings, alias), {
27906
+ settings = preparePinsSettings(_extends({}, settings, alias), {
27907
27907
  settings: _extends({}, settings, {
27908
27908
  version,
27909
27909
  library: settings.library.substring(alias.name.length + 1)
@@ -27930,7 +27930,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27930
27930
  parent: context.parent
27931
27931
  }
27932
27932
  });
27933
- const itemSettings = await preparePinsSettings(itemSettingsOrigin, itemContext);
27933
+ const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
27934
27934
  if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
27935
27935
  continue;
27936
27936
  }
@@ -27959,7 +27959,6 @@ const executePins = async (settingsOrigin, context = {})=>{
27959
27959
  };
27960
27960
  const executePinsList = async (pinsSettingsList, context)=>{
27961
27961
  let previous = {};
27962
- // parcourir tous les pins
27963
27962
  for(let i = 0; i < pinsSettingsList.length; i++){
27964
27963
  const settings = pinsSettingsList[i];
27965
27964
  try {
@@ -27979,14 +27978,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
27979
27978
  }
27980
27979
  return previous;
27981
27980
  };
27982
- const preparePinsSettings = async (settings, context)=>{
27981
+ const preparePinsSettings = (settings, context)=>{
27983
27982
  const localContext = _extends({}, context, {
27984
27983
  variables: context.variables || {},
27985
27984
  conditions: context.conditions || {}
27986
27985
  });
27987
27986
  const conditions = {};
27988
27987
  for (const [key, value] of Object.entries(settings.conditions || {})){
27989
- conditions[key] = await applyTemplate(value, localContext);
27988
+ conditions[key] = applyTemplate(value, localContext);
27990
27989
  }
27991
27990
  const properties = {};
27992
27991
  for (const [key, value] of Object.entries(settings.properties || {})){
package/index.esm.js CHANGED
@@ -23899,14 +23899,14 @@ function indent(str, spaces) {
23899
23899
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23900
23900
  // match is required
23901
23901
  if (!match) {
23902
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23902
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23903
23903
  v: nextMatch1
23904
23904
  };
23905
23905
  }
23906
23906
  var token = match.token, offset = match.offset;
23907
23907
  i1 += offset;
23908
23908
  if (token === " ") {
23909
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23909
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23910
23910
  }
23911
23911
  tokens1 = _to_consumable_array$1(tokens1).concat([
23912
23912
  token
@@ -23925,7 +23925,7 @@ function indent(str, spaces) {
23925
23925
  if (contextKeys.some(function(el) {
23926
23926
  return el.startsWith(name);
23927
23927
  })) {
23928
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23928
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23929
23929
  }
23930
23930
  if (dateTimeIdentifiers.some(function(el) {
23931
23931
  return el === name;
@@ -23944,9 +23944,9 @@ function indent(str, spaces) {
23944
23944
  if (dateTimeIdentifiers.some(function(el) {
23945
23945
  return el.startsWith(name);
23946
23946
  })) {
23947
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23947
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23948
23948
  }
23949
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23949
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23950
23950
  v: nextMatch1
23951
23951
  };
23952
23952
  };
@@ -27876,12 +27876,12 @@ const applyTemplate = (value, context)=>{
27876
27876
  };
27877
27877
  const executePins = async (settingsOrigin, context = {})=>{
27878
27878
  var _settings_conditions, _settings_conditions1;
27879
- let settings = await preparePinsSettings(settingsOrigin, context);
27879
+ let settings = preparePinsSettings(settingsOrigin, context);
27880
27880
  const alias = _config.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
27881
27881
  const config = context.config || {};
27882
27882
  let version = (config.VERSIONS || {})[settings.library] || 'latest';
27883
27883
  if (alias) {
27884
- settings = await preparePinsSettings(_extends({}, settings, alias), {
27884
+ settings = preparePinsSettings(_extends({}, settings, alias), {
27885
27885
  settings: _extends({}, settings, {
27886
27886
  version,
27887
27887
  library: settings.library.substring(alias.name.length + 1)
@@ -27908,7 +27908,7 @@ const executePins = async (settingsOrigin, context = {})=>{
27908
27908
  parent: context.parent
27909
27909
  }
27910
27910
  });
27911
- const itemSettings = await preparePinsSettings(itemSettingsOrigin, itemContext);
27911
+ const itemSettings = preparePinsSettings(itemSettingsOrigin, itemContext);
27912
27912
  if (typeof ((_itemSettings_conditions = itemSettings.conditions) == null ? void 0 : _itemSettings_conditions.if) !== 'undefined' && !itemSettings.conditions.if) {
27913
27913
  continue;
27914
27914
  }
@@ -27937,7 +27937,6 @@ const executePins = async (settingsOrigin, context = {})=>{
27937
27937
  };
27938
27938
  const executePinsList = async (pinsSettingsList, context)=>{
27939
27939
  let previous = {};
27940
- // parcourir tous les pins
27941
27940
  for(let i = 0; i < pinsSettingsList.length; i++){
27942
27941
  const settings = pinsSettingsList[i];
27943
27942
  try {
@@ -27957,14 +27956,14 @@ const executePinsList = async (pinsSettingsList, context)=>{
27957
27956
  }
27958
27957
  return previous;
27959
27958
  };
27960
- const preparePinsSettings = async (settings, context)=>{
27959
+ const preparePinsSettings = (settings, context)=>{
27961
27960
  const localContext = _extends({}, context, {
27962
27961
  variables: context.variables || {},
27963
27962
  conditions: context.conditions || {}
27964
27963
  });
27965
27964
  const conditions = {};
27966
27965
  for (const [key, value] of Object.entries(settings.conditions || {})){
27967
- conditions[key] = await applyTemplate(value, localContext);
27966
+ conditions[key] = applyTemplate(value, localContext);
27968
27967
  }
27969
27968
  const properties = {};
27970
27969
  for (const [key, value] of Object.entries(settings.properties || {})){
@@ -8,5 +8,5 @@ export declare const executePinsList: (pinsSettingsList: PinsSettings[], context
8
8
  export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
9
9
  import: boolean;
10
10
  }) => Promise<Element | void>;
11
- export declare const preparePinsSettings: (settings: PinsSettings, context: any) => Promise<PinsSettings>;
11
+ export declare const preparePinsSettings: (settings: PinsSettings, context: any) => PinsSettings;
12
12
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-notification",
3
- "version": "0.66.2",
3
+ "version": "0.66.4",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "web"