@superset-ui/connection
Advanced tools
Comparing version 0.10.0 to 0.10.2
import"whatwg-fetch";// This function fetches an API response and returns the corresponding json | ||
export default function callApi(a){var b=a.body,c=a.cache,d=void 0===c?"default":c,e=a.credentials,f=void 0===e?"same-origin":e,g=a.headers,h=a.method,i=void 0===h?"GET":h,j=a.mode,k=void 0===j?"same-origin":j,l=a.postPayload,m=a.redirect,n=void 0===m?"follow":m,o=a.signal,p=a.stringify,q=a.url,r={body:b,cache:d,credentials:f,headers:g,method:i,mode:k,redirect:n,signal:o};if("POST"===i&&"object"==typeof l){// using FormData has the effect that Content-Type header is set to `multipart/form-data`, | ||
export default function callApi(a){var b=a.body,c=a.cache,d=void 0===c?"default":c,e=a.credentials,f=void 0===e?"same-origin":e,g=a.headers,h=a.method,i=void 0===h?"GET":h,j=a.mode,k=void 0===j?"same-origin":j,l=a.postPayload,m=a.redirect,n=void 0===m?"follow":m,o=a.signal,p=a.stringify,q=a.url,r={body:b,cache:d,credentials:f,headers:g,method:i,mode:k,redirect:n,signal:o};if(("POST"===i||"PATCH"===i||"PUT"===i)&&"object"==typeof l){// using FormData has the effect that Content-Type header is set to `multipart/form-data`, | ||
var s=new FormData;Object.keys(l).forEach(function(a){var b=l[a];"undefined"!=typeof b&&s.append(a,!(void 0!==p)||p?JSON.stringify(b):b)}),r.body=s}return fetch(q,r);// eslint-disable-line compat/compat | ||
} |
"use strict";exports.__esModule=/* force = */!0,exports.default=callApi,require("whatwg-fetch");// This function fetches an API response and returns the corresponding json | ||
function callApi(a){var b=a.body,c=a.cache,d=void 0===c?"default":c,e=a.credentials,f=void 0===e?"same-origin":e,g=a.headers,h=a.method,i=void 0===h?"GET":h,j=a.mode,k=void 0===j?"same-origin":j,l=a.postPayload,m=a.redirect,n=void 0===m?"follow":m,o=a.signal,p=a.stringify,q=a.url,r={body:b,cache:d,credentials:f,headers:g,method:i,mode:k,redirect:n,signal:o};if("POST"===i&&"object"==typeof l){// using FormData has the effect that Content-Type header is set to `multipart/form-data`, | ||
function callApi(a){var b=a.body,c=a.cache,d=void 0===c?"default":c,e=a.credentials,f=void 0===e?"same-origin":e,g=a.headers,h=a.method,i=void 0===h?"GET":h,j=a.mode,k=void 0===j?"same-origin":j,l=a.postPayload,m=a.redirect,n=void 0===m?"follow":m,o=a.signal,p=a.stringify,q=a.url,r={body:b,cache:d,credentials:f,headers:g,method:i,mode:k,redirect:n,signal:o};if(("POST"===i||"PATCH"===i||"PUT"===i)&&"object"==typeof l){// using FormData has the effect that Content-Type header is set to `multipart/form-data`, | ||
var s=new FormData;Object.keys(l).forEach(function(a){var b=l[a];"undefined"!=typeof b&&s.append(a,!(void 0!==p)||p?JSON.stringify(b):b)}),r.body=s}return fetch(q,r);// eslint-disable-line compat/compat | ||
} |
{ | ||
"name": "@superset-ui/connection", | ||
"version": "0.10.0", | ||
"version": "0.10.2", | ||
"description": "Superset UI connection", | ||
@@ -41,3 +41,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "72157160f25698dbb379e3c9db86873ff9d17204" | ||
"gitHead": "a2504f7884224a63bfe5313693b77d0922ea15ce" | ||
} |
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
40582