@vessel-dsp/stompbox 0.6.4 → 0.6.6

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/dist/node.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ import type { CircuitDocument } from "@vessel-dsp/core";
2
+ import { type StompboxGlbAssetValidation, type StompboxHardwareProfile, type StompboxHardwareProfileAssetValidation, type StompboxHardwareProfileAssetValidationOptions, type StompboxPartProfile, type StompboxPreviewGlb, type StompboxPreviewGlbFromVdspOptions, type StompboxPreviewGlbOptions } from "./index.js";
3
+ export * from "./index.js";
4
+ export declare function validateStompboxGlbAssetFile(path: string, partProfile: StompboxPartProfile): StompboxGlbAssetValidation;
5
+ export declare function validateStompboxHardwareProfileAssets(hardwareProfile: StompboxHardwareProfile, options?: StompboxHardwareProfileAssetValidationOptions): StompboxHardwareProfileAssetValidation;
6
+ export declare function createStompboxPreviewGlb(document: CircuitDocument, options?: StompboxPreviewGlbOptions): StompboxPreviewGlb;
7
+ export declare function createStompboxPreviewGlbFromVdsp(source: string, options?: StompboxPreviewGlbFromVdspOptions): StompboxPreviewGlb;
8
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAKN,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,EAC3C,KAAK,6CAA6C,EAClD,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iCAAiC,EACtC,KAAK,yBAAyB,EAC9B,MAAM,YAAY,CAAC;AAEpB,cAAc,YAAY,CAAC;AAM3B,wBAAgB,4BAA4B,CAC3C,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,mBAAmB,GAC9B,0BAA0B,CAE5B;AAED,wBAAgB,qCAAqC,CACpD,eAAe,EAAE,uBAAuB,EACxC,OAAO,GAAE,6CAAkD,GACzD,sCAAsC,CAKxC;AAED,wBAAgB,wBAAwB,CACvC,QAAQ,EAAE,eAAe,EACzB,OAAO,GAAE,yBAA8B,GACrC,kBAAkB,CAKpB;AAED,wBAAgB,gCAAgC,CAC/C,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,iCAAsC,GAC7C,kBAAkB,CAKpB"}
package/dist/node.js ADDED
@@ -0,0 +1,28 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { createStompboxPreviewGlb as createStompboxPreviewGlbBase, createStompboxPreviewGlbFromVdsp as createStompboxPreviewGlbFromVdspBase, validateStompboxGlbAssetFromPath, validateStompboxHardwareProfileAssets as validateStompboxHardwareProfileAssetsBase, } from "./index.js";
3
+ export * from "./index.js";
4
+ function readNodeAssetFile(path) {
5
+ return new Uint8Array(readFileSync(path));
6
+ }
7
+ export function validateStompboxGlbAssetFile(path, partProfile) {
8
+ return validateStompboxGlbAssetFromPath(path, partProfile, readNodeAssetFile);
9
+ }
10
+ export function validateStompboxHardwareProfileAssets(hardwareProfile, options = {}) {
11
+ return validateStompboxHardwareProfileAssetsBase(hardwareProfile, {
12
+ ...options,
13
+ readAssetFile: readNodeAssetFile,
14
+ });
15
+ }
16
+ export function createStompboxPreviewGlb(document, options = {}) {
17
+ return createStompboxPreviewGlbBase(document, {
18
+ ...options,
19
+ readAssetFile: readNodeAssetFile,
20
+ });
21
+ }
22
+ export function createStompboxPreviewGlbFromVdsp(source, options = {}) {
23
+ return createStompboxPreviewGlbFromVdspBase(source, {
24
+ ...options,
25
+ readAssetFile: readNodeAssetFile,
26
+ });
27
+ }
28
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EACN,wBAAwB,IAAI,4BAA4B,EACxD,gCAAgC,IAAI,oCAAoC,EACxE,gCAAgC,EAChC,qCAAqC,IAAI,yCAAyC,GASlF,MAAM,YAAY,CAAC;AAEpB,cAAc,YAAY,CAAC;AAE3B,SAAS,iBAAiB,CAAC,IAAY;IACtC,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC3C,IAAY,EACZ,WAAgC;IAEhC,OAAO,gCAAgC,CAAC,IAAI,EAAE,WAAW,EAAE,iBAAiB,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,qCAAqC,CACpD,eAAwC,EACxC,UAAyD,EAAE;IAE3D,OAAO,yCAAyC,CAAC,eAAe,EAAE;QACjE,GAAG,OAAO;QACV,aAAa,EAAE,iBAAiB;KAChC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACvC,QAAyB,EACzB,UAAqC,EAAE;IAEvC,OAAO,4BAA4B,CAAC,QAAQ,EAAE;QAC7C,GAAG,OAAO;QACV,aAAa,EAAE,iBAAiB;KAChC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC/C,MAAc,EACd,UAA6C,EAAE;IAE/C,OAAO,oCAAoC,CAAC,MAAM,EAAE;QACnD,GAAG,OAAO;QACV,aAAa,EAAE,iBAAiB;KAChC,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,55 +1,60 @@
1
1
  {
2
- "name": "@vessel-dsp/stompbox",
3
- "version": "0.6.4",
4
- "description": "Headless stompbox drill-layout and preview manifests for VesselDSP .vdsp documents.",
5
- "keywords": [
6
- "guitar-pedal",
7
- "stompbox",
8
- "drill-template",
9
- "electronics",
10
- "circuit"
11
- ],
12
- "homepage": "https://vessel-dsp.github.io/core/",
13
- "bugs": {
14
- "url": "https://github.com/vessel-dsp/core/issues"
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "git+https://github.com/vessel-dsp/core.git"
19
- },
20
- "license": "MIT",
21
- "sideEffects": false,
22
- "type": "module",
23
- "exports": {
24
- ".": {
25
- "types": "./dist/index.d.ts",
26
- "bun": "./dist/index.js",
27
- "import": "./dist/index.js"
28
- },
29
- "./package.json": {
30
- "default": "./package.json"
31
- }
32
- },
33
- "main": "./dist/index.js",
34
- "module": "./dist/index.js",
35
- "types": "./dist/index.d.ts",
36
- "files": [
37
- "dist",
38
- "assets",
39
- "README.md",
40
- "LICENSE.md"
41
- ],
42
- "scripts": {
43
- "build": "tsc -p tsconfig.build.json && bun run ../../scripts/fix-dist-imports.ts dist",
44
- "clean": "rm -rf dist",
45
- "prepack": "bun run build",
46
- "pack:dry-run": "npm pack --dry-run",
47
- "typecheck": "tsc --noEmit -p tsconfig.json"
48
- },
49
- "dependencies": {
50
- "@vessel-dsp/core": "0.6.4"
51
- },
52
- "publishConfig": {
53
- "access": "public"
54
- }
2
+ "name": "@vessel-dsp/stompbox",
3
+ "version": "0.6.6",
4
+ "description": "Headless stompbox drill-layout and preview manifests for VesselDSP .vdsp documents.",
5
+ "keywords": [
6
+ "guitar-pedal",
7
+ "stompbox",
8
+ "drill-template",
9
+ "electronics",
10
+ "circuit"
11
+ ],
12
+ "homepage": "https://vessel-dsp.github.io/core/",
13
+ "bugs": {
14
+ "url": "https://github.com/vessel-dsp/core/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/vessel-dsp/core.git"
19
+ },
20
+ "license": "MIT",
21
+ "sideEffects": false,
22
+ "type": "module",
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "bun": "./dist/index.js",
27
+ "import": "./dist/index.js"
28
+ },
29
+ "./node": {
30
+ "types": "./dist/node.d.ts",
31
+ "bun": "./dist/node.js",
32
+ "import": "./dist/node.js"
33
+ },
34
+ "./package.json": {
35
+ "default": "./package.json"
36
+ }
37
+ },
38
+ "main": "./dist/index.js",
39
+ "module": "./dist/index.js",
40
+ "types": "./dist/index.d.ts",
41
+ "files": [
42
+ "dist",
43
+ "assets",
44
+ "README.md",
45
+ "LICENSE.md"
46
+ ],
47
+ "scripts": {
48
+ "build": "tsc -p tsconfig.build.json && bun run ../../scripts/fix-dist-imports.ts dist",
49
+ "clean": "rm -rf dist",
50
+ "prepack": "bun run build",
51
+ "pack:dry-run": "npm pack --dry-run",
52
+ "typecheck": "tsc --noEmit -p tsconfig.json"
53
+ },
54
+ "dependencies": {
55
+ "@vessel-dsp/core": "0.6.6"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
59
+ }
55
60
  }