gonzales-pe
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -10,2 +10,6 @@ # Changelog | ||
## 17.01.2016, Version 3.2.2 | ||
:green_apple: Made `ParsingError#message` property writeable. | ||
## 19.10.2015, Version 3.2.1 | ||
@@ -12,0 +16,0 @@ |
@@ -236,6 +236,6 @@ // jscs:disable maximumLineLength | ||
*/function checkNumber(i){if(i >= tokensLength)return 0;if(tokens[i].number_l)return tokens[i].number_l; // `10`: | ||
if(i < tokensLength && tokens[i].type === TokenType.DecimalNumber && (!tokens[i + 1] || tokens[i + 1] && tokens[i + 1].type !== TokenType.FullStop))return (tokens[i].number_l = 1,tokens[i].number_l); // `10.`: | ||
if(i < tokensLength && tokens[i].type === TokenType.DecimalNumber && tokens[i + 1] && tokens[i + 1].type === TokenType.FullStop && (!tokens[i + 2] || tokens[i + 2].type !== TokenType.DecimalNumber))return (tokens[i].number_l = 2,tokens[i].number_l); // `.10`: | ||
if(i < tokensLength && tokens[i].type === TokenType.FullStop && tokens[i + 1].type === TokenType.DecimalNumber)return (tokens[i].number_l = 2,tokens[i].number_l); // `10.10`: | ||
if(i < tokensLength && tokens[i].type === TokenType.DecimalNumber && tokens[i + 1] && tokens[i + 1].type === TokenType.FullStop && tokens[i + 2] && tokens[i + 2].type === TokenType.DecimalNumber)return (tokens[i].number_l = 3,tokens[i].number_l);return 0;} /** | ||
if(i < tokensLength && tokens[i].type === TokenType.DecimalNumber && (!tokens[i + 1] || tokens[i + 1] && tokens[i + 1].type !== TokenType.FullStop))return tokens[i].number_l = 1,tokens[i].number_l; // `10.`: | ||
if(i < tokensLength && tokens[i].type === TokenType.DecimalNumber && tokens[i + 1] && tokens[i + 1].type === TokenType.FullStop && (!tokens[i + 2] || tokens[i + 2].type !== TokenType.DecimalNumber))return tokens[i].number_l = 2,tokens[i].number_l; // `.10`: | ||
if(i < tokensLength && tokens[i].type === TokenType.FullStop && tokens[i + 1].type === TokenType.DecimalNumber)return tokens[i].number_l = 2,tokens[i].number_l; // `10.10`: | ||
if(i < tokensLength && tokens[i].type === TokenType.DecimalNumber && tokens[i + 1] && tokens[i + 1].type === TokenType.FullStop && tokens[i + 2] && tokens[i + 2].type === TokenType.DecimalNumber)return tokens[i].number_l = 3,tokens[i].number_l;return 0;} /** | ||
* Get node with number | ||
@@ -242,0 +242,0 @@ * @return {Node} |
@@ -5,2 +5,5 @@ 'use strict';var parserPackage=require('../package.json'); /** | ||
*/function ParsingError(e,css){this.line = e.line;this.syntax = e.syntax;this.css_ = css;}ParsingError.prototype = Object.defineProperties({ /** | ||
* @type {String} | ||
* @private | ||
*/customMessage_:'', /** | ||
* @type {Number} | ||
@@ -19,2 +22,2 @@ */line:null, /** | ||
* @type {String} | ||
*/get:function(){var message='Please check validity of the block';if(typeof this.line === 'number')message += ' starting from line #' + this.line;return message;},configurable:true,enumerable:true}});module.exports = ParsingError; | ||
*/get:function(){if(this.customMessage_){return this.customMessage_;}else {var message='Please check validity of the block';if(typeof this.line === 'number')message += ' starting from line #' + this.line;return message;}},set:function(message){this.customMessage_ = message;},configurable:true,enumerable:true}});module.exports = ParsingError; |
{ | ||
"name": "gonzales-pe", | ||
"description": "Gonzales Preprocessor Edition (fast CSS parser)", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"homepage": "http://github.com/tonyganch/gonzales-pe", | ||
@@ -6,0 +6,0 @@ "bugs": "http://github.com/tonyganch/gonzales-pe/issues", |
@@ -1,4 +0,4 @@ | ||
# Gonzales PE @3.2.1 | ||
# Gonzales PE @dev | ||
[![Build Status](https://travis-ci.org/tonyganch/gonzales-pe.svg?branch=3.0)] | ||
[![Build Status](https://travis-ci.org/tonyganch/gonzales-pe.svg)] | ||
(https://travis-ci.org/tonyganch/gonzales-pe) | ||
@@ -14,3 +14,3 @@ | ||
```bash | ||
npm install -g gonzales-pe@3.2.1 | ||
npm install -g git://github.com/tonyganch/gonzales-pe.git#dev | ||
``` | ||
@@ -21,3 +21,3 @@ | ||
```bash | ||
npm install --save gonzales-pe@3.2.1 | ||
npm install --save git://github.com/tonyganch/gonzales-pe.git#dev | ||
``` | ||
@@ -30,4 +30,4 @@ | ||
git clone git@github.com:tonyganch/gonzales-pe.git | ||
# Go to `3.0` branch. | ||
git checkout 3.0 | ||
# Go to dev branch. | ||
git checkout dev | ||
# Install project dependencies. | ||
@@ -34,0 +34,0 @@ npm install |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
3516
0
6
414061
27