@unocss/preset-tagify 0.54.3 → 0.55.0

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
@@ -12,20 +12,18 @@ function extractorTagify(options) {
12
12
  return {
13
13
  name: "tagify",
14
14
  extract({ code }) {
15
- return new Set(
16
- Array.from(code.matchAll(htmlTagRE)).filter(({ 1: match }) => {
17
- for (const exclude of excludedTags) {
18
- if (typeof exclude === "string") {
19
- if (match === exclude)
20
- return false;
21
- } else {
22
- if (exclude.test(match))
23
- return false;
24
- }
15
+ return Array.from(code.matchAll(htmlTagRE)).filter(({ 1: match }) => {
16
+ for (const exclude of excludedTags) {
17
+ if (typeof exclude === "string") {
18
+ if (match === exclude)
19
+ return false;
20
+ } else {
21
+ if (exclude.test(match))
22
+ return false;
25
23
  }
26
- return match.startsWith(prefix);
27
- }).map(([, matched]) => `${MARKER}${matched}`)
28
- );
24
+ }
25
+ return match.startsWith(prefix);
26
+ }).map(([, matched]) => `${MARKER}${matched}`);
29
27
  }
30
28
  };
31
29
  }
package/dist/index.mjs CHANGED
@@ -8,20 +8,18 @@ function extractorTagify(options) {
8
8
  return {
9
9
  name: "tagify",
10
10
  extract({ code }) {
11
- return new Set(
12
- Array.from(code.matchAll(htmlTagRE)).filter(({ 1: match }) => {
13
- for (const exclude of excludedTags) {
14
- if (typeof exclude === "string") {
15
- if (match === exclude)
16
- return false;
17
- } else {
18
- if (exclude.test(match))
19
- return false;
20
- }
11
+ return Array.from(code.matchAll(htmlTagRE)).filter(({ 1: match }) => {
12
+ for (const exclude of excludedTags) {
13
+ if (typeof exclude === "string") {
14
+ if (match === exclude)
15
+ return false;
16
+ } else {
17
+ if (exclude.test(match))
18
+ return false;
21
19
  }
22
- return match.startsWith(prefix);
23
- }).map(([, matched]) => `${MARKER}${matched}`)
24
- );
20
+ }
21
+ return match.startsWith(prefix);
22
+ }).map(([, matched]) => `${MARKER}${matched}`);
25
23
  }
26
24
  };
27
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-tagify",
3
- "version": "0.54.3",
3
+ "version": "0.55.0",
4
4
  "description": "Tagify preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@unocss/core": "0.54.3"
36
+ "@unocss/core": "0.55.0"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "unbuild",