@coscine/api-connection
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -264,2 +264,11 @@ var axios = require('axios'); | ||
}; | ||
SubProjectApi.getAccessibleParent = function (childId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$6 | ||
.get(getSubProjectApiUrl() + childId + '/accessibleParent') | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return SubProjectApi; | ||
@@ -266,0 +275,0 @@ }()); |
@@ -270,2 +270,11 @@ (function (global, factory) { | ||
}; | ||
SubProjectApi.getAccessibleParent = function (childId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$6 | ||
.get(getSubProjectApiUrl() + childId + '/accessibleParent') | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return SubProjectApi; | ||
@@ -272,0 +281,0 @@ }()); |
@@ -20,2 +20,11 @@ "use strict"; | ||
}; | ||
SubProjectApi.getAccessibleParent = function (childId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = api_connection_basic_1.default.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = api_connection_basic_1.default.defaultOnCatch; } | ||
api_connection_basic_1.default.setHeader(); | ||
return axios | ||
.get(getSubProjectApiUrl() + childId + '/accessibleParent') | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return SubProjectApi; | ||
@@ -22,0 +31,0 @@ }()); |
export declare class SubProjectApi { | ||
static getSubProjects(parentId: string, thenHandler?: any, catchHandler?: any): any; | ||
static getAccessibleParent(childId: string, thenHandler?: any, catchHandler?: any): any; | ||
} |
{ | ||
"name": "@coscine/api-connection", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "This library provides methods to connect to CoScInE Apis with JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
269505
2079