@commercetools-backend/express 24.7.2 → 24.8.0

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.
@@ -1,2 +1,2 @@
1
- export * from "./declarations/src/index";
2
- //# sourceMappingURL=commercetools-backend-express.cjs.d.ts.map
1
+ export * from "./declarations/src/index.js";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1iYWNrZW5kLWV4cHJlc3MuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
@@ -1,4 +1,4 @@
1
- import type { TSessionMiddlewareOptions, TSession, TBaseRequest } from './types';
1
+ import type { TSessionMiddlewareOptions, TSession, TBaseRequest } from "./types.js";
2
2
  export type TDecodedJWT = {
3
3
  sub: string;
4
4
  iss: string;
@@ -1,3 +1,3 @@
1
- export { CLOUD_IDENTIFIERS, MC_API_URLS } from './constants';
2
- export { createSessionAuthVerifier } from './auth';
3
- export { default as createSessionMiddleware } from './middlewares/session-middleware';
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 '../types';
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;
@@ -1,4 +1,4 @@
1
- import { CLOUD_IDENTIFIERS } from './constants';
1
+ import { CLOUD_IDENTIFIERS } from "./constants.js";
2
2
  export type TAudience = string;
3
3
  export type TIssuer = string;
4
4
  export type TCloudIdentifier = (typeof CLOUD_IDENTIFIERS)[keyof typeof CLOUD_IDENTIFIERS];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-backend/express",
3
- "version": "24.7.2",
3
+ "version": "24.8.0",
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
- "typescript": "^5.2.2",
43
- "msw": "0.49.3"
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 };