@danielsimonjr/mathts-workbook 0.3.22 → 0.3.23
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/{chunk-57X3SQL6.js → chunk-UU537RJR.js} +1 -1
- package/dist/cli.js +13 -8
- package/dist/index.js +1 -1
- package/package.json +7 -7
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
runWorkbookWithTimeout,
|
|
16
16
|
setMetadata,
|
|
17
17
|
writeFileAtomic
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UU537RJR.js";
|
|
19
19
|
import {
|
|
20
20
|
buildDependencyGraph,
|
|
21
21
|
createExecutor,
|
|
@@ -51,14 +51,19 @@ function sanitizeHrefRaw(href) {
|
|
|
51
51
|
probe = decodeURIComponent(probe);
|
|
52
52
|
} catch {
|
|
53
53
|
}
|
|
54
|
-
probe = probe.trim().toLowerCase();
|
|
55
54
|
if (probe.startsWith("//")) return null;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
try {
|
|
56
|
+
const url = new URL(probe);
|
|
57
|
+
if (url.protocol === "http:" || url.protocol === "https:" || url.protocol === "mailto:") {
|
|
58
|
+
return h;
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
} catch {
|
|
62
|
+
if (probe.startsWith("/") || probe.startsWith("./") || probe.startsWith("../") || probe.startsWith("#")) {
|
|
63
|
+
return h;
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
62
67
|
}
|
|
63
68
|
function sanitizeHref(href) {
|
|
64
69
|
const raw = sanitizeHrefRaw(href);
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielsimonjr/mathts-workbook",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"description": "Scientific workbook runtime for MathTS (.mtsw format)",
|
|
5
5
|
"author": "Daniel Simon Jr.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"module": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"bin": {
|
|
12
|
-
"mtsw": "
|
|
12
|
+
"mtsw": "dist/cli.js"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"build:prod": "tsup --minify --treeshake"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@danielsimonjr/mathts-core": "^0.
|
|
38
|
-
"@danielsimonjr/mathts-expression": "^0.
|
|
39
|
-
"@danielsimonjr/mathts-functions": "^0.
|
|
40
|
-
"@danielsimonjr/mathts-plot": "^0.
|
|
37
|
+
"@danielsimonjr/mathts-core": "^0.14.0",
|
|
38
|
+
"@danielsimonjr/mathts-expression": "^0.7.0",
|
|
39
|
+
"@danielsimonjr/mathts-functions": "^0.62.0",
|
|
40
|
+
"@danielsimonjr/mathts-plot": "^0.4.0",
|
|
41
41
|
"yaml": "^2.3.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|
|
54
|
-
"url": "https://github.com/danielsimonjr/
|
|
54
|
+
"url": "git+https://github.com/danielsimonjr/MathTS.git",
|
|
55
55
|
"directory": "workbook"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|