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

@knowark/injectarkjs

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knowark/injectarkjs - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

16

lib/injectark.js

@@ -70,6 +70,4 @@ import { Factory } from './factory.js' // eslint-disable-line

}
const dependencies = Object.getOwnPropertyNames(
Object.getPrototypeOf(this.factory)).filter(
method => (!['constructor', 'extract', ...lazy].includes(method) && (
typeof this.factory[method]) === 'function'))
const dependencies = this._getAllMethodNames(this.factory).filter(
method => !['constructor', 'extract', ...lazy].includes(method))
for (const dependency of dependencies) {

@@ -81,2 +79,12 @@ const normalized = dependency[0].toUpperCase() + dependency.slice(1)

_getAllMethodNames (instance) {
const methods = new Set()
while ((instance = Reflect.getPrototypeOf(instance)) &&
instance.constructor !== Object) {
const keys = Reflect.ownKeys(instance)
keys.forEach((key) => methods.add(key))
}
return Array.from(methods)
}
/** @param {string} resource */

@@ -83,0 +91,0 @@ _registryFetch (resource) {

{
"name": "@knowark/injectarkjs",
"version": "0.10.1",
"version": "0.10.2",
"description": "Dependency Injector for Javascript",

@@ -5,0 +5,0 @@ "main": "lib/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