Skip to content

Commit 3290a15

Browse files
chore(deps): loopback version updates (#172)
loopback version updates GH-171
1 parent a578d32 commit 3290a15

File tree

7 files changed

+1162
-836
lines changed

7 files changed

+1162
-836
lines changed

package-lock.json

Lines changed: 1140 additions & 819 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,25 @@
106106
"!*/__tests__"
107107
],
108108
"dependencies": {
109-
"@loopback/boot": "^6.1.3",
110-
"@loopback/context": "^6.1.3",
111-
"@loopback/core": "^5.1.3",
112-
"@loopback/rest": "^13.1.3",
113-
"tslib": "^2.6.1"
109+
"@loopback/boot": "^6.1.5",
110+
"@loopback/context": "^6.1.5",
111+
"@loopback/core": "^5.1.5",
112+
"@loopback/rest": "^13.1.5",
113+
"tslib": "^2.6.2"
114114
},
115115
"devDependencies": {
116116
"@commitlint/cli": "^17.7.1",
117117
"@commitlint/config-conventional": "^17.7.0",
118-
"@loopback/build": "^10.1.3",
119-
"@loopback/eslint-config": "^14.0.4",
120-
"@loopback/testlab": "^6.1.3",
118+
"@loopback/build": "^10.1.5",
119+
"@loopback/eslint-config": "^14.0.5",
120+
"@loopback/testlab": "^6.1.5",
121121
"@parse/node-apn": "^5.1.3",
122122
"@semantic-release/changelog": "^6.0.1",
123123
"@semantic-release/commit-analyzer": "^9.0.2",
124124
"@semantic-release/git": "^10.0.1",
125125
"@semantic-release/npm": "^9.0.1",
126126
"@semantic-release/release-notes-generator": "^10.0.3",
127-
"@types/node": "^16.18.50",
127+
"@types/node": "^18.11.9",
128128
"@types/nodemailer": "^6.4.4",
129129
"@types/proxyquire": "^1.3.28",
130130
"@types/pubnub": "^4.29.7",
@@ -134,7 +134,7 @@
134134
"cz-conventional-changelog": "^3.3.0",
135135
"cz-customizable": "^6.3.0",
136136
"cz-customizable-ghooks": "^2.0.0",
137-
"eslint": "^8.48.0",
137+
"eslint": "^8.51.0",
138138
"firebase-admin": "^11.4.1",
139139
"git-release-notes": "^5.0.0",
140140
"husky": "^7.0.4",
@@ -155,7 +155,8 @@
155155
"jsonwebtoken": "9.0.0"
156156
},
157157
"twilio": {
158-
"jsonwebtoken": "9.0.0"
158+
"jsonwebtoken": "9.0.0",
159+
"axios":"1.6.5"
159160
},
160161
"body-parser": {
161162
"debug": "^4.3.4"

src/__tests__/mock-sdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
// eslint-disable-next-line @typescript-eslint/naming-convention
12
import AWS from 'aws-sdk';
3+
// eslint-disable-next-line @typescript-eslint/naming-convention
24
import Pubnub from 'pubnub';
35
import twilio, {Twilio} from 'twilio';
46
import {TwilioAuthConfig, TwilioMessage} from '../providers';

src/providers/email/ses/ses.provider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class SesProvider implements Provider<SESNotification> {
3030
return {
3131
publish: async (message: SESMessage) => {
3232
const fromEmail =
33-
message.options?.fromEmail || this.config?.senderEmail;
33+
message.options?.fromEmail ?? this.config?.senderEmail;
3434

3535
if (!fromEmail) {
3636
throw new HttpErrors.BadRequest(
@@ -50,7 +50,7 @@ export class SesProvider implements Provider<SESNotification> {
5050
if (this.config?.sendToMultipleReceivers) {
5151
const receivers = message.receiver.to.map(receiver => receiver.id);
5252
const emailReq: SES.SendEmailRequest = {
53-
Source: fromEmail || '',
53+
Source: fromEmail ?? '',
5454
Destination: {
5555
ToAddresses: receivers,
5656
},
@@ -69,7 +69,7 @@ export class SesProvider implements Provider<SESNotification> {
6969
} else {
7070
const publishes = message.receiver.to.map(receiver => {
7171
const emailReq: SES.SendEmailRequest = {
72-
Source: fromEmail || '',
72+
Source: fromEmail ?? '',
7373
Destination: {
7474
ToAddresses: [receiver.id],
7575
},

src/providers/push/pubnub/pubnub.provider.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {inject, Provider} from '@loopback/core';
22
import {HttpErrors} from '@loopback/rest';
3+
// eslint-disable-next-line @typescript-eslint/naming-convention
34
import Pubnub from 'pubnub';
45
import {Aps, MessageConfig, PnApns, TargetsType} from '.';
56
import {Config} from '../../../types';
@@ -99,8 +100,8 @@ export class PubNubProvider implements Provider<PubNubNotification> {
99100
const publishConfig: Pubnub.GrantParameters = {
100101
authKeys: [config.options.token],
101102
channels: config.receiver.to.map(receiver => receiver.id),
102-
read: config.options.allowRead || true,
103-
write: config.options.allowWrite || false,
103+
read: config.options.allowRead ?? true,
104+
write: config.options.allowWrite ?? false,
104105
ttl: config.options.ttl,
105106
};
106107
await this.pubnubService.grant(publishConfig);

src/providers/push/pubnub/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line @typescript-eslint/naming-convention
12
import Pubnub from 'pubnub';
23
import {Config} from '../../../types';
34
import {

src/providers/push/socketio/socketio.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class SocketIOProvider implements Provider<SocketNotification> {
3939
);
4040
}
4141
this.socketService.emit(
42-
message.options?.path || this.socketConfig.defaultPath,
42+
message.options?.path ?? this.socketConfig.defaultPath,
4343
JSON.stringify(message),
4444
);
4545
} else {

0 commit comments

Comments
 (0)