@layerzerolabs/typescript-utils 0.2.116 → 0.2.118

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.
@@ -0,0 +1,9 @@
1
+ import { init_esm_shims, __name } from './ZVSZ2LTA.js';
2
+
3
+ // src/promise.ts
4
+ init_esm_shims();
5
+ var isPromise = /* @__PURE__ */ __name((v) => v !== null && typeof v === "object" && typeof v.then === "function" && typeof v.catch === "function", "isPromise");
6
+
7
+ export { isPromise };
8
+ //# sourceMappingURL=WUFNODVY.js.map
9
+ //# sourceMappingURL=WUFNODVY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/promise.ts"],"names":["isPromise","v","then","catch"],"mappings":";;;AAAA,cAAA,EAAA;AAAO,IAAMA,SAAAA,mBAAY,MAAA,CAAA,CAACC,CAAAA,KACtBA,CAAAA,KAAM,QACN,OAAOA,CAAAA,KAAM,QAAA,IACb,OAAQA,EAA8BC,IAAAA,KAAS,UAAA,IAC/C,OAAQD,CAAAA,CAA8BE,UAAU,UAAA,EAJ3B,WAAA","file":"WUFNODVY.js","sourcesContent":["export const isPromise = (v: unknown): v is Promise<unknown> =>\n v !== null &&\n typeof v === 'object' &&\n typeof (v as Record<string, unknown>).then === 'function' &&\n typeof (v as Record<string, unknown>).catch === 'function';\n"]}
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './lastOf';
10
10
  export * from './maybeUndefined';
11
11
  export * from './merge';
12
12
  export * from './methodOf';
13
+ export * from './promise';
13
14
  export * from './removeNever';
14
15
  export * from './strings';
15
16
  export * from './tuples';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ import './FPYLH7RK.js';
8
8
  import './6QUS2SE6.js';
9
9
  import './3LHZ7V3Z.js';
10
10
  import './I3HQPZG3.js';
11
+ export { isPromise } from './WUFNODVY.js';
11
12
  import './NAAXLSE5.js';
12
13
  import './VKIXMBVF.js';
13
14
  import './S6NNED46.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,cAAA,EAAA","file":"index.js","sourcesContent":["export * from './advancedRecord';\nexport * from './asyncify';\nexport * from './branded';\nexport * from './constructor';\nexport * from './deep';\nexport * from './disallowedAny';\nexport * from './functionalUtils';\nexport * from './identity';\nexport * from './lastOf';\nexport * from './maybeUndefined';\nexport * from './merge';\nexport * from './methodOf';\nexport * from './removeNever';\nexport * from './strings';\nexport * from './tuples';\nexport * from './valueOf';\nexport * from './viem';\nexport * from './withRequired';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,cAAA,EAAA","file":"index.js","sourcesContent":["export * from './advancedRecord';\nexport * from './asyncify';\nexport * from './branded';\nexport * from './constructor';\nexport * from './deep';\nexport * from './disallowedAny';\nexport * from './functionalUtils';\nexport * from './identity';\nexport * from './lastOf';\nexport * from './maybeUndefined';\nexport * from './merge';\nexport * from './methodOf';\nexport * from './promise';\nexport * from './removeNever';\nexport * from './strings';\nexport * from './tuples';\nexport * from './valueOf';\nexport * from './viem';\nexport * from './withRequired';\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const isPromise: (v: unknown) => v is Promise<unknown>;
2
+ //# sourceMappingURL=promise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../src/promise.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,OAAO,CAAC,OAAO,CAIG,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { isPromise } from './WUFNODVY.js';
2
+ import './ZVSZ2LTA.js';
3
+ //# sourceMappingURL=promise.js.map
4
+ //# sourceMappingURL=promise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"promise.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/typescript-utils",
3
- "version": "0.2.116",
3
+ "version": "0.2.118",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,8 +18,8 @@
18
18
  "devDependencies": {
19
19
  "tsup": "^8.4.0",
20
20
  "vitest": "^3.2.6",
21
- "@layerzerolabs/tsup-configuration": "0.2.116",
22
- "@layerzerolabs/typescript-configuration": "0.2.116"
21
+ "@layerzerolabs/typescript-configuration": "0.2.118",
22
+ "@layerzerolabs/tsup-configuration": "0.2.118"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public",