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:
16
node_modules/onnxruntime-web/lib/wasm/string-utils.js
generated
vendored
Normal file
16
node_modules/onnxruntime-web/lib/wasm/string-utils.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.allocWasmString = void 0;
|
||||
const wasm_factory_1 = require("./wasm-factory");
|
||||
const allocWasmString = (data, allocs) => {
|
||||
const wasm = (0, wasm_factory_1.getInstance)();
|
||||
const dataLength = wasm.lengthBytesUTF8(data) + 1;
|
||||
const dataOffset = wasm._malloc(dataLength);
|
||||
wasm.stringToUTF8(data, dataOffset, dataLength);
|
||||
allocs.push(dataOffset);
|
||||
return dataOffset;
|
||||
};
|
||||
exports.allocWasmString = allocWasmString;
|
||||
//# sourceMappingURL=string-utils.js.map
|
||||
Reference in New Issue
Block a user