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

can-globals

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-globals - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

can-globals-proto.js

@@ -144,3 +144,3 @@ 'use strict';

if (typeof value === 'undefined') {
if (typeof value === 'undefined' || value === null) {
this.deleteKeyValue(key);

@@ -147,0 +147,0 @@ } else {

@@ -182,1 +182,12 @@ 'use strict';

});
QUnit.test('reset export value with null (can-stache#288)', function() {
var globals = new Globals();
globals.define('foo', 'bar');
var e = globals.makeExport('foo');
equal(e(), 'bar');
e('baz');
equal(e(), 'baz');
e(null);
equal(e(), 'bar');
});
{
"name": "can-globals",
"version": "0.0.5",
"version": "0.0.6",
"description": "This module provides a dependency injection container. Modules may define a key and specify a default value (which can be static, cached lazy, or dynamic lazy), but other code can set and reset the value as needed. There is also an event system, for alerting on value changes, both specific to a key and for any key.",

@@ -5,0 +5,0 @@ "main": "can-globals.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