@sap-ux/axios-extension
Advanced tools
Comparing version 1.16.6 to 1.16.7
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { Service } from '../base/service-provider'; | ||
@@ -120,5 +119,6 @@ import type { AxiosResponse } from 'axios'; | ||
* @param appDescriptorVariant zip file containing an app descriptor variant | ||
* @param workspacePath value for workspacePath URL parameter | ||
* @returns a promise with an object containing merged app descriptors with their id as keys. | ||
*/ | ||
mergeAppDescriptorVariant(appDescriptorVariant: Buffer): Promise<{ | ||
mergeAppDescriptorVariant(appDescriptorVariant: Buffer, workspacePath?: string): Promise<{ | ||
[key: string]: MergedAppDescriptor; | ||
@@ -125,0 +125,0 @@ }>; |
@@ -65,7 +65,15 @@ "use strict"; | ||
* @param appDescriptorVariant zip file containing an app descriptor variant | ||
* @param workspacePath value for workspacePath URL parameter | ||
* @returns a promise with an object containing merged app descriptors with their id as keys. | ||
*/ | ||
async mergeAppDescriptorVariant(appDescriptorVariant) { | ||
async mergeAppDescriptorVariant(appDescriptorVariant, workspacePath) { | ||
const path = '/appdescr_variant_preview/'; | ||
const params = new URLSearchParams(this.defaults?.params); | ||
if (workspacePath) { | ||
params.append('workspacePath', workspacePath); | ||
} | ||
try { | ||
const response = await this.put('/appdescr_variant_preview/', appDescriptorVariant, { | ||
const response = await this.put(path, appDescriptorVariant, { | ||
paramsSerializer: (params) => decodeURIComponent(params.toString()), | ||
params, | ||
headers: { | ||
@@ -72,0 +80,0 @@ 'Content-Type': 'application/zip' |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getErrorMessageFromString = exports.logError = exports.prettyPrintTimeInMs = exports.prettyPrintError = exports.prettyPrintMessage = void 0; | ||
exports.prettyPrintTimeInMs = void 0; | ||
exports.prettyPrintMessage = prettyPrintMessage; | ||
exports.prettyPrintError = prettyPrintError; | ||
exports.logError = logError; | ||
exports.getErrorMessageFromString = getErrorMessageFromString; | ||
const url_1 = require("url"); | ||
@@ -55,3 +59,2 @@ const axios_1 = require("axios"); | ||
} | ||
exports.prettyPrintMessage = prettyPrintMessage; | ||
/** | ||
@@ -105,3 +108,2 @@ * @param root0 root0 | ||
} | ||
exports.prettyPrintError = prettyPrintError; | ||
/** | ||
@@ -147,3 +149,2 @@ * Print a user friendly time string. | ||
} | ||
exports.logError = logError; | ||
/** | ||
@@ -170,3 +171,2 @@ * Get ErrorMessage object from response contain an error as a string. | ||
} | ||
exports.getErrorMessageFromString = getErrorMessageFromString; | ||
//# sourceMappingURL=message.js.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { type AxiosResponse, type AxiosRequestConfig } from 'axios'; | ||
@@ -3,0 +2,0 @@ import { ODataService } from '../base/odata-service'; |
@@ -6,3 +6,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.attachConnectionHandler = exports.Cookies = exports.defaultTimeout = exports.CSRF = void 0; | ||
exports.Cookies = exports.defaultTimeout = exports.CSRF = void 0; | ||
exports.attachConnectionHandler = attachConnectionHandler; | ||
const axios_1 = require("axios"); | ||
@@ -185,3 +186,2 @@ const detect_content_type_1 = __importDefault(require("detect-content-type")); | ||
} | ||
exports.attachConnectionHandler = attachConnectionHandler; | ||
//# sourceMappingURL=connection.js.map |
@@ -17,3 +17,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getReentranceTicketAuthInterceptor = exports.attachReentranceTicketAuthInterceptor = exports.attachUaaAuthInterceptor = exports.attachBasicAuthInterceptor = exports.Uaa = void 0; | ||
exports.Uaa = void 0; | ||
exports.attachBasicAuthInterceptor = attachBasicAuthInterceptor; | ||
exports.attachUaaAuthInterceptor = attachUaaAuthInterceptor; | ||
exports.attachReentranceTicketAuthInterceptor = attachReentranceTicketAuthInterceptor; | ||
exports.getReentranceTicketAuthInterceptor = getReentranceTicketAuthInterceptor; | ||
const axios_1 = require("axios"); | ||
@@ -35,3 +39,2 @@ const reentrance_ticket_1 = require("./reentrance-ticket"); | ||
} | ||
exports.attachBasicAuthInterceptor = attachBasicAuthInterceptor; | ||
/** | ||
@@ -64,3 +67,2 @@ * @param provider Abap Service Provider | ||
} | ||
exports.attachUaaAuthInterceptor = attachUaaAuthInterceptor; | ||
/** | ||
@@ -79,3 +81,2 @@ * Get the reentrace ticket from the backend and add it to the header. | ||
} | ||
exports.attachReentranceTicketAuthInterceptor = attachReentranceTicketAuthInterceptor; | ||
/** | ||
@@ -108,3 +109,2 @@ * Get the interceptor that fetches and uses reentrance tickets from the backend. | ||
} | ||
exports.getReentranceTicketAuthInterceptor = getReentranceTicketAuthInterceptor; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getReentranceTicket = void 0; | ||
exports.getReentranceTicket = getReentranceTicket; | ||
const open = require("open"); | ||
@@ -34,3 +34,2 @@ const connection_1 = require("../connection"); | ||
} | ||
exports.getReentranceTicket = getReentranceTicket; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { Logger } from '@sap-ux/logger'; | ||
@@ -3,0 +2,0 @@ import http from 'http'; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.setupRedirectHandling = void 0; | ||
exports.setupRedirectHandling = setupRedirectHandling; | ||
const http_1 = __importDefault(require("http")); | ||
@@ -60,3 +60,2 @@ const error_1 = require("../error"); | ||
} | ||
exports.setupRedirectHandling = setupRedirectHandling; | ||
//# sourceMappingURL=redirect.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ODataRequestError = exports.isAxiosError = void 0; | ||
exports.ODataRequestError = void 0; | ||
exports.isAxiosError = isAxiosError; | ||
/** | ||
@@ -13,3 +14,2 @@ * Type guard to narrow an unknown exception to the AxiosError type if it is compatible. | ||
} | ||
exports.isAxiosError = isAxiosError; | ||
/** | ||
@@ -16,0 +16,0 @@ * Error object that is to be thrown if an OData service responds with an error |
@@ -6,3 +6,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createServiceForUrl = exports.createForDestination = exports.createForAbapOnCloud = exports.AbapCloudEnvironment = exports.createForAbap = exports.create = void 0; | ||
exports.AbapCloudEnvironment = void 0; | ||
exports.create = create; | ||
exports.createForAbap = createForAbap; | ||
exports.createForAbapOnCloud = createForAbapOnCloud; | ||
exports.createForDestination = createForDestination; | ||
exports.createServiceForUrl = createServiceForUrl; | ||
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep")); | ||
@@ -77,3 +82,2 @@ const btp_utils_1 = require("@sap-ux/btp-utils"); | ||
} | ||
exports.create = create; | ||
/** | ||
@@ -88,3 +92,2 @@ * Create an instance of an ABAP service provider. | ||
} | ||
exports.createForAbap = createForAbap; | ||
/** Supported ABAP environments on the cloud */ | ||
@@ -135,3 +138,2 @@ var AbapCloudEnvironment; | ||
} | ||
exports.createForAbapOnCloud = createForAbapOnCloud; | ||
/** | ||
@@ -175,3 +177,2 @@ * Create an instance of a service provider for the given destination. | ||
} | ||
exports.createForDestination = createForDestination; | ||
/** | ||
@@ -195,3 +196,2 @@ * Create an instance of a basic service provider and then generate an extension for a service based on the given url. | ||
} | ||
exports.createServiceForUrl = createServiceForUrl; | ||
//# sourceMappingURL=factory.js.map |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.16.6", | ||
"version": "1.16.7", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"supertest": "6.3.3", | ||
"@sap-ux/project-access": "1.27.1" | ||
"@sap-ux/project-access": "1.28.2" | ||
}, | ||
@@ -35,0 +35,0 @@ "files": [ |
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
6286
259170
42