File tree Expand file tree Collapse file tree 7 files changed +17
-13
lines changed Expand file tree Collapse file tree 7 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 36
36
- name : Set up Node.js
37
37
uses : actions/setup-node@v3
38
38
with :
39
- node-version : ' 18 '
39
+ node-version : ' 22 '
40
40
41
41
- name : Install dependencies
42
42
run : pnpm install
Original file line number Diff line number Diff line change 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 " ;
3
3
4
4
export type BrowserAsyncResponseManagerOpts = {
5
5
apiHost : string ;
Original file line number Diff line number Diff line change 4
4
// operations, like connecting accounts via Pipedream Connect. See the server/
5
5
// directory for the server client.
6
6
7
- import { BrowserAsyncResponseManager } from "./async.ts " ;
7
+ import { BrowserAsyncResponseManager } from "./async.js " ;
8
8
import {
9
9
AccountsRequestResponse ,
10
10
BaseClient ,
11
11
GetAccountOpts ,
12
12
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 " ;
15
15
16
16
/**
17
17
* Options for creating a browser-side client. This is used to configure the
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export class ServerAsyncResponseManager extends AsyncResponseManager {
26
26
// eslint-disable-next-line @typescript-eslint/no-empty-function
27
27
global . removeEventListener = ( ) => { } ;
28
28
if ( typeof adapters . WebSocket === "undefined" )
29
- adapters . WebSocket = WebSocket ;
29
+ adapters . WebSocket = WebSocket as unknown as typeof adapters . WebSocket ;
30
30
}
31
31
32
32
protected override async getOpts ( ) : Promise < AsyncResponseManagerOpts > {
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import type {
3
3
AsyncResponse ,
4
4
AsyncErrorResponse ,
5
5
AsyncResponseManager ,
6
- } from "./async.ts " ;
6
+ } from "./async.js " ;
7
7
import type {
8
8
V1Component ,
9
9
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 " ;
13
13
14
14
type RequestInit = globalThis . RequestInit ;
15
15
Original file line number Diff line number Diff line change 11
11
"moduleResolution" : " node" ,
12
12
"skipLibCheck" : true ,
13
13
"types" : [],
14
- "allowImportingTsExtensions" : true
14
+ "paths" : {
15
+ "*.js" : [" *.ts" ]
16
+ }
15
17
},
16
18
"include" : [
17
19
" src/browser/**/*"
Original file line number Diff line number Diff line change 20
20
" jest" ,
21
21
" jest-fetch-mock"
22
22
],
23
- "allowImportingTsExtensions" : true
23
+ "paths" : {
24
+ "*.js" : [" *.ts" ]
25
+ }
24
26
},
25
27
"include" : [
26
28
" src/server/**/*"
You can’t perform that action at this time.
0 commit comments