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

@tsed/di

Package Overview
Dependencies
Maintainers
5
Versions
1030
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/di - npm Package Compare versions

Comparing version 5.18.1 to 5.18.2

3

lib/errors/InjectionError.js

@@ -22,2 +22,5 @@ "use strict";

}
else {
this.origin = origin;
}
}

@@ -24,0 +27,0 @@ }

6

package.json
{
"name": "@tsed/di",
"version": "5.18.1",
"version": "5.18.2",
"description": "DI module for Ts.ED Framework",

@@ -11,3 +11,3 @@ "main": "lib/index.js",

"peerDependencies": {
"@tsed/core": "5.18.1"
"@tsed/core": "5.18.2"
},

@@ -28,3 +28,3 @@ "devDependencies": {},

"license": "MIT",
"gitHead": "3c196dedc27e8dcdc774246577cc023f68471fd5"
"gitHead": "a91a46278a1c344e84309812feb799d0a4bcc661"
}

@@ -25,2 +25,4 @@ import {isString, nameOf} from "@tsed/core";

this.origin = origin.origin;
} else {
this.origin = origin;
}

@@ -27,0 +29,0 @@ }

import {InjectionError} from "../../src/errors/InjectionError";
describe("InjectionError", () => {
it("should create new instance of InjectionError", () => {
it("should create new instance of InjectionError (1)", () => {
const error = new InjectionError(class Target {

@@ -11,2 +11,10 @@ }, "SERVICE");

});
it("should create new instance of InjectionError (2)", () => {
const error = new InjectionError(class Target {
}, new Error("test"));
error.message.should.equal("Injection failed on Target\nOrigin: test");
error.name.should.equal("INJECTION_ERROR");
});
});

Sorry, the diff of this file is not supported yet

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