css-font-face-src
Advanced tools
Comparing version 0.2.2 to 1.0.0
{ | ||
"name": "css-font-face-src", | ||
"version": "0.2.2", | ||
"version": "1.0.0", | ||
"description": "A CSS @font-face src property value parser", | ||
"main": "lib/index.js", | ||
"main": "dist/css-font-face-src.js", | ||
"scripts": { | ||
"test": "jshint lib/ --exclude lib/grammar/index.js test/ && jasmine-node test/ --captureExceptions" | ||
"grammar": "pegjs -o lib/grammar/index.js lib/grammar/grammar.peg", | ||
"jshint": "jshint lib/ --exclude lib/grammar/index.js test/", | ||
"specs": "jasmine-node test/ --captureExceptions", | ||
"test": "npm run grammar && npm run jshint && npm run specs", | ||
"umd": "browserify --standalone cssFontFaceSrc lib/index.js | derequire > dist/css-font-face-src.js", | ||
"smoketest": "phantomjs test/loadPage.js test/dist_test.html | grep font.woff", | ||
"dist": "npm run umd && npm run smoketest" | ||
}, | ||
@@ -29,6 +35,9 @@ "repository": { | ||
"devDependencies": { | ||
"jasmine-node": "~1.14.3", | ||
"jshint": "~2.5.0", | ||
"pegjs": "~0.8.0" | ||
"browserify": "^13.1.1", | ||
"derequire": "^2.0.3", | ||
"jasmine-node": "^1.14.3", | ||
"jshint": "^2.9.4", | ||
"pegjs": "^0.10.0", | ||
"phantomjs": "^2.1.7" | ||
} | ||
} |
@@ -8,3 +8,3 @@ var parser = require('../lib/index'); | ||
parser.parse("invalid text"); | ||
}).toThrow(new parser.SyntaxError('Expected "local(", "url(" or end of input but "i" found.', 1)); | ||
}).toThrow(new parser.SyntaxError('Expected "local(", "url(", or end of input but "i" found.', 1)); | ||
}); | ||
@@ -15,3 +15,3 @@ | ||
parser.parse('"invalid url", url("font.woff")'); | ||
}).toThrow(new parser.SyntaxError('Expected "local(", "url(" or end of input but "\\"" found.', 1)); | ||
}).toThrow(new parser.SyntaxError('Expected "local(", "url(", or end of input but "\\"" found.', 1)); | ||
}); | ||
@@ -22,3 +22,3 @@ | ||
parser.parse('url("font.woff"), "invalid url"'); | ||
}).toThrow(new parser.SyntaxError('Expected "local(", "url(" or [ \\t\\r\\n\\f] but "\\"" found.', 18)); | ||
}).toThrow(new parser.SyntaxError('Expected "local(", "url(", or [ \\t\\r\\n\\x0C] but "\\"" found.', 18)); | ||
}); | ||
@@ -25,0 +25,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30318
14
798
1
6
3