@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.
@@ -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.87",
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",
@@ -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(), {