You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

csstree-validator

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csstree-validator - npm Package Compare versions

Comparing version

to
1.4.0

4

HISTORY.md

@@ -0,1 +1,5 @@

## 1.4.0 (May 30, 2018)
- Updated `csstree` to [1.0.0-alpha.29](https://github.com/csstree/csstree/releases/tag/v1.0.0-alpha.29)
## 1.3.1 (February 19, 2018)

@@ -2,0 +6,0 @@

2

lib/validate.js

@@ -51,4 +51,2 @@ var fs = require('fs');

message = 'Invalid value for `' + node.property + '`';
} else if (message === 'Uncomplete match') {
message = 'The rest part of value can\'t be matched to `' + node.property + '` syntax';
}

@@ -55,0 +53,0 @@

{
"name": "csstree-validator",
"version": "1.3.1",
"version": "1.4.0",
"description": "CSS validator build on csstree",

@@ -48,3 +48,3 @@ "keywords": [

"clap": "^1.1.1",
"css-tree": "1.0.0-alpha.28"
"css-tree": "1.0.0-alpha.29"
},

@@ -51,0 +51,0 @@ "devDependencies": {

@@ -58,3 +58,3 @@ var assert = require('assert');

assert.equal(error.message, 'The rest part of value can\'t be matched to `border` syntax');
assert.equal(error.message, 'Invalid value for `border`');
assert.equal(error.line, 2);

@@ -61,0 +61,0 @@ assert.equal(error.column, 15);

@@ -48,3 +48,3 @@ var path = require('path');

it('should not fail when file not found', function() {
var filename = Math.random();
var filename = String(Math.random());
var errors = fn.validateFile(filename);

@@ -54,3 +54,3 @@

assert.equal(errors[filename].length, 1);
assert.equal(errors[filename][0].name, 'TypeError');
assert.equal(errors[filename][0].name, 'Error');
});

@@ -93,3 +93,3 @@ });

it('should not fail when path is invalid', function() {
var path = Math.random();
var path = String(Math.random());
var errors = fn.validatePath(path);

@@ -99,3 +99,3 @@

assert.equal(errors[path].length, 1);
assert.equal(errors[path][0].name, 'TypeError');
assert.equal(errors[path][0].name, 'Error');
});

@@ -102,0 +102,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet