Skip to content

Commit

Permalink
refactor: Remove detect-node (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
isaachinman authored Jul 29, 2020
1 parent ecb70d6 commit 54f8195
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 14 deletions.
5 changes: 0 additions & 5 deletions examples/simple/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2587,11 +2587,6 @@ des.js@^1.0.0:
inherits "^2.0.1"
minimalistic-assert "^1.0.0"

detect-node@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c"
integrity sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==

diffie-hellman@^5.0.0:
version "5.0.3"
resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@
"dependencies": {
"@types/express": "^4.16.1",
"core-js": "^3",
"detect-node": "^2.0.4",
"hoist-non-react-statics": "^3.2.0",
"i18next": "^19.6.3",
"i18next-browser-languagedetector": "^5.0.0",
Expand Down
4 changes: 1 addition & 3 deletions src/utils/is-server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import isNode from 'detect-node'

export const isServer = () => isNode && typeof window === 'undefined'
export const isServer = () => typeof window === 'undefined'
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3866,11 +3866,6 @@ 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@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.0.4.tgz#014ee8f8f669c5c58023da64b8179c083a28c46c"
integrity sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==

diff-sequences@^24.0.0:
version "24.0.0"
resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.0.0.tgz#cdf8e27ed20d8b8d3caccb4e0c0d8fe31a173013"
Expand Down

0 comments on commit 54f8195

Please sign in to comment.