postcss-safe-parser
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -0,1 +1,4 @@ | ||
## 1.0.5 | ||
* Fix CSS syntax error position on unclosed quotes. | ||
## 1.0.4 | ||
@@ -2,0 +5,0 @@ * Fix wrong `main` in `package.json`. |
@@ -21,3 +21,3 @@ 'use strict'; | ||
var SafeParser = (function (_Parser) { | ||
var SafeParser = function (_Parser) { | ||
_inherits(SafeParser, _Parser); | ||
@@ -87,5 +87,5 @@ | ||
return SafeParser; | ||
})(_parser2.default); | ||
}(_parser2.default); | ||
exports.default = SafeParser; | ||
module.exports = exports['default']; |
@@ -149,3 +149,18 @@ 'use strict'; | ||
tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, line, next - offset]); | ||
content = css.slice(pos, next + 1); | ||
lines = content.split('\n'); | ||
last = lines.length - 1; | ||
if (last > 0) { | ||
nextLine = line + last; | ||
nextOffset = next - lines[last].length; | ||
} else { | ||
nextLine = line; | ||
nextOffset = offset; | ||
} | ||
tokens.push(['string', css.slice(pos, next + 1), line, pos - offset, nextLine, next - nextOffset]); | ||
offset = nextOffset; | ||
line = nextLine; | ||
pos = next; | ||
@@ -152,0 +167,0 @@ break; |
{ | ||
"name": "postcss-safe-parser", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Fault-tolerant CSS parser for PostCSS", | ||
@@ -14,24 +14,23 @@ "keywords": [ | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/postcss/postcss-safe-parser.git" | ||
}, | ||
"repository": "postcss/postcss-safe-parser", | ||
"dependencies": { | ||
"postcss": "^5.0.13" | ||
"babel-preset-es2015": "6.5.0", | ||
"postcss": "^5.0.15" | ||
}, | ||
"devDependencies": { | ||
"eslint-config-postcss": "2.0.0", | ||
"postcss-parser-tests": "5.0.5", | ||
"gulp-json-editor": "2.2.1", | ||
"babel-eslint": "5.0.0-beta6", | ||
"gulp-eslint": "1.1.1", | ||
"gulp-babel": "6.1.1", | ||
"babel-eslint": "5.0.0-beta10", | ||
"gulp-eslint": "2.0.0", | ||
"gulp-babel": "6.1.2", | ||
"gulp-mocha": "2.2.0", | ||
"mocha": "2.3.4", | ||
"gulp": "3.9.0", | ||
"chai": "3.4.1", | ||
"mocha": "2.4.5", | ||
"gulp": "3.9.1", | ||
"chai": "3.5.0", | ||
"del": "2.2.0", | ||
"babel-plugin-add-module-exports": "0.1.2", | ||
"babel-preset-es2015-loose": "6.1.3", | ||
"babel-preset-stage-0": "6.3.13", | ||
"babel-core": "6.3.26" | ||
"babel-preset-es2015-loose": "7.0.0", | ||
"babel-preset-stage-0": "6.5.0", | ||
"babel-core": "6.5.2" | ||
}, | ||
@@ -38,0 +37,0 @@ "scripts": { |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
15516
282
2
15
1
+ Addedbabel-preset-es2015@6.5.0
+ Addedbabel-code-frame@6.26.0(transitive)
+ Addedbabel-helper-call-delegate@6.24.1(transitive)
+ Addedbabel-helper-define-map@6.26.0(transitive)
+ Addedbabel-helper-function-name@6.24.1(transitive)
+ Addedbabel-helper-get-function-arity@6.24.1(transitive)
+ Addedbabel-helper-hoist-variables@6.24.1(transitive)
+ Addedbabel-helper-optimise-call-expression@6.24.1(transitive)
+ Addedbabel-helper-regex@6.26.0(transitive)
+ Addedbabel-helper-replace-supers@6.24.1(transitive)
+ Addedbabel-messages@6.23.0(transitive)
+ Addedbabel-plugin-check-es2015-constants@6.22.0(transitive)
+ Addedbabel-plugin-transform-es2015-arrow-functions@6.22.0(transitive)
+ Addedbabel-plugin-transform-es2015-block-scoped-functions@6.22.0(transitive)
+ Addedbabel-plugin-transform-es2015-block-scoping@6.26.0(transitive)
+ Addedbabel-plugin-transform-es2015-classes@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-computed-properties@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-destructuring@6.23.0(transitive)
+ Addedbabel-plugin-transform-es2015-for-of@6.23.0(transitive)
+ Addedbabel-plugin-transform-es2015-function-name@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-literals@6.22.0(transitive)
+ Addedbabel-plugin-transform-es2015-modules-commonjs@6.26.2(transitive)
+ Addedbabel-plugin-transform-es2015-object-super@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-parameters@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-shorthand-properties@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-spread@6.22.0(transitive)
+ Addedbabel-plugin-transform-es2015-sticky-regex@6.24.1(transitive)
+ Addedbabel-plugin-transform-es2015-template-literals@6.22.0(transitive)
+ Addedbabel-plugin-transform-es2015-typeof-symbol@6.23.0(transitive)
+ Addedbabel-plugin-transform-es2015-unicode-regex@6.24.1(transitive)
+ Addedbabel-plugin-transform-regenerator@6.26.0(transitive)
+ Addedbabel-plugin-transform-strict-mode@6.24.1(transitive)
+ Addedbabel-preset-es2015@6.5.0(transitive)
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedbabel-template@6.26.0(transitive)
+ Addedbabel-traverse@6.26.0(transitive)
+ Addedbabel-types@6.26.0(transitive)
+ Addedbabylon@6.18.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedesutils@2.0.3(transitive)
+ Addedglobals@9.18.0(transitive)
+ Addedinvariant@2.2.4(transitive)
+ Addedjs-tokens@3.0.2(transitive)
+ Addedjsesc@0.5.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedregenerate@1.4.2(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)
+ Addedregenerator-transform@0.10.1(transitive)
+ Addedregexpu-core@2.0.0(transitive)
+ Addedregjsgen@0.2.0(transitive)
+ Addedregjsparser@0.1.5(transitive)
+ Addedto-fast-properties@1.0.3(transitive)
Updatedpostcss@^5.0.15