UNPKG

@nestjstools/messaging-google-pubsub-extension

Version:

Extension to handle messages and dispatch them over Google PubSub

24 lines 1.49 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.GooglePubSubChannelFactory = void 0; const google_pub_sub_channel_1 = require("./google-pub-sub.channel"); const common_1 = require("@nestjs/common"); const messaging_1 = require("@nestjstools/messaging"); const google_pub_sub_channel_config_1 = require("./google-pub-sub.channel-config"); let GooglePubSubChannelFactory = class GooglePubSubChannelFactory { create(channelConfig) { return new google_pub_sub_channel_1.GooglePubSubChannel(channelConfig); } }; exports.GooglePubSubChannelFactory = GooglePubSubChannelFactory; exports.GooglePubSubChannelFactory = GooglePubSubChannelFactory = __decorate([ (0, common_1.Injectable)(), (0, messaging_1.ChannelFactory)(google_pub_sub_channel_config_1.GooglePubSubChannelConfig) ], GooglePubSubChannelFactory); //# sourceMappingURL=google-pub-sub.channel-factory.js.map