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 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
  ![issues](https://img.shields.io/github/issues/phun-ky/wrapture)
14
14
  ![license](https://img.shields.io/npm/l/wrapture)
15
15
  ![size](https://img.shields.io/bundlephobia/min/wrapture)
16
- ![npm](https://img.shields.io/npm/dm/%40wrapture)
16
+ ![npm](https://img.shields.io/npm/dm/wrapture)
17
17
  ![GitHub Repo stars](https://img.shields.io/github/stars/phun-ky/wrapture)
18
18
  [![codecov](https://codecov.io/gh/phun-ky/wrapture/graph/badge.svg?token=VA91DL7ZLZ)](https://codecov.io/gh/phun-ky/wrapture)
19
19
  [![build](https://github.com/phun-ky/wrapture/actions/workflows/check.yml/badge.svg)](https://github.com/phun-ky/wrapture/actions/workflows/check.yml)
package/api/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # wrapture API documentation
2
2
 
3
- > Last updated 2025-05-15T10:56:42.554Z
3
+ > Last updated 2025-05-19T11:55:20.342Z
4
4
 
5
5
  ## Modules
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # utils/check-deps
4
4
 
5
- > Last updated 2025-05-15T10:56:42.701Z
5
+ > Last updated 2025-05-19T11:55:20.486Z
6
6
 
7
7
  ## Functions
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # utils/convert
4
4
 
5
- > Last updated 2025-05-15T10:56:42.770Z
5
+ > Last updated 2025-05-19T11:55:20.553Z
6
6
 
7
7
  ## Interfaces
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # utils/generate-wrapper
4
4
 
5
- > Last updated 2025-05-15T10:56:42.820Z
5
+ > Last updated 2025-05-19T11:55:20.598Z
6
6
 
7
7
  ## Interfaces
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # utils/log-level
4
4
 
5
- > Last updated 2025-05-15T10:56:42.859Z
5
+ > Last updated 2025-05-19T11:55:20.635Z
6
6
 
7
7
  ## Type Aliases
8
8
 
package/api/wrapture.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # wrapture
4
4
 
5
- > Last updated 2025-05-15T10:56:42.899Z
5
+ > Last updated 2025-05-19T11:55:20.682Z
6
6
 
7
7
  ---
8
8
 
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 "node:fs";
8
- import path3 from "node:path";
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.2",
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 "node:child_process";
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 "node:child_process";
163
- import fs from "node:fs";
164
- import path from "node:path";
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 "node:fs";
228
- import path2 from "node:path";
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.2",
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",