New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sap/service-provider-apis

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/service-provider-apis - npm Package Compare versions

Comparing version 2.0.1 to 2.1.2

2

out/src/connectivity.js

@@ -43,4 +43,4 @@ "use strict";

static send(options) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
var _a;
let response;

@@ -47,0 +47,0 @@ try {

@@ -14,2 +14,3 @@ export declare const messages: {

ERROR_FAILED_TO_GET_METADATA: string;
ERROR_FAILED_TO_GET_SERVICE_TYPE: string;
ERROR_FAILED_TO_GET_ENTITY_DATA: (entityName: string) => string;

@@ -16,0 +17,0 @@ ERROR_FAILED_TO_GET_ANNOTATIONS: string;

@@ -17,2 +17,3 @@ "use strict";

ERROR_FAILED_TO_GET_METADATA: "Cannot get metadata.",
ERROR_FAILED_TO_GET_SERVICE_TYPE: "Cannot get service type.",
ERROR_FAILED_TO_GET_ENTITY_DATA: (entityName) => `Failed to retrieve data for the '${entityName}' entity.`,

@@ -19,0 +20,0 @@ ERROR_FAILED_TO_GET_ANNOTATIONS: "Cannot get annotations.",

@@ -9,3 +9,3 @@ export { Annotation } from "./interfaces/annotation";

export { ServiceInstanceCredentials, HeaderParameters, } from "./interfaces/types";
export { ServiceConnectivityData, ServiceConnectivityDataApiHub, ServiceConnectivityDataEntApiHub, ProviderType, } from "./interfaces/serviceConnectivityData";
export { ServiceConnectivityData, ServiceConnectivityDataApiHub, ServiceConnectivityDataEntApiHub, ServiceConnectivityDataSapSystems, ProviderType, } from "./interfaces/serviceConnectivityData";
export { AbapCatalogServiceUrl, RawDestination, ProviderUtils, getRequestParamString, addFormatParamToFilter, } from "./interfaces/utils";

@@ -12,0 +12,0 @@ export { DefaultLogger } from "./logger/defaultLogger";

@@ -53,2 +53,3 @@ import { Service } from "./service";

getAnnotations(service: Service, options?: Record<string, any>): Promise<Annotation[]>;
getServiceUiType?(service: Service, options?: Record<string, any>): Promise<string>;
}

@@ -5,2 +5,3 @@ export interface Service {

id: string;
serviceUiType?: string;
getRelativeUrl(): string;

@@ -12,4 +13,5 @@ }

id: string;
serviceUiType?: string;
private readonly protocol;
constructor(name: string, url: string, id: string, protocol?: string);
constructor(name: string, url: string, id: string, protocol?: string, serviceUiType?: string);
getRelativeUrl(): string;

@@ -16,0 +18,0 @@ getProtocol(): string;

@@ -6,3 +6,3 @@ "use strict";

class ODataService {
constructor(name, url, id, protocol) {
constructor(name, url, id, protocol, serviceUiType) {
this.name = name;

@@ -12,5 +12,12 @@ this.url = url;

this.protocol = protocol ? protocol : "odatav2";
this.serviceUiType = serviceUiType;
}
getRelativeUrl() {
return this.getRelativePath(this.url);
try {
const relativeUrl = this.getRelativePath(this.url);
return relativeUrl;
}
catch (e) {
return this.url;
}
}

@@ -17,0 +24,0 @@ getProtocol() {

@@ -25,1 +25,4 @@ import { ProviderSystem } from "./providerSystem";

}
export interface ServiceConnectivityDataSapSystems extends ServiceConnectivityData {
serviceUiType?: string;
}

@@ -12,2 +12,3 @@ import { Service } from "./service";

retrieveDestinations?: (filter?: Filter) => Promise<ProviderSystem[]>;
retrieveServiceUiType?(systemName: string, service: Service, credentials?: Authentication): Promise<string>;
}
{
"name": "@sap/service-provider-apis",
"version": "2.0.1",
"version": "2.1.2",
"main": "out/src/index.js",
"dependencies": {
"axios": "1.6.2",
"axios": "1.6.8",
"xml2js": "0.6.2",

@@ -14,26 +14,26 @@ "lodash": "4.17.21"

"devDependencies": {
"@istanbuljs/nyc-config-typescript": "0.1.3",
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@types/chai": "4.3.5",
"@types/chai-as-promised": "7.1.7",
"@types/lodash": "4.14.191",
"@types/mocha": "5.2.7",
"@types/node": "13.1.6",
"@types/sinon": "10.0.16",
"@types/xml2js": "0.4.11",
"@typescript-eslint/eslint-plugin": "6.9.1",
"@typescript-eslint/parser": "6.9.1",
"chai": "4.3.10",
"@types/lodash": "4.17.0",
"@types/mocha": "10.0.6",
"@types/node": "18.0.0",
"@types/sinon": "17.0.3",
"@types/xml2js": "0.4.14",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"chai": "4.4.1",
"chai-as-promised": "7.1.1",
"eslint": "8.53.0",
"eslint": "8.56.0",
"eslint-config-prettier": "6.15.0",
"eslint-plugin-eslint-comments": "3.2.0",
"eslint-plugin-prettier": "5.0.1",
"husky": "1.3.1",
"lint-staged": "8.2.1",
"mocha": "6.2.3",
"eslint-plugin-prettier": "5.1.3",
"husky": "9.0.11",
"lint-staged": "15.2.2",
"mocha": "10.4.0",
"nyc": "15.1.0",
"prettier": "3.0.3",
"prettier": "3.2.5",
"sinon": "17.0.1",
"ts-node": "10.9.1",
"typescript": "5.2.2"
"ts-node": "10.9.2",
"typescript": "5.4.5"
},

@@ -44,3 +44,3 @@ "scripts": {

"pretest": "npm run compile",
"test": "nyc mocha -p tsconfig.json --opts ./mocha.opts",
"test": "nyc mocha --config ./.mocharc.json",
"format:fix": "prettier --write --ignore-path .gitignore \"**/*.@(ts|js|json|md)\"",

@@ -47,0 +47,0 @@ "format:validate": "prettier --check --ignore-path .gitignore \"**/*.@(ts|js|json|md)\"",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc