Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-safe-parser

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-safe-parser - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

8

CHANGELOG.md

@@ -0,1 +1,8 @@

# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 3.0.0
* Use PostCSS 6.0.
* Use `babel-preset-env`.
## 2.0.1

@@ -30,3 +37,2 @@ * Do not fall on colon instead of semicolon in the declaration end.

## 1.0
* Initial release from PostCSS sources.

5

lib/safe-parse.js

@@ -20,4 +20,3 @@ 'use strict';

var parser = new _safeParser2.default(input);
parser.tokenize();
parser.loop();
parser.parse();

@@ -27,2 +26,2 @@ return parser.root;

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNhZmUtcGFyc2UuZXM2Il0sIm5hbWVzIjpbInNhZmVQYXJzZSIsImNzcyIsIm9wdHMiLCJpbnB1dCIsInBhcnNlciIsInRva2VuaXplIiwibG9vcCIsInJvb3QiXSwibWFwcGluZ3MiOiI7OztrQkFJd0JBLFM7O0FBSnhCOzs7O0FBRUE7Ozs7OztBQUVlLFNBQVNBLFNBQVQsQ0FBbUJDLEdBQW5CLEVBQXdCQyxJQUF4QixFQUE4QjtBQUN6QyxRQUFJQyxRQUFRLG9CQUFVRixHQUFWLEVBQWVDLElBQWYsQ0FBWjs7QUFFQSxRQUFJRSxTQUFTLHlCQUFlRCxLQUFmLENBQWI7QUFDQUMsV0FBT0MsUUFBUDtBQUNBRCxXQUFPRSxJQUFQOztBQUVBLFdBQU9GLE9BQU9HLElBQWQ7QUFDSCIsImZpbGUiOiJzYWZlLXBhcnNlLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IElucHV0IGZyb20gJ3Bvc3Rjc3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sZXQgaW5wdXQgPSBuZXcgSW5wdXQoY3NzLCBvcHRzKTtcblxuICAgIGxldCBwYXJzZXIgPSBuZXcgU2FmZVBhcnNlcihpbnB1dCk7XG4gICAgcGFyc2VyLnBhcnNlKCk7XG5cbiAgICByZXR1cm4gcGFyc2VyLnJvb3Q7XG59XG4iXX0=

@@ -5,5 +5,5 @@ 'use strict';

var _tokenize2 = require('postcss/lib/tokenize');
var _tokenize = require('postcss/lib/tokenize');
var _tokenize3 = _interopRequireDefault(_tokenize2);
var _tokenize2 = _interopRequireDefault(_tokenize);

@@ -35,4 +35,4 @@ var _comment = require('postcss/lib/comment');

SafeParser.prototype.tokenize = function tokenize() {
this.tokens = (0, _tokenize3.default)(this.input, { ignoreErrors: true });
SafeParser.prototype.createTokenizer = function createTokenizer() {
this.tokenizer = (0, _tokenize2.default)(this.input, { ignoreErrors: true });
};

@@ -68,5 +68,4 @@

SafeParser.prototype.unknownWord = function unknownWord(start) {
var buffer = this.tokens.slice(start, this.pos + 1);
this.spaces += buffer.map(function (i) {
SafeParser.prototype.unknownWord = function unknownWord(tokens) {
this.spaces += tokens.map(function (i) {
return i[1];

@@ -123,2 +122,2 @@ }).join('');

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNhZmUtcGFyc2VyLmVzNiJdLCJuYW1lcyI6WyJTYWZlUGFyc2VyIiwidG9rZW5pemUiLCJ0b2tlbnMiLCJpbnB1dCIsImlnbm9yZUVycm9ycyIsImNvbW1lbnQiLCJ0b2tlbiIsIm5vZGUiLCJpbml0Iiwic291cmNlIiwiZW5kIiwibGluZSIsImNvbHVtbiIsInRleHQiLCJzbGljZSIsInRlc3QiLCJyYXdzIiwibGVmdCIsInJpZ2h0IiwibWF0Y2giLCJkZWNsIiwibGVuZ3RoIiwidW5jbG9zZWRCcmFja2V0IiwidW5rbm93bldvcmQiLCJzdGFydCIsImJ1ZmZlciIsInBvcyIsInNw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1xuICAgICAgICAgICAgbm9kZS5yYXdzLmxlZnQgID0gbWF0Y2hbMV07XG4gICAgICAgICAgICBub2RlLnJhd3MucmlnaHQgPSBtYXRjaFszXTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGRlY2wodG9rZW5zKSB7XG4gICAgICAgIGlmICggdG9rZW5zLmxlbmd0aCA+IDEgfHwgdG9rZW5zWzBdWzBdICE9PSAnOicgKSB7XG4gICAgICAgICAgICBzdXBlci5kZWNsKHRva2Vucyk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB1bmNsb3NlZEJyYWNrZXQoKSB7IH1cblxuICAgIHVua25vd25Xb3JkKHRva2Vucykge1xuICAgICAgICB0aGlzLnNwYWNlcyArPSB0b2tlbnMubWFwKGkgPT4gaVsxXSkuam9pbignJyk7XG4gICAgfVxuXG4gICAgdW5leHBlY3RlZENsb3NlKCkge1xuICAgICAgICB0aGlzLmN1cnJlbnQucmF3cy5hZnRlciArPSAnfSc7XG4gICAgfVxuXG4gICAgZG91YmxlQ29sb24oKSB7IH1cblxuICAgIHVubmFtZWRBdHJ1bGUobm9kZSkge1xuICAgICAgICBub2RlLm5hbWUgPSAnJztcbiAgICB9XG5cbiAgICBwcmVjaGVja01pc3NlZFNlbWljb2xvbih0b2tlbnMpIHtcbiAgICAgICAgbGV0IGNvbG9uID0gdGhpcy5jb2xvbih0b2tlbnMpO1xuICAgICAgICBpZiAoIGNvbG9uID09PSBmYWxzZSApIHJldHVybjtcblxuICAgICAgICBsZXQgc3BsaXQ7XG4gICAgICAgIGZvciAoIHNwbGl0ID0gY29sb24gLSAxOyBzcGxpdCA+PSAwOyBzcGxpdC0tICkge1xuICAgICAgICAgICAgaWYgKCB0b2tlbnNbc3BsaXRdWzBdID09PSAnd29yZCcgKSBicmVhaztcbiAgICAgICAgfVxuICAgICAgICBmb3IgKCBzcGxpdCAtPSAxOyBzcGxpdCA+PSAwOyBzcGxpdC0tICkge1xuICAgICAgICAgICAgaWYgKCB0b2tlbnNbc3BsaXRdWzBdICE9PSAnc3BhY2UnICkge1xuICAgICAgICAgICAgICAgIHNwbGl0ICs9IDE7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgbGV0IG90aGVyID0gdG9rZW5zLnNwbGljZShzcGxpdCwgdG9rZW5zLmxlbmd0aCAtIHNwbGl0KTtcbiAgICAgICAgdGhpcy5kZWNsKG90aGVyKTtcbiAgICB9XG5cbiAgICBjaGVja01pc3NlZFNlbWljb2xvbigpIHsgfVxuXG4gICAgZW5kRmlsZSgpIHtcbiAgICAgICAgaWYgKCB0aGlzLmN1cnJlbnQubm9kZXMgJiYgdGhpcy5jdXJyZW50Lm5vZGVzLmxlbmd0aCApIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudC5yYXdzLnNlbWljb2xvbiA9IHRoaXMuc2VtaWNvbG9uO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuY3VycmVudC5yYXdzLmFmdGVyID0gKHRoaXMuY3VycmVudC5yYXdzLmFmdGVyIHx8ICcnKSArIHRoaXMuc3BhY2VzO1xuXG4gICAgICAgIHdoaWxlICggdGhpcy5jdXJyZW50LnBhcmVudCApIHtcbiAgICAgICAgICAgIHRoaXMuY3VycmVudCA9IHRoaXMuY3VycmVudC5wYXJlbnQ7XG4gICAgICAgICAgICB0aGlzLmN1cnJlbnQucmF3cy5hZnRlciA9ICcnO1xuICAgICAgICB9XG4gICAgfVxuXG59XG4iXX0=
{
"name": "postcss-safe-parser",
"version": "2.0.1",
"version": "3.0.0",
"description": "Fault-tolerant CSS parser for PostCSS",

@@ -16,10 +16,10 @@ "keywords": [

"dependencies": {
"postcss": "^5.2.16"
"postcss": "^6.0.1"
},
"devDependencies": {
"babel-core": "^6.24.0",
"babel-eslint": "^7.2.1",
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-precompile-charcodes": "^1.0.0",
"babel-preset-es2015": "^6.24.0",
"babel-preset-env": "^1.4.0",
"del": "^2.2.2",

@@ -30,9 +30,9 @@ "eslint": "^3.19.0",

"gulp-babel": "^6.1.2",
"gulp-changed": "^2.0.0",
"gulp-changed": "^3.1.0",
"gulp-eslint": "^3.0.1",
"gulp-jest": "^1.0.0",
"gulp-sourcemaps": "^2.5.1",
"gulp-sourcemaps": "^2.6.0",
"jest": "^19.0.2",
"lint-staged": "^3.4.0",
"postcss-parser-tests": "^5.0.11",
"lint-staged": "^3.4.1",
"postcss-parser-tests": "^6.0.0",
"pre-commit": "^1.1.3",

@@ -45,2 +45,37 @@ "run-sequence": "^1.2.2"

},
"eslintConfig": {
"parser": "babel-eslint",
"extends": "eslint-config-postcss",
"rules": {
"key-spacing": [
"error",
{
"align": "value"
}
],
"complexity": "off",
"no-var": "off"
},
"env": {
"jest": true
}
},
"babel": {
"presets": [
[
"env",
{
"targets": {
"browsers": "last 1 version",
"node": 4
},
"loose": true
}
]
],
"plugins": [
"add-module-exports",
"precompile-charcodes"
]
},
"main": "lib/safe-parse",

@@ -47,0 +82,0 @@ "lint-staged": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc