New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@feathersjs/authentication

Package Overview
Dependencies
Maintainers
4
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/authentication - npm Package Compare versions

Comparing version 5.0.0-pre.2 to 5.0.0-pre.3

4

lib/core.js

@@ -20,5 +20,5 @@ "use strict";

const errors_1 = require("@feathersjs/errors");
const debug_1 = __importDefault(require("debug"));
const commons_1 = require("@feathersjs/commons");
const options_1 = __importDefault(require("./options"));
const debug = debug_1.default('@feathersjs/authentication/base');
const debug = commons_1.createDebug('@feathersjs/authentication/base');
/**

@@ -25,0 +25,0 @@ * A base class for managing authentication strategies and creating and verifying JWTs

@@ -18,4 +18,4 @@ "use strict";

const errors_1 = require("@feathersjs/errors");
const debug_1 = __importDefault(require("debug"));
const debug = debug_1.default('@feathersjs/authentication/hooks/authenticate');
const commons_1 = require("@feathersjs/commons");
const debug = commons_1.createDebug('@feathersjs/authentication/hooks/authenticate');
exports.default = (originalSettings, ...originalStrategies) => {

@@ -22,0 +22,0 @@ const settings = typeof originalSettings === 'string'

@@ -11,8 +11,5 @@ "use strict";

};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const debug_1 = __importDefault(require("debug"));
const debug = debug_1.default('@feathersjs/authentication/hooks/connection');
const commons_1 = require("@feathersjs/commons");
const debug = commons_1.createDebug('@feathersjs/authentication/hooks/connection');
exports.default = (event) => (context) => __awaiter(void 0, void 0, void 0, function* () {

@@ -19,0 +16,0 @@ const { app, result, params } = context;

@@ -17,9 +17,9 @@ "use strict";

/* eslint-disable @typescript-eslint/no-unused-vars */
const debug_1 = __importDefault(require("debug"));
const omit_1 = __importDefault(require("lodash/omit"));
const errors_1 = require("@feathersjs/errors");
const commons_1 = require("@feathersjs/commons");
// @ts-ignore
const long_timeout_1 = __importDefault(require("long-timeout"));
const strategy_1 = require("./strategy");
const debug = debug_1.default('@feathersjs/authentication/jwt');
const debug = commons_1.createDebug('@feathersjs/authentication/jwt');
const SPLIT_HEADER = /(\S+)\s+(\S+)/;

@@ -26,0 +26,0 @@ class JWTStrategy extends strategy_1.AuthenticationBaseStrategy {

@@ -16,3 +16,2 @@ "use strict";

exports.AuthenticationService = void 0;
const debug_1 = __importDefault(require("debug"));
const merge_1 = __importDefault(require("lodash/merge"));

@@ -23,4 +22,5 @@ const errors_1 = require("@feathersjs/errors");

require("@feathersjs/transport-commons");
const commons_1 = require("@feathersjs/commons");
const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
const debug = debug_1.default('@feathersjs/authentication/service');
const debug = commons_1.createDebug('@feathersjs/authentication/service');
class AuthenticationService extends core_1.AuthenticationBase {

@@ -27,0 +27,0 @@ constructor(app, configKey = 'authentication', options = {}) {

{
"name": "@feathersjs/authentication",
"description": "Add Authentication to your FeathersJS app.",
"version": "5.0.0-pre.2",
"version": "5.0.0-pre.3",
"homepage": "https://feathersjs.com",

@@ -55,7 +55,7 @@ "main": "lib/",

"dependencies": {
"@feathersjs/errors": "^5.0.0-pre.2",
"@feathersjs/feathers": "^5.0.0-pre.2",
"@feathersjs/transport-commons": "^5.0.0-pre.2",
"@feathersjs/commons": "^5.0.0-pre.3",
"@feathersjs/errors": "^5.0.0-pre.3",
"@feathersjs/feathers": "^5.0.0-pre.3",
"@feathersjs/transport-commons": "^5.0.0-pre.3",
"@types/jsonwebtoken": "^8.5.1",
"debug": "^4.3.1",
"jsonwebtoken": "^8.5.1",

@@ -67,7 +67,7 @@ "lodash": "^4.17.21",

"devDependencies": {
"@feathersjs/adapter-memory": "^5.0.0-pre.2",
"@feathersjs/adapter-memory": "^5.0.0-pre.3",
"@types/debug": "^4.1.5",
"@types/lodash": "^4.14.168",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"@types/node": "^14.14.41",
"@types/uuid": "^8.3.0",

@@ -77,5 +77,5 @@ "mocha": "^8.3.2",

"ts-node": "^9.1.1",
"typescript": "^4.2.3"
"typescript": "^4.2.4"
},
"gitHead": "6e1f888dc5b612d2d77653177622e3f66245a0fb"
"gitHead": "d332eaca9945aab0c222413a7e46cec1c0601648"
}

@@ -5,3 +5,3 @@ import merge from 'lodash/merge';

import { NotAuthenticated } from '@feathersjs/errors';
import Debug from 'debug';
import { createDebug } from '@feathersjs/commons';
import { Application, Params } from '@feathersjs/feathers';

@@ -11,3 +11,3 @@ import { IncomingMessage, ServerResponse } from 'http';

const debug = Debug('@feathersjs/authentication/base');
const debug = createDebug('@feathersjs/authentication/base');

@@ -14,0 +14,0 @@ export interface AuthenticationResult {

@@ -5,5 +5,5 @@ import flatten from 'lodash/flatten';

import { NotAuthenticated } from '@feathersjs/errors';
import Debug from 'debug';
import { createDebug } from '@feathersjs/commons';
const debug = Debug('@feathersjs/authentication/hooks/authenticate');
const debug = createDebug('@feathersjs/authentication/hooks/authenticate');

@@ -10,0 +10,0 @@ export interface AuthenticateHookSettings {

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

import Debug from 'debug';
import { HookContext } from '@feathersjs/feathers';
import { createDebug } from '@feathersjs/commons';
import { ConnectionEvent } from '../core';
const debug = Debug('@feathersjs/authentication/hooks/connection');
const debug = createDebug('@feathersjs/authentication/hooks/connection');

@@ -7,0 +7,0 @@ export default (event: ConnectionEvent) => async (context: HookContext) => {

/* eslint-disable @typescript-eslint/no-unused-vars */
import Debug from 'debug';
import omit from 'lodash/omit';

@@ -7,2 +6,3 @@ import { IncomingMessage } from 'http';

import { Params } from '@feathersjs/feathers';
import { createDebug } from '@feathersjs/commons';
// @ts-ignore

@@ -14,3 +14,3 @@ import lt from 'long-timeout';

const debug = Debug('@feathersjs/authentication/jwt');
const debug = createDebug('@feathersjs/authentication/jwt');
const SPLIT_HEADER = /(\S+)\s+(\S+)/;

@@ -17,0 +17,0 @@

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

import Debug from 'debug';
import merge from 'lodash/merge';

@@ -7,6 +6,7 @@ import { NotAuthenticated } from '@feathersjs/errors';

import '@feathersjs/transport-commons';
import { createDebug } from '@feathersjs/commons';
import { Params, ServiceMethods, ServiceAddons } from '@feathersjs/feathers';
import jsonwebtoken from 'jsonwebtoken';
const debug = Debug('@feathersjs/authentication/service');
const debug = createDebug('@feathersjs/authentication/service');

@@ -13,0 +13,0 @@ declare module '@feathersjs/feathers/lib/declarations' {

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

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