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

cerebral-provider-modules

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerebral-provider-modules - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

index.js

@@ -10,3 +10,3 @@ function ModulesProvider(context, execution, controller) {

}, contextModules)
module.meta = modules[key]
module.meta = modules[key].meta
module.state = context.state.select(modulePath)

@@ -13,0 +13,0 @@ module.services = modulePath.reduce(function (services, key) {

{
"name": "cerebral-provider-modules",
"version": "0.1.0",
"version": "0.1.1",
"description": "A modules provider for Cerebral",

@@ -5,0 +5,0 @@ "main": "index.js",

# cerebral-provider-modules
Modules pattern for Cerebral
`npm install cerebral-provider-modules`
```js
import ModulesProvider from 'cerebral-provider-modules';
(controller || module).addContextProvider(ModulesProvider);
```
```js
function SomeAction({module, modules}) {
module.state.set('foo', 'bar');
module.services.foo();
module.meta // {path,name, ...}
modules.someOtherModule.meta // {path,name, ...}
modules.someOtherModule.state('foo', 'bar');
modules.someOtherModule.services.foo();
}
```
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