Merge pull request #360 from pdehaan/fix-linting

Fix some linting nits
This commit is contained in:
Danny Coates 2017-07-31 09:21:33 -07:00 committed by GitHub
commit 9a285df790
6 changed files with 193 additions and 551 deletions

View File

@ -19,6 +19,7 @@ rules:
security/detect-non-literal-fs-filename: off security/detect-non-literal-fs-filename: off
security/detect-object-injection: off security/detect-object-injection: off
eol-last: [error, always]
eqeqeq: error eqeqeq: error
no-console: warn no-console: warn
no-path-concat: error no-path-concat: error

View File

@ -4,3 +4,4 @@ rules:
color-hex-case: lower color-hex-case: lower
declaration-colon-newline-after: null declaration-colon-newline-after: null
selector-list-comma-newline-after: null selector-list-comma-newline-after: null
value-list-comma-newline-after: null

View File

@ -3,7 +3,7 @@ window.Raven.config(window.dsn).install();
window.dsn = undefined; window.dsn = undefined;
const testPilotGA = require('testpilot-ga'); const testPilotGA = require('testpilot-ga');
const {gcmCompliant, sendEvent} = require('./utils'); const { gcmCompliant, sendEvent } = require('./utils');
window.analytics = new testPilotGA({ window.analytics = new testPilotGA({
an: 'Firefox Send', an: 'Firefox Send',
ds: 'web', ds: 'web',
@ -11,20 +11,24 @@ window.analytics = new testPilotGA({
}); });
const isSender = !location.pathname.includes('/download'); const isSender = !location.pathname.includes('/download');
const ec = isSender ? 'sender' : 'recipient';
const ua = navigator.userAgent.toLowerCase();
gcmCompliant().catch(err => { gcmCompliant().catch(err => {
sendEvent(isSender ? 'sender' : 'recipient', 'unsupported', { sendEvent(ec, 'unsupported', {
cd6: err cd6: err
}).then(() => { }).then(() => {
location.replace('/unsupported/gcm'); location.replace('/unsupported/gcm');
}); });
}); });
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1 && if (
parseInt(navigator.userAgent.toLowerCase().match(/firefox\/*([^\n\r]*)\./)[1]) <= 49) { ua.indexOf('firefox') > -1 &&
sendEvent(isSender ? 'sender' : 'recipient', 'unsupported', { parseInt(ua.match(/firefox\/*([^\n\r]*)\./)[1], 10) <= 49
cd6: new Error('Firefox is outdated.') ) {
}).then(() => { sendEvent(ec, 'unsupported', {
location.replace('/unsupported/outdated'); cd6: new Error('Firefox is outdated.')
}); }).then(() => {
location.replace('/unsupported/outdated');
});
} }

698
package-lock.json generated
View File

@ -120,12 +120,6 @@
"integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
"dev": true "dev": true
}, },
"array-differ": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz",
"integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=",
"dev": true
},
"array-filter": { "array-filter": {
"version": "0.0.1", "version": "0.0.1",
"resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz",
@ -228,16 +222,16 @@
"dev": true "dev": true
}, },
"autoprefixer": { "autoprefixer": {
"version": "6.7.7", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.7.7.tgz", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-7.1.2.tgz",
"integrity": "sha1-Hb0cg1ZY41zj+ZhAmdsAWFx4IBQ=", "integrity": "sha1-++rwfUj9h44Ggr98vurecorbKxg=",
"dev": true, "dev": true,
"requires": { "requires": {
"browserslist": "1.7.7", "browserslist": "2.2.2",
"caniuse-db": "1.0.30000704", "caniuse-lite": "1.0.30000708",
"normalize-range": "0.1.2", "normalize-range": "0.1.2",
"num2fraction": "1.2.2", "num2fraction": "1.2.2",
"postcss": "5.2.17", "postcss": "6.0.8",
"postcss-value-parser": "3.3.0" "postcss-value-parser": "3.3.0"
} }
}, },
@ -574,12 +568,12 @@
} }
}, },
"browserslist": { "browserslist": {
"version": "1.7.7", "version": "2.2.2",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-2.2.2.tgz",
"integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", "integrity": "sha512-MejxGMNIeIqzgaMKVYfFTWHinrwZOnWMXteN9VlHinTd13/0aDmXY9uyRqNsCTnVxqRmrjQFcXI7cy0q9K1IYg==",
"dev": true, "dev": true,
"requires": { "requires": {
"caniuse-db": "1.0.30000704", "caniuse-lite": "1.0.30000708",
"electron-to-chromium": "1.3.16" "electron-to-chromium": "1.3.16"
} }
}, },
@ -649,7 +643,8 @@
"camelcase": { "camelcase": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=" "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=",
"optional": true
}, },
"camelcase-keys": { "camelcase-keys": {
"version": "2.1.0", "version": "2.1.0",
@ -674,16 +669,17 @@
"resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz",
"integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs="
}, },
"caniuse-db": { "caniuse-lite": {
"version": "1.0.30000704", "version": "1.0.30000708",
"resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000704.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000708.tgz",
"integrity": "sha1-jFqm/tgFjmXHDywfXWP3CIZQcFw=", "integrity": "sha1-cdvziMV/N5sbtmyJqJDtwEwlCbY=",
"dev": true "dev": true
}, },
"center-align": { "center-align": {
"version": "0.1.3", "version": "0.1.3",
"resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz",
"integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=",
"optional": true,
"requires": { "requires": {
"align-text": "0.1.4", "align-text": "0.1.4",
"lazy-cache": "1.0.4" "lazy-cache": "1.0.4"
@ -736,6 +732,7 @@
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz",
"integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=",
"optional": true,
"requires": { "requires": {
"center-align": "0.1.3", "center-align": "0.1.3",
"right-align": "0.1.3", "right-align": "0.1.3",
@ -745,7 +742,8 @@
"wordwrap": { "wordwrap": {
"version": "0.0.2", "version": "0.0.2",
"resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
"integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=" "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
"optional": true
} }
} }
}, },
@ -774,56 +772,12 @@
"color-name": "1.1.3" "color-name": "1.1.3"
} }
}, },
"color-diff": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/color-diff/-/color-diff-0.1.7.tgz",
"integrity": "sha1-bbeM2UgqjkWdQIIer0tQMoPcuOI=",
"dev": true
},
"color-name": { "color-name": {
"version": "1.1.3", "version": "1.1.3",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
"dev": true "dev": true
}, },
"colorguard": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/colorguard/-/colorguard-1.2.0.tgz",
"integrity": "sha1-8/rK9cquuk71RlPZ+yW7cxd8DYQ=",
"dev": true,
"requires": {
"chalk": "1.1.3",
"color-diff": "0.1.7",
"log-symbols": "1.0.2",
"object-assign": "4.1.1",
"pipetteur": "2.0.3",
"plur": "2.1.2",
"postcss": "5.2.17",
"postcss-reporter": "1.4.1",
"text-table": "0.2.0",
"yargs": "1.3.3"
},
"dependencies": {
"postcss-reporter": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-1.4.1.tgz",
"integrity": "sha1-wTbwpbFhkV83ndN2XGEHX357mvI=",
"dev": true,
"requires": {
"chalk": "1.1.3",
"lodash": "4.17.4",
"log-symbols": "1.0.2",
"postcss": "5.2.17"
}
},
"yargs": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-1.3.3.tgz",
"integrity": "sha1-BU3oth8i7v23IHBZ6u+da4P7kxo=",
"dev": true
}
}
},
"combine-source-map": { "combine-source-map": {
"version": "0.7.2", "version": "0.7.2",
"resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz", "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.7.2.tgz",
@ -1057,9 +1011,9 @@
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
}, },
"cosmiconfig": { "cosmiconfig": {
"version": "2.2.1", "version": "2.2.2",
"resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-2.2.1.tgz", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-2.2.2.tgz",
"integrity": "sha512-17m9pl5cD9jhPUHqaxSA4fyoiAQJUG7V3CQDxCF7gWzGYeUY0YEnLQdQyOEKjEPVv0yGbdCfdfJMq6SphRiRjw==", "integrity": "sha512-GiNXLwAFPYHy25XmTPpafYvn3CLAkJ8FLsscq78MQd1Kh0OU6Yzhn4eV2MVF4G9WEQZoWEGltatdR+ntGPMl5A==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-directory": "0.3.1", "is-directory": "0.3.1",
@ -1131,75 +1085,6 @@
"resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-1.0.9.tgz", "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-1.0.9.tgz",
"integrity": "sha1-zFRJaF37hesRyYKKzHy4erW7/MA=" "integrity": "sha1-zFRJaF37hesRyYKKzHy4erW7/MA="
}, },
"css-color-names": {
"version": "0.0.3",
"resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.3.tgz",
"integrity": "sha1-3gzvFvTYqoIioyDVttfpu62nufY=",
"dev": true
},
"css-rule-stream": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/css-rule-stream/-/css-rule-stream-1.1.0.tgz",
"integrity": "sha1-N4bnGYmD2WWibjGVfgkHjLt3BaI=",
"dev": true,
"requires": {
"css-tokenize": "1.0.1",
"duplexer2": "0.0.2",
"ldjson-stream": "1.2.1",
"through2": "0.6.5"
},
"dependencies": {
"duplexer2": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz",
"integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=",
"dev": true,
"requires": {
"readable-stream": "1.1.14"
}
},
"isarray": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
"dev": true
},
"through2": {
"version": "0.6.5",
"resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",
"integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=",
"dev": true,
"requires": {
"readable-stream": "1.0.34",
"xtend": "4.0.1"
},
"dependencies": {
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "0.0.1",
"string_decoder": "0.10.31"
}
}
}
}
}
},
"css-tokenize": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/css-tokenize/-/css-tokenize-1.0.1.tgz",
"integrity": "sha1-RiXLHtohwUOFi3+B1oA8HSb8FL4=",
"dev": true,
"requires": {
"inherits": "2.0.3",
"readable-stream": "1.1.14"
}
},
"currently-unhandled": { "currently-unhandled": {
"version": "0.4.1", "version": "0.4.1",
"resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
@ -1368,67 +1253,6 @@
"isarray": "1.0.0" "isarray": "1.0.0"
} }
}, },
"doiuse": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/doiuse/-/doiuse-2.6.0.tgz",
"integrity": "sha1-GJLRC2Gpo1at2/K2FJM+gfi7ODQ=",
"dev": true,
"requires": {
"browserslist": "1.7.7",
"caniuse-db": "1.0.30000704",
"css-rule-stream": "1.1.0",
"duplexer2": "0.0.2",
"jsonfilter": "1.1.2",
"ldjson-stream": "1.2.1",
"lodash": "4.17.4",
"multimatch": "2.1.0",
"postcss": "5.2.17",
"source-map": "0.4.4",
"through2": "0.6.5",
"yargs": "3.10.0"
},
"dependencies": {
"duplexer2": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz",
"integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=",
"dev": true,
"requires": {
"readable-stream": "1.1.14"
}
},
"isarray": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
"dev": true
},
"through2": {
"version": "0.6.5",
"resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",
"integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=",
"dev": true,
"requires": {
"readable-stream": "1.0.34",
"xtend": "4.0.1"
},
"dependencies": {
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "0.0.1",
"string_decoder": "0.10.31"
}
}
}
}
}
},
"domain-browser": { "domain-browser": {
"version": "1.1.7", "version": "1.1.7",
"resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz",
@ -2127,12 +1951,6 @@
"integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=",
"dev": true "dev": true
}, },
"gather-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/gather-stream/-/gather-stream-1.0.0.tgz",
"integrity": "sha1-szmUr0V6gRVwDUEPMXczy+egkEs=",
"dev": true
},
"get-stdin": { "get-stdin": {
"version": "5.0.1", "version": "5.0.1",
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz",
@ -2583,12 +2401,6 @@
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.3.0.tgz", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.3.0.tgz",
"integrity": "sha1-HgOlL9rYOou7KyXL9JmLTP/NPew=" "integrity": "sha1-HgOlL9rYOou7KyXL9JmLTP/NPew="
}, },
"irregular-plurals": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.3.0.tgz",
"integrity": "sha512-njf5A+Mxb3kojuHd1DzISjjIl+XhyzovXEOyPPSzdQozq/Lf2tN27mOrAAsxEPZxpn6I4MGzs1oo9TxXxPFpaA==",
"dev": true
},
"is-arrayish": { "is-arrayish": {
"version": "0.2.1", "version": "0.2.1",
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
@ -2871,80 +2683,6 @@
"integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=", "integrity": "sha1-PAQ0dD35Pi9cQq7nsZvLSDV19OE=",
"dev": true "dev": true
}, },
"jsonfilter": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/jsonfilter/-/jsonfilter-1.1.2.tgz",
"integrity": "sha1-Ie987cdRk4E8dZMulqmL4gW6WhE=",
"dev": true,
"requires": {
"JSONStream": "0.8.4",
"minimist": "1.2.0",
"stream-combiner": "0.2.2",
"through2": "0.6.5"
},
"dependencies": {
"isarray": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
"dev": true
},
"jsonparse": {
"version": "0.0.5",
"resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-0.0.5.tgz",
"integrity": "sha1-MwVCrT8KZUZlt3jz6y2an6UHrGQ=",
"dev": true
},
"JSONStream": {
"version": "0.8.4",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-0.8.4.tgz",
"integrity": "sha1-kWV9/m/4V0gwZhMrRhi2Lo9Ih70=",
"dev": true,
"requires": {
"jsonparse": "0.0.5",
"through": "2.3.8"
}
},
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
},
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "0.0.1",
"string_decoder": "0.10.31"
}
},
"stream-combiner": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz",
"integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=",
"dev": true,
"requires": {
"duplexer": "0.1.1",
"through": "2.3.8"
}
},
"through2": {
"version": "0.6.5",
"resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",
"integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=",
"dev": true,
"requires": {
"readable-stream": "1.0.34",
"xtend": "4.0.1"
}
}
}
},
"jsonify": { "jsonify": {
"version": "0.0.0", "version": "0.0.0",
"resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
@ -3013,7 +2751,7 @@
"known-css-properties": { "known-css-properties": {
"version": "0.2.0", "version": "0.2.0",
"resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.2.0.tgz", "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.2.0.tgz",
"integrity": "sha1-iZyUvjaOVbQtfbjVvn1zpKSkFFQ=", "integrity": "sha512-UTCzU28rRI9wkb8qSGoZa9pgWvxr4LjP2MEhi9XHb/1XMOJy0uTnIxaxzj8My/PORG+kQG6VzAcGvRw66eIOfA==",
"dev": true "dev": true
}, },
"l20n": { "l20n": {
@ -3049,47 +2787,8 @@
"lazy-cache": { "lazy-cache": {
"version": "1.0.4", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz",
"integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=" "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=",
}, "optional": true
"ldjson-stream": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ldjson-stream/-/ldjson-stream-1.2.1.tgz",
"integrity": "sha1-kb7O2lrE7SsX5kn7d356v6AYnCs=",
"dev": true,
"requires": {
"split2": "0.2.1",
"through2": "0.6.5"
},
"dependencies": {
"isarray": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
"dev": true
},
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "0.0.1",
"string_decoder": "0.10.31"
}
},
"through2": {
"version": "0.6.5",
"resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",
"integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=",
"dev": true,
"requires": {
"readable-stream": "1.0.34",
"xtend": "4.0.1"
}
}
}
}, },
"levn": { "levn": {
"version": "0.3.0", "version": "0.3.0",
@ -3555,18 +3254,6 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}, },
"multimatch": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz",
"integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=",
"dev": true,
"requires": {
"array-differ": "1.0.0",
"array-union": "1.0.2",
"arrify": "1.0.1",
"minimatch": "3.0.4"
}
},
"mute-stream": { "mute-stream": {
"version": "0.0.7", "version": "0.0.7",
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz",
@ -3702,12 +3389,6 @@
"wrappy": "1.0.2" "wrappy": "1.0.2"
} }
}, },
"onecolor": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/onecolor/-/onecolor-3.0.4.tgz",
"integrity": "sha1-daRvgNpseqpbTarhekcZi9llJJQ=",
"dev": true
},
"onetime": { "onetime": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
@ -3915,30 +3596,11 @@
"pinkie": "2.0.4" "pinkie": "2.0.4"
} }
}, },
"pipetteur": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/pipetteur/-/pipetteur-2.0.3.tgz",
"integrity": "sha1-GVV2CVno0aEcsqUOyD7sRwYz5J8=",
"dev": true,
"requires": {
"onecolor": "3.0.4",
"synesthesia": "1.0.1"
}
},
"platform": { "platform": {
"version": "1.3.4", "version": "1.3.4",
"resolved": "https://registry.npmjs.org/platform/-/platform-1.3.4.tgz", "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.4.tgz",
"integrity": "sha1-bw+xftqqSPIUQrOpdcBjEw8cPr0=" "integrity": "sha1-bw+xftqqSPIUQrOpdcBjEw8cPr0="
}, },
"plur": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz",
"integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=",
"dev": true,
"requires": {
"irregular-plurals": "1.3.0"
}
},
"pluralize": { "pluralize": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/pluralize/-/pluralize-4.0.0.tgz", "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-4.0.0.tgz",
@ -3946,15 +3608,60 @@
"dev": true "dev": true
}, },
"postcss": { "postcss": {
"version": "5.2.17", "version": "6.0.8",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.17.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.8.tgz",
"integrity": "sha1-z09Ze4ZNZcikkrLqvp1wbIecOIs=", "integrity": "sha512-G6WnRmdTt2jvJvY+aY+M0AO4YlbxE+slKPZb+jG2P2U9Tyxi3h1fYZ/DgiFU6DC6bv3XIEJoZt+f/kNh8BrWFw==",
"dev": true, "dev": true,
"requires": { "requires": {
"chalk": "1.1.3", "chalk": "2.0.1",
"js-base64": "2.1.9",
"source-map": "0.5.6", "source-map": "0.5.6",
"supports-color": "3.2.3" "supports-color": "4.2.1"
},
"dependencies": {
"ansi-styles": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
"integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
"dev": true,
"requires": {
"color-convert": "1.9.0"
}
},
"chalk": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.0.1.tgz",
"integrity": "sha512-Mp+FXEI+FrwY/XYV45b2YD3E8i3HwnEAoFcM0qlZzq/RZ9RwWitt2Y/c7cqRAz70U7hfekqx6qNYthuKFO6K0g==",
"dev": true,
"requires": {
"ansi-styles": "3.2.0",
"escape-string-regexp": "1.0.5",
"supports-color": "4.2.1"
}
},
"source-map": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
"integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
"dev": true
},
"supports-color": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
"integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
"dev": true,
"requires": {
"has-flag": "2.0.0"
}
}
}
},
"postcss-less": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/postcss-less/-/postcss-less-1.1.0.tgz",
"integrity": "sha1-vcx2vmTEMk2HP7xc2foueZ5DBfo=",
"dev": true,
"requires": {
"postcss": "5.2.17"
}, },
"dependencies": { "dependencies": {
"has-flag": { "has-flag": {
@ -3963,6 +3670,18 @@
"integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=",
"dev": true "dev": true
}, },
"postcss": {
"version": "5.2.17",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.17.tgz",
"integrity": "sha1-z09Ze4ZNZcikkrLqvp1wbIecOIs=",
"dev": true,
"requires": {
"chalk": "1.1.3",
"js-base64": "2.1.9",
"source-map": "0.5.6",
"supports-color": "3.2.3"
}
},
"source-map": { "source-map": {
"version": "0.5.6", "version": "0.5.6",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
@ -3980,15 +3699,6 @@
} }
} }
}, },
"postcss-less": {
"version": "0.14.0",
"resolved": "https://registry.npmjs.org/postcss-less/-/postcss-less-0.14.0.tgz",
"integrity": "sha1-xjGwicbM5CK5oQ86lY0r7dOBkyQ=",
"dev": true,
"requires": {
"postcss": "5.2.17"
}
},
"postcss-media-query-parser": { "postcss-media-query-parser": {
"version": "0.2.3", "version": "0.2.3",
"resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz", "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz",
@ -3996,15 +3706,14 @@
"dev": true "dev": true
}, },
"postcss-reporter": { "postcss-reporter": {
"version": "3.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-3.0.0.tgz", "resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-4.0.0.tgz",
"integrity": "sha1-CeoPN6RExWk4eGBuCbAY6+/3z48=", "integrity": "sha512-IEVx20y277AIs3bZ6sUdzdq0YOE2RRbwnjUvTMfYYZmws0mE7YgqxZd0J8j60Byaf/QbjxyLfFJEQHH2bb+ecA==",
"dev": true, "dev": true,
"requires": { "requires": {
"chalk": "1.1.3", "chalk": "1.1.3",
"lodash": "4.17.4", "lodash": "4.17.4",
"log-symbols": "1.0.2", "log-symbols": "1.0.2"
"postcss": "5.2.17"
} }
}, },
"postcss-resolve-nested-selector": { "postcss-resolve-nested-selector": {
@ -4014,12 +3723,12 @@
"dev": true "dev": true
}, },
"postcss-scss": { "postcss-scss": {
"version": "0.4.1", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-0.4.1.tgz", "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-1.0.2.tgz",
"integrity": "sha1-rXcbgfD3L19IRdCKpg+TVXZT1Uw=", "integrity": "sha1-/0XPM1S4ee6JpOtoaA9GrJuxT5Q=",
"dev": true, "dev": true,
"requires": { "requires": {
"postcss": "5.2.17" "postcss": "6.0.8"
} }
}, },
"postcss-selector-parser": { "postcss-selector-parser": {
@ -4169,7 +3878,7 @@
"randomatic": { "randomatic": {
"version": "1.1.7", "version": "1.1.7",
"resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz",
"integrity": "sha1-x6vpzIuHwLqodrGf3oP9RkeX44w=", "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==",
"dev": true, "dev": true,
"requires": { "requires": {
"is-number": "3.0.0", "is-number": "3.0.0",
@ -4269,15 +3978,6 @@
} }
} }
}, },
"read-file-stdin": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/read-file-stdin/-/read-file-stdin-0.2.1.tgz",
"integrity": "sha1-JezP86FTtoCa+ssj7hU4fbng7mE=",
"dev": true,
"requires": {
"gather-stream": "1.0.0"
}
},
"read-only-stream": { "read-only-stream": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz",
@ -4529,6 +4229,7 @@
"version": "0.1.3", "version": "0.1.3",
"resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz",
"integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=",
"optional": true,
"requires": { "requires": {
"align-text": "0.1.4" "align-text": "0.1.4"
} }
@ -4634,7 +4335,10 @@
"version": "0.0.30", "version": "0.0.30",
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.30.tgz",
"integrity": "sha1-ckGdSovn1s51FI/YsyTlk6cRwu0=", "integrity": "sha1-ckGdSovn1s51FI/YsyTlk6cRwu0=",
"dev": true "dev": true,
"requires": {
"os-tmpdir": "1.0.2"
}
} }
} }
}, },
@ -4842,45 +4546,6 @@
"through": "2.3.8" "through": "2.3.8"
} }
}, },
"split2": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/split2/-/split2-0.2.1.tgz",
"integrity": "sha1-At2smtwD7Au3jBKC7Aecpuha6QA=",
"dev": true,
"requires": {
"through2": "0.6.5"
},
"dependencies": {
"isarray": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
"dev": true
},
"readable-stream": {
"version": "1.0.34",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
"dev": true,
"requires": {
"core-util-is": "1.0.2",
"inherits": "2.0.3",
"isarray": "0.0.1",
"string_decoder": "0.10.31"
}
},
"through2": {
"version": "0.6.5",
"resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",
"integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=",
"dev": true,
"requires": {
"readable-stream": "1.0.34",
"xtend": "4.0.1"
}
}
}
},
"sprintf-js": { "sprintf-js": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
@ -5149,58 +4814,17 @@
"integrity": "sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=", "integrity": "sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=",
"dev": true "dev": true
}, },
"stylehacks": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-2.3.2.tgz",
"integrity": "sha1-ZMg+BDimjJ7fRJ6MVSp9mrYAmws=",
"dev": true,
"requires": {
"browserslist": "1.7.7",
"chalk": "1.1.3",
"log-symbols": "1.0.2",
"minimist": "1.2.0",
"plur": "2.1.2",
"postcss": "5.2.17",
"postcss-reporter": "1.4.1",
"postcss-selector-parser": "2.2.3",
"read-file-stdin": "0.2.1",
"text-table": "0.2.0",
"write-file-stdout": "0.0.2"
},
"dependencies": {
"minimist": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
"dev": true
},
"postcss-reporter": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-1.4.1.tgz",
"integrity": "sha1-wTbwpbFhkV83ndN2XGEHX357mvI=",
"dev": true,
"requires": {
"chalk": "1.1.3",
"lodash": "4.17.4",
"log-symbols": "1.0.2",
"postcss": "5.2.17"
}
}
}
},
"stylelint": { "stylelint": {
"version": "7.13.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/stylelint/-/stylelint-7.13.0.tgz", "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-8.0.0.tgz",
"integrity": "sha1-ER+Xttpy53XICADWu29fhpmXeF0=", "integrity": "sha512-k1GkRhOtghvYu5PWCdec7SNN22KZZLq4TL1vVyykBvHr91oUS7eVfX2IAZJjBpYKh9Gdep+AnSZCwuUn+J76Bw==",
"dev": true, "dev": true,
"requires": { "requires": {
"autoprefixer": "6.7.7", "autoprefixer": "7.1.2",
"balanced-match": "0.4.2", "balanced-match": "1.0.0",
"chalk": "2.0.1", "chalk": "2.0.1",
"colorguard": "1.2.0", "cosmiconfig": "2.2.2",
"cosmiconfig": "2.2.1", "debug": "2.6.8",
"debug": "2.6.7",
"doiuse": "2.6.0",
"execall": "1.0.0", "execall": "1.0.0",
"file-entry-cache": "2.0.0", "file-entry-cache": "2.0.0",
"get-stdin": "5.0.1", "get-stdin": "5.0.1",
@ -5216,49 +4840,51 @@
"meow": "3.7.0", "meow": "3.7.0",
"micromatch": "2.3.11", "micromatch": "2.3.11",
"normalize-selector": "0.2.0", "normalize-selector": "0.2.0",
"pify": "2.3.0", "pify": "3.0.0",
"postcss": "5.2.17", "postcss": "6.0.8",
"postcss-less": "0.14.0", "postcss-less": "1.1.0",
"postcss-media-query-parser": "0.2.3", "postcss-media-query-parser": "0.2.3",
"postcss-reporter": "3.0.0", "postcss-reporter": "4.0.0",
"postcss-resolve-nested-selector": "0.1.1", "postcss-resolve-nested-selector": "0.1.1",
"postcss-scss": "0.4.1", "postcss-scss": "1.0.2",
"postcss-selector-parser": "2.2.3", "postcss-selector-parser": "2.2.3",
"postcss-value-parser": "3.3.0", "postcss-value-parser": "3.3.0",
"resolve-from": "3.0.0", "resolve-from": "3.0.0",
"specificity": "0.3.1", "specificity": "0.3.1",
"string-width": "2.1.1", "string-width": "2.1.1",
"style-search": "0.1.0", "style-search": "0.1.0",
"stylehacks": "2.3.2", "sugarss": "1.0.0",
"sugarss": "0.2.0",
"svg-tags": "1.0.0", "svg-tags": "1.0.0",
"table": "4.0.1" "table": "4.0.1"
}, },
"dependencies": { "dependencies": {
"ansi-styles": { "ansi-styles": {
"version": "3.1.0", "version": "3.2.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.1.0.tgz", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
"integrity": "sha1-CcIC1ckX7CMYjKpcnLkXnNlUd1A=", "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
"dev": true, "dev": true,
"requires": { "requires": {
"color-convert": "1.9.0" "color-convert": "1.9.0"
} }
}, },
"balanced-match": {
"version": "0.4.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz",
"integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=",
"dev": true
},
"chalk": { "chalk": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.0.1.tgz", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.0.1.tgz",
"integrity": "sha512-Mp+FXEI+FrwY/XYV45b2YD3E8i3HwnEAoFcM0qlZzq/RZ9RwWitt2Y/c7cqRAz70U7hfekqx6qNYthuKFO6K0g==", "integrity": "sha512-Mp+FXEI+FrwY/XYV45b2YD3E8i3HwnEAoFcM0qlZzq/RZ9RwWitt2Y/c7cqRAz70U7hfekqx6qNYthuKFO6K0g==",
"dev": true, "dev": true,
"requires": { "requires": {
"ansi-styles": "3.1.0", "ansi-styles": "3.2.0",
"escape-string-regexp": "1.0.5", "escape-string-regexp": "1.0.5",
"supports-color": "4.2.0" "supports-color": "4.2.1"
}
},
"debug": {
"version": "2.6.8",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz",
"integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=",
"dev": true,
"requires": {
"ms": "2.0.0"
} }
}, },
"glob": { "glob": {
@ -5286,8 +4912,22 @@
"object-assign": "4.1.1", "object-assign": "4.1.1",
"pify": "2.3.0", "pify": "2.3.0",
"pinkie-promise": "2.0.1" "pinkie-promise": "2.0.1"
},
"dependencies": {
"pify": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
"integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
"dev": true
}
} }
}, },
"pify": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
"integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
"dev": true
},
"resolve-from": { "resolve-from": {
"version": "3.0.0", "version": "3.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz",
@ -5295,9 +4935,9 @@
"dev": true "dev": true
}, },
"supports-color": { "supports-color": {
"version": "4.2.0", "version": "4.2.1",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.0.tgz", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
"integrity": "sha512-Ts0Mu/A1S1aZxEJNG88I4Oc9rcZSBFNac5e27yh4j2mqbhZSSzR1Ah79EYwSn9Zuh7lrlGD2cVGzw1RKGzyLSg==", "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
"dev": true, "dev": true,
"requires": { "requires": {
"has-flag": "2.0.0" "has-flag": "2.0.0"
@ -5305,12 +4945,21 @@
} }
} }
}, },
"stylelint-config-standard": { "stylelint-config-recommended": {
"version": "16.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-16.0.0.tgz", "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-1.0.0.tgz",
"integrity": "sha1-u3OHv/HX3XGGpSs+v4hbJAXWkb8=", "integrity": "sha512-wp50rY5A6MWndIIkKNNzJv/S58lTvqQEriS7CXTBN1SwtoY/YjHhCLIOkjundLnUWMvJJska6GnciLbs76UQrA==",
"dev": true "dev": true
}, },
"stylelint-config-standard": {
"version": "17.0.0",
"resolved": "https://registry.npmjs.org/stylelint-config-standard/-/stylelint-config-standard-17.0.0.tgz",
"integrity": "sha512-G8jMZ0KsaVH7leur9XLZVhwOBHZ2vdbuJV8Bgy0ta7/PpBhEHo6fjVDaNchyCGXB5sRcWVq6O9rEU/MvY9cQDQ==",
"dev": true,
"requires": {
"stylelint-config-recommended": "1.0.0"
}
},
"subarg": { "subarg": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz",
@ -5329,12 +4978,12 @@
} }
}, },
"sugarss": { "sugarss": {
"version": "0.2.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/sugarss/-/sugarss-0.2.0.tgz", "resolved": "https://registry.npmjs.org/sugarss/-/sugarss-1.0.0.tgz",
"integrity": "sha1-rDQjdWMyfG/4l7ZHQr9q7BkK054=", "integrity": "sha1-ZeUbOVhDL7cNVFGmi7M+MtDPHvc=",
"dev": true, "dev": true,
"requires": { "requires": {
"postcss": "5.2.17" "postcss": "6.0.8"
} }
}, },
"superagent": { "superagent": {
@ -5407,15 +5056,6 @@
"resolved": "https://registry.npmjs.org/symbol/-/symbol-0.3.1.tgz", "resolved": "https://registry.npmjs.org/symbol/-/symbol-0.3.1.tgz",
"integrity": "sha1-tvmpANSWpX8CQI8iGYwQndoGMEE=" "integrity": "sha1-tvmpANSWpX8CQI8iGYwQndoGMEE="
}, },
"synesthesia": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/synesthesia/-/synesthesia-1.0.1.tgz",
"integrity": "sha1-XvlepUjA1cbm+btLDQcx3/hkp3c=",
"dev": true,
"requires": {
"css-color-names": "0.0.3"
}
},
"syntax-error": { "syntax-error": {
"version": "1.3.0", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.3.0.tgz", "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.3.0.tgz",
@ -5759,7 +5399,8 @@
"window-size": { "window-size": {
"version": "0.1.0", "version": "0.1.0",
"resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz",
"integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=" "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=",
"optional": true
}, },
"wordwrap": { "wordwrap": {
"version": "0.0.3", "version": "0.0.3",
@ -5780,12 +5421,6 @@
"mkdirp": "0.5.1" "mkdirp": "0.5.1"
} }
}, },
"write-file-stdout": {
"version": "0.0.2",
"resolved": "https://registry.npmjs.org/write-file-stdout/-/write-file-stdout-0.0.2.tgz",
"integrity": "sha1-wlLXx8WxtAKJdjDjRTx7/mkNnKE=",
"dev": true
},
"x-xss-protection": { "x-xss-protection": {
"version": "1.0.0", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.0.0.tgz", "resolved": "https://registry.npmjs.org/x-xss-protection/-/x-xss-protection-1.0.0.tgz",
@ -5824,6 +5459,7 @@
"version": "3.10.0", "version": "3.10.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",
"integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=",
"optional": true,
"requires": { "requires": {
"camelcase": "1.2.1", "camelcase": "1.2.1",
"cliui": "2.1.0", "cliui": "2.1.0",

View File

@ -33,8 +33,8 @@
"raven-js": "^3.17.0", "raven-js": "^3.17.0",
"selenium-webdriver": "^3.5.0", "selenium-webdriver": "^3.5.0",
"sinon": "^2.3.8", "sinon": "^2.3.8",
"stylelint": "^7.13.0", "stylelint": "^8.0.0",
"stylelint-config-standard": "^16.0.0", "stylelint-config-standard": "^17.0.0",
"supertest": "^3.0.0", "supertest": "^3.0.0",
"testpilot-ga": "^0.3.0", "testpilot-ga": "^0.3.0",
"uglifyify": "^4.0.3" "uglifyify": "^4.0.3"
@ -72,7 +72,7 @@
"build:version": "node scripts/version", "build:version": "node scripts/version",
"build:l10n": "cp node_modules/l20n/dist/web/l20n.min.js public", "build:l10n": "cp node_modules/l20n/dist/web/l20n.min.js public",
"dev": "npm run build && npm start", "dev": "npm run build && npm start",
"format": "prettier '{frontend/src/,scripts/,server/,test/**/}*.js' 'public/*.css' --single-quote --write", "format": "prettier '{frontend/src/,scripts/,server/,test/**/!(bundle)}*.js' 'public/*.css' --single-quote --write",
"lint": "npm-run-all lint:*", "lint": "npm-run-all lint:*",
"lint:css": "stylelint 'public/*.css'", "lint:css": "stylelint 'public/*.css'",
"lint:js": "eslint .", "lint:js": "eslint .",

View File

@ -2,9 +2,7 @@ const webdriver = require('selenium-webdriver');
const path = require('path'); const path = require('path');
const until = webdriver.until; const until = webdriver.until;
const driver = new webdriver.Builder() const driver = new webdriver.Builder().forBrowser('firefox').build();
.forBrowser('firefox')
.build();
driver.get(path.join('file:///', __dirname, '/frontend.test.html')); driver.get(path.join('file:///', __dirname, '/frontend.test.html'));
driver.wait(until.titleIs('Mocha Tests')); driver.wait(until.titleIs('Mocha Tests'));
@ -15,8 +13,10 @@ driver.getTitle().then(title => {
if (title === '0') { if (title === '0') {
console.log('Frontend tests have passed.'); console.log('Frontend tests have passed.');
} else { } else {
throw new Error('Frontend tests are failing. ' + throw new Error(
'Please open the frontend.test.html file in a browser.'); 'Frontend tests are failing. ' +
'Please open the frontend.test.html file in a browser.'
);
} }
}) });
}) });