@lwrjs/shared-utils 0.13.0-alpha.2 → 0.13.0-alpha.20

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/build/cjs/env.cjs CHANGED
@@ -12,6 +12,8 @@ __export(exports, {
12
12
  REQUEST_DEPTH_KEY: () => REQUEST_DEPTH_KEY,
13
13
  buildEnvironmentContext: () => buildEnvironmentContext,
14
14
  getFeatureFlags: () => getFeatureFlags,
15
+ isLambdaEnv: () => isLambdaEnv,
16
+ isLocalDev: () => isLocalDev,
15
17
  parseRequestDepthHeader: () => parseRequestDepthHeader
16
18
  });
17
19
  function getFeatureFlags() {
@@ -21,9 +23,16 @@ function getFeatureFlags() {
21
23
  SSR_STATIC_BUNDLES: process.env.SSR_STATIC_BUNDLES !== void 0 && process.env.SSR_STATIC_BUNDLES.toLowerCase() === "true" ? true : false,
22
24
  SSR_WITH_CSR_FALLBACK: process.env.SSR_WITH_CSR_FALLBACK !== void 0 && process.env.SSR_WITH_CSR_FALLBACK.toLowerCase() === "true" ? true : false,
23
25
  EXPERIMENTAL_UNVERSIONED_ALIASES: process.env.EXPERIMENTAL_UNVERSIONED_ALIASES !== void 0 && process.env.EXPERIMENTAL_UNVERSIONED_ALIASES.toLowerCase() === "true" ? true : false,
24
- LWR_TRACING: process.env.LWR_TRACING !== void 0 && process.env.LWR_TRACING.toLowerCase() !== "off" ? process.env.LWR_TRACING : false
26
+ LWR_TRACING: process.env.LWR_TRACING !== void 0 && process.env.LWR_TRACING.toLowerCase() !== "off" ? process.env.LWR_TRACING : false,
27
+ ENABLE_NONCE: process.env.ENABLE_NONCE !== void 0 && process.env.ENABLE_NONCE.toLowerCase() === "true" ? true : false
25
28
  };
26
29
  }
30
+ function isLambdaEnv() {
31
+ return process.env.AWS_LAMBDA_FUNCTION_NAME !== void 0;
32
+ }
33
+ function isLocalDev() {
34
+ return process.env.MRT_HMR === "true";
35
+ }
27
36
  function buildEnvironmentContext(runtimeParams) {
28
37
  const basePath = runtimeParams.basePath;
29
38
  const locale = runtimeParams.locale;
package/build/cjs/fs.cjs CHANGED
@@ -28,6 +28,7 @@ __export(exports, {
28
28
  PROTOCOL_HTTP: () => PROTOCOL_HTTP,
29
29
  PROTOCOL_HTTPS: () => PROTOCOL_HTTPS,
30
30
  canResolveView: () => canResolveView,
31
+ createIntegrityHash: () => createIntegrityHash,
31
32
  filterProtocolEntries: () => filterProtocolEntries,
32
33
  getViewSourceFromFile: () => getViewSourceFromFile,
33
34
  hashContent: () => hashContent,
@@ -60,6 +61,10 @@ var PROTOCOL_FILE = "file://";
60
61
  function hashContent(source) {
61
62
  return import_crypto.default.createHash("md5").update(source).digest("hex");
62
63
  }
64
+ function createIntegrityHash(source) {
65
+ const hash = import_crypto.default.createHash("sha256").update(source).digest("base64");
66
+ return `sha256-${hash}`;
67
+ }
63
68
  function readFile(filePath) {
64
69
  logMetrics(filePath);
65
70
  return import_fs_extra.default.readFileSync(filePath, "utf8");
@@ -27,7 +27,6 @@ __export(exports, {
27
27
  ASSETS_CACHE_DIR: () => ASSETS_CACHE_DIR,
28
28
  BUNDLE_SIGIL: () => BUNDLE_SIGIL,
29
29
  DEFAULT_LOCKER_TRUSTED_CMP: () => DEFAULT_LOCKER_TRUSTED_CMP,
30
- DEFAULT_LWR_BOOTSTRAP_CONFIG: () => DEFAULT_LWR_BOOTSTRAP_CONFIG,
31
30
  DEFAULT_LWR_LOCKER_CONFIG: () => DEFAULT_LWR_LOCKER_CONFIG,
32
31
  DEFAULT_TITLE: () => DEFAULT_TITLE,
33
32
  ENVIRONMENT_SIGIL: () => ENVIRONMENT_SIGIL,
@@ -35,6 +34,7 @@ __export(exports, {
35
34
  LATEST_SIGNATURE: () => LATEST_SIGNATURE,
36
35
  LOCALE_SIGIL: () => LOCALE_SIGIL,
37
36
  VERSION_NOT_PROVIDED: () => VERSION_NOT_PROVIDED,
37
+ VERSION_PREFIX: () => VERSION_PREFIX,
38
38
  VERSION_SIGIL: () => VERSION_SIGIL,
39
39
  explodeSpecifier: () => explodeSpecifier,
40
40
  explodeSpecifiers: () => explodeSpecifiers,
@@ -59,7 +59,8 @@ __export(exports, {
59
59
  });
60
60
  var import_slugify = __toModule(require("slugify"));
61
61
  var import_fast_json_stable_stringify = __toModule(require("fast-json-stable-stringify"));
62
- var VERSION_SIGIL = "/v/";
62
+ var VERSION_SIGIL = "v";
63
+ var VERSION_PREFIX = `/${VERSION_SIGIL}/`;
63
64
  var LOCALE_SIGIL = "l";
64
65
  var ENVIRONMENT_SIGIL = "e";
65
66
  var BUNDLE_SIGIL = "bi";
@@ -73,18 +74,6 @@ var DEFAULT_LWR_LOCKER_CONFIG = {
73
74
  enabled: false,
74
75
  trustedComponents: DEFAULT_LOCKER_TRUSTED_CMP
75
76
  };
76
- var DEFAULT_LWR_BOOTSTRAP_CONFIG = {
77
- autoBoot: true,
78
- syntheticShadow: false,
79
- workers: {},
80
- services: [],
81
- configAsSrc: false,
82
- ssr: false,
83
- preloadData: false,
84
- mixedMode: false,
85
- module: void 0,
86
- preloadModules: []
87
- };
88
77
  function normalizeVersionToUri(version) {
89
78
  return version.replace(/\./g, "_");
90
79
  }
@@ -122,10 +111,10 @@ function getSpecifier({specifier, namespace, name = "", version}) {
122
111
  if (specifier) {
123
112
  const versionMatch = specifier.match(/(.+)\/v\/[a-zA-Z0-9-_.]+$/);
124
113
  specifier = versionMatch ? versionMatch[1] : specifier;
125
- return version && version !== VERSION_NOT_PROVIDED ? `${specifier}${VERSION_SIGIL}${normalizeVersionToUri(version)}` : specifier;
114
+ return version && version !== VERSION_NOT_PROVIDED ? `${specifier}${VERSION_PREFIX}${normalizeVersionToUri(version)}` : specifier;
126
115
  }
127
116
  const bareSpecifier = namespace ? `${namespace}/${name}` : name;
128
- return version && version !== VERSION_NOT_PROVIDED ? `${bareSpecifier}${VERSION_SIGIL}${normalizeVersionToUri(version)}` : bareSpecifier;
117
+ return version && version !== VERSION_NOT_PROVIDED ? `${bareSpecifier}${VERSION_PREFIX}${normalizeVersionToUri(version)}` : bareSpecifier;
129
118
  }
130
119
  async function getVersionedModuleId(rawSpecifier, moduleRegistry, runtimeParams) {
131
120
  const moduleId = explodeSpecifier(rawSpecifier);
@@ -35,3 +35,4 @@ __exportStar(exports, __toModule(require("./env.cjs")));
35
35
  __exportStar(exports, __toModule(require("./lwr-app-observer.cjs")));
36
36
  __exportStar(exports, __toModule(require("./bundle.cjs")));
37
37
  __exportStar(exports, __toModule(require("./localization.cjs")));
38
+ __exportStar(exports, __toModule(require("./launch.cjs")));
@@ -0,0 +1,43 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, {get: all[name], enumerable: true});
11
+ };
12
+ var __exportStar = (target, module2, desc) => {
13
+ if (module2 && typeof module2 === "object" || typeof module2 === "function") {
14
+ for (let key of __getOwnPropNames(module2))
15
+ if (!__hasOwnProp.call(target, key) && key !== "default")
16
+ __defProp(target, key, {get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
17
+ }
18
+ return target;
19
+ };
20
+ var __toModule = (module2) => {
21
+ return __exportStar(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: () => module2.default, enumerable: true} : {value: module2, enumerable: true})), module2);
22
+ };
23
+
24
+ // packages/@lwrjs/shared-utils/src/launch.ts
25
+ __markAsModule(exports);
26
+ __export(exports, {
27
+ launch: () => launch
28
+ });
29
+ var import_os = __toModule(require("os"));
30
+ async function launch(port, https) {
31
+ const {exec} = await Promise.resolve().then(() => __toModule(require("child_process")));
32
+ let cmd = "open";
33
+ if (process.platform == "win32") {
34
+ cmd = "start";
35
+ } else if (process.platform == "linux") {
36
+ if (/microsoft/i.test((0, import_os.release)())) {
37
+ cmd = "cmd.exe /c start";
38
+ } else {
39
+ cmd = "xdg-open";
40
+ }
41
+ }
42
+ exec(`${cmd} ${https ? "https" : "http"}://localhost:${port}`);
43
+ }
@@ -62,8 +62,8 @@ async function getImportMetadataMappings(moduleIds, runtimeEnvironment, runtimeP
62
62
  }
63
63
  async function toImportMetadata(moduleGraph, existingImportMetadata = {imports: {}, index: {}}, moduleRegistry, runtimeEnvironment, runtimeParams = {}) {
64
64
  const specifier = moduleGraph.graphs[0].specifier;
65
- const uri = moduleGraph.uriMap[specifier];
66
- const definition = moduleGraph.linkedDefinitions[specifier];
65
+ const uri = lookupValueIgnoringVersion(moduleGraph.uriMap, specifier);
66
+ const definition = lookupValueIgnoringVersion(moduleGraph.linkedDefinitions, specifier);
67
67
  if (!uri) {
68
68
  throw new Error("URI was not included in the graph: " + specifier);
69
69
  }
@@ -83,8 +83,8 @@ async function toImportMetadata(moduleGraph, existingImportMetadata = {imports:
83
83
  if (isExternalSpecifier(depSpecifier, moduleRegistry.getConfig().bundleConfig)) {
84
84
  continue;
85
85
  }
86
- const depUri = moduleGraph.uriMap[depSpecifier];
87
- const depDef = moduleGraph.linkedDefinitions[depSpecifier];
86
+ const depUri = lookupValueIgnoringVersion(moduleGraph.uriMap, depSpecifier);
87
+ const depDef = lookupValueIgnoringVersion(moduleGraph.linkedDefinitions, depSpecifier);
88
88
  const depMissing = !depUri || !depDef;
89
89
  if (depMissing && runtimeEnvironment.format !== "esm") {
90
90
  if (!depUri) {
@@ -106,6 +106,18 @@ async function toImportMetadata(moduleGraph, existingImportMetadata = {imports:
106
106
  }
107
107
  return importMetadata;
108
108
  }
109
+ function lookupValueIgnoringVersion(map, specifier) {
110
+ const val = map[specifier];
111
+ if (val) {
112
+ return val;
113
+ }
114
+ const cleanedKey = (0, import_identity.explodeSpecifier)(specifier).specifier;
115
+ for (const mapKey of Object.keys(map)) {
116
+ if ((0, import_identity.explodeSpecifier)(mapKey).specifier === cleanedKey) {
117
+ return map[mapKey];
118
+ }
119
+ }
120
+ }
109
121
  function mergeImportMetadata(existing, newMetadata) {
110
122
  return {
111
123
  imports: {
package/build/es/env.d.ts CHANGED
@@ -1,7 +1,19 @@
1
1
  import type { EnvironmentContext, FeatureFlags, Headers, RuntimeParams } from '@lwrjs/types';
2
2
  export declare function getFeatureFlags(): FeatureFlags;
3
3
  /**
4
- * Create a serializable context for the lwr/environment variable
4
+ * This function is used to determine if the current environment is a lambda.
5
+ *
6
+ * @returns true if process is running in lambda environment
7
+ */
8
+ export declare function isLambdaEnv(): boolean;
9
+ /**
10
+ * This function is used to determine if lwr is running in the context of local development.
11
+ *
12
+ * @returns true if running in localdev mode
13
+ */
14
+ export declare function isLocalDev(): boolean;
15
+ /**
16
+ * Create a serializable context for user-land exposed environment variables
5
17
  */
6
18
  export declare function buildEnvironmentContext(runtimeParams: RuntimeParams): EnvironmentContext;
7
19
  export declare const REQUEST_DEPTH_HEADER = "X-SFDC-Request-Depth";
package/build/es/env.js CHANGED
@@ -28,10 +28,30 @@ export function getFeatureFlags() {
28
28
  LWR_TRACING: process.env.LWR_TRACING !== undefined && process.env.LWR_TRACING.toLowerCase() !== 'off'
29
29
  ? process.env.LWR_TRACING
30
30
  : false,
31
+ ENABLE_NONCE: process.env.ENABLE_NONCE !== undefined && process.env.ENABLE_NONCE.toLowerCase() === 'true'
32
+ ? true
33
+ : false,
31
34
  };
32
35
  }
33
36
  /**
34
- * Create a serializable context for the lwr/environment variable
37
+ * This function is used to determine if the current environment is a lambda.
38
+ *
39
+ * @returns true if process is running in lambda environment
40
+ */
41
+ export function isLambdaEnv() {
42
+ return process.env.AWS_LAMBDA_FUNCTION_NAME !== undefined;
43
+ }
44
+ /**
45
+ * This function is used to determine if lwr is running in the context of local development.
46
+ *
47
+ * @returns true if running in localdev mode
48
+ */
49
+ export function isLocalDev() {
50
+ // TODO still need to formalize environment variable names
51
+ return process.env.MRT_HMR === 'true';
52
+ }
53
+ /**
54
+ * Create a serializable context for user-land exposed environment variables
35
55
  */
36
56
  export function buildEnvironmentContext(runtimeParams) {
37
57
  // The baseBath from the config or set from the request (e.g. /shop)
package/build/es/fs.d.ts CHANGED
@@ -11,6 +11,10 @@ export declare const PROTOCOL_FILE = "file://";
11
11
  * @param source
12
12
  */
13
13
  export declare function hashContent(source: string | Buffer): string;
14
+ /**
15
+ * Create a Sub-resource Integrity Hash https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
16
+ */
17
+ export declare function createIntegrityHash(source: string | Buffer): string;
14
18
  /**
15
19
  * Read in the contents of the file path
16
20
  * @param filePath
package/build/es/fs.js CHANGED
@@ -20,6 +20,13 @@ export const PROTOCOL_FILE = 'file://';
20
20
  export function hashContent(source) {
21
21
  return crypto.createHash('md5').update(source).digest('hex');
22
22
  }
23
+ /**
24
+ * Create a Sub-resource Integrity Hash https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
25
+ */
26
+ export function createIntegrityHash(source) {
27
+ const hash = crypto.createHash('sha256').update(source).digest('base64');
28
+ return `sha256-${hash}`;
29
+ }
23
30
  /**
24
31
  * Read in the contents of the file path
25
32
  * @param filePath
@@ -1,6 +1,7 @@
1
1
  import getCacheKeyFromJson from 'fast-json-stable-stringify';
2
- import type { AbstractModuleId, AssetSource, BundleDefinition, ModuleDefinition, NormalizedLwrAppBootstrapConfig, PublicModuleRegistry, RuntimeEnvironment, RuntimeParams } from '@lwrjs/types';
3
- export declare const VERSION_SIGIL = "/v/";
2
+ import type { AbstractModuleId, AssetSource, BundleDefinition, ModuleDefinition, PublicModuleRegistry, RuntimeEnvironment, RuntimeParams } from '@lwrjs/types';
3
+ export declare const VERSION_SIGIL = "v";
4
+ export declare const VERSION_PREFIX: string;
4
5
  export declare const LOCALE_SIGIL = "l";
5
6
  export declare const ENVIRONMENT_SIGIL = "e";
6
7
  export declare const BUNDLE_SIGIL = "bi";
@@ -14,7 +15,6 @@ export declare const DEFAULT_LWR_LOCKER_CONFIG: {
14
15
  enabled: boolean;
15
16
  trustedComponents: string[];
16
17
  };
17
- export declare const DEFAULT_LWR_BOOTSTRAP_CONFIG: NormalizedLwrAppBootstrapConfig;
18
18
  type ModuleIdentifierPartial = Partial<AbstractModuleId>;
19
19
  /**
20
20
  * Turn the dots in a version into underscores
@@ -1,6 +1,7 @@
1
1
  import slugifyText from 'slugify';
2
2
  import getCacheKeyFromJson from 'fast-json-stable-stringify';
3
- export const VERSION_SIGIL = '/v/';
3
+ export const VERSION_SIGIL = 'v';
4
+ export const VERSION_PREFIX = `/${VERSION_SIGIL}/`;
4
5
  export const LOCALE_SIGIL = 'l';
5
6
  export const ENVIRONMENT_SIGIL = 'e';
6
7
  export const BUNDLE_SIGIL = 'bi';
@@ -15,18 +16,6 @@ export const DEFAULT_LWR_LOCKER_CONFIG = {
15
16
  enabled: false,
16
17
  trustedComponents: DEFAULT_LOCKER_TRUSTED_CMP,
17
18
  };
18
- export const DEFAULT_LWR_BOOTSTRAP_CONFIG = {
19
- autoBoot: true,
20
- syntheticShadow: false,
21
- workers: {},
22
- services: [],
23
- configAsSrc: false,
24
- ssr: false,
25
- preloadData: false,
26
- mixedMode: false,
27
- module: undefined,
28
- preloadModules: [],
29
- };
30
19
  /**
31
20
  * Turn the dots in a version into underscores
32
21
  * @param version
@@ -99,13 +88,13 @@ export function getSpecifier({ specifier, namespace, name = '', version }) {
99
88
  specifier = versionMatch ? versionMatch[1] : specifier;
100
89
  // If a module has an explicit 'version-not-provided' version this will not be reflected in the specifier
101
90
  return version && version !== VERSION_NOT_PROVIDED
102
- ? `${specifier}${VERSION_SIGIL}${normalizeVersionToUri(version)}`
91
+ ? `${specifier}${VERSION_PREFIX}${normalizeVersionToUri(version)}`
103
92
  : specifier;
104
93
  }
105
94
  const bareSpecifier = namespace ? `${namespace}/${name}` : name;
106
95
  // If a module has an explicit 'version-not-provided' version this will not be reflected in the specifier
107
96
  return version && version !== VERSION_NOT_PROVIDED
108
- ? `${bareSpecifier}${VERSION_SIGIL}${normalizeVersionToUri(version)}`
97
+ ? `${bareSpecifier}${VERSION_PREFIX}${normalizeVersionToUri(version)}`
109
98
  : bareSpecifier;
110
99
  }
111
100
  /**
@@ -14,4 +14,5 @@ export * from './env.js';
14
14
  export * from './lwr-app-observer.js';
15
15
  export * from './bundle.js';
16
16
  export * from './localization.js';
17
+ export * from './launch.js';
17
18
  //# sourceMappingURL=index.d.ts.map
package/build/es/index.js CHANGED
@@ -14,4 +14,5 @@ export * from './env.js';
14
14
  export * from './lwr-app-observer.js';
15
15
  export * from './bundle.js';
16
16
  export * from './localization.js';
17
+ export * from './launch.js';
17
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Shared utility for launching a localhost browser window at a given port.
3
+ *
4
+ * @param port - the port number
5
+ * @param https - if true, use https
6
+ */
7
+ export declare function launch(port: number, https?: boolean): Promise<void>;
8
+ //# sourceMappingURL=launch.d.ts.map
@@ -0,0 +1,24 @@
1
+ import { release } from 'os';
2
+ /**
3
+ * Shared utility for launching a localhost browser window at a given port.
4
+ *
5
+ * @param port - the port number
6
+ * @param https - if true, use https
7
+ */
8
+ export async function launch(port, https) {
9
+ const { exec } = await import('child_process');
10
+ let cmd = 'open';
11
+ if (process.platform == 'win32') {
12
+ cmd = 'start';
13
+ }
14
+ else if (process.platform == 'linux') {
15
+ if (/microsoft/i.test(release())) {
16
+ cmd = 'cmd.exe /c start';
17
+ }
18
+ else {
19
+ cmd = 'xdg-open';
20
+ }
21
+ }
22
+ exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
23
+ }
24
+ //# sourceMappingURL=launch.js.map
@@ -57,8 +57,8 @@ export async function getImportMetadataMappings(moduleIds, runtimeEnvironment, r
57
57
  export async function toImportMetadata(moduleGraph, existingImportMetadata = { imports: {}, index: {} }, moduleRegistry, runtimeEnvironment, runtimeParams = {}) {
58
58
  // root module specifier
59
59
  const specifier = moduleGraph.graphs[0].specifier;
60
- const uri = moduleGraph.uriMap[specifier];
61
- const definition = moduleGraph.linkedDefinitions[specifier];
60
+ const uri = lookupValueIgnoringVersion(moduleGraph.uriMap, specifier);
61
+ const definition = lookupValueIgnoringVersion(moduleGraph.linkedDefinitions, specifier);
62
62
  if (!uri) {
63
63
  throw new Error('URI was not included in the graph: ' + specifier);
64
64
  }
@@ -86,8 +86,8 @@ export async function toImportMetadata(moduleGraph, existingImportMetadata = { i
86
86
  // Ignore Externals
87
87
  continue;
88
88
  }
89
- const depUri = moduleGraph.uriMap[depSpecifier];
90
- const depDef = moduleGraph.linkedDefinitions[depSpecifier];
89
+ const depUri = lookupValueIgnoringVersion(moduleGraph.uriMap, depSpecifier);
90
+ const depDef = lookupValueIgnoringVersion(moduleGraph.linkedDefinitions, depSpecifier);
91
91
  const depMissing = !depUri || !depDef;
92
92
  if (depMissing && runtimeEnvironment.format !== 'esm') {
93
93
  if (!depUri) {
@@ -112,6 +112,21 @@ export async function toImportMetadata(moduleGraph, existingImportMetadata = { i
112
112
  }
113
113
  return importMetadata;
114
114
  }
115
+ // Function to look up values ignoring the version part
116
+ function lookupValueIgnoringVersion(map, specifier) {
117
+ // early out on exact match
118
+ const val = map[specifier];
119
+ if (val) {
120
+ return val;
121
+ }
122
+ const cleanedKey = explodeSpecifier(specifier).specifier;
123
+ // Iterate over the map to find the first matching key without version
124
+ for (const mapKey of Object.keys(map)) {
125
+ if (explodeSpecifier(mapKey).specifier === cleanedKey) {
126
+ return map[mapKey];
127
+ }
128
+ }
129
+ }
115
130
  function mergeImportMetadata(existing, newMetadata) {
116
131
  // TODO should there be an error if the metadata conflicts?
117
132
  return {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0-alpha.2",
7
+ "version": "0.13.0-alpha.20",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -37,25 +37,25 @@
37
37
  "build/**/*.d.ts"
38
38
  ],
39
39
  "dependencies": {
40
- "@lwrjs/diagnostics": "0.13.0-alpha.2",
41
- "es-module-lexer": "^1.3.0",
40
+ "@lwrjs/diagnostics": "0.13.0-alpha.20",
41
+ "es-module-lexer": "^1.5.3",
42
42
  "fast-json-stable-stringify": "^2.1.0",
43
43
  "magic-string": "^0.30.9",
44
44
  "mime-types": "^2.1.33",
45
45
  "ms": "^2.1.3",
46
46
  "parse5-sax-parser": "^6.0.1",
47
- "path-to-regexp": "^6.2.0",
47
+ "path-to-regexp": "^6.2.2",
48
48
  "resolve": "^1.22.8",
49
49
  "rollup": "^2.78.0",
50
50
  "slugify": "^1.4.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@lwrjs/types": "0.13.0-alpha.2",
53
+ "@lwrjs/types": "0.13.0-alpha.20",
54
54
  "@types/mime-types": "2.1.4",
55
55
  "@types/path-to-regexp": "^1.7.0"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=18.0.0"
59
59
  },
60
- "gitHead": "3ae1051ef1eb282f9c1fb54f6aab44ab5ba48480"
60
+ "gitHead": "2165594f2871f4f20a4083394e4372e67d1fa1b5"
61
61
  }