added add compiler

pull/1/head
LianaHus 5 years ago committed by Liana Husikyan
parent 4fb9da52da
commit 3c8ade6bac
  1. 730
      package-lock.json
  2. 45
      src/app/tabs/compileTab/compilerContainer.js

730
package-lock.json generated

@ -529,6 +529,23 @@
"@babel/helper-plugin-utils": "^7.0.0"
}
},
"@babel/plugin-transform-instanceof": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-instanceof/-/plugin-transform-instanceof-7.0.0-beta.53.tgz",
"integrity": "sha1-WC2CtyUYggGtDiIx8fzpTHRaLAY=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
},
"dependencies": {
"@babel/helper-plugin-utils": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-beta.53.tgz",
"integrity": "sha1-1kRYY2/8JYtCcUqd2Trrb4uM8+0=",
"dev": true
}
}
},
"@babel/plugin-transform-literals": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz",
@ -800,6 +817,701 @@
}
}
},
"@babel/preset-es2015": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/preset-es2015/-/preset-es2015-7.0.0-beta.53.tgz",
"integrity": "sha1-SYL6GUjbEJN2Yoj2mRPizjYDEeQ=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/plugin-transform-arrow-functions": "7.0.0-beta.53",
"@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.53",
"@babel/plugin-transform-block-scoping": "7.0.0-beta.53",
"@babel/plugin-transform-classes": "7.0.0-beta.53",
"@babel/plugin-transform-computed-properties": "7.0.0-beta.53",
"@babel/plugin-transform-destructuring": "7.0.0-beta.53",
"@babel/plugin-transform-duplicate-keys": "7.0.0-beta.53",
"@babel/plugin-transform-for-of": "7.0.0-beta.53",
"@babel/plugin-transform-function-name": "7.0.0-beta.53",
"@babel/plugin-transform-instanceof": "7.0.0-beta.53",
"@babel/plugin-transform-literals": "7.0.0-beta.53",
"@babel/plugin-transform-modules-amd": "7.0.0-beta.53",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.53",
"@babel/plugin-transform-modules-systemjs": "7.0.0-beta.53",
"@babel/plugin-transform-modules-umd": "7.0.0-beta.53",
"@babel/plugin-transform-object-super": "7.0.0-beta.53",
"@babel/plugin-transform-parameters": "7.0.0-beta.53",
"@babel/plugin-transform-regenerator": "7.0.0-beta.53",
"@babel/plugin-transform-shorthand-properties": "7.0.0-beta.53",
"@babel/plugin-transform-spread": "7.0.0-beta.53",
"@babel/plugin-transform-sticky-regex": "7.0.0-beta.53",
"@babel/plugin-transform-template-literals": "7.0.0-beta.53",
"@babel/plugin-transform-typeof-symbol": "7.0.0-beta.53",
"@babel/plugin-transform-unicode-regex": "7.0.0-beta.53"
},
"dependencies": {
"@babel/code-frame": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
"integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
"dev": true,
"requires": {
"@babel/highlight": "7.0.0-beta.53"
}
},
"@babel/generator": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.53.tgz",
"integrity": "sha1-uMrXLFcr4yNK/94ivm2sxCUOA0s=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53",
"jsesc": "^2.5.1",
"lodash": "^4.17.5",
"source-map": "^0.5.0",
"trim-right": "^1.0.1"
}
},
"@babel/helper-annotate-as-pure": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-beta.53.tgz",
"integrity": "sha1-WZYGKDdcvu+WoH7f4co4t1bwGqg=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-call-delegate": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-beta.53.tgz",
"integrity": "sha1-ld6Lq9A/nmz08rVkoDhwjBOP/jE=",
"dev": true,
"requires": {
"@babel/helper-hoist-variables": "7.0.0-beta.53",
"@babel/traverse": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-define-map": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.0.0-beta.53.tgz",
"integrity": "sha1-SOniJlRTeHl1BD76qx7a0jnqlpU=",
"dev": true,
"requires": {
"@babel/helper-function-name": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/helper-function-name": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
"integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
"dev": true,
"requires": {
"@babel/helper-get-function-arity": "7.0.0-beta.53",
"@babel/template": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-get-function-arity": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
"integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-hoist-variables": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-beta.53.tgz",
"integrity": "sha1-TCfjuHP6CcWtbpPrQHBMIA+EE3w=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-member-expression-to-functions": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-beta.53.tgz",
"integrity": "sha1-D7Dviy07kD0cO/Qm2kp0V14BnOQ=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-module-imports": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.53.tgz",
"integrity": "sha1-5zXmqjClBLD52Fw4ptRwqfSqgdk=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/helper-module-transforms": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-beta.53.tgz",
"integrity": "sha1-e6IUzcyPhiPy0Xl96v8f80mqzhM=",
"dev": true,
"requires": {
"@babel/helper-module-imports": "7.0.0-beta.53",
"@babel/helper-simple-access": "7.0.0-beta.53",
"@babel/helper-split-export-declaration": "7.0.0-beta.53",
"@babel/template": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/helper-optimise-call-expression": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-beta.53.tgz",
"integrity": "sha1-j8eO9MD2n4uzu980zSMsIBIEFMg=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-plugin-utils": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-beta.53.tgz",
"integrity": "sha1-1kRYY2/8JYtCcUqd2Trrb4uM8+0=",
"dev": true
},
"@babel/helper-regex": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.0.0-beta.53.tgz",
"integrity": "sha1-bp0hl7Vid54iVWWUaumoXCFbIl4=",
"dev": true,
"requires": {
"lodash": "^4.17.5"
}
},
"@babel/helper-replace-supers": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-beta.53.tgz",
"integrity": "sha1-M5tb3BAilElbGifFWBMjBuG3vKc=",
"dev": true,
"requires": {
"@babel/helper-member-expression-to-functions": "7.0.0-beta.53",
"@babel/helper-optimise-call-expression": "7.0.0-beta.53",
"@babel/traverse": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-simple-access": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.0.0-beta.53.tgz",
"integrity": "sha1-cvbbmr5C+GgfpvAo79WdgVRHUrM=",
"dev": true,
"requires": {
"@babel/template": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/helper-split-export-declaration": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
"integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/highlight": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
"integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
"dev": true,
"requires": {
"chalk": "^2.0.0",
"esutils": "^2.0.2",
"js-tokens": "^3.0.0"
}
},
"@babel/parser": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
"integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
"dev": true
},
"@babel/plugin-transform-arrow-functions": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-beta.53.tgz",
"integrity": "sha1-p19fqEl6rBcp0DO/QcJQQWudHgQ=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-block-scoped-functions": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-beta.53.tgz",
"integrity": "sha1-CkMiGhsMkM1NCfG0a5Wd0khlf3M=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-block-scoping": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-beta.53.tgz",
"integrity": "sha1-nv1uUMofo5jcqnEZYh2j8fu4IbY=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/plugin-transform-classes": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-beta.53.tgz",
"integrity": "sha1-XcLsMb8emAZqzfDEiHt3RMFL7G4=",
"dev": true,
"requires": {
"@babel/helper-annotate-as-pure": "7.0.0-beta.53",
"@babel/helper-define-map": "7.0.0-beta.53",
"@babel/helper-function-name": "7.0.0-beta.53",
"@babel/helper-optimise-call-expression": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/helper-replace-supers": "7.0.0-beta.53",
"@babel/helper-split-export-declaration": "7.0.0-beta.53",
"globals": "^11.1.0"
}
},
"@babel/plugin-transform-computed-properties": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-beta.53.tgz",
"integrity": "sha1-l0fiYIKulO2lMPmNLCBZ6NLbwAU=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-destructuring": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-beta.53.tgz",
"integrity": "sha1-DwrbDhptzTWjZkEBYJ7AYv8SenY=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-duplicate-keys": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-beta.53.tgz",
"integrity": "sha1-D1WZE6v6GCOcpOCPc+7DbF5XuB8=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-for-of": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-beta.53.tgz",
"integrity": "sha1-+gZSFeGFacj3TdUktXIeEdzKlzs=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-function-name": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-beta.53.tgz",
"integrity": "sha1-Kzpbs2TB4cV+zL/iXGv1XygEET4=",
"dev": true,
"requires": {
"@babel/helper-function-name": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-literals": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-beta.53.tgz",
"integrity": "sha1-vsTxROmpbvUSHRQwx+vl/QiGV8k=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-modules-amd": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-beta.53.tgz",
"integrity": "sha1-WFTXOeZ5IzqId8C0GCaca+t6Miw=",
"dev": true,
"requires": {
"@babel/helper-module-transforms": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-modules-commonjs": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-beta.53.tgz",
"integrity": "sha1-68P7ocWmyHQ7kJQD7NPn42gcr6U=",
"dev": true,
"requires": {
"@babel/helper-module-transforms": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/helper-simple-access": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-modules-systemjs": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-beta.53.tgz",
"integrity": "sha1-uA/NnBWXLcaCMhT1JIUnhgu/BY4=",
"dev": true,
"requires": {
"@babel/helper-hoist-variables": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-modules-umd": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-beta.53.tgz",
"integrity": "sha1-Kjar5AodpnbkOhwwcVeOJ70tZ50=",
"dev": true,
"requires": {
"@babel/helper-module-transforms": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-object-super": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-beta.53.tgz",
"integrity": "sha1-4sTwbts0s9eksnV7oYgp0N8gKcs=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/helper-replace-supers": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-parameters": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-beta.53.tgz",
"integrity": "sha1-7+YM7IzsoNGdXG+hrnm8TjMnnVY=",
"dev": true,
"requires": {
"@babel/helper-call-delegate": "7.0.0-beta.53",
"@babel/helper-get-function-arity": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-regenerator": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-beta.53.tgz",
"integrity": "sha1-T+u/YISvoMHJ7ISX3mjAaV/p2gs=",
"dev": true,
"requires": {
"regenerator-transform": "^0.13.3"
}
},
"@babel/plugin-transform-shorthand-properties": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-beta.53.tgz",
"integrity": "sha1-38SIG2vXZYoAMew7gWPliPCJjUs=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-spread": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-beta.53.tgz",
"integrity": "sha1-g+j2Rsok8cmCKPnxREz2DL1JOLw=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-sticky-regex": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-beta.53.tgz",
"integrity": "sha1-D888mUq92Lq1m6l4L+TZ+KVF1uc=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/helper-regex": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-template-literals": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-beta.53.tgz",
"integrity": "sha1-+msLQXEA0j4tsUwd9HorGzl48dk=",
"dev": true,
"requires": {
"@babel/helper-annotate-as-pure": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-typeof-symbol": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-beta.53.tgz",
"integrity": "sha1-ZarocamqQPYRSDZlcxIJrr1cKis=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53"
}
},
"@babel/plugin-transform-unicode-regex": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-beta.53.tgz",
"integrity": "sha1-CvdOyAGefVnji+ZNt/YikZQv7SU=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/helper-regex": "7.0.0-beta.53",
"regexpu-core": "^4.1.3"
}
},
"@babel/template": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
"integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
"dev": true,
"requires": {
"@babel/code-frame": "7.0.0-beta.53",
"@babel/parser": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/traverse": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.53.tgz",
"integrity": "sha1-ANMs2NC1j0wB0xFXvmIsZigm00Q=",
"dev": true,
"requires": {
"@babel/code-frame": "7.0.0-beta.53",
"@babel/generator": "7.0.0-beta.53",
"@babel/helper-function-name": "7.0.0-beta.53",
"@babel/helper-split-export-declaration": "7.0.0-beta.53",
"@babel/parser": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53",
"debug": "^3.1.0",
"globals": "^11.1.0",
"invariant": "^2.2.0",
"lodash": "^4.17.5"
}
},
"@babel/types": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
"integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
"dev": true,
"requires": {
"esutils": "^2.0.2",
"lodash": "^4.17.5",
"to-fast-properties": "^2.0.0"
}
},
"globals": {
"version": "11.12.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
"integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
"dev": true
},
"regenerator-transform": {
"version": "0.13.4",
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.13.4.tgz",
"integrity": "sha512-T0QMBjK3J0MtxjPmdIMXm72Wvj2Abb0Bd4HADdfijwMdoIsyQZ6fWC7kDFhk2YinBBEMZDL7Y7wh0J1sGx3S4A==",
"dev": true,
"requires": {
"private": "^0.1.6"
}
}
}
},
"@babel/preset-es2017": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/preset-es2017/-/preset-es2017-7.0.0-beta.53.tgz",
"integrity": "sha1-xRMrJFQnVQt84O/H2SZ6v6IX/u8=",
"dev": true,
"requires": {
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/plugin-transform-async-to-generator": "7.0.0-beta.53"
},
"dependencies": {
"@babel/code-frame": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
"integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
"dev": true,
"requires": {
"@babel/highlight": "7.0.0-beta.53"
}
},
"@babel/generator": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.53.tgz",
"integrity": "sha1-uMrXLFcr4yNK/94ivm2sxCUOA0s=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53",
"jsesc": "^2.5.1",
"lodash": "^4.17.5",
"source-map": "^0.5.0",
"trim-right": "^1.0.1"
}
},
"@babel/helper-annotate-as-pure": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-beta.53.tgz",
"integrity": "sha1-WZYGKDdcvu+WoH7f4co4t1bwGqg=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-function-name": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
"integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
"dev": true,
"requires": {
"@babel/helper-get-function-arity": "7.0.0-beta.53",
"@babel/template": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-get-function-arity": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
"integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-module-imports": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.53.tgz",
"integrity": "sha1-5zXmqjClBLD52Fw4ptRwqfSqgdk=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/helper-plugin-utils": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-beta.53.tgz",
"integrity": "sha1-1kRYY2/8JYtCcUqd2Trrb4uM8+0=",
"dev": true
},
"@babel/helper-remap-async-to-generator": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-beta.53.tgz",
"integrity": "sha1-uDSnVy3sF2OJ/6x+djV5WGSQySI=",
"dev": true,
"requires": {
"@babel/helper-annotate-as-pure": "7.0.0-beta.53",
"@babel/helper-wrap-function": "7.0.0-beta.53",
"@babel/template": "7.0.0-beta.53",
"@babel/traverse": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-split-export-declaration": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
"integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
"dev": true,
"requires": {
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/helper-wrap-function": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-beta.53.tgz",
"integrity": "sha1-q/sr+pQBBCurJXwBkPWtbbjfFdU=",
"dev": true,
"requires": {
"@babel/helper-function-name": "7.0.0-beta.53",
"@babel/template": "7.0.0-beta.53",
"@babel/traverse": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53"
}
},
"@babel/highlight": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
"integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
"dev": true,
"requires": {
"chalk": "^2.0.0",
"esutils": "^2.0.2",
"js-tokens": "^3.0.0"
}
},
"@babel/parser": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
"integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
"dev": true
},
"@babel/plugin-transform-async-to-generator": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-beta.53.tgz",
"integrity": "sha1-REx2HMQhXJeptVb/WMp7p99dQVM=",
"dev": true,
"requires": {
"@babel/helper-module-imports": "7.0.0-beta.53",
"@babel/helper-plugin-utils": "7.0.0-beta.53",
"@babel/helper-remap-async-to-generator": "7.0.0-beta.53"
}
},
"@babel/template": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
"integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
"dev": true,
"requires": {
"@babel/code-frame": "7.0.0-beta.53",
"@babel/parser": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53",
"lodash": "^4.17.5"
}
},
"@babel/traverse": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.53.tgz",
"integrity": "sha1-ANMs2NC1j0wB0xFXvmIsZigm00Q=",
"dev": true,
"requires": {
"@babel/code-frame": "7.0.0-beta.53",
"@babel/generator": "7.0.0-beta.53",
"@babel/helper-function-name": "7.0.0-beta.53",
"@babel/helper-split-export-declaration": "7.0.0-beta.53",
"@babel/parser": "7.0.0-beta.53",
"@babel/types": "7.0.0-beta.53",
"debug": "^3.1.0",
"globals": "^11.1.0",
"invariant": "^2.2.0",
"lodash": "^4.17.5"
}
},
"@babel/types": {
"version": "7.0.0-beta.53",
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
"integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
"dev": true,
"requires": {
"esutils": "^2.0.2",
"lodash": "^4.17.5",
"to-fast-properties": "^2.0.0"
}
},
"globals": {
"version": "11.12.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
"integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
"dev": true
}
}
},
"@babel/preset-stage-0": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/@babel/preset-stage-0/-/preset-stage-0-7.0.0.tgz",
@ -11537,7 +12249,7 @@
"integrity": "sha1-PpcwauAk+yThCj11yIQwJWIhUSA=",
"dev": true,
"requires": {
"bignumber.js": "git+https://github.com/frozeman/bignumber.js-nolookahead.git",
"bignumber.js": "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934",
"crypto-js": "^3.1.4",
"utf8": "^2.1.1",
"xhr2": "*",
@ -11591,7 +12303,7 @@
"integrity": "sha1-PpcwauAk+yThCj11yIQwJWIhUSA=",
"dev": true,
"requires": {
"bignumber.js": "git+https://github.com/frozeman/bignumber.js-nolookahead.git",
"bignumber.js": "git+https://github.com/frozeman/bignumber.js-nolookahead.git#57692b3ecfc98bbdd6b3a516cb2353652ea49934",
"crypto-js": "^3.1.4",
"utf8": "^2.1.1",
"xhr2": "*",
@ -12483,7 +13195,7 @@
"requires": {
"underscore": "1.9.1",
"web3-core-helpers": "1.2.1",
"websocket": "github:web3-js/WebSocket-Node#polyfill/globalThis"
"websocket": "github:web3-js/WebSocket-Node#905deb4812572b344f5801f8c9ce8bb02799d82e"
},
"dependencies": {
"websocket": {
@ -13296,7 +14008,7 @@
"requires": {
"underscore": "1.8.3",
"web3-core-helpers": "1.0.0-beta.36",
"websocket": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible"
"websocket": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2"
},
"dependencies": {
"websocket": {
@ -15662,6 +16374,12 @@
"resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz",
"integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM="
},
"trim-right": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz",
"integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=",
"dev": true
},
"triple-beam": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz",
@ -16634,7 +17352,7 @@
"requires": {
"underscore": "1.9.1",
"web3-core-helpers": "1.2.1",
"websocket": "github:web3-js/WebSocket-Node#polyfill/globalThis"
"websocket": "github:web3-js/WebSocket-Node#905deb4812572b344f5801f8c9ce8bb02799d82e"
},
"dependencies": {
"websocket": {
@ -16746,7 +17464,7 @@
"requires": {
"underscore": "1.8.3",
"web3-core-helpers": "1.0.0-beta.27",
"websocket": "git://github.com/frozeman/WebSocket-Node.git#browserifyCompatible"
"websocket": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2"
},
"dependencies": {
"debug": {

@ -1,11 +1,11 @@
/* global Worker */
const yo = require('yo-yo')
var minixhr = require('minixhr')
var helper = require('../../../lib/helper')
const minixhr = require('minixhr')
const helper = require('../../../lib/helper')
const addTooltip = require('../../ui/tooltip')
const semver = require('semver')
var css = require('../styles/compile-tab-styles')
const modalDialogCustom = require('../../ui/modal-dialog-custom')
const css = require('../styles/compile-tab-styles')
class CompilerContainer {
@ -208,7 +208,10 @@ class CompilerContainer {
<header class="navbar navbar-light p-2 bg-light">
<div class="row w-100 no-gutters mb-2">
<div class="col-sm-4">
<label class="${css.compilerLabel} input-group-text pl-0 border-0" for="versionSelector">Compiler</label>
<div class="d-flex flex-row">
<label class="${css.compilerLabel} input-group-text pl-0 border-0" for="versionSelector">Compiler</label>
<button class="far fa-plus-square border-0 bg-light btn-sm" onclick=${this.loadCompiler.bind(this)} title="Add a custom compiler with URL"></button>
</div>
</div>
<div class="col-sm-8">
${this._view.versionSelector}
@ -260,6 +263,22 @@ class CompilerContainer {
return this._view.compileContainer
}
loadCompiler() {
modalDialogCustom.prompt(
'Add a custom compiler',
"URL",
'https://203137-40892817-gh.circle-artifacts.com/0/soljson.js',
(url) => {
this.addCustomCompiler(url)
}
)
}
addCustomCompiler (url) {
this.data.selectedVersion = this._view.versionSelector.value
this._updateVersionSelector(url)
}
updateAutoCompile (event) {
this.config.set('autoCompile', this._view.autoCompile.checked)
}
@ -315,9 +334,9 @@ class CompilerContainer {
(version.includes('nightly') && this._view.includeNightlies.checked)
}
_updateVersionSelector () {
_updateVersionSelector (customUrl = '') {
// update selectedversion of previous one got filtered out
if (!this._shouldBeAdded(this.data.selectedVersion)) {
if (!this.data.selectedVersion || !this._shouldBeAdded(this.data.selectedVersion)) {
this.data.selectedVersion = this.data.defaultVersion
}
this._view.versionSelector.innerHTML = ''
@ -333,7 +352,11 @@ class CompilerContainer {
this._view.versionSelector.removeAttribute('disabled')
this.queryParams.update({ version: this.data.selectedVersion })
let url
if (this.data.selectedVersion === 'builtin') {
if (customUrl) {
this.data.selectedVersion = customUrl
this._view.versionSelector.appendChild(yo`<option value="${customUrl}" selected>custom</option>`)
url = customUrl
} else if (this.data.selectedVersion === 'builtin') {
let location = window.document.location
location = `${location.protocol}//${location.host}/${location.pathname}`
if (location.endsWith('index.html')) location = location.substring(0, location.length - 10)
@ -359,8 +382,12 @@ class CompilerContainer {
}
_updateLanguageSelector () {
<<<<<<< HEAD
// This is the first version when Yul is available
if (semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) {
if (this._retrieveVersion() !== 'custom' || semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) {
=======
if (!semver.valid(this._retrieveVersion()) || semver.lt(this._retrieveVersion(), 'v0.5.7+commit.6da8b019.js')) {
>>>>>>> 4d2e414d... added default to test
this._view.languageSelector.setAttribute('disabled', '')
this._view.languageSelector.value = 'Solidity'
this.compileTabLogic.setLanguage('Solidity')

Loading…
Cancel
Save