@digipair/skill-web 0.65.2 → 0.65.3

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
@@ -10962,7 +10962,6 @@ let WebService = class WebService {
10962
10962
  if (context.request.params[0] === '__digipair_www__') {
10963
10963
  let result;
10964
10964
  try {
10965
- var _infos_keywords, _infos_keywords1;
10966
10965
  const fileUrl = context.protected.req.path.split('__digipair_www__/')[1];
10967
10966
  if (!fileUrl) {
10968
10967
  context.protected.res.status(404);
@@ -10985,12 +10984,15 @@ let WebService = class WebService {
10985
10984
  status: 'not found'
10986
10985
  };
10987
10986
  }
10988
- const infos = require(`${library}/package.json`);
10989
- if (!(((_infos_keywords = infos.keywords) == null ? void 0 : _infos_keywords.indexOf('digipair')) >= 0 && ((_infos_keywords1 = infos.keywords) == null ? void 0 : _infos_keywords1.indexOf('web')) >= 0)) {
10990
- context.protected.res.status(404);
10991
- return {
10992
- status: 'not found'
10993
- };
10987
+ if (context.config.VERSIONS[library]) {
10988
+ var _infos_keywords, _infos_keywords1;
10989
+ const infos = require(`${library}/package.json`);
10990
+ if (!(((_infos_keywords = infos.keywords) == null ? void 0 : _infos_keywords.indexOf('digipair')) >= 0 && ((_infos_keywords1 = infos.keywords) == null ? void 0 : _infos_keywords1.indexOf('web')) >= 0)) {
10991
+ context.protected.res.status(404);
10992
+ return {
10993
+ status: 'not found'
10994
+ };
10995
+ }
10994
10996
  }
10995
10997
  const path = match[3];
10996
10998
  let filePath = require.resolve(`${library}/${path}`);
package/index.esm.js CHANGED
@@ -23903,14 +23903,14 @@ function indent(str, spaces) {
23903
23903
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23904
23904
  // match is required
23905
23905
  if (!match) {
23906
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23906
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23907
23907
  v: nextMatch1
23908
23908
  };
23909
23909
  }
23910
23910
  var token = match.token, offset = match.offset;
23911
23911
  i1 += offset;
23912
23912
  if (token === " ") {
23913
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23913
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23914
23914
  }
23915
23915
  tokens1 = _to_consumable_array$1(tokens1).concat([
23916
23916
  token
@@ -23929,7 +23929,7 @@ function indent(str, spaces) {
23929
23929
  if (contextKeys.some(function(el) {
23930
23930
  return el.startsWith(name);
23931
23931
  })) {
23932
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23932
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23933
23933
  }
23934
23934
  if (dateTimeIdentifiers.some(function(el) {
23935
23935
  return el === name;
@@ -23948,9 +23948,9 @@ function indent(str, spaces) {
23948
23948
  if (dateTimeIdentifiers.some(function(el) {
23949
23949
  return el.startsWith(name);
23950
23950
  })) {
23951
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
23951
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23952
23952
  }
23953
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
23953
+ return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23954
23954
  v: nextMatch1
23955
23955
  };
23956
23956
  };
@@ -38994,7 +38994,6 @@ let WebService = class WebService {
38994
38994
  if (context.request.params[0] === '__digipair_www__') {
38995
38995
  let result;
38996
38996
  try {
38997
- var _infos_keywords, _infos_keywords1;
38998
38997
  const fileUrl = context.protected.req.path.split('__digipair_www__/')[1];
38999
38998
  if (!fileUrl) {
39000
38999
  context.protected.res.status(404);
@@ -39017,12 +39016,15 @@ let WebService = class WebService {
39017
39016
  status: 'not found'
39018
39017
  };
39019
39018
  }
39020
- const infos = require(`${library}/package.json`);
39021
- if (!(((_infos_keywords = infos.keywords) == null ? void 0 : _infos_keywords.indexOf('digipair')) >= 0 && ((_infos_keywords1 = infos.keywords) == null ? void 0 : _infos_keywords1.indexOf('web')) >= 0)) {
39022
- context.protected.res.status(404);
39023
- return {
39024
- status: 'not found'
39025
- };
39019
+ if (context.config.VERSIONS[library]) {
39020
+ var _infos_keywords, _infos_keywords1;
39021
+ const infos = require(`${library}/package.json`);
39022
+ if (!(((_infos_keywords = infos.keywords) == null ? void 0 : _infos_keywords.indexOf('digipair')) >= 0 && ((_infos_keywords1 = infos.keywords) == null ? void 0 : _infos_keywords1.indexOf('web')) >= 0)) {
39023
+ context.protected.res.status(404);
39024
+ return {
39025
+ status: 'not found'
39026
+ };
39027
+ }
39026
39028
  }
39027
39029
  const path = match[3];
39028
39030
  let filePath = require.resolve(`${library}/${path}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web",
3
- "version": "0.65.2",
3
+ "version": "0.65.3",
4
4
  "dependencies": {
5
5
  "jsdom": "^25.0.1"
6
6
  },
File without changes
File without changes