Skip to content

Commit e8e44f0

Browse files
committed
various fixes
1 parent 24473f9 commit e8e44f0

File tree

7 files changed

+17
-13
lines changed

7 files changed

+17
-13
lines changed

.github/workflows/pipedream-sdk-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Node.js
3737
uses: actions/setup-node@v3
3838
with:
39-
node-version: '18'
39+
node-version: '22'
4040

4141
- name: Install dependencies
4242
run: pnpm install

packages/sdk/src/browser/async.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { AsyncResponseManager } from "../shared/async.ts";
2-
import type { AsyncResponseManagerOpts } from "../shared/async.ts";
1+
import { AsyncResponseManager } from "../shared/async.js";
2+
import type { AsyncResponseManagerOpts } from "../shared/async.js";
33

44
export type BrowserAsyncResponseManagerOpts = {
55
apiHost: string;

packages/sdk/src/browser/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
// operations, like connecting accounts via Pipedream Connect. See the server/
55
// directory for the server client.
66

7-
import { BrowserAsyncResponseManager } from "./async.ts";
7+
import { BrowserAsyncResponseManager } from "./async.js";
88
import {
99
AccountsRequestResponse,
1010
BaseClient,
1111
GetAccountOpts,
1212
type ConnectTokenResponse,
13-
} from "../shared/index.ts";
14-
export type * from "../shared/index.ts";
13+
} from "../shared/index.js";
14+
export type * from "../shared/index.js";
1515

1616
/**
1717
* Options for creating a browser-side client. This is used to configure the

packages/sdk/src/server/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ServerAsyncResponseManager extends AsyncResponseManager {
2626
// eslint-disable-next-line @typescript-eslint/no-empty-function
2727
global.removeEventListener = () => {};
2828
if (typeof adapters.WebSocket === "undefined")
29-
adapters.WebSocket = WebSocket;
29+
adapters.WebSocket = WebSocket as unknown as typeof adapters.WebSocket;
3030
}
3131

3232
protected override async getOpts(): Promise<AsyncResponseManagerOpts> {

packages/sdk/src/shared/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import type {
33
AsyncResponse,
44
AsyncErrorResponse,
55
AsyncResponseManager,
6-
} from "./async.ts";
6+
} from "./async.js";
77
import type {
88
V1Component,
99
V1DeployedComponent,
10-
} from "./component.ts";
11-
export * from "./component.ts";
12-
import { version as sdkVersion } from "../version.ts";
10+
} from "./component.js";
11+
export * from "./component.js";
12+
import { version as sdkVersion } from "../version.js";
1313

1414
type RequestInit = globalThis.RequestInit;
1515

packages/sdk/tsconfig.browser.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"moduleResolution": "node",
1212
"skipLibCheck": true,
1313
"types": [],
14-
"allowImportingTsExtensions": true
14+
"paths": {
15+
"*.js": ["*.ts"]
16+
}
1517
},
1618
"include": [
1719
"src/browser/**/*"

packages/sdk/tsconfig.node.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"jest",
2121
"jest-fetch-mock"
2222
],
23-
"allowImportingTsExtensions": true
23+
"paths": {
24+
"*.js": ["*.ts"]
25+
}
2426
},
2527
"include": [
2628
"src/server/**/*"

0 commit comments

Comments
 (0)