wrapture 0.1.2 → 0.1.4
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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/api/README.md +1 -1
- package/api/utils/check-deps.md +1 -1
- package/api/utils/convert.md +1 -1
- package/api/utils/generate-wrapper.md +1 -1
- package/api/utils/log-level.md +1 -1
- package/api/wrapture.md +1 -1
- package/bin/wrapture.js +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.4](https://github.com/phun-ky/wrapture/compare/0.1.3...0.1.4) (2025-05-19)
|
|
4
|
+
|
|
5
|
+
### Tasks
|
|
6
|
+
|
|
7
|
+
* 🤖 bump the minor-and-patch group with 4 updates ([06d25c9](https://github.com/phun-ky/wrapture/commit/06d25c9c87ada26cab84466f1cf173e112e055d9))
|
|
8
|
+
|
|
9
|
+
## [0.1.3](https://github.com/phun-ky/wrapture/compare/0.1.2...0.1.3) (2025-05-15)
|
|
10
|
+
|
|
3
11
|
## [0.1.2](https://github.com/phun-ky/wrapture/compare/0.1.1...0.1.2) (2025-05-15)
|
|
4
12
|
|
|
5
13
|
## [0.1.1](https://github.com/phun-ky/wrapture/compare/0.1.0...0.1.1) (2025-05-15)
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|

|
|
14
14
|

|
|
15
15
|

|
|
16
|
-

|
|
17
17
|

|
|
18
18
|
[](https://codecov.io/gh/phun-ky/wrapture)
|
|
19
19
|
[](https://github.com/phun-ky/wrapture/actions/workflows/check.yml)
|
package/api/README.md
CHANGED
package/api/utils/check-deps.md
CHANGED
package/api/utils/convert.md
CHANGED
package/api/utils/log-level.md
CHANGED
package/api/wrapture.md
CHANGED
package/bin/wrapture.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
import chalk2 from "chalk";
|
|
5
5
|
import { Command } from "commander";
|
|
6
6
|
import ora from "ora";
|
|
7
|
-
import { existsSync } from "
|
|
8
|
-
import path3 from "
|
|
7
|
+
import { existsSync } from "fs";
|
|
8
|
+
import path3 from "path";
|
|
9
9
|
|
|
10
10
|
// package.json
|
|
11
11
|
var package_default = {
|
|
12
12
|
name: "wrapture",
|
|
13
|
-
version: "0.1.
|
|
13
|
+
version: "0.1.4",
|
|
14
14
|
description: "Wrapture lets you go from a Python-trained model to deployable JavaScript with a single command. It generates TypeScript bindings and a Web/Node-compatible wrapper, using WebGPU/WASM-ready ONNX runtimes.",
|
|
15
15
|
keywords: [
|
|
16
16
|
"onnx",
|
|
@@ -108,7 +108,7 @@ var package_default = {
|
|
|
108
108
|
|
|
109
109
|
// src/utils/check-deps.ts
|
|
110
110
|
import chalk from "chalk";
|
|
111
|
-
import { spawnSync } from "
|
|
111
|
+
import { spawnSync } from "child_process";
|
|
112
112
|
var printError = (title, body) => {
|
|
113
113
|
console.error(`
|
|
114
114
|
${chalk.red.bold("\u2718")} ${chalk.red.bold(title)}`);
|
|
@@ -159,9 +159,9 @@ if missing:
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
// src/utils/convert.ts
|
|
162
|
-
import { spawn } from "
|
|
163
|
-
import fs from "
|
|
164
|
-
import path from "
|
|
162
|
+
import { spawn } from "child_process";
|
|
163
|
+
import fs from "fs";
|
|
164
|
+
import path from "path";
|
|
165
165
|
|
|
166
166
|
// src/utils/log-level.ts
|
|
167
167
|
var currentLevel = "info";
|
|
@@ -224,8 +224,8 @@ var convert = async (inputPath, outputDir, opts) => {
|
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
// src/utils/generate-wrapper.ts
|
|
227
|
-
import fs2 from "
|
|
228
|
-
import path2 from "
|
|
227
|
+
import fs2 from "fs";
|
|
228
|
+
import path2 from "path";
|
|
229
229
|
var generateWrapper = async (outputDir, opts) => {
|
|
230
230
|
log.info("Generating wrapper files...");
|
|
231
231
|
const wrapper = `import { InferenceSession, Tensor } from 'onnxruntime-web';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrapture",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Wrapture lets you go from a Python-trained model to deployable JavaScript with a single command. It generates TypeScript bindings and a Web/Node-compatible wrapper, using WebGPU/WASM-ready ONNX runtimes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"onnx",
|