Skip to content

Commit

Permalink
fix: replace detect-node by detect-node-es
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Jul 27, 2020
1 parent d83e141 commit 15047a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .size.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
{
"name": "dist/es2015/entrypoints/index.js, dist/es2015/entrypoints/boot.js",
"passed": true,
"size": 3717
"size": 3704
},
{
"name": "dist/es2015/entrypoints/index.js",
"passed": true,
"size": 3428
"size": 3414
},
{
"name": "dist/es2015/entrypoints/boot.js",
"passed": true,
"size": 1879
"size": 1863
}
]
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"@babel/runtime": "^7.3.1",
"@size-limit/preset-small-lib": "^4.5.1",
"@theuiteam/lib-builder": "0.0.8",
"@types/detect-node": "^2.0.0",
"@types/enzyme": "^3.10.3",
"@types/node": "^12.12.6",
"@types/react-dom": "^16.9.4",
Expand All @@ -78,7 +77,7 @@
"dependencies": {
"babel-plugin-macros": "^2.6.1",
"crc-32": "^1.2.0",
"detect-node": "^2.0.4",
"detect-node-es": "^1.0.0",
"scan-directory": "^2.0.0",
"tslib": "^1.10.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/utils/detectBackend.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import isNodeDetected from 'detect-node';
import { isNode } from 'detect-node-es';

export const isBackend = isNodeDetected || typeof window === 'undefined';
export const isBackend = isNode || typeof window === 'undefined';
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1651,11 +1651,6 @@
resolved "https://registry.yarnpkg.com/@types/debug/-/debug-0.0.29.tgz#a1e514adfbd92f03a224ba54d693111dbf1f3754"
integrity sha1-oeUUrfvZLwOiJLpU1pMRHb8fN1Q=

"@types/detect-node@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@types/detect-node/-/detect-node-2.0.0.tgz#696e024ddd105c72bbc6a2e3f97902a2886f2c3f"
integrity sha512-+BozjlbPTACYITf1PWf62HLtDV79HbmZosUN1mv1gGrnjDCRwBXkDKka1sf6YQJvspmfPXVcy+X6tFW62KteeQ==

"@types/enzyme@^3.10.3":
version "3.10.3"
resolved "https://registry.yarnpkg.com/@types/enzyme/-/enzyme-3.10.3.tgz#02b6c5ac7d0472005944a652e79045e2f6c66804"
Expand Down Expand Up @@ -5346,6 +5341,11 @@ detect-newline@^2.1.0:
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2"
integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=

detect-node-es@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/detect-node-es/-/detect-node-es-1.0.0.tgz#c0318b9e539a5256ca780dd9575c9345af05b8ed"
integrity sha512-S4AHriUkTX9FoFvL4G8hXDcx6t3gp2HpfCza3Q0v6S78gul2hKWifLQbeW+ZF89+hSm2ZIc/uF3J97ZgytgTRg==

detect-node@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c"
Expand Down

0 comments on commit 15047a2

Please sign in to comment.