@based/client
Advanced tools
Comparing version 0.9.2 to 0.9.3
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
exports.default = (client, url, options) => { | ||
fetch(url + '/file', { | ||
(0, cross_fetch_1.default)(url + '/file', { | ||
method: 'POST', | ||
@@ -6,0 +10,0 @@ cache: 'no-cache', |
@@ -359,5 +359,4 @@ "use strict"; | ||
let { env, project, org, url, key, name = '@based/hub', cluster, params, } = opts; | ||
cluster = opts.cluster = (0, get_service_1.getClusterUrl)(cluster); | ||
console.info(cluster, opts.cluster); | ||
if (!url) { | ||
cluster = opts.cluster = (0, get_service_1.getClusterUrl)(cluster); | ||
url = async () => { | ||
@@ -364,0 +363,0 @@ const { url } = await (0, get_service_1.default)({ |
{ | ||
"name": "@based/client", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"main": "dist/index.js", | ||
@@ -16,3 +16,3 @@ "browser": { | ||
"dependencies": { | ||
"@based/get-service": "^0.2.1", | ||
"@based/get-service": "^0.2.2", | ||
"@saulx/diff": "^1.1.3", | ||
@@ -19,0 +19,0 @@ "@saulx/hash": "^1.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
168964
2846
2
Updated@based/get-service@^0.2.2