New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reductive-dev-tools

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reductive-dev-tools - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.merlin

49

lib/js/src/connectors.bs.js

@@ -481,14 +481,20 @@ // Generated by BUCKLESCRIPT VERSION 4.0.18, PLEASE EDIT WITH CARE

var actionId = Belt_Option.getExn(Caml_option.undefined_to_opt(payload$2.actionId));
var skippedActions = liftedState$2.skippedActionIds;
var computedStates$1 = liftedState$2.computedStates;
var nonSkippedIdx = actionId;
while(skippedActions.includes(nonSkippedIdx)) {
nonSkippedIdx = nonSkippedIdx - 1 | 0;
};
var targetState$1 = Caml_array.caml_array_get(computedStates$1, nonSkippedIdx).state;
var state$2 = Curry._1(deserializeObject, targetState$1);
store$3[/* state */0] = state$2;
var actionInLiftedStateRange = actionId < liftedState$2.nextActionId;
if (actionInLiftedStateRange) {
var skippedActions = liftedState$2.skippedActionIds;
var computedStates$1 = liftedState$2.computedStates;
var nonSkippedIdx = actionId;
while(skippedActions.includes(nonSkippedIdx)) {
nonSkippedIdx = nonSkippedIdx - 1 | 0;
};
var targetState$1 = Caml_array.caml_array_get(computedStates$1, nonSkippedIdx).state;
var state$2 = Curry._1(deserializeObject, targetState$1);
store$3[/* state */0] = state$2;
} else {
var state$3 = Curry._1(deserializeObject, JSON.parse(stateString$2));
store$3[/* state */0] = state$3;
}
} else {
var state$3 = Curry._1(deserializeObject, JSON.parse(stateString$2));
store$3[/* state */0] = state$3;
var state$4 = Curry._1(deserializeObject, JSON.parse(stateString$2));
store$3[/* state */0] = state$4;
}

@@ -653,10 +659,15 @@ return notifyListeners(store$3);

var actionId = Belt_Option.getExn(Caml_option.undefined_to_opt(payload$2.actionId));
var skippedActions = liftedState$1.skippedActionIds;
var computedStates$1 = liftedState$1.computedStates;
var nonSkippedIdx = actionId;
while(skippedActions.includes(nonSkippedIdx)) {
nonSkippedIdx = nonSkippedIdx - 1 | 0;
};
var targetState$1 = Caml_array.caml_array_get(computedStates$1, nonSkippedIdx).state;
mutateState(Curry._1(deserializeObject, targetState$1), store$3);
var actionInLiftedStateRange = actionId < liftedState$1.nextActionId;
if (actionInLiftedStateRange) {
var skippedActions = liftedState$1.skippedActionIds;
var computedStates$1 = liftedState$1.computedStates;
var nonSkippedIdx = actionId;
while(skippedActions.includes(nonSkippedIdx)) {
nonSkippedIdx = nonSkippedIdx - 1 | 0;
};
var targetState$1 = Caml_array.caml_array_get(computedStates$1, nonSkippedIdx).state;
mutateState(Curry._1(deserializeObject, targetState$1), store$3);
} else {
mutateState(Curry._1(deserializeObject, JSON.parse(stateString$1)), store$3);
}
} else {

@@ -663,0 +674,0 @@ mutateState(Curry._1(deserializeObject, JSON.parse(stateString$1)), store$3);

{
"name": "reductive-dev-tools",
"version": "0.1.0",
"version": "0.1.1",
"description": "reductive and reason-react reducer component integration with Redux DevTools",

@@ -5,0 +5,0 @@ "main": "lib/js/src/reductiveDevTools.bs.js",

## reductive-dev-tools
reductive and reason-react reducer component integration with Redux DevTools.
[reductive](https://github.com/reasonml-community/reductive) and [reason-react](https://github.com/reasonml/reason-react) reducer component integration with Redux DevTools.
![image](assets/demo.gif)
## Installation

@@ -11,2 +13,3 @@ via npm:

```
then add `reductive-dev-tools` to your "bs-dependencies" inside `bsconfig.json`

@@ -49,3 +52,3 @@ ## Caveats

## Experimental: Direct Usage with ReasonReact reducer component
## Experimental: ReasonReact reducer component via direct API

@@ -52,0 +55,0 @@ 1. Create devtools connection with `ReductiveDevTools.Connectors.register()`.

Sorry, the diff of this file is not supported yet

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