imagecachejs
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -13,10 +13,6 @@ { | ||
"ecmaFeatures": { | ||
"experimentalObjectRestSpread": true, | ||
"jsx": true | ||
"experimentalObjectRestSpread": true | ||
}, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"globals": { | ||
@@ -55,4 +51,2 @@ "__dirname": true, | ||
], | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
"semi": [ | ||
@@ -59,0 +53,0 @@ "error", |
@@ -39,10 +39,4 @@ 'use strict'; | ||
var _lodash = require('lodash'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _express = require('express'); | ||
var _express2 = _interopRequireDefault(_express); | ||
var _request = require('request'); | ||
@@ -68,4 +62,2 @@ | ||
var _jsonHash = require('json-hash'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -217,3 +209,3 @@ | ||
return _path2.default.resolve.apply(_path2.default, [options.webRoot, pathPrefix, transforms].concat((0, _toConsumableArray3.default)(pathParts))).replace('.' + fileExt, '.' + format); | ||
return _path2.default.resolve.apply(_path2.default, [options.webRoot, pathPrefix, transforms].concat((0, _toConsumableArray3.default)(pathParts))).replace('.' + fileExt, '.' + ext); | ||
}; | ||
@@ -279,8 +271,4 @@ | ||
console.log(url); | ||
console.log(response.statusCode); | ||
if (!(response && response.statusCode && response.statusCode == 200)) { | ||
_context4.next = 7; | ||
_context4.next = 5; | ||
break; | ||
@@ -291,6 +279,6 @@ } | ||
case 7: | ||
case 5: | ||
return _context4.abrupt('return', null); | ||
case 8: | ||
case 6: | ||
case 'end': | ||
@@ -297,0 +285,0 @@ return _context4.stop(); |
'use strict'; | ||
var _chai = require('chai'); | ||
describe('imagecache', function () { | ||
@@ -6,0 +4,0 @@ |
{ | ||
"name": "imagecachejs", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -16,3 +16,3 @@ "license": "ISC", | ||
"build": "rm -rf ./dist && babel ./src --out-dir ./dist", | ||
"test": "NODE_ENV=test mocha --recursive --require babel-core/register ./src/test.js" | ||
"test": "NODE_ENV=test NODE_PATH=./src nyc --reporter=lcov --reporter=text --recursive --require babel-core/register mocha ./src/test.js" | ||
}, | ||
@@ -40,4 +40,5 @@ "repository": { | ||
"eslint": "^3.19.0", | ||
"mocha": "^3.4.1" | ||
"mocha": "^3.4.1", | ||
"nyc": "^11.1.0" | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
import fs from 'fs' | ||
@@ -3,0 +2,0 @@ import path from 'path' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22196341
11
724