Browse Source

update packages

AykutSarac 2 năm trước cách đây
mục cha
commit
c37c8d7af8
3 tập tin đã thay đổi với 433 bổ sung265 xóa
  1. 7 13
      next.config.js
  2. 18 18
      package.json
  3. 408 234
      yarn.lock

+ 7 - 13
next.config.js

@@ -1,14 +1,9 @@
-// const withPWA = require("next-pwa");
-
-// const pwaConfig = {
-//   pwa: {
-//     disable: true, // disable temp until issue #61 solved
-//     dest: "public",
-//     fallbacks: {
-//       document: "/editor",
-//     },
-//   },
-// };
+const withPWA = require("next-pwa")({
+  dest: "public",
+  register: true,
+  disable: process.env.NODE_ENV === "development",
+  scope: "/editor",
+});
 
 /**
  * @type {import('next').NextConfig}
@@ -20,7 +15,6 @@ const nextConfig = {
     "/editor": { page: "/Editor" },
     "/widget": { page: "/Widget" },
   }),
-  //...pwaConfig,
 };
 
-module.exports = nextConfig;
+module.exports = withPWA(nextConfig);

+ 18 - 18
package.json

@@ -14,10 +14,10 @@
   },
   "dependencies": {
     "@monaco-editor/react": "^4.4.5",
-    "@sentry/nextjs": "^7.9.0",
-    "allotment": "^1.15.0",
-    "compress-json": "^2.0.1",
-    "html-to-image": "^1.10.0",
+    "@sentry/nextjs": "^7.12.1",
+    "allotment": "^1.17.0",
+    "compress-json": "^2.1.1",
+    "html-to-image": "^1.10.8",
     "next": "^12.2.5",
     "next-transpile-modules": "^9.0.0",
     "parse-json": "^6.0.2",
@@ -32,32 +32,32 @@
     "react-zoom-pan-pinch": "^2.1.3",
     "reaflow": "^5.0.6",
     "styled-components": "^5.3.5",
-    "zustand": "^4.0.0"
+    "zustand": "^4.1.1"
   },
   "devDependencies": {
     "@testing-library/jest-dom": "^5.16.5",
     "@testing-library/react": "^13.3.0",
-    "@testing-library/user-event": "^14.4.2",
+    "@testing-library/user-event": "^14.4.3",
     "@types/enzyme": "^3.10.12",
-    "@types/jest": "^28.1.6",
-    "@types/node": "^18.6.5",
+    "@types/jest": "^29.0.0",
+    "@types/node": "^18.7.14",
     "@types/parse-json": "^4.0.0",
-    "@types/react": "18.0.17",
+    "@types/react": "18.0.18",
     "@types/react-color": "^3.0.6",
     "@types/react-splitter-layout": "^3.0.2",
-    "@types/styled-components": "^5.1.25",
-    "babel-jest": "^28.1.3",
+    "@types/styled-components": "^5.1.26",
+    "babel-jest": "^29.0.2",
     "enzyme": "^3.11.0",
-    "eslint": "8.21.0",
-    "eslint-config-next": "12.2.4",
-    "eslint-plugin-testing-library": "^5.6.0",
+    "eslint": "8.23.0",
+    "eslint-config-next": "12.2.5",
+    "eslint-plugin-testing-library": "^5.6.1",
     "gh-pages": "^4.0.0",
-    "jest": "^28.1.3",
-    "jest-environment-jsdom": "^28.1.3",
+    "jest": "^29.0.2",
+    "jest-environment-jsdom": "^29.0.2",
     "next-compose-plugins": "^2.2.1",
-    "next-pwa": "5.5.3",
+    "next-pwa": "5.6.0",
     "prettier": "^2.7.1",
     "ts-node": "^10.9.1",
-    "typescript": "4.7.4"
+    "typescript": "4.8.2"
   }
 }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 408 - 234
yarn.lock


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác