@sap/service-provider-apis
Advanced tools
Comparing version 1.11.0 to 1.12.1
@@ -39,3 +39,3 @@ "use strict"; | ||
this.providerDestinationBas = destinationsResponse.map((destResponse) => { | ||
return Object.assign(Object.assign({}, destinationUtils_1.responseDestinationToProviderDestination(destResponse)), basConnectivityUtils_1.extractBASProperties(destResponse)); | ||
return Object.assign(Object.assign({}, (0, destinationUtils_1.responseDestinationToProviderDestination)(destResponse)), (0, basConnectivityUtils_1.extractBASProperties)(destResponse)); | ||
}); | ||
@@ -42,0 +42,0 @@ return this.providerDestinationBas; |
@@ -35,4 +35,4 @@ "use strict"; | ||
function getBasProviderParams() { | ||
const proxyUrl = new url_1.URL(providerUtils_1.getEnvValue(basConnectivity_1.HTTP_PROXY)); | ||
const h2oUrl = providerUtils_1.getEnvValue(basConnectivity_1.H2O_URL); | ||
const proxyUrl = new url_1.URL((0, providerUtils_1.getEnvValue)(basConnectivity_1.HTTP_PROXY)); | ||
const h2oUrl = (0, providerUtils_1.getEnvValue)(basConnectivity_1.H2O_URL); | ||
const proxy = { | ||
@@ -39,0 +39,0 @@ port: Number(proxyUrl.port), |
@@ -8,6 +8,6 @@ "use strict"; | ||
const wsBaseUrl = process.env.WS_BASE_URL; | ||
if (lodash_1.isUndefined(wsBaseUrl)) { | ||
if ((0, lodash_1.isUndefined)(wsBaseUrl)) { | ||
return false; | ||
} | ||
return !lodash_1.isEmpty(wsBaseUrl); | ||
return !(0, lodash_1.isEmpty)(wsBaseUrl); | ||
} | ||
@@ -17,3 +17,3 @@ exports.isAppStudio = isAppStudio; | ||
const value = process.env[name]; | ||
if (lodash_1.isUndefined(value)) { | ||
if ((0, lodash_1.isUndefined)(value)) { | ||
throw new Error(messages_1.messages.ERROR_FAILED_TO_GET_ENVIRONMENT_VARIABLES(name)); | ||
@@ -20,0 +20,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getBasProviderParams = exports.convertProxyStrToAxiosProxyConfig = exports.getEnvValue = exports.isAppStudio = exports.DESTINATIONS = exports.H2O_URL = exports.BasConnectivity = exports.UNKNOWN = exports.ASYNC_API_TYPE = exports.OPEN_API_TYPE = exports.BLOB_RESPONSE_TYPE = exports.GET_METHOD_TYPE = exports.ODATAV4 = exports.ODATAV2 = exports.ServiceRequestKey = exports.XML = exports.JSON = exports.messages = exports.Connectivity = exports.DefaultLogger = exports.addFormatParamToFilter = exports.getRequestParamString = exports.ProviderType = exports.ServiceProviderErrorCode = exports.ServiceProviderError = exports.EncodingMode = exports.ODataService = exports.Filter = exports.ProxyType = exports.SystemType = exports.AuthenticationType = exports.Authentication = void 0; | ||
var authentication_1 = require("./interfaces/authentication"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "Authentication", { enumerable: true, get: function () { return authentication_1.Authentication; } }); |
@@ -13,3 +13,3 @@ "use strict"; | ||
AuthenticationType["OAuth2ClientCredentials"] = "OAuth2ClientCredentials"; | ||
})(AuthenticationType = exports.AuthenticationType || (exports.AuthenticationType = {})); | ||
})(AuthenticationType || (exports.AuthenticationType = AuthenticationType = {})); | ||
class Authentication { | ||
@@ -16,0 +16,0 @@ constructor(user, password) { |
import { ProviderDestination } from "./destinationInterface"; | ||
export declare type ProviderResponseType = "arraybuffer" | "blob" | "document" | "json" | "text" | "stream"; | ||
export declare type ProviderMethod = "get" | "GET" | "delete" | "DELETE" | "head" | "HEAD" | "options" | "OPTIONS" | "post" | "POST" | "put" | "PUT" | "patch" | "PATCH" | "purge" | "PURGE" | "link" | "LINK" | "unlink" | "UNLINK"; | ||
export type ProviderResponseType = "arraybuffer" | "blob" | "document" | "json" | "text" | "stream"; | ||
export type ProviderMethod = "get" | "GET" | "delete" | "DELETE" | "head" | "HEAD" | "options" | "OPTIONS" | "post" | "POST" | "put" | "PUT" | "patch" | "PATCH" | "purge" | "PURGE" | "link" | "LINK" | "unlink" | "UNLINK"; | ||
export interface ConnProviderParams { | ||
@@ -5,0 +5,0 @@ urlPath: string; |
@@ -13,3 +13,3 @@ "use strict"; | ||
ServiceRequestKey["Select"] = "$select"; | ||
})(ServiceRequestKey = exports.ServiceRequestKey || (exports.ServiceRequestKey = {})); | ||
})(ServiceRequestKey || (exports.ServiceRequestKey = ServiceRequestKey = {})); | ||
exports.ODATAV2 = "odatav2"; | ||
@@ -16,0 +16,0 @@ exports.ODATAV4 = "odatav4"; |
/// <reference types="node" /> | ||
import { AuthenticationType } from "./authentication"; | ||
import { URL } from "url"; | ||
export declare type DestinationType = "HTTP"; | ||
export type DestinationType = "HTTP"; | ||
export interface Credentials { | ||
@@ -13,3 +13,3 @@ authentication: AuthenticationType; | ||
} | ||
export declare type ProxyDestinationType = "Internet" | "OnPremise"; | ||
export type ProxyDestinationType = "Internet" | "OnPremise"; | ||
export interface ProviderDestination { | ||
@@ -16,0 +16,0 @@ name: string; |
@@ -11,3 +11,3 @@ export declare const OPEN_API_TYPE = "openAPI"; | ||
} | ||
export declare type EventSpecType = "openAPI" | "asyncAPI" | "unknown"; | ||
export type EventSpecType = "openAPI" | "asyncAPI" | "unknown"; | ||
export interface EventSpec { | ||
@@ -14,0 +14,0 @@ type: EventSpecType; |
@@ -22,3 +22,4 @@ import { Service } from "./service"; | ||
ApiHubEventPackage = 14, | ||
ApiHubEvent = 15 | ||
ApiHubEvent = 15, | ||
SapBusinessOne = 16 | ||
} | ||
@@ -25,0 +26,0 @@ export declare enum ProxyType { |
@@ -23,3 +23,4 @@ "use strict"; | ||
SystemType[SystemType["ApiHubEvent"] = 15] = "ApiHubEvent"; | ||
})(SystemType = exports.SystemType || (exports.SystemType = {})); | ||
SystemType[SystemType["SapBusinessOne"] = 16] = "SapBusinessOne"; | ||
})(SystemType || (exports.SystemType = SystemType = {})); | ||
var ProxyType; | ||
@@ -30,3 +31,3 @@ (function (ProxyType) { | ||
ProxyType[ProxyType["ONPREMISE"] = 2] = "ONPREMISE"; | ||
})(ProxyType = exports.ProxyType || (exports.ProxyType = {})); | ||
})(ProxyType || (exports.ProxyType = ProxyType = {})); | ||
class Filter extends Map { | ||
@@ -33,0 +34,0 @@ constructor(filterValue) { |
@@ -10,3 +10,3 @@ "use strict"; | ||
ProviderType["Ucl"] = "Ucl"; | ||
})(ProviderType = exports.ProviderType || (exports.ProviderType = {})); | ||
})(ProviderType || (exports.ProviderType = ProviderType = {})); | ||
//# sourceMappingURL=serviceConnectivityData.js.map |
@@ -9,3 +9,3 @@ "use strict"; | ||
EncodingMode[EncodingMode["EDMX"] = 2] = "EDMX"; | ||
})(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {})); | ||
})(EncodingMode || (exports.EncodingMode = EncodingMode = {})); | ||
//# sourceMappingURL=serviceMetadata.js.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
ServiceProviderErrorCode[ServiceProviderErrorCode["RETRIEVE_DATA"] = 602] = "RETRIEVE_DATA"; | ||
})(ServiceProviderErrorCode = exports.ServiceProviderErrorCode || (exports.ServiceProviderErrorCode = {})); | ||
})(ServiceProviderErrorCode || (exports.ServiceProviderErrorCode = ServiceProviderErrorCode = {})); | ||
const INTERNAL_ERROR_MSG = "Internal server error"; | ||
@@ -13,0 +13,0 @@ const REQUEST_ERROR_MSG = "HTTP Request error"; |
{ | ||
"name": "@sap/service-provider-apis", | ||
"version": "1.11.0", | ||
"version": "1.12.1", | ||
"main": "out/src/index.js", | ||
"dependencies": { | ||
"axios": "0.21.4", | ||
"xml2js": "0.4.23", | ||
"xml2js": "0.6.2", | ||
"lodash": "4.17.21" | ||
@@ -15,12 +15,12 @@ }, | ||
"@istanbuljs/nyc-config-typescript": "^0.1.3", | ||
"@types/chai": "^4.1.7", | ||
"@types/chai-as-promised": "7.1.3", | ||
"@types/chai": "^4.3.5", | ||
"@types/chai-as-promised": "7.1.5", | ||
"@types/lodash": "^4.14.134", | ||
"@types/mocha": "5.2.6", | ||
"@types/node": "^13.1.6", | ||
"@types/sinon": "^7.5.2", | ||
"@types/sinon": "^10.0.16", | ||
"@types/xml2js": "^0.4.5", | ||
"@typescript-eslint/eslint-plugin": "^3.7.0", | ||
"@typescript-eslint/parser": "^3.7.0", | ||
"chai": "4.2.0", | ||
"chai": "4.3.7", | ||
"chai-as-promised": "7.1.1", | ||
@@ -34,7 +34,7 @@ "eslint": "6.8.0", | ||
"mocha": "6.1.4", | ||
"nyc": "15.0.0", | ||
"nyc": "15.1.0", | ||
"prettier": "^2.0.5", | ||
"sinon": "^7.3.2", | ||
"ts-node": "^8.3.0", | ||
"typescript": "^3.9.7" | ||
"sinon": "^15.2.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -48,4 +48,5 @@ "scripts": { | ||
"format:validate": "prettier --check --ignore-path .gitignore \"**/*.@(ts|js|json|md)\"", | ||
"ci": "npm config set registry=https://int.repositories.cloud.sap/artifactory/api/npm/build-releases-npm && npm config list && npm install && npm run test && npm run lint", | ||
"lint": "eslint . --ext .ts --max-warnings=0" | ||
} | ||
} |
@@ -143,2 +143,3 @@ # @sap/service-provider-apis | ||
**_Notes:_** | ||
@@ -145,0 +146,0 @@ Make sure to follow this versioning concept: |
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
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
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
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
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
87999
1027
148
+ Addedxml2js@0.6.2(transitive)
- Removedxml2js@0.4.23(transitive)
Updatedxml2js@0.6.2