@newageerp/mp-types
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -66,2 +66,3 @@ "use strict"; | ||
return __async(this, null, function* () { | ||
var _a; | ||
let requestUrl = `${props.options ? props.options.baseUrl : process.env.MP_URL}/data-source/${props.dataSource}/results?_t=${(/* @__PURE__ */ new Date()).getTime()}`; | ||
@@ -74,3 +75,3 @@ if (props.fields) { | ||
} | ||
const res = yield fetch(requestUrl, { headers: { "Authorization": `Bearer ${process.env.MP_KEY}` } }); | ||
const res = yield fetch(requestUrl, { headers: { "Authorization": `Bearer ${((_a = props.options) == null ? void 0 : _a.authKey) ? props.options.authKey : process.env.MP_KEY}` } }); | ||
const resJson = yield res.json(); | ||
@@ -77,0 +78,0 @@ return resJson; |
{ | ||
"name": "@newageerp/mp-types", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26735
314