@xylabs/platform 2.12.30 → 2.12.31

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.
@@ -33,5 +33,5 @@ var isWebworker = () => {
33
33
  return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
34
34
  };
35
35
  var getGlobal = () => isBrowser() ? window : isWebworker() ? self : globalThis;
36
- var subtle = getGlobal().subtle;
36
+ var subtle = getGlobal().crypto.subtle;
37
37
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/browser/index.ts"],"sourcesContent":["import type { subtle as subtleType } from 'crypto'\n\nexport const isBrowser = () => {\n return typeof window !== 'undefined' && typeof window?.document !== 'undefined'\n}\n\nexport const isWebworker = () => {\n return typeof self === 'object' && self.constructor?.name === 'DedicatedWorkerGlobalScope'\n}\n\nexport const getGlobal = <T extends object>() => (isBrowser() ? (window as unknown as T) : isWebworker() ? (self as unknown as T) : globalThis)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const subtle = (getGlobal() as any).subtle as typeof subtleType\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,YAAY,MAAM;AAC7B,SAAO,OAAO,WAAW,eAAe,OAAO,QAAQ,aAAa;AACtE;AAEO,IAAM,cAAc,MAAM;AAC/B,SAAO,OAAO,SAAS,YAAY,KAAK,aAAa,SAAS;AAChE;AAEO,IAAM,YAAY,MAAyB,UAAU,IAAK,SAA0B,YAAY,IAAK,OAAwB;AAG7H,IAAM,SAAU,UAAU,EAAU;","names":[]}
1
+ {"version":3,"sources":["../../src/browser/index.ts"],"sourcesContent":["import type { subtle as subtleType } from 'crypto'\n\nexport const isBrowser = () => {\n return typeof window !== 'undefined' && typeof window?.document !== 'undefined'\n}\n\nexport const isWebworker = () => {\n return typeof self === 'object' && self.constructor?.name === 'DedicatedWorkerGlobalScope'\n}\n\nexport const getGlobal = <T extends object>() => (isBrowser() ? (window as unknown as T) : isWebworker() ? (self as unknown as T) : globalThis)\n\nexport const subtle = getGlobal<Window>().crypto.subtle as typeof subtleType\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,YAAY,MAAM;AAC7B,SAAO,OAAO,WAAW,eAAe,OAAO,QAAQ,aAAa;AACtE;AAEO,IAAM,cAAc,MAAM;AAC/B,SAAO,OAAO,SAAS,YAAY,KAAK,aAAa,SAAS;AAChE;AAEO,IAAM,YAAY,MAAyB,UAAU,IAAK,SAA0B,YAAY,IAAK,OAAwB;AAE7H,IAAM,SAAS,UAAkB,EAAE,OAAO;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,SAAS,eAErB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,SAAS,+CAAyH,CAAA;AAG/I,eAAO,MAAM,MAAM,yCAAmD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,SAAS,eAErB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,SAAS,+CAAyH,CAAA;AAE/I,eAAO,MAAM,MAAM,yCAAyD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,SAAS,eAErB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,SAAS,+CAAyH,CAAA;AAG/I,eAAO,MAAM,MAAM,yCAAmD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,SAAS,eAErB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,SAAS,+CAAyH,CAAA;AAE/I,eAAO,MAAM,MAAM,yCAAyD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,SAAS,eAErB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,SAAS,+CAAyH,CAAA;AAG/I,eAAO,MAAM,MAAM,yCAAmD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/browser/index.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,SAAS,eAErB,CAAA;AAED,eAAO,MAAM,WAAW,eAEvB,CAAA;AAED,eAAO,MAAM,SAAS,+CAAyH,CAAA;AAE/I,eAAO,MAAM,MAAM,yCAAyD,CAAA"}
@@ -6,7 +6,7 @@ var isWebworker = () => {
6
6
  return typeof self === "object" && self.constructor?.name === "DedicatedWorkerGlobalScope";
7
7
  };
8
8
  var getGlobal = () => isBrowser() ? window : isWebworker() ? self : globalThis;
9
- var subtle = getGlobal().subtle;
9
+ var subtle = getGlobal().crypto.subtle;
10
10
  export {
11
11
  getGlobal,
12
12
  isBrowser,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/browser/index.ts"],"sourcesContent":["import type { subtle as subtleType } from 'crypto'\n\nexport const isBrowser = () => {\n return typeof window !== 'undefined' && typeof window?.document !== 'undefined'\n}\n\nexport const isWebworker = () => {\n return typeof self === 'object' && self.constructor?.name === 'DedicatedWorkerGlobalScope'\n}\n\nexport const getGlobal = <T extends object>() => (isBrowser() ? (window as unknown as T) : isWebworker() ? (self as unknown as T) : globalThis)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const subtle = (getGlobal() as any).subtle as typeof subtleType\n"],"mappings":";AAEO,IAAM,YAAY,MAAM;AAC7B,SAAO,OAAO,WAAW,eAAe,OAAO,QAAQ,aAAa;AACtE;AAEO,IAAM,cAAc,MAAM;AAC/B,SAAO,OAAO,SAAS,YAAY,KAAK,aAAa,SAAS;AAChE;AAEO,IAAM,YAAY,MAAyB,UAAU,IAAK,SAA0B,YAAY,IAAK,OAAwB;AAG7H,IAAM,SAAU,UAAU,EAAU;","names":[]}
1
+ {"version":3,"sources":["../../src/browser/index.ts"],"sourcesContent":["import type { subtle as subtleType } from 'crypto'\n\nexport const isBrowser = () => {\n return typeof window !== 'undefined' && typeof window?.document !== 'undefined'\n}\n\nexport const isWebworker = () => {\n return typeof self === 'object' && self.constructor?.name === 'DedicatedWorkerGlobalScope'\n}\n\nexport const getGlobal = <T extends object>() => (isBrowser() ? (window as unknown as T) : isWebworker() ? (self as unknown as T) : globalThis)\n\nexport const subtle = getGlobal<Window>().crypto.subtle as typeof subtleType\n"],"mappings":";AAEO,IAAM,YAAY,MAAM;AAC7B,SAAO,OAAO,WAAW,eAAe,OAAO,QAAQ,aAAa;AACtE;AAEO,IAAM,cAAc,MAAM;AAC/B,SAAO,OAAO,SAAS,YAAY,KAAK,aAAa,SAAS;AAChE;AAEO,IAAM,YAAY,MAAyB,UAAU,IAAK,SAA0B,YAAY,IAAK,OAAwB;AAE7H,IAAM,SAAS,UAAkB,EAAE,OAAO;","names":[]}
package/package.json CHANGED
@@ -59,6 +59,6 @@
59
59
  "url": "https://github.com/xylabs/sdk-js.git"
60
60
  },
61
61
  "sideEffects": false,
62
- "version": "2.12.30",
62
+ "version": "2.12.31",
63
63
  "type": "module"
64
64
  }
@@ -10,5 +10,4 @@ export const isWebworker = () => {
10
10
 
11
11
  export const getGlobal = <T extends object>() => (isBrowser() ? (window as unknown as T) : isWebworker() ? (self as unknown as T) : globalThis)
12
12
 
13
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
- export const subtle = (getGlobal() as any).subtle as typeof subtleType
13
+ export const subtle = getGlobal<Window>().crypto.subtle as typeof subtleType