diff --git a/package-lock.json b/package-lock.json index 45013c9..0329383 100644 --- a/package-lock.json +++ b/package-lock.json @@ -881,9 +881,9 @@ } }, "bluebird": { - "version": "3.5.4", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.4.tgz", - "integrity": "sha512-FG+nFEZChJrbQ9tIccIfZJBz3J7mLrAhxakAbnrJWn8d7aKOC+LWifa0G+p4ZqKp4y13T7juYvdhq9NzKdsrjw==", + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz", + "integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==", "dev": true }, "bn.js": { @@ -3535,11 +3535,6 @@ "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", "dev": true }, - "hamt_plus": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/hamt_plus/-/hamt_plus-1.0.2.tgz", - "integrity": "sha1-4hwlKWjH4zsg9qGwlM2FeHomVgE=" - }, "handle-thing": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-2.0.0.tgz", @@ -3650,14 +3645,6 @@ "minimalistic-assert": "^1.0.1" } }, - "haunted": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/haunted/-/haunted-4.3.0.tgz", - "integrity": "sha512-X4De9gNoeU3plA8n+YAOGKYGb7dKDpFdTDXrc3eNLXgVjmv6Fl87B/ACLbZwZYgx9mIk6G/9PN42Gp4Ct5huqQ==", - "requires": { - "lit-html": "^1.0.0" - } - }, "he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -4398,11 +4385,6 @@ "invert-kv": "^1.0.0" } }, - "list": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/list/-/list-2.0.16.tgz", - "integrity": "sha512-A/hl9z2uM/VChZbxNvt5QOCZW4f+eKeW4gfJB1npoE0RKp3g18K3/38hm9kkpXK45niy/BTAVjW8IDHKyCxzkg==" - }, "lit-html": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/lit-html/-/lit-html-1.0.0.tgz", @@ -4686,11 +4668,6 @@ "to-regex": "^3.0.2" } }, - "micromodal": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/micromodal/-/micromodal-0.4.0.tgz", - "integrity": "sha512-YDku9Fi57S4Sm6oitSy3sr786qSp5L6NbatuH2kEeXf0jStvZgZk4bLBKaoSONBaq3BEvFz3hAaoUa7/pV1Kgg==" - }, "miller-rabin": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", @@ -5661,15 +5638,6 @@ "integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==", "dev": true }, - "prelude-ts": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/prelude-ts/-/prelude-ts-0.8.2.tgz", - "integrity": "sha512-Y1whOc7QNfXCKVsBRzZy29R5+vnGVivtHUTNb8gHHGLZBNt/pRtMCv7nkEovMAnMpRO7BjQTht19xcw45abVaw==", - "requires": { - "hamt_plus": "1.0.2", - "list": "2.0.16" - } - }, "prepend-http": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", @@ -7070,9 +7038,9 @@ } }, "terser": { - "version": "3.17.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-3.17.0.tgz", - "integrity": "sha512-/FQzzPJmCpjAH9Xvk2paiWrFq+5M6aVOf+2KRbwhByISDX/EujxsK+BAvrhb6H+2rtrLCHK9N01wO014vrIwVQ==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.0.0.tgz", + "integrity": "sha512-dOapGTU0hETFl1tCo4t56FN+2jffoKyER9qBGoUFyZ6y7WLoKT0bF+lAYi6B6YsILcGF3q1C2FBh8QcKSCgkgA==", "dev": true, "requires": { "commander": "^2.19.0", @@ -7089,18 +7057,19 @@ } }, "terser-webpack-plugin": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.2.4.tgz", - "integrity": "sha512-64IiILNQlACWZLzFlpzNaG0bpQ4ytaB7fwOsbpsdIV70AfLUmIGGeuKL0YV2WmtcrURjE2aOvHD4/lrFV3Rg+Q==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.3.0.tgz", + "integrity": "sha512-W2YWmxPjjkUcOWa4pBEv4OP4er1aeQJlSo2UhtCFQCuRXEHjOFscO8VyWHj9JLlA0RzQb8Y2/Ta78XZvT54uGg==", "dev": true, "requires": { "cacache": "^11.3.2", "find-cache-dir": "^2.0.0", "is-wsl": "^1.1.0", + "loader-utils": "^1.2.3", "schema-utils": "^1.0.0", "serialize-javascript": "^1.7.0", "source-map": "^0.6.1", - "terser": "^3.17.0", + "terser": "^4.0.0", "webpack-sources": "^1.3.0", "worker-farm": "^1.7.0" } diff --git a/package.json b/package.json index 6ea686b..3ce9a4f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "deploy": "ts-node deploy" }, "sideEffects": [ - "*.scss" + "*.scss", + "./src/ts/main.ts" ], "repository": { "type": "git", @@ -38,6 +39,7 @@ "sass-loader": "^7.1.0", "source-map-loader": "^0.2.4", "style-loader": "^0.23.1", + "terser-webpack-plugin": "^1.3.0", "ts-loader": "^5.3.3", "ts-node": "^8.2.0", "typescript": "^3.3.3333", @@ -55,11 +57,8 @@ "@material/menu": "^2.3.0", "@material/theme": "^1.1.0", "file-saver": "^2.0.2", - "haunted": "^4.3.0", "lit-html": "^1.0.0", "lit-rx": "0.0.2", - "micromodal": "^0.4.0", - "prelude-ts": "^0.8.2", "rxjs": "^6.5.2", "toastr": "^2.1.4" } diff --git a/src/ts/common/componentManager/componentManager.ts b/src/ts/common/componentManager/componentManager.ts index 4c0cb38..5676e31 100644 --- a/src/ts/common/componentManager/componentManager.ts +++ b/src/ts/common/componentManager/componentManager.ts @@ -14,7 +14,6 @@ import { WireManager } from "../wires"; import { runCounter } from "../component/runCounter"; import { Settings } from "../store/settings"; import { download } from "./download"; -import Modal from "micromodal" import { modal } from "../modals"; import { map } from "rxjs/operators"; @@ -327,7 +326,7 @@ All you work will be lost!` component.handleClick(e)} @mouseup=${mouseupHandler}>