@lwrjs/core 0.11.10 → 0.11.12

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.
@@ -53,6 +53,11 @@ function createBundleMiddleware(context) {
53
53
  res.send(import_diagnostics.descriptions.UNRESOLVABLE.INVALID_JSON().message);
54
54
  return;
55
55
  }
56
+ if (!req.validateApiVersion(appConfig)) {
57
+ res.status(400);
58
+ res.send(import_diagnostics.descriptions.UNRESOLVABLE.INVALID_API_VERSION(req.params.apiVersion, appConfig.apiVersion).message);
59
+ return;
60
+ }
56
61
  const {runtimeEnvironment, runtimeParams} = req.getRuntimeContext(defaultRuntimeEnvironment);
57
62
  const importer = req.query.importer ? await (0, import_request.getRequestImporter)(req, moduleRegistry, runtimeParams) : void 0;
58
63
  const {moduleId, signature} = (0, import_identity.getModuleIdentity)(req, importer);
@@ -47,6 +47,11 @@ function createModuleMiddleware(context) {
47
47
  res.send(import_diagnostics.descriptions.UNRESOLVABLE.INVALID_JSON().message);
48
48
  return;
49
49
  }
50
+ if (!req.validateApiVersion(appConfig)) {
51
+ res.status(400);
52
+ res.send(import_diagnostics.descriptions.UNRESOLVABLE.INVALID_API_VERSION(req.params.apiVersion, appConfig.apiVersion).message);
53
+ return;
54
+ }
50
55
  const {runtimeEnvironment, runtimeParams} = req.getRuntimeContext(defaultRuntimeEnvironment);
51
56
  const importer = req.query.importer ? await (0, import_request.getRequestImporter)(req, moduleRegistry, runtimeParams) : void 0;
52
57
  const {moduleId, signature} = (0, import_identity.getModuleIdentity)(req, importer);
@@ -20,6 +20,12 @@ function createBundleMiddleware(context) {
20
20
  res.send(descriptions.UNRESOLVABLE.INVALID_JSON().message);
21
21
  return;
22
22
  }
23
+ if (!req.validateApiVersion(appConfig)) {
24
+ res.status(400);
25
+ res.send(descriptions.UNRESOLVABLE.INVALID_API_VERSION(req.params.apiVersion, appConfig.apiVersion)
26
+ .message);
27
+ return;
28
+ }
23
29
  const { runtimeEnvironment, runtimeParams } = req.getRuntimeContext(defaultRuntimeEnvironment);
24
30
  const importer = req.query.importer
25
31
  ? await getRequestImporter(req, moduleRegistry, runtimeParams)
@@ -19,6 +19,12 @@ function createModuleMiddleware(context) {
19
19
  res.send(descriptions.UNRESOLVABLE.INVALID_JSON().message);
20
20
  return;
21
21
  }
22
+ if (!req.validateApiVersion(appConfig)) {
23
+ res.status(400);
24
+ res.send(descriptions.UNRESOLVABLE.INVALID_API_VERSION(req.params.apiVersion, appConfig.apiVersion)
25
+ .message);
26
+ return;
27
+ }
22
28
  const { runtimeEnvironment, runtimeParams } = req.getRuntimeContext(defaultRuntimeEnvironment);
23
29
  const importer = req.query.importer
24
30
  ? await getRequestImporter(req, moduleRegistry, runtimeParams)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.11.10",
7
+ "version": "0.11.12",
8
8
  "homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
9
9
  "repository": {
10
10
  "type": "git",
@@ -39,33 +39,33 @@
39
39
  "build": "tsc -b"
40
40
  },
41
41
  "dependencies": {
42
- "@lwrjs/app-service": "0.11.10",
43
- "@lwrjs/asset-registry": "0.11.10",
44
- "@lwrjs/asset-transformer": "0.11.10",
45
- "@lwrjs/base-view-provider": "0.11.10",
46
- "@lwrjs/base-view-transformer": "0.11.10",
47
- "@lwrjs/client-modules": "0.11.10",
48
- "@lwrjs/config": "0.11.10",
49
- "@lwrjs/diagnostics": "0.11.10",
50
- "@lwrjs/esbuild": "0.11.10",
51
- "@lwrjs/fs-asset-provider": "0.11.10",
52
- "@lwrjs/fs-watch": "0.11.10",
53
- "@lwrjs/html-view-provider": "0.11.10",
54
- "@lwrjs/instrumentation": "0.11.10",
55
- "@lwrjs/loader": "0.11.10",
56
- "@lwrjs/lwc-module-provider": "0.11.10",
57
- "@lwrjs/markdown-view-provider": "0.11.10",
58
- "@lwrjs/module-bundler": "0.11.10",
59
- "@lwrjs/module-registry": "0.11.10",
60
- "@lwrjs/npm-module-provider": "0.11.10",
61
- "@lwrjs/nunjucks-view-provider": "0.11.10",
62
- "@lwrjs/o11y": "0.11.10",
63
- "@lwrjs/resource-registry": "0.11.10",
64
- "@lwrjs/router": "0.11.10",
65
- "@lwrjs/server": "0.11.10",
66
- "@lwrjs/shared-utils": "0.11.10",
67
- "@lwrjs/static": "0.11.10",
68
- "@lwrjs/view-registry": "0.11.10",
42
+ "@lwrjs/app-service": "0.11.12",
43
+ "@lwrjs/asset-registry": "0.11.12",
44
+ "@lwrjs/asset-transformer": "0.11.12",
45
+ "@lwrjs/base-view-provider": "0.11.12",
46
+ "@lwrjs/base-view-transformer": "0.11.12",
47
+ "@lwrjs/client-modules": "0.11.12",
48
+ "@lwrjs/config": "0.11.12",
49
+ "@lwrjs/diagnostics": "0.11.12",
50
+ "@lwrjs/esbuild": "0.11.12",
51
+ "@lwrjs/fs-asset-provider": "0.11.12",
52
+ "@lwrjs/fs-watch": "0.11.12",
53
+ "@lwrjs/html-view-provider": "0.11.12",
54
+ "@lwrjs/instrumentation": "0.11.12",
55
+ "@lwrjs/loader": "0.11.12",
56
+ "@lwrjs/lwc-module-provider": "0.11.12",
57
+ "@lwrjs/markdown-view-provider": "0.11.12",
58
+ "@lwrjs/module-bundler": "0.11.12",
59
+ "@lwrjs/module-registry": "0.11.12",
60
+ "@lwrjs/npm-module-provider": "0.11.12",
61
+ "@lwrjs/nunjucks-view-provider": "0.11.12",
62
+ "@lwrjs/o11y": "0.11.12",
63
+ "@lwrjs/resource-registry": "0.11.12",
64
+ "@lwrjs/router": "0.11.12",
65
+ "@lwrjs/server": "0.11.12",
66
+ "@lwrjs/shared-utils": "0.11.12",
67
+ "@lwrjs/static": "0.11.12",
68
+ "@lwrjs/view-registry": "0.11.12",
69
69
  "chokidar": "^3.5.3",
70
70
  "esbuild": "^0.9.7",
71
71
  "fs-extra": "^11.1.1",
@@ -75,7 +75,7 @@
75
75
  "ws": "^8.8.1"
76
76
  },
77
77
  "devDependencies": {
78
- "@lwrjs/types": "0.11.10",
78
+ "@lwrjs/types": "0.11.12",
79
79
  "@types/ws": "^8.5.3"
80
80
  },
81
81
  "peerDependencies": {
@@ -87,5 +87,5 @@
87
87
  "volta": {
88
88
  "extends": "../../../package.json"
89
89
  },
90
- "gitHead": "cf8e68c9c43e4408c5ceb00abcb671c7a02c11f1"
90
+ "gitHead": "571a3720c40540c1ef9804fee209b29054b62f1f"
91
91
  }