css-typed-vars 0.4.9 → 0.4.10
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/{chunk-7QP7R3IQ.js → chunk-3YUKUAJQ.js} +1 -1
- package/dist/{chunk-MQAIY4QW.js → chunk-K5FAEWQE.js} +1 -1
- package/dist/{chunk-Y3WJXRDA.js → chunk-YVFKCMBF.js} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +2 -2
- package/dist/esbuild.cjs +1 -1
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.js +2 -2
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.js +2 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.js +2 -2
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.js +2 -2
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ var __dirname = /* @__PURE__ */ getDirname();
|
|
|
7
7
|
|
|
8
8
|
// src/parser.ts
|
|
9
9
|
function parseVarNames(css, selectors) {
|
|
10
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
10
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
11
11
|
const names = /* @__PURE__ */ new Set();
|
|
12
12
|
const allSelectors = [":root", ...selectors ?? []];
|
|
13
13
|
for (const sel of allSelectors) {
|
package/dist/cli.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
43
43
|
|
|
44
44
|
// src/parser.ts
|
|
45
45
|
function parseVarNames(css, selectors) {
|
|
46
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
46
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
47
47
|
const names = /* @__PURE__ */ new Set();
|
|
48
48
|
const allSelectors = [":root", ...selectors ?? []];
|
|
49
49
|
for (const sel of allSelectors) {
|
package/dist/cli.js
CHANGED
package/dist/esbuild.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
45
45
|
|
|
46
46
|
// src/parser.ts
|
|
47
47
|
function parseVarNames(css, selectors) {
|
|
48
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
48
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
49
49
|
const names = /* @__PURE__ */ new Set();
|
|
50
50
|
const allSelectors = [":root", ...selectors ?? []];
|
|
51
51
|
for (const sel of allSelectors) {
|
package/dist/esbuild.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
47
47
|
|
|
48
48
|
// src/parser.ts
|
|
49
49
|
function parseVarNames(css, selectors) {
|
|
50
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
50
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
51
51
|
const names = /* @__PURE__ */ new Set();
|
|
52
52
|
const allSelectors = [":root", ...selectors ?? []];
|
|
53
53
|
for (const sel of allSelectors) {
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K5FAEWQE.js";
|
|
4
4
|
import {
|
|
5
5
|
generateCode,
|
|
6
6
|
generateDeclaration,
|
|
7
7
|
generateJs,
|
|
8
8
|
parseVarNames,
|
|
9
9
|
scanVarNames
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YVFKCMBF.js";
|
|
11
11
|
export {
|
|
12
12
|
generate,
|
|
13
13
|
generateCode,
|
package/dist/rollup.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
45
45
|
|
|
46
46
|
// src/parser.ts
|
|
47
47
|
function parseVarNames(css, selectors) {
|
|
48
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
48
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
49
49
|
const names = /* @__PURE__ */ new Set();
|
|
50
50
|
const allSelectors = [":root", ...selectors ?? []];
|
|
51
51
|
for (const sel of allSelectors) {
|
package/dist/rollup.js
CHANGED
package/dist/unplugin.cjs
CHANGED
|
@@ -43,7 +43,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
43
43
|
|
|
44
44
|
// src/parser.ts
|
|
45
45
|
function parseVarNames(css, selectors) {
|
|
46
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
46
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
47
47
|
const names = /* @__PURE__ */ new Set();
|
|
48
48
|
const allSelectors = [":root", ...selectors ?? []];
|
|
49
49
|
for (const sel of allSelectors) {
|
package/dist/unplugin.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
45
45
|
|
|
46
46
|
// src/parser.ts
|
|
47
47
|
function parseVarNames(css, selectors) {
|
|
48
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
48
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
49
49
|
const names = /* @__PURE__ */ new Set();
|
|
50
50
|
const allSelectors = [":root", ...selectors ?? []];
|
|
51
51
|
for (const sel of allSelectors) {
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var import_fast_glob = __toESM(require("fast-glob"), 1);
|
|
|
45
45
|
|
|
46
46
|
// src/parser.ts
|
|
47
47
|
function parseVarNames(css, selectors) {
|
|
48
|
-
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(
|
|
48
|
+
const stripped = css.replace(/\/\*[\s\S]*?\*\//g, "").replace(/(?<!:)\/\/.*$/gm, "");
|
|
49
49
|
const names = /* @__PURE__ */ new Set();
|
|
50
50
|
const allSelectors = [":root", ...selectors ?? []];
|
|
51
51
|
for (const sel of allSelectors) {
|
package/dist/webpack.js
CHANGED