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

@feathersjs/feathers

Package Overview
Dependencies
Maintainers
3
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/feathers - npm Package Compare versions

Comparing version 5.0.27 to 5.0.28

1

lib/application.d.ts

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { EventEmitter } from 'events';

@@ -3,0 +2,0 @@ import { FeathersApplication, ServiceMixin, Service, ServiceOptions, ServiceInterface, Application, FeathersService, ApplicationHookOptions } from './declarations';

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { EventEmitter } from 'events';

@@ -3,0 +2,0 @@ import { NextFunction, HookContext as BaseHookContext } from '@feathersjs/hooks';

5

lib/events.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.eventMixin = exports.eventHook = void 0;
exports.eventHook = eventHook;
exports.eventMixin = eventMixin;
const events_1 = require("events");

@@ -19,3 +20,2 @@ const service_1 = require("./service");

}
exports.eventHook = eventHook;
function eventMixin(service) {

@@ -28,3 +28,2 @@ const isEmitter = typeof service.on === 'function' && typeof service.emit === 'function';

}
exports.eventMixin = eventMixin;
//# sourceMappingURL=events.js.map

@@ -32,3 +32,3 @@ import { HookContextData, HookManager, Middleware } from '@feathersjs/hooks';

export declare function enableHooks(object: any): (this: HookEnabled, input: HookMap<any, any>) => HookEnabled;
export declare function createContext(service: Service, method: string, data?: HookContextData): HookContext<import("./declarations").Application<any, any>, any>;
export declare function createContext(service: Service, method: string, data?: HookContextData): HookContext;
export declare class FeathersHookManager<A> extends HookManager {

@@ -35,0 +35,0 @@ app: A;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hookMixin = exports.FeathersHookManager = exports.createContext = exports.enableHooks = exports.collectHooks = exports.convertHookData = void 0;
exports.FeathersHookManager = void 0;
exports.convertHookData = convertHookData;
exports.collectHooks = collectHooks;
exports.enableHooks = enableHooks;
exports.createContext = createContext;
exports.hookMixin = hookMixin;
const hooks_1 = require("@feathersjs/hooks");

@@ -26,3 +31,2 @@ const service_1 = require("./service");

}
exports.convertHookData = convertHookData;
function collectHooks(target, method) {

@@ -38,3 +42,2 @@ const { collected, collectedAll, around } = target.__hooks;

}
exports.collectHooks = collectHooks;
// Add `.hooks` functionality to an object

@@ -99,3 +102,2 @@ function enableHooks(object) {

}
exports.enableHooks = enableHooks;
function createContext(service, method, data = {}) {

@@ -108,3 +110,2 @@ const createContext = service[method].createContext;

}
exports.createContext = createContext;
class FeathersHookManager extends hooks_1.HookManager {

@@ -179,3 +180,2 @@ constructor(app, method) {

}
exports.hookMixin = hookMixin;
//# sourceMappingURL=hooks.js.map

@@ -20,3 +20,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Feathers = exports.version = exports.feathers = void 0;
exports.Feathers = exports.version = void 0;
exports.feathers = feathers;
const commons_1 = require("@feathersjs/commons");

@@ -30,3 +31,2 @@ const version_1 = __importDefault(require("./version"));

}
exports.feathers = feathers;
feathers.setDebug = commons_1.setDebug;

@@ -33,0 +33,0 @@ __exportStar(require("./hooks"), exports);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapService = exports.normalizeServiceOptions = exports.getServiceOptions = exports.getHookMethods = exports.protectedMethods = exports.defaultServiceEvents = exports.defaultEventMap = exports.defaultServiceMethods = exports.defaultServiceArguments = exports.SERVICE = void 0;
exports.normalizeServiceOptions = exports.protectedMethods = exports.defaultServiceEvents = exports.defaultEventMap = exports.defaultServiceMethods = exports.defaultServiceArguments = exports.SERVICE = void 0;
exports.getHookMethods = getHookMethods;
exports.getServiceOptions = getServiceOptions;
exports.wrapService = wrapService;
const events_1 = require("events");

@@ -32,7 +35,5 @@ const commons_1 = require("@feathersjs/commons");

}
exports.getHookMethods = getHookMethods;
function getServiceOptions(service) {
return service[exports.SERVICE];
}
exports.getServiceOptions = getServiceOptions;
const normalizeServiceOptions = (service, options = {}) => {

@@ -65,3 +66,2 @@ const { methods = exports.defaultServiceMethods.filter((method) => typeof service[method] === 'function'), events = service.events || [] } = options;

}
exports.wrapService = wrapService;
//# sourceMappingURL=service.js.map

@@ -1,2 +0,2 @@

declare const _default: "5.0.27";
declare const _default: "5.0.28";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = '5.0.27';
exports.default = '5.0.28';
//# sourceMappingURL=version.js.map
{
"name": "@feathersjs/feathers",
"description": "A framework for real-time applications and REST API with JavaScript and TypeScript",
"version": "5.0.27",
"version": "5.0.28",
"homepage": "http://feathersjs.com",

@@ -61,3 +61,3 @@ "repository": {

"dependencies": {
"@feathersjs/commons": "^5.0.27",
"@feathersjs/commons": "^5.0.28",
"@feathersjs/hooks": "^0.9.0",

@@ -67,10 +67,10 @@ "events": "^3.3.0"

"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.8",
"mocha": "^10.4.0",
"@types/mocha": "^10.0.7",
"@types/node": "^20.14.10",
"mocha": "^10.6.0",
"shx": "^0.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
"typescript": "^5.5.3"
},
"gitHead": "f6ff82535fa25432757c049f54302883c59e6bb6"
"gitHead": "410ba7db8f3348d208e34511827302133d727ba3"
}

@@ -1,1 +0,1 @@

export default '5.0.27'
export default '5.0.28'

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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