@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/custom-js-functions",
3
- "version": "12.36.0",
3
+ "version": "12.38.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",
@@ -0,0 +1,5 @@
1
+ export const assign = (context: any, key: string, value: string): string => {
2
+ const result = JSON.parse(value);
3
+ context[key] = result;
4
+ return `$context.${key}`;
5
+ };
@@ -1,3 +1,4 @@
1
+ export * from "../Assign/Assign.ts";
1
2
  export * from "../DateHelper/DateHelper.ts";
2
3
  export * from "../FunctionBookmarkIdString/FunctionBookmarkIdString.ts";
3
4
  export * from "../FunctionDebugId/FunctionDebugId.ts";