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

feathers

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feathers - npm Package Compare versions

Comparing version 2.1.7 to 2.2.0

5

index.d.ts

@@ -97,2 +97,7 @@ import * as express from 'express';

use: FeathersUseHandler<this>;
/**
* Runs a callback function with the application as the context (this). It can be used to initialize plugins or services.
*/
configure(callback: any): this;
}

@@ -99,0 +104,0 @@ }

18

lib/application.js

@@ -7,2 +7,14 @@ 'use strict';

var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
var _from = require('babel-runtime/core-js/array/from');
var _from2 = _interopRequireDefault(_from);
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _debug = require('debug');

@@ -32,3 +44,3 @@

init: function init() {
Object.assign(this, {
(0, _assign2.default)(this, {
methods: methods,

@@ -86,3 +98,3 @@ mixins: (0, _index2.default)(),

var service = void 0;
var middleware = Array.from(arguments).slice(1).reduce(function (middleware, arg) {
var middleware = (0, _from2.default)(arguments).slice(1).reduce(function (middleware, arg) {
if (typeof arg === 'function') {

@@ -121,3 +133,3 @@ middleware[service ? 'after' : 'before'].push(arg);

// Setup each service (pass the app so that they can look up other services etc.)
Object.keys(this.services).forEach(function (path) {
(0, _keys2.default)(this.services).forEach(function (path) {
var service = _this2.services[path];

@@ -124,0 +136,0 @@

11

lib/index.js

@@ -6,2 +6,7 @@ 'use strict';

});
var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
exports.default = createApplication;

@@ -19,6 +24,2 @@

if (!global._babelPolyfill) {
require('babel-polyfill');
}
function createApplication() {

@@ -29,5 +30,5 @@ return (0, _feathers2.default)(_express2.default.apply(undefined, arguments));

// Expose all express methods (like express.engine())
Object.assign(createApplication, _express2.default, {
(0, _assign2.default)(createApplication, _express2.default, {
version: require('../package.json').version
});
module.exports = exports['default'];

@@ -7,2 +7,6 @@ 'use strict';

var _keys = require('babel-runtime/core-js/object/keys');
var _keys2 = _interopRequireDefault(_keys);
exports.default = function (service) {

@@ -25,3 +29,3 @@ var app = this;

Object.keys(eventMappings).forEach(function (method) {
(0, _keys2.default)(eventMappings).forEach(function (method) {
var event = eventMappings[method];

@@ -28,0 +32,0 @@ var alreadyEmits = service._serviceEvents.indexOf(event) !== -1;

@@ -7,2 +7,6 @@ 'use strict';

var _from = require('babel-runtime/core-js/array/from');
var _from2 = _interopRequireDefault(_from);
exports.default = function () {

@@ -13,3 +17,3 @@ var mixins = [require('./promise'), require('./event'), require('./normalizer')];

mixins.push = function () {
var args = [this.length - 1, 0].concat(Array.from(arguments));
var args = [this.length - 1, 0].concat((0, _from2.default)(arguments));
this.splice.apply(this, args);

@@ -22,2 +26,4 @@ return this.length;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = exports['default'];
{
"name": "feathers",
"description": "Build Better APIs, Faster than Ever.",
"version": "2.1.7",
"version": "2.2.0",
"homepage": "http://feathersjs.com",

@@ -57,4 +57,4 @@ "repository": {

"@types/express": "~4.0.35",
"babel-polyfill": "^6.20.0",
"debug": "^2.6.0",
"babel-runtime": "^6.26.0",
"debug": "^3.0.0",
"events": "^1.1.1",

@@ -70,2 +70,3 @@ "express": "^4.14.0",

"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.18.0",

@@ -72,0 +73,0 @@ "body-parser": "^1.15.2",

@@ -77,3 +77,3 @@ <img style="width: 100%; max-width: 400px;" src="http://feathersjs.com/img/feathers-logo-wide.png" alt="Feathers logo">

Each plugin has it's own minimal example in the repo. To see some more complex examples go to [feathersjs/feathers-demos](https://github.com/feathersjs/feathers-demos).
Each plugin has it's own minimal example in the repo. To see a more complex example go to [feathersjs/feathers-chat](https://github.com/feathersjs/feathers-chat).

@@ -80,0 +80,0 @@ ## Security

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