@logto/express 2.3.0 → 2.3.2

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/README.md CHANGED
@@ -3,7 +3,9 @@
3
3
  [![Build Status](https://github.com/logto-io/js/actions/workflows/main.yml/badge.svg)](https://github.com/logto-io/js/actions/workflows/main.yml)
4
4
  [![Codecov](https://img.shields.io/codecov/c/github/logto-io/js)](https://app.codecov.io/gh/logto-io/js?branch=master)
5
5
 
6
- The Logto Express SDK written in TypeScript. Check out our [integration guide](https://docs.logto.io/docs/recipes/integrate-logto/express) or [docs](https://docs.logto.io/sdk/JavaScript/express/) for more information.
6
+ The Logto Express SDK written in TypeScript.
7
+
8
+ Check out our [docs](https://docs.logto.io/sdk/express) for more information.
7
9
 
8
10
  ## Installation
9
11
 
@@ -25,18 +27,8 @@ yarn add @logto/express
25
27
  pnpm add @logto/express
26
28
  ```
27
29
 
28
- ## Get sample
29
-
30
- A sample project can be found at [Express Sample](https://github.com/logto-io/js/tree/master/packages/express-sample)
31
-
32
- Check out the source code and try it with ease.
33
-
34
- ```
35
- pnpm i && pnpm start
36
- ```
37
-
38
30
  ## Resources
39
31
 
40
32
  [![Website](https://img.shields.io/badge/website-logto.io-8262F8.svg)](https://logto.io/)
41
- [![Docs](https://img.shields.io/badge/docs-logto.io-green.svg)](https://docs.logto.io/sdk/JavaScript/express/)
33
+ [![Docs](https://img.shields.io/badge/docs-logto.io-green.svg)](https://docs.logto.io/)
42
34
  [![Discord](https://img.shields.io/discord/965845662535147551?logo=discord&logoColor=ffffff&color=7389D8&cacheSeconds=600)](https://discord.gg/UEPaF3j5e6)
package/lib/storage.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" />
1
2
  import type { IncomingMessage } from 'node:http';
2
3
  import type { Storage, StorageKey } from '@logto/node';
3
4
  export default class ExpressStorage implements Storage<StorageKey> {
@@ -11,5 +11,5 @@ type TestMiddlewareParameters = {
11
11
  }) => Promise<void>;
12
12
  };
13
13
  export declare const testMiddleware: ({ middleware, url, test }: TestMiddlewareParameters) => Promise<void>;
14
- export declare const testRouter: (router: Router) => request.SuperTest<request.Test>;
14
+ export declare const testRouter: (router: Router) => import("supertest/lib/agent.js")<request.SuperTestStatic.Test>;
15
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logto/express",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
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.3.0"
24
+ "@logto/node": "^2.4.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@silverhand/eslint-config": "^5.0.0",
@@ -33,7 +33,7 @@
33
33
  "@types/express": "^4.17.13",
34
34
  "@types/express-session": "^1.17.5",
35
35
  "@types/jest": "^29.5.0",
36
- "@types/supertest": "^2.0.12",
36
+ "@types/supertest": "^6.0.0",
37
37
  "cookie-parser": "^1.4.6",
38
38
  "eslint": "^8.44.0",
39
39
  "express": "^4.18.1",
@@ -44,7 +44,7 @@
44
44
  "lint-staged": "^15.0.0",
45
45
  "prettier": "^3.0.0",
46
46
  "supertest": "^6.3.3",
47
- "typescript": "^5.0.0"
47
+ "typescript": "^5.3.3"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "express": ">=4"