Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nestjs-mux

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nestjs-mux - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/inject-mux.decorator.d.ts

4

dist/index.d.ts

@@ -1,3 +0,3 @@

export { default as InjectMux } from './mux.decorator';
export { default as MuxModule } from './mux.module';
export * from './inject-mux.decorator';
export * from './mux.module';
export * from './interfaces';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var mux_decorator_1 = require("./mux.decorator");
exports.InjectMux = mux_decorator_1.default;
var mux_module_1 = require("./mux.module");
exports.MuxModule = mux_module_1.default;
__export(require("./inject-mux.decorator"));
__export(require("./mux.module"));

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

const common_1 = require("@nestjs/common");
const mux_constant_1 = require("./mux.constant");
const mux_constants_1 = require("./mux.constants");
let MuxCoreModule = MuxCoreModule_1 = class MuxCoreModule {

@@ -26,3 +26,3 @@ static forRoot(options) {

const clientProvider = {
provide: mux_constant_1.MUX_TOKEN,
provide: mux_constants_1.MUX_TOKEN,
useValue: new Mux(id, secret),

@@ -39,4 +39,4 @@ };

const muxProvider = {
inject: [mux_constant_1.MUX_MODULE_OPTIONS],
provide: mux_constant_1.MUX_TOKEN,
inject: [mux_constants_1.MUX_MODULE_OPTIONS],
provide: mux_constants_1.MUX_TOKEN,
useFactory: (muxOptions) => {

@@ -51,3 +51,3 @@ const { id, secret } = muxOptions;

providers: [...asyncProviders, muxProvider],
exports: [...asyncProviders],
exports: [...asyncProviders, muxProvider],
};

@@ -71,3 +71,3 @@ }

return {
provide: mux_constant_1.MUX_MODULE_OPTIONS,
provide: mux_constants_1.MUX_MODULE_OPTIONS,
useFactory: options.useFactory,

@@ -79,3 +79,3 @@ inject: options.inject || [],

return {
provide: mux_constant_1.MUX_MODULE_OPTIONS,
provide: mux_constants_1.MUX_MODULE_OPTIONS,
useFactory: (optionsFactory) => __awaiter(this, void 0, void 0, function* () {

@@ -82,0 +82,0 @@ return optionsFactory.createMuxOptions();

import { DynamicModule } from '@nestjs/common';
import { MuxModuleAsyncOptions, MuxModuleOptions } from './interfaces';
export default class MuxModule {
export declare class MuxModule {
static forRoot(options: MuxModuleOptions): DynamicModule;
static forRootAsync(options: MuxModuleAsyncOptions): DynamicModule;
}

@@ -29,2 +29,2 @@ "use strict";

], MuxModule);
exports.default = MuxModule;
exports.MuxModule = MuxModule;
{
"name": "nestjs-mux",
"version": "1.0.1",
"version": "1.0.2",
"description": "Mux module for NestJS.",

@@ -5,0 +5,0 @@ "keywords": [

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