Skip to content

Commit

Permalink
fix: Update all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Aug 19, 2019
1 parent fa328fd commit 7d53a00
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 33 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/adapter-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
},
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/mongodb": "^3.2.2",
"@types/node": "^12.7.1",
"@types/mongodb": "^3.2.3",
"@types/node": "^12.7.2",
"mocha": "^6.2.0",
"mongodb": "^3.3.0",
"shx": "^0.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@feathersjs/socketio-client": "^4.3.0-pre.2",
"@types/debug": "^4.1.5",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"axios": "^0.19.0",
"mocha": "^6.2.0",
"shx": "^0.3.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/authentication-local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
"@feathersjs/feathers": "^4.3.0-pre.2",
"@types/bcryptjs": "^2.4.2",
"@types/debug": "^4.1.5",
"@types/lodash": "^4.14.136",
"@types/lodash": "^4.14.137",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"mocha": "^6.2.0",
"shx": "^0.3.2",
"ts-node": "^8.3.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/authentication-oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
"devDependencies": {
"@feathersjs/feathers": "^4.3.0-pre.2",
"@types/debug": "^4.1.5",
"@types/express": "^4.17.0",
"@types/express-session": "^1.15.13",
"@types/lodash": "^4.14.136",
"@types/express": "^4.17.1",
"@types/express-session": "^1.15.14",
"@types/lodash": "^4.14.137",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"axios": "^0.19.0",
"mocha": "^6.2.0",
"shx": "^0.3.2",
Expand Down
5 changes: 3 additions & 2 deletions packages/authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"dependencies": {
"@feathersjs/errors": "^4.3.0-pre.2",
"@feathersjs/transport-commons": "^4.3.0-pre.2",
"debug": "^4.1.1",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.15",
Expand All @@ -49,9 +50,9 @@
"@feathersjs/feathers": "^4.3.0-pre.2",
"@types/debug": "^4.1.5",
"@types/jsonwebtoken": "^8.3.3",
"@types/lodash": "^4.14.136",
"@types/lodash": "^4.14.137",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"@types/uuid": "^3.4.5",
"feathers-memory": "^4.0.0",
"mocha": "^6.2.0",
Expand Down
11 changes: 8 additions & 3 deletions packages/authentication/src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { merge, get } from 'lodash';
import { NotAuthenticated } from '@feathersjs/errors';
import { AuthenticationBase, AuthenticationResult, AuthenticationRequest } from './core';
import { connection, event } from './hooks';
import { Application, Params, ServiceMethods } from '@feathersjs/feathers';
import '@feathersjs/transport-commons';
import { Application, Params, ServiceMethods, ServiceAddons } from '@feathersjs/feathers';

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

Expand Down Expand Up @@ -134,6 +135,7 @@ export class AuthenticationService extends AuthenticationBase implements Partial
// The setup method checks for valid settings and registers the
// connection and event (login, logout) hooks
const { secret, service, entity, entityId } = this.configuration;
const self = this as unknown as ServiceAddons<AuthenticationResult>;

if (typeof secret !== 'string') {
throw new Error(`A 'secret' must be provided in your authentication configuration`);
Expand All @@ -153,12 +155,15 @@ export class AuthenticationService extends AuthenticationBase implements Partial
}
}

// @ts-ignore
this.hooks({
self.hooks({
after: {
create: [ connection('login'), event('login') ],
remove: [ connection('logout'), event('logout') ]
}
});

if (typeof self.publish !== 'function') {
self.publish(() => null);
}
}
}
2 changes: 1 addition & 1 deletion packages/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@types/chai": "^4.2.0",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"chai": "^4.2.0",
"mocha": "^6.2.0",
"shx": "^0.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/configuration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@types/config": "^0.0.34",
"@types/debug": "^4.1.5",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"mocha": "^6.2.0",
"shx": "^0.3.2",
"ts-node": "^8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {
"@feathersjs/commons": "^4.3.0-pre.2",
"@feathersjs/errors": "^4.3.0-pre.2",
"@types/express": "^4.17.0",
"@types/express": "^4.17.1",
"debug": "^4.1.1",
"express": "^4.17.1",
"lodash": "^4.17.15",
Expand Down
2 changes: 1 addition & 1 deletion packages/rest-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"dependencies": {
"@feathersjs/commons": "^4.3.0-pre.2",
"@feathersjs/errors": "^4.3.0-pre.2",
"qs": "^6.7.0"
"qs": "^6.8.0"
},
"devDependencies": {
"@angular/common": "^8.2.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
"@feathersjs/feathers": "^4.3.0-pre.2",
"@types/axios": "^0.14.0",
"@types/debug": "^4.1.5",
"@types/lodash": "^4.14.136",
"@types/lodash": "^4.14.137",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"mocha": "^6.2.0",
"shx": "^0.3.2",
"ts-node": "^8.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/transport-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@feathersjs/feathers": "^4.3.0-pre.2",
"@types/debug": "^4.1.5",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.1",
"@types/node": "^12.7.2",
"mocha": "^6.2.0",
"shx": "^0.3.2",
"ts-node": "^8.3.0",
Expand Down

0 comments on commit 7d53a00

Please sign in to comment.