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

@adonisjs/fold

Package Overview
Dependencies
Maintainers
3
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/fold - npm Package Compare versions

Comparing version 9.9.3-1 to 9.9.3-2

14

build/src/resolver.js

@@ -26,6 +26,16 @@ import { inspect } from 'node:util';

if (parent) {
return createError(`Cannot inject "${inspect(binding)}" in "[class: ${parent.name}]". The value cannot be constructed`);
const error = createError(`Cannot inject "${inspect(binding)}" in "[class ${parent.name}]"`);
error.help = 'The value is not a valid class';
return error;
}
return createError(`Cannot construct value "${inspect(binding)}" using container`);
}
#missingDependenciesException(parent, binding, createError) {
if (parent) {
const error = createError(`Cannot inject "[class ${binding.name}]" in "[class ${parent.name}]"`);
error.help = `Container is not able to resolve "${parent.name}" class dependencies`;
return error;
}
return createError(`Cannot construct "[class ${binding.name}]" class. Container is not able to resolve its dependencies`);
}
#getBindingProvider(binding) {

@@ -142,3 +152,3 @@ return binding.containerProvider;

if (dependencies.length < classConstructor.length) {
throw createError(`Cannot construct "${binding.name}" class. Container is not able to resolve its dependencies`);
throw this.#missingDependenciesException(parent, binding, createError);
}

@@ -145,0 +155,0 @@ const value = new binding(...dependencies);

2

package.json
{
"name": "@adonisjs/fold",
"version": "9.9.3-1",
"version": "9.9.3-2",
"description": "A simple and straight forward implementation for IoC container in JavaScript",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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