@commercetools-backend/express 21.23.6 → 21.23.7

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,5 +1,5 @@
1
1
  import type { TSessionMiddlewareOptions, TSession, TBaseRequest } from './types';
2
- declare type TDecodedJWT = {
2
+ type TDecodedJWT = {
3
3
  sub: string;
4
4
  iss: string;
5
5
  [property: string]: string | string[];
@@ -1,15 +1,15 @@
1
1
  import type { ExpressJwtOptions } from 'jwks-rsa';
2
2
  import { CLOUD_IDENTIFIERS } from './constants';
3
- export declare type TAudience = string;
4
- export declare type TIssuer = string;
5
- export declare type TCloudIdentifier = typeof CLOUD_IDENTIFIERS[keyof typeof CLOUD_IDENTIFIERS];
6
- export declare type TAudiencePolicy = 'forward-url-full-path' | 'forward-url-origin';
3
+ export type TAudience = string;
4
+ export type TIssuer = string;
5
+ export type TCloudIdentifier = (typeof CLOUD_IDENTIFIERS)[keyof typeof CLOUD_IDENTIFIERS];
6
+ export type TAudiencePolicy = 'forward-url-full-path' | 'forward-url-origin';
7
7
  export interface TBaseRequest {
8
8
  headers: Record<string, string | string[] | undefined>;
9
9
  url?: string;
10
10
  originalUrl?: string;
11
11
  }
12
- export declare type TSessionMiddlewareOptions<Request extends TBaseRequest> = {
12
+ export type TSessionMiddlewareOptions<Request extends TBaseRequest> = {
13
13
  /**
14
14
  * The public-facing URL used to connect to the server / serverless function.
15
15
  * The value should only contain the origin URL (protocol, hostname, port),
@@ -45,7 +45,7 @@ export declare type TSessionMiddlewareOptions<Request extends TBaseRequest> = {
45
45
  */
46
46
  getRequestUrl?: (request: Request) => string;
47
47
  };
48
- export declare type TSession = {
48
+ export type TSession = {
49
49
  userId: string;
50
50
  projectKey: string;
51
51
  userPermissions?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-backend/express",
3
- "version": "21.23.6",
3
+ "version": "21.23.7",
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": {
@@ -18,11 +18,11 @@
18
18
  "module": "dist/commercetools-backend-express.esm.js",
19
19
  "files": ["dist", "package.json", "LICENSE", "README.md"],
20
20
  "dependencies": {
21
- "@babel/runtime": "^7.19.0",
22
- "@babel/runtime-corejs3": "^7.19.0",
23
- "@types/node": "^16.11.58",
21
+ "@babel/runtime": "^7.20.13",
22
+ "@babel/runtime-corejs3": "^7.20.13",
23
+ "@types/node": "^16.18.12",
24
24
  "express": "4.18.2",
25
- "express-jwt": "8.3.0",
25
+ "express-jwt": "8.4.1",
26
26
  "jwks-rsa": "2.1.5"
27
27
  },
28
28
  "devDependencies": {