@palmetto/pubsub 3.2.1 → 3.2.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.
@@ -17,7 +17,7 @@ const errors_js_1 = require("../errors.js");
17
17
  const create_log_error_payload_js_1 = require("../create-log-error-payload.js");
18
18
  const config_js_1 = require("./config.js");
19
19
  const connection_js_1 = require("./connection.js");
20
- const subscriber_js_1 = require("@google-cloud/pubsub/build/src/subscriber.js");
20
+ const pubsub_2 = require("@google-cloud/pubsub");
21
21
  const SHUTDOWN_DELAY = 1000;
22
22
  class GcpPubSubSubscriber {
23
23
  constructor(connection, logger) {
@@ -51,7 +51,7 @@ class GcpPubSubSubscriber {
51
51
  const subscription = this.connection.client.subscription(subscriptionName, Object.assign({ flowControl: {
52
52
  maxMessages: (_c = config.maxMessages) !== null && _c !== void 0 ? _c : 5,
53
53
  }, closeOptions: {
54
- behavior: subscriber_js_1.SubscriberCloseBehaviors.WaitForProcessing,
54
+ behavior: pubsub_2.SubscriptionCloseBehaviors.WaitForProcessing,
55
55
  timeout: pubsub_1.Duration.from({
56
56
  milliseconds: (_d = config.shutdownDelay) !== null && _d !== void 0 ? _d : SHUTDOWN_DELAY,
57
57
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmetto/pubsub",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/palmetto/galaxy"