sim-node-lib 0.0.8 → 0.0.12
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.
- package/dist/google-pub-sub.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/google-pub-sub.js
CHANGED
|
@@ -32,13 +32,14 @@ class GooglePubSubSubscription {
|
|
|
32
32
|
}
|
|
33
33
|
catch (error) {
|
|
34
34
|
console.error(error);
|
|
35
|
-
|
|
35
|
+
eventEmitter.emit('error', error);
|
|
36
|
+
message.ack();
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
39
|
// Receive callbacks for errors on the subscription
|
|
39
40
|
this._subscription.on('error', (error) => {
|
|
40
41
|
console.error('Received error:', error);
|
|
41
|
-
|
|
42
|
+
eventEmitter.emit('error', error);
|
|
42
43
|
});
|
|
43
44
|
});
|
|
44
45
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,3 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var hello_world_1 = require("./hello-world");
|
|
4
4
|
exports.sayHello = hello_world_1.sayHello;
|
|
5
5
|
exports.sayGoodbye = hello_world_1.sayGoodbye;
|
|
6
|
+
var google_pub_sub_1 = require("./google-pub-sub");
|
|
7
|
+
exports.GooglePubSubSubscription = google_pub_sub_1.GooglePubSubSubscription;
|
|
8
|
+
exports.GooglePubSubPublish = google_pub_sub_1.GooglePubSubPublish;
|
|
9
|
+
exports.PubSubHandelerAction = google_pub_sub_1.PubSubHandelerAction;
|