anymock-openapi
Advanced tools
Comparing version 1.2.1-alpha.1 to 1.2.1-alpha.2
@@ -8,3 +8,5 @@ import { IAnymockConfigUpdate } from 'anymock-include'; | ||
constructor(ctx: MockCtx); | ||
request<T extends object>(path: string, payload: IRequestOption<T>, options: IAnymockConfigUpdate): Promise<IAnymockResponse<any>>; | ||
request<T extends object>(path: string, payload: IRequestOption<T>, options: IAnymockConfigUpdate & { | ||
signatureIgnore?: string[]; | ||
}): Promise<IAnymockResponse<any>>; | ||
} |
@@ -12,4 +12,4 @@ "use strict"; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var finalConfig, projectToken, finalData, _a, accessId, accessSecret, signature; | ||
return tslib_1.__generator(this, function (_b) { | ||
var finalConfig, projectToken, finalData, _a, accessId, accessSecret, signature, _b, signatureIgnore; | ||
return tslib_1.__generator(this, function (_c) { | ||
finalConfig = tslib_1.__assign(tslib_1.__assign({}, this.ctx.anymockConfig), options); | ||
@@ -31,2 +31,3 @@ projectToken = finalConfig.projectToken; | ||
signature = (0, anymock_client_token_1.default)(accessSecret, finalData); | ||
_b = (options || {}).signatureIgnore, signatureIgnore = _b === void 0 ? [] : _b; | ||
// console.log('finalData:', finalData); | ||
@@ -41,2 +42,3 @@ // console.log('url:', `${finalConfig.host}/openapi${path}`); | ||
_signature: signature, | ||
_signatureignore: JSON.stringify(signatureIgnore), | ||
_from: finalConfig.fromClient, | ||
@@ -43,0 +45,0 @@ _bizId: finalConfig.bizId || '', |
{ | ||
"name": "anymock-openapi", | ||
"version": "1.2.1-alpha.1", | ||
"version": "1.2.1-alpha.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
61776
984
0