@digipair/engine 0.22.1 → 0.23.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/index.cjs.js CHANGED
@@ -23511,14 +23511,14 @@ function indent(str, spaces) {
23511
23511
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23512
23512
  // match is required
23513
23513
  if (!match) {
23514
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23514
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23515
23515
  v: nextMatch1
23516
23516
  };
23517
23517
  }
23518
23518
  var token = match.token, offset = match.offset;
23519
23519
  i1 += offset;
23520
23520
  if (token === " ") {
23521
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23521
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23522
23522
  }
23523
23523
  tokens1 = _to_consumable_array$1(tokens1).concat([
23524
23524
  token
@@ -23537,7 +23537,7 @@ function indent(str, spaces) {
23537
23537
  if (contextKeys.some(function(el) {
23538
23538
  return el.startsWith(name);
23539
23539
  })) {
23540
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23540
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23541
23541
  }
23542
23542
  if (dateTimeIdentifiers.some(function(el) {
23543
23543
  return el === name;
@@ -23556,9 +23556,9 @@ function indent(str, spaces) {
23556
23556
  if (dateTimeIdentifiers.some(function(el) {
23557
23557
  return el.startsWith(name);
23558
23558
  })) {
23559
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
23559
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
23560
23560
  }
23561
- return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
23561
+ return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
23562
23562
  v: nextMatch1
23563
23563
  };
23564
23564
  };
@@ -27370,6 +27370,7 @@ const applyTemplate = (value, context)=>{
27370
27370
  const path = result.replace(/^EVALUATE:/, '');
27371
27371
  result = evaluate(path, _extends({}, context, {
27372
27372
  getTime: (time)=>new Date(time).getTime(),
27373
+ fromTime: (time)=>new Date(time).toISOString(),
27373
27374
  atob: (value)=>atob(value),
27374
27375
  btoa: (value)=>btoa(value),
27375
27376
  encodeURIComponent: (value)=>encodeURIComponent(value),
package/index.esm.js CHANGED
@@ -27348,6 +27348,7 @@ const applyTemplate = (value, context)=>{
27348
27348
  const path = result.replace(/^EVALUATE:/, '');
27349
27349
  result = evaluate(path, _extends({}, context, {
27350
27350
  getTime: (time)=>new Date(time).getTime(),
27351
+ fromTime: (time)=>new Date(time).toISOString(),
27351
27352
  atob: (value)=>atob(value),
27352
27353
  btoa: (value)=>btoa(value),
27353
27354
  encodeURIComponent: (value)=>encodeURIComponent(value),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.22.1",
3
+ "version": "0.23.0",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",
File without changes
File without changes