Skip to content

Commit

Permalink
fix: unify after-response script property name for folders (#7460)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihexxa authored May 29, 2024
1 parent 09d7ca9 commit 55440c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/insomnia-smoke-test/fixtures/oauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resources:
environmentPropertyOrder: null
metaSortKey: -1715935256495
preRequestScript: ""
postRequestScript: ""
afterResponseScript: ""
authentication: {}
_type: request_group
- _id: fld_e45987966c224b63b68b09b34687209c
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/insomnia/src/models/request-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface BaseRequestGroup {
environmentPropertyOrder: Record<string, any> | null;
metaSortKey: number;
preRequestScript: string;
postRequestScript: string;
afterResponseScript: string;
authentication?: RequestAuthentication | {};
headers?: RequestHeader[];
}
Expand All @@ -37,7 +37,7 @@ export function init(): BaseRequestGroup {
environmentPropertyOrder: null,
metaSortKey: -1 * Date.now(),
preRequestScript: '',
postRequestScript: '',
afterResponseScript: '',
authentication: {},
headers: [],
};
Expand Down

0 comments on commit 55440c7

Please sign in to comment.