@ludo.ninja/api 1.0.87 → 1.0.89
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/build/cookies/index.d.ts +16 -26
- package/build/cookies/index.js +0 -1
- package/codegen.yml +0 -4
- package/package.json +3 -2
- package/src/cookies/index.ts +0 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/src/graphql_tools/__generated__/schema.graphql +0 -1288
package/build/cookies/index.d.ts
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
1
|
-
declare const assignCookies: (
|
|
2
|
-
userId: string,
|
|
3
|
-
wallets: Array<string>,
|
|
4
|
-
authToken: string,
|
|
5
|
-
refreshToken: string,
|
|
6
|
-
newUser: string,
|
|
7
|
-
inviteCode: string,
|
|
8
|
-
domain?: string,
|
|
9
|
-
) => void;
|
|
1
|
+
declare const assignCookies: (userId: string, wallets: Array<string>, authToken: string, refreshToken: string, newUser: string, inviteCode: string, domain?: string) => void;
|
|
10
2
|
declare const refreshCookies: (authToken: string, refreshToken: string, domain?: string) => void;
|
|
11
|
-
declare const getCookies: () =>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
inviteCode: null;
|
|
27
|
-
};
|
|
3
|
+
declare const getCookies: () => {
|
|
4
|
+
authToken: string;
|
|
5
|
+
refreshToken: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
wallets: string;
|
|
8
|
+
newUser: string;
|
|
9
|
+
inviteCode: string;
|
|
10
|
+
} | {
|
|
11
|
+
authToken: null;
|
|
12
|
+
refreshToken: null;
|
|
13
|
+
userId: null;
|
|
14
|
+
wallets: null;
|
|
15
|
+
newUser: null;
|
|
16
|
+
inviteCode: null;
|
|
17
|
+
};
|
|
28
18
|
declare const destroyCookies: (domain?: string) => void;
|
|
29
19
|
export { assignCookies, refreshCookies, destroyCookies, getCookies };
|
package/build/cookies/index.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getCookies = exports.destroyCookies = exports.refreshCookies = exports.assignCookies = void 0;
|
|
4
4
|
const nookies_1 = require("nookies");
|
|
5
5
|
const assignCookies = (userId, wallets, authToken, refreshToken, newUser, inviteCode, domain = "ludo.ninja") => {
|
|
6
|
-
console.log(domain, "domain");
|
|
7
6
|
if (userId)
|
|
8
7
|
(0, nookies_1.setCookie)(null, "userId", userId, { maxAge: 2629800000, path: "/", domain });
|
|
9
8
|
if (wallets)
|
package/codegen.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ludo.ninja/api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.89",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
7
7
|
"build": "tsc --build",
|
|
8
|
-
"graphql:codegen": "graphql-codegen --config codegen.yml"
|
|
8
|
+
"graphql:codegen": "graphql-codegen --config codegen.yml",
|
|
9
|
+
"publish": "npm publish --access-public -workspace @ludo.ninja/api"
|
|
9
10
|
},
|
|
10
11
|
"keywords": [],
|
|
11
12
|
"author": "Dan Akenford",
|
package/src/cookies/index.ts
CHANGED
|
@@ -9,7 +9,6 @@ const assignCookies = (
|
|
|
9
9
|
inviteCode: string,
|
|
10
10
|
domain = "ludo.ninja",
|
|
11
11
|
) => {
|
|
12
|
-
console.log(domain, "domain");
|
|
13
12
|
if (userId) setCookie(null, "userId", userId, { maxAge: 2629800000, path: "/", domain });
|
|
14
13
|
if (wallets)
|
|
15
14
|
setCookie(null, "wallets", wallets.join(), {
|