You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

treble-hook

Package Overview
Dependencies
Maintainers
6
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treble-hook - npm Package Compare versions

Comparing version

to
2.0.0-alpha.6

9

lib/index.js

@@ -21,3 +21,8 @@ "use strict";

if (checkValue !== null) {
normDefaultValue = checkValue;
try {
normDefaultValue = JSON.parse(checkValue);
}
catch (_) {
normDefaultValue = checkValue;
}
}

@@ -78,3 +83,3 @@ }

if (initWithSessionStorage) {
sessionStorage.setItem(topicName, String(stateValue));
sessionStorage.setItem(topicName, JSON.stringify(stateValue));
}

@@ -81,0 +86,0 @@ }, [stateValue]);

{
"name": "treble-hook",
"version": "2.0.0-alpha.5",
"version": "2.0.0-alpha.6",
"description": "Get hooked on simple subscribe-and-publish in ReactJS.",

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

Sorry, the diff of this file is not supported yet