@superset-ui/connection
Advanced tools
Comparing version 0.13.21 to 0.13.25
@@ -12,8 +12,8 @@ "use strict"; | ||
function getInstance(maybeClient) { | ||
if (!maybeClient) { | ||
function getInstance() { | ||
if (!singletonClient) { | ||
throw new Error('You must call SupersetClient.configure(...) before calling other methods'); | ||
} | ||
return maybeClient; | ||
return singletonClient; | ||
} | ||
@@ -26,13 +26,13 @@ | ||
}, | ||
delete: request => getInstance(singletonClient).delete(request), | ||
get: request => getInstance(singletonClient).get(request), | ||
delete: request => getInstance().delete(request), | ||
get: request => getInstance().get(request), | ||
getInstance, | ||
init: force => getInstance(singletonClient).init(force), | ||
isAuthenticated: () => getInstance(singletonClient).isAuthenticated(), | ||
post: request => getInstance(singletonClient).post(request), | ||
put: request => getInstance(singletonClient).put(request), | ||
reAuthenticate: () => getInstance(singletonClient).init( | ||
init: force => getInstance().init(force), | ||
isAuthenticated: () => getInstance().isAuthenticated(), | ||
post: request => getInstance().post(request), | ||
put: request => getInstance().put(request), | ||
reAuthenticate: () => getInstance().init( | ||
/* force = */ | ||
true), | ||
request: _request => getInstance(singletonClient).request(_request), | ||
request: _request => getInstance().request(_request), | ||
reset: () => { | ||
@@ -39,0 +39,0 @@ singletonClient = undefined; |
@@ -12,8 +12,8 @@ "use strict"; | ||
function getInstance(maybeClient) { | ||
if (!maybeClient) { | ||
function getInstance() { | ||
if (!singletonClient) { | ||
throw new Error('You must call SupersetClient.configure(...) before calling other methods'); | ||
} | ||
return maybeClient; | ||
return singletonClient; | ||
} | ||
@@ -26,13 +26,13 @@ | ||
}, | ||
delete: request => getInstance(singletonClient).delete(request), | ||
get: request => getInstance(singletonClient).get(request), | ||
delete: request => getInstance().delete(request), | ||
get: request => getInstance().get(request), | ||
getInstance, | ||
init: force => getInstance(singletonClient).init(force), | ||
isAuthenticated: () => getInstance(singletonClient).isAuthenticated(), | ||
post: request => getInstance(singletonClient).post(request), | ||
put: request => getInstance(singletonClient).put(request), | ||
reAuthenticate: () => getInstance(singletonClient).init( | ||
init: force => getInstance().init(force), | ||
isAuthenticated: () => getInstance().isAuthenticated(), | ||
post: request => getInstance().post(request), | ||
put: request => getInstance().put(request), | ||
reAuthenticate: () => getInstance().init( | ||
/* force = */ | ||
true), | ||
request: _request => getInstance(singletonClient).request(_request), | ||
request: _request => getInstance().request(_request), | ||
reset: () => { | ||
@@ -39,0 +39,0 @@ singletonClient = undefined; |
{ | ||
"name": "@superset-ui/connection", | ||
"version": "0.13.21", | ||
"version": "0.13.25", | ||
"description": "Superset UI connection", | ||
@@ -41,3 +41,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "14aeb4f70403e02e228f73a47a3e932d0eb5505c" | ||
"gitHead": "b7031236343fab154df8f856b1b9ccd43ab8e31d" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2
56473