@recursyve/nestjs-pidgey 8.0.1 → 8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,9 +39,7 @@ let EmailTransportService = class EmailTransportService {
|
|
|
39
39
|
if (!this.topic) {
|
|
40
40
|
throw new Error("Email transport is not initialized");
|
|
41
41
|
}
|
|
42
|
-
await this.topic.
|
|
43
|
-
data: Buffer.from(JSON.stringify(email))
|
|
44
|
-
});
|
|
42
|
+
await this.topic.publishJSON(email);
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
45
|
EmailTransportService = __decorate([
|
|
@@ -39,9 +39,7 @@ let PostalTransportService = class PostalTransportService {
|
|
|
39
39
|
if (!this.topic) {
|
|
40
40
|
throw new Error("Postal transport is not initialized");
|
|
41
41
|
}
|
|
42
|
-
await this.topic.
|
|
43
|
-
data: Buffer.from(JSON.stringify(postal))
|
|
44
|
-
});
|
|
42
|
+
await this.topic.publishJSON(postal);
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
45
|
PostalTransportService = __decorate([
|
|
@@ -39,9 +39,7 @@ let SmsTransportService = class SmsTransportService {
|
|
|
39
39
|
if (!this.topic) {
|
|
40
40
|
throw new Error("Sms transport is not initialized");
|
|
41
41
|
}
|
|
42
|
-
await this.topic.
|
|
43
|
-
data: Buffer.from(JSON.stringify(sms))
|
|
44
|
-
});
|
|
42
|
+
await this.topic.publishJSON(sms);
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
45
|
SmsTransportService = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recursyve/nestjs-pidgey",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Recursyve's pidgey client for NestJs",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"reflect-metadata": ">= 0.1.13"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@google-cloud/pubsub": "^2.
|
|
24
|
-
"auth0": "^2.
|
|
23
|
+
"@google-cloud/pubsub": "^2.16.0",
|
|
24
|
+
"auth0": "^2.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@nestjs/axios": "
|
|
27
|
+
"@nestjs/axios": "0.0.1",
|
|
28
28
|
"@nestjs/common": "^8.0.0",
|
|
29
29
|
"@nestjs/core": "^8.0.0",
|
|
30
30
|
"@nestjs/testing": "^8.0.0",
|