@junobuild/admin 0.0.36 → 0.0.37
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/declarations/mission_control/mission_control.did.d.ts +7 -0
- package/declarations/mission_control/mission_control.factory.did.js +7 -0
- package/declarations/orbiter/orbiter.did.d.ts +5 -0
- package/declarations/orbiter/orbiter.factory.did.js +5 -0
- package/declarations/satellite/satellite.did.d.ts +17 -0
- package/declarations/satellite/satellite.factory.did.js +27 -2
- package/declarations/satellite/satellite.factory.did.mjs +27 -2
- package/dist/browser/index.js +7 -7
- package/dist/browser/index.js.map +4 -4
- package/dist/declarations/mission_control/mission_control.did.d.ts +7 -0
- package/dist/declarations/mission_control/mission_control.factory.did.js +7 -0
- package/dist/declarations/orbiter/orbiter.did.d.ts +5 -0
- package/dist/declarations/orbiter/orbiter.factory.did.js +5 -0
- package/dist/declarations/satellite/satellite.did.d.ts +17 -0
- package/dist/declarations/satellite/satellite.factory.did.js +27 -2
- package/dist/declarations/satellite/satellite.factory.did.mjs +27 -2
- package/dist/node/index.mjs +7 -7
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/services/satellite.services.d.ts +1 -1
- package/dist/types/types/config.types.d.ts +7 -0
- package/package.json +1 -1
- package/dist/types/constants/config.constants.d.ts +0 -2
|
@@ -2,7 +2,7 @@ import type { SatelliteParameters } from '../types/actor.types';
|
|
|
2
2
|
import type { Config } from '../types/config.types';
|
|
3
3
|
import type { CustomDomain } from '../types/customdomain.types';
|
|
4
4
|
import type { Rule, RulesType } from '../types/rules.types';
|
|
5
|
-
export declare const setConfig: ({ config: { storage: { headers: configHeaders, rewrites: configRewrites } }, satellite }: {
|
|
5
|
+
export declare const setConfig: ({ config: { storage: { headers: configHeaders, rewrites: configRewrites, redirects: configRedirects, iframe: configIFrame } }, satellite }: {
|
|
6
6
|
config: Config;
|
|
7
7
|
satellite: SatelliteParameters;
|
|
8
8
|
}) => Promise<void>;
|
|
@@ -7,9 +7,16 @@ export interface StorageConfigRewrite {
|
|
|
7
7
|
source: StorageConfigSourceGlob;
|
|
8
8
|
destination: string;
|
|
9
9
|
}
|
|
10
|
+
export interface StorageConfigRedirect {
|
|
11
|
+
source: StorageConfigSourceGlob;
|
|
12
|
+
location: string;
|
|
13
|
+
code: 301 | 302;
|
|
14
|
+
}
|
|
10
15
|
export interface StorageConfig {
|
|
11
16
|
headers?: StorageConfigHeader[];
|
|
12
17
|
rewrites?: StorageConfigRewrite[];
|
|
18
|
+
redirects?: StorageConfigRedirect[];
|
|
19
|
+
iframe?: 'deny' | 'same-origin' | 'allow-any';
|
|
13
20
|
}
|
|
14
21
|
export interface Config {
|
|
15
22
|
storage: StorageConfig;
|
package/package.json
CHANGED