@lwrjs/shared-utils 0.9.0-alpha.0 → 0.9.0-alpha.1

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.
@@ -29,6 +29,7 @@ __export(exports, {
29
29
  getClientBootstrapConfigurationRoutes: () => getClientBootstrapConfigurationRoutes,
30
30
  getClientBootstrapConfigurationUri: () => getClientBootstrapConfigurationUri,
31
31
  getClientBootstrapConfigurationUriPrefix: () => getClientBootstrapConfigurationUriPrefix,
32
+ isModuleOrBundleUrl: () => isModuleOrBundleUrl,
32
33
  removeClientBootstrapConfigurationSuffix: () => removeClientBootstrapConfigurationSuffix
33
34
  });
34
35
  var import_path_to_regexp = __toModule(require("path-to-regexp"));
@@ -95,3 +96,7 @@ function extractRequestParams(parameterizedRoute, resolvedUrl, existingParams) {
95
96
  }
96
97
  return params;
97
98
  }
99
+ var isModuleOrBundleRegEx = /^\/.*\/(module|bundle)\//i;
100
+ function isModuleOrBundleUrl(url) {
101
+ return isModuleOrBundleRegEx.test(url);
102
+ }
@@ -27,4 +27,5 @@ export declare function getClientBootstrapConfigurationRoutes(): string[];
27
27
  * @returns A parameter maps with existing parameters plus token value pairs from route and url
28
28
  */
29
29
  export declare function extractRequestParams(parameterizedRoute: string, resolvedUrl: string, existingParams?: Record<string, string>): Record<string, string>;
30
+ export declare function isModuleOrBundleUrl(url: string): boolean;
30
31
  //# sourceMappingURL=urls.d.ts.map
package/build/es/urls.js CHANGED
@@ -87,4 +87,8 @@ export function extractRequestParams(parameterizedRoute, resolvedUrl, existingPa
87
87
  }
88
88
  return params;
89
89
  }
90
+ const isModuleOrBundleRegEx = /^\/.*\/(module|bundle)\//i;
91
+ export function isModuleOrBundleUrl(url) {
92
+ return isModuleOrBundleRegEx.test(url);
93
+ }
90
94
  //# sourceMappingURL=urls.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.0",
7
+ "version": "0.9.0-alpha.1",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -45,13 +45,13 @@
45
45
  "winston": "^3.7.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@lwrjs/diagnostics": "0.9.0-alpha.0",
49
- "@lwrjs/types": "0.9.0-alpha.0",
48
+ "@lwrjs/diagnostics": "0.9.0-alpha.1",
49
+ "@lwrjs/types": "0.9.0-alpha.1",
50
50
  "@types/mime-types": "2.1.1",
51
51
  "@types/path-to-regexp": "^1.7.0"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=14.15.4 <19"
55
55
  },
56
- "gitHead": "6890d8619b295a49ee1ed8253a372337d83863be"
56
+ "gitHead": "7a32c273de67d937fcbcd42293d9e251ed01f123"
57
57
  }