Comparing version 1.0.0-1532860086530 to 1.0.0-1533059066486
@@ -109,4 +109,4 @@ import { ActionChain } from 'action-chain'; | ||
})); | ||
actionChain.on('provider', (data) => devtools.send({ | ||
type: 'provider', | ||
actionChain.on('effect', (data) => devtools.send({ | ||
type: 'effect', | ||
data, | ||
@@ -113,0 +113,0 @@ })); |
export declare type Namespace = 'namespace'; | ||
declare type Module = { | ||
state?: any; | ||
providers?: any; | ||
effects?: any; | ||
actions?: any; | ||
@@ -16,4 +16,4 @@ reactions?: any; | ||
}; | ||
providers: { | ||
[Namespace in keyof Namespaces]: Namespaces[Namespace] extends ModuleFunction ? ReturnType<Namespaces[Namespace]>['providers'] : Namespaces[Namespace] extends Module ? Namespaces[Namespace]['providers'] : any; | ||
effects: { | ||
[Namespace in keyof Namespaces]: Namespaces[Namespace] extends ModuleFunction ? ReturnType<Namespaces[Namespace]>['effects'] : Namespaces[Namespace] extends Module ? Namespaces[Namespace]['effects'] : any; | ||
}; | ||
@@ -20,0 +20,0 @@ actions: { |
@@ -8,3 +8,3 @@ export default function namespaces(namespaces) { | ||
state: Object.assign({}, aggr.state, { [key]: namespace.state || {} }), | ||
providers: Object.assign({}, aggr.providers, { [key]: namespace.providers || {} }), | ||
effects: Object.assign({}, aggr.effects, { [key]: namespace.effects || {} }), | ||
actions: Object.assign({}, aggr.actions, { [key]: namespace.actions }), | ||
@@ -15,3 +15,3 @@ reactions: Object.assign({}, aggr.reactions, { [key]: namespace.reactions }), | ||
state: {}, | ||
providers: {}, | ||
effects: {}, | ||
actions: {}, | ||
@@ -18,0 +18,0 @@ reactions: {}, |
@@ -114,4 +114,4 @@ "use strict"; | ||
})); | ||
actionChain.on('provider', (data) => devtools.send({ | ||
type: 'provider', | ||
actionChain.on('effect', (data) => devtools.send({ | ||
type: 'effect', | ||
data, | ||
@@ -118,0 +118,0 @@ })); |
export declare type Namespace = 'namespace'; | ||
declare type Module = { | ||
state?: any; | ||
providers?: any; | ||
effects?: any; | ||
actions?: any; | ||
@@ -16,4 +16,4 @@ reactions?: any; | ||
}; | ||
providers: { | ||
[Namespace in keyof Namespaces]: Namespaces[Namespace] extends ModuleFunction ? ReturnType<Namespaces[Namespace]>['providers'] : Namespaces[Namespace] extends Module ? Namespaces[Namespace]['providers'] : any; | ||
effects: { | ||
[Namespace in keyof Namespaces]: Namespaces[Namespace] extends ModuleFunction ? ReturnType<Namespaces[Namespace]>['effects'] : Namespaces[Namespace] extends Module ? Namespaces[Namespace]['effects'] : any; | ||
}; | ||
@@ -20,0 +20,0 @@ actions: { |
@@ -10,3 +10,3 @@ "use strict"; | ||
state: Object.assign({}, aggr.state, { [key]: namespace.state || {} }), | ||
providers: Object.assign({}, aggr.providers, { [key]: namespace.providers || {} }), | ||
effects: Object.assign({}, aggr.effects, { [key]: namespace.effects || {} }), | ||
actions: Object.assign({}, aggr.actions, { [key]: namespace.actions }), | ||
@@ -17,3 +17,3 @@ reactions: Object.assign({}, aggr.reactions, { [key]: namespace.reactions }), | ||
state: {}, | ||
providers: {}, | ||
effects: {}, | ||
actions: {}, | ||
@@ -20,0 +20,0 @@ reactions: {}, |
{ | ||
"name": "overmind", | ||
"version": "1.0.0-1532860086530", | ||
"version": "1.0.0-1533059066486", | ||
"description": "Functional actions", | ||
@@ -41,6 +41,6 @@ "author": "Christian Alfoni <christianalfoni@gmail.com>", | ||
"@types/node": "^10.5.1", | ||
"action-chain": "1.0.0-1532860086530", | ||
"action-chain": "1.0.0-1533059066486", | ||
"is-plain-object": "^2.0.4", | ||
"betsy": "1.0.0-1532860086530", | ||
"proxy-state-tree": "1.0.0-1532860086530", | ||
"betsy": "1.0.0-1533059066486", | ||
"proxy-state-tree": "1.0.0-1533059066486", | ||
"tslib": "^1.9.3" | ||
@@ -52,2 +52,3 @@ }, | ||
"jest": "^23.3.0", | ||
"jsdom": "^11.12.0", | ||
"react": "^16.4.1", | ||
@@ -57,4 +58,5 @@ "react-test-renderer": "^16.4.1", | ||
"ts-jest": "^23.0.0", | ||
"typescript": "^2.9.2" | ||
"typescript": "^2.9.2", | ||
"vue": "^2.5.16" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
243504
10
68
2384
+ Addedaction-chain@1.0.0-1533059066486(transitive)
+ Addedbetsy@1.0.0-1533059066486(transitive)
+ Addedproxy-state-tree@1.0.0-1533059066486(transitive)
- Removedaction-chain@1.0.0-1532860086530(transitive)
- Removedbetsy@1.0.0-1532860086530(transitive)
- Removedproxy-state-tree@1.0.0-1532860086530(transitive)
Updatedbetsy@1.0.0-1533059066486