@based/get-service
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -8,3 +8,3 @@ "use strict"; | ||
const cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
const DEFAULT_CLUSTER = 'https://dg194mksjrqfz.cloudfront.net'; | ||
const DEFAULT_CLUSTER = 'https://d3gdtpkyvlxeve.cloudfront.net'; | ||
const parsUrlRe = /^(?:(tcp|wss?|https?):\/\/)?([a-z0-9.-]*)(?::(\d+))?$/; | ||
@@ -25,5 +25,2 @@ const wait = (t = 1e3) => new Promise((resolve) => { | ||
} | ||
if (cluster === 'localSpesh') { | ||
return 'http://localhost:9022'; | ||
} | ||
return cluster; | ||
@@ -30,0 +27,0 @@ }; |
{ | ||
"name": "@based/get-service", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "__module": "src/index.ts", |
import fetch from 'cross-fetch' | ||
const DEFAULT_CLUSTER = 'https://dg194mksjrqfz.cloudfront.net' | ||
const DEFAULT_CLUSTER = 'https://d3gdtpkyvlxeve.cloudfront.net' | ||
@@ -25,5 +25,2 @@ const parsUrlRe = /^(?:(tcp|wss?|https?):\/\/)?([a-z0-9.-]*)(?::(\d+))?$/ | ||
} | ||
if (cluster === 'localSpesh') { | ||
return 'http://localhost:9022' | ||
} | ||
return cluster | ||
@@ -30,0 +27,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
72251
210