inliner/package.json
Remy Sharp 0ddff8886f fix: local content should use fs for inlining
The issue here was that although the "simple" detection was in place if the URL looked like HTML (i.e. has an angle bracket in it), but it didn't ever set the `isFile` flag.

This fix corrects this, but also swallows ENOENT errors, to mirror >=400 response codes being swallowed (i.e. return an empty body).

Fixes #89
2016-04-20 21:42:48 +01:00

69 lines
2.3 KiB
JSON

{
"name": "inliner",
"description": "Utility to inline images, CSS and JavaScript for a web page - useful for mobile sites",
"homepage": "http://github.com/remy/inliner",
"main": "lib/index.js",
"scripts": {
"cover": "tap test/*.test.js --cov --coverage-report=lcov",
"lint": "jscs -v cli/*.js lib/*.js",
"tap": "tap test/*.test.js --cov -R spec",
"test": "npm run lint && npm run tap",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"keywords": [
"mobile",
"inline",
"production",
"build",
"minify"
],
"config": {
"validate-commit-msg": {
"helpMessage": "\n-----------\n\nThere was a small validation problem with your commit message:\n\n> %s\n\nIt's not a huge problem, but a valid commit message will ensure\nwhether your commit triggers a release or not (and sometimes the\ncommit won't need to trigger a release). If you really need to, you\ncan skip the validation using `git commit --no-verify`.\n\nIf your commit is a fix, it might want to be:\n\n> fix: storage bug\n\nOr a feature:\n\n> feat: added new storage process\n\nThere's also `docs`, `test` and `chore` and a few more. To read\nhow the commit message should be formatted, please see this short\npost: https://git.io/vVCIR\n"
},
"ghooks": {
"commit-msg": "validate-commit-msg",
"pre-push": "npm test"
}
},
"author": "Remy Sharp",
"dependencies": {
"ansi-escapes": "^1.4.0",
"ansi-styles": "^2.2.1",
"chalk": "^1.1.3",
"charset": "^1.0.0",
"cheerio": "^0.19.0",
"debug": "^2.2.0",
"es6-promise": "^2.3.0",
"iconv-lite": "^0.4.11",
"jschardet": "^1.3.0",
"lodash.assign": "^3.2.0",
"lodash.defaults": "^3.1.2",
"lodash.foreach": "^3.0.3",
"mime": "^1.3.4",
"minimist": "^1.1.3",
"request": "^2.72.0",
"svgo": "^0.5.6",
"then-fs": "^2.0.0",
"uglify-js": "^2.6.2",
"update-notifier": "^0.5.0"
},
"repository": {
"type": "git",
"url": "https://github.com/remy/inliner.git"
},
"license": "MIT",
"bin": {
"inliner": "cli/index.js"
},
"devDependencies": {
"ghooks": "^1.1.1",
"jscs": "^2.0.0",
"semantic-release": "^4.0.0",
"st": "^0.5.5",
"tap": "^5.4.2",
"tap-only": "0.0.5",
"validate-commit-msg": "^2.5.0"
}
}