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

@nestjs/testing

Package Overview
Dependencies
Maintainers
1
Versions
332
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/testing - npm Package Compare versions

Comparing version 4.2.2 to 4.3.0

8

package.json
{
"name": "@nestjs/testing",
"version": "4.2.2",
"version": "4.3.0",
"description": "Nest - modern, fast, powerful node.js web framework (@testing)",

@@ -10,7 +10,9 @@ "author": "Kamil Mysliwiec",

},
"dependencies": {
"optional": "0.1.4"
},
"peerDependencies": {
"@nestjs/common": "^4.*",
"@nestjs/core": "^4.*",
"@nestjs/microservices": "^4.*"
"@nestjs/core": "^4.*"
}
}

@@ -5,3 +5,3 @@ import { NestContainer } from '@nestjs/core/injector/container';

import { INestApplication, INestMicroservice } from '@nestjs/common';
import { MicroserviceConfiguration } from '@nestjs/microservices';
import { MicroserviceConfiguration } from '@nestjs/common/interfaces/microservices/microservice-configuration.interface';
export declare class TestingModule {

@@ -8,0 +8,0 @@ private readonly container;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const optional = require("optional");
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");

@@ -7,3 +8,4 @@ const module_token_factory_1 = require("@nestjs/core/injector/module-token-factory");

const core_1 = require("@nestjs/core");
const microservices_1 = require("@nestjs/microservices");
const microservices_package_not_found_exception_1 = require("@nestjs/core/errors/exceptions/microservices-package-not-found.exception");
const { NestMicroservice } = optional('@nestjs/microservices/nest-microservice') || {};
class TestingModule {

@@ -20,3 +22,6 @@ constructor(container, scope, contextModule) {

createNestMicroservice(config) {
return new microservices_1.NestMicroservice(this.container, config);
if (!NestMicroservice) {
throw new microservices_package_not_found_exception_1.MicroservicesPackageNotFoundException();
}
return new NestMicroservice(this.container, config);
}

@@ -23,0 +28,0 @@ select(module) {

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