@csszyx/vue-adapter 0.13.0 → 0.14.1

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
@@ -52,7 +52,7 @@ function transformTemplate(template, options = {}) {
52
52
  break;
53
53
  }
54
54
  result += template.slice(cursor, attribute.start);
55
- const match = readQuotedSzAttribute(template, attribute.start, attribute.valueStart);
55
+ const match = readQuotedSzAttribute(template, attribute.valueStart);
56
56
  if (!match) {
57
57
  result += template.slice(attribute.start, attribute.valueStart);
58
58
  cursor = attribute.valueStart;
@@ -100,7 +100,7 @@ function findVueSzAttribute(template, from) {
100
100
  }
101
101
  return null;
102
102
  }
103
- function readQuotedSzAttribute(template, start, valueStart) {
103
+ function readQuotedSzAttribute(template, valueStart) {
104
104
  const quote = template.charAt(valueStart);
105
105
  if (quote !== '"' && quote !== "'") {
106
106
  return null;
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ function transformTemplate(template, options = {}) {
52
52
  break;
53
53
  }
54
54
  result += template.slice(cursor, attribute.start);
55
- const match = readQuotedSzAttribute(template, attribute.start, attribute.valueStart);
55
+ const match = readQuotedSzAttribute(template, attribute.valueStart);
56
56
  if (!match) {
57
57
  result += template.slice(attribute.start, attribute.valueStart);
58
58
  cursor = attribute.valueStart;
@@ -100,7 +100,7 @@ function findVueSzAttribute(template, from) {
100
100
  }
101
101
  return null;
102
102
  }
103
- function readQuotedSzAttribute(template, start, valueStart) {
103
+ function readQuotedSzAttribute(template, valueStart) {
104
104
  const quote = template.charAt(valueStart);
105
105
  if (quote !== '"' && quote !== "'") {
106
106
  return null;
package/dist/index.mjs CHANGED
@@ -40,7 +40,7 @@ export function transformTemplate(template, options = {}) {
40
40
  break;
41
41
  }
42
42
  result += template.slice(cursor, attribute.start);
43
- const match = readQuotedSzAttribute(template, attribute.start, attribute.valueStart);
43
+ const match = readQuotedSzAttribute(template, attribute.valueStart);
44
44
  if (!match) {
45
45
  result += template.slice(attribute.start, attribute.valueStart);
46
46
  cursor = attribute.valueStart;
@@ -85,7 +85,7 @@ function findVueSzAttribute(template, from) {
85
85
  }
86
86
  return null;
87
87
  }
88
- function readQuotedSzAttribute(template, start, valueStart) {
88
+ function readQuotedSzAttribute(template, valueStart) {
89
89
  const quote = template.charAt(valueStart);
90
90
  if (quote !== '"' && quote !== "'") {
91
91
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csszyx/vue-adapter",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "private": false,
5
5
  "description": "Vue SFC preprocessor for csszyx - transform sz props to className",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@csszyx/compiler": "0.13.0"
27
+ "@csszyx/compiler": "0.14.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "vue": "^3.0.0"
@@ -38,9 +38,9 @@
38
38
  "@types/node": "^22.20.1",
39
39
  "typescript": "^6.0.3",
40
40
  "unbuild": "^3.6.1",
41
- "vite": "^8.1.5",
41
+ "vite": "^8.2.1",
42
42
  "vitest": "^4.1.10",
43
- "vue": "^3.5.40"
43
+ "vue": "^3.5.41"
44
44
  },
45
45
  "files": [
46
46
  "dist"