Skip to content

Commit

Permalink
fix: fix default logging behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
kuasha420 committed Apr 24, 2021
1 parent d7c4a48 commit 70b1682
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mst-persistent-store",
"version": "1.0.3",
"version": "1.1.0",
"description": "Mobx State Tree Persistant Store Provider Component and Consumer Hook writen in TypeScript",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface PersistentStoreOptions {
devtool: boolean;
}

const isDev = process?.env?.NODE_ENV === 'development' ? true : false;
const isDev = process && process.env && process.env.NODE_ENV === 'development' ? true : false;

const defaultOptions: PersistentStoreOptions = {
storageKey: 'persistentStore',
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1327,14 +1327,6 @@ [email protected]:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==

"mst-persistent-store@file:.yalc/mst-persistent-store":
version "1.0.0"
dependencies:
localforage "1.9.0"
mobx-devtools-mst "0.9.30"
type-fest "1.0.2"
use-async-effect "2.2.3"

natural-compare@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
Expand Down

0 comments on commit 70b1682

Please sign in to comment.