File tree Expand file tree Collapse file tree 11 files changed +509
-427
lines changed Expand file tree Collapse file tree 11 files changed +509
-427
lines changed Original file line number Diff line number Diff line change 11lib /
2- socket.io-websocket-only.cjs
2+ socket.io-websocket-only.js
33doc /resource
44coverage /
55build /
Original file line number Diff line number Diff line change 2323 " dist"
2424 ],
2525 "devDependencies" : {
26- "@rollup/plugin-commonjs" : " ^24 .0.1 " ,
26+ "@rollup/plugin-commonjs" : " ^25 .0.0 " ,
2727 "@types/uuid" : " ^9.0.0" ,
2828 "cross-fetch" : " ^3.1.5" ,
2929 "dayjs" : " ^1.11.7" ,
3333 "lint-staged" : " ^13.1.0" ,
3434 "msw" : " ^1.0.0" ,
3535 "prettier" : " ^2.8.3" ,
36- "typescript" : " ^4.9.5 " ,
37- "vite" : " ^4.1.1 " ,
38- "vite-plugin-dts" : " ^1.7.2 " ,
39- "vitest" : " ^0.28.4 "
36+ "typescript" : " ^5.0.4 " ,
37+ "vite" : " ^4.3.8 " ,
38+ "vite-plugin-dts" : " ^2.3.0 " ,
39+ "vitest" : " ^0.31.1 "
4040 },
4141 "repository" : {
4242 "type" : " git" ,
Original file line number Diff line number Diff line change 11// :copyright: Copyright (c) 2016 ftrack
22import { v4 as uuidV4 } from "uuid" ;
33import loglevel from "loglevel" ;
4- import io , { SocketIO } from "./socket.io-websocket-only.cjs " ;
5- import { Event } from "./event" ;
4+ import * as io from "./socket.io-websocket-only.js " ;
5+ import { Event } from "./event.js " ;
66import {
77 EventServerConnectionTimeoutError ,
88 EventServerReplyTimeoutError ,
99 EventServerPublishError ,
1010 NotUniqueError ,
11- } from "./error" ;
12- import { Data } from "./types" ;
11+ } from "./error.js " ;
12+ import { Data } from "./types.js " ;
1313
1414interface BaseActionData {
1515 selection : Array < {
@@ -132,7 +132,7 @@ export class EventHub {
132132 } ;
133133 private _unsentEvents : ConnectionCallback [ ] ;
134134 private _subscribers : Subscriber [ ] ;
135- private _socketIo : SocketIO | null ;
135+ private _socketIo : io . SocketIO | null ;
136136
137137 /**
138138 * Construct EventHub instance with API credentials.
Original file line number Diff line number Diff line change 11// :copyright: Copyright (c) 2016 ftrack
22
3- export * from "./event" ;
4- export * from "./event_hub" ;
5- export * from "./session" ;
6- export * from "./types" ;
3+ export * from "./event.js " ;
4+ export * from "./event_hub.js " ;
5+ export * from "./session.js " ;
6+ export * from "./types.js " ;
77
8- export * as error from "./error" ;
9- export * as operation from "./operation" ;
10- export * as projectSchema from "./project_schema" ;
8+ export * as error from "./error.js " ;
9+ export * as operation from "./operation.js " ;
10+ export * as projectSchema from "./project_schema.js " ;
1111
12- export { SERVER_LOCATION_ID } from "./constant" ;
12+ export { SERVER_LOCATION_ID } from "./constant.js " ;
Original file line number Diff line number Diff line change 11// :copyright: Copyright (c) 2016 ftrack
22
3- import * as operation from "./operation" ;
4- import { Session } from "./session" ;
5- import { Data , QueryResponse } from "./types" ;
3+ import * as operation from "./operation.js " ;
4+ import { Session } from "./session.js " ;
5+ import { Data , QueryResponse } from "./types.js " ;
66/**
77 * Project schema namespace
88 * @namespace project_schema
Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ import moment from "moment";
33import loglevel from "loglevel" ;
44import { v4 as uuidV4 } from "uuid" ;
55
6- import { EventHub } from "./event_hub" ;
7- import * as operation from "./operation" ;
6+ import { EventHub } from "./event_hub.js " ;
7+ import * as operation from "./operation.js " ;
88import {
99 ServerPermissionDeniedError ,
1010 ServerValidationError ,
1111 ServerError ,
1212 AbortError ,
1313 CreateComponentError ,
14- } from "./error" ;
15- import { SERVER_LOCATION_ID } from "./constant" ;
14+ } from "./error.js " ;
15+ import { SERVER_LOCATION_ID } from "./constant.js " ;
1616
17- import normalizeString from "./util/normalize_string" ;
17+ import normalizeString from "./util/normalize_string.js " ;
1818import type {
1919 ActionResponse ,
2020 CallOptions ,
@@ -35,8 +35,8 @@ import type {
3535 SearchResponse ,
3636 SessionOptions ,
3737 UpdateResponse ,
38- } from "./types" ;
39- import { convertToIsoString } from "./util/convert_to_iso_string" ;
38+ } from "./types.js " ;
39+ import { convertToIsoString } from "./util/convert_to_iso_string.js " ;
4040
4141const logger = loglevel . getLogger ( "ftrack_api" ) ;
4242
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "target" : " ESNext" ,
44 "useDefineForClassFields" : true ,
5- "module" : " ESNext " ,
5+ "module" : " NodeNext " ,
66 "lib" : [" ESNext" , " DOM" ],
7- "moduleResolution" : " Node" ,
87 "strict" : true ,
98 "resolveJsonModule" : true ,
109 "isolatedModules" : true ,
1716 "allowJs" : false
1817 },
1918 "include" : [" source" ],
20- "exclude" : [" source/socket.io-websocket-only.cjs " ]
19+ "exclude" : [" source/socket.io-websocket-only.js " ]
2120}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default defineConfig({
3030 loglevel : "log" ,
3131 } ,
3232 } ,
33- plugins : [ commonjs ( { include : "./source/socket.io-websocket-only.cjs " } ) ] ,
33+ plugins : [ commonjs ( { include : "./source/socket.io-websocket-only.js " } ) ] ,
3434 } ,
3535 } ,
3636 plugins : [ dts ( ) ] ,
You can’t perform that action at this time.
0 commit comments