Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 10.2.1-beta.1 #8230

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/insomnia-inso/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "insomnia-inso",
"version": "10.2.0",
"version": "10.2.1-beta.1",
"homepage": "https://insomnia.rest",
"description": "A CLI for Insomnia - The Collaborative API Design Tool",
"author": "Kong <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "insomnia-sdk",
"version": "10.2.0",
"version": "10.2.1-beta.1",
"description": "",
"main": "src/objects/index.ts",
"types": "src/objects/index.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/insomnia-smoke-test/fixtures/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ resources:
settingRebuildPath: true
settingFollowRedirects: global
_type: request
preRequestScript: |-
console.log('executing pre-request script');
- _id: fld_01de564274824ecaad272330339ea6b2
parentId: wrk_0702a57d75d44255a8cecd2c5fa87809
modified: 1668533312225
Expand Down Expand Up @@ -101,6 +103,8 @@ resources:
settingRebuildPath: true
settingFollowRedirects: global
_type: request
preRequestScript: |-
console.log('executing pre-request script');
- _id: req_579daeabc7534a52b242bdaaaf6ca4dc
parentId: wrk_0702a57d75d44255a8cecd2c5fa87809
modified: 1666867670885
Expand All @@ -122,6 +126,8 @@ resources:
settingRebuildPath: true
settingFollowRedirects: global
_type: request
preRequestScript: |-
console.log('executing pre-request script');
- _id: env_42a94488fcd6106a75fb3ededd6bb4fbd267aa95
parentId: wrk_0702a57d75d44255a8cecd2c5fa87809
modified: 1666867924188
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-smoke-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/kong/insomnia/issues"
},
"version": "10.2.0",
"version": "10.2.1-beta.1",
"scripts": {
"test:dev": "xvfb-maybe cross-env BUNDLE=dev playwright test",
"test:build": "xvfb-maybe cross-env BUNDLE=build playwright test",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "insomnia-testing",
"license": "Apache-2.0",
"version": "10.2.0",
"version": "10.2.1-beta.1",
"author": "Kong <[email protected]>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/insomnia/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "insomnia",
"version": "10.2.0",
"version": "10.2.1-beta.1",
"productName": "Insomnia",
"private": true,
"description": "The Collaborative API Design Tool",
Expand Down
2 changes: 2 additions & 0 deletions packages/insomnia/src/common/send-request.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import fs from 'fs/promises';
import path from 'path';

import { type BaseModel, types as modelTypes } from '../models';
Expand Down Expand Up @@ -122,6 +123,7 @@ export async function getSendRequestCallbackMemDb(environmentId: string, memDB:
return async function sendRequest(requestId: string, iteration?: number) {
const requestData = await fetchInsoRequestData(requestId, environmentId);
const getCurrentRowOfIterationData = wrapAroundIterationOverIterationData(iterationData, iteration);
await fs.mkdir(path.dirname(requestData.timelinePath), { recursive: true });

const mutatedContext = await tryToExecutePreRequestScript(requestData, transientVariables, getCurrentRowOfIterationData, iteration, iterationCount);
if (mutatedContext === null) {
Expand Down
Loading