@danielx/civet 0.7.23 → 0.7.25
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 +1120 -0
- package/dist/browser.js +425 -284
- package/dist/main.js +425 -284
- package/dist/main.mjs +425 -284
- package/dist/unplugin/unplugin.js +1 -9
- package/dist/unplugin/unplugin.mjs +1 -9
- package/package.json +4 -3
|
@@ -47,7 +47,6 @@ var import_os = __toESM(require("os"));
|
|
|
47
47
|
var DEFAULT_EXTENSIONS = [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"];
|
|
48
48
|
|
|
49
49
|
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\unplugin.civet.jsx
|
|
50
|
-
var hasProp = {}.constructor.hasOwn;
|
|
51
50
|
var DiagnosticCategory = {};
|
|
52
51
|
DiagnosticCategory[DiagnosticCategory["Warning"] = 0] = "Warning";
|
|
53
52
|
DiagnosticCategory[DiagnosticCategory["Error"] = 1] = "Error";
|
|
@@ -469,16 +468,9 @@ var rawPlugin = (options = {}, meta) => {
|
|
|
469
468
|
import_path.default.basename(id.replace(/\.[jt]sx$/, "")),
|
|
470
469
|
import_path.default.basename(id)
|
|
471
470
|
));
|
|
472
|
-
const blank = /* @__PURE__ */ Object.create(null);
|
|
473
|
-
for (const key in jsonSourceMap) {
|
|
474
|
-
if (!hasProp(jsonSourceMap, key))
|
|
475
|
-
continue;
|
|
476
|
-
const value = jsonSourceMap[key];
|
|
477
|
-
blank[key] = value;
|
|
478
|
-
}
|
|
479
471
|
let transformed = {
|
|
480
472
|
code: compiled.code,
|
|
481
|
-
map:
|
|
473
|
+
map: jsonSourceMap
|
|
482
474
|
};
|
|
483
475
|
if (options.transformOutput) {
|
|
484
476
|
transformed = await options.transformOutput(transformed.code, id);
|
|
@@ -15,7 +15,6 @@ import os from "os";
|
|
|
15
15
|
var DEFAULT_EXTENSIONS = [".mjs", ".js", ".mts", ".ts", ".jsx", ".tsx", ".json"];
|
|
16
16
|
|
|
17
17
|
// unplugin-civet:C:\Users\edemaine\Projects\Civet\source\unplugin\unplugin.civet.jsx
|
|
18
|
-
var hasProp = {}.constructor.hasOwn;
|
|
19
18
|
var DiagnosticCategory = {};
|
|
20
19
|
DiagnosticCategory[DiagnosticCategory["Warning"] = 0] = "Warning";
|
|
21
20
|
DiagnosticCategory[DiagnosticCategory["Error"] = 1] = "Error";
|
|
@@ -437,16 +436,9 @@ var rawPlugin = (options = {}, meta) => {
|
|
|
437
436
|
path.basename(id.replace(/\.[jt]sx$/, "")),
|
|
438
437
|
path.basename(id)
|
|
439
438
|
));
|
|
440
|
-
const blank = /* @__PURE__ */ Object.create(null);
|
|
441
|
-
for (const key in jsonSourceMap) {
|
|
442
|
-
if (!hasProp(jsonSourceMap, key))
|
|
443
|
-
continue;
|
|
444
|
-
const value = jsonSourceMap[key];
|
|
445
|
-
blank[key] = value;
|
|
446
|
-
}
|
|
447
439
|
let transformed = {
|
|
448
440
|
code: compiled.code,
|
|
449
|
-
map:
|
|
441
|
+
map: jsonSourceMap
|
|
450
442
|
};
|
|
451
443
|
if (options.transformOutput) {
|
|
452
444
|
transformed = await options.transformOutput(transformed.code, id);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielx/civet",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.25",
|
|
5
5
|
"description": "CoffeeScript style syntax for TypeScript",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/main.mjs",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"files": [
|
|
69
69
|
"dist/",
|
|
70
|
+
"CHANGELOG.md",
|
|
70
71
|
"register.js"
|
|
71
72
|
],
|
|
72
73
|
"engines": {
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"docs:dev": "yarn build && vitepress dev civet.dev",
|
|
78
79
|
"docs:build": "yarn build && vitepress build civet.dev",
|
|
79
80
|
"docs:preview": "yarn build && vitepress preview civet.dev",
|
|
80
|
-
"prepublishOnly": "yarn build && yarn test && yarn changelog",
|
|
81
|
+
"prepublishOnly": "yarn build && yarn test && yarn changelog --release",
|
|
81
82
|
"test": "bash ./build/test.sh",
|
|
82
83
|
"test:self": "yarn build && mocha --config .mocharc-self.json",
|
|
83
84
|
"changelog": "civet build/changelog.civet"
|
|
@@ -87,7 +88,7 @@
|
|
|
87
88
|
"dependencies": {
|
|
88
89
|
"@cspotcode/source-map-support": "^0.8.1",
|
|
89
90
|
"@typescript/vfs": "^1.6.0",
|
|
90
|
-
"unplugin": "^1.
|
|
91
|
+
"unplugin": "^1.12.2"
|
|
91
92
|
},
|
|
92
93
|
"devDependencies": {
|
|
93
94
|
"@danielx/civet": "0.7.16",
|