@xyo-network/wasm 3.9.34 → 3.9.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/wasm",
3
- "version": "3.9.34",
3
+ "version": "3.9.36",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,22 +21,22 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/neutral/index.d.ts",
24
+ "types": "./dist/types/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/neutral/index.d.ts",
30
+ "types": "dist/types/index.d.ts",
31
31
  "dependencies": {
32
32
  "wasm-feature-detect": "^1.8.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@xylabs/ts-scripts-yarn3": "^5.0.39",
36
- "@xylabs/tsconfig": "^5.0.39",
37
- "@xylabs/vitest-extended": "^4.5.7",
35
+ "@xylabs/ts-scripts-yarn3": "^6.0.5",
36
+ "@xylabs/tsconfig": "^6.0.5",
37
+ "@xylabs/vitest-extended": "^4.6.0",
38
38
  "typescript": "^5.8.2",
39
- "vitest": "^3.0.7"
39
+ "vitest": "^3.0.8"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
@@ -1,116 +0,0 @@
1
- export declare const WasmFeatureDetectors: {
2
- readonly bigInt: () => Promise<boolean>;
3
- readonly bulkMemory: () => Promise<boolean>;
4
- readonly exceptions: () => Promise<boolean>;
5
- readonly extendedConst: () => Promise<boolean>;
6
- readonly gc: () => Promise<boolean>;
7
- readonly memory64: () => Promise<boolean>;
8
- readonly multiValue: () => Promise<boolean>;
9
- readonly mutableGlobals: () => Promise<boolean>;
10
- readonly referenceTypes: () => {
11
- new (executor: (resolve: (value: boolean | PromiseLike<boolean>) => void, reject: (reason?: any) => void) => void): Promise<boolean>;
12
- all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
13
- all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
14
- race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
15
- race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
16
- readonly prototype: Promise<any>;
17
- reject<T = never>(reason?: any): Promise<T>;
18
- resolve(): Promise<void>;
19
- resolve<T>(value: T): Promise<Awaited<T>>;
20
- resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
21
- allSettled<T extends readonly unknown[] | []>(values: T): Promise<{
22
- /**
23
- * Is Wasm allowed
24
- */
25
- - /**
26
- * Is Wasm allowed
27
- */readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;
28
- allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
29
- any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
30
- any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
31
- withResolvers<T>(): PromiseWithResolvers<T>;
32
- try<T, U extends unknown[]>(callbackFn: (...args: U) => T | PromiseLike<T>, ...args: U): Promise<Awaited<T>>;
33
- readonly [Symbol.species]: PromiseConstructor;
34
- };
35
- readonly relaxedSimd: () => Promise<boolean>;
36
- readonly saturatedFloatToInt: () => Promise<boolean>;
37
- readonly signExtensions: () => Promise<boolean>;
38
- readonly simd: () => Promise<boolean>;
39
- readonly streamingCompilation: () => Promise<boolean>;
40
- readonly tailCall: () => Promise<boolean>;
41
- readonly threads: () => Promise<boolean>;
42
- };
43
- export type WasmFeature = keyof typeof WasmFeatureDetectors;
44
- export declare class WasmSupport {
45
- protected desiredFeatures: WasmFeature[];
46
- private _allowWasm;
47
- private _featureSupport;
48
- private _forceWasm;
49
- private _isInitialized;
50
- private _isWasmFeatureSetSupported;
51
- /**
52
- * Instance constructor for use where async instantiation
53
- * is not possible. Where possible, prefer the static
54
- * create method over use of this constructor directly
55
- * as no initialization (feature detection) is able to
56
- * be done here
57
- * @param desiredFeatures The desired feature set
58
- */
59
- constructor(desiredFeatures: WasmFeature[]);
60
- /**
61
- * Is Wasm allowed
62
- */
63
- get allowWasm(): boolean;
64
- /**
65
- * Whether or not to allow WASM usage
66
- */
67
- set allowWasm(v: boolean);
68
- /**
69
- * Whether or not Wasm should be used based on the desired
70
- * feature set, initialization state, or force-use settings
71
- */
72
- get canUseWasm(): boolean;
73
- /**
74
- * Returns a object containing a property for each desired wasm feature
75
- * with a boolean value indicating whether or not the feature is supported
76
- */
77
- get featureSupport(): Readonly<Partial<Record<WasmFeature, boolean>>>;
78
- /**
79
- * Force use of Wasm
80
- */
81
- get forceWasm(): boolean;
82
- /**
83
- * Whether or not to force Wasm usage
84
- */
85
- set forceWasm(v: boolean);
86
- /**
87
- * Whether or not Wasm is supported based
88
- * on the desired feature set
89
- */
90
- get isDesiredFeatureSetSupported(): boolean;
91
- /**
92
- * Whether or not Wasm detection has been run
93
- * for the desired feature set
94
- */
95
- get isInitialized(): boolean;
96
- /**
97
- * Static creation & async initialization for use where
98
- * async instantiation is possible
99
- * @param desiredFeatures The desired feature set
100
- * @returns An initialized instance of the class with detection
101
- * for the desired feature set
102
- */
103
- static create(desiredFeatures: WasmFeature[]): Promise<WasmSupport>;
104
- /**
105
- * Checks for specific wasm features
106
- * @param features The list of features to check for
107
- * @returns True if all the features are supported, false otherwise
108
- */
109
- featureCheck(features: WasmFeature[]): Promise<boolean>;
110
- /**
111
- * Does feature detection for the desired feature set
112
- */
113
- initialize(): Promise<void>;
114
- protected detectDesiredFeatures(): Promise<void>;
115
- }
116
- //# sourceMappingURL=WasmSupport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WasmSupport.d.ts","sourceRoot":"","sources":["../../src/WasmSupport.ts"],"names":[],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B,IAAI,OAAO,CAAC,IAAI,CAAC;CAQvD"}
@@ -1,2 +0,0 @@
1
- export * from './WasmSupport.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
@@ -1,116 +0,0 @@
1
- export declare const WasmFeatureDetectors: {
2
- readonly bigInt: () => Promise<boolean>;
3
- readonly bulkMemory: () => Promise<boolean>;
4
- readonly exceptions: () => Promise<boolean>;
5
- readonly extendedConst: () => Promise<boolean>;
6
- readonly gc: () => Promise<boolean>;
7
- readonly memory64: () => Promise<boolean>;
8
- readonly multiValue: () => Promise<boolean>;
9
- readonly mutableGlobals: () => Promise<boolean>;
10
- readonly referenceTypes: () => {
11
- new (executor: (resolve: (value: boolean | PromiseLike<boolean>) => void, reject: (reason?: any) => void) => void): Promise<boolean>;
12
- all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
13
- all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
14
- race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
15
- race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
16
- readonly prototype: Promise<any>;
17
- reject<T = never>(reason?: any): Promise<T>;
18
- resolve(): Promise<void>;
19
- resolve<T>(value: T): Promise<Awaited<T>>;
20
- resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
21
- allSettled<T extends readonly unknown[] | []>(values: T): Promise<{
22
- /**
23
- * Is Wasm allowed
24
- */
25
- - /**
26
- * Is Wasm allowed
27
- */readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;
28
- allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
29
- any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
30
- any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
31
- withResolvers<T>(): PromiseWithResolvers<T>;
32
- try<T, U extends unknown[]>(callbackFn: (...args: U) => T | PromiseLike<T>, ...args: U): Promise<Awaited<T>>;
33
- readonly [Symbol.species]: PromiseConstructor;
34
- };
35
- readonly relaxedSimd: () => Promise<boolean>;
36
- readonly saturatedFloatToInt: () => Promise<boolean>;
37
- readonly signExtensions: () => Promise<boolean>;
38
- readonly simd: () => Promise<boolean>;
39
- readonly streamingCompilation: () => Promise<boolean>;
40
- readonly tailCall: () => Promise<boolean>;
41
- readonly threads: () => Promise<boolean>;
42
- };
43
- export type WasmFeature = keyof typeof WasmFeatureDetectors;
44
- export declare class WasmSupport {
45
- protected desiredFeatures: WasmFeature[];
46
- private _allowWasm;
47
- private _featureSupport;
48
- private _forceWasm;
49
- private _isInitialized;
50
- private _isWasmFeatureSetSupported;
51
- /**
52
- * Instance constructor for use where async instantiation
53
- * is not possible. Where possible, prefer the static
54
- * create method over use of this constructor directly
55
- * as no initialization (feature detection) is able to
56
- * be done here
57
- * @param desiredFeatures The desired feature set
58
- */
59
- constructor(desiredFeatures: WasmFeature[]);
60
- /**
61
- * Is Wasm allowed
62
- */
63
- get allowWasm(): boolean;
64
- /**
65
- * Whether or not to allow WASM usage
66
- */
67
- set allowWasm(v: boolean);
68
- /**
69
- * Whether or not Wasm should be used based on the desired
70
- * feature set, initialization state, or force-use settings
71
- */
72
- get canUseWasm(): boolean;
73
- /**
74
- * Returns a object containing a property for each desired wasm feature
75
- * with a boolean value indicating whether or not the feature is supported
76
- */
77
- get featureSupport(): Readonly<Partial<Record<WasmFeature, boolean>>>;
78
- /**
79
- * Force use of Wasm
80
- */
81
- get forceWasm(): boolean;
82
- /**
83
- * Whether or not to force Wasm usage
84
- */
85
- set forceWasm(v: boolean);
86
- /**
87
- * Whether or not Wasm is supported based
88
- * on the desired feature set
89
- */
90
- get isDesiredFeatureSetSupported(): boolean;
91
- /**
92
- * Whether or not Wasm detection has been run
93
- * for the desired feature set
94
- */
95
- get isInitialized(): boolean;
96
- /**
97
- * Static creation & async initialization for use where
98
- * async instantiation is possible
99
- * @param desiredFeatures The desired feature set
100
- * @returns An initialized instance of the class with detection
101
- * for the desired feature set
102
- */
103
- static create(desiredFeatures: WasmFeature[]): Promise<WasmSupport>;
104
- /**
105
- * Checks for specific wasm features
106
- * @param features The list of features to check for
107
- * @returns True if all the features are supported, false otherwise
108
- */
109
- featureCheck(features: WasmFeature[]): Promise<boolean>;
110
- /**
111
- * Does feature detection for the desired feature set
112
- */
113
- initialize(): Promise<void>;
114
- protected detectDesiredFeatures(): Promise<void>;
115
- }
116
- //# sourceMappingURL=WasmSupport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WasmSupport.d.ts","sourceRoot":"","sources":["../../src/WasmSupport.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,oBAAoB;;;;;;;;;;iGAoCa,CAAC;;qEAoB7C,CAAD;;;;;;;;;QAlBC;;WAEG;QACH,CAHF,CAAE;;WAEG;;;;;iDAQqB,GAAG;;;;;;;;;;CA/BnB,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,oBAAoB,CAAA;AAE3D,qBAAa,WAAW;IAeV,SAAS,CAAC,eAAe,EAAE,WAAW,EAAE;IAdpD,OAAO,CAAC,UAAU,CAAO;IACzB,OAAO,CAAC,eAAe,CAA4C;IACnE,OAAO,CAAC,UAAU,CAAQ;IAC1B,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,0BAA0B,CAAQ;IAE1C;;;;;;;OAOG;gBACmB,eAAe,EAAE,WAAW,EAAE;IAEpD;;OAEG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;OAEG;IACH,IAAI,SAAS,CAAC,CAAC,EAAE,OAAO,EAEvB;IAED;;;OAGG;IACH,IAAI,UAAU,IAAI,OAAO,CASxB;IAED;;;OAGG;IACH,IAAI,cAAc,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAEpE;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;OAEG;IACH,IAAI,SAAS,CAAC,CAAC,EAAE,OAAO,EAEvB;IAED;;;OAGG;IACH,IAAI,4BAA4B,IAAI,OAAO,CAE1C;IAED;;;OAGG;IACH,IAAI,aAAa,IAAI,OAAO,CAE3B;IAED;;;;;;OAMG;WACU,MAAM,CAAC,eAAe,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;IAMzE;;;;OAIG;IACG,YAAY,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAK7D;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;cAMjB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC;CAQvD"}
@@ -1,2 +0,0 @@
1
- export * from './WasmSupport.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
File without changes
File without changes
File without changes
File without changes