@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 +4 -12
- package/lib/storage.d.ts +1 -0
- package/lib/test-utils.d.ts +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
[](https://github.com/logto-io/js/actions/workflows/main.yml)
|
|
4
4
|
[](https://app.codecov.io/gh/logto-io/js?branch=master)
|
|
5
5
|
|
|
6
|
-
The Logto Express SDK written in TypeScript.
|
|
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
|
[](https://logto.io/)
|
|
41
|
-
[](https://docs.logto.io/
|
|
33
|
+
[](https://docs.logto.io/)
|
|
42
34
|
[](https://discord.gg/UEPaF3j5e6)
|
package/lib/storage.d.ts
CHANGED
package/lib/test-utils.d.ts
CHANGED
|
@@ -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) =>
|
|
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.
|
|
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.
|
|
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": "^
|
|
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.
|
|
47
|
+
"typescript": "^5.3.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"express": ">=4"
|