@lwrjs/module-bundler 0.15.0-alpha.38 → 0.15.0-alpha.39

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.
@@ -81,14 +81,18 @@ var LwrModuleBundler = class {
81
81
  return bundleDef;
82
82
  }
83
83
  }
84
- return (0, import_instrumentation.getTracer)().trace({
85
- name: import_instrumentation.BundleSpan.GetBundle,
86
- attributes: {
87
- specifier: moduleId.specifier
88
- }
89
- }, () => {
90
- return this.inflightBundleDefinitions.execute(cacheKey, () => {
91
- return TASK_POOL.execute(async () => {
84
+ return this.inflightBundleDefinitions.execute(cacheKey, () => {
85
+ return TASK_POOL.execute(async () => {
86
+ return (0, import_instrumentation.getTracer)().trace({
87
+ name: import_instrumentation.BundleSpan.GetBundle,
88
+ attributes: {
89
+ specifier: moduleId.specifier,
90
+ version: moduleId.version ?? "",
91
+ locale: runtimeParams.locale ?? "",
92
+ ssr: ssr ? "TRUE" : "FALSE",
93
+ debug: debug ? "TRUE" : "FALSE"
94
+ }
95
+ }, async () => {
92
96
  for (const bundler of this.providers) {
93
97
  const bundleDef = await bundler.bundle(moduleId, runtimeEnvironment, runtimeParams, bundleConfigOverrides);
94
98
  if (bundleDef) {
@@ -101,8 +105,8 @@ var LwrModuleBundler = class {
101
105
  throw (0, import_diagnostics.createSingleDiagnosticError)({
102
106
  description: import_diagnostics.descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier)
103
107
  }, import_diagnostics.LwrUnresolvableError);
104
- }, this);
105
- });
108
+ });
109
+ }, this);
106
110
  });
107
111
  }
108
112
  async resolveModuleUri(moduleId, runtimeEnvironment, runtimeParams, signature) {
package/build/es/index.js CHANGED
@@ -63,15 +63,19 @@ export class LwrModuleBundler {
63
63
  return bundleDef;
64
64
  }
65
65
  }
66
- return getTracer().trace({
67
- name: BundleSpan.GetBundle,
68
- attributes: {
69
- specifier: moduleId.specifier,
70
- },
71
- }, () => {
72
- return this.inflightBundleDefinitions.execute(cacheKey, () => {
73
- // Run theses tasks in a task pool to throttle parallel requests.
74
- return TASK_POOL.execute(async () => {
66
+ return this.inflightBundleDefinitions.execute(cacheKey, () => {
67
+ // Run theses tasks in a task pool to throttle parallel requests.
68
+ return TASK_POOL.execute(async () => {
69
+ return getTracer().trace({
70
+ name: BundleSpan.GetBundle,
71
+ attributes: {
72
+ specifier: moduleId.specifier,
73
+ version: moduleId.version ?? '',
74
+ locale: runtimeParams.locale ?? '',
75
+ ssr: ssr ? 'TRUE' : 'FALSE',
76
+ debug: debug ? 'TRUE' : 'FALSE',
77
+ },
78
+ }, async () => {
75
79
  for (const bundler of this.providers) {
76
80
  // eslint-disable-next-line no-await-in-loop
77
81
  const bundleDef = await bundler.bundle(moduleId, runtimeEnvironment, runtimeParams, bundleConfigOverrides);
@@ -85,8 +89,8 @@ export class LwrModuleBundler {
85
89
  throw createSingleDiagnosticError({
86
90
  description: descriptions.UNRESOLVABLE.BUNDLE(moduleId.specifier),
87
91
  }, LwrUnresolvableError);
88
- }, this);
89
- });
92
+ });
93
+ }, this);
90
94
  });
91
95
  }
92
96
  /**
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.15.0-alpha.38",
7
+ "version": "0.15.0-alpha.39",
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.15.0-alpha.38",
51
- "@lwrjs/instrumentation": "0.15.0-alpha.38",
52
- "@lwrjs/shared-utils": "0.15.0-alpha.38",
50
+ "@lwrjs/diagnostics": "0.15.0-alpha.39",
51
+ "@lwrjs/instrumentation": "0.15.0-alpha.39",
52
+ "@lwrjs/shared-utils": "0.15.0-alpha.39",
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.15.0-alpha.38",
58
+ "@lwrjs/types": "0.15.0-alpha.39",
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": "9dbc44e168d9926f80db6022643efc3aa16b0782"
71
+ "gitHead": "27d047854320831ffa9aa6137e2f40691c896448"
72
72
  }