Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

airflow

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airflow - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

lib/config.js

84

lib/index.js
'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;

44

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

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