@danielx/civet 0.6.54 → 0.6.56

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/rollup.js CHANGED
@@ -280,7 +280,7 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
280
280
  }
281
281
  }
282
282
  }
283
- const jsonSourceMap = typeof compiled.sourceMap == "string" ? compiled.sourceMap : compiled.sourceMap.json(
283
+ const jsonSourceMap = typeof compiled.sourceMap == "string" ? JSON.parse(compiled.sourceMap) : compiled.sourceMap.json(
284
284
  import_path.default.basename(id.replace(/\.[jt]sx$/, "")),
285
285
  import_path.default.basename(id)
286
286
  );
@@ -1,7 +1,5 @@
1
1
  // src/index.ts
2
- import {
3
- createUnplugin
4
- } from "unplugin";
2
+ import { createUnplugin } from "unplugin";
5
3
  import civet from "@danielx/civet";
6
4
  import {
7
5
  remapRange,
@@ -249,7 +247,7 @@ var civetUnplugin = createUnplugin((options = {}) => {
249
247
  }
250
248
  }
251
249
  }
252
- const jsonSourceMap = typeof compiled.sourceMap == "string" ? compiled.sourceMap : compiled.sourceMap.json(
250
+ const jsonSourceMap = typeof compiled.sourceMap == "string" ? JSON.parse(compiled.sourceMap) : compiled.sourceMap.json(
253
251
  path.basename(id.replace(/\.[jt]sx$/, "")),
254
252
  path.basename(id)
255
253
  );
package/dist/unplugin.js CHANGED
@@ -279,7 +279,7 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
279
279
  }
280
280
  }
281
281
  }
282
- const jsonSourceMap = typeof compiled.sourceMap == "string" ? compiled.sourceMap : compiled.sourceMap.json(
282
+ const jsonSourceMap = typeof compiled.sourceMap == "string" ? JSON.parse(compiled.sourceMap) : compiled.sourceMap.json(
283
283
  import_path.default.basename(id.replace(/\.[jt]sx$/, "")),
284
284
  import_path.default.basename(id)
285
285
  );
package/dist/vite.js CHANGED
@@ -280,7 +280,7 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
280
280
  }
281
281
  }
282
282
  }
283
- const jsonSourceMap = typeof compiled.sourceMap == "string" ? compiled.sourceMap : compiled.sourceMap.json(
283
+ const jsonSourceMap = typeof compiled.sourceMap == "string" ? JSON.parse(compiled.sourceMap) : compiled.sourceMap.json(
284
284
  import_path.default.basename(id.replace(/\.[jt]sx$/, "")),
285
285
  import_path.default.basename(id)
286
286
  );
package/dist/webpack.js CHANGED
@@ -280,7 +280,7 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}) => {
280
280
  }
281
281
  }
282
282
  }
283
- const jsonSourceMap = typeof compiled.sourceMap == "string" ? compiled.sourceMap : compiled.sourceMap.json(
283
+ const jsonSourceMap = typeof compiled.sourceMap == "string" ? JSON.parse(compiled.sourceMap) : compiled.sourceMap.json(
284
284
  import_path.default.basename(id.replace(/\.[jt]sx$/, "")),
285
285
  import_path.default.basename(id)
286
286
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
3
  "type": "commonjs",
4
- "version": "0.6.54",
4
+ "version": "0.6.56",
5
5
  "description": "CoffeeScript style syntax for TypeScript",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/main.mjs",
@@ -72,6 +72,7 @@
72
72
  "devDependencies": {
73
73
  "@danielx/civet": "0.6.45",
74
74
  "@danielx/hera": "^0.8.10",
75
+ "@prettier/sync": "^0.3.0",
75
76
  "@types/assert": "^1.5.6",
76
77
  "@types/mocha": "^9.1.1",
77
78
  "@types/node": "^20.5.1",
@@ -80,13 +81,13 @@
80
81
  "esbuild": "0.16.17",
81
82
  "marked": "^4.2.4",
82
83
  "mocha": "^10.0.0",
83
- "prettier": "^2.8.1",
84
+ "prettier": "^3.1.1",
84
85
  "terser": "^5.16.1",
85
86
  "ts-node": "^10.9.1",
86
87
  "tslib": "^2.4.0",
87
88
  "tsup": "^7.2.0",
88
89
  "typescript": "^5.2.2",
89
- "vite": "^4.4.9",
90
+ "vite": "^4.4.12",
90
91
  "vitepress": "^1.0.0-alpha.35",
91
92
  "vscode-languageserver": "^8.1.0",
92
93
  "vscode-languageserver-textdocument": "^1.0.8",