chore: update node_modules with new binary files and dependencies
- Add new binary files for nodemon, onnxruntime-web, and xenova/transformers - Update various JavaScript and TypeScript files in node_modules - Remove unused files and dependencies - Add new test fixtures and documentation files
This commit is contained in:
23
node_modules/onnxruntime-common/dist/lib/env-impl.js
generated
vendored
Normal file
23
node_modules/onnxruntime-common/dist/lib/env-impl.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
export class EnvImpl {
|
||||
constructor() {
|
||||
this.wasm = {};
|
||||
this.webgl = {};
|
||||
this.logLevelInternal = 'warning';
|
||||
}
|
||||
// TODO standadize the getter and setter convention in env for other fields.
|
||||
set logLevel(value) {
|
||||
if (value === undefined) {
|
||||
return;
|
||||
}
|
||||
if (typeof value !== 'string' || ['verbose', 'info', 'warning', 'error', 'fatal'].indexOf(value) === -1) {
|
||||
throw new Error(`Unsupported logging level: ${value}`);
|
||||
}
|
||||
this.logLevelInternal = value;
|
||||
}
|
||||
get logLevel() {
|
||||
return this.logLevelInternal;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=env-impl.js.map
|
||||
Reference in New Issue
Block a user