Socket
Socket
Sign inDemoInstall

little-state-machine

Package Overview
Dependencies
3
Maintainers
1
Versions
210
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.1 to 2.3.0-beta.1

.rpt2_cache/rpt2_ddf57ed422ef2560bada0bf5c5cc05f5632a8818/code/cache/afde534470fe1e60984934fafa5334c138bf311a

18

dist/index.es.js

@@ -51,6 +51,10 @@ import * as React from 'react';

const actionTemplate = ({ options, callback, key, updateStore }) => (payload) => {
const debug = storageType.getItem('__STATE_MACHINE_DEBUG') === 'true';
if (debug) {
console.log(`%c${key ? options.debugName[key] : options.debugName}`, 'color: #bada55');
console.log('├─before:', get());
let debug;
if (process.env.NODE_ENV !== 'production') {
const cloneDeep = require('lodash.clonedeep');
debug = storageType.getItem('__STATE_MACHINE_DEBUG') === 'true';
if (debug) {
console.log(`%c${key ? options.debugName[key] : options.debugName}`, 'color: #bada55');
console.log('├─before:', cloneDeep(get()));
}
}

@@ -62,4 +66,6 @@ set(callback && callback(get(), payload));

}
if (debug) {
console.log('└─after:', get());
if (process.env.NODE_ENV !== 'production') {
if (debug) {
console.log('└─after:', get());
}
}

@@ -66,0 +72,0 @@ };

@@ -54,6 +54,10 @@ 'use strict';

const actionTemplate = ({ options, callback, key, updateStore }) => (payload) => {
const debug = storageType.getItem('__STATE_MACHINE_DEBUG') === 'true';
if (debug) {
console.log(`%c${key ? options.debugName[key] : options.debugName}`, 'color: #bada55');
console.log('├─before:', get());
let debug;
if (process.env.NODE_ENV !== 'production') {
const cloneDeep = require('lodash.clonedeep');
debug = storageType.getItem('__STATE_MACHINE_DEBUG') === 'true';
if (debug) {
console.log(`%c${key ? options.debugName[key] : options.debugName}`, 'color: #bada55');
console.log('├─before:', cloneDeep(get()));
}
}

@@ -65,4 +69,6 @@ set(callback && callback(get(), payload));

}
if (debug) {
console.log('└─after:', get());
if (process.env.NODE_ENV !== 'production') {
if (debug) {
console.log('└─after:', get());
}
}

@@ -69,0 +75,0 @@ };

{
"name": "little-state-machine",
"version": "2.2.1",
"version": "2.3.0-beta.1",
"main": "dist/index.js",

@@ -48,3 +48,6 @@ "module": "dist/index.es.js",

"react-dom": "^16.8.0"
},
"dependencies": {
"lodash.clonedeep": "^4.5.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc