@gustcss/vite 0.5.1 → 0.5.2

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/index.cjs CHANGED
@@ -1,5 +1,8 @@
1
- Object.defineProperty(exports, '__esModule', { value: true });
2
- //#region rolldown:runtime
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ //#region \0rolldown/runtime.js
3
6
  var __create = Object.create;
4
7
  var __defProp = Object.defineProperty;
5
8
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -7,16 +10,12 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
10
  var __getProtoOf = Object.getPrototypeOf;
8
11
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
12
  var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
- key = keys[i];
13
- if (!__hasOwnProp.call(to, key) && key !== except) {
14
- __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- }
13
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
14
+ key = keys[i];
15
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: ((k) => from[k]).bind(null, key),
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
20
19
  }
21
20
  return to;
22
21
  };
@@ -24,14 +23,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
23
  value: mod,
25
24
  enumerable: true
26
25
  }) : target, mod));
27
-
28
26
  //#endregion
29
27
  let child_process = require("child_process");
30
28
  let path = require("path");
31
- path = __toESM(path);
29
+ path = __toESM(path, 1);
32
30
  let fs = require("fs");
33
- fs = __toESM(fs);
34
-
31
+ fs = __toESM(fs, 1);
35
32
  //#region src/index.js
36
33
  /**
37
34
  * @gustcss/vite - Vite plugin for CSS Utility Generator
@@ -41,6 +38,10 @@ fs = __toESM(fs);
41
38
  * export default defineConfig({
42
39
  * plugins: [gustcss({ output: 'src/styles/utility.css' })],
43
40
  * })
41
+ *
42
+ * @security Configuration paths (content, config, output) are trusted as they
43
+ * are provided by the developer in their build configuration. This plugin is
44
+ * designed for build-time use only and should not process untrusted input.
44
45
  */
45
46
  function cssUtility(opts = {}) {
46
47
  const output = opts.output || "src/styles/utility.css";
@@ -178,8 +179,6 @@ function cssUtility(opts = {}) {
178
179
  }
179
180
  };
180
181
  }
181
- var src_default = cssUtility;
182
-
183
182
  //#endregion
184
183
  exports.cssUtility = cssUtility;
185
- exports.default = src_default;
184
+ exports.default = cssUtility;
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { spawn, spawnSync } from "child_process";
2
2
  import path from "path";
3
3
  import fs from "fs";
4
-
5
4
  //#region src/index.js
6
5
  /**
7
6
  * @gustcss/vite - Vite plugin for CSS Utility Generator
@@ -11,6 +10,10 @@ import fs from "fs";
11
10
  * export default defineConfig({
12
11
  * plugins: [gustcss({ output: 'src/styles/utility.css' })],
13
12
  * })
13
+ *
14
+ * @security Configuration paths (content, config, output) are trusted as they
15
+ * are provided by the developer in their build configuration. This plugin is
16
+ * designed for build-time use only and should not process untrusted input.
14
17
  */
15
18
  function cssUtility(opts = {}) {
16
19
  const output = opts.output || "src/styles/utility.css";
@@ -148,7 +151,5 @@ function cssUtility(opts = {}) {
148
151
  }
149
152
  };
150
153
  }
151
- var src_default = cssUtility;
152
-
153
154
  //#endregion
154
- export { cssUtility, src_default as default };
155
+ export { cssUtility, cssUtility as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustcss/vite",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Vite plugin for GustCSS",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",
@@ -33,7 +33,7 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "gustcss": "^0.5.1"
36
+ "gustcss": "^0.5.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "rolldown": "^1.0.0-beta.5"