🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

can-globals

Package Overview
Dependencies
Maintainers
9
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

to
1.2.1

4

doc/can-globals.md

@@ -19,3 +19,3 @@ @module {Object} can-globals

New keys can be defined with the `define` method, overwritten with the `set` method, and reset to their original value with the `reset` method.
New keys can be defined with the `define` method, overwritten with the `setKeyValue` method, and reset to their original value with the `reset` method.
All of these methods are demonstrated in the following example

@@ -28,5 +28,5 @@

globals.set( "foo", "baz" ); // foo === 'baz'
globals.setKeyValue( "foo", "baz" ); // foo === 'baz'
globals.reset( "foo" ); // foo === 'bar'
```
{
"name": "can-globals",
"version": "1.2.0",
"version": "1.2.1",
"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",