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

@spinajs/reflection

Package Overview
Dependencies
Maintainers
0
Versions
312
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/reflection - npm Package Compare versions

Comparing version 2.0.278 to 2.0.279

33

lib/cjs/index.js

@@ -164,18 +164,23 @@ "use strict";

const type = fTypes[`${nameToResolve}`];
if (type.prototype instanceof di_1.AsyncService) {
return di_1.DI.resolve(type).then((instance) => {
return {
file: f,
instance,
name: nameToResolve,
type,
};
try {
if (type.prototype instanceof di_1.AsyncService) {
return di_1.DI.resolve(type).then((instance) => {
return {
file: f,
instance,
name: nameToResolve,
type,
};
});
}
return Promise.resolve({
file: f,
instance: di_1.DI.resolve(type),
name: nameToResolve,
type,
});
}
return Promise.resolve({
file: f,
instance: di_1.DI.resolve(type),
name: nameToResolve,
type,
});
catch (err) {
logger.error(err, `Cannot resolve type ${type.name} from file ${f}`);
}
}

@@ -182,0 +187,0 @@ });

@@ -129,18 +129,23 @@ import * as fs from 'fs';

const type = fTypes[`${nameToResolve}`];
if (type.prototype instanceof AsyncService) {
return DI.resolve(type).then((instance) => {
return {
file: f,
instance,
name: nameToResolve,
type,
};
try {
if (type.prototype instanceof AsyncService) {
return DI.resolve(type).then((instance) => {
return {
file: f,
instance,
name: nameToResolve,
type,
};
});
}
return Promise.resolve({
file: f,
instance: DI.resolve(type),
name: nameToResolve,
type,
});
}
return Promise.resolve({
file: f,
instance: DI.resolve(type),
name: nameToResolve,
type,
});
catch (err) {
logger.error(err, `Cannot resolve type ${type.name} from file ${f}`);
}
}

@@ -147,0 +152,0 @@ });

{
"name": "@spinajs/reflection",
"version": "2.0.278",
"version": "2.0.279",
"description": "SpinaJS reflection helpers",

@@ -46,6 +46,6 @@ "main": "lib/cjs/index.js",

"dependencies": {
"@spinajs/configuration": "^2.0.278",
"@spinajs/di": "^2.0.278",
"@spinajs/exceptions": "^2.0.278",
"@spinajs/log": "^2.0.278",
"@spinajs/configuration": "^2.0.279",
"@spinajs/di": "^2.0.279",
"@spinajs/exceptions": "^2.0.279",
"@spinajs/log": "^2.0.279",
"glob": "^8.1.0",

@@ -52,0 +52,0 @@ "lodash": "^4.17.21",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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