@aserto/aserto-spa-js
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -26,3 +26,3 @@ "use strict"; | ||
urlObject, | ||
urlPath, | ||
url, | ||
response, | ||
@@ -43,7 +43,7 @@ _args = arguments; | ||
urlPath = urlObject + path; | ||
url = urlObject + path; | ||
headers.Authorization = "Bearer ".concat(token); | ||
_context.prev = 6; | ||
_context.next = 9; | ||
return fetch(urlPath, { | ||
return fetch(url, { | ||
headers: headers | ||
@@ -81,6 +81,5 @@ }); | ||
urlObject, | ||
_url, | ||
url, | ||
response, | ||
_args2 = arguments; | ||
return regeneratorRuntime.wrap(function _callee2$(_context2) { | ||
@@ -100,7 +99,7 @@ while (1) { | ||
_url = urlObject + path; | ||
url = urlObject + path; | ||
headers.Authorization = "Bearer ".concat(token); | ||
headers['Content-Type'] = 'application/json'; | ||
_context2.next = 10; | ||
return fetch(_url, { | ||
return fetch(url, { | ||
method: 'POST', | ||
@@ -130,2 +129,2 @@ headers: headers, | ||
} | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9hcGkuanMiXSwibmFtZXMiOlsiZ2V0IiwidG9rZW4iLCJwYXRoIiwiaGVhZGVycyIsImJhc2VVcmwiLCJ3aW5kb3ciLCJsb2NhdGlvbiIsIm9yaWdpbiIsInVybE9iamVjdCIsIlVSTCIsInBvcnQiLCJ1cmxQYXRoIiwiQXV0aG9yaXphdGlvbiIsImZldGNoIiwicmVzcG9uc2UiLCJjb25zb2xlIiwiZXJyb3IiLCJ1cmwiLCJwb3N0IiwiZGF0YSIsIm1ldGhvZCIsImJvZHkiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO1NBRXNCQSxHOzs7OztpRUFBZixpQkFBbUJDLEtBQW5CLEVBQTBCQyxJQUExQjtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ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gaGVhZGVycyA9IHt9KSB7IFxuICB0cnkge1xuICAgIC8vIGNvbnN0cnVjdCBBUEkgc2VydmljZSBVUkxcbiAgICBjb25zdCBiYXNlVXJsID0gd2luZG93LmxvY2F0aW9uLm9yaWdpbjtcbiAgICBjb25zdCB1cmxPYmplY3QgPSBuZXcgVVJMKGJhc2VVcmwpO1xuXG4gICAgLy8gcmVwbGFjZSBwb3J0IGZvciBsb2NhbCBkZXZlbG9wbWVudCBmcm9tIDMwMDAgdG8gODA4MFxuICAgIGlmICh1cmxPYmplY3QucG9ydCAmJiB1cmxPYmplY3QucG9ydCA+IDgwKSB7XG4gICAgICB1cmxPYmplY3QucG9ydCA9IDgwODA7XG4gICAgfVxuXG4gICAgY29uc3QgdXJsID0gdXJsT2JqZWN0ICsgcGF0aDtcbiAgICBoZWFkZXJzLkF1dGhvcml6YXRpb24gPSBgQmVhcmVyICR7dG9rZW59YDtcbiAgICBoZWFkZXJzWydDb250ZW50LVR5cGUnXSA9ICdhcHBsaWNhdGlvbi9qc29uJztcblxuICAgIGNvbnN0IHJlc3BvbnNlID0gYXdhaXQgZmV0Y2godXJsLCB7XG4gICAgICBtZXRob2Q6ICdQT1NUJyxcbiAgICAgIGhlYWRlcnM6IGhlYWRlcnMsXG4gICAgICBib2R5OiBkYXRhXG4gICAgfSk7XG4gICAgXG4gICAgcmV0dXJuIFtyZXNwb25zZSwgbnVsbF07XG4gIH0gY2F0Y2ggKGVycm9yKSB7XG4gICAgY29uc29sZS5lcnJvcihlcnJvcik7XG4gICAgcmV0dXJuIFtudWxsLCBlcnJvcl07XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "@aserto/aserto-spa-js", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Aserto single-page application javascript SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
18885