@playdrop/playdrop-cli 0.5.0 → 0.5.1

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.
Files changed (54) hide show
  1. package/config/client-meta.json +2 -2
  2. package/dist/sessionCookie.d.ts +3 -3
  3. package/dist/sessionCookie.js +15 -0
  4. package/node_modules/@playdrop/config/client-meta.json +2 -2
  5. package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
  6. package/package.json +1 -1
  7. package/node_modules/@playdrop/boxel-core/dist/test/entity-utils.test.d.ts +0 -1
  8. package/node_modules/@playdrop/boxel-core/dist/test/entity-utils.test.js +0 -92
  9. package/node_modules/@playdrop/boxel-core/dist/test/entity-utils.test.js.map +0 -1
  10. package/node_modules/@playdrop/boxel-core/dist/test/greedy-mesher.test.d.ts +0 -1
  11. package/node_modules/@playdrop/boxel-core/dist/test/greedy-mesher.test.js +0 -48
  12. package/node_modules/@playdrop/boxel-core/dist/test/greedy-mesher.test.js.map +0 -1
  13. package/node_modules/@playdrop/boxel-core/dist/test/humanoid/humanoid-builders.test.d.ts +0 -1
  14. package/node_modules/@playdrop/boxel-core/dist/test/humanoid/humanoid-builders.test.js +0 -270
  15. package/node_modules/@playdrop/boxel-core/dist/test/humanoid/humanoid-builders.test.js.map +0 -1
  16. package/node_modules/@playdrop/boxel-core/dist/test/index.test.d.ts +0 -1
  17. package/node_modules/@playdrop/boxel-core/dist/test/index.test.js +0 -48
  18. package/node_modules/@playdrop/boxel-core/dist/test/index.test.js.map +0 -1
  19. package/node_modules/@playdrop/boxel-core/dist/test/layer-mode.test.d.ts +0 -1
  20. package/node_modules/@playdrop/boxel-core/dist/test/layer-mode.test.js +0 -67
  21. package/node_modules/@playdrop/boxel-core/dist/test/layer-mode.test.js.map +0 -1
  22. package/node_modules/@playdrop/boxel-core/dist/test/materials.test.d.ts +0 -1
  23. package/node_modules/@playdrop/boxel-core/dist/test/materials.test.js +0 -55
  24. package/node_modules/@playdrop/boxel-core/dist/test/materials.test.js.map +0 -1
  25. package/node_modules/@playdrop/boxel-core/dist/test/palette-tools.test.d.ts +0 -1
  26. package/node_modules/@playdrop/boxel-core/dist/test/palette-tools.test.js +0 -124
  27. package/node_modules/@playdrop/boxel-core/dist/test/palette-tools.test.js.map +0 -1
  28. package/node_modules/@playdrop/boxel-core/dist/test/serialization.test.d.ts +0 -1
  29. package/node_modules/@playdrop/boxel-core/dist/test/serialization.test.js +0 -35
  30. package/node_modules/@playdrop/boxel-core/dist/test/serialization.test.js.map +0 -1
  31. package/node_modules/@playdrop/boxel-core/dist/test/textures.test.d.ts +0 -1
  32. package/node_modules/@playdrop/boxel-core/dist/test/textures.test.js +0 -120
  33. package/node_modules/@playdrop/boxel-core/dist/test/textures.test.js.map +0 -1
  34. package/node_modules/@playdrop/boxel-core/dist/test/types.test.d.ts +0 -1
  35. package/node_modules/@playdrop/boxel-core/dist/test/types.test.js +0 -32
  36. package/node_modules/@playdrop/boxel-core/dist/test/types.test.js.map +0 -1
  37. package/node_modules/@playdrop/boxel-core/dist/test/upscale.test.d.ts +0 -1
  38. package/node_modules/@playdrop/boxel-core/dist/test/upscale.test.js +0 -100
  39. package/node_modules/@playdrop/boxel-core/dist/test/upscale.test.js.map +0 -1
  40. package/node_modules/@playdrop/boxel-core/dist/test/validation.test.d.ts +0 -1
  41. package/node_modules/@playdrop/boxel-core/dist/test/validation.test.js +0 -61
  42. package/node_modules/@playdrop/boxel-core/dist/test/validation.test.js.map +0 -1
  43. package/node_modules/@playdrop/boxel-core/dist/test/voxels.test.d.ts +0 -1
  44. package/node_modules/@playdrop/boxel-core/dist/test/voxels.test.js +0 -51
  45. package/node_modules/@playdrop/boxel-core/dist/test/voxels.test.js.map +0 -1
  46. package/node_modules/@playdrop/config/dist/src/creator-docs.d.ts +0 -24
  47. package/node_modules/@playdrop/config/dist/src/creator-docs.d.ts.map +0 -1
  48. package/node_modules/@playdrop/config/dist/src/creator-docs.js +0 -253
  49. package/node_modules/@playdrop/config/dist/src/creator-faq.d.ts +0 -17
  50. package/node_modules/@playdrop/config/dist/src/creator-faq.d.ts.map +0 -1
  51. package/node_modules/@playdrop/config/dist/src/creator-faq.js +0 -141
  52. package/node_modules/@playdrop/config/dist/test/creator-docs.test.d.ts +0 -2
  53. package/node_modules/@playdrop/config/dist/test/creator-docs.test.d.ts.map +0 -1
  54. package/node_modules/@playdrop/config/dist/test/creator-docs.test.js +0 -36
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.0",
2
+ "version": "0.5.1",
3
3
  "build": 2,
4
4
  "platforms": {
5
5
  "ios": {
@@ -38,7 +38,7 @@
38
38
  "minimumBuild": 1
39
39
  },
40
40
  "cli": {
41
- "minimumVersion": "0.5.0"
41
+ "minimumVersion": "0.5.1"
42
42
  }
43
43
  }
44
44
  }
@@ -1,13 +1,13 @@
1
1
  export declare function resolveCaptureSessionCookieDomain(hostname: string): string | null;
2
2
  export declare function shouldUseSecureCaptureSessionCookie(hostname: string): boolean;
3
- export declare function buildCaptureAccessTokenCookies(targetUrl: string, accessToken: string): {
3
+ export declare function buildCaptureAccessTokenCookies(targetUrl: string, accessToken: string): ({
4
4
  name: string;
5
5
  value: string;
6
6
  url: string;
7
7
  httpOnly: boolean;
8
8
  sameSite: "Lax";
9
9
  secure: boolean;
10
- }[] | {
10
+ } | {
11
11
  name: string;
12
12
  value: string;
13
13
  domain: string;
@@ -15,4 +15,4 @@ export declare function buildCaptureAccessTokenCookies(targetUrl: string, access
15
15
  httpOnly: boolean;
16
16
  sameSite: "Lax";
17
17
  secure: boolean;
18
- }[];
18
+ })[];
@@ -59,6 +59,13 @@ function resolveLocalCaptureCookieHosts(hostname) {
59
59
  function buildOrigin(protocol, hostname, port) {
60
60
  return `${protocol}//${hostname}${port ? `:${port}` : ''}`;
61
61
  }
62
+ function resolveSharedCaptureCookieHosts(hostname, sharedDomain) {
63
+ return Array.from(new Set([
64
+ hostname,
65
+ `www.${sharedDomain}`,
66
+ `api.${sharedDomain}`,
67
+ ]));
68
+ }
62
69
  function buildCaptureAccessTokenCookies(targetUrl, accessToken) {
63
70
  const parsedUrl = new URL(targetUrl);
64
71
  const hostname = normalizeHostname(parsedUrl.hostname);
@@ -75,6 +82,14 @@ function buildCaptureAccessTokenCookies(targetUrl, accessToken) {
75
82
  sameSite: 'Lax',
76
83
  secure,
77
84
  },
85
+ ...resolveSharedCaptureCookieHosts(hostname, sharedDomain).map((cookieHostname) => ({
86
+ name: ACCESS_TOKEN_COOKIE_NAME,
87
+ value: accessToken,
88
+ url: buildOrigin(parsedUrl.protocol, cookieHostname, parsedUrl.port),
89
+ httpOnly: true,
90
+ sameSite: 'Lax',
91
+ secure,
92
+ })),
78
93
  ];
79
94
  }
80
95
  return resolveLocalCaptureCookieHosts(hostname).map((cookieHostname) => ({
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.5.0",
2
+ "version": "0.5.1",
3
3
  "build": 2,
4
4
  "platforms": {
5
5
  "ios": {
@@ -38,7 +38,7 @@
38
38
  "minimumBuild": 1
39
39
  },
40
40
  "cli": {
41
- "minimumVersion": "0.5.0"
41
+ "minimumVersion": "0.5.1"
42
42
  }
43
43
  }
44
44
  }