@commercetools-backend/express 24.7.2 → 24.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commercetools-backend-express.cjs.d.ts +2 -2
- package/dist/declarations/src/auth.d.ts +1 -1
- package/dist/declarations/src/index.d.ts +3 -3
- package/dist/declarations/src/middlewares/session-middleware.d.ts +1 -1
- package/dist/declarations/src/types.d.ts +1 -1
- package/package.json +3 -3
- package/dist/commercetools-backend-express.cjs.d.ts.map +0 -1
- package/dist/declarations/src/utils.d.ts +0 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./declarations/src/index";
|
|
2
|
-
//# sourceMappingURL=
|
|
1
|
+
export * from "./declarations/src/index.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1iYWNrZW5kLWV4cHJlc3MuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CLOUD_IDENTIFIERS, MC_API_URLS } from
|
|
2
|
-
export { createSessionAuthVerifier } from
|
|
3
|
-
export { default as createSessionMiddleware } from
|
|
1
|
+
export { CLOUD_IDENTIFIERS, MC_API_URLS } from "./constants.js";
|
|
2
|
+
export { createSessionAuthVerifier } from "./auth.js";
|
|
3
|
+
export { default as createSessionMiddleware } from "./middlewares/session-middleware.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Response, NextFunction } from 'express';
|
|
2
|
-
import type { TBaseRequest, TSessionMiddlewareOptions } from
|
|
2
|
+
import type { TBaseRequest, TSessionMiddlewareOptions } from "../types.js";
|
|
3
3
|
declare function createSessionMiddleware<Request extends TBaseRequest>(options: TSessionMiddlewareOptions<Request>): (request: Request, _response: Response, next: NextFunction) => Promise<void>;
|
|
4
4
|
export default createSessionMiddleware;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-backend/express",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.8.1",
|
|
4
4
|
"description": "Zero-config HTTP server as Express.js to facilitate development",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tsconfig/node22": "^22.0.0",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
42
|
+
"msw": "^1.3.5",
|
|
43
|
+
"typescript": "^5.2.2"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": "18.x || 20.x || >=22.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commercetools-backend-express.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
declare const getHeaderByCaseInsensitiveKey: (headers: Record<string, string | string[] | undefined>, headerKey: string) => string | undefined;
|
|
2
|
-
declare const getFirstHeaderValueOrThrow: (headers: Record<string, string | string[] | undefined>, headerKey: string, errorMessage: string) => string;
|
|
3
|
-
export { getHeaderByCaseInsensitiveKey, getFirstHeaderValueOrThrow };
|