Skip to content

Commit b6b8748

Browse files
committed
feat: Remove index and console
1 parent 9109494 commit b6b8748

File tree

5 files changed

+9
-39
lines changed

5 files changed

+9
-39
lines changed

packages/next-plugin-sentry/src/on-error-server.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,22 @@ export default async function onErrorServer(err) {
99

1010
withScope(scope => {
1111
if (typeof err.req !== 'undefined') {
12-
scope.addEventProcessor((event, hint) => {
13-
console.log(hint);
12+
scope.addEventProcessor(event => {
1413
return parseRequest(event, err.req, {
1514
// 'cookies' and 'query_string' use `dynamicRequire` which has a bug in SSR envs right now — Kamil
1615
request: ['data', 'headers', 'method', 'url'],
1716
});
1817
});
1918
}
20-
19+
2120
const toCapture = err instanceof Error ? err : err.err;
22-
21+
2322
scope.addEventProcessor((event, hint) => {
2423
if (hint.originalException === toCapture) {
2524
event.exception.values[0].mechanism = {
2625
handled: false,
27-
type: "onErrorServer"
28-
}
26+
type: 'onErrorServer',
27+
};
2928
}
3029
return event;
3130
});

packages/nextjs/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"node": ">=6"
1111
},
1212
"module": "./esm/node.js",
13-
"browser": "./esm/browser.js",
14-
"types": "./dist/index.d.ts",
13+
"browser": "./esm/react.js",
14+
"types": "./esm/react.d.ts",
1515
"publishConfig": {
1616
"access": "public"
1717
},
@@ -30,11 +30,9 @@
3030
"rimraf": "3.0.2"
3131
},
3232
"scripts": {
33-
"build": "run-p build:es5 build:esm",
34-
"build:es5": "tsc -p tsconfig.build.json",
33+
"build": "run-p build:esm",
3534
"build:esm": "tsc -p tsconfig.esm.json",
36-
"build:watch": "run-p build:watch:es5 build:watch:esm",
37-
"build:watch:es5": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
35+
"build:watch": "run-p build:watch:esm",
3836
"build:watch:esm": "tsc -p tsconfig.esm.json -w --preserveWatchOutput",
3937
"clean": "rimraf dist esm coverage *.js *.js.map *.d.ts",
4038
"link:yarn": "yarn link",

packages/nextjs/src/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.
File renamed without changes.

packages/nextjs/src/sdk.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)