@digipair/skill-web 0.65.0 → 0.65.1
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
|
@@ -10974,13 +10974,12 @@ let WebService = class WebService {
|
|
|
10974
10974
|
const match = fileUrl.match(regex);
|
|
10975
10975
|
if (!match) {
|
|
10976
10976
|
context.protected.res.status(404);
|
|
10977
|
-
console.log('ici', match, fileUrl);
|
|
10978
10977
|
return {
|
|
10979
10978
|
status: 'not found'
|
|
10980
10979
|
};
|
|
10981
10980
|
}
|
|
10982
10981
|
const library = match[1];
|
|
10983
|
-
if (library !== '@digipair/engine' && !context.config.VERSIONS[library]) {
|
|
10982
|
+
if (library !== '@digipair/engine' && !context.config.VERSIONS[library] && !context.config.WEB_VERSIONS[library]) {
|
|
10984
10983
|
context.protected.res.status(404);
|
|
10985
10984
|
return {
|
|
10986
10985
|
status: 'not found'
|
|
@@ -11074,24 +11073,7 @@ let WebService = class WebService {
|
|
|
11074
11073
|
`;
|
|
11075
11074
|
return html;
|
|
11076
11075
|
}
|
|
11077
|
-
async javascript(params, _pinsSettingsList, context) {
|
|
11078
|
-
const { execute, baseUrl = 'https://cdn.jsdelivr.net/npm' } = params;
|
|
11079
|
-
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
11080
|
-
const js = `
|
|
11081
|
-
import { executePinsList } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
11082
|
-
|
|
11083
|
-
const context = {
|
|
11084
|
-
variables: ${JSON.stringify(context.variables || {})},
|
|
11085
|
-
request: ${JSON.stringify(context.request || {})},
|
|
11086
|
-
};
|
|
11087
|
-
|
|
11088
|
-
await executePinsList(${JSON.stringify(execute)}, context);
|
|
11089
|
-
`;
|
|
11090
|
-
return js;
|
|
11091
|
-
}
|
|
11092
11076
|
};
|
|
11093
11077
|
const page = (params, pinsSettingsList, context)=>new WebService().page(params, pinsSettingsList, context);
|
|
11094
|
-
const javascript = (params, pinsSettingsList, context)=>new WebService().javascript(params, pinsSettingsList, context);
|
|
11095
11078
|
|
|
11096
|
-
exports.javascript = javascript;
|
|
11097
11079
|
exports.page = page;
|
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
|
|
23906
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
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
|
|
23913
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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
|
|
23932
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "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
|
|
23951
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
|
|
23952
23952
|
}
|
|
23953
|
-
return
|
|
23953
|
+
return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
|
|
23954
23954
|
v: nextMatch1
|
|
23955
23955
|
};
|
|
23956
23956
|
};
|
|
@@ -39006,13 +39006,12 @@ let WebService = class WebService {
|
|
|
39006
39006
|
const match = fileUrl.match(regex);
|
|
39007
39007
|
if (!match) {
|
|
39008
39008
|
context.protected.res.status(404);
|
|
39009
|
-
console.log('ici', match, fileUrl);
|
|
39010
39009
|
return {
|
|
39011
39010
|
status: 'not found'
|
|
39012
39011
|
};
|
|
39013
39012
|
}
|
|
39014
39013
|
const library = match[1];
|
|
39015
|
-
if (library !== '@digipair/engine' && !context.config.VERSIONS[library]) {
|
|
39014
|
+
if (library !== '@digipair/engine' && !context.config.VERSIONS[library] && !context.config.WEB_VERSIONS[library]) {
|
|
39016
39015
|
context.protected.res.status(404);
|
|
39017
39016
|
return {
|
|
39018
39017
|
status: 'not found'
|
|
@@ -39106,23 +39105,7 @@ let WebService = class WebService {
|
|
|
39106
39105
|
`;
|
|
39107
39106
|
return html;
|
|
39108
39107
|
}
|
|
39109
|
-
async javascript(params, _pinsSettingsList, context) {
|
|
39110
|
-
const { execute, baseUrl = 'https://cdn.jsdelivr.net/npm' } = params;
|
|
39111
|
-
const engineVersion = context.config.VERSIONS['@digipair/engine'] || 'latest';
|
|
39112
|
-
const js = `
|
|
39113
|
-
import { executePinsList } from '${baseUrl}/@digipair/engine@${engineVersion}/index.esm.js';
|
|
39114
|
-
|
|
39115
|
-
const context = {
|
|
39116
|
-
variables: ${JSON.stringify(context.variables || {})},
|
|
39117
|
-
request: ${JSON.stringify(context.request || {})},
|
|
39118
|
-
};
|
|
39119
|
-
|
|
39120
|
-
await executePinsList(${JSON.stringify(execute)}, context);
|
|
39121
|
-
`;
|
|
39122
|
-
return js;
|
|
39123
|
-
}
|
|
39124
39108
|
};
|
|
39125
39109
|
const page = (params, pinsSettingsList, context)=>new WebService().page(params, pinsSettingsList, context);
|
|
39126
|
-
const javascript = (params, pinsSettingsList, context)=>new WebService().javascript(params, pinsSettingsList, context);
|
|
39127
39110
|
|
|
39128
|
-
export {
|
|
39111
|
+
export { page };
|
package/package.json
CHANGED
|
File without changes
|