Skip to content

Commit

Permalink
fix: add patch for config loading
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <[email protected]>
  • Loading branch information
Mirko Mollik committed May 4, 2024
1 parent 1714f99 commit eccb98b
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 102 deletions.

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"@sphereon/ssi-types": "^0.22.0"
},
"patchedDependencies": {
"@sphereon/[email protected]": "patches/@[email protected]"
"@sphereon/[email protected]": "patches/@[email protected]",
"@sphereon/[email protected]": "patches/@[email protected]"
}
},
"devDependencies": {
Expand Down
40 changes: 40 additions & 0 deletions patches/@[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
diff --git a/dist/index.js b/dist/index.js
index d1f2d7555fe6503e4cbef92358f458f6f91a9da3..067d51132530d030f1d74c3bb19ff561c54d3c82 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -27,8 +27,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.jsonErrorHandler = exports.sendErrorResponse = void 0;
-const dotenv = __importStar(require("dotenv-flow"));
-dotenv.config();
+// const dotenv = __importStar(require("dotenv-flow"));
+// dotenv.config();
__exportStar(require("./entra-id-auth"), exports);
__exportStar(require("./static-bearer-auth"), exports);
__exportStar(require("./auth-utils"), exports);
diff --git a/src/index.ts b/src/index.ts
index 1f6bb2fdcae60d3f6408595a1d5757057c92a78d..0acae13058090c54e498b827c8fa221df5d9a97e 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,10 +1,10 @@
-import * as dotenv from 'dotenv-flow'
-dotenv.config()
-export * from './entra-id-auth'
-export * from './static-bearer-auth'
-export * from './auth-utils'
-export * from './express-builders'
-export * from './types'
-export { sendErrorResponse, jsonErrorHandler } from './express-utils'
-export * from './functions'
-export * from './openid-connect-rp'
+// import * as dotenv from 'dotenv-flow'
+// dotenv.config()
+export * from './entra-id-auth';
+export * from './static-bearer-auth';
+export * from './auth-utils';
+export * from './express-builders';
+export * from './types';
+export { sendErrorResponse, jsonErrorHandler } from './express-utils';
+export * from './functions';
+export * from './openid-connect-rp';
90 changes: 7 additions & 83 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eccb98b

Please sign in to comment.