@plattar/sdk-core
Advanced tools
Comparing version
@@ -127,3 +127,6 @@ "use strict"; | ||
queries.forEach((query) => { | ||
url += `${query.toString()}&`; | ||
const queryString = query.toString(); | ||
if (queryString !== '') { | ||
url += `${queryString}&`; | ||
} | ||
}); | ||
@@ -135,2 +138,11 @@ // remove the last & keyword | ||
const results = new Array(); | ||
if (!fetch) { | ||
core_error_1.CoreError.init({ | ||
error: { | ||
title: 'Runtime Error', | ||
text: `native fetch api not available, uprade your ${util_1.Util.isNode() ? 'NodeJS' : 'Browser'} environment` | ||
} | ||
}).handle(service); | ||
return results; | ||
} | ||
const headers = { | ||
@@ -137,0 +149,0 @@ 'Content-Type': 'application/json', |
@@ -1,2 +0,2 @@ | ||
declare const _default: "1.164.9"; | ||
declare const _default: "1.164.10"; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "1.164.9"; | ||
exports.default = "1.164.10"; |
{ | ||
"name": "@plattar/sdk-core", | ||
"version": "1.164.9", | ||
"version": "1.164.10", | ||
"description": "Core SDK Module for Generative SDK using API Core", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
79216
0.58%1990
0.61%5
25%