Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve JS even further
Patryk Zawadzkia726cbbb7895
diff --git a/.flowconfig b/.flowconfigindex 4a58bdcdef..54ff9b8d68 100644--- a/.flowconfig+++ b/.flowconfig@@ -1,7 +1,15 @@[ignore]+.*/node_modules/babel.*+.*/node_modules/fbjs/lib/Map.js+.*/node_modules/fbjs/lib/ErrorUtils.js+.*/node_modules/react/react.js+.*/node_modules/react/lib/React.js+.*/node_modules/react/lib/ReactDOM.js[include][libs][options]+esproposal.class_static_fields=enable+esproposal.class_instance_fields=enablediff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.jsonindex 601964158e..72dbd08d44 100644--- a/npm-shrinkwrap.json+++ b/npm-shrinkwrap.json@@ -8,9 +8,9 @@"resolved": "https://registry.npmjs.org/Base64/-/Base64-0.2.1.tgz"},"abbrev": {- "version": "1.0.7",+ "version": "1.0.9","from": "abbrev@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz"+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz"},"accepts": {"version": "1.2.13",@@ -21,10 +21,6 @@"from": "acorn@>=1.0.3 <2.0.0","resolved": "https://registry.npmjs.org/acorn/-/acorn-1.2.2.tgz"},- "after": {- "version": "0.8.1",- "from": "[email protected]"- },"align-text": {"version": "0.1.4","from": "align-text@>=0.1.3 <0.2.0"@@ -44,11 +40,6 @@"from": "amdefine@>=0.0.4","resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz"},- "ansi": {- "version": "0.3.1",- "from": "ansi@>=0.3.1 <0.4.0",- "resolved": "https://registry.npmjs.org/ansi/-/ansi-0.3.1.tgz"- },"ansi-regex": {"version": "2.0.0","from": "ansi-regex@>=2.0.0 <3.0.0",@@ -64,25 +55,16 @@"from": "anymatch@>=1.3.0 <2.0.0","resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.0.tgz"},+ "aproba": {+ "version": "1.0.4",+ "from": "aproba@>=1.0.3 <2.0.0",+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.0.4.tgz"+ },"are-we-there-yet": {"version": "1.1.2","from": "are-we-there-yet@>=1.1.2 <1.2.0","resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.2.tgz"},- "argparse": {- "version": "0.1.16",- "from": "argparse@>=0.1.11 <0.2.0",- "dependencies": {- "underscore": {- "version": "1.7.0",- "from": "underscore@>=1.7.0 <1.8.0"- },- "underscore.string": {- "version": "2.4.0",- "from": "underscore.string@>=2.4.0 <2.5.0"- }- }- },"arr-diff": {"version": "2.0.0","from": "arr-diff@>=2.0.0 <3.0.0",@@ -93,14 +75,10 @@"from": "arr-flatten@>=1.0.1 <2.0.0","resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.0.1.tgz"},- "array-differ": {- "version": "1.0.0",- "from": "array-differ@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz"- },"array-find-index": {"version": "1.0.1",- "from": "array-find-index@>=1.0.0 <2.0.0"+ "from": "array-find-index@>=1.0.1 <2.0.0",+ "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.1.tgz"},"array-flatten": {"version": "1.1.1",@@ -112,24 +90,11 @@"from": "array-index@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/array-index/-/array-index-1.0.0.tgz"},- "array-union": {- "version": "1.0.1",- "from": "array-union@>=1.0.1 <2.0.0"- },- "array-uniq": {- "version": "1.0.2",- "from": "array-uniq@>=1.0.1 <2.0.0",- "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.2.tgz"- },"array-unique": {"version": "0.2.1","from": "array-unique@>=0.2.1 <0.3.0","resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz"},- "arraybuffer.slice": {- "version": "0.0.6",- "from": "[email protected]"- },"arrify": {"version": "1.0.1","from": "arrify@>=1.0.0 <2.0.0",@@ -141,8 +106,9 @@"resolved": "https://registry.npmjs.org/asap/-/asap-2.0.3.tgz"},"asn1": {- "version": "0.1.11",- "from": "[email protected]"+ "version": "0.2.3",+ "from": "asn1@>=0.2.3 <0.3.0",+ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz"},"assert": {"version": "1.4.1",@@ -150,9 +116,9 @@"resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz"},"assert-plus": {- "version": "0.1.5",- "from": "assert-plus@>=0.1.5 <0.2.0",- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz"+ "version": "0.2.0",+ "from": "assert-plus@>=0.2.0 <0.3.0",+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz"},"ast-types": {"version": "0.8.16",@@ -160,18 +126,15 @@"resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.8.16.tgz"},"async": {- "version": "0.1.22",- "from": "async@>=0.1.22 <0.2.0"+ "version": "1.5.2",+ "from": "async@>=1.5.2 <2.0.0",+ "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz"},"async-each": {"version": "1.0.0","from": "async-each@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.0.tgz"},- "async-each-series": {- "version": "0.1.1",- "from": "[email protected]"- },"async-foreach": {"version": "0.1.3","from": "async-foreach@>=0.1.3 <0.2.0",@@ -186,6 +149,11 @@"from": "aws-sign2@>=0.6.0 <0.7.0","resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz"},+ "aws4": {+ "version": "1.4.1",+ "from": "aws4@>=1.2.1 <2.0.0",+ "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.4.1.tgz"+ },"babel-code-frame": {"version": "6.7.7","from": "babel-code-frame@>=6.7.7 <7.0.0",@@ -1681,10 +1649,6 @@"from": "babylon@>=6.7.0 <7.0.0","resolved": "https://registry.npmjs.org/babylon/-/babylon-6.7.0.tgz"},- "backo2": {- "version": "1.0.2",- "from": "[email protected]"- },"balanced-match": {"version": "0.3.0","from": "balanced-match@>=0.3.0 <0.4.0",@@ -1695,31 +1659,15 @@"from": "[email protected]","resolved": "https://registry.npmjs.org/base62/-/base62-0.1.1.tgz"},- "base64-arraybuffer": {- "version": "0.1.2",- "from": "[email protected]"- },"base64-js": {"version": "0.0.8","from": "[email protected]","resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz"},- "base64id": {- "version": "0.1.0",- "from": "[email protected]"- },"batch": {"version": "0.5.3","from": "[email protected]"},- "benchmark": {- "version": "1.0.0",- "from": "[email protected]"- },- "better-assert": {- "version": "1.0.2",- "from": "better-assert@>=1.0.0 <1.1.0"- },"big.js": {"version": "3.1.3","from": "big.js@>=3.1.3 <4.0.0"@@ -1730,8 +1678,9 @@"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.4.0.tgz"},"bl": {- "version": "1.0.3",- "from": "bl@>=1.0.0 <1.1.0",+ "version": "1.1.2",+ "from": "bl@>=1.1.2 <1.2.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-1.1.2.tgz","dependencies": {"isarray": {"version": "1.0.0",@@ -1745,14 +1694,10 @@}}},- "blob": {- "version": "0.0.4",- "from": "[email protected]"- },"block-stream": {- "version": "0.0.8",+ "version": "0.0.9","from": "block-stream@*",- "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.8.tgz"+ "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz"},"boom": {"version": "2.10.1",@@ -1772,38 +1717,6 @@"from": "braces@>=1.8.2 <2.0.0","resolved": "https://registry.npmjs.org/braces/-/braces-1.8.4.tgz"},- "browser-sync": {- "version": "2.12.4",- "from": "browser-sync@>=2.6.4 <3.0.0",- "resolved": "https://registry.npmjs.org/browser-sync/-/browser-sync-2.12.4.tgz",- "dependencies": {- "lodash": {- "version": "4.10.0",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.10.0.tgz"- },- "window-size": {- "version": "0.2.0",- "from": "window-size@>=0.2.0 <0.3.0",- "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz"- },- "yargs": {- "version": "4.4.0",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.4.0.tgz"- }- }- },- "browser-sync-client": {- "version": "2.4.2",- "from": "browser-sync-client@>=2.3.3 <3.0.0",- "resolved": "https://registry.npmjs.org/browser-sync-client/-/browser-sync-client-2.4.2.tgz"- },- "browser-sync-ui": {- "version": "0.5.19",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/browser-sync-ui/-/browser-sync-ui-0.5.19.tgz"- },"browserify-zlib": {"version": "0.1.4","from": "browserify-zlib@>=0.1.4 <0.2.0",@@ -1813,11 +1726,6 @@"version": "1.3.1","from": "browserslist@>=1.3.1 <1.4.0"},- "bs-recipes": {- "version": "1.2.2",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/bs-recipes/-/bs-recipes-1.2.2.tgz"- },"buffer": {"version": "3.6.0","from": "buffer@>=3.0.3 <4.0.0",@@ -1840,17 +1748,14 @@"from": "[email protected]","resolved": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz"},- "callsite": {- "version": "1.0.0",- "from": "[email protected]"- },"camelcase": {"version": "2.1.1","from": "camelcase@>=2.0.1 <3.0.0"},"camelcase-keys": {"version": "2.1.0",- "from": "camelcase-keys@>=2.0.0 <3.0.0"+ "from": "camelcase-keys@>=2.0.0 <3.0.0",+ "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz"},"caniuse-db": {"version": "1.0.30000459",@@ -1888,18 +1793,6 @@"from": "clap@>=1.0.9 <2.0.0","resolved": "https://registry.npmjs.org/clap/-/clap-1.1.1.tgz"},- "clean-css": {- "version": "2.2.23",- "from": "clean-css@>=2.2.0 <2.3.0",- "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-2.2.23.tgz",- "dependencies": {- "commander": {- "version": "2.2.0",- "from": "commander@>=2.2.0 <2.3.0",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.2.0.tgz"- }- }- },"cliui": {"version": "3.2.0","from": "cliui@>=3.0.3 <4.0.0",@@ -1920,10 +1813,6 @@"from": "code-point-at@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.0.0.tgz"},- "coffee-script": {- "version": "1.3.3",- "from": "coffee-script@>=1.3.3 <1.4.0"- },"color": {"version": "0.11.3","from": "color@>=0.11.0 <0.12.0",@@ -1949,10 +1838,6 @@"from": "colormin@>=1.0.5 <2.0.0","resolved": "https://registry.npmjs.org/colormin/-/colormin-1.1.0.tgz"},- "colors": {- "version": "0.6.2",- "from": "colors@>=0.6.2 <0.7.0"- },"combined-stream": {"version": "1.0.5","from": "combined-stream@>=1.0.5 <1.1.0",@@ -1960,22 +1845,9 @@},"commander": {"version": "2.9.0",- "from": "commander@>=2.2.0 <3.0.0",+ "from": "commander@>=2.9.0 <3.0.0","resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz"},- "component-bind": {- "version": "1.0.0",- "from": "[email protected]"- },- "component-emitter": {- "version": "1.1.2",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.1.2.tgz"- },- "component-inherit": {- "version": "0.0.3",- "from": "[email protected]"- },"compressible": {"version": "2.0.7","from": "compressible@>=2.0.7 <2.1.0",@@ -2003,42 +1875,20 @@"from": "[email protected]","resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"},- "concat-stream": {- "version": "1.5.1",- "from": "concat-stream@>=1.4.1 <2.0.0",- "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.5.1.tgz",- "dependencies": {- "isarray": {- "version": "1.0.0",- "from": "isarray@>=1.0.0 <1.1.0",- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"- },- "readable-stream": {- "version": "2.0.6",- "from": "readable-stream@>=2.0.0 <2.1.0",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz"- }- }- },- "config-chain": {- "version": "1.1.10",- "from": "config-chain@>=1.1.8 <1.2.0",- "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.10.tgz"- },- "connect": {- "version": "3.4.1",- "from": "[email protected]"- },"connect-history-api-fallback": {- "version": "1.2.0",- "from": "connect-history-api-fallback@>=1.1.0 <2.0.0",- "resolved": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.2.0.tgz"+ "version": "1.1.0",+ "from": "[email protected]"},"console-browserify": {"version": "1.1.0","from": "console-browserify@>=1.1.0 <2.0.0","resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz"},+ "console-control-strings": {+ "version": "1.1.0",+ "from": "console-control-strings@>=1.1.0 <1.2.0",+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz"+ },"constants-browserify": {"version": "0.0.1","from": "[email protected]",@@ -2050,9 +1900,9 @@"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.1.tgz"},"content-type": {- "version": "1.0.1",- "from": "content-type@>=1.0.1 <1.1.0",- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.1.tgz"+ "version": "1.0.2",+ "from": "content-type@>=1.0.2 <1.1.0",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.2.tgz"},"convert-source-map": {"version": "1.2.0",@@ -2060,9 +1910,9 @@"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.2.0.tgz"},"cookie": {- "version": "0.1.5",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.5.tgz"+ "version": "0.3.1",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz"},"cookie-signature": {"version": "1.0.6",@@ -2079,21 +1929,10 @@"from": "core-util-is@>=1.0.0 <1.1.0","resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"},- "cross-spawn-async": {- "version": "2.2.2",- "from": "cross-spawn-async@>=2.1.9 <3.0.0",- "resolved": "https://registry.npmjs.org/cross-spawn-async/-/cross-spawn-async-2.2.2.tgz",- "dependencies": {- "lru-cache": {- "version": "4.0.1",- "from": "lru-cache@>=4.0.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.1.tgz"- },- "which": {- "version": "1.2.4",- "from": "which@>=1.2.4 <2.0.0"- }- }+ "cross-spawn": {+ "version": "3.0.1",+ "from": "cross-spawn@>=3.0.0 <4.0.0",+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz"},"cryptiles": {"version": "2.0.5",@@ -2143,24 +1982,33 @@}}},- "ctype": {- "version": "0.5.3",- "from": "[email protected]"+ "currently-unhandled": {+ "version": "0.4.1",+ "from": "currently-unhandled@>=0.4.1 <0.5.0",+ "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz"},"d": {"version": "0.1.1","from": "d@>=0.1.1 <0.2.0","resolved": "https://registry.npmjs.org/d/-/d-0.1.1.tgz"},+ "dashdash": {+ "version": "1.14.0",+ "from": "dashdash@>=1.12.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.0.tgz",+ "dependencies": {+ "assert-plus": {+ "version": "1.0.0",+ "from": "assert-plus@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz"+ }+ }+ },"date-now": {"version": "0.1.4","from": "date-now@>=0.1.4 <0.2.0","resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz"},- "dateformat": {- "version": "1.0.2-1.2.3",- "from": "[email protected]"- },"debug": {"version": "2.2.0","from": "debug@>=2.1.1 <3.0.0",@@ -2170,16 +2018,6 @@"version": "1.2.0","from": "decamelize@>=1.1.1 <2.0.0"},- "deep-equal": {- "version": "0.0.0",- "from": "deep-equal@>=0.0.0 <0.1.0",- "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-0.0.0.tgz"- },- "defined": {- "version": "0.0.0",- "from": "defined@>=0.0.0 <0.1.0",- "resolved": "https://registry.npmjs.org/defined/-/defined-0.0.0.tgz"- },"delayed-stream": {"version": "1.0.0","from": "delayed-stream@>=1.0.0 <1.1.0",@@ -2210,15 +2048,6 @@}}},- "dev-ip": {- "version": "1.0.1",- "from": "dev-ip@>=1.0.1 <2.0.0"- },- "diff": {- "version": "2.2.2",- "from": "diff@>=2.0.2 <3.0.0",- "resolved": "https://registry.npmjs.org/diff/-/diff-2.2.2.tgz"- },"doctrine": {"version": "1.1.0","from": "[email protected]"@@ -2233,81 +2062,24 @@"from": "dropzone@>=4.2.0 <5.0.0","resolved": "https://registry.npmjs.org/dropzone/-/dropzone-4.3.0.tgz"},- "each-async": {- "version": "1.1.1",- "from": "each-async@>=1.0.0 <2.0.0"- },- "easy-extender": {- "version": "2.3.2",- "from": "[email protected]",- "dependencies": {- "lodash": {- "version": "3.10.1",- "from": "lodash@>=3.10.1 <4.0.0",- "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz"- }- }- },- "eazy-logger": {- "version": "2.1.3",- "from": "eazy-logger@>=2.1.2 <3.0.0",- "resolved": "https://registry.npmjs.org/eazy-logger/-/eazy-logger-2.1.3.tgz"+ "ecc-jsbn": {+ "version": "0.1.1",+ "from": "ecc-jsbn@>=0.1.1 <0.2.0",+ "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz"},"ee-first": {"version": "1.1.1","from": "[email protected]"},- "emitter-steward": {- "version": "1.0.0",- "from": "emitter-steward@>=1.0.0 <2.0.0"- },"emojis-list": {"version": "1.0.1","from": "emojis-list@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-1.0.1.tgz"},- "engine.io": {- "version": "1.6.8",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-1.6.8.tgz",- "dependencies": {- "accepts": {- "version": "1.1.4",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.1.4.tgz"- },- "mime-db": {- "version": "1.12.0",- "from": "mime-db@>=1.12.0 <1.13.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.12.0.tgz"- },- "mime-types": {- "version": "2.0.14",- "from": "mime-types@>=2.0.4 <2.1.0",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.0.14.tgz"- },- "negotiator": {- "version": "0.4.9",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.4.9.tgz"- }- }- },- "engine.io-client": {- "version": "1.6.8",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-1.6.8.tgz"- },- "engine.io-parser": {- "version": "1.2.4",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-1.2.4.tgz",- "dependencies": {- "has-binary": {- "version": "0.1.6",- "from": "[email protected]"- }- }+ "encodeurl": {+ "version": "1.0.1",+ "from": "encodeurl@>=1.0.1 <1.1.0",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.1.tgz"},"enhanced-resolve": {"version": "0.9.1",@@ -2349,11 +2121,6 @@"from": "es6-iterator@>=2.0.0 <3.0.0","resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.0.tgz"},- "es6-promise": {- "version": "3.1.2",- "from": "es6-promise@>=3.0.2 <4.0.0",- "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.1.2.tgz"- },"es6-symbol": {"version": "3.0.2","from": "es6-symbol@>=3.0.2 <4.0.0",@@ -2385,10 +2152,6 @@"version": "1.7.0","from": "etag@>=1.7.0 <2.0.0"},- "eventemitter2": {- "version": "0.4.14",- "from": "eventemitter2@>=0.4.13 <0.5.0"- },"eventemitter3": {"version": "1.2.0","from": "eventemitter3@>=1.0.0 <2.0.0",@@ -2404,10 +2167,6 @@"from": "eventsource@>=0.1.3 <0.2.0","resolved": "https://registry.npmjs.org/eventsource/-/eventsource-0.1.6.tgz"},- "exit": {- "version": "0.1.2",- "from": "exit@>=0.1.1 <0.2.0"- },"expand-brackets": {"version": "0.1.5","from": "expand-brackets@>=0.1.4 <0.2.0",@@ -2419,20 +2178,39 @@"resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.1.tgz"},"express": {- "version": "2.5.11",- "from": "express@>=2.5.0 <2.6.0",+ "version": "4.14.0",+ "from": "express@>=4.13.3 <5.0.0",+ "resolved": "https://registry.npmjs.org/express/-/express-4.14.0.tgz","dependencies": {- "connect": {- "version": "1.9.2",- "from": "connect@>=1.0.0 <2.0.0"+ "accepts": {+ "version": "1.3.3",+ "from": "accepts@>=1.3.3 <1.4.0",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz"},- "mkdirp": {- "version": "0.3.0",- "from": "[email protected]"+ "mime-db": {+ "version": "1.23.0",+ "from": "mime-db@>=1.23.0 <1.24.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.23.0.tgz"+ },+ "mime-types": {+ "version": "2.1.11",+ "from": "mime-types@>=2.1.11 <2.2.0",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.11.tgz"+ },+ "negotiator": {+ "version": "0.6.1",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz"},"qs": {- "version": "0.4.2",- "from": "qs@>=0.4.0 <0.5.0"+ "version": "6.2.0",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.2.0.tgz"+ },+ "range-parser": {+ "version": "1.2.0",+ "from": "range-parser@>=1.2.0 <1.3.0",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz"}}},@@ -2445,6 +2223,11 @@"version": "0.3.2","from": "extglob@>=0.3.1 <0.4.0"},+ "extsprintf": {+ "version": "1.0.2",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz"+ },"falafel": {"version": "1.2.0","from": "falafel@>=1.0.1 <2.0.0",@@ -2455,10 +2238,6 @@"from": "fastparse@>=1.1.1 <2.0.0","resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz"},- "faye-websocket": {- "version": "0.4.4",- "from": "faye-websocket@>=0.4.3 <0.5.0"- },"fbjs": {"version": "0.6.1","from": "fbjs@>=0.6.1 <0.7.0",@@ -2479,8 +2258,16 @@"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz"},"finalhandler": {- "version": "0.4.1",- "from": "[email protected]"+ "version": "0.5.0",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.5.0.tgz",+ "dependencies": {+ "statuses": {+ "version": "1.3.0",+ "from": "statuses@>=1.3.0 <1.4.0",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.0.tgz"+ }+ }},"find-parent-dir": {"version": "0.3.0",@@ -2489,6 +2276,7 @@"find-up": {"version": "1.1.2","from": "find-up@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz","dependencies": {"path-exists": {"version": "2.1.0",@@ -2497,25 +2285,6 @@}}},- "findup-sync": {- "version": "0.1.3",- "from": "findup-sync@>=0.1.2 <0.2.0",- "dependencies": {- "glob": {- "version": "3.2.11",- "from": "glob@>=3.2.9 <3.3.0"- },- "lodash": {- "version": "2.4.2",- "from": "lodash@>=2.4.1 <2.5.0"- },- "minimatch": {- "version": "0.3.0",- "from": "minimatch@>=0.3.0 <0.4.0",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz"- }- }- },"flatten": {"version": "1.0.2","from": "[email protected]",@@ -2549,17 +2318,7 @@"form-data": {"version": "1.0.0-rc4","from": "form-data@>=1.0.0-rc3 <1.1.0",- "dependencies": {- "async": {- "version": "1.5.2",- "from": "async@>=1.5.2 <2.0.0",- "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz"- }- }- },- "formidable": {- "version": "1.0.17",- "from": "formidable@>=1.0.0 <1.1.0"+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc4.tgz"},"forwarded": {"version": "0.1.0",@@ -2570,37 +2329,32 @@"version": "0.3.0","from": "fresh@>=0.3.0 <0.4.0"},- "fs-extra": {- "version": "0.26.7",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.26.7.tgz",- "dependencies": {- "graceful-fs": {- "version": "4.1.3",- "from": "graceful-fs@>=4.1.2 <5.0.0"- }- }+ "fs.realpath": {+ "version": "1.0.0",+ "from": "fs.realpath@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"},"fstream": {- "version": "1.0.8",+ "version": "1.0.10","from": "fstream@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.8.tgz",+ "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.10.tgz"+ },+ "gauge": {+ "version": "2.6.0",+ "from": "gauge@>=2.6.0 <2.7.0",+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.6.0.tgz","dependencies": {- "graceful-fs": {- "version": "4.1.3",- "from": "graceful-fs@>=4.1.2 <5.0.0"+ "object-assign": {+ "version": "4.1.0",+ "from": "object-assign@>=4.1.0 <5.0.0",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz"}}},- "gauge": {- "version": "1.2.7",- "from": "gauge@>=1.2.5 <1.3.0",- "resolved": "https://registry.npmjs.org/gauge/-/gauge-1.2.7.tgz"- },"gaze": {- "version": "0.5.2",- "from": "gaze@>=0.5.1 <0.6.0",- "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz"+ "version": "1.1.0",+ "from": "gaze@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.0.tgz"},"generate-function": {"version": "2.0.0",@@ -2617,24 +2371,26 @@"from": "get-stdin@>=4.0.1 <5.0.0","resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz"},- "getobject": {- "version": "0.1.0",- "from": "getobject@>=0.1.0 <0.2.0"+ "getpass": {+ "version": "0.1.6",+ "from": "getpass@>=0.1.1 <0.2.0",+ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.6.tgz",+ "dependencies": {+ "assert-plus": {+ "version": "1.0.0",+ "from": "assert-plus@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz"+ }+ }},"glob": {- "version": "3.1.21",- "from": "glob@>=3.1.21 <3.2.0",- "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz",+ "version": "7.0.5",+ "from": "glob@>=7.0.3 <8.0.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.0.5.tgz","dependencies": {- "inherits": {- "version": "1.0.2",- "from": "inherits@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz"- },"minimatch": {- "version": "0.2.14",- "from": "minimatch@>=0.2.11 <0.3.0",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz"+ "version": "3.0.2",+ "from": "minimatch@>=3.0.2 <4.0.0"}}},@@ -2654,75 +2410,32 @@"resolved": "https://registry.npmjs.org/globals/-/globals-8.18.0.tgz"},"globule": {- "version": "0.1.0",- "from": "globule@>=0.1.0 <0.2.0",- "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz",+ "version": "1.0.0",+ "from": "globule@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/globule/-/globule-1.0.0.tgz","dependencies": {"lodash": {- "version": "1.0.2",- "from": "lodash@>=1.0.1 <1.1.0",- "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz"+ "version": "4.9.0",+ "from": "lodash@>=4.9.0 <4.10.0",+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.9.0.tgz"},"minimatch": {- "version": "0.2.14",- "from": "minimatch@>=0.2.11 <0.3.0",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz"+ "version": "3.0.2",+ "from": "minimatch@>=3.0.0 <3.1.0",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.2.tgz"}}},"graceful-fs": {- "version": "1.2.3",- "from": "graceful-fs@>=1.2.0 <1.3.0",- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz"+ "version": "4.1.4",+ "from": "graceful-fs@>=4.1.2 <5.0.0",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.4.tgz"},"graceful-readlink": {"version": "1.0.1","from": "graceful-readlink@>=1.0.0","resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz"},- "grunt-legacy-log": {- "version": "0.1.3",- "from": "grunt-legacy-log@>=0.1.0 <0.2.0",- "dependencies": {- "lodash": {- "version": "2.4.2",- "from": "lodash@>=2.4.1 <2.5.0"- },- "underscore.string": {- "version": "2.3.3",- "from": "underscore.string@>=2.3.3 <2.4.0"- }- }- },- "grunt-legacy-log-utils": {- "version": "0.1.1",- "from": "grunt-legacy-log-utils@>=0.1.1 <0.2.0",- "dependencies": {- "lodash": {- "version": "2.4.2",- "from": "lodash@>=2.4.1 <2.5.0"- },- "underscore.string": {- "version": "2.3.3",- "from": "underscore.string@>=2.3.3 <2.4.0"- }- }- },- "grunt-legacy-util": {- "version": "0.2.0",- "from": "grunt-legacy-util@>=0.2.0 <0.3.0",- "dependencies": {- "lodash": {- "version": "0.9.2",- "from": "lodash@>=0.9.2 <0.10.0"- }- }- },- "gzip-size": {- "version": "0.1.1",- "from": "gzip-size@>=0.1.0 <0.2.0",- "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-0.1.1.tgz"- },"hammerjs": {"version": "2.0.8","from": "hammerjs@>=2.0.4 <3.0.0",@@ -2730,28 +2443,19 @@},"har-validator": {"version": "2.0.6",- "from": "har-validator@>=2.0.2 <2.1.0"+ "from": "har-validator@>=2.0.6 <2.1.0",+ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz"},"has-ansi": {"version": "2.0.0","from": "has-ansi@>=2.0.0 <3.0.0","resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz"},- "has-binary": {- "version": "0.1.7",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.7.tgz"- },"has-color": {"version": "0.1.7",- "from": "has-color@>=0.1.0 <0.2.0",+ "from": "has-color@>=0.1.7 <0.2.0","resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz"},- "has-cors": {- "version": "1.1.0",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz"- },"has-flag": {"version": "1.0.0","from": "has-flag@>=1.0.0 <2.0.0",@@ -2763,13 +2467,14 @@"resolved": "https://registry.npmjs.org/has-own/-/has-own-1.0.0.tgz"},"has-unicode": {- "version": "2.0.0",+ "version": "2.0.1","from": "has-unicode@>=2.0.0 <3.0.0",- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.0.tgz"+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz"},"hawk": {"version": "3.1.3",- "from": "hawk@>=3.1.0 <3.2.0"+ "from": "hawk@>=3.1.3 <3.2.0",+ "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz"},"hoek": {"version": "2.16.3",@@ -2786,14 +2491,10 @@"from": "home-or-tmp@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-1.0.0.tgz"},- "hooker": {- "version": "0.2.3",- "from": "hooker@>=0.2.3 <0.3.0"- },"hosted-git-info": {- "version": "2.1.4",+ "version": "2.1.5","from": "hosted-git-info@>=2.1.4 <3.0.0",- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.4.tgz"+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.1.5.tgz"},"html-comment-regex": {"version": "1.1.0",@@ -2814,17 +2515,14 @@"from": "[email protected]"},"http-signature": {- "version": "0.11.0",- "from": "http-signature@>=0.11.0 <0.12.0"+ "version": "1.1.1",+ "from": "http-signature@>=1.1.0 <1.2.0",+ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz"},"https-browserify": {"version": "0.0.0","from": "[email protected]"},- "iconv-lite": {- "version": "0.2.11",- "from": "iconv-lite@>=0.2.11 <0.3.0"- },"icss-replace-symbols": {"version": "1.0.2","from": "icss-replace-symbols@>=1.0.2 <2.0.0",@@ -2835,16 +2533,6 @@"from": "ieee754@>=1.1.4 <2.0.0","resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.6.tgz"},- "image-size": {- "version": "0.4.0",- "from": "image-size@>=0.4.0 <0.5.0",- "resolved": "https://registry.npmjs.org/image-size/-/image-size-0.4.0.tgz"- },- "immutable": {- "version": "3.7.6",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.7.6.tgz"- },"in-publish": {"version": "2.0.0","from": "in-publish@>=2.0.0 <3.0.0",@@ -2873,20 +2561,15 @@"resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz"},"inflight": {- "version": "1.0.4",+ "version": "1.0.5","from": "inflight@>=1.0.4 <2.0.0",- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz"+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.5.tgz"},"inherits": {"version": "2.0.1","from": "inherits@>=2.0.0 <3.0.0","resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz"},- "ini": {- "version": "1.3.4",- "from": "ini@>=1.2.0 <2.0.0",- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz"- },"inline-process-browser": {"version": "2.0.1","from": "inline-process-browser@>=2.0.1 <2.1.0",@@ -2907,14 +2590,9 @@"resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz"},"ipaddr.js": {- "version": "1.0.5",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.0.5.tgz"- },- "is-absolute": {- "version": "0.1.7",- "from": "is-absolute@>=0.1.7 <0.2.0",- "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz"+ "version": "1.1.1",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.1.1.tgz"},"is-absolute-url": {"version": "2.0.0",@@ -2977,7 +2655,8 @@},"is-my-json-valid": {"version": "2.13.1",- "from": "is-my-json-valid@>=2.12.4 <3.0.0"+ "from": "is-my-json-valid@>=2.12.4 <3.0.0",+ "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.13.1.tgz"},"is-number": {"version": "2.1.0",@@ -3004,16 +2683,16 @@"from": "is-property@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz"},- "is-relative": {- "version": "0.1.3",- "from": "is-relative@>=0.1.0 <0.2.0",- "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-0.1.3.tgz"- },"is-svg": {"version": "2.0.1","from": "is-svg@>=2.0.0 <3.0.0","resolved": "https://registry.npmjs.org/is-svg/-/is-svg-2.0.1.tgz"},+ "is-typedarray": {+ "version": "1.0.0",+ "from": "is-typedarray@>=1.0.0 <1.1.0",+ "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz"+ },"is-utf8": {"version": "0.2.1","from": "is-utf8@>=0.2.0 <0.3.0",@@ -3026,7 +2705,8 @@},"isexe": {"version": "1.1.2",- "from": "isexe@>=1.1.1 <2.0.0"+ "from": "isexe@>=1.1.1 <2.0.0",+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-1.1.2.tgz"},"isobject": {"version": "2.0.0",@@ -3038,6 +2718,11 @@"from": "isstream@>=0.1.2 <0.2.0","resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz"},+ "jodid25519": {+ "version": "1.0.2",+ "from": "jodid25519@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/jodid25519/-/jodid25519-1.0.2.tgz"+ },"jquery": {"version": "2.2.3","from": "jquery@>=2.1.4 <3.0.0",@@ -3072,51 +2757,41 @@"from": "js-tokens@>=1.0.1 <2.0.0","resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-1.0.3.tgz"},- "js-yaml": {- "version": "2.0.5",- "from": "js-yaml@>=2.0.5 <2.1.0",- "dependencies": {- "esprima": {- "version": "1.0.4",- "from": "esprima@>=1.0.2 <1.1.0",- "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz"- }- }+ "jsbn": {+ "version": "0.1.0",+ "from": "jsbn@>=0.1.0 <0.2.0",+ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.0.tgz"},"jsesc": {"version": "0.5.0","from": "jsesc@>=0.5.0 <0.6.0","resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz"},+ "json-schema": {+ "version": "0.2.2",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.2.tgz"+ },"json-stringify-safe": {"version": "5.0.1","from": "json-stringify-safe@>=5.0.1 <5.1.0","resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz"},- "json3": {- "version": "3.2.6",- "from": "[email protected]"- },"json5": {"version": "0.4.0","from": "json5@>=0.4.0 <0.5.0","resolved": "https://registry.npmjs.org/json5/-/json5-0.4.0.tgz"},- "jsonfile": {- "version": "2.3.0",- "from": "jsonfile@>=2.1.0 <3.0.0",- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.3.0.tgz"- },- "jsonify": {- "version": "0.0.0",- "from": "jsonify@>=0.0.0 <0.1.0",- "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz"- },"jsonpointer": {"version": "2.0.0","from": "[email protected]","resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-2.0.0.tgz"},+ "jsprim": {+ "version": "1.3.0",+ "from": "jsprim@>=1.2.2 <2.0.0",+ "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.3.0.tgz"+ },"jstransform": {"version": "10.1.0","from": "jstransform@>=10.0.1 <11.0.0",@@ -3127,11 +2802,6 @@"from": "kind-of@>=3.0.2 <4.0.0","resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.0.2.tgz"},- "klaw": {- "version": "1.2.0",- "from": "klaw@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.2.0.tgz"- },"lazy-cache": {"version": "1.0.4","from": "lazy-cache@>=1.0.3 <2.0.0",@@ -3142,20 +2812,10 @@"from": "lcid@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz"},- "limiter": {- "version": "1.1.0",- "from": "limiter@>=1.0.5 <2.0.0"- },"load-json-file": {"version": "1.1.0",- "from": "load-json-file@>=1.1.0 <2.0.0",- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",- "dependencies": {- "graceful-fs": {- "version": "4.1.3",- "from": "graceful-fs@>=4.1.2 <5.0.0"- }- }+ "from": "load-json-file@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz"},"loader-utils": {"version": "0.2.14",@@ -3169,33 +2829,14 @@}}},- "localtunnel": {- "version": "1.8.1",- "from": "[email protected]",- "dependencies": {- "camelcase": {- "version": "1.2.1",- "from": "camelcase@>=1.2.1 <2.0.0"- },- "yargs": {- "version": "3.29.0",- "from": "[email protected]"- }- }- },"lodash": {"version": "4.0.0","from": "[email protected]"},"lodash._baseclone": {- "version": "4.5.6",- "from": "lodash._baseclone@>=4.0.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash._baseclone/-/lodash._baseclone-4.5.6.tgz"- },- "lodash._baseslice": {- "version": "4.0.0",- "from": "lodash._baseslice@>=4.0.0 <4.1.0",- "resolved": "https://registry.npmjs.org/lodash._baseslice/-/lodash._baseslice-4.0.0.tgz"+ "version": "4.5.7",+ "from": "lodash._baseclone@>=4.5.0 <4.6.0",+ "resolved": "https://registry.npmjs.org/lodash._baseclone/-/lodash._baseclone-4.5.7.tgz"},"lodash._createcompounder": {"version": "3.0.0",@@ -3208,9 +2849,9 @@"resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz"},"lodash.assign": {- "version": "4.0.8",+ "version": "4.0.9","from": "lodash.assign@>=4.0.3 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.0.8.tgz"+ "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.0.9.tgz"},"lodash.camelcase": {"version": "3.0.1",@@ -3218,9 +2859,9 @@"resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-3.0.1.tgz"},"lodash.clonedeep": {- "version": "4.3.1",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.3.1.tgz"+ "version": "4.3.2",+ "from": "lodash.clonedeep@>=4.3.2 <5.0.0",+ "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.3.2.tgz"},"lodash.deburr": {"version": "3.2.0",@@ -3228,34 +2869,14 @@"resolved": "https://registry.npmjs.org/lodash.deburr/-/lodash.deburr-3.2.0.tgz"},"lodash.keys": {- "version": "4.0.6",+ "version": "4.0.7","from": "lodash.keys@>=4.0.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-4.0.6.tgz"- },- "lodash.pad": {- "version": "4.3.0",- "from": "lodash.pad@>=4.1.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash.pad/-/lodash.pad-4.3.0.tgz"- },- "lodash.padend": {- "version": "4.4.0",- "from": "lodash.padend@>=4.1.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.4.0.tgz"- },- "lodash.padstart": {- "version": "4.4.0",- "from": "lodash.padstart@>=4.1.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash.padstart/-/lodash.padstart-4.4.0.tgz"+ "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-4.0.7.tgz"},"lodash.rest": {- "version": "4.0.2",+ "version": "4.0.3","from": "lodash.rest@>=4.0.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash.rest/-/lodash.rest-4.0.2.tgz"- },- "lodash.tostring": {- "version": "4.1.2",- "from": "lodash.tostring@>=4.0.0 <5.0.0",- "resolved": "https://registry.npmjs.org/lodash.tostring/-/lodash.tostring-4.1.2.tgz"+ "resolved": "https://registry.npmjs.org/lodash.rest/-/lodash.rest-4.0.3.tgz"},"lodash.words": {"version": "3.2.0",@@ -3272,13 +2893,14 @@"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.1.0.tgz"},"loud-rejection": {- "version": "1.3.0",- "from": "loud-rejection@>=1.0.0 <2.0.0"+ "version": "1.5.0",+ "from": "loud-rejection@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.5.0.tgz"},"lru-cache": {- "version": "2.7.3",- "from": "lru-cache@>=2.0.0 <3.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz"+ "version": "4.0.1",+ "from": "lru-cache@>=4.0.1 <5.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.0.1.tgz"},"map-obj": {"version": "1.0.1",@@ -3295,25 +2917,6 @@"from": "git+https://github.com/mociepka/materialize-sass-origin.git","resolved": "git+https://github.com/mociepka/materialize-sass-origin.git#ed9ec71b28258f4ae06106c4c6fcd822c27fbdb6"},- "maxmin": {- "version": "0.1.0",- "from": "maxmin@>=0.1.0 <0.2.0",- "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-0.1.0.tgz",- "dependencies": {- "ansi-styles": {- "version": "1.0.0",- "from": "ansi-styles@>=1.0.0 <1.1.0"- },- "chalk": {- "version": "0.4.0",- "from": "chalk@>=0.4.0 <0.5.0"- },- "strip-ansi": {- "version": "0.1.1",- "from": "strip-ansi@>=0.1.0 <0.2.0"- }- }- },"media-typer": {"version": "0.3.0","from": "[email protected]",@@ -3351,8 +2954,9 @@"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.7.tgz"},"mime": {- "version": "1.2.4",- "from": "[email protected]"+ "version": "1.3.4",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz"},"mime-db": {"version": "1.22.0",@@ -3386,44 +2990,23 @@"from": "[email protected]","resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz"},- "multimatch": {- "version": "2.1.0",- "from": "multimatch@>=2.0.0 <3.0.0",- "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz",- "dependencies": {- "minimatch": {- "version": "3.0.0",- "from": "minimatch@>=3.0.0 <4.0.0"- }- }- },"nan": {- "version": "2.2.1",- "from": "nan@>=2.2.0 <3.0.0",- "resolved": "https://registry.npmjs.org/nan/-/nan-2.2.1.tgz"+ "version": "2.3.5",+ "from": "nan@>=2.3.2 <3.0.0",+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.3.5.tgz"},"negotiator": {"version": "0.5.3","from": "[email protected]"},"node-gyp": {- "version": "3.3.1",+ "version": "3.4.0","from": "node-gyp@>=3.3.1 <4.0.0",- "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.3.1.tgz",+ "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.4.0.tgz","dependencies": {- "graceful-fs": {- "version": "4.1.3",- "from": "graceful-fs@>=4.1.2 <5.0.0"- },"minimatch": {- "version": "1.0.0",- "from": "minimatch@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-1.0.0.tgz"- },- "nopt": {- "version": "3.0.6",- "from": "nopt@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0",- "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz"+ "version": "3.0.2",+ "from": "minimatch@>=3.0.2 <4.0.0"}}},@@ -3438,77 +3021,19 @@}}},- "node-sass": {- "version": "3.5.3",- "from": "node-sass@>=3.0.0 <4.0.0",- "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-3.5.3.tgz",- "dependencies": {- "gaze": {- "version": "1.0.0",- "from": "gaze@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.0.0.tgz"- },- "glob": {- "version": "7.0.3",- "from": "glob@>=7.0.3 <8.0.0",- "dependencies": {- "minimatch": {- "version": "3.0.0",- "from": "minimatch@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0"- }- }- },- "globule": {- "version": "0.2.0",- "from": "globule@>=0.2.0 <0.3.0",- "resolved": "https://registry.npmjs.org/globule/-/globule-0.2.0.tgz",- "dependencies": {- "glob": {- "version": "3.2.11",- "from": "glob@>=3.2.7 <3.3.0",- "dependencies": {- "minimatch": {- "version": "0.3.0",- "from": "minimatch@>=0.3.0 <0.4.0",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz"- }- }- }- }- },- "lodash": {- "version": "2.4.2",- "from": "lodash@>=2.4.1 <2.5.0"- },- "minimatch": {- "version": "0.2.14",- "from": "minimatch@>=0.2.11 <0.3.0",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz"- }- }- },"node-uuid": {"version": "1.4.7","from": "node-uuid@>=1.4.3 <1.5.0","resolved": "https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.7.tgz"},"nopt": {- "version": "1.0.10",- "from": "nopt@>=1.0.10 <1.1.0"- },- "noptify": {- "version": "0.0.3",- "from": "noptify@>=0.0.3 <0.1.0",- "dependencies": {- "nopt": {- "version": "2.0.0",- "from": "nopt@>=2.0.0 <2.1.0"- }- }+ "version": "3.0.6",+ "from": "nopt@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz"},"normalize-package-data": {"version": "2.3.5",- "from": "normalize-package-data@>=2.3.2 <3.0.0",+ "from": "normalize-package-data@>=2.3.4 <3.0.0","resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.5.tgz"},"normalize-path": {@@ -3525,27 +3050,10 @@"from": "normalize-url@>=1.4.0 <2.0.0","resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-1.5.3.tgz"},- "npmconf": {- "version": "2.1.2",- "from": "npmconf@>=2.1.2 <3.0.0",- "resolved": "https://registry.npmjs.org/npmconf/-/npmconf-2.1.2.tgz",- "dependencies": {- "nopt": {- "version": "3.0.6",- "from": "nopt@>=3.0.1 <3.1.0",- "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz"- },- "semver": {- "version": "4.3.6",- "from": "semver@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0||>=4.0.0 <5.0.0",- "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz"- }- }- },"npmlog": {- "version": "2.0.3",- "from": "npmlog@>=0.0.0 <1.0.0||>=1.0.0 <2.0.0||>=2.0.0 <3.0.0",- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-2.0.3.tgz"+ "version": "3.1.2",+ "from": "npmlog@>=0.0.0 <1.0.0||>=1.0.0 <2.0.0||>=2.0.0 <3.0.0||>=3.0.0 <4.0.0",+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-3.1.2.tgz"},"num2fraction": {"version": "1.2.2",@@ -3557,27 +3065,20 @@"resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.0.tgz"},"oauth-sign": {- "version": "0.8.1",- "from": "oauth-sign@>=0.8.0 <0.9.0"+ "version": "0.8.2",+ "from": "oauth-sign@>=0.8.1 <0.9.0",+ "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz"},"object-assign": {"version": "4.0.1","from": "object-assign@>=4.0.1 <5.0.0","resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz"},- "object-component": {- "version": "0.0.3",- "from": "[email protected]"- },"object-keys": {"version": "1.0.9","from": "object-keys@>=1.0.6 <2.0.0","resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.9.tgz"},- "object-path": {- "version": "0.9.2",- "from": "object-path@>=0.9.0 <0.10.0"- },"object.omit": {"version": "2.0.0","from": "object.omit@>=2.0.0 <3.0.0",@@ -3597,43 +3098,11 @@"from": "once@>=1.3.0 <2.0.0","resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz"},- "onetime": {- "version": "1.1.0",- "from": "onetime@>=1.0.0 <2.0.0"- },- "openurl": {- "version": "1.1.0",- "from": "[email protected]"- },- "opn": {- "version": "3.0.3",- "from": "opn@>=3.0.2 <4.0.0"- },- "opt-merger": {- "version": "1.1.1",- "from": "opt-merger@>=1.1.0 <2.0.0",- "dependencies": {- "lodash": {- "version": "3.10.1",- "from": "lodash@>=3.10.1 <4.0.0",- "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz"- },- "minimist": {- "version": "1.2.0",- "from": "minimist@>=1.1.0 <2.0.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz"- }- }- },"optimist": {"version": "0.6.1","from": "optimist@>=0.6.0 <0.7.0","resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz"},- "options": {- "version": "0.0.6",- "from": "options@>=0.0.5"- },"original": {"version": "1.0.0","from": "original@>=0.0.5",@@ -3686,18 +3155,6 @@"from": "parse-json@>=2.2.0 <3.0.0","resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz"},- "parsejson": {- "version": "0.0.1",- "from": "[email protected]"- },- "parseqs": {- "version": "0.0.2",- "from": "[email protected]"- },- "parseuri": {- "version": "0.0.4",- "from": "[email protected]"- },"parseurl": {"version": "1.3.1","from": "parseurl@>=1.3.1 <1.4.0"@@ -3730,13 +3187,7 @@"path-type": {"version": "1.1.0","from": "path-type@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",- "dependencies": {- "graceful-fs": {- "version": "4.1.3",- "from": "graceful-fs@>=4.1.2 <5.0.0"- }- }+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz"},"pbkdf2-compat": {"version": "2.0.1",@@ -3749,7 +3200,8 @@},"pinkie": {"version": "2.0.4",- "from": "pinkie@>=2.0.0 <3.0.0"+ "from": "pinkie@>=2.0.0 <3.0.0",+ "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz"},"pinkie-promise": {"version": "2.0.1",@@ -3757,19 +3209,9 @@"resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz"},"pkg-conf": {- "version": "1.1.2",+ "version": "1.1.3","from": "pkg-conf@>=1.1.2 <2.0.0",- "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-1.1.2.tgz"- },- "portscanner": {- "version": "1.0.0",- "from": "portscanner@>=1.0.0 <2.0.0",- "dependencies": {- "async": {- "version": "0.1.15",- "from": "[email protected]"- }- }+ "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-1.1.3.tgz"},"postcss": {"version": "5.0.21",@@ -3952,11 +3394,6 @@"from": "preserve@>=0.2.0 <0.3.0","resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz"},- "pretty-bytes": {- "version": "0.1.2",- "from": "pretty-bytes@>=0.1.0 <0.2.0",- "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-0.1.2.tgz"- },"private": {"version": "0.1.6","from": "private@>=0.1.6 <0.2.0",@@ -3977,15 +3414,10 @@"from": "promise@>=7.0.3 <8.0.0","resolved": "https://registry.npmjs.org/promise/-/promise-7.1.1.tgz"},- "proto-list": {- "version": "1.2.4",- "from": "proto-list@>=1.2.1 <1.3.0",- "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz"- },"proxy-addr": {- "version": "1.0.10",- "from": "proxy-addr@>=1.0.10 <1.1.0",- "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.10.tgz"+ "version": "1.1.2",+ "from": "proxy-addr@>=1.1.2 <1.2.0",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.1.2.tgz"},"prr": {"version": "0.0.0",@@ -4009,7 +3441,7 @@},"qs": {"version": "6.1.0",- "from": "[email protected]",+ "from": "qs@>=6.1.0 <6.2.0","resolved": "https://registry.npmjs.org/qs/-/qs-6.1.0.tgz"},"query-string": {@@ -4188,15 +3620,9 @@"resolved": "https://registry.npmjs.org/repeating/-/repeating-1.1.3.tgz"},"request": {- "version": "2.65.0",- "from": "[email protected]",- "dependencies": {- "qs": {- "version": "5.2.0",- "from": "qs@>=5.2.0 <5.3.0",- "resolved": "https://registry.npmjs.org/qs/-/qs-5.2.0.tgz"- }- }+ "version": "2.72.0",+ "from": "request@>=2.61.0 <3.0.0",+ "resolved": "https://registry.npmjs.org/request/-/request-2.72.0.tgz"},"require-main-filename": {"version": "1.0.1",@@ -4211,37 +3637,43 @@"version": "1.0.0","from": "requires-port@>=1.0.0 <2.0.0"},- "resolve": {- "version": "0.3.1",- "from": "resolve@>=0.3.1 <0.4.0",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.3.1.tgz"- },- "resp-modifier": {- "version": "6.0.0",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/resp-modifier/-/resp-modifier-6.0.0.tgz"- },"right-align": {"version": "0.1.3","from": "right-align@>=0.1.1 <0.2.0"},"rimraf": {- "version": "2.2.8",- "from": "rimraf@>=2.2.8 <2.3.0"+ "version": "2.5.2",+ "from": "rimraf@>=2.0.0 <3.0.0",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.5.2.tgz"},"ripemd160": {"version": "0.2.0","from": "[email protected]"},"sass-graph": {- "version": "2.1.1",+ "version": "2.1.2","from": "sass-graph@>=2.1.1 <3.0.0",- "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.1.1.tgz",+ "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.1.2.tgz","dependencies": {- "glob": {- "version": "6.0.4",- "from": "glob@>=6.0.4 <7.0.0",- "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz"+ "camelcase": {+ "version": "3.0.0",+ "from": "camelcase@>=3.0.0 <4.0.0",+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz"+ },+ "set-blocking": {+ "version": "1.0.0",+ "from": "set-blocking@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-1.0.0.tgz"+ },+ "window-size": {+ "version": "0.2.0",+ "from": "window-size@>=0.2.0 <0.3.0",+ "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz"+ },+ "yargs": {+ "version": "4.7.1",+ "from": "yargs@>=4.7.1 <5.0.0",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.7.1.tgz"}}},@@ -4256,17 +3688,27 @@"resolved": "https://registry.npmjs.org/select2/-/select2-4.0.3.tgz"},"semver": {- "version": "5.1.0",- "from": "semver@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0||>=4.0.0 <5.0.0||>=5.0.0 <6.0.0"+ "version": "5.2.0",+ "from": "semver@>=2.0.0 <3.0.0||>=3.0.0 <4.0.0||>=4.0.0 <5.0.0||>=5.0.0 <6.0.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.2.0.tgz"},"send": {- "version": "0.13.1",- "from": "[email protected]",+ "version": "0.14.1",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/send/-/send-0.14.1.tgz","dependencies": {- "mime": {- "version": "1.3.4",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz"+ "http-errors": {+ "version": "1.5.0",+ "from": "http-errors@>=1.5.0 <1.6.0",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.5.0.tgz"+ },+ "range-parser": {+ "version": "1.2.0",+ "from": "range-parser@>=1.2.0 <1.3.0"+ },+ "statuses": {+ "version": "1.3.0",+ "from": "statuses@>=1.3.0 <1.4.0"}}},@@ -4275,12 +3717,19 @@"from": "[email protected]"},"serve-static": {- "version": "1.10.2",- "from": "[email protected]"+ "version": "1.11.1",+ "from": "serve-static@>=1.11.1 <1.12.0",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.11.1.tgz"+ },+ "set-blocking": {+ "version": "2.0.0",+ "from": "set-blocking@>=2.0.0 <2.1.0",+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz"},- "set-immediate-shim": {+ "setprototypeof": {"version": "1.0.1",- "from": "set-immediate-shim@>=1.0.0 <2.0.0"+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.1.tgz"},"sha.js": {"version": "2.2.6",@@ -4291,15 +3740,10 @@"from": "shebang-regex@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz"},- "sigmund": {- "version": "1.0.1",- "from": "sigmund@>=1.0.0 <1.1.0",- "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz"- },"signal-exit": {- "version": "2.1.2",- "from": "signal-exit@>=2.1.2 <3.0.0",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-2.1.2.tgz"+ "version": "3.0.0",+ "from": "signal-exit@>=3.0.0 <4.0.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.0.tgz"},"slash": {"version": "1.0.0",@@ -4311,52 +3755,6 @@"from": "sntp@>=1.0.0 <2.0.0","resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz"},- "socket.io": {- "version": "1.4.5",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-1.4.5.tgz"- },- "socket.io-adapter": {- "version": "0.4.0",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.4.0.tgz",- "dependencies": {- "socket.io-parser": {- "version": "2.2.2",- "from": "[email protected]",- "dependencies": {- "debug": {- "version": "0.7.4",- "from": "[email protected]"- }- }- }- }- },- "socket.io-client": {- "version": "1.4.5",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.4.5.tgz",- "dependencies": {- "component-emitter": {- "version": "1.2.0",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.0.tgz"- }- }- },- "socket.io-parser": {- "version": "2.2.6",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.2.6.tgz",- "dependencies": {- "json3": {- "version": "3.3.2",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/json3/-/json3-3.3.2.tgz"- }- }- },"sockjs": {"version": "0.3.16","from": "sockjs@>=0.3.15 <0.4.0",@@ -4442,6 +3840,18 @@"from": "sprintf-js@>=1.0.2 <1.1.0","resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz"},+ "sshpk": {+ "version": "1.8.3",+ "from": "sshpk@>=1.7.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.8.3.tgz",+ "dependencies": {+ "assert-plus": {+ "version": "1.0.0",+ "from": "assert-plus@>=1.0.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz"+ }+ }+ },"statuses": {"version": "1.2.1","from": "statuses@>=1.0.0 <2.0.0"@@ -4463,10 +3873,6 @@"from": "stream-cache@>=0.0.1 <0.1.0","resolved": "https://registry.npmjs.org/stream-cache/-/stream-cache-0.0.2.tgz"},- "stream-throttle": {- "version": "0.1.3",- "from": "stream-throttle@>=0.1.3 <0.2.0"- },"strict-uri-encode": {"version": "1.1.0","from": "strict-uri-encode@>=1.0.0 <2.0.0",@@ -4534,29 +3940,19 @@}},"symbol": {- "version": "0.2.1",+ "version": "0.2.3","from": "symbol@>=0.2.1 <0.3.0",- "resolved": "https://registry.npmjs.org/symbol/-/symbol-0.2.1.tgz"+ "resolved": "https://registry.npmjs.org/symbol/-/symbol-0.2.3.tgz"},"tapable": {"version": "0.1.10","from": "tapable@>=0.1.8 <0.2.0"},- "tape": {- "version": "0.2.2",- "from": "tape@>=0.2.2 <0.3.0",- "resolved": "https://registry.npmjs.org/tape/-/tape-0.2.2.tgz"- },"tar": {"version": "2.2.1","from": "tar@>=2.0.0 <3.0.0","resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz"},- "tfunk": {- "version": "3.0.2",- "from": "tfunk@>=3.0.1 <4.0.0",- "resolved": "https://registry.npmjs.org/tfunk/-/tfunk-3.0.2.tgz"- },"through": {"version": "2.3.8","from": "through@>=2.3.4 <2.4.0",@@ -4578,26 +3974,6 @@"from": "timers-browserify@>=1.0.1 <2.0.0","resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz"},- "tiny-lr-fork": {- "version": "0.0.5",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/tiny-lr-fork/-/tiny-lr-fork-0.0.5.tgz",- "dependencies": {- "debug": {- "version": "0.7.4",- "from": "debug@>=0.7.0 <0.8.0"- },- "qs": {- "version": "0.5.6",- "from": "qs@>=0.5.2 <0.6.0"- }- }- },- "to-array": {- "version": "0.1.4",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz"- },"to-fast-properties": {"version": "1.0.2","from": "to-fast-properties@>=1.0.1 <2.0.0",@@ -4605,7 +3981,8 @@},"tough-cookie": {"version": "2.2.2",- "from": "tough-cookie@>=2.2.0 <2.3.0"+ "from": "tough-cookie@>=2.2.0 <2.3.0",+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.2.2.tgz"},"trim-newlines": {"version": "1.0.0",@@ -4618,29 +3995,35 @@"resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz"},"tunnel-agent": {- "version": "0.4.2",+ "version": "0.4.3","from": "tunnel-agent@>=0.4.1 <0.5.0",- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.2.tgz"+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.3.tgz"},- "type-is": {- "version": "1.6.12",- "from": "type-is@>=1.6.6 <1.7.0",- "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.12.tgz"+ "tweetnacl": {+ "version": "0.13.3",+ "from": "tweetnacl@>=0.13.0 <0.14.0",+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.13.3.tgz"},- "typedarray": {- "version": "0.0.6",- "from": "typedarray@>=0.0.5 <0.1.0",- "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz"+ "type-is": {+ "version": "1.6.13",+ "from": "type-is@>=1.6.13 <1.7.0",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.13.tgz",+ "dependencies": {+ "mime-db": {+ "version": "1.23.0",+ "from": "mime-db@>=1.23.0 <1.24.0"+ },+ "mime-types": {+ "version": "2.1.11",+ "from": "mime-types@>=2.1.11 <2.2.0"+ }+ }},"ua-parser-js": {"version": "0.7.10","from": "ua-parser-js@>=0.7.9 <0.8.0","resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.10.tgz"},- "ucfirst": {- "version": "1.0.0",- "from": "ucfirst@>=1.0.0 <2.0.0"- },"uglify-js": {"version": "2.6.4","from": "uglify-js@>=2.6.0 <2.7.0",@@ -4681,24 +4064,11 @@"version": "1.0.2","from": "uglify-to-browserify@>=1.0.0 <1.1.0"},- "uid-number": {- "version": "0.0.5",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/uid-number/-/uid-number-0.0.5.tgz"- },- "ultron": {- "version": "1.0.2",- "from": "ultron@>=1.0.0 <1.1.0"- },"underscore": {"version": "1.8.3","from": "underscore@>=1.8.3 <2.0.0","resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz"},- "underscore.string": {- "version": "2.2.1",- "from": "underscore.string@>=2.2.1 <2.3.0"- },"uniq": {"version": "1.0.1","from": "uniq@>=1.0.1 <2.0.0",@@ -4745,10 +4115,6 @@"from": "user-home@>=1.1.1 <2.0.0","resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz"},- "utf8": {- "version": "2.1.0",- "from": "[email protected]"- },"util": {"version": "0.10.3","from": "util@>=0.10.3 <0.11.0",@@ -4773,6 +4139,11 @@"from": "vary@>=1.1.0 <1.2.0","resolved": "https://registry.npmjs.org/vary/-/vary-1.1.0.tgz"},+ "verror": {+ "version": "1.3.6",+ "from": "[email protected]",+ "resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz"+ },"vm-browserify": {"version": "0.0.4","from": "[email protected]",@@ -4838,21 +4209,6 @@"from": "websocket-extensions@>=0.1.1","resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.1.tgz"},- "weinre": {- "version": "2.0.0-pre-I0Z7U9OV",- "from": "weinre@>=2.0.0-pre-I0Z7U9OV <3.0.0",- "dependencies": {- "nopt": {- "version": "3.0.6",- "from": "nopt@>=3.0.0 <3.1.0",- "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz"- },- "underscore": {- "version": "1.7.0",- "from": "underscore@>=1.7.0 <1.8.0"- }- }- },"whatwg-fetch": {"version": "0.9.0","from": "whatwg-fetch@>=0.9.0 <0.10.0",@@ -4864,9 +4220,14 @@"resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz"},"which": {- "version": "1.0.9",- "from": "which@>=1.0.5 <1.1.0",- "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz"+ "version": "1.2.10",+ "from": "which@>=1.2.9 <2.0.0",+ "resolved": "https://registry.npmjs.org/which/-/which-1.2.10.tgz"+ },+ "wide-align": {+ "version": "1.1.0",+ "from": "wide-align@>=1.1.0 <2.0.0",+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.0.tgz"},"window-size": {"version": "0.1.4",@@ -4884,19 +4245,9 @@"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.0.0.tgz"},"wrappy": {- "version": "1.0.1",+ "version": "1.0.2","from": "wrappy@>=1.0.0 <2.0.0",- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz"- },- "ws": {- "version": "1.0.1",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/ws/-/ws-1.0.1.tgz"- },- "xmlhttprequest-ssl": {- "version": "1.5.1",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.1.tgz"+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"},"xtend": {"version": "4.0.1",@@ -4920,18 +4271,8 @@},"yargs-parser": {"version": "2.4.0",- "from": "yargs-parser@>=2.2.0 <3.0.0",+ "from": "yargs-parser@>=2.4.0 <3.0.0","resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.0.tgz"- },- "yeast": {- "version": "0.1.2",- "from": "[email protected]",- "resolved": "https://registry.npmjs.org/yeast/-/yeast-0.1.2.tgz"- },- "zlib-browserify": {- "version": "0.0.3",- "from": "zlib-browserify@>=0.0.3 <0.0.4",- "resolved": "https://registry.npmjs.org/zlib-browserify/-/zlib-browserify-0.0.3.tgz"}}}diff --git a/package.json b/package.jsonindex 4172d9751d..88f83beed8 100644--- a/package.json+++ b/package.json@@ -51,6 +51,7 @@"css-loader": "^0.23.1","extract-text-webpack-plugin": "^1.0.1","file-loader": "^0.9.0",+ "node-sass": "^3.8.0","postcss": "^5.0.10","postcss-loader": "^0.9.1","sass-loader": "^4.0.0",diff --git a/saleor/cart/templates/cart/index.html b/saleor/cart/templates/cart/index.htmlindex 35aa695fe3..2a7fafb864 100644--- a/saleor/cart/templates/cart/index.html+++ b/saleor/cart/templates/cart/index.html@@ -1,7 +1,8 @@{% extends "base.html" %}{% load gross from prices_i18n %}{% load i18n %}-{% load staticfiles %}+{% load static from staticfiles %}+{% load render_bundle from webpack_loader %}{% block title %}{% trans "Your cart" %} — {{ block.super }}{% endblock %}@@ -10,6 +11,16 @@<li><a href="{% url 'cart:index' %}">{% trans "Cart" %}</a></li>{% endblock breadcrumb %}+{% block stylesheet %}+ {{ block.super }}+ {% render_bundle 'cart' 'css' %}+{% endblock stylesheet %}++{% block footer_scripts %}+ {{ block.super }}+ {% render_bundle 'cart' 'js' %}+{% endblock footer_scripts %}+{% block content %}{% if cart %}<table class="table table-striped cart" id="cart-items">diff --git a/saleor/static/js/cart.js b/saleor/static/js/cart.jsnew file mode 100644index 0000000000..78353b4e26--- /dev/null+++ b/saleor/static/js/cart.js@@ -0,0 +1,70 @@+/* @flow */++import $ from 'jquery'+import React from 'react'+import { render } from 'react-dom'+import { Provider } from 'react-redux'++import { CartItemAmount, CartItemSubtotal, CartTotal } from './components/cart'+import store from './stores/cart-store'++const options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]++$('.cart-item-amount').each(function(index) {+ let $input = $(this).find('input')+ let $button = $(this).find('button')+ let value = $input.val()+ let name = $input.attr('name')+ let max = $input.attr('max')+ let props = {+ className: '',+ index: index,+ max: parseInt(max),+ options: options.slice(0, max),+ thresholdValue: options[options.length - 1],+ url: $(this).find('form').attr('action'),+ fieldName: name,+ value: parseInt(value)+ }+ $(this).find('.cart-item-quantity').removeClass('js-hidden')+ $button.addClass('invisible')+ render(+ <Provider store={store}>+ <CartItemAmount {...props}/>+ </Provider>,+ this+ )+})++let $cartTotal = $('.cart-total')+let cartTotalValue = $cartTotal.text()+if ($cartTotal.length) {+ store.dispatch({+ type: 'UPDATE_TOTAL',+ total: cartTotalValue+ })+ render(+ <Provider store={store}>+ <CartTotal />+ </Provider>,+ $cartTotal[0]+ )+}++$('.cart-item-subtotal').each(function() {+ let productId = $(this).data('product-id')+ let props = {+ productId,+ subtotal: $(this).text()+ }+ store.dispatch({+ type: 'UPDATE_SUBTOTAL',+ ...props+ })+ render(+ <Provider store={store}>+ <CartItemSubtotal productId={productId} />+ </Provider>,+ this+ )+})diff --git a/saleor/static/js/components/cart.js b/saleor/static/js/components/cart.jsindex 177bf62690..76a1e60912 100644--- a/saleor/static/js/components/cart.js+++ b/saleor/static/js/components/cart.js@@ -1,173 +1,244 @@/* @flow */-import React, {Component, findDOMNode} from 'react';-import {connect} from 'react-redux';-import $ from 'jquery';+import React, { Component, findDOMNode, PropTypes } from 'react'+import { connect } from 'react-redux'+import $ from 'jquery'export class CartItemAmountOption extends Component {- render(): Component {- var value = this.props.value;- var label = this.props.label ? this.props.label : value;- return <option value={value}>{label}</option>;- };+ render(): React.Element {+ const value = this.props.value+ const label = this.props.label ? this.props.label : value+ return <option value={value}>{label}</option>+ }}class CartItemAmountSelect extends Component {- constructor() {- super(...arguments);- this.state = {- error: null,- lastSavedValue: this.props.value,- renderSelect: false,- renderSubmit: false,- result: null,- sending: false,- value: this.props.value- };- }+ static propTypes = {+ className: PropTypes.string,+ fieldName: PropTypes.string.isRequired,+ max: PropTypes.number,+ min: PropTypes.number,+ options: PropTypes.arrayOf(PropTypes.number).isRequired,+ thresholdValue: PropTypes.number,+ value: PropTypes.number.isRequired+ };- componentDidMount() {- if (this.state.value < this.props.thresholdValue) {- this.setState({renderSelect: true});- }- }+ state: {+ error: ?string;+ lastSavedValue: number;+ renderSelect: bool;+ renderSubmit: bool;+ result: ?string;+ sending: bool;+ value: number+ } = {+ error: null,+ lastSavedValue: this.props.value,+ renderSelect: false,+ renderSubmit: false,+ result: null,+ sending: false,+ value: this.props.value+ };- change(event) {- let newValue = event.target.value;- this.setState({result: null});- if (newValue != this.props.thresholdValue || !this.state.renderSelect) {- this.setState({value: newValue});+ _change = (event) => {+ let newValue = event.target.value+ this.setState({ result: null })+ if (newValue !== this.props.thresholdValue || !this.state.renderSelect) {+ this.setState({ value: newValue })}if (newValue >= this.props.thresholdValue) {- this.setState({renderSelect: false});+ this.setState({ renderSelect: false })}if (newValue < this.props.thresholdValue && this.state.renderSelect) {- this.sendQuantity(newValue);+ this.sendQuantity(newValue)}if (!this.state.renderSelect && !this.state.sending) {- this.setState({renderSubmit: true});+ this.setState({ renderSubmit: true })}- }-- valueChanged() {- return this.state.lastSavedValue != this.state.value;- }+ };- checkKey(event) {+ _checkKey = (event) => {if (event.key === 'Enter' && this.valueChanged()) {- this.sendQuantityWrapper();+ this.sendQuantityWrapper()+ }+ };++ componentDidMount() {+ if (this.state.value < this.props.thresholdValue) {+ this.setState({ renderSelect: true })}}+ valueChanged() {+ return this.state.lastSavedValue != this.state.value+ }+sendQuantityWrapper() {- this.sendQuantity(this.state.value);+ this.sendQuantity(this.state.value)}sendQuantity(quantity) {- this.setState({renderSubmit: false});- this.setState({sending: true});+ this.setState({ renderSubmit: false })+ this.setState({ sending: true })$.ajax({url: this.props.url,method: 'post',- data: {[this.props.fieldName]: quantity},+ data: { [this.props.fieldName]: quantity },complete: () => {- this.setState({sending: false});+ this.setState({ sending: false })if (quantity < this.props.thresholdValue) {- this.setState({renderSelect: true});+ this.setState({ renderSelect: true })}},success: (response) => {if (!quantity) {if (!response.total) {- location.reload();+ location.reload()}$(findDOMNode(this)).parents('tr').fadeOut(function() {- $(this).remove();- });+ $(this).remove()+ })}if (response.hasOwnProperty('productId')) {- let {productId, subtotal, total} = response;- let props = {productId, subtotal};- this.props.dispatch({type: 'UPDATE_SUBTOTAL', ...props});- this.props.dispatch({type: 'UPDATE_TOTAL', total});+ const { productId, subtotal, total } = response+ this.props.dispatch({+ type: 'UPDATE_SUBTOTAL',+ productId,+ subtotal+ })+ this.props.dispatch({+ type: 'UPDATE_TOTAL',+ total+ })}- this.setState({result: 'success', lastSavedValue: quantity});+ this.setState({+ result: 'success',+ lastSavedValue: quantity+ })setTimeout(() => {- this.setState({result: null});- }, 1000);+ this.setState({ result: null })+ }, 1000)},error: (response) => {- this.setState({error: response.error.quantity, result: 'error'});+ this.setState({+ error: response.error.quantity,+ result: 'error'+ })}- });+ })}removeFromCart() {- this.sendQuantity(0);+ this.sendQuantity(0)}render() {- let classNames = [this.props.className];+ let classNames = [this.props.className]switch (this.state.result) {case ('success'):- classNames.push('has-success');- break;+ classNames.push('has-success')+ breakcase ('error'):- classNames.push('has-error');- break;+ classNames.push('has-error')+ break}- let classNamesInput = ['input-group', 'cart-item-quantity'];- if ((!this.state.renderSubmit || !this.valueChanged()) && !(this.state.result === 'error')) {- classNamesInput.push('no-submit');+ let classNamesInput = ['input-group', 'cart-item-quantity']+ if (+ (!this.state.renderSubmit || !this.valueChanged())+ && !(this.state.result === 'error')+ ) {+ classNamesInput.push('no-submit')}- let options = this.props.options.map((option) => <CartItemAmountOption key={option} value={option} label={option == this.props.thresholdValue ? `${option} +` : option} />);- let select = <select onChange={this.change.bind(this)} value={this.state.value} className="form-control cart-item-quantity-select">- {options}- </select>;- let input = <div className={classNamesInput.join(' ')}>- <input onKeyUp={this.checkKey.bind(this)} onChange={this.change.bind(this)} id="id_quantity" max={this.props.max} min="1" ref="inputQuantity" name="quantity" type="number" value={this.state.value} />- <span className="input-group-btn">- <button onClick={this.sendQuantityWrapper.bind(this)} className="btn btn-info" type="submit">Update</button>- </span>- </div>;- return <div className={classNames.join(' ')}>- {this.state.renderSelect ? select : input}- {this.state.sending && !(this.state.result == 'error')? <i className="fa fa-circle-o-notch fa-spin"></i> : ''}- {this.state.result == 'error' ? <span className="error text-danger">{this.state.error}</span> : ''}- <button type="submit" className="btn btn-link btn-sm cart-item-remove" onClick={this.removeFromCart.bind(this)}>- <span className="text-muted">Remove from cart</span>- </button>- </div>;+ const options = this.props.options.map((option) => (+ <CartItemAmountOption+ key={option}+ label={option == this.props.thresholdValue ? `${option} +` : option}+ value={option}+ />+ ))+ const select = (+ <select+ className="form-control cart-item-quantity-select"+ onChange={this._change}+ value={this.state.value}+ >+ {options}+ </select>+ )+ const input = (+ <div className={classNamesInput.join(' ')}>+ <input+ id="id_quantity"+ max={this.props.max}+ min={1}+ name="quantity"+ onChange={this._change}+ onKeyUp={this._checkKey}+ ref="inputQuantity"+ type="number"+ value={this.state.value}+ />+ <span className="input-group-btn">+ <button+ className="btn btn-info"+ onClick={this.sendQuantityWrapper.bind(this)}+ type="submit"+ >+ Update+ </button>+ </span>+ </div>+ )+ return (+ <div className={classNames.join(' ')}>+ {this.state.renderSelect ? select : input}+ {this.state.sending && this.state.result !== 'error' ? (+ <i className="fa fa-circle-o-notch fa-spin"></i>+ ) : undefined}+ {this.state.result === 'error' ? (+ <span className="error text-danger">+ {this.state.error}+ </span>+ ) : undefined}+ <button+ className="btn btn-link btn-sm cart-item-remove"+ onClick={this.removeFromCart.bind(this)}+ type="submit"+ >+ <span className="text-muted">+ Remove from cart+ </span>+ </button>+ </div>+ )}}-function selectQuantities(state) {- // FIXME: move quantities to store- return {};-}+const selectQuantities = (state) => ({}) // FIXME: move quantities to storeexport var CartItemAmount = connect(selectQuantities)(CartItemAmountSelect);-let renderSubtotal = ({productId, subtotals}) => {+const renderSubtotal = ({productId, subtotals}) => {let value;if (subtotals.hasOwnProperty(productId)) {- value = subtotals[productId];+ value = subtotals[productId]}- return <span>{value}</span>;+ return <span>{value}</span>}-function selectSubtotals(state) {- return {'subtotals': state.subtotals};-}+const selectSubtotals = (state) => ({+ subtotals: state.subtotals+})-export var CartItemSubtotal = connect(selectSubtotals)(renderSubtotal);+export var CartItemSubtotal = connect(selectSubtotals)(renderSubtotal)-let renderTotal = ({value}) => <b>{value}</b>;+const renderTotal = ({value}) => <b>{value}</b>-function selectTotal(state) {- return {'value': state.total};-}+const selectTotal = (state) => ({+ value: state.total+})-export var CartTotal = connect(selectTotal)(renderTotal);+export var CartTotal = connect(selectTotal)(renderTotal)diff --git a/saleor/static/js/dashboard.js b/saleor/static/js/dashboard.jsindex cb93288c9a..e8e33af9e9 100644--- a/saleor/static/js/dashboard.js+++ b/saleor/static/js/dashboard.js@@ -1,99 +1,98 @@-var $ = require('jquery');-var Dropzone = require('dropzone');-var Sortable = require('sortablejs');+import Dropzone from 'dropzone'+import $ from 'jquery'+import 'jquery-ui/datepicker'+import 'jquery-match-height'+import 'materialize-sass-origin'+import 'select2'+import Sortable from 'sortablejs'-require('jquery-ui/datepicker');-require('jquery-match-height');-require('materialize-sass-origin');-require('select2');--require('../scss/dashboard.scss');+import '../scss/dashboard.scss'$(document).ready(function() {- initSelects();- $('.button-collapse').sideNav();- $('.modal-trigger').leanModal();+ initSelects()+ $('.button-collapse').sideNav()+ $('.modal-trigger').leanModal()if (isTablet()) {- $('.equal-height-on-med').matchHeight();+ $('.equal-height-on-med').matchHeight()}- var $tabs = $('ul.tabs');+ var $tabs = $('ul.tabs')if ($tabs.length) {$tabs.find('.tab').on('click', function (e) {- window.history.pushState(null, null, e.target.hash);- var tabSelector = $(this).find('a').attr('href');- $('.btn-fab').addClass('btn-fab-hidden');- $(tabSelector + '-btn').removeClass('btn-fab-hidden');- });+ window.history.pushState(null, null, e.target.hash)+ var tabSelector = $(this).find('a').attr('href')+ $('.btn-fab').addClass('btn-fab-hidden')+ $(tabSelector + '-btn').removeClass('btn-fab-hidden')+ })- $tabs.find('a.active').parent().click();+ $tabs.find('a.active').parent().click()}$('.modal-trigger-custom').on('click', function (e) {- var that = this;+ var that = this$.ajax({url: $(this).data('href'),method: 'get',success: function (response) {- var $modal = $($(that).attr('href'));- $modal.html(response);- initSelects();- $modal.openModal();+ var $modal = $($(that).attr('href'))+ $modal.html(response)+ initSelects()+ $modal.openModal()}- });+ })- e.preventDefault();- });+ e.preventDefault()+ })- var $messages = $('.message');- var timeout = 0;- var offset = 100;- var firstMessageOffset = 250;+ var $messages = $('.message')+ var timeout = 0+ var offset = 100+ var firstMessageOffset = 250setTimeout(function() {$messages.each(function () {- var that = this;+ var that = thissetTimeout(function () {- $(that).removeClass('toast--hidden');- }, timeout + offset);- timeout += 3000;+ $(that).removeClass('toast--hidden')+ }, timeout + offset)+ timeout += 3000setTimeout(function () {- $(that).addClass('toast--hidden');- }, timeout - offset);- });- }, firstMessageOffset);+ $(that).addClass('toast--hidden')+ }, timeout - offset)+ })+ }, firstMessageOffset)$(document).on('submit', '.form-async', function(e) {- var that = this;+ var that = this$.ajax({url: $(that).attr('action'),method: 'post',data: $(that).serialize(),complete: function(response) {if (response.status === 400) {- $(that).parent().html(response.responseText);- initSelects();+ $(that).parent().html(response.responseText)+ initSelects()} else {- $('.modal-close').click();+ $('.modal-close').click()}},success: function(response) {if (response.redirectUrl) {- window.location.href = response.redirectUrl;+ window.location.href = response.redirectUrl} else {- location.reload();+ location.reload()}}- });- e.preventDefault();+ })+ e.preventDefault()}).on('click', '.modal-close', function() {- $('.modal').closeModal();- });+ $('.modal').closeModal()+ })function isTablet() {- return !$('.hide-on-med-only').is(':visible');+ return !$('.hide-on-med-only').is(':visible')}-});+})Dropzone.options.productImageForm = {paramName: "image",maxFilesize: 20,@@ -103,28 +102,28 @@ Dropzone.options.productImageForm = {previewTemplate: $("#template").html(),clickable: false,init: function() {- var $dropzoneGhost = $('.dropzone-ghost');- var $gallery = $('.product-gallery');+ var $dropzoneGhost = $('.dropzone-ghost')+ var $gallery = $('.product-gallery')this.on('complete', function() {- $dropzoneGhost.remove().appendTo($gallery);+ $dropzoneGhost.remove().appendTo($gallery)}).on('success', function(e, response) {- $(e.previewElement).find('.product-gallery-item-desc').html(e.name);- $(e.previewElement).attr('data-id', response.id);- var editLinkHref = $(e.previewElement).find('.card-action-edit').attr('href');- editLinkHref = editLinkHref.split('/');- editLinkHref[editLinkHref.length - 2] = response.id;- $(e.previewElement).find('.card-action-edit').attr('href', editLinkHref.join('/'));- $(e.previewElement).find('.card-action-edit').show();- var deleteLinkHref = $(e.previewElement).find('.card-action-delete').attr('href');- deleteLinkHref = deleteLinkHref.split('/');- deleteLinkHref[deleteLinkHref.length - 3] = response.id;- $(e.previewElement).find('.card-action-delete').attr('href', deleteLinkHref.join('/'));- $(e.previewElement).find('.card-action-delete').show();- });+ $(e.previewElement).find('.product-gallery-item-desc').html(e.name)+ $(e.previewElement).attr('data-id', response.id)+ var editLinkHref = $(e.previewElement).find('.card-action-edit').attr('href')+ editLinkHref = editLinkHref.split('/')+ editLinkHref[editLinkHref.length - 2] = response.id+ $(e.previewElement).find('.card-action-edit').attr('href', editLinkHref.join('/'))+ $(e.previewElement).find('.card-action-edit').show()+ var deleteLinkHref = $(e.previewElement).find('.card-action-delete').attr('href')+ deleteLinkHref = deleteLinkHref.split('/')+ deleteLinkHref[deleteLinkHref.length - 3] = response.id+ $(e.previewElement).find('.card-action-delete').attr('href', deleteLinkHref.join('/'))+ $(e.previewElement).find('.card-action-delete').show()+ })}-};-var el = document.getElementById('product-gallery');+}+var el = document.getElementById('product-gallery')if (el) {Sortable.create(el, {handle: '.card-image',@@ -134,11 +133,11 @@ if (el) {contentType: "application/json",data: JSON.stringify({'order': (function () {- var postData = [];+ var postData = []$(el).find('.product-gallery-item[data-id]').each(function() {- postData.push($(this).data('id'));- });- return postData;+ postData.push($(this).data('id'))+ })+ return postData})()}),headers: {@@ -146,64 +145,64 @@ if (el) {},method: 'post',url: $(el).data('post-url')- });+ })}- });+ })}$('.select-all').on('change', function() {- var $items = $(this).parents('form').find('.switch-actions');+ var $items = $(this).parents('form').find('.switch-actions')if (this.checked) {- $items.prop('checked', true);+ $items.prop('checked', true)} else {- $items.prop('checked', false);+ $items.prop('checked', false)}-});+})$('.switch-actions').on('change', function() {- var $btnChecked = $(this).parents('form').find('.btn-show-when-checked');- var $btnUnchecked = $(this).parents('form').find('.btn-show-when-unchecked');+ var $btnChecked = $(this).parents('form').find('.btn-show-when-checked')+ var $btnUnchecked = $(this).parents('form').find('.btn-show-when-unchecked')if($(this).parents('form').find('.switch-actions:checked').length) {- $btnChecked.show();- $btnUnchecked.hide();+ $btnChecked.show()+ $btnUnchecked.hide()} else {- $btnUnchecked.show();- $btnChecked.hide();+ $btnUnchecked.show()+ $btnChecked.hide()}-});+})$('.datepicker').pickadate({format: 'd mmmm yyyy',formatSubmit: 'yyyy-mm-dd',selectMonths: true,hiddenName: true-});+})function initSelects() {- $('select:not(.browser-default):not([multiple])').material_select();- $('select[multiple]').addClass('browser-default').select2();+ $('select:not(.browser-default):not([multiple])').material_select()+ $('select[multiple]').addClass('browser-default').select2()}// Coupon dynamic forms$(document).ready(() => {- let $voucherTypeInput = $('.body-vouchers [name="type"]');+ let $voucherTypeInput = $('.body-vouchers [name="type"]')if ($voucherTypeInput.length) {- let $discountValueType = $('[name="discount_value_type"]');- let $voucherForms = $('.voucher-form');- let $applyToProduct = $('[name="product-apply_to"]').parents('.input');- let $applyToCategory = $('[name="category-apply_to"]').parents('.input');+ let $discountValueType = $('[name="discount_value_type"]')+ let $voucherForms = $('.voucher-form')+ let $applyToProduct = $('[name="product-apply_to"]').parents('.input')+ let $applyToCategory = $('[name="category-apply_to"]').parents('.input')let onChange = () => {- let discountValueType = $discountValueType.val();- let type = $voucherTypeInput.val();- let hide = discountValueType === 'percentage';- $applyToProduct.toggleClass('hide', hide);- $applyToCategory.toggleClass('hide', hide);+ let discountValueType = $discountValueType.val()+ let type = $voucherTypeInput.val()+ let hide = discountValueType === 'percentage'+ $applyToProduct.toggleClass('hide', hide)+ $applyToCategory.toggleClass('hide', hide)$voucherForms.each((index, form) => {- let $form = $(form);- let hideForm = $form.data('type') !== type;- $form.toggleClass('hide', hideForm);- });- };+ let $form = $(form)+ let hideForm = $form.data('type') !== type+ $form.toggleClass('hide', hideForm)+ })+ }- $discountValueType.on('change', onChange);- $voucherTypeInput.on('change', onChange);- $voucherTypeInput.trigger('change');+ $discountValueType.on('change', onChange)+ $voucherTypeInput.on('change', onChange)+ $voucherTypeInput.trigger('change')}-});+})diff --git a/saleor/static/js/storefront.js b/saleor/static/js/storefront.jsindex f183f32a2d..0ca0e60b9e 100644--- a/saleor/static/js/storefront.js+++ b/saleor/static/js/storefront.js@@ -1,115 +1,42 @@/* @flow */-import React from 'react';-import {render} from 'react-dom';-import {Provider} from 'react-redux';-import $ from 'jquery';-import {CartItemAmount, CartItemSubtotal, CartTotal} from './components/cart';-import CartStore from './stores/cart-store';-require('jquery.cookie');-require('bootstrap-sass');+import 'bootstrap-sass'+import $ from 'jquery'+import 'jquery.cookie'-require('../scss/storefront.scss');+import '../scss/storefront.scss'-let textInput = [];-let options = [1,2,3,4,5,6,7,8,9,10];-let csrftoken = $.cookie('csrftoken');+let options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]+let csrftoken = $.cookie('csrftoken')function csrfSafeMethod(method) {- return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method));+ return /^(GET|HEAD|OPTIONS|TRACE)$/.test(method)}$.ajaxSetup({beforeSend: function(xhr, settings) {if (!csrfSafeMethod(settings.type) && !this.crossDomain) {- xhr.setRequestHeader('X-CSRFToken', csrftoken);+ xhr.setRequestHeader('X-CSRFToken', csrftoken)}}-});--$('.cart-item-amount').each(function(index) {- let $input = $(this).find('input');- let $button = $(this).find('button');- let value = $input.val();- let name = $input.attr('name');- let max = $input.attr('max');- let props = {- className: '',- index: index,- max: max,- options: options.slice(0, max),- thresholdValue: options[options.length - 1],- url: $(this).find('form').attr('action'),- fieldName: name,- value: value- };- $(this).find('.cart-item-quantity').removeClass('js-hidden');- $button.addClass('invisible');- textInput.push(this.firstElementChild);- render(<Provider store={CartStore}>- <CartItemAmount {...props} />- </Provider>, this);-});--let $cartTotal = $('.cart-total');-let cartTotalValue = $cartTotal.text();-if ($cartTotal.length) {- CartStore.dispatch({type: 'UPDATE_TOTAL', total: cartTotalValue});- render(<Provider store={CartStore}>- <CartTotal />- </Provider>, $cartTotal[0]);-}--$('.cart-item-subtotal').each(function() {- let productId = $(this).data('product-id');- let props = {- productId,- subtotal: $(this).text()- };- CartStore.dispatch({type: 'UPDATE_SUBTOTAL', ...props});- render(<Provider store={CartStore}>- <CartItemSubtotal productId={productId} />- </Provider>, this);-});+})$(function() {- let $carousel = $('.carousel');- let $items = $('.product-gallery-item');- let $modal = $('.modal');+ const $carousel = $('.carousel')+ const $items = $('.product-gallery-item')+ const $modal = $('.modal')$items.on('click', function(e) {if ($carousel.is(':visible')) {- e.preventDefault();+ e.preventDefault()}- let index = $(this).index();- $carousel.carousel(index);- });+ const index = $(this).index()+ $carousel.carousel(index)+ })$modal.on('show.bs.modal', function() {- let $img = $(this).find('.modal-body img');- let dataSrc = $img.attr('data-src');- $img.attr('src', dataSrc);- });-});--$(function() {- $('.conditional-visibility').each(function() {- let $element = $(this);- let controller = $element.data('controller');- let triggerValue = $element.data('value');- let $controller = $(controller);- function updateVisiblity() {- let value = $controller.filter(':checked').val();- if (!value && $controller.prop('type') === 'hidden') {- value = $controller.val();- }- if (value === triggerValue) {- $element.show();- } else {- $element.hide();- }- }- $controller.on('change', updateVisiblity);- updateVisiblity();- });-});+ const $img = $(this).find('.modal-body img')+ const dataSrc = $img.attr('data-src')+ $img.attr('src', dataSrc)+ })+})diff --git a/saleor/static/js/stores/cart-store.js b/saleor/static/js/stores/cart-store.jsindex 8889ebd3be..7017ec5e05 100644--- a/saleor/static/js/stores/cart-store.js+++ b/saleor/static/js/stores/cart-store.js@@ -1,21 +1,47 @@/* @flow */-import {createStore} from 'redux';+import { createStore } from 'redux';-function updateCart(state = {total: 'N/A', subtotals: {}}, action) {+type CartState = {+ total: string;+ subtotals: { [key: number]: string };+};++type CartUpdateTotal = {+ type: 'UPDATE_TOTAL';+ total: string+};++type CartUpdateSubtotal = {+ type: 'UPDATE_SUBTOTAL';+ productId: number;+ subtotal: string+};++type CartAction = CartUpdateTotal | CartUpdateSubtotal;++const defaultState: CartState = {+ total: 'N/A',+ subtotals: {}+}++const cart = (state: CartState = defaultState, action: CartAction) => {switch(action.type) {case ('UPDATE_TOTAL'):- return {...state, total: action.total};+ return {+ ...state,+ total: action.total+ }case ('UPDATE_SUBTOTAL'):- let {productId, subtotal} = action;- let subtotals = {...state.subtotals};- subtotals[productId] = subtotal;- return {...state, subtotals};+ const { productId, subtotal } = action;+ const subtotals = { ...state.subtotals, [productId]: subtotal }+ return {+ ...state,+ subtotals+ }default:- return state;+ return state}}-let store = createStore(updateCart);--export default store;+export default createStore(cart)diff --git a/webpack.config.js b/webpack.config.jsindex 6739d9dbea..7d432fb585 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -26,16 +26,13 @@ var providePlugin = new webpack.ProvidePlugin({var config = {entry: {+ cart: './saleor/static/js/cart.js',dashboard: './saleor/static/js/dashboard.js',storefront: './saleor/static/js/storefront.js',vendor: ['bootstrap-sass','jquery',- 'jquery.cookie',- 'react',- 'react-dom',- 'react-redux',- 'redux'+ 'jquery.cookie']},output: {