@sentry/gatsby 6.19.1 → 6.19.4

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.
@@ -0,0 +1,4 @@
1
+ export * from '@sentry/react';
2
+ export { Integrations } from '@sentry/tracing';
3
+ export { init } from './sdk';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { GatsbyOptions } from './utils/types';
2
+ /**
3
+ * Inits the Sentry Gatsby SDK.
4
+ */
5
+ export declare function init(options: GatsbyOptions): void;
6
+ //# sourceMappingURL=sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,wBAAgB,IAAI,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CAkBjD"}
@@ -0,0 +1,13 @@
1
+ import { Integration } from '@sentry/types';
2
+ import { GatsbyOptions } from './types';
3
+ declare type UserFnIntegrations = (integrations: Integration[]) => Integration[];
4
+ export declare type UserIntegrations = Integration[] | UserFnIntegrations;
5
+ /**
6
+ * Returns the integrations to add to the SDK.
7
+ * If tracing is enabled, `BrowserTracing` is always present.
8
+ *
9
+ * @param options The options users have defined.
10
+ */
11
+ export declare function getIntegrationsFromOptions(options: GatsbyOptions): UserIntegrations;
12
+ export {};
13
+ //# sourceMappingURL=integrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/utils/integrations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,aAAK,kBAAkB,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,CAAC;AACzE,oBAAY,gBAAgB,GAAG,WAAW,EAAE,GAAG,kBAAkB,CAAC;AAElE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,aAAa,GAAG,gBAAgB,CASnF"}
@@ -0,0 +1,3 @@
1
+ import { BrowserOptions } from '@sentry/react';
2
+ export declare type GatsbyOptions = BrowserOptions;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,oBAAY,aAAa,GAAG,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/gatsby",
3
- "version": "6.19.1",
3
+ "version": "6.19.4",
4
4
  "description": "Official Sentry SDK for Gatsby.js",
5
5
  "repository": "git://github.com/getsentry/sentry-javascript.git",
6
6
  "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby",
@@ -15,29 +15,23 @@
15
15
  },
16
16
  "main": "dist/index.js",
17
17
  "module": "esm/index.js",
18
- "types": "dist/index.d.ts",
19
- "files": [
20
- "/dist",
21
- "/esm",
22
- "gatsby-browser.js",
23
- "gatsby-node.js"
24
- ],
18
+ "types": "build/types/index.d.ts",
25
19
  "publishConfig": {
26
20
  "access": "public"
27
21
  },
28
22
  "dependencies": {
29
- "@sentry/react": "6.19.1",
30
- "@sentry/tracing": "6.19.1",
23
+ "@sentry/react": "6.19.4",
24
+ "@sentry/tracing": "6.19.4",
31
25
  "@sentry/webpack-plugin": "1.18.8"
32
26
  },
33
27
  "peerDependencies": {
34
28
  "gatsby": "^2.0.0 || ^3.0.0 || ^4.0.0",
35
- "react": "15.x || 16.x || 17.x"
29
+ "react": "15.x || 16.x || 17.x || 18.x"
36
30
  },
37
31
  "devDependencies": {
38
- "@sentry/types": "6.19.1",
39
- "@testing-library/react": "^10.4.9",
40
- "react": "^17.0.0"
32
+ "@sentry/types": "6.19.4",
33
+ "@testing-library/react": "^13.0.0",
34
+ "react": "^18.0.0"
41
35
  },
42
36
  "scripts": {
43
37
  "build": "run-p build:cjs build:esm build:types",
@@ -52,16 +46,16 @@
52
46
  "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
53
47
  "build:esm:watch": "tsc -p tsconfig.esm.json --watch",
54
48
  "build:types:watch": "tsc -p tsconfig.types.json --watch",
49
+ "build:npm": "npm pack",
55
50
  "circularDepCheck": "madge --circular src/index.ts",
56
51
  "clean": "rimraf dist esm build coverage",
57
52
  "fix": "run-s fix:eslint fix:prettier",
58
53
  "fix:eslint": "eslint . --format stylish --fix",
59
- "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
54
+ "fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",
60
55
  "link:yarn": "yarn link",
61
56
  "lint": "run-s lint:prettier lint:eslint",
62
57
  "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
63
- "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
64
- "pack": "npm pack",
58
+ "lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
65
59
  "test": "jest",
66
60
  "test:watch": "jest --watch"
67
61
  },