@sentry/esbuild-plugin 0.2.4 → 0.4.0

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/README.md CHANGED
@@ -31,7 +31,7 @@ $ yarn add @sentry/esbuild-plugin --dev
31
31
 
32
32
  ```js
33
33
  // esbuild.config.js
34
- const sentryEsbuildPlugin = require("@sentry/esbuild-plugin");
34
+ const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin");
35
35
 
36
36
  require("esbuild").build({
37
37
  plugins: [
@@ -59,7 +59,7 @@ The Sentry Esbuild Plugin takes an options argument with the following propertie
59
59
  | project | `string` | optional | The slug of the Sentry project associated with the app. Can also be specified via the `SENTRY_PROJECT` environment variable. |
60
60
  | authToken | `string` | optional | The authentication token to use for all communication with Sentry. Can be obtained from https://sentry.io/settings/account/api/auth-tokens/. Required scopes: `project:releases` (and `org:read` if `setCommits` option is used). Can also be specified via the `SENTRY_AUTH_TOKEN` env variable. |
61
61
  | url | `string` | optional | The base URL of your Sentry instance. Use this if you are using a self-hosted or Sentry instance other than sentry.io. This value can also be set via the `SENTRY_URL` environment variable. Defaults to https://sentry.io/, which is the correct value for SaaS customers. |
62
- | customHeader | `string` | optional | A header added to every outgoing network request. The format should be `header-key: header-value`. This value can also be specified via the `CUSTOM_HEADER` environment variable. |
62
+ | headers | `Record<string, string>` | optional | Headers added to every outgoing network request. |
63
63
  | vcsRemote | `string` | optional | Version control system remote name. This value can also be specified via the `SENTRY_VSC_REMOTE` environment variable. Defaults to `'origin'`. |
64
64
  | release | `string` | optional | Unique identifier for the release. This value can also be specified via the `SENTRY_RELEASE` environment variable. Defaults to the output of the `sentry-cli releases propose-version` command, which automatically detects values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA. (**the latter requires access to `git` CLI and for the root directory to be a valid repository**). |
65
65
  | dist | `string` | optional | Unique identifier for the distribution, used to further segment your release. Usually your build number. |
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,7 @@ var bundlerPluginCore = require('@sentry/bundler-plugin-core');
6
6
 
7
7
 
8
8
 
9
- Object.defineProperty(exports, 'default', {
9
+ Object.defineProperty(exports, 'sentryEsbuildPlugin', {
10
10
  enumerable: true,
11
11
  get: function () { return bundlerPluginCore.sentryEsbuildPlugin; }
12
12
  });
@@ -1,2 +1,2 @@
1
- export { sentryEsbuildPlugin as default } from '@sentry/bundler-plugin-core';
1
+ export { sentryEsbuildPlugin } from '@sentry/bundler-plugin-core';
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- export { sentryEsbuildPlugin as default } from "@sentry/bundler-plugin-core";
2
- export type { Options } from "@sentry/bundler-plugin-core";
1
+ export { sentryEsbuildPlugin } from "@sentry/bundler-plugin-core";
2
+ export type { Options as SentryEsbuildPluginOptions } from "@sentry/bundler-plugin-core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/esbuild-plugin",
3
- "version": "0.2.4",
3
+ "version": "0.4.0",
4
4
  "description": "Official Sentry esbuild plugin",
5
5
  "repository": "git@github.com:getsentry/sentry-javascript-bundler-plugins.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript-bundler-plugins/tree/main/packages/esbuild-plugin",
@@ -46,7 +46,7 @@
46
46
  "lint": "eslint ./src ./test"
47
47
  },
48
48
  "dependencies": {
49
- "@sentry/bundler-plugin-core": "0.2.4"
49
+ "@sentry/bundler-plugin-core": "0.4.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@babel/core": "7.18.5",
@@ -56,8 +56,8 @@
56
56
  "@rollup/plugin-commonjs": "22.0.1",
57
57
  "@rollup/plugin-json": "4.1.0",
58
58
  "@rollup/plugin-node-resolve": "13.3.0",
59
- "@sentry-internal/eslint-config": "0.2.4",
60
- "@sentry-internal/sentry-bundler-plugin-tsconfig": "0.2.4",
59
+ "@sentry-internal/eslint-config": "0.4.0",
60
+ "@sentry-internal/sentry-bundler-plugin-tsconfig": "0.4.0",
61
61
  "@swc/core": "^1.2.205",
62
62
  "@swc/jest": "^0.2.21",
63
63
  "@types/jest": "^28.1.3",