@shipstatic/types 0.8.8 → 0.8.9
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/dist/index.d.ts +8 -12
- package/dist/index.js +3 -6
- package/package.json +1 -1
- package/src/index.ts +8 -12
package/dist/index.d.ts
CHANGED
|
@@ -586,14 +586,13 @@ export interface DeploymentUploadOptions {
|
|
|
586
586
|
/** Client identifier (e.g., 'cli', 'sdk', 'web') */
|
|
587
587
|
via?: string;
|
|
588
588
|
/**
|
|
589
|
-
* Optional password that
|
|
589
|
+
* Optional password that protects this deployment.
|
|
590
590
|
*
|
|
591
591
|
* Length: {@link PASSWORD_CONSTRAINTS.MIN_LENGTH} to
|
|
592
|
-
* {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters
|
|
593
|
-
*
|
|
594
|
-
*
|
|
595
|
-
*
|
|
596
|
-
* too. Revocation is redeployment.
|
|
592
|
+
* {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters; whitespace is
|
|
593
|
+
* significant. Visitors are prompted to enter the password before they can
|
|
594
|
+
* view the deployment — including on any custom domains pointing at it.
|
|
595
|
+
* To remove protection, redeploy without a password.
|
|
597
596
|
*/
|
|
598
597
|
password?: string;
|
|
599
598
|
/** @internal Trigger server-side build. Only available via /upload endpoint. */
|
|
@@ -924,12 +923,9 @@ export declare function serializeLabels(labels: string[] | undefined): string |
|
|
|
924
923
|
*/
|
|
925
924
|
export declare function deserializeLabels(labelsJson: string | null): string[];
|
|
926
925
|
/**
|
|
927
|
-
*
|
|
928
|
-
* Single source of truth
|
|
929
|
-
*
|
|
930
|
-
*
|
|
931
|
-
* Plaintext is hashed once server-side (SHA-256) and never persisted in its
|
|
932
|
-
* original form; see `cloudflare/shared/password.ts` for the protocol.
|
|
926
|
+
* Length constraints for the optional deployment password
|
|
927
|
+
* (`DeploymentUploadOptions.password`). Single source of truth shared across
|
|
928
|
+
* platform consumers.
|
|
933
929
|
*/
|
|
934
930
|
export declare const PASSWORD_CONSTRAINTS: {
|
|
935
931
|
/** Minimum password length in characters */
|
package/dist/index.js
CHANGED
|
@@ -516,12 +516,9 @@ export function deserializeLabels(labelsJson) {
|
|
|
516
516
|
// PASSWORD UTILITIES
|
|
517
517
|
// =============================================================================
|
|
518
518
|
/**
|
|
519
|
-
*
|
|
520
|
-
* Single source of truth
|
|
521
|
-
*
|
|
522
|
-
*
|
|
523
|
-
* Plaintext is hashed once server-side (SHA-256) and never persisted in its
|
|
524
|
-
* original form; see `cloudflare/shared/password.ts` for the protocol.
|
|
519
|
+
* Length constraints for the optional deployment password
|
|
520
|
+
* (`DeploymentUploadOptions.password`). Single source of truth shared across
|
|
521
|
+
* platform consumers.
|
|
525
522
|
*/
|
|
526
523
|
export const PASSWORD_CONSTRAINTS = {
|
|
527
524
|
/** Minimum password length in characters */
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -889,14 +889,13 @@ export interface DeploymentUploadOptions {
|
|
|
889
889
|
/** Client identifier (e.g., 'cli', 'sdk', 'web') */
|
|
890
890
|
via?: string;
|
|
891
891
|
/**
|
|
892
|
-
* Optional password that
|
|
892
|
+
* Optional password that protects this deployment.
|
|
893
893
|
*
|
|
894
894
|
* Length: {@link PASSWORD_CONSTRAINTS.MIN_LENGTH} to
|
|
895
|
-
* {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters
|
|
896
|
-
*
|
|
897
|
-
*
|
|
898
|
-
*
|
|
899
|
-
* too. Revocation is redeployment.
|
|
895
|
+
* {@link PASSWORD_CONSTRAINTS.MAX_LENGTH} characters; whitespace is
|
|
896
|
+
* significant. Visitors are prompted to enter the password before they can
|
|
897
|
+
* view the deployment — including on any custom domains pointing at it.
|
|
898
|
+
* To remove protection, redeploy without a password.
|
|
900
899
|
*/
|
|
901
900
|
password?: string;
|
|
902
901
|
/** @internal Trigger server-side build. Only available via /upload endpoint. */
|
|
@@ -1369,12 +1368,9 @@ export function deserializeLabels(labelsJson: string | null): string[] {
|
|
|
1369
1368
|
// =============================================================================
|
|
1370
1369
|
|
|
1371
1370
|
/**
|
|
1372
|
-
*
|
|
1373
|
-
* Single source of truth
|
|
1374
|
-
*
|
|
1375
|
-
*
|
|
1376
|
-
* Plaintext is hashed once server-side (SHA-256) and never persisted in its
|
|
1377
|
-
* original form; see `cloudflare/shared/password.ts` for the protocol.
|
|
1371
|
+
* Length constraints for the optional deployment password
|
|
1372
|
+
* (`DeploymentUploadOptions.password`). Single source of truth shared across
|
|
1373
|
+
* platform consumers.
|
|
1378
1374
|
*/
|
|
1379
1375
|
export const PASSWORD_CONSTRAINTS = {
|
|
1380
1376
|
/** Minimum password length in characters */
|