New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sebspark/pubsub

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sebspark/pubsub - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

9

dist/index.js

@@ -116,3 +116,3 @@ "use strict";

var import_pubsub2 = require("@google-cloud/pubsub");
var makeSureSubacriptionExists = async (topic, name, options) => {
var makeSureSubscriptionExists = async (topic, name, options) => {
const createSubscriptionOptions = {

@@ -140,11 +140,8 @@ messageRetentionDuration: {

topic: (name) => {
let _topic;
const _topic = client.topic(name);
return {
initiate: async (subscriptionName, options) => {
await makeSureSubacriptionExists(_topic, subscriptionName, options);
await makeSureSubscriptionExists(_topic, subscriptionName, options);
},
subscribe: async (subscriptionName, callbacks, options) => {
if (!_topic) {
_topic = client.topic(name);
}
const subscription = _topic.subscription(subscriptionName);

@@ -151,0 +148,0 @@ subscription.on("message", async (msg) => {

{
"name": "@sebspark/pubsub",
"version": "1.5.0",
"version": "1.5.1",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc