🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

raptor-css-parser

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raptor-css-parser - npm Package Compare versions

Comparing version

to
1.1.2

8

lib/raptor-css-parser.js

@@ -28,10 +28,10 @@ var tokenizerRegExp = /url\(\s*"([^"]*)"\s*\)|url\(\s*'([^']*)'\s*\)|url\(([^\)]*)\)|\/\*|\*\/|\/\/|\n|\r|\\\\|\\"|"/g;

function ParsedLess(originalCode, path) {
function ParsedCSS(originalCode, path) {
this.originalCode = originalCode;
this.path = path;
this.dirname = nodePath.dirname(path);
this.dirname = path ? nodePath.dirname(path) : undefined;
this.parts = [];
}
ParsedLess.prototype = {
ParsedCSS.prototype = {
_addPart: function(type, text, start, end) {

@@ -70,3 +70,3 @@ this.pendingCount++;

function parse(code, path) {
var parsed = new ParsedLess(code, path);
var parsed = new ParsedCSS(code, path);

@@ -73,0 +73,0 @@ var matches;

{
"name": "raptor-css-parser",
"description": "Minimalistic CSS parsing functions",
"repository": {
"type": "git",
"url": "https://github.com/raptorjs/raptor-css-parser.git"
},
"scripts": {
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test && node_modules/.bin/jshint lib"
},
"author": "Patrick Steele-Idem <pnidem@gmail.com>",
"maintainers": "Patrick Steele-Idem <pnidem@gmail.com>",
"dependencies": {
"raptor-async": "^1.0.0",
"raptor-promises": "^1.0.1"
},
"devDependencies": {
"mocha": "~1.15.1",
"chai": "~1.8.1",
"jshint": "~2.3.0",
"raptor-logging": "^1.0.1"
},
"license": "Apache License v2.0",
"bin": {},
"main": "lib/raptor-css-parser.js",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"version": "1.1.1"
}
"name": "raptor-css-parser",
"description": "Minimalistic CSS parsing functions",
"repository": {
"type": "git",
"url": "https://github.com/raptorjs/raptor-css-parser.git"
},
"scripts": {
"test": "node_modules/.bin/mocha --ui bdd --reporter spec ./test && node_modules/.bin/jshint lib"
},
"author": "Patrick Steele-Idem <pnidem@gmail.com>",
"maintainers": "Patrick Steele-Idem <pnidem@gmail.com>",
"dependencies": {
"raptor-async": "^1.0.0",
"raptor-promises": "^1.0.1"
},
"devDependencies": {
"mocha": "~1.15.1",
"chai": "~1.8.1",
"jshint": "~2.3.0",
"raptor-logging": "^1.0.1"
},
"license": "Apache License v2.0",
"bin": {},
"main": "lib/raptor-css-parser.js",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"version": "1.1.2"
}