@danielx/civet 0.6.73 → 0.6.75

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
@@ -80,7 +80,7 @@ function implicitCivet(file) {
80
80
  return civet2;
81
81
  return;
82
82
  }
83
- var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) => {
83
+ var rawPlugin = (options = {}, meta) => {
84
84
  if (options.dts)
85
85
  options.emitDeclaration = options.dts;
86
86
  if (options.js)
@@ -389,8 +389,8 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) =>
389
389
  }
390
390
  }
391
391
  };
392
- });
393
- var src_default = civetUnplugin;
392
+ };
393
+ var src_default = (0, import_unplugin.createUnplugin)(rawPlugin);
394
394
 
395
395
  // src/rollup.ts
396
396
  var rollup_default = src_default.rollup;
package/dist/types.d.ts CHANGED
@@ -7,6 +7,7 @@ declare module "@danielx/civet" {
7
7
  coffeeBooleans: boolean
8
8
  coffeeClasses: boolean
9
9
  coffeeComment: boolean
10
+ coffeeCompat: boolean
10
11
  coffeeDo: boolean
11
12
  coffeeEq: boolean
12
13
  coffeeForLoops: boolean
@@ -47,7 +47,7 @@ function implicitCivet(file) {
47
47
  return civet2;
48
48
  return;
49
49
  }
50
- var civetUnplugin = createUnplugin((options = {}, meta) => {
50
+ var rawPlugin = (options = {}, meta) => {
51
51
  if (options.dts)
52
52
  options.emitDeclaration = options.dts;
53
53
  if (options.js)
@@ -356,10 +356,11 @@ var civetUnplugin = createUnplugin((options = {}, meta) => {
356
356
  }
357
357
  }
358
358
  };
359
- });
360
- var src_default = civetUnplugin;
359
+ };
360
+ var src_default = createUnplugin(rawPlugin);
361
361
 
362
362
  export {
363
363
  slash,
364
+ rawPlugin,
364
365
  src_default
365
366
  };
@@ -1,5 +1,5 @@
1
1
  import * as unplugin from 'unplugin';
2
- import { TransformResult } from 'unplugin';
2
+ import { TransformResult, createUnplugin } from 'unplugin';
3
3
 
4
4
  type PluginOptions = {
5
5
  implicitExtension?: boolean;
@@ -14,6 +14,7 @@ type PluginOptions = {
14
14
  dts?: boolean;
15
15
  };
16
16
  declare function slash(p: string): string;
17
- declare const civetUnplugin: unplugin.UnpluginInstance<PluginOptions, boolean>;
17
+ declare const rawPlugin: Parameters<typeof createUnplugin<PluginOptions>>[0];
18
+ declare const _default: unplugin.UnpluginInstance<PluginOptions, boolean>;
18
19
 
19
- export { PluginOptions, civetUnplugin as default, slash };
20
+ export { PluginOptions, _default as default, rawPlugin, slash };
@@ -1,5 +1,5 @@
1
1
  import * as unplugin from 'unplugin';
2
- import { TransformResult } from 'unplugin';
2
+ import { TransformResult, createUnplugin } from 'unplugin';
3
3
 
4
4
  type PluginOptions = {
5
5
  implicitExtension?: boolean;
@@ -14,6 +14,7 @@ type PluginOptions = {
14
14
  dts?: boolean;
15
15
  };
16
16
  declare function slash(p: string): string;
17
- declare const civetUnplugin: unplugin.UnpluginInstance<PluginOptions, boolean>;
17
+ declare const rawPlugin: Parameters<typeof createUnplugin<PluginOptions>>[0];
18
+ declare const _default: unplugin.UnpluginInstance<PluginOptions, boolean>;
18
19
 
19
- export { PluginOptions, civetUnplugin as default, slash };
20
+ export { PluginOptions, _default as default, rawPlugin, slash };
package/dist/unplugin.js CHANGED
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var src_exports = {};
32
32
  __export(src_exports, {
33
33
  default: () => src_default,
34
+ rawPlugin: () => rawPlugin,
34
35
  slash: () => slash
35
36
  });
36
37
  module.exports = __toCommonJS(src_exports);
@@ -79,7 +80,7 @@ function implicitCivet(file) {
79
80
  return civet2;
80
81
  return;
81
82
  }
82
- var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) => {
83
+ var rawPlugin = (options = {}, meta) => {
83
84
  if (options.dts)
84
85
  options.emitDeclaration = options.dts;
85
86
  if (options.js)
@@ -388,9 +389,10 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) =>
388
389
  }
389
390
  }
390
391
  };
391
- });
392
- var src_default = civetUnplugin;
392
+ };
393
+ var src_default = (0, import_unplugin.createUnplugin)(rawPlugin);
393
394
  // Annotate the CommonJS export names for ESM import in node:
394
395
  0 && (module.exports = {
396
+ rawPlugin,
395
397
  slash
396
398
  });
package/dist/unplugin.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  import {
2
+ rawPlugin,
2
3
  slash,
3
4
  src_default
4
5
  } from "./unplugin-shared.mjs";
5
6
  export {
6
7
  src_default as default,
8
+ rawPlugin,
7
9
  slash
8
10
  };
package/dist/vite.js CHANGED
@@ -80,7 +80,7 @@ function implicitCivet(file) {
80
80
  return civet2;
81
81
  return;
82
82
  }
83
- var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) => {
83
+ var rawPlugin = (options = {}, meta) => {
84
84
  if (options.dts)
85
85
  options.emitDeclaration = options.dts;
86
86
  if (options.js)
@@ -389,8 +389,8 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) =>
389
389
  }
390
390
  }
391
391
  };
392
- });
393
- var src_default = civetUnplugin;
392
+ };
393
+ var src_default = (0, import_unplugin.createUnplugin)(rawPlugin);
394
394
 
395
395
  // src/vite.ts
396
396
  var vite_default = src_default.vite;
package/dist/webpack.js CHANGED
@@ -80,7 +80,7 @@ function implicitCivet(file) {
80
80
  return civet2;
81
81
  return;
82
82
  }
83
- var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) => {
83
+ var rawPlugin = (options = {}, meta) => {
84
84
  if (options.dts)
85
85
  options.emitDeclaration = options.dts;
86
86
  if (options.js)
@@ -389,8 +389,8 @@ var civetUnplugin = (0, import_unplugin.createUnplugin)((options = {}, meta) =>
389
389
  }
390
390
  }
391
391
  };
392
- });
393
- var src_default = civetUnplugin;
392
+ };
393
+ var src_default = (0, import_unplugin.createUnplugin)(rawPlugin);
394
394
 
395
395
  // src/webpack.ts
396
396
  var webpack_default = src_default.webpack;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
3
  "type": "commonjs",
4
- "version": "0.6.73",
4
+ "version": "0.6.75",
5
5
  "description": "CoffeeScript style syntax for TypeScript",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/main.mjs",
@@ -70,7 +70,7 @@
70
70
  "unplugin": "^1.6.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@danielx/civet": "0.6.64",
73
+ "@danielx/civet": "0.6.73",
74
74
  "@danielx/hera": "^0.8.11",
75
75
  "@prettier/sync": "^0.3.0",
76
76
  "@types/assert": "^1.5.6",