Socket
Socket
Sign inDemoInstall

electrolyte

Package Overview
Dependencies
7
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

6

lib/component.js

@@ -65,2 +65,4 @@ // Load modules.

Component.prototype.create = function(container, options) {
options = options || {};
debug('create %s', this.id);

@@ -99,3 +101,5 @@

if (this.singleton) { this._instance = i; }
return i;
// TODO: Make sure option is respected on cached singletons, etc
return options.meta ? [ i, { implements: this.implements, a: this.a } ] : i;
}.bind(this));

@@ -102,0 +106,0 @@

@@ -42,2 +42,9 @@ // Load modules.

InjectedContainer.prototype.create = function(id, comp, options) {
if (comp && comp.meta) {
options = comp;
comp = undefined;
}
// TODO: Is the `comp` arg still used? If not, remove it
return this._c.create(id, this._parent, comp, options);

@@ -44,0 +51,0 @@ }

2

package.json
{
"name": "electrolyte",
"version": "0.6.0",
"version": "0.6.1",
"description": "Elegant dependency injection for Node.js.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc