create-ifc-lite 1.14.11 → 1.14.13
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/templates/react.js
CHANGED
|
@@ -239,7 +239,10 @@ export default function App() {
|
|
|
239
239
|
try {
|
|
240
240
|
const processor = new GeometryProcessor();
|
|
241
241
|
await processor.init();
|
|
242
|
-
if (cancelled || initId !== loadIdRef.current)
|
|
242
|
+
if (cancelled || initId !== loadIdRef.current) {
|
|
243
|
+
processor.dispose();
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
243
246
|
|
|
244
247
|
processorRef.current = processor;
|
|
245
248
|
const viewer = await createViewer(canvasRef.current);
|
|
@@ -266,6 +269,8 @@ export default function App() {
|
|
|
266
269
|
loadIdRef.current += 1;
|
|
267
270
|
viewerRef.current?.destroy();
|
|
268
271
|
viewerRef.current = null;
|
|
272
|
+
processorRef.current?.dispose();
|
|
273
|
+
processorRef.current = null;
|
|
269
274
|
};
|
|
270
275
|
}, []);
|
|
271
276
|
|
package/dist/templates/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ifc-lite",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.13",
|
|
4
4
|
"description": "Create IFC-Lite projects with one command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -31,13 +31,16 @@
|
|
|
31
31
|
"node": ">=18.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/node": "^26.
|
|
35
|
-
"typescript": "^5.3.0"
|
|
34
|
+
"@types/node": "^26.4.0",
|
|
35
|
+
"typescript": "^5.3.0",
|
|
36
|
+
"vitest": "^4.1.11"
|
|
36
37
|
},
|
|
37
38
|
"homepage": "https://ifclite.dev/docs/",
|
|
38
39
|
"bugs": "https://github.com/LTplus-AG/ifc-lite/issues",
|
|
39
40
|
"scripts": {
|
|
40
41
|
"build": "pnpm exec tsc",
|
|
41
|
-
"
|
|
42
|
+
"typecheck": "node ../../scripts/typecheck-tests.mjs",
|
|
43
|
+
"dev": "pnpm exec tsc --watch",
|
|
44
|
+
"test": "vitest run"
|
|
42
45
|
}
|
|
43
46
|
}
|