magicrealmsshared 0.3.16 → 0.3.19
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/dist/communication/ws.d.ts +1 -1
- package/dist/types/types.d.ts +3 -2
- package/package.json +32 -32
|
@@ -10,7 +10,7 @@ export declare const LOGIN_RESPONSE_COMMAND = "NIGOL";
|
|
|
10
10
|
export type LOGIN_RESPONSE_DATA<T> = {
|
|
11
11
|
code: number;
|
|
12
12
|
playerData?: Player<T>;
|
|
13
|
-
authToken?: Auth_Token
|
|
13
|
+
authToken?: Auth_Token<number>;
|
|
14
14
|
};
|
|
15
15
|
export declare const LOGIN_RESPONSE_CODE_SUCCESS = 0;
|
|
16
16
|
export declare const LOGIN_RESPONSE_CODE_EMAIL_INVALID = 10;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type NamedObject<T> = ObjectWithId<T> & {
|
|
|
3
3
|
};
|
|
4
4
|
export type ObjectWithId<T> = {
|
|
5
5
|
_id: T;
|
|
6
|
+
defVersion: number;
|
|
6
7
|
};
|
|
7
8
|
export type WorldObject<T> = ObjectWithId<T> & {
|
|
8
9
|
pos: GeoJSON.Point;
|
|
@@ -10,7 +11,7 @@ export type WorldObject<T> = ObjectWithId<T> & {
|
|
|
10
11
|
export type Privileges = {
|
|
11
12
|
all?: boolean;
|
|
12
13
|
};
|
|
13
|
-
export type Auth_Token = {
|
|
14
|
+
export type Auth_Token<DateFormat extends Date | number> = {
|
|
14
15
|
/**
|
|
15
16
|
* Auth-Token-String
|
|
16
17
|
*
|
|
@@ -22,7 +23,7 @@ export type Auth_Token = {
|
|
|
22
23
|
*
|
|
23
24
|
* @type {Date}
|
|
24
25
|
*/
|
|
25
|
-
e:
|
|
26
|
+
e: DateFormat;
|
|
26
27
|
};
|
|
27
28
|
export type Player<T> = ObjectWithId<T> & {
|
|
28
29
|
email: string;
|
package/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "magicrealmsshared",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"keywords": [],
|
|
10
|
-
"author": "",
|
|
11
|
-
"license": "CC BY-NC-ND",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@types/geojson": "^7946.0.15"
|
|
17
|
-
},
|
|
18
|
-
"exports": {
|
|
19
|
-
".": {
|
|
20
|
-
"types":"./dist/index.d.ts",
|
|
21
|
-
"default": "./dist/index.js"
|
|
22
|
-
},
|
|
23
|
-
"./communication/ws": {
|
|
24
|
-
"types": "./dist/communication/ws.d.ts",
|
|
25
|
-
"default": "./dist/communication/ws.js"
|
|
26
|
-
},
|
|
27
|
-
"./types": {
|
|
28
|
-
"types": "./dist/types/types.d.ts",
|
|
29
|
-
"default": "./dist/types/types.js"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "magicrealmsshared",
|
|
3
|
+
"version": "0.3.19",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "CC BY-NC-ND",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/geojson": "^7946.0.15"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types":"./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./communication/ws": {
|
|
24
|
+
"types": "./dist/communication/ws.d.ts",
|
|
25
|
+
"default": "./dist/communication/ws.js"
|
|
26
|
+
},
|
|
27
|
+
"./types": {
|
|
28
|
+
"types": "./dist/types/types.d.ts",
|
|
29
|
+
"default": "./dist/types/types.js"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|