Comparing version 0.0.2 to 0.0.3
'use strict'; | ||
module.exports = { error: 'use the cli instead!' }; | ||
var _regenerator = require('babel-runtime/regenerator'); | ||
var _regenerator2 = _interopRequireDefault(_regenerator); | ||
var _asyncToGenerator2 = require('babel-runtime/helpers/asyncToGenerator'); | ||
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); | ||
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); | ||
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); | ||
var _config = require('./config'); | ||
var _router = require('./router'); | ||
var _inject = require('./inject'); | ||
var _inject2 = _interopRequireDefault(_inject); | ||
var _server = require('./server'); | ||
var _server2 = _interopRequireDefault(_server); | ||
var _validation = require('./validation'); | ||
var _validation2 = _interopRequireDefault(_validation); | ||
var _errors = require('./errors'); | ||
var _errors2 = _interopRequireDefault(_errors); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
try { | ||
require('source-map-support').install(); | ||
} catch (err) {} | ||
var Airflow = function Airflow(opts) { | ||
var _this = this; | ||
(0, _classCallCheck3.default)(this, Airflow); | ||
(0, _config.updateConfig)(opts); | ||
this.routes = function (route) { | ||
(0, _router.createRoute)(route); | ||
return _this; | ||
}; | ||
this.start = function () { | ||
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(cb) { | ||
return _regenerator2.default.wrap(function _callee$(_context) { | ||
while (1) { | ||
switch (_context.prev = _context.next) { | ||
case 0: | ||
_context.next = 2; | ||
return (0, _server2.default)(cb); | ||
case 2: | ||
return _context.abrupt('return', _this); | ||
case 3: | ||
case 'end': | ||
return _context.stop(); | ||
} | ||
} | ||
}, _callee, _this); | ||
})); | ||
return function (_x) { | ||
return _ref.apply(this, arguments); | ||
}; | ||
}(); | ||
this.inject = function (route) { | ||
return (0, _inject2.default)(route); | ||
}; | ||
}; | ||
module.exports = Airflow; | ||
module.exports.Validator = _validation2.default; | ||
module.exports.Errors = _errors2.default; |
{ | ||
"name": "airflow", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A serverless web framework", | ||
@@ -41,4 +41,5 @@ "author": "Jason Maurer", | ||
"test:lint": "standard --verbose | snazzy", | ||
"test:unit": "rm -rf coverage .nyc_output && nyc ava -a", | ||
"test": "NODE_ENV=testing run-s test:*", | ||
"test:unit": "rm -rf coverage .nyc_output && nyc ava test/unit -a", | ||
"test:integration": "ava test/integration -s", | ||
"test": "zoo NODE_ENV=testing run-s test:*", | ||
"posttest": "nyc report -r=lcov", | ||
@@ -48,3 +49,3 @@ "coveralls": "cat coverage/lcov.info | coveralls", | ||
"build": "babel src -d lib --no-comments", | ||
"watch": "npm run build -- -w", | ||
"watch": "npm run build -- -w -s", | ||
"prepublish": "npm test && npm run build" | ||
@@ -58,17 +59,25 @@ }, | ||
"babel-preset-es2015": "6.9.0", | ||
"babel-preset-stage-2": "6.5.0", | ||
"babel-preset-stage-2": "6.11.0", | ||
"babel-register": "6.9.0", | ||
"coveralls": "2.11.9", | ||
"npm-run-all": "2.2.2", | ||
"npm-run-all": "2.3.0", | ||
"nyc": "6.6.1", | ||
"proxyquire": "1.7.10", | ||
"sinon": "1.17.4", | ||
"snazzy": "4.0.0", | ||
"standard": "7.1.2" | ||
"source-map-support": "0.4.1", | ||
"standard": "7.1.2", | ||
"zoo": "0.1.5" | ||
}, | ||
"dependencies": { | ||
"aws-sdk": "2.4.1", | ||
"babel-runtime": "6.9.2", | ||
"fs-promise": "0.5.0", | ||
"minimist": "1.2.0", | ||
"uuid": "2.0.2" | ||
"glob": "7.0.5", | ||
"media-typer": "0.3.0", | ||
"micromatch": "2.3.10", | ||
"raw-body": "2.1.7", | ||
"validator": "5.4.0" | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint" | ||
}, | ||
"babel": { | ||
@@ -89,10 +98,9 @@ "presets": [ | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint" | ||
}, | ||
"ava": { | ||
"failFast": true, | ||
"require": [ | ||
"babel-register" | ||
] | ||
"serial": true, | ||
"require": "babel-register", | ||
"babel": { | ||
"babelrc": true, | ||
"sourceMaps": "inline" | ||
} | ||
}, | ||
@@ -99,0 +107,0 @@ "nyc": { |
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
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
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
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
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
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
45981
13
1266
1
6
16
4
+ Addedglob@7.0.5
+ Addedmedia-typer@0.3.0
+ Addedmicromatch@2.3.10
+ Addedraw-body@2.1.7
+ Addedvalidator@5.4.0
+ Addedarr-diff@2.0.0(transitive)
+ Addedarr-flatten@1.1.0(transitive)
+ Addedarray-unique@0.2.1(transitive)
+ Addedbraces@1.8.5(transitive)
+ Addedbytes@2.4.0(transitive)
+ Addedexpand-brackets@0.1.5(transitive)
+ Addedexpand-range@1.8.2(transitive)
+ Addedextglob@0.3.2(transitive)
+ Addedfilename-regex@2.0.1(transitive)
+ Addedfill-range@2.2.4(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedglob@7.0.5(transitive)
+ Addedglob-base@0.3.0(transitive)
+ Addedglob-parent@2.0.0(transitive)
+ Addediconv-lite@0.4.13(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedis-dotfile@1.0.3(transitive)
+ Addedis-equal-shallow@0.1.3(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedis-extglob@1.0.0(transitive)
+ Addedis-glob@2.0.1(transitive)
+ Addedis-number@2.1.04.0.0(transitive)
+ Addedis-posix-bracket@0.1.1(transitive)
+ Addedis-primitive@2.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisobject@2.1.0(transitive)
+ Addedkind-of@3.2.26.0.3(transitive)
+ Addedmath-random@1.0.4(transitive)
+ Addedmedia-typer@0.3.0(transitive)
+ Addedmicromatch@2.3.10(transitive)
+ Addednormalize-path@2.1.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedparse-glob@3.0.4(transitive)
+ Addedpreserve@0.2.0(transitive)
+ Addedrandomatic@3.1.1(transitive)
+ Addedraw-body@2.1.7(transitive)
+ Addedregex-cache@0.4.4(transitive)
+ Addedremove-trailing-separator@1.1.0(transitive)
+ Addedrepeat-element@1.1.4(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedunpipe@1.0.0(transitive)
+ Addedvalidator@5.4.0(transitive)
- Removedaws-sdk@2.4.1
- Removedfs-promise@0.5.0
- Removedminimist@1.2.0
- Removeduuid@2.0.2
- Removedany-promise@1.3.0(transitive)
- Removedaws-sdk@2.4.1(transitive)
- Removedfs-extra@0.26.7(transitive)
- Removedfs-promise@0.5.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedjmespath@0.15.0(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedklaw@1.3.1(transitive)
- Removedlodash@3.5.0(transitive)
- Removedminimist@1.2.0(transitive)
- Removedmz@2.7.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsax@1.1.5(transitive)
- Removedthenify@3.3.1(transitive)
- Removedthenify-all@1.6.0(transitive)
- Removeduuid@2.0.2(transitive)
- Removedxml2js@0.4.15(transitive)
- Removedxmlbuilder@2.6.2(transitive)