@lwrjs/core 0.8.0-alpha.1 → 0.8.0-alpha.2

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.
@@ -101,8 +101,8 @@ var SiteGenerator = class {
101
101
  const {visitedUrls} = siteConfig;
102
102
  if (!visitedUrls.has(url)) {
103
103
  visitedUrls.add(url);
104
- if (url.indexOf("/:") !== -1) {
105
- console.error("Skipped url with variable path segment: " + url);
104
+ if (url.indexOf("/:") !== -1 || url.indexOf("*") !== -1) {
105
+ console.error("Skipped generation of url with variable path segment: " + url);
106
106
  return;
107
107
  }
108
108
  let context;
@@ -183,7 +183,7 @@ var SiteGenerator = class {
183
183
  const {outputDir} = siteConfig;
184
184
  let fileName = "index.html";
185
185
  let directoryPath = url;
186
- if (url.endsWith(".html")) {
186
+ if (url.endsWith(".html") || url.endsWith(".xml")) {
187
187
  const lastPathIndex = url.lastIndexOf("/") + 1;
188
188
  fileName = url.substring(lastPathIndex, url.length);
189
189
  directoryPath = url.substring(0, lastPathIndex);
@@ -108,8 +108,8 @@ export default class SiteGenerator {
108
108
  visitedUrls.add(url); // Maintain a list of visited urls here to avoid potential infinite loops
109
109
  // Skip urls with path segment variables (i.e. '/custom/:bar')
110
110
  // Users can specify specific urls via the '_additionalRoutePaths' config property
111
- if (url.indexOf('/:') !== -1) {
112
- console.error('Skipped url with variable path segment: ' + url);
111
+ if (url.indexOf('/:') !== -1 || url.indexOf('*') !== -1) {
112
+ console.error('Skipped generation of url with variable path segment: ' + url);
113
113
  return;
114
114
  }
115
115
  // Generate resource
@@ -255,9 +255,9 @@ export default class SiteGenerator {
255
255
  const { outputDir } = siteConfig;
256
256
  let fileName = 'index.html';
257
257
  let directoryPath = url;
258
- // If we have a route path that ends with a .html file extension,
258
+ // If we have a route path that ends with a html or xml file extension,
259
259
  // use that last path segment for the file name
260
- if (url.endsWith('.html')) {
260
+ if (url.endsWith('.html') || url.endsWith('.xml')) {
261
261
  const lastPathIndex = url.lastIndexOf('/') + 1;
262
262
  fileName = url.substring(lastPathIndex, url.length);
263
263
  directoryPath = url.substring(0, lastPathIndex);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.8.0-alpha.1",
7
+ "version": "0.8.0-alpha.2",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -33,31 +33,31 @@
33
33
  "package.cjs"
34
34
  ],
35
35
  "dependencies": {
36
- "@lwrjs/app-service": "0.8.0-alpha.1",
37
- "@lwrjs/asset-registry": "0.8.0-alpha.1",
38
- "@lwrjs/asset-transformer": "0.8.0-alpha.1",
39
- "@lwrjs/base-template-engine": "0.8.0-alpha.1",
40
- "@lwrjs/base-view-provider": "0.8.0-alpha.1",
41
- "@lwrjs/base-view-transformer": "0.8.0-alpha.1",
42
- "@lwrjs/client-modules": "0.8.0-alpha.1",
43
- "@lwrjs/compiler": "0.8.0-alpha.1",
44
- "@lwrjs/diagnostics": "0.8.0-alpha.1",
45
- "@lwrjs/fs-asset-provider": "0.8.0-alpha.1",
46
- "@lwrjs/html-view-provider": "0.8.0-alpha.1",
47
- "@lwrjs/loader": "0.8.0-alpha.1",
48
- "@lwrjs/lwc-module-provider": "0.8.0-alpha.1",
49
- "@lwrjs/lwc-ssr": "0.8.0-alpha.1",
50
- "@lwrjs/markdown-view-provider": "0.8.0-alpha.1",
51
- "@lwrjs/module-bundler": "0.8.0-alpha.1",
52
- "@lwrjs/module-registry": "0.8.0-alpha.1",
53
- "@lwrjs/npm-module-provider": "0.8.0-alpha.1",
54
- "@lwrjs/nunjucks-view-provider": "0.8.0-alpha.1",
55
- "@lwrjs/o11y": "0.8.0-alpha.1",
56
- "@lwrjs/resource-registry": "0.8.0-alpha.1",
57
- "@lwrjs/router": "0.8.0-alpha.1",
58
- "@lwrjs/server": "0.8.0-alpha.1",
59
- "@lwrjs/shared-utils": "0.8.0-alpha.1",
60
- "@lwrjs/view-registry": "0.8.0-alpha.1",
36
+ "@lwrjs/app-service": "0.8.0-alpha.2",
37
+ "@lwrjs/asset-registry": "0.8.0-alpha.2",
38
+ "@lwrjs/asset-transformer": "0.8.0-alpha.2",
39
+ "@lwrjs/base-template-engine": "0.8.0-alpha.2",
40
+ "@lwrjs/base-view-provider": "0.8.0-alpha.2",
41
+ "@lwrjs/base-view-transformer": "0.8.0-alpha.2",
42
+ "@lwrjs/client-modules": "0.8.0-alpha.2",
43
+ "@lwrjs/compiler": "0.8.0-alpha.2",
44
+ "@lwrjs/diagnostics": "0.8.0-alpha.2",
45
+ "@lwrjs/fs-asset-provider": "0.8.0-alpha.2",
46
+ "@lwrjs/html-view-provider": "0.8.0-alpha.2",
47
+ "@lwrjs/loader": "0.8.0-alpha.2",
48
+ "@lwrjs/lwc-module-provider": "0.8.0-alpha.2",
49
+ "@lwrjs/lwc-ssr": "0.8.0-alpha.2",
50
+ "@lwrjs/markdown-view-provider": "0.8.0-alpha.2",
51
+ "@lwrjs/module-bundler": "0.8.0-alpha.2",
52
+ "@lwrjs/module-registry": "0.8.0-alpha.2",
53
+ "@lwrjs/npm-module-provider": "0.8.0-alpha.2",
54
+ "@lwrjs/nunjucks-view-provider": "0.8.0-alpha.2",
55
+ "@lwrjs/o11y": "0.8.0-alpha.2",
56
+ "@lwrjs/resource-registry": "0.8.0-alpha.2",
57
+ "@lwrjs/router": "0.8.0-alpha.2",
58
+ "@lwrjs/server": "0.8.0-alpha.2",
59
+ "@lwrjs/shared-utils": "0.8.0-alpha.2",
60
+ "@lwrjs/view-registry": "0.8.0-alpha.2",
61
61
  "fs-extra": "^10.1.0",
62
62
  "jsonc-parser": "^3.0.0",
63
63
  "ms": "^2.1.3",
@@ -65,7 +65,7 @@
65
65
  "qs": "^6.9.4"
66
66
  },
67
67
  "devDependencies": {
68
- "@lwrjs/types": "0.8.0-alpha.1"
68
+ "@lwrjs/types": "0.8.0-alpha.2"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "lwc": ">= 1.x <= 2.x"
@@ -73,5 +73,5 @@
73
73
  "engines": {
74
74
  "node": ">=14.15.4 <19"
75
75
  },
76
- "gitHead": "2718cc5abe11d0d6fd5375cf9205167b6f69e244"
76
+ "gitHead": "44bee038acb30418870678d886e3ded4a6afecf0"
77
77
  }