@moneko/react 1.6.0 → 1.6.2

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.
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react';
2
- export declare const a: any;
3
2
  export interface ErrorBoundaryProps {
4
3
  children: React.ReactNode;
5
4
  /**
@@ -1 +1 @@
1
- import{jsx as r,jsxs as t}from"react/jsx-runtime";import*as e from"react";import o from"lodash/isEqual";export const a=o;class s extends e.Component{constructor(r){super(r),this.state={}}componentDidCatch(r,t){this.setState({error:r,errorInfo:t})}render(){if(this.state.errorInfo){let e=this.props.fallback;return e?r(e,{error:this.state.error,errorInfo:this.state.errorInfo}):t("div",{children:[r("h2",{children:"Something went wrong."}),t("details",{style:{whiteSpace:"pre-wrap",color:"var(--error-color, red)"},children:[this.state.error&&this.state.error.toString(),r("br",{}),this.state.errorInfo.componentStack]})]})}return this.props.children}}export default s;
1
+ import{jsx as r,jsxs as t}from"react/jsx-runtime";import*as e from"react";class o extends e.Component{constructor(r){super(r),this.state={}}componentDidCatch(r,t){this.setState({error:r,errorInfo:t})}render(){if(this.state.errorInfo){let e=this.props.fallback;return e?r(e,{error:this.state.error,errorInfo:this.state.errorInfo}):t("div",{children:[r("h2",{children:"Something went wrong."}),t("details",{style:{whiteSpace:"pre-wrap",color:"var(--error-color, red)"},children:[this.state.error&&this.state.error.toString(),r("br",{}),this.state.errorInfo.componentStack]})]})}return this.props.children}}export default o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/react",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -20,10 +20,10 @@
20
20
  "shared-store-object": "1.1.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@moneko/transform-imports": "0.6.0",
23
+ "@moneko/transform-imports": "0.7.0",
24
24
  "@swc/cli": "0.4.0",
25
25
  "@swc/core": "1.7.3",
26
- "@types/node": "20.14.12",
26
+ "@types/node": "22.0.0",
27
27
  "@types/react": "18.3.3",
28
28
  "@types/react-dom": "18.3.0",
29
29
  "eslint-config-neko": "2.8.4",