pacc 8.7.0 → 8.8.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/README.md CHANGED
@@ -100,7 +100,8 @@ const result = expand("${a + 1}",{ root: { a: 2 }});
100
100
  * [language\_attribute](#language_attribute)
101
101
  * [environmentValues](#environmentvalues)
102
102
  * [Parameters](#parameters-5)
103
- * [defaultExpandContext](#defaultexpandcontext)
103
+ * [expandContextDefault](#expandcontextdefault)
104
+ * [expandContextDoubbleCurly](#expandcontextdoubblecurly)
104
105
  * [expand](#expand)
105
106
  * [Parameters](#parameters-6)
106
107
  * [promises](#promises)
@@ -493,10 +494,14 @@ Extract values from environment.
493
494
 
494
495
  Returns **([Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | [undefined](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined))** undefined if no suitable environment variables have been found
495
496
 
496
- ## defaultExpandContext
497
+ ## expandContextDefault
497
498
 
498
499
  Default expand context
499
500
 
501
+ ## expandContextDoubbleCurly
502
+
503
+ Expand context with doubble curly separaion '{{' '}}'
504
+
500
505
  ## expand
501
506
 
502
507
  Expand expressions inside of object graphs.
@@ -506,10 +511,10 @@ Expand expressions inside of object graphs.
506
511
  * `object` **any** 
507
512
  * `context` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
508
513
 
509
- * `context.root` **any?** 
514
+ * `context.root` **any?** actual replacement values
510
515
  * `context.stopClass` **[function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** 
511
- * `context.leadIn` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
512
- * `context.leadOut` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** 
516
+ * `context.leadIn` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** starting separator
517
+ * `context.leadOut` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)?** ending separator
513
518
 
514
519
  Returns **(any | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<any>)**&#x20;
515
520
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pacc",
3
- "version": "8.7.0",
3
+ "version": "8.8.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
7
7
  },
8
- "packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
8
+ "packageManager": "npm@11.9.0+sha512.04166853ddba142ca98f86fb57b1258a7c6c59ccb82acb3cf141b77a315898acaaed47395e74f7e0c7b69c486008e68be6a6381ef1aee5a23dd82e0e61decd68",
9
9
  "types": "./types/module.d.mts",
10
10
  "exports": {
11
11
  ".": {
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "ava": "^6.4.1",
44
- "browser-ava": "^2.3.52",
44
+ "browser-ava": "^2.3.53",
45
45
  "c8": "^10.1.3",
46
46
  "documentation": "^14.0.3",
47
47
  "semantic-release": "^25.0.3",
@@ -167,6 +167,10 @@ export const globals = {
167
167
  abs: Math.abs,
168
168
  min: Math.min,
169
169
  max: Math.max,
170
+ encodeURI: encodeURI,
171
+ decodeURI: decodeURI,
172
+ encodeURIComponent: encodeURIComponent,
173
+ decodeURIComponent: decodeURIComponent,
170
174
  uppercase: a => a.toUpperCase(),
171
175
  lowercase: a => a.toLowerCase(),
172
176
  substring: (s, a, b) => s.substring(a, b),
@@ -8,6 +8,10 @@ export namespace globals {
8
8
  export let abs: (x: number) => number;
9
9
  export let min: (...values: number[]) => number;
10
10
  export let max: (...values: number[]) => number;
11
+ export let encodeURI: typeof globalThis.encodeURI;
12
+ export let decodeURI: typeof globalThis.decodeURI;
13
+ export let encodeURIComponent: typeof globalThis.encodeURIComponent;
14
+ export let decodeURIComponent: typeof globalThis.decodeURIComponent;
11
15
  export function uppercase(a: any): any;
12
16
  export function lowercase(a: any): any;
13
17
  export function substring(s: any, a: any, b: any): any;