@xyo-network/wasm
Advanced tools
Comparing version 2.110.10 to 2.110.11
@@ -1,6 +0,19 @@ | ||
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
// src/WasmSupport.ts | ||
import { bigInt, bulkMemory, exceptions, extendedConst, gc, memory64, multiValue, mutableGlobals, relaxedSimd, saturatedFloatToInt, signExtensions, simd, streamingCompilation, tailCall, threads } from "wasm-feature-detect"; | ||
import { | ||
bigInt, | ||
bulkMemory, | ||
exceptions, | ||
extendedConst, | ||
gc, | ||
memory64, | ||
multiValue, | ||
mutableGlobals, | ||
relaxedSimd, | ||
saturatedFloatToInt, | ||
signExtensions, | ||
simd, | ||
streamingCompilation, | ||
tailCall, | ||
threads | ||
} from "wasm-feature-detect"; | ||
var WasmFeatureDetectors = { | ||
@@ -15,3 +28,3 @@ bigInt, | ||
mutableGlobals, | ||
referenceTypes: /* @__PURE__ */ __name(() => Promise, "referenceTypes"), | ||
referenceTypes: () => Promise, | ||
relaxedSimd, | ||
@@ -26,30 +39,21 @@ saturatedFloatToInt, | ||
var WasmSupport = class _WasmSupport { | ||
static { | ||
__name(this, "WasmSupport"); | ||
} | ||
desiredFeatures; | ||
_allowWasm; | ||
_featureSupport; | ||
_forceWasm; | ||
_isInitialized; | ||
_isWasmFeatureSetSupported; | ||
/** | ||
* Instance constructor for use where async instantiation | ||
* is not possible. Where possible, prefer the static | ||
* create method over use of this constructor directly | ||
* as no initialization (feature detection) is able to | ||
* be done here | ||
* @param desiredFeatures The desired feature set | ||
*/ | ||
* Instance constructor for use where async instantiation | ||
* is not possible. Where possible, prefer the static | ||
* create method over use of this constructor directly | ||
* as no initialization (feature detection) is able to | ||
* be done here | ||
* @param desiredFeatures The desired feature set | ||
*/ | ||
constructor(desiredFeatures) { | ||
this.desiredFeatures = desiredFeatures; | ||
this._allowWasm = true; | ||
this._featureSupport = {}; | ||
this._forceWasm = false; | ||
this._isInitialized = false; | ||
this._isWasmFeatureSetSupported = false; | ||
} | ||
_allowWasm = true; | ||
_featureSupport = {}; | ||
_forceWasm = false; | ||
_isInitialized = false; | ||
_isWasmFeatureSetSupported = false; | ||
/** | ||
* Is Wasm allowed | ||
*/ | ||
* Is Wasm allowed | ||
*/ | ||
get allowWasm() { | ||
@@ -59,4 +63,4 @@ return this._allowWasm; | ||
/** | ||
* Whether or not to allow WASM usage | ||
*/ | ||
* Whether or not to allow WASM usage | ||
*/ | ||
set allowWasm(v) { | ||
@@ -66,5 +70,5 @@ this._allowWasm = v; | ||
/** | ||
* Whether or not Wasm should be used based on the desired | ||
* feature set, initialization state, or force-use settings | ||
*/ | ||
* Whether or not Wasm should be used based on the desired | ||
* feature set, initialization state, or force-use settings | ||
*/ | ||
get canUseWasm() { | ||
@@ -79,13 +83,11 @@ return ( | ||
/** | ||
* Returns a object containing a property for each desired wasm feature | ||
* with a boolean value indicating whether or not the feature is supported | ||
*/ | ||
* Returns a object containing a property for each desired wasm feature | ||
* with a boolean value indicating whether or not the feature is supported | ||
*/ | ||
get featureSupport() { | ||
return { | ||
...this._featureSupport | ||
}; | ||
return { ...this._featureSupport }; | ||
} | ||
/** | ||
* Force use of Wasm | ||
*/ | ||
* Force use of Wasm | ||
*/ | ||
get forceWasm() { | ||
@@ -95,4 +97,4 @@ return this._forceWasm; | ||
/** | ||
* Whether or not to force Wasm usage | ||
*/ | ||
* Whether or not to force Wasm usage | ||
*/ | ||
set forceWasm(v) { | ||
@@ -102,5 +104,5 @@ this._forceWasm = v; | ||
/** | ||
* Whether or not Wasm is supported based | ||
* on the desired feature set | ||
*/ | ||
* Whether or not Wasm is supported based | ||
* on the desired feature set | ||
*/ | ||
get isDesiredFeatureSetSupported() { | ||
@@ -110,5 +112,5 @@ return this._isWasmFeatureSetSupported; | ||
/** | ||
* Whether or not Wasm detection has been run | ||
* for the desired feature set | ||
*/ | ||
* Whether or not Wasm detection has been run | ||
* for the desired feature set | ||
*/ | ||
get isInitialized() { | ||
@@ -118,8 +120,8 @@ return this._isInitialized; | ||
/** | ||
* Static creation & async initialization for use where | ||
* async instantiation is possible | ||
* @param desiredFeatures The desired feature set | ||
* @returns An initialized instance of the class with detection | ||
* for the desired feature set | ||
*/ | ||
* Static creation & async initialization for use where | ||
* async instantiation is possible | ||
* @param desiredFeatures The desired feature set | ||
* @returns An initialized instance of the class with detection | ||
* for the desired feature set | ||
*/ | ||
static async create(desiredFeatures) { | ||
@@ -131,6 +133,6 @@ const instance = new _WasmSupport(desiredFeatures); | ||
/** | ||
* Checks for specific wasm features | ||
* @param features The list of features to check for | ||
* @returns True if all the features are supported, false otherwise | ||
*/ | ||
* Checks for specific wasm features | ||
* @param features The list of features to check for | ||
* @returns True if all the features are supported, false otherwise | ||
*/ | ||
async featureCheck(features) { | ||
@@ -141,4 +143,4 @@ const results = await Promise.all(features.map((feature) => WasmFeatureDetectors[feature]).map(async (detector) => await detector())); | ||
/** | ||
* Does feature detection for the desired feature set | ||
*/ | ||
* Does feature detection for the desired feature set | ||
*/ | ||
async initialize() { | ||
@@ -148,3 +150,2 @@ if (this._isInitialized) return; | ||
this._isInitialized = true; | ||
return; | ||
} | ||
@@ -151,0 +152,0 @@ async detectDesiredFeatures() { |
@@ -1,6 +0,19 @@ | ||
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
// src/WasmSupport.ts | ||
import { bigInt, bulkMemory, exceptions, extendedConst, gc, memory64, multiValue, mutableGlobals, relaxedSimd, saturatedFloatToInt, signExtensions, simd, streamingCompilation, tailCall, threads } from "wasm-feature-detect"; | ||
import { | ||
bigInt, | ||
bulkMemory, | ||
exceptions, | ||
extendedConst, | ||
gc, | ||
memory64, | ||
multiValue, | ||
mutableGlobals, | ||
relaxedSimd, | ||
saturatedFloatToInt, | ||
signExtensions, | ||
simd, | ||
streamingCompilation, | ||
tailCall, | ||
threads | ||
} from "wasm-feature-detect"; | ||
var WasmFeatureDetectors = { | ||
@@ -15,3 +28,3 @@ bigInt, | ||
mutableGlobals, | ||
referenceTypes: /* @__PURE__ */ __name(() => Promise, "referenceTypes"), | ||
referenceTypes: () => Promise, | ||
relaxedSimd, | ||
@@ -26,30 +39,21 @@ saturatedFloatToInt, | ||
var WasmSupport = class _WasmSupport { | ||
static { | ||
__name(this, "WasmSupport"); | ||
} | ||
desiredFeatures; | ||
_allowWasm; | ||
_featureSupport; | ||
_forceWasm; | ||
_isInitialized; | ||
_isWasmFeatureSetSupported; | ||
/** | ||
* Instance constructor for use where async instantiation | ||
* is not possible. Where possible, prefer the static | ||
* create method over use of this constructor directly | ||
* as no initialization (feature detection) is able to | ||
* be done here | ||
* @param desiredFeatures The desired feature set | ||
*/ | ||
* Instance constructor for use where async instantiation | ||
* is not possible. Where possible, prefer the static | ||
* create method over use of this constructor directly | ||
* as no initialization (feature detection) is able to | ||
* be done here | ||
* @param desiredFeatures The desired feature set | ||
*/ | ||
constructor(desiredFeatures) { | ||
this.desiredFeatures = desiredFeatures; | ||
this._allowWasm = true; | ||
this._featureSupport = {}; | ||
this._forceWasm = false; | ||
this._isInitialized = false; | ||
this._isWasmFeatureSetSupported = false; | ||
} | ||
_allowWasm = true; | ||
_featureSupport = {}; | ||
_forceWasm = false; | ||
_isInitialized = false; | ||
_isWasmFeatureSetSupported = false; | ||
/** | ||
* Is Wasm allowed | ||
*/ | ||
* Is Wasm allowed | ||
*/ | ||
get allowWasm() { | ||
@@ -59,4 +63,4 @@ return this._allowWasm; | ||
/** | ||
* Whether or not to allow WASM usage | ||
*/ | ||
* Whether or not to allow WASM usage | ||
*/ | ||
set allowWasm(v) { | ||
@@ -66,5 +70,5 @@ this._allowWasm = v; | ||
/** | ||
* Whether or not Wasm should be used based on the desired | ||
* feature set, initialization state, or force-use settings | ||
*/ | ||
* Whether or not Wasm should be used based on the desired | ||
* feature set, initialization state, or force-use settings | ||
*/ | ||
get canUseWasm() { | ||
@@ -79,13 +83,11 @@ return ( | ||
/** | ||
* Returns a object containing a property for each desired wasm feature | ||
* with a boolean value indicating whether or not the feature is supported | ||
*/ | ||
* Returns a object containing a property for each desired wasm feature | ||
* with a boolean value indicating whether or not the feature is supported | ||
*/ | ||
get featureSupport() { | ||
return { | ||
...this._featureSupport | ||
}; | ||
return { ...this._featureSupport }; | ||
} | ||
/** | ||
* Force use of Wasm | ||
*/ | ||
* Force use of Wasm | ||
*/ | ||
get forceWasm() { | ||
@@ -95,4 +97,4 @@ return this._forceWasm; | ||
/** | ||
* Whether or not to force Wasm usage | ||
*/ | ||
* Whether or not to force Wasm usage | ||
*/ | ||
set forceWasm(v) { | ||
@@ -102,5 +104,5 @@ this._forceWasm = v; | ||
/** | ||
* Whether or not Wasm is supported based | ||
* on the desired feature set | ||
*/ | ||
* Whether or not Wasm is supported based | ||
* on the desired feature set | ||
*/ | ||
get isDesiredFeatureSetSupported() { | ||
@@ -110,5 +112,5 @@ return this._isWasmFeatureSetSupported; | ||
/** | ||
* Whether or not Wasm detection has been run | ||
* for the desired feature set | ||
*/ | ||
* Whether or not Wasm detection has been run | ||
* for the desired feature set | ||
*/ | ||
get isInitialized() { | ||
@@ -118,8 +120,8 @@ return this._isInitialized; | ||
/** | ||
* Static creation & async initialization for use where | ||
* async instantiation is possible | ||
* @param desiredFeatures The desired feature set | ||
* @returns An initialized instance of the class with detection | ||
* for the desired feature set | ||
*/ | ||
* Static creation & async initialization for use where | ||
* async instantiation is possible | ||
* @param desiredFeatures The desired feature set | ||
* @returns An initialized instance of the class with detection | ||
* for the desired feature set | ||
*/ | ||
static async create(desiredFeatures) { | ||
@@ -131,6 +133,6 @@ const instance = new _WasmSupport(desiredFeatures); | ||
/** | ||
* Checks for specific wasm features | ||
* @param features The list of features to check for | ||
* @returns True if all the features are supported, false otherwise | ||
*/ | ||
* Checks for specific wasm features | ||
* @param features The list of features to check for | ||
* @returns True if all the features are supported, false otherwise | ||
*/ | ||
async featureCheck(features) { | ||
@@ -141,4 +143,4 @@ const results = await Promise.all(features.map((feature) => WasmFeatureDetectors[feature]).map(async (detector) => await detector())); | ||
/** | ||
* Does feature detection for the desired feature set | ||
*/ | ||
* Does feature detection for the desired feature set | ||
*/ | ||
async initialize() { | ||
@@ -148,3 +150,2 @@ if (this._isInitialized) return; | ||
this._isInitialized = true; | ||
return; | ||
} | ||
@@ -151,0 +152,0 @@ async detectDesiredFeatures() { |
@@ -1,6 +0,19 @@ | ||
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
// src/WasmSupport.ts | ||
import { bigInt, bulkMemory, exceptions, extendedConst, gc, memory64, multiValue, mutableGlobals, relaxedSimd, saturatedFloatToInt, signExtensions, simd, streamingCompilation, tailCall, threads } from "wasm-feature-detect"; | ||
import { | ||
bigInt, | ||
bulkMemory, | ||
exceptions, | ||
extendedConst, | ||
gc, | ||
memory64, | ||
multiValue, | ||
mutableGlobals, | ||
relaxedSimd, | ||
saturatedFloatToInt, | ||
signExtensions, | ||
simd, | ||
streamingCompilation, | ||
tailCall, | ||
threads | ||
} from "wasm-feature-detect"; | ||
var WasmFeatureDetectors = { | ||
@@ -15,3 +28,3 @@ bigInt, | ||
mutableGlobals, | ||
referenceTypes: /* @__PURE__ */ __name(() => Promise, "referenceTypes"), | ||
referenceTypes: () => Promise, | ||
relaxedSimd, | ||
@@ -25,28 +38,22 @@ saturatedFloatToInt, | ||
}; | ||
var _WasmSupport = class _WasmSupport { | ||
desiredFeatures; | ||
_allowWasm; | ||
_featureSupport; | ||
_forceWasm; | ||
_isInitialized; | ||
_isWasmFeatureSetSupported; | ||
var WasmSupport = class _WasmSupport { | ||
/** | ||
* Instance constructor for use where async instantiation | ||
* is not possible. Where possible, prefer the static | ||
* create method over use of this constructor directly | ||
* as no initialization (feature detection) is able to | ||
* be done here | ||
* @param desiredFeatures The desired feature set | ||
*/ | ||
* Instance constructor for use where async instantiation | ||
* is not possible. Where possible, prefer the static | ||
* create method over use of this constructor directly | ||
* as no initialization (feature detection) is able to | ||
* be done here | ||
* @param desiredFeatures The desired feature set | ||
*/ | ||
constructor(desiredFeatures) { | ||
this.desiredFeatures = desiredFeatures; | ||
this._allowWasm = true; | ||
this._featureSupport = {}; | ||
this._forceWasm = false; | ||
this._isInitialized = false; | ||
this._isWasmFeatureSetSupported = false; | ||
} | ||
_allowWasm = true; | ||
_featureSupport = {}; | ||
_forceWasm = false; | ||
_isInitialized = false; | ||
_isWasmFeatureSetSupported = false; | ||
/** | ||
* Is Wasm allowed | ||
*/ | ||
* Is Wasm allowed | ||
*/ | ||
get allowWasm() { | ||
@@ -56,4 +63,4 @@ return this._allowWasm; | ||
/** | ||
* Whether or not to allow WASM usage | ||
*/ | ||
* Whether or not to allow WASM usage | ||
*/ | ||
set allowWasm(v) { | ||
@@ -63,5 +70,5 @@ this._allowWasm = v; | ||
/** | ||
* Whether or not Wasm should be used based on the desired | ||
* feature set, initialization state, or force-use settings | ||
*/ | ||
* Whether or not Wasm should be used based on the desired | ||
* feature set, initialization state, or force-use settings | ||
*/ | ||
get canUseWasm() { | ||
@@ -76,13 +83,11 @@ return ( | ||
/** | ||
* Returns a object containing a property for each desired wasm feature | ||
* with a boolean value indicating whether or not the feature is supported | ||
*/ | ||
* Returns a object containing a property for each desired wasm feature | ||
* with a boolean value indicating whether or not the feature is supported | ||
*/ | ||
get featureSupport() { | ||
return { | ||
...this._featureSupport | ||
}; | ||
return { ...this._featureSupport }; | ||
} | ||
/** | ||
* Force use of Wasm | ||
*/ | ||
* Force use of Wasm | ||
*/ | ||
get forceWasm() { | ||
@@ -92,4 +97,4 @@ return this._forceWasm; | ||
/** | ||
* Whether or not to force Wasm usage | ||
*/ | ||
* Whether or not to force Wasm usage | ||
*/ | ||
set forceWasm(v) { | ||
@@ -99,5 +104,5 @@ this._forceWasm = v; | ||
/** | ||
* Whether or not Wasm is supported based | ||
* on the desired feature set | ||
*/ | ||
* Whether or not Wasm is supported based | ||
* on the desired feature set | ||
*/ | ||
get isDesiredFeatureSetSupported() { | ||
@@ -107,5 +112,5 @@ return this._isWasmFeatureSetSupported; | ||
/** | ||
* Whether or not Wasm detection has been run | ||
* for the desired feature set | ||
*/ | ||
* Whether or not Wasm detection has been run | ||
* for the desired feature set | ||
*/ | ||
get isInitialized() { | ||
@@ -115,8 +120,8 @@ return this._isInitialized; | ||
/** | ||
* Static creation & async initialization for use where | ||
* async instantiation is possible | ||
* @param desiredFeatures The desired feature set | ||
* @returns An initialized instance of the class with detection | ||
* for the desired feature set | ||
*/ | ||
* Static creation & async initialization for use where | ||
* async instantiation is possible | ||
* @param desiredFeatures The desired feature set | ||
* @returns An initialized instance of the class with detection | ||
* for the desired feature set | ||
*/ | ||
static async create(desiredFeatures) { | ||
@@ -128,6 +133,6 @@ const instance = new _WasmSupport(desiredFeatures); | ||
/** | ||
* Checks for specific wasm features | ||
* @param features The list of features to check for | ||
* @returns True if all the features are supported, false otherwise | ||
*/ | ||
* Checks for specific wasm features | ||
* @param features The list of features to check for | ||
* @returns True if all the features are supported, false otherwise | ||
*/ | ||
async featureCheck(features) { | ||
@@ -138,4 +143,4 @@ const results = await Promise.all(features.map((feature) => WasmFeatureDetectors[feature]).map(async (detector) => await detector())); | ||
/** | ||
* Does feature detection for the desired feature set | ||
*/ | ||
* Does feature detection for the desired feature set | ||
*/ | ||
async initialize() { | ||
@@ -145,3 +150,2 @@ if (this._isInitialized) return; | ||
this._isInitialized = true; | ||
return; | ||
} | ||
@@ -157,4 +161,2 @@ async detectDesiredFeatures() { | ||
}; | ||
__name(_WasmSupport, "WasmSupport"); | ||
var WasmSupport = _WasmSupport; | ||
export { | ||
@@ -161,0 +163,0 @@ WasmFeatureDetectors, |
@@ -17,4 +17,4 @@ { | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.12.4", | ||
"@xylabs/tsconfig": "^3.12.4", | ||
"@xylabs/ts-scripts-yarn3": "^3.13.3", | ||
"@xylabs/tsconfig": "^3.13.3", | ||
"typescript": "^5.5.4" | ||
@@ -60,4 +60,4 @@ }, | ||
"sideEffects": false, | ||
"version": "2.110.10", | ||
"version": "2.110.11", | ||
"type": "module" | ||
} |
@@ -152,3 +152,2 @@ import { | ||
this._isInitialized = true | ||
return | ||
} | ||
@@ -155,0 +154,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155463
1259