onnxruntime-node 1.22.0-dev.20250415-c18e06d5e3 → 1.22.0-rev
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/README.md +56 -51
- package/bin/{napi-v3 → napi-v6}/darwin/arm64/libonnxruntime.1.22.0.dylib +0 -0
- package/bin/napi-v6/darwin/arm64/onnxruntime_binding.node +0 -0
- package/bin/{napi-v3 → napi-v6}/darwin/x64/libonnxruntime.1.22.0.dylib +0 -0
- package/bin/napi-v6/darwin/x64/onnxruntime_binding.node +0 -0
- package/bin/{napi-v3 → napi-v6}/linux/arm64/libonnxruntime.so.1 +0 -0
- package/bin/napi-v6/linux/arm64/onnxruntime_binding.node +0 -0
- package/bin/{napi-v3 → napi-v6}/linux/x64/libonnxruntime.so.1 +0 -0
- package/bin/napi-v6/linux/x64/onnxruntime_binding.node +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/arm64/DirectML.dll +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/arm64/dxcompiler.dll +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/arm64/dxil.dll +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/arm64/onnxruntime.dll +0 -0
- package/bin/napi-v6/win32/arm64/onnxruntime_binding.node +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/x64/DirectML.dll +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/x64/dxcompiler.dll +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/x64/dxil.dll +0 -0
- package/bin/{napi-v3 → napi-v6}/win32/x64/onnxruntime.dll +0 -0
- package/bin/napi-v6/win32/x64/onnxruntime_binding.node +0 -0
- package/dist/binding.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/lib/backend.ts +158 -158
- package/lib/binding.ts +91 -91
- package/lib/index.ts +15 -15
- package/lib/version.ts +7 -7
- package/package.json +4 -6
- package/script/build.ts +130 -130
- package/script/install-metadata-versions.js +7 -0
- package/script/install-metadata.js +58 -0
- package/script/install-utils.js +306 -0
- package/script/install.js +134 -198
- package/script/prepack.ts +20 -20
- package/__commit.txt +0 -1
- package/bin/napi-v3/darwin/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/darwin/x64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/linux/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/linux/x64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/win32/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v3/win32/x64/onnxruntime_binding.node +0 -0
package/script/prepack.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
import * as fs from 'fs-extra';
|
|
5
|
-
import * as path from 'path';
|
|
6
|
-
|
|
7
|
-
function updatePackageJson() {
|
|
8
|
-
const commonPackageJsonPath = path.join(__dirname, '..', '..', 'common', 'package.json');
|
|
9
|
-
const selfPackageJsonPath = path.join(__dirname, '..', 'package.json');
|
|
10
|
-
console.log(`=== start to update package.json: ${selfPackageJsonPath}`);
|
|
11
|
-
const packageCommon = fs.readJSONSync(commonPackageJsonPath);
|
|
12
|
-
const packageSelf = fs.readJSONSync(selfPackageJsonPath);
|
|
13
|
-
const version = packageCommon.version;
|
|
14
|
-
packageSelf.dependencies['onnxruntime-common'] = `${version}`;
|
|
15
|
-
fs.writeJSONSync(selfPackageJsonPath, packageSelf, { spaces: 2 });
|
|
16
|
-
console.log('=== finished updating package.json.');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// update version of dependency "onnxruntime-common" before packing
|
|
20
|
-
updatePackageJson();
|
|
1
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
|
|
4
|
+
import * as fs from 'fs-extra';
|
|
5
|
+
import * as path from 'path';
|
|
6
|
+
|
|
7
|
+
function updatePackageJson() {
|
|
8
|
+
const commonPackageJsonPath = path.join(__dirname, '..', '..', 'common', 'package.json');
|
|
9
|
+
const selfPackageJsonPath = path.join(__dirname, '..', 'package.json');
|
|
10
|
+
console.log(`=== start to update package.json: ${selfPackageJsonPath}`);
|
|
11
|
+
const packageCommon = fs.readJSONSync(commonPackageJsonPath);
|
|
12
|
+
const packageSelf = fs.readJSONSync(selfPackageJsonPath);
|
|
13
|
+
const version = packageCommon.version;
|
|
14
|
+
packageSelf.dependencies['onnxruntime-common'] = `${version}`;
|
|
15
|
+
fs.writeJSONSync(selfPackageJsonPath, packageSelf, { spaces: 2 });
|
|
16
|
+
console.log('=== finished updating package.json.');
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// update version of dependency "onnxruntime-common" before packing
|
|
20
|
+
updatePackageJson();
|
package/__commit.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c18e06d5e38e732600e214ba451049cec2435b06
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|