Skip to content

Commit 64d9985

Browse files
committed
chore: enable esModuleInterop
- Enable esModuleInterop in tsconfig.release.json for better CJS/ESM interop. - Update unit tests and source code to use default imports for CJS modules (fs, nock, jsonwebtoken, express, etc.) to align with new compiler settings.
1 parent 888da3d commit 64d9985

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

mocha/setup.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ import chaiAsPromised from "chai-as-promised";
33
import nock from "nock";
44

55
chai.use(chaiAsPromised);
6-
<<<<<<< HEAD
76
nock.disableNetConnect();
8-
=======
9-
nock.disableNetConnect();
10-
>>>>>>> f054321 (chore: enable esModuleInterop)

src/v2/providers/https.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ import * as options from "../options";
4848
import { withInit } from "../../common/onInit";
4949
import * as logger from "../../logger";
5050

51-
export { HttpsError };
52-
export type { Request, CallableRequest, CallableResponse, FunctionsErrorCode };
51+
export { Request, CallableRequest, CallableResponse, FunctionsErrorCode, HttpsError };
5352

5453
/**
5554
* Options that can be set on an onRequest HTTPS function.

0 commit comments

Comments
 (0)