@pronto-tools-and-more/custom-js-functions 12.36.0 → 12.38.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/dist/main.js
CHANGED
@@ -405,6 +405,7 @@
|
|
405
405
|
// src/parts/Functions/Functions.ts
|
406
406
|
var Functions_exports = {};
|
407
407
|
__export(Functions_exports, {
|
408
|
+
assign: () => assign,
|
408
409
|
bookmarkIdString: () => bookmarkIdString,
|
409
410
|
dateHelper: () => dateHelper,
|
410
411
|
debugId: () => debugId,
|
@@ -414,6 +415,13 @@
|
|
414
415
|
id: () => id
|
415
416
|
});
|
416
417
|
|
418
|
+
// src/parts/Assign/Assign.ts
|
419
|
+
var assign = (context, key, value) => {
|
420
|
+
const result = JSON.parse(value);
|
421
|
+
context[key] = result;
|
422
|
+
return `$context.${key}`;
|
423
|
+
};
|
424
|
+
|
417
425
|
// src/parts/DateHelper/DateHelper.ts
|
418
426
|
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
419
427
|
var import_de = __toESM(require_de(), 1);
|
package/package.json
CHANGED