Skip to content

Commit d5ca1d1

Browse files
committed
refactor to use @tradle/react-native-http
1 parent 55885ec commit d5ca1d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

browser.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dns": "dns.js",
77
"net": "react-native-tcp",
88
"domain": "domain-browser",
9-
"http": "react-native-http",
9+
"http": "@tradle/react-native-http",
1010
"https": "https-browserify",
1111
"os": "react-native-os",
1212
"path": "path-browserify",

cmd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function installShims ({ modules, overwrite }, done) {
109109
return browser[m] || m
110110
})
111111
.filter(function (shim) {
112-
return !/^_/.test(shim) && shim.indexOf('/') === -1
112+
return !/^_/.test(shim) && (shim[0] === '@' || shim.indexOf('/') === -1)
113113
})
114114

115115
if (!shimPkgNames.length) {

shims.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
"dns.js": "^1.0.1",
1111
"domain-browser": "^1.1.1",
1212
"events": "^1.0.0",
13-
"react-native-http": "tradle/react-native-http#834492d",
13+
"@tradle/react-native-http": "^2.0.0",
1414
"https-browserify": "~0.0.0",
1515
"react-native-os": "^1.0.1",
1616
"path-browserify": "0.0.0",

0 commit comments

Comments
 (0)