Skip to content

Commit

Permalink
Drop browser detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Jan 10, 2022
1 parent 20bb14e commit 41ca0c1
Show file tree
Hide file tree
Showing 17 changed files with 5 additions and 231 deletions.
22 changes: 0 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions packages/helpers/browser-utils/.babelrc

This file was deleted.

26 changes: 0 additions & 26 deletions packages/helpers/browser-utils/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/helpers/browser-utils/.watchmanconfig

This file was deleted.

3 changes: 0 additions & 3 deletions packages/helpers/browser-utils/README.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/helpers/browser-utils/index.d.ts

This file was deleted.

71 changes: 0 additions & 71 deletions packages/helpers/browser-utils/package.json

This file was deleted.

30 changes: 0 additions & 30 deletions packages/helpers/browser-utils/src/browser.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/helpers/browser-utils/src/index.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/helpers/browser-utils/test/index.spec.ts

This file was deleted.

12 changes: 0 additions & 12 deletions packages/helpers/browser-utils/tsconfig.cjs.json

This file was deleted.

7 changes: 0 additions & 7 deletions packages/helpers/browser-utils/tsconfig.esm.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/helpers/browser-utils/tsconfig.json

This file was deleted.

16 changes: 0 additions & 16 deletions packages/helpers/browser-utils/webpack.config.js

This file was deleted.

20 changes: 5 additions & 15 deletions packages/helpers/socket-transport/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import {
ISocketTransportOptions,
} from "@exodus/walletconnect-types";
import {
isBrowser,
getLocation,
getQueryString,
detectEnv,
appendToQueryString,
} from "@exodus/walletconnect-utils";

Expand Down Expand Up @@ -251,18 +248,11 @@ function getWebSocketUrl(_url: string, protocol: string, version: number): strin
? _url.replace("http", "ws")
: _url;
const splitUrl = url.split("?");
const params = isBrowser()
? {
protocol,
version,
env: "browser",
host: getLocation()?.host || "",
}
: {
protocol,
version,
env: detectEnv()?.name || "",
};
const params = {
protocol,
version,
env: 'react-native', // NOTE: if we want to restore this, see git history
};
const queryString = appendToQueryString(getQueryString(splitUrl[1] || ""), params);
return splitUrl[0] + "?" + queryString;
}
Expand Down
1 change: 0 additions & 1 deletion packages/helpers/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"webpack-cli": "3.3.10"
},
"dependencies": {
"@exodus/walletconnect-browser-utils": "^1.7.0-exodus.0",
"@exodus/walletconnect-encoding": "^1.0.0-exodus.0",
"@exodus/walletconnect-jsonrpc-utils": "^1.0.0-exodus.0",
"@exodus/walletconnect-types": "^1.7.0-exodus.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/helpers/utils/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export * from "@exodus/walletconnect-browser-utils";

export * from "./constants.js";
export * from "./encoding.js";
export * from "./ethereum.js";
Expand Down

0 comments on commit 41ca0c1

Please sign in to comment.