Skip to content

Commit 43f890f

Browse files
committed
fix(node19+): fix compatibility with Node.js >= 19 to request flow specs from URL
1 parent 032c418 commit 43f890f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,8 @@
9797
"functions": 50,
9898
"lines": 85,
9999
"statements": 85
100+
},
101+
"testen": {
102+
"node": ">=13 && <23"
100103
}
101104
}

src/engine/flow-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class FlowManager {
9393

9494
return new Promise<ValueMap>((resolveFlow, reject) => {
9595
client! // eslint-disable-line @typescript-eslint/no-non-null-assertion
96-
.get(flowSpecUrl, (res: IncomingMessage) => {
96+
.get(flowSpecUrl, { agent: false }, (res: IncomingMessage) => {
9797
const { statusCode } = res;
9898
const contentType = res.headers['content-type'] ?? 'application/json';
9999

0 commit comments

Comments
 (0)