From 55440c77ae6e75f6fbe3ad96de4a865e60cb6faf Mon Sep 17 00:00:00 2001 From: Hexxa Date: Wed, 29 May 2024 10:28:17 +0800 Subject: [PATCH] fix: unify after-response script property name for folders (#7460) --- packages/insomnia-smoke-test/fixtures/oauth.yaml | 4 ++-- packages/insomnia/src/models/request-group.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/insomnia-smoke-test/fixtures/oauth.yaml b/packages/insomnia-smoke-test/fixtures/oauth.yaml index 9fb83c50f..2e0e85ccc 100644 --- a/packages/insomnia-smoke-test/fixtures/oauth.yaml +++ b/packages/insomnia-smoke-test/fixtures/oauth.yaml @@ -38,7 +38,7 @@ resources: environmentPropertyOrder: null metaSortKey: -1715935256495 preRequestScript: "" - postRequestScript: "" + afterResponseScript: "" authentication: {} _type: request_group - _id: fld_e45987966c224b63b68b09b34687209c @@ -51,7 +51,7 @@ resources: environmentPropertyOrder: null metaSortKey: -1715935030239 preRequestScript: "" - postRequestScript: "" + afterResponseScript: "" authentication: accessTokenUrl: "http://127.0.0.1:4010/oidc/token" authorizationUrl: "http://127.0.0.1:4010/oidc/auth" diff --git a/packages/insomnia/src/models/request-group.ts b/packages/insomnia/src/models/request-group.ts index add9f771d..cdcfeef46 100644 --- a/packages/insomnia/src/models/request-group.ts +++ b/packages/insomnia/src/models/request-group.ts @@ -18,7 +18,7 @@ interface BaseRequestGroup { environmentPropertyOrder: Record | null; metaSortKey: number; preRequestScript: string; - postRequestScript: string; + afterResponseScript: string; authentication?: RequestAuthentication | {}; headers?: RequestHeader[]; } @@ -37,7 +37,7 @@ export function init(): BaseRequestGroup { environmentPropertyOrder: null, metaSortKey: -1 * Date.now(), preRequestScript: '', - postRequestScript: '', + afterResponseScript: '', authentication: {}, headers: [], };