@torpor/view 0.0.12 → 0.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@torpor/view",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Torpor's view library, for writing and mounting components",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -217,17 +217,21 @@ function parseComponentStyle(status: ParseStatus) {
217
217
  // Skip block comments
218
218
  status.i = status.source.indexOf("*/", status.i) + 1;
219
219
  } else if (char === '"' || char === "'") {
220
+ styleSource += char;
220
221
  // Skip string contents
221
222
  for (let j = status.i + 1; j < status.source.length; j++) {
223
+ styleSource += status.source[j];
222
224
  if (status.source[j] === char && status.source[j - 1] !== "\\") {
223
225
  status.i = j;
224
226
  break;
225
227
  }
226
228
  }
227
229
  } else if (char === "`") {
230
+ styleSource += char;
228
231
  // Skip possibly interpolated string contents
229
232
  let level2 = 0;
230
233
  for (let j = status.i + 1; j < status.source.length; j++) {
234
+ styleSource += status.source[j];
231
235
  if (status.source[j] === char && status.source[j - 1] !== "\\" && level2 === 0) {
232
236
  status.i = j;
233
237
  break;