@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.
@@ -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"),
@@ -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
- authToken: string;
14
- refreshToken: string;
15
- userId: string;
16
- wallets: string;
17
- newUser: string;
18
- inviteCode: string;
19
- }
20
- | {
21
- authToken: null;
22
- refreshToken: null;
23
- userId: null;
24
- wallets: null;
25
- newUser: null;
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 };
@@ -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
@@ -16,7 +16,3 @@ generates:
16
16
  typeNames: change-case#pascalCase
17
17
  transformUnderscore: true
18
18
  typesPrefix: I
19
-
20
- src/graphql_tools/__generated__/schema.graphql:
21
- plugins:
22
- - schema-ast
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "1.0.86",
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",
@@ -169,6 +169,7 @@ const wsLink =
169
169
  ? new GraphQLWsLink(
170
170
  createClient({
171
171
  url: hosts.experiencesSubscriptionHost,
172
+ retryAttempts: 3,
172
173
  on: {
173
174
  connected: () => console.log("GraphQLWsLink connected"),
174
175
  closed: () => console.log("GraphQLWsLink closed"),
@@ -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(), {