@workerbase/sdk
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -78,3 +78,3 @@ "use strict"; | ||
data: { externalId: externalId, payload: payload }, | ||
}, 'databases')]; | ||
}, process.env.DATABASES_SERVICE_HOST)]; | ||
case 1: | ||
@@ -93,3 +93,3 @@ data = (_a.sent()).data; | ||
data: { items: items }, | ||
}, 'databases')]; | ||
}, process.env.DATABASES_SERVICE_HOST)]; | ||
case 1: | ||
@@ -96,0 +96,0 @@ data = (_a.sent()).data; |
@@ -30,3 +30,3 @@ "use strict"; | ||
exports.default = WorkerbaseRessource_1.default({ | ||
internalHostname: 'databases', | ||
internalHostname: process.env.DATABASES_SERVICE_HOST, | ||
path: 'databases', | ||
@@ -33,0 +33,0 @@ includeBasics: [ |
@@ -61,3 +61,3 @@ "use strict"; | ||
exports.default = WorkerbaseRessource_1.default({ | ||
internalHostname: 'projects', | ||
internalHostname: process.env.PROJECTS_SERVICE_HOST, | ||
path: 'events', | ||
@@ -79,3 +79,3 @@ includeBasics: [ | ||
data: payload, | ||
})]; | ||
}, process.env.PROJECTS_SERVICE_HOST)]; | ||
case 1: | ||
@@ -82,0 +82,0 @@ data = (_a.sent()).data; |
@@ -76,3 +76,3 @@ "use strict"; | ||
method: 'POST', | ||
})]; | ||
}, process.env.PROJECTS_SERVICE_HOST)]; | ||
case 1: | ||
@@ -91,3 +91,3 @@ data = (_a.sent()).data; | ||
data: payload, | ||
}, 'projects')]; | ||
}, process.env.PROJECTS_SERVICE_HOST)]; | ||
case 1: | ||
@@ -94,0 +94,0 @@ data = (_a.sent()).data; |
@@ -65,3 +65,3 @@ "use strict"; | ||
exports.default = WorkerbaseRessource_1.default({ | ||
internalHostname: 'settings', | ||
internalHostname: process.env.SETTINGS_SERVICE_HOST, | ||
path: 'locations', | ||
@@ -83,3 +83,3 @@ includeBasics: [ | ||
data: locationChanges, | ||
})]; | ||
}, process.env.SETTINGS_SERVICE_HOST)]; | ||
case 1: | ||
@@ -92,3 +92,3 @@ data = (_a.sent()).data; | ||
getPartsByLevel: function (spec) { return function (levelId) { | ||
var partsPromise = doRequest_1.doRequest(spec._api, spec.basePath + "/parts/" + levelId).then(function (_a) { | ||
var partsPromise = doRequest_1.doRequest(spec._api, spec.basePath + "/parts/" + levelId, {}, process.env.SETTINGS_SERVICE_HOST).then(function (_a) { | ||
var data = _a.data; | ||
@@ -100,3 +100,3 @@ return data.data; | ||
getLevels: function (spec) { return function () { | ||
var levelsPromise = doRequest_1.doRequest(spec._api, 'settings').then(function (_a) { | ||
var levelsPromise = doRequest_1.doRequest(spec._api, 'settings', {}, process.env.SETTINGS_SERVICE_HOST).then(function (_a) { | ||
var data = _a.data; | ||
@@ -103,0 +103,0 @@ return data.locationStructure; |
@@ -61,3 +61,3 @@ "use strict"; | ||
exports.default = WorkerbaseRessource_1.default({ | ||
internalHostname: 'media', | ||
internalHostname: process.env.MEDIA_SERVICE_HOST, | ||
path: 'media', | ||
@@ -70,3 +70,3 @@ includeBasics: [WorkerbaseRessource_1.BasicMethods.LIST, WorkerbaseRessource_1.BasicMethods.DELETE], | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, doRequest_1.doRequest(spec._api, spec.basePath + "/as-json/" + id)]; | ||
case 0: return [4 /*yield*/, doRequest_1.doRequest(spec._api, spec.basePath + "/as-json/" + id, {}, process.env.MEDIA_SERVICE_HOST)]; | ||
case 1: | ||
@@ -73,0 +73,0 @@ data = (_a.sent()).data; |
@@ -25,3 +25,3 @@ "use strict"; | ||
path: 'roles', | ||
internalHostname: 'users', | ||
internalHostname: process.env.USERS_SERVICE_HOST, | ||
includeBasics: [ | ||
@@ -28,0 +28,0 @@ WorkerbaseRessource_1.BasicMethods.LIST, |
@@ -24,3 +24,3 @@ "use strict"; | ||
exports.default = WorkerbaseRessource_1.default({ | ||
internalHostname: 'users', | ||
internalHostname: process.env.USERS_SERVICE_HOST, | ||
path: 'skills', | ||
@@ -27,0 +27,0 @@ includeBasics: [ |
@@ -24,3 +24,3 @@ "use strict"; | ||
exports.default = WorkerbaseRessource_1.default({ | ||
internalHostname: 'users', | ||
internalHostname: process.env.USERS_SERVICE_HOST, | ||
path: 'users', | ||
@@ -27,0 +27,0 @@ includeBasics: [ |
@@ -83,2 +83,5 @@ "use strict"; | ||
} | ||
if (process.env.WB_ENABLE_INTERNAL_ROUTING && internalHostname) { | ||
api.url = 'http://' + internalHostname + ':3000/'; | ||
} | ||
baseUrl = parseurl_1.default({ url: api.url }).href; | ||
@@ -85,0 +88,0 @@ url = baseUrl + "api/" + apiVersion + "/" + endpoint; |
{ | ||
"name": "@workerbase/sdk", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
132878
2124
19