@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.
- package/config/client-meta.json +2 -2
- package/dist/sessionCookie.d.ts +3 -3
- package/dist/sessionCookie.js +15 -0
- package/node_modules/@playdrop/config/client-meta.json +2 -2
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/node_modules/@playdrop/boxel-core/dist/test/entity-utils.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/entity-utils.test.js +0 -92
- package/node_modules/@playdrop/boxel-core/dist/test/entity-utils.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/greedy-mesher.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/greedy-mesher.test.js +0 -48
- package/node_modules/@playdrop/boxel-core/dist/test/greedy-mesher.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/humanoid/humanoid-builders.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/humanoid/humanoid-builders.test.js +0 -270
- package/node_modules/@playdrop/boxel-core/dist/test/humanoid/humanoid-builders.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/index.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/index.test.js +0 -48
- package/node_modules/@playdrop/boxel-core/dist/test/index.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/layer-mode.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/layer-mode.test.js +0 -67
- package/node_modules/@playdrop/boxel-core/dist/test/layer-mode.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/materials.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/materials.test.js +0 -55
- package/node_modules/@playdrop/boxel-core/dist/test/materials.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/palette-tools.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/palette-tools.test.js +0 -124
- package/node_modules/@playdrop/boxel-core/dist/test/palette-tools.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/serialization.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/serialization.test.js +0 -35
- package/node_modules/@playdrop/boxel-core/dist/test/serialization.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/textures.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/textures.test.js +0 -120
- package/node_modules/@playdrop/boxel-core/dist/test/textures.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/types.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/types.test.js +0 -32
- package/node_modules/@playdrop/boxel-core/dist/test/types.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/upscale.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/upscale.test.js +0 -100
- package/node_modules/@playdrop/boxel-core/dist/test/upscale.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/validation.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/validation.test.js +0 -61
- package/node_modules/@playdrop/boxel-core/dist/test/validation.test.js.map +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/voxels.test.d.ts +0 -1
- package/node_modules/@playdrop/boxel-core/dist/test/voxels.test.js +0 -51
- package/node_modules/@playdrop/boxel-core/dist/test/voxels.test.js.map +0 -1
- package/node_modules/@playdrop/config/dist/src/creator-docs.d.ts +0 -24
- package/node_modules/@playdrop/config/dist/src/creator-docs.d.ts.map +0 -1
- package/node_modules/@playdrop/config/dist/src/creator-docs.js +0 -253
- package/node_modules/@playdrop/config/dist/src/creator-faq.d.ts +0 -17
- package/node_modules/@playdrop/config/dist/src/creator-faq.d.ts.map +0 -1
- package/node_modules/@playdrop/config/dist/src/creator-faq.js +0 -141
- package/node_modules/@playdrop/config/dist/test/creator-docs.test.d.ts +0 -2
- package/node_modules/@playdrop/config/dist/test/creator-docs.test.d.ts.map +0 -1
- package/node_modules/@playdrop/config/dist/test/creator-docs.test.js +0 -36
package/config/client-meta.json
CHANGED
package/dist/sessionCookie.d.ts
CHANGED
|
@@ -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
|
+
})[];
|
package/dist/sessionCookie.js
CHANGED
|
@@ -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) => ({
|