@danielx/civet 0.11.3 → 0.11.5
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/CHANGELOG.md +11 -0
- package/dist/browser.js +137 -71
- package/dist/main.js +205 -132
- package/dist/main.mjs +205 -132
- package/dist/unplugin/unplugin.js +11 -13
- package/dist/unplugin/unplugin.mjs +11 -13
- package/package.json +2 -2
|
@@ -43,18 +43,13 @@ var import_path = __toESM(require("path"));
|
|
|
43
43
|
|
|
44
44
|
// node_modules/@typescript/vfs/dist/vfs.esm.js
|
|
45
45
|
function _extends() {
|
|
46
|
-
_extends = Object.assign ? Object.assign.bind() : function(
|
|
47
|
-
for (var
|
|
48
|
-
var
|
|
49
|
-
for (var
|
|
50
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
51
|
-
target[key] = source[key];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
46
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
47
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
48
|
+
var t = arguments[e];
|
|
49
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
54
50
|
}
|
|
55
|
-
return
|
|
56
|
-
};
|
|
57
|
-
return _extends.apply(this, arguments);
|
|
51
|
+
return n;
|
|
52
|
+
}, _extends.apply(null, arguments);
|
|
58
53
|
}
|
|
59
54
|
var hasLocalStorage = false;
|
|
60
55
|
try {
|
|
@@ -62,7 +57,7 @@ try {
|
|
|
62
57
|
} catch (error) {
|
|
63
58
|
}
|
|
64
59
|
var hasProcess = typeof process !== "undefined";
|
|
65
|
-
var shouldDebug = hasLocalStorage && /* @__PURE__ */ localStorage.getItem("DEBUG") || hasProcess && process.env.DEBUG;
|
|
60
|
+
var shouldDebug = hasLocalStorage && typeof localStorage.getItem === "function" && /* @__PURE__ */ localStorage.getItem("DEBUG") || hasProcess && process.env.DEBUG;
|
|
66
61
|
var debugLog = shouldDebug ? console.log : function(_message) {
|
|
67
62
|
return "";
|
|
68
63
|
};
|
|
@@ -89,7 +84,10 @@ var defaultCompilerOptions = function defaultCompilerOptions2(ts) {
|
|
|
89
84
|
module: ts.ModuleKind.ESNext,
|
|
90
85
|
suppressOutputPathCheck: true,
|
|
91
86
|
skipLibCheck: true,
|
|
92
|
-
skipDefaultLibCheck: true
|
|
87
|
+
skipDefaultLibCheck: true
|
|
88
|
+
}, ts.versionMajorMinor && Number(ts.versionMajorMinor.split(".")[0]) >= 6 ? {
|
|
89
|
+
ignoreDeprecations: "6.0"
|
|
90
|
+
} : {
|
|
93
91
|
moduleResolution: ts.ModuleResolutionKind.NodeJs
|
|
94
92
|
});
|
|
95
93
|
};
|
|
@@ -18,18 +18,13 @@ import path from "path";
|
|
|
18
18
|
|
|
19
19
|
// node_modules/@typescript/vfs/dist/vfs.esm.js
|
|
20
20
|
function _extends() {
|
|
21
|
-
_extends = Object.assign ? Object.assign.bind() : function(
|
|
22
|
-
for (var
|
|
23
|
-
var
|
|
24
|
-
for (var
|
|
25
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
26
|
-
target[key] = source[key];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
21
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
22
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
23
|
+
var t = arguments[e];
|
|
24
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
29
25
|
}
|
|
30
|
-
return
|
|
31
|
-
};
|
|
32
|
-
return _extends.apply(this, arguments);
|
|
26
|
+
return n;
|
|
27
|
+
}, _extends.apply(null, arguments);
|
|
33
28
|
}
|
|
34
29
|
var hasLocalStorage = false;
|
|
35
30
|
try {
|
|
@@ -37,7 +32,7 @@ try {
|
|
|
37
32
|
} catch (error) {
|
|
38
33
|
}
|
|
39
34
|
var hasProcess = typeof process !== "undefined";
|
|
40
|
-
var shouldDebug = hasLocalStorage && /* @__PURE__ */ localStorage.getItem("DEBUG") || hasProcess && process.env.DEBUG;
|
|
35
|
+
var shouldDebug = hasLocalStorage && typeof localStorage.getItem === "function" && /* @__PURE__ */ localStorage.getItem("DEBUG") || hasProcess && process.env.DEBUG;
|
|
41
36
|
var debugLog = shouldDebug ? console.log : function(_message) {
|
|
42
37
|
return "";
|
|
43
38
|
};
|
|
@@ -64,7 +59,10 @@ var defaultCompilerOptions = function defaultCompilerOptions2(ts) {
|
|
|
64
59
|
module: ts.ModuleKind.ESNext,
|
|
65
60
|
suppressOutputPathCheck: true,
|
|
66
61
|
skipLibCheck: true,
|
|
67
|
-
skipDefaultLibCheck: true
|
|
62
|
+
skipDefaultLibCheck: true
|
|
63
|
+
}, ts.versionMajorMinor && Number(ts.versionMajorMinor.split(".")[0]) >= 6 ? {
|
|
64
|
+
ignoreDeprecations: "6.0"
|
|
65
|
+
} : {
|
|
68
66
|
moduleResolution: ts.ModuleResolutionKind.NodeJs
|
|
69
67
|
});
|
|
70
68
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielx/civet",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.5",
|
|
5
5
|
"description": "CoffeeScript style syntax for TypeScript",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/main.mjs",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@types/assert": "^1.5.6",
|
|
118
118
|
"@types/mocha": "^10.0.8",
|
|
119
119
|
"@types/node": "^22.10.2",
|
|
120
|
-
"@typescript/vfs": "^1.6.
|
|
120
|
+
"@typescript/vfs": "^1.6.4",
|
|
121
121
|
"c8": "^7.12.0",
|
|
122
122
|
"esbuild": "0.24.0",
|
|
123
123
|
"marked": "^4.2.4",
|