can-globals
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -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", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
39440
1