Browse Source

bump deps, Promise<null> to Promise<void>

JonStargaryen 4 years ago
parent
commit
cf5d302cf1
3 changed files with 427 additions and 251 deletions
  1. 408 232
      package-lock.json
  2. 18 18
      package.json
  3. 1 1
      src/viewer/index.ts

File diff suppressed because it is too large
+ 408 - 232
package-lock.json


+ 18 - 18
package.json

@@ -37,27 +37,27 @@
     "author": "RCSB PDB and Mol* Contributors",
     "license": "MIT",
     "devDependencies": {
-        "@types/react": "^16.9.49",
-        "@types/react-dom": "^16.9.8",
-        "@typescript-eslint/eslint-plugin": "^3.10.1",
-        "@typescript-eslint/parser": "^3.10.1",
+        "@types/react": "^17.0.0",
+        "@types/react-dom": "^17.0.0",
+        "@typescript-eslint/eslint-plugin": "^4.9.1",
+        "@typescript-eslint/parser": "^4.9.1",
         "concurrently": "^5.3.0",
-        "cpx2": "^2.0.0",
-        "css-loader": "^3.6.0",
-        "eslint": "^7.8.1",
+        "cpx2": "^3.0.0",
+        "css-loader": "^5.0.1",
+        "eslint": "^7.15.0",
         "extra-watch-webpack-plugin": "^1.0.3",
-        "file-loader": "^6.1.0",
-        "mini-css-extract-plugin": "^0.9.0",
-        "molstar": "^1.2.3",
-        "node-sass": "^4.14.1",
-        "raw-loader": "^4.0.1",
-        "react": "^16.13.1",
-        "react-dom": "^16.13.1",
+        "file-loader": "^6.2.0",
+        "mini-css-extract-plugin": "^1.3.2",
+        "molstar": "^1.2.15",
+        "node-sass": "^5.0.0",
+        "raw-loader": "^4.0.2",
+        "react": "^17.0.1",
+        "react-dom": "^17.0.1",
         "rxjs": "^6.6.3",
-        "sass-loader": "^8.0.2",
-        "style-loader": "^1.2.1",
-        "tslib": "^2.0.1",
-        "typescript": "4.0.2",
+        "sass-loader": "^10.1.0",
+        "style-loader": "^2.0.0",
+        "tslib": "^2.0.3",
+        "typescript": "4.1.2",
         "webpack": "^4.44.1",
         "webpack-cli": "^3.3.12"
     },

+ 1 - 1
src/viewer/index.ts

@@ -154,7 +154,7 @@ export class Viewer {
         // TODO Check why this.plugin.canvas3d can be null
         // this.plugin.canvas3d can be null. The value is not assigned until React Plugin component is mounted
         // Next wait Promise guarantees that its value is defined
-        const wait: Promise<null> = new Promise<null>((resolve, reject)=>{
+        const wait: Promise<void> = new Promise<void>((resolve, reject)=>{
             const recursive: () => void = () => {
                 if(this.plugin.canvas3d != null){
                     resolve();

Some files were not shown because too many files changed in this diff