@carto/api-client 0.5.6-alpha.1 → 0.5.6-alpha.bundle.3

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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://github.com/CartoDB/carto-api-client#readme",
9
9
  "author": "Don McCurdy <donmccurdy@carto.com>",
10
10
  "packageManager": "yarn@4.3.1",
11
- "version": "0.5.6-alpha.1",
11
+ "version": "0.5.6-alpha.bundle.3",
12
12
  "license": "MIT",
13
13
  "publishConfig": {
14
14
  "access": "public"
@@ -30,6 +30,9 @@
30
30
  "./worker": {
31
31
  "types": "./build/worker.d.ts",
32
32
  "default": "./build/worker.js"
33
+ },
34
+ "./worker.global": {
35
+ "default": "./build/worker.global.js"
33
36
  }
34
37
  },
35
38
  "browserslist": [
@@ -103,7 +103,7 @@ export class WidgetTilesetSource<
103
103
  // must be a static, inline object – duplicated below.
104
104
  if (this.props.widgetWorkerUrl) {
105
105
  this._workerImpl = new Worker(this.props.widgetWorkerUrl, {
106
- type: 'module',
106
+ // type: 'module',
107
107
  name: 'cartowidgettileset',
108
108
  });
109
109
  } else {
@@ -116,6 +116,10 @@ export class WidgetTilesetSource<
116
116
  );
117
117
  }
118
118
 
119
+ this._workerImpl.addEventListener('error', (e) => {
120
+ console.error('widget-tileset-source worker error', e);
121
+ });
122
+
119
123
  this._workerImpl.postMessage({
120
124
  method: Method.INIT,
121
125
  params: [this.props],