@riotjs/compiler
Advanced tools
Comparing version 4.3.6 to 4.3.7
# Compiler Changes | ||
### v4.3.7 | ||
- Fix https://github.com/riot/compiler/issues/121 | ||
### v4.3.6 | ||
@@ -4,0 +7,0 @@ - Fix https://github.com/riot/compiler/issues/122 |
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.3.6", | ||
"version": "4.3.7", | ||
"description": "Compiler for riot .tag files", | ||
@@ -21,3 +21,3 @@ "main": "dist/index.js", | ||
"debug": "mocha --inspect --inspect-brk -r esm test/*.spec.js test/**/*.spec.js", | ||
"prepublishOnly": "npm run build" | ||
"prepublishOnly": "npm run build && npm run test" | ||
}, | ||
@@ -24,0 +24,0 @@ "repository": { |
@@ -86,5 +86,6 @@ import {builders, types} from '../../utils/build-types' | ||
const escapeIdentifier = identifier => JSON.stringify(cssEscape(identifier, { | ||
const escapeBackslashes = s => s.replace(/\\/g, '\\\\') | ||
const escapeIdentifier = identifier => escapeBackslashes(cssEscape(identifier, { | ||
isIdentifier: true | ||
})).replace(/"$|^"/g, '') | ||
})) | ||
@@ -107,4 +108,4 @@ /** | ||
const cssCode = (options.scopedCss ? | ||
scopedCSS(escapedCssIdentifier, cssEscape(preprocessorOutput.code)) : | ||
cssEscape(preprocessorOutput.code) | ||
scopedCSS(escapedCssIdentifier, escapeBackslashes(preprocessorOutput.code)) : | ||
escapeBackslashes(preprocessorOutput.code) | ||
).trim() | ||
@@ -111,0 +112,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1468309
37285