Socket
Socket
Sign inDemoInstall

@aesop-fables/containr

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aesop-fables/containr - npm Package Compare versions

Comparing version 0.3.4 to 0.3.6

8

lib/Interceptors.js

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

}
resolve(currentValue, container) {
resolve(_currentValue, container) {
return container.get(this.key);

@@ -39,3 +39,7 @@ }

if (errors.size() !== 0) {
throw errors.peek();
const error = errors.peek();
if ((error === null || error === void 0 ? void 0 : error.message) && /call\s+stack\s+size/gi.test(error === null || error === void 0 ? void 0 : error.message)) {
throw new Error(`Circular dependency detected while resolving ${this.key}`);
}
throw new Error(`Error resolving "${this.key}".\n${error === null || error === void 0 ? void 0 : error.message}`);
}

@@ -42,0 +46,0 @@ return currentValue;

@@ -24,2 +24,3 @@ import { IDependency } from './Dependencies';

clone(): IScopedDependency<T>;
destroy(): void;
}

@@ -26,0 +27,0 @@ export declare class UniqueScope<T> implements IScopedDependency<T> {

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

}
destroy() {
// no-op
}
}

@@ -41,0 +44,0 @@ exports.SingletonScope = SingletonScope;

{
"name": "@aesop-fables/containr",
"version": "0.3.4",
"version": "0.3.6",
"description": "Inversion of Control container for Typescript",

@@ -26,15 +26,19 @@ "type": "commonjs",

"devDependencies": {
"@types/jest": "^29.2.4",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.11",
"@typescript-eslint/eslint-plugin": "^5.45.1",
"@typescript-eslint/parser": "5.45.0",
"esbuild": "^0.17.8",
"eslint": "8.34.0",
"@typescript-eslint/parser": "5.59.8",
"esbuild": "^0.17.15",
"eslint": "8.42.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "27.1.6",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"jest": "29.3.1",
"jest": "29.5.0",
"jest-environment-jsdom": "^29.3.1",
"jest-mock-extended": "^3.0.1",
"prettier": "^2.8.1",
"ts-jest": "29.0.1",
"typescript": "4.9.3"
"reflect-metadata": "^0.1.13",
"ts-jest": "29.1.0",
"typedoc": "^0.24.6",
"typescript": "4.9.5"
},

@@ -41,0 +45,0 @@ "files": [

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