@appshell/config 1.0.0-alpha.31 → 1.0.0-alpha.33

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.
@@ -1,3 +1,12 @@
1
+ import { AppshellTemplate } from './types';
2
+ /**
3
+ * Substitutes a template into the manifest the registry stores.
4
+ *
5
+ * Split out from the file-reading half so a caller holding a template in memory — the
6
+ * webpack plugin, which just built one — does not have to write it to disk and read it
7
+ * back to get a manifest. One substitution pass, one place it can be wrong.
8
+ */
9
+ export declare const manifestFrom: <TMetadata extends Record<string, unknown>>(template: AppshellTemplate) => import("./types").AppshellManifest<TMetadata>;
1
10
  /**
2
11
  * Generates an appshell manifest
3
12
  * @param templatePath path of the appshell manifest template to compile into an appshell manifest
@@ -4,13 +4,13 @@
4
4
  export { default as configmap } from './configmap';
5
5
  export { persistedContext, resolveContext } from './context';
6
6
  export type { AppshellContext } from './context';
7
- export { clearCredential, credentialsPath, resolveToken, saveCredential, } from './credentials';
7
+ export { clearCredential, credentialsPath, resolveToken, saveCredential } from './credentials';
8
8
  export type { Credential } from './credentials';
9
- export { default as generateManifest } from './generate.manifest';
9
+ export { default as generateManifest, manifestFrom } from './generate.manifest';
10
10
  export { default as outdated } from './outdated';
11
11
  export { activate, publish } from './publish';
12
12
  export type { PublishOptions, PublishResult } from './publish';
13
13
  export { default as sync } from './sync';
14
- export type { AppshellComposition, AppshellConfig, AppshellConfigRemote, AppshellIndex, AppshellManifest, AppshellRemote, AppshellTemplate, AppshellTokenUsage, ComparisonResult, ComparisonResults, ComparisonTarget, Metadata, ModuleFederationPluginOptions, PackageSpec, ResolvedRemote, Schema, SharedConfig, SharedObject, SharedModuleSpec, } from './types';
14
+ export type { AppshellComposition, AppshellConfig, AppshellConfigRemote, AppshellIndex, AppshellManifest, AppshellRemote, AppshellTemplate, AppshellTokenUsage, ComparisonResult, ComparisonResults, ComparisonTarget, Metadata, ModuleFederationPluginOptions, PackageSpec, ResolvedRemote, Schema, SharedConfig, SharedModuleSpec, SharedObject, } from './types';
15
15
  export * as utils from './utils';
16
16
  export * as validators from './validators';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appshell/config",
3
- "version": "1.0.0-alpha.31",
3
+ "version": "1.0.0-alpha.33",
4
4
  "description": "Utility for producing a global appshell manifest for module federation micro-frontends",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -30,9 +30,9 @@
30
30
  "appshell"
31
31
  ],
32
32
  "license": "MIT",
33
- "gitHead": "33b8112fc5926b4a4b4d5d16bc1ff4b379817802",
33
+ "gitHead": "54bdd2aec93218533ab07703dfdb4fb269c8bf10",
34
34
  "dependencies": {
35
- "@appshell/runtime": "^1.0.0-alpha.31",
35
+ "@appshell/runtime": "^1.0.0-alpha.33",
36
36
  "yaml": "^2.8.0"
37
37
  }
38
38
  }