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

gonzales-pe

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gonzales-pe - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

4

CHANGELOG.md

@@ -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 @@

8

lib/css/parse.js

@@ -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

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