@lwrjs/module-bundler 0.17.2-alpha.0 → 0.17.2-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.
- package/build/cjs/index.cjs +2 -6
- package/build/es/index.js +3 -7
- package/package.json +6 -6
package/build/cjs/index.cjs
CHANGED
|
@@ -103,9 +103,7 @@ var LwrModuleBundler = class {
|
|
|
103
103
|
return bundleDef;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
throw
|
|
107
|
-
description: import_diagnostics.descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier)
|
|
108
|
-
}, import_diagnostics.LwrUnresolvableError);
|
|
106
|
+
throw new import_diagnostics.LwrUnresolvableError(import_diagnostics.descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier), "bundle");
|
|
109
107
|
});
|
|
110
108
|
}, this);
|
|
111
109
|
});
|
|
@@ -113,9 +111,7 @@ var LwrModuleBundler = class {
|
|
|
113
111
|
async resolveModuleUri(moduleId, runtimeEnvironment, runtimeParams, signature) {
|
|
114
112
|
const bundleDefinition = await this.getModuleBundle(moduleId, runtimeEnvironment, runtimeParams);
|
|
115
113
|
if (!bundleDefinition) {
|
|
116
|
-
throw
|
|
117
|
-
description: import_diagnostics.descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier)
|
|
118
|
-
}, import_diagnostics.LwrUnresolvableError);
|
|
114
|
+
throw new import_diagnostics.LwrUnresolvableError(import_diagnostics.descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier), "bundle");
|
|
119
115
|
}
|
|
120
116
|
let uri;
|
|
121
117
|
if (bundleDefinition.src) {
|
package/build/es/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { join } from 'path';
|
|
2
2
|
import { LRUCache } from 'lru-cache';
|
|
3
|
-
import { LwrUnresolvableError,
|
|
3
|
+
import { LwrUnresolvableError, descriptions, logger } from '@lwrjs/diagnostics';
|
|
4
4
|
import { signBundle, getCacheKeyFromJson, InflightTasks, TaskPool, isLambdaEnv } from '@lwrjs/shared-utils';
|
|
5
5
|
import { getTracer, BundleSpan, cacheCountStore } from '@lwrjs/instrumentation';
|
|
6
6
|
const TASK_POOL = new TaskPool();
|
|
@@ -86,9 +86,7 @@ export class LwrModuleBundler {
|
|
|
86
86
|
return bundleDef;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
throw
|
|
90
|
-
description: descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier),
|
|
91
|
-
}, LwrUnresolvableError);
|
|
89
|
+
throw new LwrUnresolvableError(descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier), 'bundle');
|
|
92
90
|
});
|
|
93
91
|
}, this);
|
|
94
92
|
});
|
|
@@ -105,9 +103,7 @@ export class LwrModuleBundler {
|
|
|
105
103
|
// First get the bundle definition to see if a src attribute is set.
|
|
106
104
|
const bundleDefinition = await this.getModuleBundle(moduleId, runtimeEnvironment, runtimeParams);
|
|
107
105
|
if (!bundleDefinition) {
|
|
108
|
-
throw
|
|
109
|
-
description: descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier),
|
|
110
|
-
}, LwrUnresolvableError);
|
|
106
|
+
throw new LwrUnresolvableError(descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier), 'bundle');
|
|
111
107
|
}
|
|
112
108
|
let uri;
|
|
113
109
|
if (bundleDefinition.src) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.17.2-alpha.
|
|
7
|
+
"version": "0.17.2-alpha.2",
|
|
8
8
|
"homepage": "https://developer.salesforce.com/docs/platform/lwr/overview",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
"build/**/*.d.ts"
|
|
48
48
|
],
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@lwrjs/diagnostics": "0.17.2-alpha.
|
|
51
|
-
"@lwrjs/instrumentation": "0.17.2-alpha.
|
|
52
|
-
"@lwrjs/shared-utils": "0.17.2-alpha.
|
|
50
|
+
"@lwrjs/diagnostics": "0.17.2-alpha.2",
|
|
51
|
+
"@lwrjs/instrumentation": "0.17.2-alpha.2",
|
|
52
|
+
"@lwrjs/shared-utils": "0.17.2-alpha.2",
|
|
53
53
|
"@rollup/plugin-replace": "^5.0.7",
|
|
54
54
|
"lru-cache": "^10.4.3",
|
|
55
55
|
"rollup": "^2.79.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@lwrjs/types": "0.17.2-alpha.
|
|
58
|
+
"@lwrjs/types": "0.17.2-alpha.2",
|
|
59
59
|
"jest": "^26.6.3",
|
|
60
60
|
"ts-jest": "^26.5.6"
|
|
61
61
|
},
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"volta": {
|
|
69
69
|
"extends": "../../../package.json"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "739b237f5d7f2c1989142cb505a56cc763f21976"
|
|
72
72
|
}
|