@rulecad/cad 0.7.31 → 0.7.32
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/lib/links.mjs +1 -1
- package/package.json +5 -5
package/lib/links.mjs
CHANGED
|
@@ -18,7 +18,7 @@ export const VIEW = process.env.CAD_VIEW_URL || config.viewUrl;
|
|
|
18
18
|
/** A link to the model page; one the page would turn away is an error here, not when someone opens it. */
|
|
19
19
|
export async function linkTo(model) {
|
|
20
20
|
const errors = checkLink(model.shapes ? expand(model) : model);
|
|
21
|
-
if (errors.length) throw new Error(`no link: ${errors[0]}`);
|
|
21
|
+
if (errors.length) throw new Error(`no link: ${errors[0].text}`);
|
|
22
22
|
return `${VIEW}#m=${await encode(model)}`;
|
|
23
23
|
}
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rulecad/cad",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.32",
|
|
4
4
|
"description": "The cad command: JSCAD designs from traceable rules, checked for printing and fit, versioned by what fits, shared as links and exported as Bambu 3MF.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@rulecad/variables": "^0.3.0",
|
|
61
61
|
"@rulecad/keyboard-layout": "^0.1.2",
|
|
62
|
-
"@rulecad/printcheck": "^0.
|
|
63
|
-
"@rulecad/fit": "^0.
|
|
64
|
-
"@rulecad/model-link": "^0.
|
|
62
|
+
"@rulecad/printcheck": "^0.3.0",
|
|
63
|
+
"@rulecad/fit": "^0.4.0",
|
|
64
|
+
"@rulecad/model-link": "^0.3.0",
|
|
65
65
|
"@rulecad/versions": "^0.1.0",
|
|
66
66
|
"@rulecad/shapes": "^0.4.1",
|
|
67
67
|
"@rulecad/rules": "^0.3.0",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"three": "^0.186.1",
|
|
70
70
|
"@rulecad/fea": "^0.2.1",
|
|
71
71
|
"@rulecad/topopt": "^0.3.0",
|
|
72
|
-
"@rulecad/flexures": "^0.
|
|
72
|
+
"@rulecad/flexures": "^0.5.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"@rulecad/pcb": "^0.1.0 || ^0.2.0 || ^0.3.0 || ^0.4.0 || ^0.5.0"
|