can-globals
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -14,5 +14,5 @@ @module {Object} can-globals | ||
```js | ||
const globals = require('can-globals'); | ||
import globals from "can-globals"; | ||
const LOCATION = globals.getKeyValue('location'); | ||
const LOCATION = globals.getKeyValue( "location" ); | ||
``` | ||
@@ -24,9 +24,9 @@ | ||
```js | ||
const globals = require('can-globals'); | ||
import globals from "can-globals"; | ||
globals.define('foo', 'bar'); // foo === 'bar' | ||
globals.define( "foo", "bar" ); // foo === 'bar' | ||
globals.set('foo', 'baz'); // foo === 'baz' | ||
globals.set( "foo", "baz" ); // foo === 'baz' | ||
globals.reset('foo'); // foo === 'bar' | ||
globals.reset( "foo" ); // foo === 'bar' | ||
``` |
{ | ||
"name": "can-globals", | ||
"version": "1.1.0", | ||
"version": "1.1.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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39396