@logto/express 2.1.1 → 2.2.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.
package/lib/index.cjs CHANGED
@@ -81,6 +81,22 @@ Object.defineProperty(exports, 'LogtoRequestError', {
81
81
  enumerable: true,
82
82
  get: function () { return NodeClient.LogtoRequestError; }
83
83
  });
84
+ Object.defineProperty(exports, 'OidcError', {
85
+ enumerable: true,
86
+ get: function () { return NodeClient.OidcError; }
87
+ });
88
+ Object.defineProperty(exports, 'PersistKey', {
89
+ enumerable: true,
90
+ get: function () { return NodeClient.PersistKey; }
91
+ });
92
+ Object.defineProperty(exports, 'Prompt', {
93
+ enumerable: true,
94
+ get: function () { return NodeClient.Prompt; }
95
+ });
96
+ Object.defineProperty(exports, 'ReservedResource', {
97
+ enumerable: true,
98
+ get: function () { return NodeClient.ReservedResource; }
99
+ });
84
100
  Object.defineProperty(exports, 'ReservedScope', {
85
101
  enumerable: true,
86
102
  get: function () { return NodeClient.ReservedScope; }
@@ -89,5 +105,17 @@ Object.defineProperty(exports, 'UserScope', {
89
105
  enumerable: true,
90
106
  get: function () { return NodeClient.UserScope; }
91
107
  });
108
+ Object.defineProperty(exports, 'buildOrganizationUrn', {
109
+ enumerable: true,
110
+ get: function () { return NodeClient.buildOrganizationUrn; }
111
+ });
112
+ Object.defineProperty(exports, 'getOrganizationIdFromUrn', {
113
+ enumerable: true,
114
+ get: function () { return NodeClient.getOrganizationIdFromUrn; }
115
+ });
116
+ Object.defineProperty(exports, 'organizationUrnPrefix', {
117
+ enumerable: true,
118
+ get: function () { return NodeClient.organizationUrnPrefix; }
119
+ });
92
120
  exports.handleAuthRoutes = handleAuthRoutes;
93
121
  exports.withLogto = withLogto;
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { Request, Response, NextFunction } from 'express';
2
2
  import { Router } from 'express';
3
3
  import type { LogtoExpressConfig } from './types.js';
4
- export { ReservedScope, UserScope, LogtoError, LogtoClientError, LogtoRequestError, } from '@logto/node';
4
+ export { LogtoError, LogtoRequestError, LogtoClientError, OidcError, Prompt, ReservedScope, ReservedResource, UserScope, organizationUrnPrefix, buildOrganizationUrn, getOrganizationIdFromUrn, PersistKey, } from '@logto/node';
5
5
  export type { LogtoContext, InteractionMode, LogtoErrorCode } from '@logto/node';
6
6
  export type { LogtoExpressConfig } from './types.js';
7
7
  export type Middleware = (request: Request, response: Response, next: NextFunction) => Promise<void>;
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import NodeClient from '@logto/node';
2
- export { LogtoClientError, LogtoError, LogtoRequestError, ReservedScope, UserScope } from '@logto/node';
2
+ export { LogtoClientError, LogtoError, LogtoRequestError, OidcError, PersistKey, Prompt, ReservedResource, ReservedScope, UserScope, buildOrganizationUrn, getOrganizationIdFromUrn, organizationUrnPrefix } from '@logto/node';
3
3
  import { Router } from 'express';
4
4
  import { LogtoExpressError } from './errors.js';
5
5
  import ExpressStorage from './storage.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/express",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "main": "./lib/index.cjs",
6
6
  "module": "./lib/index.js",
@@ -21,7 +21,7 @@
21
21
  "directory": "packages/express"
22
22
  },
23
23
  "dependencies": {
24
- "@logto/node": "^2.1.2"
24
+ "@logto/node": "^2.2.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@silverhand/eslint-config": "^4.0.1",
@@ -41,7 +41,7 @@
41
41
  "jest": "^29.5.0",
42
42
  "jest-location-mock": "^2.0.0",
43
43
  "jest-matcher-specific-error": "^1.0.0",
44
- "lint-staged": "^14.0.0",
44
+ "lint-staged": "^15.0.0",
45
45
  "prettier": "^3.0.0",
46
46
  "supertest": "^6.3.3",
47
47
  "typescript": "^5.0.0"