@faicad/cq-compat 0.13.1 → 0.13.2
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/browser.d.ts +1 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +6 -0
- package/dist/browser.js.map +1 -1
- package/package.json +1 -1
package/dist/browser.d.ts
CHANGED
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAM1B,cAAc,SAAS,CAAA"}
|
package/dist/browser.js
CHANGED
|
@@ -10,4 +10,10 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export * from './workplane.js';
|
|
12
12
|
export * from './assembly.js';
|
|
13
|
+
// Gear primitives: browser-safe (gears.ts imports only `@faicad/faijs`'s
|
|
14
|
+
// initOcctWasm + types — no node builtins), so they belong in this entry just
|
|
15
|
+
// as much as workplane/assembly do. Without this line `@faicad/fai-cq-gears`
|
|
16
|
+
// (which imports `getGearKernel` from `@faicad/cq-compat`) has no browser
|
|
17
|
+
// resolution and every gear factory throws at call time.
|
|
18
|
+
export * from './gears.js';
|
|
13
19
|
//# sourceMappingURL=browser.js.map
|
package/dist/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA","sourcesContent":["/**\n * @faicad/cq-compat/browser — browser-safe entry for the CadQuery compatibility layer.\n *\n * Unlike the package root (`./index`), this entry does NOT re-export the STEP /\n * assembly comparison helpers (`step-compare`, `assembly-compare`), which import\n * `node:fs` and cannot be bundled into a browser (Vite/Rollup would fail on the\n * builtin module). The faijs demo libLoader imports this entry statically and\n * registers it under the `@faicad/cq-compat` specifier, so `.fai.js` scripts keep\n * writing `import * as cq from '@faicad/cq-compat'`.\n */\nexport * from './workplane'\nexport * from './assembly'\n"]}
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,yEAAyE;AACzE,8EAA8E;AAC9E,6EAA6E;AAC7E,0EAA0E;AAC1E,yDAAyD;AACzD,cAAc,SAAS,CAAA","sourcesContent":["/**\n * @faicad/cq-compat/browser — browser-safe entry for the CadQuery compatibility layer.\n *\n * Unlike the package root (`./index`), this entry does NOT re-export the STEP /\n * assembly comparison helpers (`step-compare`, `assembly-compare`), which import\n * `node:fs` and cannot be bundled into a browser (Vite/Rollup would fail on the\n * builtin module). The faijs demo libLoader imports this entry statically and\n * registers it under the `@faicad/cq-compat` specifier, so `.fai.js` scripts keep\n * writing `import * as cq from '@faicad/cq-compat'`.\n */\nexport * from './workplane'\nexport * from './assembly'\n// Gear primitives: browser-safe (gears.ts imports only `@faicad/faijs`'s\n// initOcctWasm + types — no node builtins), so they belong in this entry just\n// as much as workplane/assembly do. Without this line `@faicad/fai-cq-gears`\n// (which imports `getGearKernel` from `@faicad/cq-compat`) has no browser\n// resolution and every gear factory throws at call time.\nexport * from './gears'\n"]}
|