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

@bem-react/di

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bem-react/di - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

build/cjs/di.development.js

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

var RegistryProvider = registryContext.Provider;
var providedRegistries = {};
var RegistryConsumer = registryContext.Consumer;

@@ -45,3 +46,2 @@ function withRegistry() {

return (React.createElement(RegistryConsumer, null, function (contextRegistries) {
var providedRegistries = {};
registries.forEach(function (registry) {

@@ -48,0 +48,0 @@ var overrides = contextRegistries[registry.id];

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),__assign=function(){return(__assign=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},registryContext=React.createContext({}),RegistryProvider=registryContext.Provider,RegistryConsumer=registryContext.Consumer;function withRegistry(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];return function(e){var t=function(t){return React.createElement(RegistryConsumer,null,function(r){var n={};return o.forEach(function(t){var e=r[t.id];n[t.id]=t.inverted?e?t.merge(e):t:t&&e?e.merge(t):t}),React.createElement(RegistryProvider,{value:n},React.createElement(e,__assign({},t)))})};return t.displayName="RegistryResolver("+o.map(function(t){return t.id}).join(", ")+")",t}}var ComponentRegistryConsumer=function(e){return React.createElement(RegistryConsumer,null,function(t){return e.children(t[e.id].snapshot())})},Registry=function(){function t(t){var e=t.id,r=t.inverted,n=void 0!==r&&r;this.components={},this.id=e,this.inverted=n}return t.prototype.set=function(t,e){return this.components[t]=e,this},t.prototype.get=function(t){return this.components[t]},t.prototype.snapshot=function(){return this.components},t.prototype.merge=function(t){return this.components=__assign({},this.components,t?t.snapshot():{}),this},t}();exports.RegistryConsumer=RegistryConsumer,exports.withRegistry=withRegistry,exports.ComponentRegistryConsumer=ComponentRegistryConsumer,exports.Registry=Registry;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),__assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},registryContext=React.createContext({}),RegistryProvider=registryContext.Provider,providedRegistries={},RegistryConsumer=registryContext.Consumer;function withRegistry(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return function(t){var e=function(e){return React.createElement(RegistryConsumer,null,function(r){return n.forEach(function(e){var t=r[e.id];providedRegistries[e.id]=e.inverted?t?e.merge(t):e:e&&t?t.merge(e):e}),React.createElement(RegistryProvider,{value:providedRegistries},React.createElement(t,__assign({},e)))})};return e.displayName="RegistryResolver("+n.map(function(e){return e.id}).join(", ")+")",e}}var ComponentRegistryConsumer=function(t){return React.createElement(RegistryConsumer,null,function(e){return t.children(e[t.id].snapshot())})},Registry=function(){function e(e){var t=e.id,r=e.inverted,n=void 0!==r&&r;this.components={},this.id=t,this.inverted=n}return e.prototype.set=function(e,t){return this.components[e]=t,this},e.prototype.get=function(e){return this.components[e]},e.prototype.snapshot=function(){return this.components},e.prototype.merge=function(e){return this.components=__assign({},this.components,e?e.snapshot():{}),this},e}();exports.RegistryConsumer=RegistryConsumer,exports.withRegistry=withRegistry,exports.ComponentRegistryConsumer=ComponentRegistryConsumer,exports.Registry=Registry;

@@ -6,2 +6,13 @@ # Change Log

## [1.5.1](https://github.com/bem/bem-react/tree/master/packages/di/compare/@bem-react/di@1.5.0...@bem-react/di@1.5.1) (2019-01-16)
### Bug Fixes
* **di:** provided registries must be global ([57fdb8b](https://github.com/bem/bem-react/tree/master/packages/di/commit/57fdb8b))
# [1.5.0](https://github.com/bem/bem-react/tree/master/packages/di/compare/@bem-react/di@1.4.0...@bem-react/di@1.5.0) (2019-01-10)

@@ -8,0 +19,0 @@

{
"name": "@bem-react/di",
"version": "1.5.0",
"version": "1.5.1",
"description": "BEM React Dependency Injection",

@@ -50,3 +50,3 @@ "repository": "https://github.com/bem/bem-react/tree/master/packages/di",

},
"gitHead": "5b6f6188fdae8273ea9e966d2e7f74bee9cfe1bf"
"gitHead": "6ced4e104fe152816c9496c24d808df68c8084fd"
}
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