@alter-ai/deel 0.3.2 → 0.3.3
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/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -41376,6 +41376,8 @@ function matchesRule(value, path, test, expected) {
|
|
|
41376
41376
|
return test === "false" ? value === false : value !== null && value !== void 0 && value !== false && value !== "" && (Array.isArray(value) ? value.length > 0 : typeof value !== "object" || Object.keys(value).length > 0);
|
|
41377
41377
|
const [head, ...tail] = path;
|
|
41378
41378
|
if (head === void 0) return false;
|
|
41379
|
+
if (head === "**")
|
|
41380
|
+
return Array.isArray(value) && value.length > 0 && value.every((item) => matchesRule(item, tail, test, expected));
|
|
41379
41381
|
if (head === "*")
|
|
41380
41382
|
return Array.isArray(value) && value.some((item) => matchesRule(item, tail, test, expected));
|
|
41381
41383
|
return !!value && typeof value === "object" && !Array.isArray(value) && matchesRule(value[head], tail, test, expected);
|
package/dist/index.js
CHANGED
|
@@ -41242,6 +41242,8 @@ function matchesRule(value, path, test, expected) {
|
|
|
41242
41242
|
return test === "false" ? value === false : value !== null && value !== void 0 && value !== false && value !== "" && (Array.isArray(value) ? value.length > 0 : typeof value !== "object" || Object.keys(value).length > 0);
|
|
41243
41243
|
const [head, ...tail] = path;
|
|
41244
41244
|
if (head === void 0) return false;
|
|
41245
|
+
if (head === "**")
|
|
41246
|
+
return Array.isArray(value) && value.length > 0 && value.every((item) => matchesRule(item, tail, test, expected));
|
|
41245
41247
|
if (head === "*")
|
|
41246
41248
|
return Array.isArray(value) && value.some((item) => matchesRule(item, tail, test, expected));
|
|
41247
41249
|
return !!value && typeof value === "object" && !Array.isArray(value) && matchesRule(value[head], tail, test, expected);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alter-ai/deel",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Typed Deel operations through Alter",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"LICENSE"
|
|
20
20
|
],
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@alter-ai/sdk": ">=0.
|
|
22
|
+
"@alter-ai/sdk": ">=0.31.0 <0.32.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"zod": "^3.25.76"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "20.19.39",
|
|
29
|
-
"@alter-ai/sdk": "0.
|
|
29
|
+
"@alter-ai/sdk": "0.31.0",
|
|
30
30
|
"msw": "2.12.10",
|
|
31
31
|
"tsup": "8.5.1",
|
|
32
32
|
"typescript": "5.9.3",
|