pacc 3.4.0 → 3.4.2
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 +13 -1
- package/package.json +9 -6
package/README.md
CHANGED
|
@@ -38,11 +38,13 @@ const result = getAttribute({ a: [0,{ b: 4 }]}, "a[1].b");
|
|
|
38
38
|
* [Parameters](#parameters-2)
|
|
39
39
|
* [getAttributeAndOperator](#getattributeandoperator)
|
|
40
40
|
* [Parameters](#parameters-3)
|
|
41
|
+
* [filter](#filter)
|
|
42
|
+
* [Parameters](#parameters-4)
|
|
41
43
|
* [lookup](#lookup)
|
|
42
44
|
* [Token](#token)
|
|
43
45
|
* [Properties](#properties-1)
|
|
44
46
|
* [createToken](#createtoken)
|
|
45
|
-
* [Parameters](#parameters-
|
|
47
|
+
* [Parameters](#parameters-5)
|
|
46
48
|
* [PLUS](#plus)
|
|
47
49
|
* [MINUS](#minus)
|
|
48
50
|
* [STAR](#star)
|
|
@@ -134,6 +136,16 @@ The name may be a property path like 'a.b.c <='.
|
|
|
134
136
|
|
|
135
137
|
Returns **\[any, [Token](#token)]** value associated with the given property name
|
|
136
138
|
|
|
139
|
+
## filter
|
|
140
|
+
|
|
141
|
+
Generate filter function.
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
* `filterBy` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** 
|
|
146
|
+
|
|
147
|
+
Returns **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** 
|
|
148
|
+
|
|
137
149
|
## lookup
|
|
138
150
|
|
|
139
151
|
Token lookup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pacc",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "0BSD",
|
|
23
23
|
"scripts": {
|
|
24
24
|
"prepare": "node --run prepare:typescript",
|
|
25
|
-
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target
|
|
25
|
+
"prepare:typescript": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext --rootDir src ./src**/*.mjs",
|
|
26
26
|
"test": "node --run test:browser-ava && node --run test:ava",
|
|
27
27
|
"test:browser-ava": "browser-ava --headless --no-keep-open tests/*-ava.mjs tests/*-ava-browser.mjs",
|
|
28
28
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
@@ -30,18 +30,21 @@
|
|
|
30
30
|
"docs": "documentation readme --section=API ./src**/*.mjs",
|
|
31
31
|
"lint": "node --run lint:docs && node --run lint:typescript",
|
|
32
32
|
"lint:docs": "documentation lint ./src**/*.mjs",
|
|
33
|
-
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target
|
|
33
|
+
"lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"npm-pkgbuild": "^18.1.1"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"ava": "^6.
|
|
37
|
-
"browser-ava": "^2.3.
|
|
39
|
+
"ava": "^6.3.0",
|
|
40
|
+
"browser-ava": "^2.3.29",
|
|
38
41
|
"c8": "^10.1.3",
|
|
39
42
|
"documentation": "^14.0.3",
|
|
40
43
|
"semantic-release": "^24.2.3",
|
|
41
44
|
"typescript": "^5.8.3"
|
|
42
45
|
},
|
|
43
46
|
"engines": {
|
|
44
|
-
"node": ">=22.
|
|
47
|
+
"node": ">=22.15.0"
|
|
45
48
|
},
|
|
46
49
|
"repository": {
|
|
47
50
|
"type": "git",
|