koa-simple-static
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = void 0; | ||
exports["default"] = void 0; | ||
@@ -25,3 +25,3 @@ var _crypto = require("crypto"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -55,3 +55,3 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } | ||
var files = {}; | ||
(0, _fsReaddirRecursive.default)(dir).forEach(function (name) { | ||
(0, _fsReaddirRecursive["default"])(dir).forEach(function (name) { | ||
loadFile(name, dir, options, files); | ||
@@ -267,3 +267,3 @@ }); | ||
case 70: | ||
shouldGzip = file.length > 1024 && acceptGzip && (0, _compressible.default)(file.type); | ||
shouldGzip = file.length > 1024 && acceptGzip && (0, _compressible["default"])(file.type); | ||
@@ -336,3 +336,2 @@ if (!file.buffer) { | ||
var _default = simpleStatic; | ||
exports.default = _default; | ||
module.exports = exports.default; | ||
exports["default"] = _default; |
{ | ||
"name": "koa-simple-static", | ||
"description": "Simple caching static file server for Koa 2.", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"author": { | ||
@@ -26,3 +26,3 @@ "email": "zac@zacanger.com", | ||
"test": "npm run test:lint && npm run test:flow && npm run test:tape", | ||
"test:flow": "flow && flow stop", | ||
"test:flow": "flow check", | ||
"test:lint": "eslint -c .eslintrc.json src", | ||
@@ -58,5 +58,5 @@ "test:tape": "babel-tape-runner test.js | tap-spec" | ||
"devDependencies": { | ||
"@babel/cli": "7.2.3", | ||
"@babel/core": "7.4.0", | ||
"@babel/preset-env": "7.4.2", | ||
"@babel/cli": "7.4.3", | ||
"@babel/core": "7.4.3", | ||
"@babel/preset-env": "7.4.3", | ||
"@babel/preset-flow": "7.0.0", | ||
@@ -67,10 +67,10 @@ "@babel/register": "7.4.0", | ||
"babel-tape-runner": "3.0.0", | ||
"eslint": "5.15.3", | ||
"eslint": "5.16.0", | ||
"eslint-config-zacanger": "3.4.2", | ||
"eslint-plugin-babel": "5.3.0", | ||
"eslint-plugin-flowtype": "3.4.2", | ||
"eslint-plugin-flowtype": "3.6.0", | ||
"eslint-plugin-import": "2.16.0", | ||
"eslint-plugin-node": "8.0.1", | ||
"eslint-plugin-promise": "4.0.1", | ||
"eslint-plugin-unicorn": "7.1.0", | ||
"eslint-plugin-promise": "4.1.1", | ||
"eslint-plugin-unicorn": "8.0.1", | ||
"flow-bin": "0.77.0", | ||
@@ -82,3 +82,3 @@ "flow-copy-source": "2.0.3", | ||
"nyc": "13.3.0", | ||
"sortpack": "1.1.3", | ||
"sortpack": "1.1.4", | ||
"supertest": "4.0.2", | ||
@@ -85,0 +85,0 @@ "tap-spec": "5.0.0", |
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
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
22325
264