@pascal-app/geometry-script 1.0.4 → 1.0.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/__fixtures__/ceiling-lamp.d.ts +2 -0
- package/dist/__fixtures__/ceiling-lamp.d.ts.map +1 -0
- package/dist/__fixtures__/ceiling-lamp.js +37 -0
- package/dist/__fixtures__/fitted-cabinet.d.ts +7 -0
- package/dist/__fixtures__/fitted-cabinet.d.ts.map +1 -0
- package/dist/__fixtures__/fitted-cabinet.js +6 -0
- package/dist/__fixtures__/sliding-door.d.ts +6 -0
- package/dist/__fixtures__/sliding-door.d.ts.map +1 -0
- package/dist/__fixtures__/sliding-door.js +8 -0
- package/dist/__fixtures__/wall-screen.d.ts +2 -0
- package/dist/__fixtures__/wall-screen.d.ts.map +1 -0
- package/dist/__fixtures__/wall-screen.js +1 -0
- package/dist/author-scene.d.ts +47 -0
- package/dist/author-scene.d.ts.map +1 -0
- package/dist/author-scene.js +96 -0
- package/dist/compile.d.ts +18 -4
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +146 -17
- package/dist/coverage.d.ts +22 -0
- package/dist/coverage.d.ts.map +1 -0
- package/dist/coverage.js +301 -0
- package/dist/cut.d.ts +24 -0
- package/dist/cut.d.ts.map +1 -0
- package/dist/cut.js +202 -0
- package/dist/sandbox-worker.js +2 -2
- package/dist/sandbox.js +1 -1
- package/dist/transform.js +1 -1
- package/package.json +10 -5
package/dist/transform.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* body evaluated with the modules injected. Only the allowlisted modules
|
|
5
5
|
* resolve; anything else fails with the list of what is available.
|
|
6
6
|
*/
|
|
7
|
-
const IMPORT_RE =
|
|
7
|
+
const IMPORT_RE = /(?:^|(?<=;))\s*import\s+([\s\S]+?)\s+from\s+['"]([^'"]+)['"]\s*;?/gm;
|
|
8
8
|
const SIDE_EFFECT_IMPORT_RE = /^\s*import\s+['"][^'"]+['"]\s*;?/gm;
|
|
9
9
|
export function moduleKey(specifier) {
|
|
10
10
|
if (specifier === 'three')
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pascal-app/geometry-script",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Compiles AI-authored three.js and Blender (bpy) geometry scripts into GLB artifacts with a Pascal manifest. Runs in a browser worker, Bun or Node — no DOM, no React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
+
"./author-scene": {
|
|
10
|
+
"types": "./dist/author-scene.d.ts",
|
|
11
|
+
"import": "./dist/author-scene.js",
|
|
12
|
+
"default": "./dist/author-scene.js"
|
|
13
|
+
},
|
|
9
14
|
".": {
|
|
10
15
|
"types": "./dist/index.d.ts",
|
|
11
16
|
"import": "./dist/index.js",
|
|
@@ -45,7 +50,7 @@
|
|
|
45
50
|
"test": "bun test"
|
|
46
51
|
},
|
|
47
52
|
"dependencies": {
|
|
48
|
-
"@pascal-app/core": "^1.0.
|
|
53
|
+
"@pascal-app/core": "^1.0.6",
|
|
49
54
|
"three-bvh-csg": "^0.0.18"
|
|
50
55
|
},
|
|
51
56
|
"peerDependencies": {
|
|
@@ -53,9 +58,9 @@
|
|
|
53
58
|
},
|
|
54
59
|
"devDependencies": {
|
|
55
60
|
"@pascal/typescript-config": "*",
|
|
56
|
-
"@types/bun": "^1.4.
|
|
57
|
-
"@types/three": "^0.
|
|
58
|
-
"typescript": "
|
|
61
|
+
"@types/bun": "^1.4.3",
|
|
62
|
+
"@types/three": "^0.186.0",
|
|
63
|
+
"typescript": "7.0.2"
|
|
59
64
|
},
|
|
60
65
|
"repository": {
|
|
61
66
|
"type": "git",
|