@granite-js/plugin-sentry 0.1.9 → 0.1.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @granite-js/plugin-sentry
2
2
 
3
+ ## 0.1.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d3a2b58]
8
+ - @granite-js/plugin-core@0.1.11
9
+ - @granite-js/utils@0.1.11
10
+
11
+ ## 0.1.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [9438be5]
16
+ - @granite-js/plugin-core@0.1.10
17
+ - @granite-js/utils@0.1.10
18
+
3
19
  ## 0.1.9
4
20
 
5
21
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -22,6 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
 
23
23
  //#endregion
24
24
  const fs_promises = __toESM(require("fs/promises"));
25
+ const __granite_js_plugin_core = __toESM(require("@granite-js/plugin-core"));
25
26
  const es_toolkit = __toESM(require("es-toolkit"));
26
27
  const crypto = __toESM(require("crypto"));
27
28
  const fs = __toESM(require("fs"));
@@ -130,7 +131,7 @@ const sentryPlugin = ({ enabled = true,...options } = {}) => {
130
131
  order: "post",
131
132
  handler: async function(config) {
132
133
  const sentryResults = [];
133
- const files = config.buildResults.map(({ outfile, sourcemapOutfile }) => ({
134
+ const files = config.buildResults.filter(__granite_js_plugin_core.isBuildSuccess).map(({ outfile, sourcemapOutfile }) => ({
134
135
  bundle: outfile,
135
136
  sourcemap: sourcemapOutfile
136
137
  }));
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import SentryCLI, { SentryCliOptions } from "@sentry/cli";
2
1
  import { GranitePluginCore } from "@granite-js/plugin-core";
2
+ import SentryCLI, { SentryCliOptions } from "@sentry/cli";
3
3
 
4
4
  //#region src/types.d.ts
5
5
  type SentryPluginOptions = WithSentryCliOptions | WithoutSentryCliOptions;
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as fs$2 from "fs/promises";
2
2
  import * as fs from "fs/promises";
3
+ import { isBuildSuccess } from "@granite-js/plugin-core";
3
4
  import { asyncNoop, noop } from "es-toolkit";
4
5
  import { randomUUID } from "crypto";
5
6
  import * as fs$1 from "fs";
@@ -108,7 +109,7 @@ const sentryPlugin = ({ enabled = true,...options } = {}) => {
108
109
  order: "post",
109
110
  handler: async function(config) {
110
111
  const sentryResults = [];
111
- const files = config.buildResults.map(({ outfile, sourcemapOutfile }) => ({
112
+ const files = config.buildResults.filter(isBuildSuccess).map(({ outfile, sourcemapOutfile }) => ({
112
113
  bundle: outfile,
113
114
  sourcemap: sourcemapOutfile
114
115
  }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@granite-js/plugin-sentry",
3
3
  "type": "module",
4
- "version": "0.1.9",
4
+ "version": "0.1.11",
5
5
  "description": "Plugin for integrating Sentry with Granite applications",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -33,8 +33,8 @@
33
33
  "vitest": "^3.1.4"
34
34
  },
35
35
  "dependencies": {
36
- "@granite-js/plugin-core": "0.1.9",
37
- "@granite-js/utils": "0.1.9",
36
+ "@granite-js/plugin-core": "0.1.11",
37
+ "@granite-js/utils": "0.1.11",
38
38
  "@sentry/cli": "^2.45.0",
39
39
  "es-toolkit": "^1.39.8",
40
40
  "execa": "^5"