@nocobase/test 1.3.44-beta → 1.4.0-alpha.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/es/index.mjs +2 -1
- package/lib/server/mock-server.js +2 -1
- package/package.json +3 -3
package/es/index.mjs
CHANGED
|
@@ -52,7 +52,8 @@ class MockServer extends Application {
|
|
|
52
52
|
return proxy.auth(
|
|
53
53
|
jwt.sign(
|
|
54
54
|
{
|
|
55
|
-
userId: typeof userOrId === "number" ? userOrId : userOrId == null ? void 0 : userOrId.id
|
|
55
|
+
userId: typeof userOrId === "number" ? userOrId : userOrId == null ? void 0 : userOrId.id,
|
|
56
|
+
temp: true
|
|
56
57
|
},
|
|
57
58
|
process.env.APP_KEY,
|
|
58
59
|
{
|
|
@@ -90,7 +90,8 @@ const _MockServer = class _MockServer extends import_server.Application {
|
|
|
90
90
|
return proxy.auth(
|
|
91
91
|
import_jsonwebtoken.default.sign(
|
|
92
92
|
{
|
|
93
|
-
userId: typeof userOrId === "number" ? userOrId : userOrId == null ? void 0 : userOrId.id
|
|
93
|
+
userId: typeof userOrId === "number" ? userOrId : userOrId == null ? void 0 : userOrId.id,
|
|
94
|
+
temp: true
|
|
94
95
|
},
|
|
95
96
|
process.env.APP_KEY,
|
|
96
97
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/test",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-alpha.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "./src/index.ts",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@faker-js/faker": "8.1.0",
|
|
54
|
-
"@nocobase/server": "1.
|
|
54
|
+
"@nocobase/server": "1.4.0-alpha.0",
|
|
55
55
|
"@playwright/test": "^1.45.3",
|
|
56
56
|
"@testing-library/jest-dom": "^6.4.2",
|
|
57
57
|
"@testing-library/react": "^14.0.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"vitest-dom": "^0.1.1",
|
|
77
77
|
"ws": "^8.13.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "8ffa7b54bbaf720c0c9857da4b19a99110dffc4b"
|
|
80
80
|
}
|