@shipstatic/types 0.8.4 → 0.8.6
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 +7 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -457,6 +457,13 @@ export declare const AuthMethod: {
|
|
|
457
457
|
};
|
|
458
458
|
export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
|
|
459
459
|
export declare const DEPLOYMENT_CONFIG_FILENAME = "ship.json";
|
|
460
|
+
/** Default ship.json config for SPA routing. Single source of truth — used by both API and SDK. */
|
|
461
|
+
export declare const SPA_DEFAULT_CONFIG: {
|
|
462
|
+
readonly rewrites: readonly [{
|
|
463
|
+
readonly source: "/(.*)";
|
|
464
|
+
readonly destination: "/index.html";
|
|
465
|
+
}];
|
|
466
|
+
};
|
|
460
467
|
/**
|
|
461
468
|
* Validate API key format
|
|
462
469
|
*/
|
package/dist/index.js
CHANGED
|
@@ -318,6 +318,8 @@ export const AuthMethod = {
|
|
|
318
318
|
};
|
|
319
319
|
// Deployment Configuration
|
|
320
320
|
export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
|
|
321
|
+
/** Default ship.json config for SPA routing. Single source of truth — used by both API and SDK. */
|
|
322
|
+
export const SPA_DEFAULT_CONFIG = { rewrites: [{ source: '/(.*)', destination: '/index.html' }] };
|
|
321
323
|
// =============================================================================
|
|
322
324
|
// VALIDATION UTILITIES
|
|
323
325
|
// =============================================================================
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -675,6 +675,9 @@ export type AuthMethodType = typeof AuthMethod[keyof typeof AuthMethod];
|
|
|
675
675
|
// Deployment Configuration
|
|
676
676
|
export const DEPLOYMENT_CONFIG_FILENAME = 'ship.json';
|
|
677
677
|
|
|
678
|
+
/** Default ship.json config for SPA routing. Single source of truth — used by both API and SDK. */
|
|
679
|
+
export const SPA_DEFAULT_CONFIG = { rewrites: [{ source: '/(.*)', destination: '/index.html' }] } as const;
|
|
680
|
+
|
|
678
681
|
// =============================================================================
|
|
679
682
|
// VALIDATION UTILITIES
|
|
680
683
|
// =============================================================================
|