@shipstatic/ship 3.4.0-beta.20 → 3.4.0-beta.21
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/SKILL.md +1 -1
- package/THIRD-PARTY-LICENSES.md +1 -1
- package/dist/browser.d.ts +18 -25
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -25
- package/dist/index.d.ts +18 -25
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/SKILL.md
CHANGED
|
@@ -116,7 +116,7 @@ Visitors get an unlock page until they enter the password. Length: 6–128 chara
|
|
|
116
116
|
|
|
117
117
|
### SPA routing
|
|
118
118
|
|
|
119
|
-
Ship auto-detects single-page apps from `index.html` content and configures client-side routing rewrites — all paths serve `index.html`.
|
|
119
|
+
Ship auto-detects single-page apps from `index.html` content and configures client-side routing rewrites — all paths serve `index.html`. Usually no action needed. If the app's routes return 404 on reload, add `{ "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }] }` as `ship.json` in the deployed folder. Skipped if a `ship.json` config is already included in the deployment. Disable with `--no-spa-detect`.
|
|
120
120
|
|
|
121
121
|
## Authentication
|
|
122
122
|
|
package/THIRD-PARTY-LICENSES.md
CHANGED
|
@@ -5,7 +5,7 @@ Their copyright notices travel with that copy, and are reproduced here in
|
|
|
5
5
|
full. This file is GENERATED from the build's own metafile — edit the
|
|
6
6
|
bundle, not this list.
|
|
7
7
|
|
|
8
|
-
## @shipstatic/types 3.8.0-beta.
|
|
8
|
+
## @shipstatic/types 3.8.0-beta.15
|
|
9
9
|
|
|
10
10
|
License: MIT
|
|
11
11
|
|
package/dist/browser.d.ts
CHANGED
|
@@ -1846,15 +1846,17 @@ declare const SPA_DEFAULT_CONFIG: {
|
|
|
1846
1846
|
* "100KB". `INDEX_FILE` is the selection rule (the file whose content rides
|
|
1847
1847
|
* `SPACheckRequest.index`), restated by every client that builds the request.
|
|
1848
1848
|
*
|
|
1849
|
-
* Neither member is a validation boundary: a client over the cap
|
|
1850
|
-
*
|
|
1851
|
-
*
|
|
1852
|
-
*
|
|
1849
|
+
* Neither member is a validation boundary: a client over the cap skips the
|
|
1850
|
+
* pre-flight and answers "no" itself, which is the answer the server gives an
|
|
1851
|
+
* oversized index. Every client holds the cap, in bytes: the server's own
|
|
1852
|
+
* route refuses a body over the JSON intake cap, so a client that asked about
|
|
1853
|
+
* any index would fail a deploy whose upload succeeds. The n8n node, which
|
|
1854
|
+
* cannot import this, restates the number under its contract fence.
|
|
1853
1855
|
*/
|
|
1854
1856
|
declare const SPA_CHECK_CONSTRAINTS: {
|
|
1855
1857
|
/** The file whose content is the check's subject. */
|
|
1856
1858
|
readonly INDEX_FILE: "index.html";
|
|
1857
|
-
/** Skip the pre-flight above this
|
|
1859
|
+
/** Skip the pre-flight above this many UTF-8 bytes: the server answers no. */
|
|
1858
1860
|
readonly MAX_INDEX_BYTES: number;
|
|
1859
1861
|
};
|
|
1860
1862
|
/**
|
|
@@ -1979,28 +1981,19 @@ interface SPACheckRequest {
|
|
|
1979
1981
|
index: string;
|
|
1980
1982
|
}
|
|
1981
1983
|
/**
|
|
1982
|
-
*
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
*
|
|
1986
|
-
*
|
|
1987
|
-
*
|
|
1988
|
-
|
|
1989
|
-
interface SPACheckDebug {
|
|
1990
|
-
/** Which tier made the detection */
|
|
1991
|
-
tier: 'exclusions' | 'inclusions' | 'scoring' | 'ai' | 'fallback';
|
|
1992
|
-
/** The reason for the detection result */
|
|
1993
|
-
reason: string;
|
|
1994
|
-
}
|
|
1995
|
-
/**
|
|
1996
|
-
* A report: it answers a question and carries only the answer (`CLAUDE.md`,
|
|
1997
|
-
* "A report answers a question").
|
|
1984
|
+
* The `/spa-check` answer: whether the upload is a single-page app, and the
|
|
1985
|
+
* one sentence saying why it was or was not detected.
|
|
1986
|
+
*
|
|
1987
|
+
* `reason` is there so anyone can ask the open route about an upload and
|
|
1988
|
+
* read the answer. It is human-readable text under the message authoring law:
|
|
1989
|
+
* clients branch on `isSPA`, never on the sentence, so its wording is not a
|
|
1990
|
+
* contract.
|
|
1998
1991
|
*/
|
|
1999
1992
|
interface SPACheckResponse {
|
|
2000
|
-
/** Whether the
|
|
1993
|
+
/** Whether the upload is detected as a single-page app */
|
|
2001
1994
|
isSPA: boolean;
|
|
2002
|
-
/**
|
|
2003
|
-
|
|
1995
|
+
/** Why it was or was not detected, for a person to read */
|
|
1996
|
+
reason: string;
|
|
2004
1997
|
}
|
|
2005
1998
|
/**
|
|
2006
1999
|
* Represents a file that has been processed and is ready for deploy.
|
|
@@ -3857,4 +3850,4 @@ declare class Ship extends Ship$1 {
|
|
|
3857
3850
|
protected processInput(input: DeployInput, options: DeploymentOptions, limits: PlatformLimits): Promise<StaticFile[]>;
|
|
3858
3851
|
}
|
|
3859
3852
|
|
|
3860
|
-
export { ACCOUNT_HEADER, API_KEY, API_PATHS, AUTH_BASE_PATH, type Account, type AccountAccess, type AccountDeleteResponse, type AccountKeyResponse, AccountPlan, type AccountPlanType, AccountRefusal, type AccountRefusalType, type AccountResource, type AccountRole, type Activity, type ActivityEvent, type ActivityListResponse, type ActivityMeta, type ApiDeployOptions, ApiHttp, type ApiHttpOptions, AuthMethod, type AuthMethodType, BUILD_SETTINGS, type BillingInterval, type BillingPortalSession, type BillingSyncResponse, type BuildFailureDetails, CALLER, type Caps, type ConsoleErrand, type ConsolePaths, type ConsoleSection, DEFAULT_API, DEPLOYMENT_CONFIG_FILENAME, DEPLOY_FIELDS, DEPLOY_FILE_GRAMMAR, DEPLOY_TOKEN, type DeployBodyContext, type DeployFile, type DeployFileEncoding, type DeployFileSpec, type DeployInput, type DeployTransport, type Deployment, type DeploymentCreateResponse, type DeploymentDeleteResponse, type DeploymentListResponse, type DeploymentOptions, type DeploymentResource, type DeploymentResourceContext, type DeploymentSetOptions, DeploymentStatus, type DeploymentStatusType, type DeploymentUploadOptions, DeploymentVia, type DeploymentViaType, type DnsLookup, type DnsProvider, type DnsRecord, type DnsRecordType, type Domain, type DomainDeleteResponse, type DomainDnsResponse, type DomainListResponse, type DomainRecordsResponse, type DomainResource, type DomainSetOptions, type DomainSetResult, type DomainShareResponse, DomainStatus, type DomainStatusType, type DomainValidateResponse, DomainVerification, type DomainVerificationType, type DomainVerifyResponse, type ErrorResponse, ErrorType, type ExecutionEnvironment, FileValidationStatus as FILE_VALIDATION_STATUS, type Fetch, type FileValidationResult, FileValidationStatus, type FileValidationStatusType, IDEMPOTENCY_KEY_CONSTRAINTS, JUNK_DIRECTORIES, LABEL_CONSTRAINTS, LABEL_PATTERN, type LabelsResponse, type ListOptions, type ListResponse, type MD5Result, MY_API_KEY_URL, OAUTH_TOKEN, OAuthScope, type OAuthScopeType, PASSWORD_CONSTRAINTS, PUBLIC_DEPLOYMENT_TTL_SECONDS, type PingResponse, type Plan, type PlanChangeRefusalDetails, type PlanChangeRequest, type PlanChangeResponse, type PlanDestination, type PlansResponse, type PlatformLimitKey, type PlatformLimits, type RequestResult, type ResourceContext, SECTIONS, SETUP_TROUBLESHOOTING_ANCHOR, SHIP_ENV, SHIP_VIA_ENV, SIGN_IN_RETURN_PARAM, type
|
|
3853
|
+
export { ACCOUNT_HEADER, API_KEY, API_PATHS, AUTH_BASE_PATH, type Account, type AccountAccess, type AccountDeleteResponse, type AccountKeyResponse, AccountPlan, type AccountPlanType, AccountRefusal, type AccountRefusalType, type AccountResource, type AccountRole, type Activity, type ActivityEvent, type ActivityListResponse, type ActivityMeta, type ApiDeployOptions, ApiHttp, type ApiHttpOptions, AuthMethod, type AuthMethodType, BUILD_SETTINGS, type BillingInterval, type BillingPortalSession, type BillingSyncResponse, type BuildFailureDetails, CALLER, type Caps, type ConsoleErrand, type ConsolePaths, type ConsoleSection, DEFAULT_API, DEPLOYMENT_CONFIG_FILENAME, DEPLOY_FIELDS, DEPLOY_FILE_GRAMMAR, DEPLOY_TOKEN, type DeployBodyContext, type DeployFile, type DeployFileEncoding, type DeployFileSpec, type DeployInput, type DeployTransport, type Deployment, type DeploymentCreateResponse, type DeploymentDeleteResponse, type DeploymentListResponse, type DeploymentOptions, type DeploymentResource, type DeploymentResourceContext, type DeploymentSetOptions, DeploymentStatus, type DeploymentStatusType, type DeploymentUploadOptions, DeploymentVia, type DeploymentViaType, type DnsLookup, type DnsProvider, type DnsRecord, type DnsRecordType, type Domain, type DomainDeleteResponse, type DomainDnsResponse, type DomainListResponse, type DomainRecordsResponse, type DomainResource, type DomainSetOptions, type DomainSetResult, type DomainShareResponse, DomainStatus, type DomainStatusType, type DomainValidateResponse, DomainVerification, type DomainVerificationType, type DomainVerifyResponse, type ErrorResponse, ErrorType, type ExecutionEnvironment, FileValidationStatus as FILE_VALIDATION_STATUS, type Fetch, type FileValidationResult, FileValidationStatus, type FileValidationStatusType, IDEMPOTENCY_KEY_CONSTRAINTS, JUNK_DIRECTORIES, LABEL_CONSTRAINTS, LABEL_PATTERN, type LabelsResponse, type ListOptions, type ListResponse, type MD5Result, MY_API_KEY_URL, OAUTH_TOKEN, OAuthScope, type OAuthScopeType, PASSWORD_CONSTRAINTS, PUBLIC_DEPLOYMENT_TTL_SECONDS, type PingResponse, type Plan, type PlanChangeRefusalDetails, type PlanChangeRequest, type PlanChangeResponse, type PlanDestination, type PlansResponse, type PlatformLimitKey, type PlatformLimits, type RequestResult, type ResourceContext, SECTIONS, SETUP_TROUBLESHOOTING_ANCHOR, SHIP_ENV, SHIP_VIA_ENV, SIGN_IN_RETURN_PARAM, type SPACheckRequest, type SPACheckResponse, SPA_CHECK_CONSTRAINTS, SPA_DEFAULT_CONFIG, type ScheduledChange, type SettingsFragment, type SetupInstructionsResponse, Ship, type ShipClientOptions, ShipError, type ShipEvents, type ShipRequestInit, type StaticFile, TTL_CONSTRAINTS, type Token, type TokenCreateOptions, type TokenCreateResponse, type TokenDeleteResponse, TokenKind, type TokenKindType, type TokenListResponse, type TokenProvider, type TokenResource, type Transport, UNBUILT_PROJECT_MARKERS, UNSAFE_FILENAME_CHARS, USER_VISIBLE_EVENTS, type UploadedFile, type UserVisibleActivityEvent, type ValidatableFile, type ValidationIssue, WEB_FILE_ACCEPT, __setTestEnvironment, accountOfPath, allValidFilesReady, assertShipJsonSyntax, billingReturnOf, calculateMD5, classifyToken, consolePaths, createAccountResource, createDeploymentResource, createDomainResource, createTokenResource, Ship as default, deserializeLabels, doors, errandOf, extractSubdomain, filterJunk, formatDuration, formatFileSize, formatTimeRemaining, generateDeploymentUrl, generateDomainUrl, getENV, getValidFiles, hasUnbuiltMarker, hasUnsafeChars, isBlockedExtension, isClaimPath, isCustomDomain, isDeployment, isInvitationPath, isPlatformDomain, isShipError, isUpgradePath, normalizeVia, optimizeDeployPaths, personName, personShortName, pluralize, processFilesForBrowser, readBearerValue, serializeLabels, validateApiKey, validateApiUrl, validateBuildCommand, validateCaller, validateDeployCount, validateDeployFile, validateDeployPath, validateDeployToken, validateFileName, validateFiles, validateIdempotencyKey, validateOAuthToken, validateOutputDir, validatePassword, validateToken, validateTtl };
|