@blue-labs/shared-utils 1.20.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.
Files changed (36) hide show
  1. package/README.md +3 -0
  2. package/dist/deepContains/deepContains.d.ts +10 -0
  3. package/dist/deepContains/deepContains.d.ts.map +1 -0
  4. package/dist/deepContains/index.d.ts +2 -0
  5. package/dist/deepContains/index.d.ts.map +1 -0
  6. package/dist/index.d.ts +5 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +1 -0
  9. package/dist/index.mjs +118 -0
  10. package/dist/json/index.d.ts +5 -0
  11. package/dist/json/index.d.ts.map +1 -0
  12. package/dist/json/jsonTraverse.d.ts +3 -0
  13. package/dist/json/jsonTraverse.d.ts.map +1 -0
  14. package/dist/json/jsonTraverseAndFind.d.ts +6 -0
  15. package/dist/json/jsonTraverseAndFind.d.ts.map +1 -0
  16. package/dist/json/predicates.d.ts +5 -0
  17. package/dist/json/predicates.d.ts.map +1 -0
  18. package/dist/json/schema.d.ts +16 -0
  19. package/dist/json/schema.d.ts.map +1 -0
  20. package/dist/numbers/index.d.ts +3 -0
  21. package/dist/numbers/index.d.ts.map +1 -0
  22. package/dist/numbers/isNumberString.d.ts +2 -0
  23. package/dist/numbers/isNumberString.d.ts.map +1 -0
  24. package/dist/numbers/isPreciseNumberString.d.ts +2 -0
  25. package/dist/numbers/isPreciseNumberString.d.ts.map +1 -0
  26. package/dist/typeGuards/index.d.ts +5 -0
  27. package/dist/typeGuards/index.d.ts.map +1 -0
  28. package/dist/typeGuards/isGivenTypeSchema.d.ts +3 -0
  29. package/dist/typeGuards/isGivenTypeSchema.d.ts.map +1 -0
  30. package/dist/typeGuards/isNonNullable.d.ts +2 -0
  31. package/dist/typeGuards/isNonNullable.d.ts.map +1 -0
  32. package/dist/typeGuards/isNullable.d.ts +2 -0
  33. package/dist/typeGuards/isNullable.d.ts.map +1 -0
  34. package/dist/typeGuards/isReadonlyArray.d.ts +2 -0
  35. package/dist/typeGuards/isReadonlyArray.d.ts.map +1 -0
  36. package/package.json +31 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @blue-labs/shared-utils
2
+
3
+ Shared utilities used by Blue Labs packages.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns `true` when every key / value in **`subset`**
3
+ * exists (deep-equal) somewhere inside **`source`**.
4
+ *
5
+ * • Arrays → order-insensitive subset
6
+ * • Map → key/value subset
7
+ * • Set → element subset
8
+ */
9
+ export declare function deepContains<T = unknown>(source: T, subset: unknown): boolean;
10
+ //# sourceMappingURL=deepContains.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepContains.d.ts","sourceRoot":"","sources":["../../src/deepContains/deepContains.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAqD7E"}
@@ -0,0 +1,2 @@
1
+ export * from './deepContains';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/deepContains/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './deepContains';
2
+ export * from './json';
3
+ export * from './numbers';
4
+ export * from './typeGuards';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("zod");function z(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var c,j;function O(){return j||(j=1,c=function r(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var s,t,i;if(Array.isArray(e)){if(s=e.length,s!=n.length)return!1;for(t=s;t--!==0;)if(!r(e[t],n[t]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(t of e.entries())if(!n.has(t[0]))return!1;for(t of e.entries())if(!r(t[1],n.get(t[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(t of e.entries())if(!n.has(t[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(s=e.length,s!=n.length)return!1;for(t=s;t--!==0;)if(e[t]!==n[t])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),s=i.length,s!==Object.keys(n).length)return!1;for(t=s;t--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[t]))return!1;for(t=s;t--!==0;){var f=i[t];if(!r(e[f],n[f]))return!1}return!0}return e!==e&&n!==n}),c}var g=O();const d=z(g);function a(r,e){if(e===null||typeof e!="object"||e instanceof Date||e instanceof RegExp)return d(r,e);if(e instanceof Set){if(!(r instanceof Set))return!1;for(const s of e)if(!r.has(s))return!1;return!0}if(e instanceof Map){if(!(r instanceof Map))return!1;for(const[s,t]of e)if(!r.has(s)||!a(r.get(s),t))return!1;return!0}if(Array.isArray(e))return Array.isArray(r)?e.every(s=>r.some(t=>a(t,s))):!1;if(r===null||typeof r!="object"||Array.isArray(r))return!1;const n=r;return Object.entries(e).every(([s,t])=>s in n&&a(n[s],t))}const P=(r,e)=>r.safeParse(e).success,v=r=>r!=null,N=r=>r==null,m=r=>Array.isArray(r),p=(r,e)=>{const n=(s,t=[])=>{e(s,t),Array.isArray(s)||m(s)?s.forEach((i,f)=>n(i,[...t,f.toString()])):typeof s=="object"&&s!==null&&Object.entries(s).forEach(([i,f])=>n(f,[...t,i]))};n(r)},h=(r,e)=>{const n=[];return p(r,(s,t)=>{e(s,t)&&n.push({value:s,path:t})}),n},R=[o.z.string(),o.z.number(),o.z.boolean(),o.z.null()],S=o.z.union(R),l=o.z.lazy(()=>o.z.record(u)),y=o.z.lazy(()=>o.z.union([o.z.array(u),o.z.array(u).readonly()])),u=o.z.lazy(()=>o.z.union([S,l,y])),E=r=>typeof r=="string"||typeof r=="number"||typeof r=="boolean"||r===null,V=r=>l.safeParse(r).success,T=r=>y.safeParse(r).success,A=r=>!isNaN(Number(r))&&isFinite(Number(r)),J=r=>A(r)?Number(r).toString()===r:!1;exports.deepContains=a;exports.isGivenTypeSchema=P;exports.isJsonArray=T;exports.isJsonObject=V;exports.isJsonPrimitive=E;exports.isNonNullable=v;exports.isNullable=N;exports.isNumberString=A;exports.isPreciseNumberString=J;exports.isReadonlyArray=m;exports.jsonArraySchema=y;exports.jsonObjectSchema=l;exports.jsonPrimitiveSchema=S;exports.jsonTraverse=p;exports.jsonTraverseAndFind=h;exports.jsonValueSchema=u;
package/dist/index.mjs ADDED
@@ -0,0 +1,118 @@
1
+ import { z as o } from "zod";
2
+ function p(r) {
3
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4
+ }
5
+ var a, l;
6
+ function m() {
7
+ return l || (l = 1, a = function r(e, t) {
8
+ if (e === t) return !0;
9
+ if (e && t && typeof e == "object" && typeof t == "object") {
10
+ if (e.constructor !== t.constructor) return !1;
11
+ var s, n, f;
12
+ if (Array.isArray(e)) {
13
+ if (s = e.length, s != t.length) return !1;
14
+ for (n = s; n-- !== 0; )
15
+ if (!r(e[n], t[n])) return !1;
16
+ return !0;
17
+ }
18
+ if (e instanceof Map && t instanceof Map) {
19
+ if (e.size !== t.size) return !1;
20
+ for (n of e.entries())
21
+ if (!t.has(n[0])) return !1;
22
+ for (n of e.entries())
23
+ if (!r(n[1], t.get(n[0]))) return !1;
24
+ return !0;
25
+ }
26
+ if (e instanceof Set && t instanceof Set) {
27
+ if (e.size !== t.size) return !1;
28
+ for (n of e.entries())
29
+ if (!t.has(n[0])) return !1;
30
+ return !0;
31
+ }
32
+ if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
33
+ if (s = e.length, s != t.length) return !1;
34
+ for (n = s; n-- !== 0; )
35
+ if (e[n] !== t[n]) return !1;
36
+ return !0;
37
+ }
38
+ if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
39
+ if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
40
+ if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
41
+ if (f = Object.keys(e), s = f.length, s !== Object.keys(t).length) return !1;
42
+ for (n = s; n-- !== 0; )
43
+ if (!Object.prototype.hasOwnProperty.call(t, f[n])) return !1;
44
+ for (n = s; n-- !== 0; ) {
45
+ var i = f[n];
46
+ if (!r(e[i], t[i])) return !1;
47
+ }
48
+ return !0;
49
+ }
50
+ return e !== e && t !== t;
51
+ }), a;
52
+ }
53
+ var A = m();
54
+ const O = /* @__PURE__ */ p(A);
55
+ function u(r, e) {
56
+ if (e === null || typeof e != "object" || e instanceof Date || e instanceof RegExp)
57
+ return O(r, e);
58
+ if (e instanceof Set) {
59
+ if (!(r instanceof Set)) return !1;
60
+ for (const s of e) if (!r.has(s)) return !1;
61
+ return !0;
62
+ }
63
+ if (e instanceof Map) {
64
+ if (!(r instanceof Map)) return !1;
65
+ for (const [s, n] of e)
66
+ if (!r.has(s) || !u(r.get(s), n)) return !1;
67
+ return !0;
68
+ }
69
+ if (Array.isArray(e))
70
+ return Array.isArray(r) ? e.every(
71
+ (s) => r.some((n) => u(n, s))
72
+ ) : !1;
73
+ if (r === null || typeof r != "object" || Array.isArray(r))
74
+ return !1;
75
+ const t = r;
76
+ return Object.entries(e).every(
77
+ ([s, n]) => s in t && u(t[s], n)
78
+ );
79
+ }
80
+ const v = (r, e) => r.safeParse(e).success, z = (r) => r != null, E = (r) => r == null, S = (r) => Array.isArray(r), g = (r, e) => {
81
+ const t = (s, n = []) => {
82
+ e(s, n), Array.isArray(s) || S(s) ? s.forEach(
83
+ (f, i) => t(f, [...n, i.toString()])
84
+ ) : typeof s == "object" && s !== null && Object.entries(s).forEach(
85
+ ([f, i]) => t(i, [...n, f])
86
+ );
87
+ };
88
+ t(r);
89
+ }, R = (r, e) => {
90
+ const t = [];
91
+ return g(r, (s, n) => {
92
+ e(s, n) && t.push({ value: s, path: n });
93
+ }), t;
94
+ }, P = [o.string(), o.number(), o.boolean(), o.null()], d = o.union(P), y = o.lazy(
95
+ () => o.record(c)
96
+ ), j = o.lazy(
97
+ () => o.union([o.array(c), o.array(c).readonly()])
98
+ ), c = o.lazy(
99
+ () => o.union([d, y, j])
100
+ ), V = (r) => typeof r == "string" || typeof r == "number" || typeof r == "boolean" || r === null, M = (r) => y.safeParse(r).success, q = (r) => j.safeParse(r).success, N = (r) => !isNaN(Number(r)) && isFinite(Number(r)), w = (r) => N(r) ? Number(r).toString() === r : !1;
101
+ export {
102
+ u as deepContains,
103
+ v as isGivenTypeSchema,
104
+ q as isJsonArray,
105
+ M as isJsonObject,
106
+ V as isJsonPrimitive,
107
+ z as isNonNullable,
108
+ E as isNullable,
109
+ N as isNumberString,
110
+ w as isPreciseNumberString,
111
+ S as isReadonlyArray,
112
+ j as jsonArraySchema,
113
+ y as jsonObjectSchema,
114
+ d as jsonPrimitiveSchema,
115
+ g as jsonTraverse,
116
+ R as jsonTraverseAndFind,
117
+ c as jsonValueSchema
118
+ };
@@ -0,0 +1,5 @@
1
+ export * from './jsonTraverse';
2
+ export * from './jsonTraverseAndFind';
3
+ export * from './predicates';
4
+ export * from './schema';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/json/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { JsonValue } from './schema';
2
+ export declare const jsonTraverse: (obj: JsonValue, callback: (value: JsonValue, path: string[]) => void) => void;
3
+ //# sourceMappingURL=jsonTraverse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonTraverse.d.ts","sourceRoot":"","sources":["../../src/json/jsonTraverse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,YAAY,QAClB,SAAS,YACJ,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,SAiBrD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { JsonValue } from './schema';
2
+ export declare const jsonTraverseAndFind: (obj: JsonValue, predicate: (value: JsonValue, path: string[]) => boolean) => {
3
+ value: JsonValue;
4
+ path: string[];
5
+ }[];
6
+ //# sourceMappingURL=jsonTraverseAndFind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonTraverseAndFind.d.ts","sourceRoot":"","sources":["../../src/json/jsonTraverseAndFind.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,eAAO,MAAM,mBAAmB,QACzB,SAAS,aACH,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,KACvD;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,EAUtC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { JsonArray, JsonObject, JsonPrimitive } from './schema';
2
+ export declare const isJsonPrimitive: (value: unknown) => value is JsonPrimitive;
3
+ export declare const isJsonObject: (value: unknown) => value is JsonObject;
4
+ export declare const isJsonArray: (value: unknown) => value is JsonArray;
5
+ //# sourceMappingURL=predicates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/json/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAET,UAAU,EAEV,aAAa,EACd,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,eAAe,UAAW,OAAO,KAAG,KAAK,IAAI,aAOzD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,OAAO,KAAG,KAAK,IAAI,UAGtD,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,OAAO,KAAG,KAAK,IAAI,SAGrD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare const jsonPrimitiveSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
3
+ export type JsonPrimitive = z.infer<typeof jsonPrimitiveSchema>;
4
+ export type JsonObject = {
5
+ [Key in string]: JsonValue;
6
+ };
7
+ export type JsonArray = JsonValue[] | readonly JsonValue[];
8
+ /**
9
+ * JSON value
10
+ * Cannot be a function, a symbol, or undefined
11
+ */
12
+ export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
13
+ export declare const jsonObjectSchema: z.ZodType<JsonObject>;
14
+ export declare const jsonArraySchema: z.ZodType<JsonArray>;
15
+ export declare const jsonValueSchema: z.ZodType<JsonValue>;
16
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/json/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB,0EAA0B,CAAC;AAE3D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,MAAM,MAAM,UAAU,GAAG;KAAG,GAAG,IAAI,MAAM,GAAG,SAAS;CAAE,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG,SAAS,EAAE,GAAG,SAAS,SAAS,EAAE,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,CAAC;AAE/D,eAAO,MAAM,gBAAgB,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAElD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAEhD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAEhD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { isNumberString } from './isNumberString';
2
+ export { isPreciseNumberString } from './isPreciseNumberString';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/numbers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const isNumberString: (value: string) => boolean;
2
+ //# sourceMappingURL=isNumberString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNumberString.d.ts","sourceRoot":"","sources":["../../src/numbers/isNumberString.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,UAAW,MAAM,YAE3C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const isPreciseNumberString: (value: string) => boolean;
2
+ //# sourceMappingURL=isPreciseNumberString.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPreciseNumberString.d.ts","sourceRoot":"","sources":["../../src/numbers/isPreciseNumberString.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,UAAW,MAAM,YAOlD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './isGivenTypeSchema';
2
+ export * from './isNonNullable';
3
+ export * from './isNullable';
4
+ export * from './isReadonlyArray';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typeGuards/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const isGivenTypeSchema: <Output = unknown, Def extends z.ZodTypeDef = z.ZodTypeDef, Input = Output>(schema: z.ZodType<Output, Def, Input>, value: unknown) => value is Output;
3
+ //# sourceMappingURL=isGivenTypeSchema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isGivenTypeSchema.d.ts","sourceRoot":"","sources":["../../src/typeGuards/isGivenTypeSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB,GAC5B,MAAM,YACN,GAAG,SAAS,CAAC,CAAC,UAAU,iBACxB,KAAK,mBAEG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,SAC9B,OAAO,KACb,KAAK,IAAI,MAEX,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const isNonNullable: <T>(input: null | undefined | T) => input is T;
2
+ //# sourceMappingURL=isNonNullable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNonNullable.d.ts","sourceRoot":"","sources":["../../src/typeGuards/isNonNullable.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,IAAI,GAAG,SAAS,GAAG,CAAC,KAAG,KAAK,IAAI,CAEvE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const isNullable: <T>(input: null | undefined | T) => input is null | undefined;
2
+ //# sourceMappingURL=isNullable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNullable.d.ts","sourceRoot":"","sources":["../../src/typeGuards/isNullable.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,CAAC,SACnB,IAAI,GAAG,SAAS,GAAG,CAAC,KAC1B,KAAK,IAAI,IAAI,GAAG,SAAkD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const isReadonlyArray: <T>(value: unknown) => value is readonly T[];
2
+ //# sourceMappingURL=isReadonlyArray.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isReadonlyArray.d.ts","sourceRoot":"","sources":["../../src/typeGuards/isReadonlyArray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,OAAO,KAAG,KAAK,IAAI,SAAS,CAAC,EACjD,CAAC"}
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@blue-labs/shared-utils",
3
+ "version": "1.20.0",
4
+ "dependencies": {
5
+ "fast-deep-equal": "3.1.3",
6
+ "zod": "3.23.8"
7
+ },
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.mjs",
10
+ "types": "./dist/index.d.ts",
11
+ "files": [
12
+ "dist",
13
+ "!**/*.tsbuildinfo",
14
+ "!dist/package.json"
15
+ ],
16
+ "license": "MIT",
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/bluecontract/blue-js.git"
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.mjs",
28
+ "require": "./dist/index.js"
29
+ }
30
+ }
31
+ }