wenmar-open 0.1.0 → 0.2.0

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.
Binary file
package/dist/schema.d.ts CHANGED
@@ -351,7 +351,7 @@ export interface components {
351
351
  data_version: string;
352
352
  /**
353
353
  * @description The version of the server.
354
- * @example 0.1.0
354
+ * @example 0.2.0
355
355
  */
356
356
  server_version: string;
357
357
  /**
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "wenmar-open",
3
- "version": "0.1.0",
4
- "description": "Typed client for the Wenmar Open API: VIN decoding and a year, make, model, trim and engine catalog. No API key.",
3
+ "version": "0.2.0",
4
+ "description": "VIN decoding and a year, make, model, trim and engine catalog: a typed client for the Wenmar Open API, and an offline mode that answers from a data file with no network. No API key.",
5
5
  "keywords": [
6
6
  "vin",
7
7
  "vin-decoder",
8
8
  "vehicle",
9
9
  "automotive",
10
10
  "nhtsa",
11
- "vpic"
11
+ "vpic",
12
+ "offline",
13
+ "webassembly"
12
14
  ],
13
15
  "license": "MIT",
14
16
  "author": "Wenmar Pro (https://wenmarpro.com)",
@@ -26,6 +28,15 @@
26
28
  "types": "./dist/index.d.ts",
27
29
  "default": "./dist/index.js"
28
30
  },
31
+ "./offline": {
32
+ "types": "./dist/offline/index.d.ts",
33
+ "default": "./dist/offline/index.js"
34
+ },
35
+ "./offline/node": {
36
+ "types": "./dist/offline/node.d.ts",
37
+ "default": "./dist/offline/node.js"
38
+ },
39
+ "./offline.wasm": "./dist/offline/wenmar_open.wasm",
29
40
  "./package.json": "./package.json"
30
41
  },
31
42
  "types": "./dist/index.d.ts",
@@ -35,9 +46,17 @@
35
46
  "engines": {
36
47
  "node": ">=20"
37
48
  },
49
+ "peerDependencies": {
50
+ "wenmar-open-data": "^3.0.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "wenmar-open-data": {
54
+ "optional": true
55
+ }
56
+ },
38
57
  "scripts": {
39
58
  "generate": "node scripts/generate.mjs",
40
- "build": "node scripts/clean.mjs dist && tsc -p tsconfig.json",
59
+ "build": "node scripts/clean.mjs dist && tsc -p tsconfig.json && node scripts/build-wasm.mjs",
41
60
  "test:types": "node scripts/readme-examples.mjs && tsc -p test/types/tsconfig.dom.json && tsc -p test/types/tsconfig.node.json",
42
61
  "test:unit": "node scripts/clean.mjs .test-build && tsc -p tsconfig.test.json && node --test .test-build/*.test.js",
43
62
  "test": "npm run build && npm run test:types && npm run test:unit",