node-ts-screeps-api 0.0.9 → 0.0.11
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/authInfoSample.ts +16 -1
- package/dist/authInfoSample.d.ts +2 -4
- package/dist/index.js.map +1 -1
- package/dist/src/rawApiType/roomObjects.d.ts +10 -3
- package/package.json +1 -4
- package/src/rawApi.ts +7 -3
- package/src/rawApiType/roomObjects.ts +13 -2
- package/test/unit/api.test.ts +31 -17
package/authInfoSample.ts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
// authInfo模板文件,在使用test的时候会用到
|
|
2
|
-
|
|
2
|
+
import { ApiConfig } from "./src/type";
|
|
3
|
+
|
|
4
|
+
const userData = {
|
|
3
5
|
email: "notMyEmail@abc.com",
|
|
4
6
|
password: "notMyPassword"
|
|
5
7
|
};
|
|
8
|
+
export const apiConfig: ApiConfig<"signinByPassword"> = {
|
|
9
|
+
authInfo: {
|
|
10
|
+
type: "signinByPassword",
|
|
11
|
+
email: userData.email,
|
|
12
|
+
password: userData.password
|
|
13
|
+
},
|
|
14
|
+
hostInfo: {
|
|
15
|
+
protocol: "localhost",
|
|
16
|
+
port: 21025,
|
|
17
|
+
path: "/",
|
|
18
|
+
hostname: "127.0.0.1"
|
|
19
|
+
}
|
|
20
|
+
};
|
package/dist/authInfoSample.d.ts
CHANGED