New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

css-font-face-src

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-font-face-src - npm Package Compare versions

Comparing version 0.2.2 to 1.0.0

dist/.keep

21

package.json
{
"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

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