Socket
Socket
Sign inDemoInstall

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.3 to 0.0.4

can-globals-instance.js

1

can-globals-proto.js

@@ -148,2 +148,3 @@ 'use strict';

this.setKeyValue(key, value);
return value;
}

@@ -150,0 +151,0 @@ }.bind(this);

16

can-globals.js
'use strict';
var namespace = require('can-namespace');
var Globals = require('./can-globals-proto');
var globals = new Globals();
if (namespace.globals) {
throw new Error("You can't have two versions of can-globals, check your dependencies");
} else {
module.exports = namespace.globals = globals;
}
var globals = require('can-globals/can-globals-instance');
require('./global/global');
require('./document/document');
require('./location/location');
require('./mutation-observer/mutation-observer');
module.exports = globals;
'use strict';
require('can-globals/global/global');
var globals = require('can-globals');
var globals = require('can-globals/can-globals-instance');

@@ -6,0 +6,0 @@ /**

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

var globals = require('can-globals');
var globals = require('can-globals/can-globals-instance');

@@ -9,0 +9,0 @@ /**

'use strict';
require('can-globals/global/global');
var globals = require('can-globals');
var globals = require('can-globals/can-globals-instance');

@@ -6,0 +6,0 @@ /**

'use strict';
require('can-globals/global/global');
var globals = require('can-globals');
var globals = require('can-globals/can-globals-instance');

@@ -6,0 +6,0 @@ /**

{
"name": "can-globals",
"version": "0.0.3",
"version": "0.0.4",
"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",

@@ -7,3 +7,3 @@ # can-globals

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.
An environment agnostic container for global variables. Useful for testing and server-side rendering (SSR), typically used internally by CanJS.

@@ -10,0 +10,0 @@ ## Documentation

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