Skip to content

Commit aa4ac1f

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 f054321 commit aa4ac1f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mocha/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import chaiAsPromised from "chai-as-promised";
33
import nock from "nock";
44

55
chai.use(chaiAsPromised);
6-
nock.disableNetConnect();
6+
nock.disableNetConnect();

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)