@honeybadger-io/react
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -9,2 +9,6 @@ # Changelog | ||
## [1.0.2] - 2021-09-14 | ||
### Fixed | ||
- Fix typescript definitions (#272) | ||
## [1.0.1] - 2021-02-18 | ||
@@ -11,0 +15,0 @@ ### Fixed |
@@ -85,3 +85,3 @@ 'use strict'; | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -104,2 +104,4 @@ } catch (e) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
@@ -106,0 +108,0 @@ |
@@ -78,3 +78,3 @@ import React, { Component } from 'react'; | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -97,2 +97,4 @@ } catch (e) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
@@ -205,3 +207,3 @@ | ||
export default HoneyBadgerErrorBoundary; | ||
export { HoneyBadgerErrorBoundary as default }; | ||
//# sourceMappingURL=honeybadger-react.esm.js.map |
@@ -83,3 +83,3 @@ var HoneybadgerReact = (function (React, PropTypes) { | ||
try { | ||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); | ||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | ||
return true; | ||
@@ -102,2 +102,4 @@ } catch (e) { | ||
return call; | ||
} else if (call !== void 0) { | ||
throw new TypeError("Derived constructors may only return object or undefined"); | ||
} | ||
@@ -104,0 +106,0 @@ |
declare module "@honeybadger-io/react" { | ||
import { Component } from "react"; | ||
import Honeybadger from "@honeybadger-io/js"; | ||
import React from "react"; | ||
import BrowserClient from "@honeybadger-io/js/dist/browser/types/core/client"; | ||
import ServerClient from "@honeybadger-io/js/dist/server/types/core/client"; | ||
interface Props { | ||
honeybadger: Honeybadger; | ||
honeybadger: BrowserClient & ServerClient; | ||
children: React.ReactNode; | ||
@@ -11,7 +12,5 @@ ErrorComponent?: React.ReactNode | Function; | ||
class ErrorBoundary extends Component<Props> {} | ||
declare const ErrorBoundary: React.ComponentType<Props>; | ||
namespace ErrorBoundary {} | ||
export = ErrorBoundary; | ||
export default ErrorBoundary; | ||
} |
{ | ||
"name": "@honeybadger-io/react", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "React.js integration for honeybadger", | ||
@@ -39,23 +39,23 @@ "author": "Jason Truesdell <jason@yuzuten.com> (https://github.com/JasonTrue)", | ||
"devDependencies": { | ||
"@babel/core": "^7.8.4", | ||
"@babel/plugin-external-helpers": "^7.8.3", | ||
"@babel/plugin-proposal-class-properties": "^7.8.3", | ||
"@babel/preset-env": "^7.8.4", | ||
"@babel/preset-react": "^7.8.3", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@rollup/plugin-url": "^6.0.0", | ||
"@babel/core": "^7.15.5", | ||
"@babel/plugin-external-helpers": "^7.14.5", | ||
"@babel/plugin-proposal-class-properties": "^7.14.5", | ||
"@babel/preset-env": "^7.15.6", | ||
"@babel/preset-react": "^7.14.5", | ||
"@rollup/plugin-commonjs": "^20.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.4", | ||
"@rollup/plugin-url": "^6.1.0", | ||
"@svgr/rollup": "^5.3.1", | ||
"cross-env": "^7.0.0", | ||
"gh-pages": "^3.0.0", | ||
"react": "^17.0.1", | ||
"react-dom": "^17.0.1", | ||
"react-scripts": "^4.0.0", | ||
"react-test-renderer": "^17.0.1", | ||
"rollup": "^2.37.1", | ||
"gh-pages": "^3.2.3", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-scripts": "^4.0.3", | ||
"react-test-renderer": "^17.0.2", | ||
"rollup": "^2.56.3", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-peer-deps-external": "^2.2.2", | ||
"rollup-plugin-postcss": "^3.1.1", | ||
"rollup-plugin-postcss": "^4.0.1", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"sinon": "^9.0.0" | ||
"sinon": "^11.1.2" | ||
}, | ||
@@ -67,4 +67,4 @@ "files": [ | ||
"dependencies": { | ||
"@honeybadger-io/js": "^3.0.1" | ||
"@honeybadger-io/js": "^3.2.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35581
530
Updated@honeybadger-io/js@^3.2.4