Skip to content

Commit bc83a49

Browse files
authored
Merge pull request #1318 from tawahpeggy/Bug1761485-expose-ErrorType-through-its-own-entry-point
Bug 1761485 - Expose ErrorType through its own entry point.
2 parents e7e5bd3 + 4ac629a commit bc83a49

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[Full changelog](https://github.com/mozilla/glean.js/compare/v1.0.0...main)
44

5+
* [#1318](https://github.com/mozilla/glean.js/pull/1318): Expose `ErrorType` through its own entry point.
56
* [#1271](https://github.com/mozilla/glean.js/pull/1271): BUGFIX: Fix pings validation function when scanning pings database on initialize.
67
* This bug was preventing pings that contained custom headers from being successfully validated and enqueued on initialize.
78
* [#1335](https://github.com/mozilla/glean.js/pull/1335): BUGFIX: Fix uploading gzip-compressed pings in Node.

glean/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"type": "module",
66
"sideEffects": false,
77
"exports": {
8+
"./error": "./dist/core/error/error_type.js",
89
"./package.json": "./package.json",
910
"./private/metrics/*": "./dist/core/metrics/types/*.js",
1011
"./private/ping": "./dist/core/pings/ping_type.js",
@@ -40,6 +41,9 @@
4041
],
4142
"testing": [
4243
"./dist/types/core/testing/index.d.ts"
44+
],
45+
"error": [
46+
"./dist/types/core/error/error_type.d.ts"
4347
]
4448
}
4549
},

glean/src/entry/node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
import platform from "../platform/node/index.js";
66
import base from "./base.js";
77

8-
export { ErrorType } from "../core/error/error_type.js";
98
export { default as Uploader, UploadResult, UploadResultStatus } from "../core/upload/uploader.js";
109
export default base(platform);

glean/src/entry/web.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
import platform from "../platform/browser/web/index.js";
66
import base from "./base.js";
77

8-
export { ErrorType } from "../core/error/error_type.js";
98
export { default as Uploader, UploadResult, UploadResultStatus } from "../core/upload/uploader.js";
109
export default base(platform);

glean/src/entry/webext.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@
55
import platform from "../platform/browser/webext/index.js";
66
import base from "./base.js";
77

8-
export { ErrorType } from "../core/error/error_type.js";
98
export { default as Uploader, UploadResult, UploadResultStatus } from "../core/upload/uploader.js";
109
export default base(platform);

samples/browser/webext/tests/unit/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
import { strict as assert } from "assert";
6-
import { ErrorType } from "@mozilla/glean/webext";
6+
import { ErrorType } from "@mozilla/glean/error";
77
import { testResetGlean } from "@mozilla/glean/testing";
88

99
import * as sample from "../../src/generated/sample.js";

samples/node/main.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
import { strict as assert } from "assert";
6-
import { ErrorType } from "@mozilla/glean/node";
6+
import { ErrorType } from "@mozilla/glean/error";
77
import { testResetGlean } from "@mozilla/glean/testing";
88

99
import main from "./main.js";

0 commit comments

Comments
 (0)