@xylabs/exists 7.0.1 → 7.0.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/README.md +6 -4
- package/dist/neutral/index.d.ts +1 -9
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +1 -6
- package/dist/neutral/index.mjs.map +2 -2
- package/package.json +19 -8
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
> **Deprecated.** Use [`@ariestools/sdk`](../../ariestools-sdk/README.md) instead. This package is a backward-compatibility re-export shim.
|
|
2
|
+
|
|
1
3
|
[![logo][]](https://xylabs.com)
|
|
2
4
|
|
|
3
5
|
# @xylabs/exists
|
|
@@ -12,25 +14,25 @@
|
|
|
12
14
|
Using npm:
|
|
13
15
|
|
|
14
16
|
```sh
|
|
15
|
-
npm install
|
|
17
|
+
npm install @xylabs/exists
|
|
16
18
|
```
|
|
17
19
|
|
|
18
20
|
Using yarn:
|
|
19
21
|
|
|
20
22
|
```sh
|
|
21
|
-
yarn add
|
|
23
|
+
yarn add @xylabs/exists
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
Using pnpm:
|
|
25
27
|
|
|
26
28
|
```sh
|
|
27
|
-
pnpm add
|
|
29
|
+
pnpm add @xylabs/exists
|
|
28
30
|
```
|
|
29
31
|
|
|
30
32
|
Using bun:
|
|
31
33
|
|
|
32
34
|
```sh
|
|
33
|
-
bun add
|
|
35
|
+
bun add @xylabs/exists
|
|
34
36
|
```
|
|
35
37
|
|
|
36
38
|
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Used to type narrow an object which is possibly null or undefined. Works well
|
|
3
|
-
* with functional Array methods. For example:
|
|
4
|
-
* @example
|
|
5
|
-
* const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []
|
|
6
|
-
* @param x The object which is potentially undefined or null
|
|
7
|
-
* @returns False if the object is null/undefined, true otherwise
|
|
8
|
-
*/
|
|
9
|
-
export declare const exists: <T>(x?: T | null) => x is NonNullable<T>;
|
|
1
|
+
export * from '@ariestools/sdk/exists';
|
|
10
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
4
|
+
"sourcesContent": ["export * from '@ariestools/sdk/exists'\n"],
|
|
5
|
+
"mappings": ";AAAA,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/exists",
|
|
3
|
-
"version": "7.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "7.0.3",
|
|
4
|
+
"description": "DEPRECATED — use @ariestools/sdk/exists. Backward-compatibility re-export shim.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"exists",
|
|
7
6
|
"xylabs",
|
|
8
7
|
"utility",
|
|
9
8
|
"typescript",
|
|
@@ -40,20 +39,32 @@
|
|
|
40
39
|
"!**/*.test.*",
|
|
41
40
|
"README.md"
|
|
42
41
|
],
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@ariestools/sdk": "~7.0.3"
|
|
44
|
+
},
|
|
43
45
|
"devDependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
+
"@opentelemetry/api": "^1.9.1",
|
|
47
|
+
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
48
|
+
"@xylabs/toolchain": "^8.5.5",
|
|
49
|
+
"@xylabs/tsconfig": "^8.5.5",
|
|
50
|
+
"async-mutex": "^0.5.0",
|
|
46
51
|
"browserslist": "4.28.4",
|
|
47
52
|
"eslint": "^10.6.0",
|
|
48
53
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
49
54
|
"typescript": "^6.0.3",
|
|
50
|
-
"
|
|
51
|
-
|
|
55
|
+
"zod": "^4.4.3"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@opentelemetry/api": "^1.9",
|
|
59
|
+
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
60
|
+
"async-mutex": "^0.5",
|
|
61
|
+
"zod": "^4.4"
|
|
52
62
|
},
|
|
53
63
|
"engines": {
|
|
54
64
|
"node": ">=18"
|
|
55
65
|
},
|
|
56
66
|
"publishConfig": {
|
|
57
67
|
"access": "public"
|
|
58
|
-
}
|
|
68
|
+
},
|
|
69
|
+
"deprecated": "Use @ariestools/sdk/exists instead. @xylabs/exists is a compatibility shim only and will not receive further updates."
|
|
59
70
|
}
|