@coscine/api-connection
Advanced tools
Comparing version 1.12.0 to 1.13.0
@@ -440,9 +440,9 @@ var axios = require('axios'); | ||
var axios$a = require('axios'); | ||
function getInstituteApiUrl() { | ||
return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Institute/'); | ||
function getOrganizationApiUrl() { | ||
return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Organization/Organization/'); | ||
} | ||
var InstituteApi = /** @class */ (function () { | ||
function InstituteApi() { | ||
var OrganizationApi = /** @class */ (function () { | ||
function OrganizationApi() { | ||
} | ||
InstituteApi.getInstitutes = function (thenHandler, catchHandler) { | ||
OrganizationApi.getOrganizations = function (thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
@@ -452,7 +452,7 @@ if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
return axios$a | ||
.get(getInstituteApiUrl()) | ||
.get(getOrganizationApiUrl()) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return InstituteApi; | ||
return OrganizationApi; | ||
}()); | ||
@@ -721,3 +721,3 @@ | ||
export { ActivatedFeaturesApi, DataSourceApi, DisciplineApi, InstituteApi, LicenseApi, MetadataApi, ProjectApi, ProjectRoleApi, ResourceApi, ResourceTypeApi, RoleApi, SearchApi, SubProjectApi, UserApi, VisibilityApi, defaultOnCatch, redirectToProject }; | ||
export { ActivatedFeaturesApi, DataSourceApi, DisciplineApi, LicenseApi, MetadataApi, OrganizationApi, ProjectApi, ProjectRoleApi, ResourceApi, ResourceTypeApi, RoleApi, SearchApi, SubProjectApi, UserApi, VisibilityApi, defaultOnCatch, redirectToProject }; | ||
//# sourceMappingURL=api-connection.es5.js.map |
@@ -446,9 +446,9 @@ (function (global, factory) { | ||
var axios$a = require('axios'); | ||
function getInstituteApiUrl() { | ||
return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Institute/'); | ||
function getOrganizationApiUrl() { | ||
return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Organization/Organization/'); | ||
} | ||
var InstituteApi = /** @class */ (function () { | ||
function InstituteApi() { | ||
var OrganizationApi = /** @class */ (function () { | ||
function OrganizationApi() { | ||
} | ||
InstituteApi.getInstitutes = function (thenHandler, catchHandler) { | ||
OrganizationApi.getOrganizations = function (thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
@@ -458,7 +458,7 @@ if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
return axios$a | ||
.get(getInstituteApiUrl()) | ||
.get(getOrganizationApiUrl()) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return InstituteApi; | ||
return OrganizationApi; | ||
}()); | ||
@@ -730,5 +730,5 @@ | ||
exports.DisciplineApi = DisciplineApi; | ||
exports.InstituteApi = InstituteApi; | ||
exports.LicenseApi = LicenseApi; | ||
exports.MetadataApi = MetadataApi; | ||
exports.OrganizationApi = OrganizationApi; | ||
exports.ProjectApi = ProjectApi; | ||
@@ -735,0 +735,0 @@ exports.ProjectRoleApi = ProjectRoleApi; |
@@ -21,4 +21,4 @@ "use strict"; | ||
exports.VisibilityApi = visibility_api_1.VisibilityApi; | ||
var institute_api_1 = require("./requests/institute-api"); | ||
exports.InstituteApi = institute_api_1.InstituteApi; | ||
var organization_api_1 = require("./requests/organization-api"); | ||
exports.OrganizationApi = organization_api_1.OrganizationApi; | ||
var discipline_api_1 = require("./requests/discipline-api"); | ||
@@ -25,0 +25,0 @@ exports.DisciplineApi = discipline_api_1.DisciplineApi; |
@@ -10,3 +10,3 @@ export { ProjectApi } from './requests/project-api'; | ||
export { VisibilityApi } from './requests/visibility-api'; | ||
export { InstituteApi } from './requests/institute-api'; | ||
export { OrganizationApi } from './requests/organization-api'; | ||
export { DisciplineApi } from './requests/discipline-api'; | ||
@@ -13,0 +13,0 @@ export { LicenseApi } from './requests/license-api'; |
{ | ||
"name": "@coscine/api-connection", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"description": "This library provides methods to connect to CoScInE Apis with JavaScript.", | ||
@@ -92,11 +92,11 @@ "keywords": [ | ||
"@semantic-release/git": "^9.0.0", | ||
"@semantic-release/gitlab": "^6.0.3", | ||
"@semantic-release/gitlab": "^6.0.4", | ||
"@semantic-release/npm": "^7.0.5", | ||
"@semantic-release/release-notes-generator": "^9.0.1", | ||
"@types/jest": "^25.1.4", | ||
"@types/node": "^12.12.31", | ||
"@types/jest": "^25.2.1", | ||
"@types/node": "^13.13.2", | ||
"colors": "^1.4.0", | ||
"commitizen": "^4.0.3", | ||
"commitizen": "^4.0.4", | ||
"conventional-changelog-eslint": "^3.0.4", | ||
"coveralls": "^3.0.11", | ||
"coveralls": "^3.0.14", | ||
"cross-env": "^7.0.2", | ||
@@ -107,12 +107,12 @@ "cz-conventional-changelog": "^3.1.0", | ||
"eslint-plugin-vue": "^6.2.2", | ||
"husky": "^4.2.3", | ||
"jest": "^25.2.3", | ||
"jest-config": "^25.2.3", | ||
"lint-staged": "^10.0.9", | ||
"husky": "^4.2.5", | ||
"jest": "^25.4.0", | ||
"jest-config": "^25.4.0", | ||
"lint-staged": "^10.1.7", | ||
"lodash.camelcase": "^4.3.0", | ||
"prettier": "^2.0.2", | ||
"prettier": "^2.0.5", | ||
"prompt": "^1.0.0", | ||
"replace-in-file": "^5.0.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.2.0", | ||
"rollup": "^2.7.2", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
@@ -123,10 +123,10 @@ "rollup-plugin-json": "^4.0.0", | ||
"rollup-plugin-typescript2": "^0.27.0", | ||
"semantic-release": "^17.0.4", | ||
"semantic-release": "^17.0.7", | ||
"shelljs": "^0.8.3", | ||
"ts-jest": "^25.2.1", | ||
"ts-node": "^8.8.1", | ||
"tslint": "^6.1.0", | ||
"ts-jest": "^25.4.0", | ||
"ts-node": "^8.9.0", | ||
"tslint": "^6.1.1", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-config-standard": "^9.0.0", | ||
"typedoc": "^0.17.3", | ||
"typedoc": "^0.17.4", | ||
"typescript": "^3.8.3" | ||
@@ -133,0 +133,0 @@ }, |
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
300394