@lwrjs/module-bundler 0.9.0-alpha.14 → 0.9.0-alpha.15

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.
@@ -80,4 +80,10 @@ var LwrModuleBundler = class {
80
80
  resolveModuleUri(moduleId, runtimeEnvironment, runtimeParams, signature) {
81
81
  return this.moduleRegistry.resolveModuleUri(moduleId, runtimeEnvironment, runtimeParams, signature);
82
82
  }
83
+ getPublicApi() {
84
+ return {
85
+ getModuleBundle: this.getModuleBundle.bind(this),
86
+ resolveModuleUri: this.resolveModuleUri.bind(this)
87
+ };
88
+ }
83
89
  };
@@ -1,4 +1,4 @@
1
- import { AbstractModuleId, BundleConfig, BundleDefinition, BundleProvider, LwrAppObserver, ModuleBundler, ModuleId, ModuleRegistry, NormalizedLwrGlobalConfig, RuntimeEnvironment, RuntimeParams, SourceMapRuntimeEnvironment } from '@lwrjs/types';
1
+ import { AbstractModuleId, BundleConfig, BundleDefinition, BundleProvider, LwrAppObserver, ModuleBundler, ModuleId, ModuleRegistry, NormalizedLwrGlobalConfig, PublicModuleBundler, RuntimeEnvironment, RuntimeParams, SourceMapRuntimeEnvironment } from '@lwrjs/types';
2
2
  interface LwrModuleBundlerConfig {
3
3
  moduleRegistry: ModuleRegistry;
4
4
  appObserver?: LwrAppObserver;
@@ -22,6 +22,7 @@ export declare class LwrModuleBundler implements ModuleBundler {
22
22
  * @returns the URI
23
23
  */
24
24
  resolveModuleUri<R extends RuntimeEnvironment, S extends string | undefined>(moduleId: Required<Pick<ModuleId, 'specifier' | 'version'>>, runtimeEnvironment: R, runtimeParams?: RuntimeParams, signature?: S): S extends string ? string : Promise<string>;
25
+ getPublicApi(): PublicModuleBundler;
25
26
  }
26
27
  export {};
27
28
  //# sourceMappingURL=index.d.ts.map
package/build/es/index.js CHANGED
@@ -74,5 +74,11 @@ export class LwrModuleBundler {
74
74
  // Fallback to resolving the URI from the registry.
75
75
  return this.moduleRegistry.resolveModuleUri(moduleId, runtimeEnvironment, runtimeParams, signature);
76
76
  }
77
+ getPublicApi() {
78
+ return {
79
+ getModuleBundle: this.getModuleBundle.bind(this),
80
+ resolveModuleUri: this.resolveModuleUri.bind(this),
81
+ };
82
+ }
77
83
  }
78
84
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0-alpha.14",
7
+ "version": "0.9.0-alpha.15",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -42,13 +42,13 @@
42
42
  "build/**/*.d.ts"
43
43
  ],
44
44
  "dependencies": {
45
- "@lwrjs/shared-utils": "0.9.0-alpha.14",
45
+ "@lwrjs/shared-utils": "0.9.0-alpha.15",
46
46
  "@rollup/plugin-replace": "^2.4.2",
47
47
  "rollup": "~2.45.2",
48
48
  "rollup-plugin-terser": "^7.0.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@lwrjs/types": "0.9.0-alpha.14"
51
+ "@lwrjs/types": "0.9.0-alpha.15"
52
52
  },
53
53
  "optionalDependencies": {
54
54
  "esbuild": "^0.9.7"
@@ -56,5 +56,5 @@
56
56
  "engines": {
57
57
  "node": ">=14.15.4 <19"
58
58
  },
59
- "gitHead": "64e0ba617151429da6e09f1a9686628f64183d25"
59
+ "gitHead": "f32f103d2d5e516daccce1be69f68acd7b4b86fb"
60
60
  }