@lwrjs/static 0.13.0-alpha.27 → 0.13.0-alpha.29

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.
@@ -48,7 +48,7 @@ var StaticModuleProvider = class {
48
48
  if (metadata) {
49
49
  import_diagnostics.logger.warn({
50
50
  label: `${this.name}`,
51
- message: `We should not be asking for module source we have in our site metadata ${moduleId.specifier}`
51
+ message: `We should not be asking for module source we have in our site metadata: ${moduleId.specifier}`
52
52
  });
53
53
  return void 0;
54
54
  }
@@ -112,7 +112,7 @@ var SiteMetadataImpl = class {
112
112
  const resourceMetadataPath = import_path.default.join(this.options.rootDir, STATIC_RESOURCE_METADATA_PATH);
113
113
  await import_fs_extra.default.writeJSON(resourceMetadataPath, this.siteResources, {spaces: 2});
114
114
  const debugResourceMetadataPath = import_path.default.join(this.options.rootDir, DEBUG_STATIC_RESOURCE_METADATA_PATH);
115
- await import_fs_extra.default.writeJSON(debugResourceMetadataPath, this.siteResources, {spaces: 2});
115
+ await import_fs_extra.default.writeJSON(debugResourceMetadataPath, this.debugSiteResources, {spaces: 2});
116
116
  const assetMetadataPath = import_path.default.join(this.options.rootDir, STATIC_ASSET_METADATA_PATH);
117
117
  return import_fs_extra.default.writeJSON(assetMetadataPath, this.siteAssets, {spaces: 2});
118
118
  } catch (err) {
@@ -1,4 +1,4 @@
1
- import type { AbstractModuleId, BundleDefinition, BundleProvider, ProviderContext, RuntimeEnvironment, RuntimeParams, SiteMetadata } from '@lwrjs/types';
1
+ import type { AbstractModuleId, BundleDefinition, BundleProvider, ProviderContext, RuntimeEnvironment, RuntimeParams, SiteBundle, SiteMetadata } from '@lwrjs/types';
2
2
  export default class StaticBundleProvider implements BundleProvider {
3
3
  name: string;
4
4
  siteRootDir: string;
@@ -7,7 +7,7 @@ export default class StaticBundleProvider implements BundleProvider {
7
7
  siteMetadata: SiteMetadata;
8
8
  constructor(_config: {}, context: ProviderContext);
9
9
  bundle<BundleIdentifier extends AbstractModuleId, RE extends RuntimeEnvironment>(moduleId: BundleIdentifier, runtimeEnvironment: RE, runtimeParams: RuntimeParams): Promise<BundleDefinition | undefined>;
10
- private getBundleMetadata;
10
+ getBundleMetadata(moduleId: Partial<AbstractModuleId>, localeId: string, debug: boolean): SiteBundle | undefined;
11
11
  /**
12
12
  * Takes a key from the site bundle metadata and creates an appropriate runtime BaseModuleReference to use in the LWR runtime.
13
13
  */
@@ -21,7 +21,7 @@ export default class StaticModuleProvider {
21
21
  if (metadata) {
22
22
  logger.warn({
23
23
  label: `${this.name}`,
24
- message: `We should not be asking for module source we have in our site metadata ${moduleId.specifier}`,
24
+ message: `We should not be asking for module source we have in our site metadata: ${moduleId.specifier}`,
25
25
  });
26
26
  // proceed to next provider
27
27
  return undefined;
@@ -96,7 +96,7 @@ export class SiteMetadataImpl {
96
96
  await fs.writeJSON(resourceMetadataPath, this.siteResources, { spaces: 2 });
97
97
  // Save Debug Resource Metadata
98
98
  const debugResourceMetadataPath = path.join(this.options.rootDir, DEBUG_STATIC_RESOURCE_METADATA_PATH);
99
- await fs.writeJSON(debugResourceMetadataPath, this.siteResources, { spaces: 2 });
99
+ await fs.writeJSON(debugResourceMetadataPath, this.debugSiteResources, { spaces: 2 });
100
100
  // Save Resource Metadata
101
101
  const assetMetadataPath = path.join(this.options.rootDir, STATIC_ASSET_METADATA_PATH);
102
102
  return fs.writeJSON(assetMetadataPath, this.siteAssets, { spaces: 2 });
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0-alpha.27",
7
+ "version": "0.13.0-alpha.29",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -52,11 +52,11 @@
52
52
  "build/**/*.d.ts"
53
53
  ],
54
54
  "dependencies": {
55
- "@lwrjs/diagnostics": "0.13.0-alpha.27",
56
- "@lwrjs/shared-utils": "0.13.0-alpha.27"
55
+ "@lwrjs/diagnostics": "0.13.0-alpha.29",
56
+ "@lwrjs/shared-utils": "0.13.0-alpha.29"
57
57
  },
58
58
  "devDependencies": {
59
- "@lwrjs/types": "0.13.0-alpha.27",
59
+ "@lwrjs/types": "0.13.0-alpha.29",
60
60
  "@types/express": "^4.17.21",
61
61
  "jest": "^26.6.3",
62
62
  "jest-express": "^1.12.0",
@@ -69,5 +69,5 @@
69
69
  "volta": {
70
70
  "extends": "../../../package.json"
71
71
  },
72
- "gitHead": "2145759ab377e5e625dcd449b80ac25f492513a7"
72
+ "gitHead": "31a003d89c287fead1a415d360f769be84689fe7"
73
73
  }