diff --git a/package.json b/package.json index e59b6e8f1..c345b718b 100644 --- a/package.json +++ b/package.json @@ -59,8 +59,11 @@ "umi": "3.x" }, "devDependencies": { - "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "@babel/plugin-transform-class-properties": "^7.24.7", + "@babel/plugin-transform-private-methods": "^7.24.7", + "@babel/plugin-transform-private-property-in-object": "^7.24.7", + "@babel/preset-env": "^7.25.3", + "@babel/preset-react": "^7.24.7", "@changesets/cli": "^2.26.1", "@types/react": "17.x", "@types/react-dom": "17.x", @@ -72,6 +75,7 @@ "less-loader": "^11.0.0", "mini-css-extract-plugin": "^2.7.6", "npm-run-all": "^4.1.5", + "react-hot-loader": "^4.13.1", "rimraf": "^3.0.2", "source-map-loader": "^4.0.0", "style-loader": "^3.3.1", diff --git a/packages/gi-cli/templates/webpack.config.js b/packages/gi-cli/templates/webpack.config.js index fa3f7f3df..a31c38a53 100644 --- a/packages/gi-cli/templates/webpack.config.js +++ b/packages/gi-cli/templates/webpack.config.js @@ -39,8 +39,8 @@ module.exports = (env, argv) => { presets: ['@babel/env', '@babel/preset-react'], plugins: [ ['@babel/plugin-transform-class-properties', { loose: true }], - ['@babel/plugin-proposal-private-methods', { loose: true }], - ['@babel/plugin-proposal-private-property-in-object', { loose: true }], + ['@babel/plugin-transform-private-methods', { loose: true }], + ['@babel/plugin-transform-private-property-in-object', { loose: true }], ['react-hot-loader/babel'], ], }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fd3a070b6..87efed554 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -60,12 +60,12 @@ importers: specifier: 3.x version: 3.5.41(react-router@6.26.0) devDependencies: - '@babel/plugin-proposal-private-property-in-object': - specifier: ^7.21.11 - version: 7.21.11(@babel/core@7.25.2) '@babel/plugin-transform-class-properties': specifier: ^7.24.7 version: 7.24.7(@babel/core@7.25.2) + '@babel/plugin-transform-private-property-in-object': + specifier: ^7.24.7 + version: 7.24.7(@babel/core@7.25.2) '@changesets/cli': specifier: ^2.26.1 version: 2.26.1 @@ -1335,7 +1335,7 @@ packages: '@ant-design/colors': 6.0.0 '@ant-design/icons-svg': 4.4.2 '@babel/runtime': 7.25.0 - classnames: 2.2.6 + classnames: 2.5.1 lodash: 4.17.21 rc-util: 5.43.0(react-dom@17.0.2)(react@17.0.2) react: 17.0.2 @@ -2938,7 +2938,7 @@ packages: '@babel/traverse': 7.25.3(supports-color@5.5.0) '@babel/types': 7.25.2 convert-source-map: 1.9.0 - debug: 4.1.1 + debug: 4.3.6(supports-color@5.5.0) json5: 2.2.3 lodash: 4.17.21 resolve: 1.22.8 @@ -4232,7 +4232,7 @@ packages: '@babel/core': ^7.0.0-0 dependencies: '@babel/core': 7.12.9 - '@babel/helper-plugin-utils': 7.10.4 + '@babel/helper-plugin-utils': 7.24.8 '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@7.12.9) '@babel/plugin-transform-parameters': 7.24.7(@babel/core@7.12.9) dev: true @@ -4454,22 +4454,6 @@ packages: '@babel/core': 7.4.4 dev: true - /@babel/plugin-proposal-private-property-in-object@7.21.11(@babel/core@7.25.2): - resolution: {integrity: sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==} - engines: {node: '>=6.9.0'} - deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead. - peerDependencies: - '@babel/core': ^7.0.0-0 - dependencies: - '@babel/core': 7.25.2 - '@babel/helper-annotate-as-pure': 7.24.7 - '@babel/helper-create-class-features-plugin': 7.25.0(@babel/core@7.25.2) - '@babel/helper-plugin-utils': 7.24.8 - '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.25.2) - transitivePeerDependencies: - - supports-color - dev: true - /@babel/plugin-proposal-unicode-property-regex@7.18.6(@babel/core@7.18.2): resolution: {integrity: sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==} engines: {node: '>=4'} @@ -18505,30 +18489,6 @@ packages: - react-dom - react-router - /@umijs/bundler-utils@3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0): - resolution: {integrity: sha512-XTql7bJ6UtkGe9QL2I6JqbT5zwUWpi/Qi28d9hPk6bt0Anaxj2tGNy2IoK89zxhOw3BgMsLCXfPX/vUqo4FiXw==} - dependencies: - '@umijs/babel-preset-umi': 3.5.42 - '@umijs/types': 3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0) - '@umijs/utils': 3.5.42 - transitivePeerDependencies: - - react - - react-dom - - react-router - dev: false - - /@umijs/bundler-utils@3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0): - resolution: {integrity: sha512-XTql7bJ6UtkGe9QL2I6JqbT5zwUWpi/Qi28d9hPk6bt0Anaxj2tGNy2IoK89zxhOw3BgMsLCXfPX/vUqo4FiXw==} - dependencies: - '@umijs/babel-preset-umi': 3.5.42 - '@umijs/types': 3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0) - '@umijs/utils': 3.5.42 - transitivePeerDependencies: - - react - - react-dom - - react-router - dev: false - /@umijs/bundler-utils@4.3.11: resolution: {integrity: sha512-P725tEWixiCJGGEQked2cbefsJipJ7hZ177mT5kR3fyA61+cOtJDdD3i2pw2IOCvIySosBupfbV3QLjqMjcxbw==} dependencies: @@ -18614,56 +18574,6 @@ packages: - react-dom - react-router - /@umijs/bundler-webpack@3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0): - resolution: {integrity: sha512-UMhL7oESkVI8iLhawpYOtmPABcJAIuIaV96wiy3SweDs/0V91xYxCl+GjC17oJ71jk6aCADy7nwU9l8T2+Llyw==} - hasBin: true - dependencies: - '@umijs/bundler-utils': 3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0) - '@umijs/case-sensitive-paths-webpack-plugin': 1.0.1 - '@umijs/deps': 3.5.42 - '@umijs/types': 3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0) - '@umijs/utils': 3.5.42 - jest-worker: 26.6.2 - node-libs-browser: 2.2.1 - normalize-url: 1.9.1 - postcss: 7.0.32 - postcss-flexbugs-fixes: 4.2.1 - postcss-loader: 3.0.0 - postcss-preset-env: 6.7.0 - postcss-safe-parser: 4.0.2 - terser: 5.14.2 - webpack-chain: 6.5.1 - transitivePeerDependencies: - - react - - react-dom - - react-router - dev: false - - /@umijs/bundler-webpack@3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0): - resolution: {integrity: sha512-UMhL7oESkVI8iLhawpYOtmPABcJAIuIaV96wiy3SweDs/0V91xYxCl+GjC17oJ71jk6aCADy7nwU9l8T2+Llyw==} - hasBin: true - dependencies: - '@umijs/bundler-utils': 3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0) - '@umijs/case-sensitive-paths-webpack-plugin': 1.0.1 - '@umijs/deps': 3.5.42 - '@umijs/types': 3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0) - '@umijs/utils': 3.5.42 - jest-worker: 26.6.2 - node-libs-browser: 2.2.1 - normalize-url: 1.9.1 - postcss: 7.0.32 - postcss-flexbugs-fixes: 4.2.1 - postcss-loader: 3.0.0 - postcss-preset-env: 6.7.0 - postcss-safe-parser: 4.0.2 - terser: 5.14.2 - webpack-chain: 6.5.1 - transitivePeerDependencies: - - react - - react-dom - - react-router - dev: false - /@umijs/bundler-webpack@4.3.11(typescript@4.7.4)(webpack@5.93.0): resolution: {integrity: sha512-hr/Ai+QROujRDkgJPv0DOKTNHg31SkEy+P3wXDagdZV3HX6CSqsphZHFpZmJN7Mw72joX4jFonIf3Lif5oB7KA==} hasBin: true @@ -18831,15 +18741,6 @@ packages: umi: 3.x dependencies: umi: 3.5.41(react-router@6.26.0) - dev: true - - /@umijs/plugin-analytics@0.2.4(umi@3.5.42): - resolution: {integrity: sha512-aIHc/okDmCae/6iJS3lRV2b9/cuFUoGQhioeoZzC2mBYy43o0Z6KWSY5TlzraY4bDdGurWsFQC6dB1TVUCMGbg==} - peerDependencies: - umi: 3.x - dependencies: - umi: 3.5.42(react-router@6.26.0) - dev: false /@umijs/plugin-antd@0.10.0(react-dom@17.0.2)(react@17.0.2)(umi@3.5.41): resolution: {integrity: sha512-qXhJVR0b9MeeA5IgjysYqmXFpTJvF1IEiJLjD1/DO1qbIc6JNv1I52Y10EC3KYkB0TECQkTzDInAZ2iczQSHQA==} @@ -19015,42 +18916,6 @@ packages: transitivePeerDependencies: - react-dom - /@umijs/preset-built-in@3.5.42(react-dom@16.14.0)(react@16.14.0): - resolution: {integrity: sha512-dD+mAqhB+yfSz4/C7SOX/q4aiLMuNi+fQ3Fmuggvq/9ermM1EDFbDyIPMGLx/wBWQKcsMf3wGMDPbLjLzIPR/A==} - peerDependencies: - react: 16.x || 17.x || 17 - dependencies: - '@types/react-router-config': 5.0.2 - '@umijs/babel-preset-umi': 3.5.42 - '@umijs/bundler-webpack': 3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0) - '@umijs/core': 3.5.42 - '@umijs/deps': 3.5.42 - '@umijs/renderer-mpa': 3.5.42(react-dom@16.14.0)(react@16.14.0) - '@umijs/renderer-react': 3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0) - '@umijs/runtime': 3.5.42(react@16.14.0) - '@umijs/server': 3.5.42 - '@umijs/types': 3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0) - '@umijs/utils': 3.5.42 - ansi-html: 0.0.9 - core-js: 3.6.5 - core-js-pure: 3.38.0 - error-stack-parser: 2.1.4 - es-module-lexer: 0.7.1 - es5-imcompatible-versions: 0.1.90 - history-with-query: 4.10.4 - html-entities: 2.5.2 - mime: 1.4.1 - react: 16.14.0 - react-refresh: 0.10.0 - react-router: 5.2.0(react@16.14.0) - react-router-config: 5.1.1(react-router@5.2.0)(react@16.14.0) - react-router-dom: 5.2.0(react@16.14.0) - regenerator-runtime: 0.13.5 - schema-utils: 3.3.0 - transitivePeerDependencies: - - react-dom - dev: false - /@umijs/preset-dumi@1.1.50(react-dom@16.14.0)(react-router@6.26.0)(react@17.0.2)(typescript@5.5.4)(umi@3.5.41): resolution: {integrity: sha512-HhKMGct5DEd+ZZxBLbCUvXxnMh4MYlMeFIQXf2Ei9tVaKCeNri4I+BYb93swAmEl2v+2PxrKHCCzXNv07C+9Uw==} peerDependencies: @@ -19114,7 +18979,7 @@ packages: - utf-8-validate dev: true - /@umijs/preset-dumi@1.1.50(react-dom@17.0.2)(react-router@6.26.0)(react@17.0.2)(typescript@4.9.5)(umi@3.5.42): + /@umijs/preset-dumi@1.1.50(react-dom@17.0.2)(react-router@6.26.0)(react@17.0.2)(typescript@4.9.5)(umi@3.5.41): resolution: {integrity: sha512-HhKMGct5DEd+ZZxBLbCUvXxnMh4MYlMeFIQXf2Ei9tVaKCeNri4I+BYb93swAmEl2v+2PxrKHCCzXNv07C+9Uw==} peerDependencies: umi: ^3.0.0 @@ -19127,7 +18992,7 @@ packages: '@mapbox/hast-util-to-jsx': 1.0.0 '@umijs/babel-preset-umi': 3.5.42 '@umijs/core': 3.5.42 - '@umijs/plugin-analytics': 0.2.4(umi@3.5.42) + '@umijs/plugin-analytics': 0.2.4(umi@3.5.41) '@umijs/runtime': 3.5.42(react@17.0.2) '@umijs/types': 3.5.42(react-dom@17.0.2)(react-router@6.26.0)(react@17.0.2) '@umijs/utils': 3.5.42 @@ -19162,7 +19027,7 @@ packages: sitemap: 6.4.0 slash2: 2.0.0 terser: 5.31.3 - umi: 3.5.42(react-router@6.26.0) + umi: 3.5.41(react-router@6.26.0) unified: 8.4.2 unist-util-visit: 2.0.3 unist-util-visit-parents: 3.1.1 @@ -19262,19 +19127,6 @@ packages: react: 16.14.0 react-dom: 16.14.0(react@16.14.0) - /@umijs/renderer-mpa@3.5.42(react-dom@16.14.0)(react@16.14.0): - resolution: {integrity: sha512-VYaux2tU8IVfXe63nOVO701fmWhjpIUfuHJ9QC0pRi/So00nVjonyT6qwMhdH7RJFMlZN20qXG2XmKRjp6O/Uw==} - peerDependencies: - react: 16.x || 17.x || 17 - react-dom: 16.x || 17.x - dependencies: - '@types/react': 16.14.60 - '@types/react-dom': 16.9.24 - '@umijs/runtime': 3.5.42(react@16.14.0) - react: 16.14.0 - react-dom: 16.14.0(react@16.14.0) - dev: false - /@umijs/renderer-react@3.5.41(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0): resolution: {integrity: sha512-DmExaziU84uFXv09gYXpFk/tHB+mjINUD8YmYULjbQ+QQA9so2zkxNSv9gYy5hXNepheUMd+uriV/qUB6HNBVg==} peerDependencies: @@ -19324,40 +19176,6 @@ packages: transitivePeerDependencies: - react-router - /@umijs/renderer-react@3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0): - resolution: {integrity: sha512-LR7524Algii0zjJiqWG/04clLame/zbr4etKT+h44P/a7n7FYV5NHBmnahHON8VQuR2Zie5MPs1OW3vdUxa9ZQ==} - peerDependencies: - react: 16.x || 17.x || 17 - react-dom: 16.x || 17.x - dependencies: - '@types/react': 16.14.60 - '@types/react-dom': 16.9.24 - '@types/react-router-config': 5.0.11 - '@umijs/runtime': 3.5.42(react@16.14.0) - react: 16.14.0 - react-dom: 16.14.0(react@16.14.0) - react-router-config: 5.1.1(react-router@5.2.0)(react@16.14.0) - transitivePeerDependencies: - - react-router - dev: false - - /@umijs/renderer-react@3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0): - resolution: {integrity: sha512-LR7524Algii0zjJiqWG/04clLame/zbr4etKT+h44P/a7n7FYV5NHBmnahHON8VQuR2Zie5MPs1OW3vdUxa9ZQ==} - peerDependencies: - react: 16.x || 17.x || 17 - react-dom: 16.x || 17.x - dependencies: - '@types/react': 16.14.60 - '@types/react-dom': 16.9.24 - '@types/react-router-config': 5.0.11 - '@umijs/runtime': 3.5.42(react@16.14.0) - react: 16.14.0 - react-dom: 16.14.0(react@16.14.0) - react-router-config: 5.1.1(react-router@6.26.0)(react@16.14.0) - transitivePeerDependencies: - - react-router - dev: false - /@umijs/renderer-react@3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@17.0.2): resolution: {integrity: sha512-LR7524Algii0zjJiqWG/04clLame/zbr4etKT+h44P/a7n7FYV5NHBmnahHON8VQuR2Zie5MPs1OW3vdUxa9ZQ==} peerDependencies: @@ -19427,20 +19245,6 @@ packages: react-router-dom: 5.2.0(react@16.14.0) use-subscription: 1.5.1(react@16.14.0) - /@umijs/runtime@3.5.42(react@16.14.0): - resolution: {integrity: sha512-S6SELu1beXgZ5Wyh0eZx7z8k6YKsh+EqOf3SX0vNBWPp6YpkpWTqwloOsGSHPvgqUDLlpMZn5ldtJ+HQR14JQA==} - peerDependencies: - react: 16.x || 17.x || 17 - dependencies: - '@types/react-router': 5.1.12 - '@types/react-router-dom': 5.1.7 - history-with-query: 4.10.4 - react: 16.14.0 - react-router: 5.2.0(react@16.14.0) - react-router-dom: 5.2.0(react@16.14.0) - use-subscription: 1.5.1(react@16.14.0) - dev: false - /@umijs/runtime@3.5.42(react@17.0.2): resolution: {integrity: sha512-S6SELu1beXgZ5Wyh0eZx7z8k6YKsh+EqOf3SX0vNBWPp6YpkpWTqwloOsGSHPvgqUDLlpMZn5ldtJ+HQR14JQA==} peerDependencies: @@ -19540,38 +19344,6 @@ packages: - react-dom - react-router - /@umijs/types@3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0): - resolution: {integrity: sha512-agWIT/RQnpEf+pQCQELNJl3dQVERo21npAtwXYp/JAjlzSmvk8MCilR8Pubc0rZEEUfW15PBu7C0PRl+xZDxTg==} - dependencies: - '@umijs/babel-preset-umi': 3.5.42 - '@umijs/core': 3.5.42 - '@umijs/deps': 3.5.42 - '@umijs/renderer-react': 3.5.42(react-dom@16.14.0)(react-router@5.2.0)(react@16.14.0) - '@umijs/server': 3.5.42 - '@umijs/utils': 3.5.42 - webpack-chain: 6.5.1 - transitivePeerDependencies: - - react - - react-dom - - react-router - dev: false - - /@umijs/types@3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0): - resolution: {integrity: sha512-agWIT/RQnpEf+pQCQELNJl3dQVERo21npAtwXYp/JAjlzSmvk8MCilR8Pubc0rZEEUfW15PBu7C0PRl+xZDxTg==} - dependencies: - '@umijs/babel-preset-umi': 3.5.42 - '@umijs/core': 3.5.42 - '@umijs/deps': 3.5.42 - '@umijs/renderer-react': 3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0) - '@umijs/server': 3.5.42 - '@umijs/utils': 3.5.42 - webpack-chain: 6.5.1 - transitivePeerDependencies: - - react - - react-dom - - react-router - dev: false - /@umijs/types@3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@17.0.2): resolution: {integrity: sha512-agWIT/RQnpEf+pQCQELNJl3dQVERo21npAtwXYp/JAjlzSmvk8MCilR8Pubc0rZEEUfW15PBu7C0PRl+xZDxTg==} dependencies: @@ -20696,6 +20468,13 @@ packages: buffer-equal: 1.0.1 dev: true + /append-transform@1.0.0: + resolution: {integrity: sha512-P009oYkeHyU742iSZJzZZywj4QRJdnTWffaKuJQLablCZ1uz6/cW4yaRgcDaoQ+uwOxxnt0gRUcwfsNP2ri0gw==} + engines: {node: '>=4'} + dependencies: + default-require-extensions: 2.0.0 + dev: true + /aproba@1.2.0: resolution: {integrity: sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==} @@ -20706,6 +20485,10 @@ packages: /arch@2.2.0: resolution: {integrity: sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==} + /archy@1.0.0: + resolution: {integrity: sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw==} + dev: true + /are-we-there-yet@1.1.7: resolution: {integrity: sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==} deprecated: This package is no longer supported. @@ -23512,6 +23295,16 @@ packages: responselike: 1.0.2 dev: true + /caching-transform@3.0.2: + resolution: {integrity: sha512-Mtgcv3lh3U0zRii/6qVgQODdPA4G3zhG+jtbCWj39RXuUFTMzH0vcdMtaJS1jPowd+It2Pqr6y3NJMQqOqCE2w==} + engines: {node: '>=6'} + dependencies: + hasha: 3.0.0 + make-dir: 2.1.0 + package-hash: 3.0.0 + write-file-atomic: 2.4.3 + dev: true + /call-bind@1.0.7: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} @@ -25081,6 +24874,13 @@ packages: - encoding dev: false + /cross-spawn@4.0.2: + resolution: {integrity: sha512-yAXz/pA1tD8Gtg2S98Ekf/sewp3Lcp3YoFKJ4Hkp5h5yLWnKVTDU0kwjKJ8NDCYcfTLfyGkzTikst+jWypT1iA==} + dependencies: + lru-cache: 4.1.5 + which: 1.3.1 + dev: true + /cross-spawn@5.1.0: resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} dependencies: @@ -26339,6 +26139,13 @@ packages: ip-regex: 2.1.0 dev: true + /default-require-extensions@2.0.0: + resolution: {integrity: sha512-B0n2zDIXpzLzKeoEozorDSa1cHc1t0NjmxP0zuAxbizNU2MBqYJJKYXrrFdKuQliojXynrxgd7l4ahfg/+aA5g==} + engines: {node: '>=4'} + dependencies: + strip-bom: 3.0.0 + dev: true + /default-user-agent@1.0.0: resolution: {integrity: sha512-bDF7bg6OSNcSwFWPu4zYKpVkJZQYVrAANMYB8bc9Szem1D0yKdm4sa/rOCs2aC9+2GMqQ7KnwtZRvDhmLF0dXw==} engines: {node: '>= 0.10.0'} @@ -27729,7 +27536,7 @@ packages: '@umijs/preset-dumi': 1.x react: ^16.13.1 || ^17.0.0 || 17 dependencies: - '@umijs/preset-dumi': 1.1.50(react-dom@17.0.2)(react-router@6.26.0)(react@17.0.2)(typescript@4.9.5)(umi@3.5.42) + '@umijs/preset-dumi': 1.1.50(react-dom@17.0.2)(react-router@6.26.0)(react@17.0.2)(typescript@4.9.5)(umi@3.5.41) lodash.throttle: 4.1.1 prism-react-renderer: 1.3.5(react@17.0.2) prismjs: 1.29.0 @@ -27763,8 +27570,8 @@ packages: resolution: {integrity: sha512-8kc+VL62JlVj1zoAaqWN2uE/feSYhzCuFFnWUll+aQgpKKM103DvnkmczqruMqV33gOsy3lWHf01uFu5RUagGg==} hasBin: true dependencies: - '@umijs/preset-dumi': 1.1.50(react-dom@17.0.2)(react-router@6.26.0)(react@17.0.2)(typescript@4.9.5)(umi@3.5.42) - umi: 3.5.42(react-router@6.26.0) + '@umijs/preset-dumi': 1.1.50(react-dom@17.0.2)(react-router@6.26.0)(react@17.0.2)(typescript@4.9.5)(umi@3.5.41) + umi: 3.5.41(react-router@6.26.0) transitivePeerDependencies: - bufferutil - canvas @@ -28771,6 +28578,10 @@ packages: engines: {node: '>=0.4.0'} dev: true + /es6-error@4.1.1: + resolution: {integrity: sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==} + dev: true + /es6-iterator@2.0.3: resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==} dependencies: @@ -30810,6 +30621,13 @@ packages: for-in: 1.0.2 dev: true + /foreground-child@1.5.6: + resolution: {integrity: sha512-3TOY+4TKV0Ml83PXJQY+JFQaHNV38lzQDIzzXYg1kWdBLenGgoZhAs0CKgzI31vi2pWEpQMq/Yi4bpKwCPkw7g==} + dependencies: + cross-spawn: 4.0.2 + signal-exit: 3.0.7 + dev: true + /foreground-child@2.0.0: resolution: {integrity: sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==} engines: {node: '>=8.0.0'} @@ -31502,7 +31320,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.0.4 + minimatch: 3.1.2 once: 1.4.0 path-is-absolute: 1.0.1 dev: true @@ -32047,6 +31865,13 @@ packages: inherits: 2.0.4 minimalistic-assert: 1.0.1 + /hasha@3.0.0: + resolution: {integrity: sha512-w0Kz8lJFBoyaurBiNrIvxPqr/gJ6fOfSkpAPOepN3oECqGJag37xPbOv57izi/KP8auHgNYxn5fXtAb+1LsJ6w==} + engines: {node: '>=4'} + dependencies: + is-stream: 1.1.0 + dev: true + /hasown@2.0.2: resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} @@ -33084,7 +32909,7 @@ packages: run-async: 2.4.1 rxjs: 6.6.7 string-width: 2.1.1 - strip-ansi: 5.0.0 + strip-ansi: 5.2.0 through: 2.3.8 dev: true @@ -34015,6 +33840,13 @@ packages: resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} engines: {node: '>=8'} + /istanbul-lib-hook@2.0.7: + resolution: {integrity: sha512-vrRztU9VRRFDyC+aklfLoeXyNdTfga2EI3udDGn4cZ6fpSXpHLV9X6CHvfoMCPtggg8zvDDmC4b9xfu0z6/llA==} + engines: {node: '>=6'} + dependencies: + append-transform: 1.0.0 + dev: true + /istanbul-lib-instrument@3.3.0: resolution: {integrity: sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==} engines: {node: '>=6'} @@ -34088,7 +33920,7 @@ packages: resolution: {integrity: sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==} engines: {node: '>=6'} dependencies: - debug: 4.1.1 + debug: 4.3.6(supports-color@5.5.0) istanbul-lib-coverage: 2.0.5 make-dir: 2.1.0 rimraf: 2.7.1 @@ -37221,6 +37053,8 @@ packages: /match-sorter@3.1.1: resolution: {integrity: sha512-Qlox3wRM/Q4Ww9rv1cBmYKNJwWVX/WC+eA3+1S3Fv4EOhrqyp812ZEfVFKQk0AP6RfzmPUUOwEZBbJ8IRt8SOw==} + dependencies: + remove-accents: 0.4.2 dev: true bundledDependencies: - remove-accents @@ -39460,7 +39294,30 @@ packages: engines: {node: '>=6'} hasBin: true dependencies: + archy: 1.0.0 + arrify: 1.0.1 + caching-transform: 3.0.2 + convert-source-map: 1.9.0 + find-cache-dir: 2.1.0 + find-up: 3.0.0 + foreground-child: 1.5.6 + glob: 7.2.3 + istanbul-lib-coverage: 2.0.5 + istanbul-lib-hook: 2.0.7 istanbul-lib-instrument: 3.3.0 + istanbul-lib-report: 2.0.8 + istanbul-lib-source-maps: 3.0.6 + istanbul-reports: 2.2.7 + make-dir: 1.3.0 + merge-source-map: 1.1.0 + resolve-from: 4.0.0 + rimraf: 2.7.1 + signal-exit: 3.0.7 + spawn-wrap: 1.4.3 + test-exclude: 5.2.3 + uuid: 3.4.0 + yargs: 12.0.5 + yargs-parser: 11.1.1 transitivePeerDependencies: - supports-color dev: true @@ -39996,6 +39853,16 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} + /package-hash@3.0.0: + resolution: {integrity: sha512-lOtmukMDVvtkL84rJHI7dpTYq+0rli8N2wlnqUcBuDWCfVhRUfOmnR9SsoHFMLpACvEV60dX7rd0rFaYDZI+FA==} + engines: {node: '>=6'} + dependencies: + graceful-fs: 4.2.11 + hasha: 3.0.0 + lodash.flattendeep: 4.4.0 + release-zalgo: 1.0.0 + dev: true + /package-json@4.0.1: resolution: {integrity: sha512-q/R5GrMek0vzgoomq6rm9OX+3PQve8sLwTirmK30YB3Cu0Bbt9OX9M/SIUnroN5BGJkzwGsFwDaRGD9EwBOlCA==} engines: {node: '>=4'} @@ -46146,6 +46013,13 @@ packages: engines: {node: '>= 0.10'} dev: true + /release-zalgo@1.0.0: + resolution: {integrity: sha512-gUAyHVHPPC5wdqX/LG4LWtRYtgjxyX78oanFNTMMyFEfOqdC54s3eE82imuWKbOeqYht2CrNf64Qb8vgmmtZGA==} + engines: {node: '>=4'} + dependencies: + es6-error: 4.1.1 + dev: true + /remark-docz@0.13.3: resolution: {integrity: sha512-b0UWtd+x+YwHlNhF1kmnxoghi1ivTW4iRxCsWX5YXZN9YKabhBtAHTU1pipmtiJAfL1uQNiV0sM4ZHgIHkM6Ng==} dependencies: @@ -46375,6 +46249,10 @@ packages: dependencies: parse-git-config: 1.1.1 + /remove-accents@0.4.2: + resolution: {integrity: sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA==} + dev: true + /remove-bom-buffer@3.0.0: resolution: {integrity: sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==} engines: {node: '>=0.10.0'} @@ -48002,6 +47880,17 @@ packages: resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} dev: false + /spawn-wrap@1.4.3: + resolution: {integrity: sha512-IgB8md0QW/+tWqcavuFgKYR/qIRvJkRLPJDFaoXtLLUaVcCDK0+HeFTkmQHj3eprcYhc+gOl0aEA1w7qZlYezw==} + dependencies: + foreground-child: 1.5.6 + mkdirp: 0.5.6 + os-homedir: 1.0.2 + rimraf: 2.7.1 + signal-exit: 3.0.7 + which: 1.3.1 + dev: true + /spawndamnit@2.0.0: resolution: {integrity: sha512-j4JKEcncSjFlqIwU5L/rp2N5SIPsdxaRsIv678+TZxZ0SRDJTm8JrxJMjE/XuiEZNEir3S8l0Fa3Ke339WI4qA==} dependencies: @@ -50462,24 +50351,6 @@ packages: transitivePeerDependencies: - react-router - /umi@3.5.42(react-router@6.26.0): - resolution: {integrity: sha512-xBoN793MH2mUv86SwQaK0lVRMKydPorIxE9uuV8ZQMJH8Wsqm3o4mSeVh3na1D6bHgi1o72en5kUWi0ZwE6jog==} - hasBin: true - dependencies: - '@umijs/bundler-webpack': 3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0) - '@umijs/core': 3.5.42 - '@umijs/deps': 3.5.42 - '@umijs/preset-built-in': 3.5.42(react-dom@16.14.0)(react@16.14.0) - '@umijs/runtime': 3.5.42(react@16.14.0) - '@umijs/types': 3.5.42(react-dom@16.14.0)(react-router@6.26.0)(react@16.14.0) - '@umijs/utils': 3.5.42 - react: 16.14.0 - react-dom: 16.14.0(react@16.14.0) - v8-compile-cache: 2.3.0 - transitivePeerDependencies: - - react-router - dev: false - /unbox-primitive@1.0.2: resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==} dependencies: @@ -52302,7 +52173,7 @@ packages: /wide-align@1.1.5: resolution: {integrity: sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==} dependencies: - string-width: 1.0.2 + string-width: 4.2.3 dev: true /widest-line@2.0.1: diff --git a/webpack.config.js b/webpack.config.js index f265511a4..3c7ab9e54 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -51,8 +51,8 @@ module.exports = (env, argv) => { presets: ['@babel/env', '@babel/preset-react'], plugins: [ ['@babel/plugin-transform-class-properties', { loose: true }], - ['@babel/plugin-proposal-private-methods', { loose: true }], - ['@babel/plugin-proposal-private-property-in-object', { loose: true }], + ['@babel/plugin-transform-private-methods', { loose: true }], + ['@babel/plugin-transform-private-property-in-object', { loose: true }], ['react-hot-loader/babel'], ], },