magicrealmsshared 0.3.10 → 0.3.12
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 -2
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -5
- package/src/communication/ws.ts +1 -2
- package/src/types/types.ts +1 -0
- package/dist/util/authentication.d.ts +0 -1
- package/dist/util/authentication.js +0 -8
- package/src/util/authentication.ts +0 -6
|
@@ -4,8 +4,7 @@ export declare const AUTH_ACK = "AUTH_ACK";
|
|
|
4
4
|
export declare const LOGIN_COMMAND = "LOGIN";
|
|
5
5
|
export type LOGIN_DATA = {
|
|
6
6
|
email: string;
|
|
7
|
-
|
|
8
|
-
passwordSalt: string;
|
|
7
|
+
password: string;
|
|
9
8
|
};
|
|
10
9
|
export declare const LOGIN_RESPONSE_COMMAND = "NIGOL";
|
|
11
10
|
export type LOGIN_RESPONSE_DATA<T> = {
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magicrealmsshared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,10 +24,6 @@
|
|
|
24
24
|
"./types": {
|
|
25
25
|
"types": "./dist/types/types.d.ts",
|
|
26
26
|
"default": "./dist/types/types.js"
|
|
27
|
-
},
|
|
28
|
-
"./util/authentication": {
|
|
29
|
-
"types": "./dist/util/authentication.d.ts",
|
|
30
|
-
"default": "./dist/util/authentication.js"
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
29
|
}
|
package/src/communication/ws.ts
CHANGED
package/src/types/types.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function passwordSalted(username: string, password: string, salt: string, sha256: (input: string) => (Promise<string> | string)): Promise<string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.passwordSalted = passwordSalted;
|
|
4
|
-
const salt1 = 'c<MS$gk:^8r[K`;6b!x#a@';
|
|
5
|
-
const salt2 = 'r@k-6>}3mJhgX72Y{,HV!:';
|
|
6
|
-
async function passwordSalted(username, password, salt, sha256) {
|
|
7
|
-
return sha256(salt1 + username + salt + password + salt2);
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const salt1 = 'c<MS$gk:^8r[K`;6b!x#a@';
|
|
2
|
-
const salt2 = 'r@k-6>}3mJhgX72Y{,HV!:';
|
|
3
|
-
|
|
4
|
-
export async function passwordSalted(username: string, password: string,salt: string, sha256: (input: string) => (Promise<string>|string)): Promise<string> {
|
|
5
|
-
return sha256(salt1 + username + salt + password + salt2);
|
|
6
|
-
}
|