@ludo.ninja/api 1.0.86 → 1.0.88
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/config/index.js +1 -0
- 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/config/index.ts +1 -0
- package/src/cookies/index.ts +0 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/src/graphql_tools/__generated__/schema.graphql +0 -1288
package/build/config/index.js
CHANGED
|
@@ -130,6 +130,7 @@ const httpLink = (0, apollo_upload_client_1.createUploadLink)({
|
|
|
130
130
|
const wsLink = typeof window !== "undefined"
|
|
131
131
|
? new subscriptions_1.GraphQLWsLink((0, graphql_ws_1.createClient)({
|
|
132
132
|
url: index_1.hosts.experiencesSubscriptionHost,
|
|
133
|
+
retryAttempts: 3,
|
|
133
134
|
on: {
|
|
134
135
|
connected: () => console.log("GraphQLWsLink connected"),
|
|
135
136
|
closed: () => console.log("GraphQLWsLink closed"),
|
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.88",
|
|
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 -workspace @ludo.ninja/api"
|
|
9
10
|
},
|
|
10
11
|
"keywords": [],
|
|
11
12
|
"author": "Dan Akenford",
|
package/src/config/index.ts
CHANGED
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(), {
|