diff --git a/CHANGELOG b/CHANGELOG index a872763d7c11..384199287d07 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,33 @@ devel ----- +* Updated JavaScript dependencies, including breaking changes to non-public + modules. We recommend always bundling your own copy of third-party modules, + even ones listed as public. + + - accepts: 1.3.5 -> 1.3.7 + - ansi_up: 4.0.3 -> 5.0.1 + - chalk: 1.1.3 -> 4.1.1 + - content-type: (added) -> 1.0.4 + - error-stack-parser: 2.0.2 -> 2.0.6 + - highlight.js: 9.15.6 -> 10.7.3 + - http-errors: 1.7.2 -> 1.8.0 + - iconv-lite: 0.4.24 -> 0.6.3 + - js-yaml: 3.13.1 -> 3.14.1 + - lodash: 4.17.13 -> 4.17.21 + - marked: 0.6.2 -> removed + - media-typer: 0.3.0 -> removed + - mime-types: 2.1.22 -> 2.1.31 + - mocha: 6.1.3 -> removed + - netmask: 1.0.6 -> 2.0.2 + - qs: 6.7.0 -> 6.10.1 + - range-parser: 1.2.0 -> 1.2.1 + - semver: 6.0.0 -> 7.3.5 + - sinon: 1.17.6 -> 1.17.7 + - timezone: 1.0.22 -> 1.0.23 + - type-is: 1.6.16 -> 1.6.18 + - underscore: 1.9.1 -> 1.13.1 + - xmldom: 0.1.27 -> 0.6.0 + * Adapt various places related to handling of execution plans non-recursive in order to avoid stack overflows. This allows us now to execute much larger queries. @@ -338,6 +366,32 @@ devel * Fixed ES-881: ensure that LDAP options for async, referrals and restart set the off value correctly. Otherwise, this can result in an "operations error". +* Updated JavaScript dependencies, including breaking changes to non-public + modules. Note that this removes underscore, which was previously listed as a + public module in ArangoDB 2. We recommend always bundling your own copy of + third-party modules, even ones listed as public. + + - accepts: 1.3.5 -> 1.3.7 + - ansi_up: 4.0.3 -> 5.0.1 + - chalk: 1.1.3 -> 4.1.1 + - content-type: (added) -> 1.0.4 + - error-stack-parser: 2.0.2 -> 2.0.6 + - highlight.js: 9.15.6 -> 10.7.2 + - http-errors: 1.7.2 -> 1.8.0 + - iconv-lite: 0.4.24 -> 0.6.2 + - js-yaml: 3.13.1 -> 3.14.1 + - lodash: 4.17.13 -> 4.17.21 + - marked: 0.6.2 -> removed + - media-typer: 0.3.0 -> removed + - mime-types: 2.1.22 -> 2.1.30 + - netmask: 1.0.6 -> 2.0.2 + - qs: 6.7.0 -> 6.10.1 + - range-parser: 1.2.0 -> 1.2.1 + - semver: 6.0.0 -> 7.3.5 + - timezone: 1.0.22 -> 1.0.23 + - type-is: 1.6.16 -> 1.6.18 + - underscore: 1.9.1 -> removed + * Fixed DEVSUP-764 (SEARCH-7): inconsistent BM25 scoring for LEVENSHTEIN_MATCH function. diff --git a/Documentation/Scripts/exampleHeader.js b/Documentation/Scripts/exampleHeader.js index ae49a7b63ede..a505bf9645f4 100644 --- a/Documentation/Scripts/exampleHeader.js +++ b/Documentation/Scripts/exampleHeader.js @@ -63,15 +63,15 @@ function normalize(lang) { return MAP[lower] || lower; } -function highlight(lang, code) { - if(!lang) { +function highlight(language, code) { + if(!language) { return code; } - // Normalize lang - lang = normalize(lang); + // Normalize language + language = normalize(language); try { - return hljs.highlight(lang, code).value; + return hljs.highlight(code, {language}).value; } catch(e) { } return code; diff --git a/LICENSES-OTHER-COMPONENTS.md b/LICENSES-OTHER-COMPONENTS.md index 36f174ab070c..be707dc2b7d8 100644 --- a/LICENSES-OTHER-COMPONENTS.md +++ b/LICENSES-OTHER-COMPONENTS.md @@ -992,15 +992,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### ansi-colors - -Name: ansi-colors -Version: 3.2.3 -Project Home: https://github.com/doowb -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/ansi-colors/LICENSE -License Name: MIT License -License Id: MIT - #### ansi-escapes Name: ansi-escapes @@ -1136,15 +1127,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### browser-stdout - -Name: browser-stdout -Version: 1.3.1 -Project Home: https://github.com/kumavis/browser-stdout -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/browser-stdout/LICENSE -License Name: ISC License -License Id: ISC - #### callsites Name: callsites @@ -1154,15 +1136,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### camelcase - -Name: camelcase -Version: 5.3.1 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/camelcase/license -License Name: MIT License -License Id: MIT - #### chai Name: chai @@ -1217,24 +1190,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: ISC License License Id: ISC -#### cliui - -Name: cliui -Version: 4.1.0 -Project Home: https://github.com/yargs/cliui -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/cliui/LICENSE.txt -License Name: ISC License -License Id: ISC - -#### code-point-at - -Name: code-point-at -Version: 1.1.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/code-point-at/license -License Name: MIT License -License Id: MIT - #### color-convert Name: color-convert @@ -1271,6 +1226,15 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT +#### content-type + +Name: content-type +Version: 1.0.4 +Project Home: https://github.com/jshttp/content-type +License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/content-type/LICENSE +License Name: MIT License +License Id: MIT + #### cross-spawn Name: cross-spawn @@ -1282,15 +1246,6 @@ License Id: MIT #### debug -Name: debug -Version: 3.2.6 -Project Home: https://github.com/visionmedia/debug -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/debug/LICENSE -License Name: MIT License -License Id: MIT - -#### debug - Name: debug Version: 4.1.1 Project Home: https://github.com/visionmedia/debug @@ -1298,15 +1253,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### decamelize - -Name: decamelize -Version: 1.2.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/decamelize/license -License Name: MIT License -License Id: MIT - #### dedent Name: dedent @@ -1334,15 +1280,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### define-properties - -Name: define-properties -Version: 1.1.3 -Project Home: https://github.com/ljharb/define-properties -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/define-properties/LICENSE -License Name: MIT License -License Id: MIT - #### depd Name: depd @@ -1352,15 +1289,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### diff - -Name: diff -Version: 3.5.0 -Project Home: https://github.com/kpdecker/jsdiff -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/diff/LICENSE -License Name: BSD 3-clause "New" or "Revised" License -License Id: BSD-3-Clause - #### doctrine Name: doctrine @@ -1379,15 +1307,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### end-of-stream - -Name: end-of-stream -Version: 1.4.1 -Project Home: https://github.com/mafintosh/end-of-stream -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/end-of-stream/LICENSE -License Name: MIT License -License Id: MIT - #### error-stack-parser Name: error-stack-parser @@ -1397,24 +1316,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### es-abstract - -Name: es-abstract -Version: 1.13.0 -Project Home: http://ljharb.codes -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/es-abstract/LICENSE -License Name: MIT License -License Id: MIT - -#### es-to-primitive - -Name: es-to-primitive -Version: 1.2.0 -Project Home: https://github.com/ljharb/es-to-primitive -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/es-to-primitive/LICENSE -License Name: MIT License -License Id: MIT - #### escape-string-regexp Name: escape-string-regexp @@ -1514,15 +1415,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: BSD License License Id: BSD -#### execa - -Name: execa -Version: 1.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/execa/license -License Name: MIT License -License Id: MIT - #### expect.js Name: expect.js @@ -1595,15 +1487,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### find-up - -Name: find-up -Version: 3.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/find-up/license -License Name: MIT License -License Id: MIT - #### flat-cache Name: flat-cache @@ -1613,15 +1496,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### flat - -Name: flat -Version: 4.1.0 -Project Home: http://hughskennedy.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/flat/LICENSE -License Name: BSD 3-clause "New" or "Revised" License -License Id: BSD-3-Clause - #### flatted Name: flatted @@ -1649,15 +1523,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: ISC License License Id: ISC -#### function-bind - -Name: function-bind -Version: 1.1.1 -Project Home: https://github.com/Raynos/function-bind -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/function-bind/LICENSE -License Name: MIT License -License Id: MIT - #### functional-red-black-tree Name: functional-red-black-tree @@ -1667,33 +1532,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### get-caller-file - -Name: get-caller-file -Version: 1.0.3 -Project Home: https://github.com/stefanpenner/get-caller-file -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/yargs-unparser/node_modules/get-caller-file/LICENSE.md -License Name: ISC License -License Id: ISC - -#### get-caller-file - -Name: get-caller-file -Version: 2.0.5 -Project Home: https://github.com/stefanpenner/get-caller-file -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/get-caller-file/LICENSE.md -License Name: ISC License -License Id: ISC - -#### get-stream - -Name: get-stream -Version: 4.1.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/get-stream/license -License Name: MIT License -License Id: MIT - #### glob Name: glob @@ -1730,15 +1568,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: BSD 3-clause "New" or "Revised" License License Id: BSD-3-Clause -#### growl - -Name: growl -Version: 1.10.5 -Project Home: https://github.com/tj/node-growl -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/growl/Readme.md -License Name: MIT License -License Id: MIT - #### has-ansi Name: has-ansi @@ -1757,37 +1586,10 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### has-symbols - -Name: has-symbols -Version: 1.0.0 -Project Home: http://ljharb.codes -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/has-symbols/LICENSE -License Name: MIT License -License Id: MIT - -#### has - -Name: has -Version: 1.0.3 -Project Home: https://github.com/tarruda/has -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/has/LICENSE-MIT -License Name: MIT License -License Id: MIT - -#### he - -Name: he -Version: 1.2.0 -Project Home: https://mathiasbynens.be/ -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/he/LICENSE-MIT.txt -License Name: MIT License -License Id: MIT - #### highlight.js Name: highlight.js -Version: 9.15.6 +Version: 10.7.3 Project Home: https://github.com/highlightjs/highlight.js License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/highlight.js/LICENSE License Name: BSD 3-clause "New" or "Revised" License @@ -1823,7 +1625,7 @@ License Id: MIT #### iconv-lite Name: iconv-lite -Version: 0.4.24 +Version: 0.6.3 Project Home: https://github.com/ashtuchkin/iconv-lite License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/eslint/node_modules/iconv-lite/LICENSE License Name: MIT License @@ -1892,51 +1694,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### invert-kv - -Name: invert-kv -Version: 2.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/invert-kv/license -License Name: MIT License -License Id: MIT - -#### is-buffer - -Name: is-buffer -Version: 2.0.3 -Project Home: https://feross.org -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/is-buffer/LICENSE -License Name: MIT License -License Id: MIT - -#### is-callable - -Name: is-callable -Version: 1.1.4 -Project Home: http://ljharb.codes -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/is-callable/LICENSE -License Name: MIT License -License Id: MIT - -#### is-date-object - -Name: is-date-object -Version: 1.0.1 -Project Home: https://github.com/ljharb/is-date-object -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/is-date-object/LICENSE -License Name: MIT License -License Id: MIT - -#### is-fullwidth-code-point - -Name: is-fullwidth-code-point -Version: 1.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license -License Name: MIT License -License Id: MIT - #### is-fullwidth-code-point Name: is-fullwidth-code-point @@ -1955,33 +1712,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### is-regex - -Name: is-regex -Version: 1.0.4 -Project Home: https://github.com/ljharb/is-regex -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/is-regex/LICENSE -License Name: MIT License -License Id: MIT - -#### is-stream - -Name: is-stream -Version: 1.1.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/is-stream/license -License Name: MIT License -License Id: MIT - -#### is-symbol - -Name: is-symbol -Version: 1.0.2 -Project Home: https://github.com/ljharb/is-symbol -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/is-symbol/LICENSE -License Name: MIT License -License Id: MIT - #### isemail Name: isemail @@ -2047,15 +1777,6 @@ License Id: MIT #### js-yaml -Name: js-yaml -Version: 3.13.0 -Project Home: https://github.com/nodeca/js-yaml -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/js-yaml/LICENSE -License Name: MIT License -License Id: MIT - -#### js-yaml - Name: js-yaml Version: 3.13.1 Project Home: https://github.com/nodeca/js-yaml @@ -2081,15 +1802,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### lcid - -Name: lcid -Version: 2.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/lcid/license -License Name: MIT License -License Id: MIT - #### levn Name: levn @@ -2099,15 +1811,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### locate-path - -Name: locate-path -Version: 3.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/locate-path/license -License Name: MIT License -License Id: MIT - #### lodash Name: lodash @@ -2117,15 +1820,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### log-symbols - -Name: log-symbols -Version: 2.2.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/log-symbols/license -License Name: MIT License -License Id: MIT - #### lolex Name: lolex @@ -2135,42 +1829,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: BSD 3-clause "New" or "Revised" License License Id: BSD-3-Clause -#### map-age-cleaner - -Name: map-age-cleaner -Version: 0.1.3 -Project Home: github.com/SamVerschueren -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/map-age-cleaner/license -License Name: MIT License -License Id: MIT - -#### marked - -Name: marked -Version: 0.6.2 -Project Home: https://github.com/markedjs/marked -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/marked/LICENSE.md -License Name: MIT License -License Id: MIT - -#### media-typer - -Name: media-typer -Version: 0.3.0 -Project Home: https://github.com/jshttp/media-typer -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/media-typer/LICENSE -License Name: MIT License -License Id: MIT - -#### mem - -Name: mem -Version: 4.3.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/mem/license -License Name: MIT License -License Id: MIT - #### mime-db Name: mime-db @@ -2183,7 +1841,7 @@ License Id: MIT #### mime-types Name: mime-types -Version: 2.1.22 +Version: 2.1.31 Project Home: https://github.com/jshttp/mime-types License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mime-types/LICENSE License Name: MIT License @@ -2198,15 +1856,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### mimic-fn - -Name: mimic-fn -Version: 2.1.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/mimic-fn/license -License Name: MIT License -License Id: MIT - #### minimatch Name: minimatch @@ -2234,21 +1883,12 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### mocha - -Name: mocha -Version: 6.1.3 -Project Home: https://github.com/mochajs/mocha -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/LICENSE -License Name: MIT License -License Id: MIT - #### ms Name: ms -Version: 2.1.1 +Version: 2.1.3 Project Home: https://github.com/zeit/ms -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/eslint/node_modules/ms/license.md +License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/ms/license.md License Name: MIT License License Id: MIT @@ -2297,60 +1937,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### node-environment-flags - -Name: node-environment-flags -Version: 1.0.5 -Project Home: https://boneskull.com/ -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/node-environment-flags/README.md -License Name: Apache License 2.0 -License Id: Apache-2.0 - -#### npm-run-path - -Name: npm-run-path -Version: 2.0.2 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/npm-run-path/license -License Name: MIT License -License Id: MIT - -#### number-is-nan - -Name: number-is-nan -Version: 1.0.1 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/number-is-nan/license -License Name: MIT License -License Id: MIT - -#### object-keys - -Name: object-keys -Version: 1.1.1 -Project Home: http://ljharb.codes -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/object-keys/LICENSE -License Name: MIT License -License Id: MIT - -#### object.assign - -Name: object.assign -Version: 4.1.0 -Project Home: https://github.com/ljharb/object.assign -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/object.assign/LICENSE -License Name: MIT License -License Id: MIT - -#### object.getownpropertydescriptors - -Name: object.getownpropertydescriptors -Version: 2.0.3 -Project Home: https://github.com/ljharb/object.getownpropertydescriptors -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/object.getownpropertydescriptors/LICENSE -License Name: MIT License -License Id: MIT - #### once Name: once @@ -2378,15 +1964,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### os-locale - -Name: os-locale -Version: 3.1.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/os-locale/license -License Name: MIT License -License Id: MIT - #### os-tmpdir Name: os-tmpdir @@ -2396,60 +1973,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### p-defer - -Name: p-defer -Version: 1.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/p-defer/license -License Name: MIT License -License Id: MIT - -#### p-finally - -Name: p-finally -Version: 1.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/p-finally/license -License Name: MIT License -License Id: MIT - -#### p-is-promise - -Name: p-is-promise -Version: 2.1.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/p-is-promise/license -License Name: MIT License -License Id: MIT - -#### p-limit - -Name: p-limit -Version: 2.2.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/p-limit/license -License Name: MIT License -License Id: MIT - -#### p-locate - -Name: p-locate -Version: 3.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/p-locate/license -License Name: MIT License -License Id: MIT - -#### p-try - -Name: p-try -Version: 2.2.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/p-try/license -License Name: MIT License -License Id: MIT - #### parent-module Name: parent-module @@ -2459,15 +1982,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### path-exists - -Name: path-exists -Version: 3.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/path-exists/license -License Name: MIT License -License Id: MIT - #### path-is-absolute Name: path-is-absolute @@ -2513,15 +2027,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### pump - -Name: pump -Version: 3.0.0 -Project Home: https://github.com/mafintosh/pump -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/pump/LICENSE -License Name: MIT License -License Id: MIT - #### punycode Name: punycode @@ -2558,33 +2063,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### require-directory - -Name: require-directory -Version: 2.1.1 -Project Home: http://github.com/troygoode/ -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/require-directory/LICENSE -License Name: MIT License -License Id: MIT - -#### require-main-filename - -Name: require-main-filename -Version: 1.0.1 -Project Home: https://github.com/yargs/require-main-filename -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/yargs-unparser/node_modules/require-main-filename/LICENSE.txt -License Name: ISC License -License Id: ISC - -#### require-main-filename - -Name: require-main-filename -Version: 2.0.0 -Project Home: https://github.com/yargs/require-main-filename -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/require-main-filename/LICENSE.txt -License Name: ISC License -License Id: ISC - #### resolve-from Name: resolve-from @@ -2675,15 +2153,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: ISC License License Id: ISC -#### set-blocking - -Name: set-blocking -Version: 2.0.0 -Project Home: https://github.com/yargs/set-blocking -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/set-blocking/LICENSE.txt -License Name: ISC License -License Id: ISC - #### setprototypeof Name: setprototypeof @@ -2723,7 +2192,7 @@ License Id: ISC #### sinon Name: sinon -Version: 1.17.6 +Version: 1.17.7 Project Home: https://github.com/cjohansen/Sinon.JS License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/sinon/LICENSE License Name: BSD 3-clause "New" or "Revised" License @@ -2767,15 +2236,6 @@ License Id: MIT #### string-width -Name: string-width -Version: 1.0.2 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/wrap-ansi/node_modules/string-width/license -License Name: MIT License -License Id: MIT - -#### string-width - Name: string-width Version: 2.1.1 Project Home: sindresorhus.com @@ -2819,15 +2279,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### strip-eof - -Name: strip-eof -Version: 1.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/strip-eof/license -License Name: MIT License -License Id: MIT - #### strip-json-comments Name: strip-json-comments @@ -2855,15 +2306,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### supports-color - -Name: supports-color -Version: 6.0.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/supports-color/license -License Name: MIT License -License Id: MIT - #### table Name: table @@ -2975,7 +2417,7 @@ License Id: MIT #### underscore Name: underscore -Version: 1.9.1 +Version: 1.13.1 Project Home: https://github.com/jashkenas/underscore License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/underscore/LICENSE License Name: MIT License @@ -3008,15 +2450,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### which-module - -Name: which-module -Version: 2.0.0 -Project Home: https://github.com/nexdrew/which-module -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/which-module/LICENSE -License Name: ISC License -License Id: ISC - #### which Name: which @@ -3026,15 +2459,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: ISC License License Id: ISC -#### wide-align - -Name: wide-align -Version: 1.1.3 -Project Home: http://re-becca.org/ -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/wide-align/LICENSE -License Name: ISC License -License Id: ISC - #### wordwrap Name: wordwrap @@ -3044,15 +2468,6 @@ License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_ License Name: MIT License License Id: MIT -#### wrap-ansi - -Name: wrap-ansi -Version: 2.1.0 -Project Home: sindresorhus.com -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/wrap-ansi/license -License Name: MIT License -License Id: MIT - #### wrappy Name: wrappy @@ -3074,63 +2489,8 @@ License Id: MIT #### xmldom Name: xmldom -Version: 0.1.27 +Version: 0.6.0 Project Home: http://www.xidea.org License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/xmldom/LICENSE License Name: MIT (dual license) License Id: MIT - -#### y18n - -Name: y18n -Version: 4.0.0 -Project Home: https://github.com/yargs/y18n -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/y18n/LICENSE -License Name: ISC License -License Id: ISC - -#### yargs-parser - -Name: yargs-parser -Version: 11.1.1 -Project Home: https://github.com/yargs/yargs-parser -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/yargs-unparser/node_modules/yargs-parser/LICENSE.txt -License Name: ISC License -License Id: ISC - -#### yargs-parser - -Name: yargs-parser -Version: 13.0.0 -Project Home: https://github.com/yargs/yargs-parser -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/yargs-parser/LICENSE.txt -License Name: ISC License -License Id: ISC - -#### yargs-unparser - -Name: yargs-unparser -Version: 1.5.0 -Project Home: https://github.com/yargs/yargs-unparser -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/yargs-unparser/LICENSE -License Name: MIT License -License Id: MIT - -#### yargs - -Name: yargs -Version: 12.0.5 -Project Home: https://github.com/yargs/yargs -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/yargs-unparser/node_modules/yargs/LICENSE -License Name: MIT License -License Id: MIT - -#### yargs - -Name: yargs -Version: 13.2.2 -Project Home: https://github.com/yargs/yargs -License: https://raw.githubusercontent.com/arangodb/arangodb/devel/js/node/node_modules/mocha/node_modules/yargs/LICENSE -License Name: MIT License -License Id: MIT - diff --git a/js/common/bootstrap/modules.js b/js/common/bootstrap/modules.js index 17d37f5e5cde..f8ac77d27281 100644 --- a/js/common/bootstrap/modules.js +++ b/js/common/bootstrap/modules.js @@ -551,19 +551,15 @@ Module._extensions[extension](this, filename); } catch (e) { if (e.errorNum !== internal.errors.ERROR_MODULE_FAILURE.code) { - let msg = `${internal.errors.ERROR_MODULE_FAILURE.message}\nReason: ${e}`; - - if (e.fileName !== undefined) { - msg += `\nFile: ${e.fileName}`; - } else { - msg += `\nFile: ${filename}`; - } + let msg = internal.errors.ERROR_MODULE_FAILURE.message; + msg += `\nFile: ${e.fileName || filename}`; if (e.lineNumber !== undefined) { msg += `\nLine: ${e.lineNumber}`; } if (e.columnNumber !== undefined) { msg += `\nColumn: ${e.columnNumber}`; } + msg += `\nReason: ${e.stack || e}`; throw Object.assign( new internal.ArangoError({ errorNum: internal.errors.ERROR_MODULE_FAILURE.code, diff --git a/js/common/modules/@arangodb/foxx/check-args.js b/js/common/modules/@arangodb/foxx/check-args.js index 47786b0ba26b..b3ad61b89bf1 100644 --- a/js/common/modules/@arangodb/foxx/check-args.js +++ b/js/common/modules/@arangodb/foxx/check-args.js @@ -29,7 +29,7 @@ const joi = require('joi'); const util = require('util'); const statuses = require('statuses'); const mimeTypes = require('mime-types'); -const mediaTyper = require('media-typer'); +const ct = require('content-type'); const ArangoError = require('@arangodb').ArangoError; const ERROR_BAD_PARAMETER = require('@arangodb').errors.ERROR_BAD_PARAMETER; @@ -38,12 +38,8 @@ function normalizeMimeType (mime) { mime = 'application/octet-stream'; } const contentType = mimeTypes.contentType(mime) || mime; - const parsed = mediaTyper.parse(contentType); - return mediaTyper.format(_.pick(parsed, [ - 'type', - 'subtype', - 'suffix' - ])); + const parsed = ct.parse(contentType); + return parsed.type; } function runValidation (methodName, paramName, type, value) { diff --git a/js/common/modules/@arangodb/mocha.js b/js/common/modules/@arangodb/mocha.js deleted file mode 100644 index 6356396494c6..000000000000 --- a/js/common/modules/@arangodb/mocha.js +++ /dev/null @@ -1,311 +0,0 @@ -'use strict'; - -// ////////////////////////////////////////////////////////////////////////////// -// / @brief ArangoDB Mocha integration -// / -// / @file -// / -// / DISCLAIMER -// / -// / Copyright 2015-2016 triAGENS GmbH, Cologne, Germany -// / -// / Licensed under the Apache License, Version 2.0 (the "License") -// / you may not use this file except in compliance with the License. -// / You may obtain a copy of the License at -// / -// / http://www.apache.org/licenses/LICENSE-2.0 -// / -// / Unless required by applicable law or agreed to in writing, software -// / distributed under the License is distributed on an "AS IS" BASIS, -// / WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// / See the License for the specific language governing permissions and -// / limitations under the License. -// / -// / Copyright holder is triAGENS GmbH, Cologne, Germany -// / -// / @author Alan Plum -// / @author Copyright 2015-2016, triAGENS GmbH, Cologne, Germany -// ////////////////////////////////////////////////////////////////////////////// - -var interfaces = require('mocha/lib/interfaces'); -var MochaContext = require('mocha/lib/context'); -var MochaSuite = require('mocha/lib/suite'); -var MochaRunner = require('mocha/lib/runner'); -var BaseReporter = require('mocha/lib/reporters/base'); -var DefaultReporter = require('mocha/lib/reporters/json'); -var createStatsCollector = require('mocha/lib/stats-collector'); -var escapeRe = require('mocha/node_modules/escape-string-regexp'); - -function notIn (arr) { - return function (item) { - return arr.indexOf(item) === -1; - }; -} - -function deleteFrom (obj) { - return function (key) { - delete obj[key]; - }; -} - -exports.reporters = { - stream: StreamReporter, - suite: SuiteReporter, - xunit: XunitReporter, - tap: TapReporter, - default: DefaultReporter -}; - -exports.run = function runMochaTests (run, files, reporterName, grep) { - if (!Array.isArray(files)) { - files = [files]; - } - - if (reporterName && !exports.reporters[reporterName]) { - throw new Error(`Unknown test reporter: "${ - reporterName - }". Known reporters: ${ - Object.keys(exports.reporters).join(', ') - }`); - } - - var suite = new MochaSuite('', new MochaContext()); - suite.timeout(0); - suite.bail(false); - - interfaces.bdd(suite); - interfaces.tdd(suite); - interfaces.exports(suite); - - var options = {}; - var mocha = { - options: options, - grep (re) { - if (typeof re === 'string') { - re = new RegExp(escapeRe(re)); - } else if (Array.isArray(re)) { - re = new RegExp(re.map(v => escapeRe(v)).join("|")); - } - this.options.grep = re; - return this; - }, - invert () { - this.options.invert = true; - return this; - } - }; - if (grep) { - mocha.grep(grep); - } - - // Clean up after chai.should(), etc - var globals = Object.getOwnPropertyNames(global); - var objectProps = Object.getOwnPropertyNames(Object.prototype); - // Monkeypatch process.stdout.write for mocha's JSON reporter - var _stdoutWrite = global.process.stdout.write; - global.process.stdout.write = function () {}; - - var Reporter = reporterName ? exports.reporters[reporterName] : exports.reporters.default; - var reporter, runner; - - try { - files.forEach(function (file) { - var context = {}; - suite.emit('pre-require', context, file, mocha); - suite.emit('require', run(file, context), file, mocha); - suite.emit('post-require', global, file, mocha); - }); - - runner = new MochaRunner(suite, false); - createStatsCollector(runner); - runner.ignoreLeaks = true; - reporter = new Reporter(runner, options); - if (options.grep) { - runner.grep(options.grep, options.invert); - } - runner.run(); - } finally { - Object.getOwnPropertyNames(global) - .filter(notIn(globals)) - .forEach(deleteFrom(global)); - Object.getOwnPropertyNames(Object.prototype) - .filter(notIn(objectProps)) - .forEach(deleteFrom(Object.prototype)); - global.process.stdout.write = _stdoutWrite; - } - - return runner.testResults || reporter.stats; -}; - -function StreamReporter (runner) { - var self = this; - BaseReporter.call(this, runner); - var items = []; - var total = runner.total; - runner.on('start', function () { - items.push(['start', {total: total}]); - }); - runner.on('pass', function (test) { - var t = clean(test); - delete t.err; - items.push(['pass', t]); - }); - runner.on('fail', function (test, err) { - var t = clean(test); - t.err = err.message; - items.push(['fail', t]); - }); - runner.on('end', function () { - items.push(['end', self.stats]); - }); - runner.testResults = items; -} - -function SuiteReporter (runner) { - var self = this; - BaseReporter.call(this, runner); - var suites = []; - var currentSuite; - runner.on('suite', function (suite) { - var s = { - title: suite.title, - tests: [], - suites: [] - }; - suites.unshift(s); - if (currentSuite) { - currentSuite.suites.push(s); - } - currentSuite = s; - }); - runner.on('suite end', function () { - var last = suites.shift(); - currentSuite = suites[0] || last; - }); - runner.on('pending', function (test) { - var t = clean(test); - delete t.fullTitle; - t.result = 'pending'; - currentSuite.tests.push(t); - }); - runner.on('pass', function (test) { - var t = clean(test); - delete t.fullTitle; - t.result = 'pass'; - currentSuite.tests.push(t); - }); - runner.on('fail', function (test) { - var t = clean(test); - delete t.fullTitle; - t.result = 'fail'; - currentSuite.tests.push(t); - }); - runner.on('end', function () { - runner.testResults = { - stats: self.stats, - suites: currentSuite ? currentSuite.suites : [], - tests: currentSuite ? currentSuite.tests : [] - }; - }); -} - -function XunitReporter (runner) { - DefaultReporter.call(this, runner); - let start; - runner.on('start', function () { - start = new Date().toISOString(); - }); - runner.on('end', function () { - const result = runner.testResults; - const tests = []; - for (const test of result.tests) { - const parentName = test.fullTitle.slice(0, -(test.title.length + 1)) || 'global'; - const testcase = ['testcase', { - classname: parentName, - name: test.title, - time: test.duration || 0 - }]; - if (test.err.stack) { - const [cause, ...stack] = test.err.stack.split('\n'); - const [type, ...message] = cause.split(': '); - testcase.push(['failure', { - message: message.join(': '), - type - }, [cause, ...stack].join('\n')]); - } - tests.push(testcase); - } - runner.testResults = ['testsuite', { - timestamp: start, - tests: result.stats.tests || 0, - errors: 0, - failures: result.stats.failures || 0, - skip: result.stats.pending || 0, - time: result.stats.duration || 0 - }, ...tests]; - }); -} - -function TapReporter (runner) { - DefaultReporter.call(this, runner); - runner.on('end', function () { - const result = runner.testResults; - const lines = []; - lines.push(`1..${result.stats.tests}`); - for (let i = 0; i < result.tests.length; i++) { - const test = result.tests[i]; - if (test.err.stack) { - lines.push(`not ok ${i + 1} ${test.fullTitle}`); - const [message, ...stack] = test.err.stack.split('\n'); - lines.push(' ' + message); - for (const line of stack) { - lines.push(' ' + line); - } - } else if (test.duration === undefined) { - lines.push(`ok ${i + 1} ${test.fullTitle} # SKIP -`); - } else { - lines.push(`ok ${i + 1} ${test.fullTitle}`); - } - } - lines.push(`# tests ${result.stats.tests}`); - lines.push(`# pass ${result.stats.passes}`); - lines.push(`# fail ${result.stats.failures}`); - runner.testResults = lines; - }); -} - -// via https://github.com/mochajs/mocha/blob/c6747a/lib/reporters/json.js -// Copyright (c) 2011-2015 TJ Holowaychuk -// The MIT License - -/* * - * Return a plain-object representation of `test` - * free of cyclic properties etc. - * - * @param {Object} test - * @return {Object} - * @api private - */ - -function clean (test) { - return { - title: test.title, - fullTitle: test.fullTitle(), - duration: test.duration, - err: errorJSON(test.err || {}) - }; -} - -/* * - * Transform `error` into a JSON object. - * @param {Error} err - * @return {Object} - */ - -function errorJSON (err) { - var res = {}; - Object.getOwnPropertyNames(err).forEach(function (key) { - res[key] = err[key]; - }, err); - return res; -} diff --git a/js/common/modules/@arangodb/mocha/context.js b/js/common/modules/@arangodb/mocha/context.js new file mode 100644 index 000000000000..0e1ca3cda9de --- /dev/null +++ b/js/common/modules/@arangodb/mocha/context.js @@ -0,0 +1,53 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + + class Context { + runnable(runnable) { + if (!arguments.length) { + return this._runnable; + } + this.test = this._runnable = runnable; + return this; + } + + timeout(ms) { + if (!arguments.length) { + return this.runnable().timeout(); + } + this.runnable().timeout(ms); + return this; + } + + enableTimeouts(enabled) { + if (!arguments.length) { + return this.runnable().enableTimeouts(); + } + this.runnable().enableTimeouts(enabled); + return this; + } + + slow(ms) { + if (!arguments.length) { + return this.runnable().slow(); + } + this.runnable().slow(ms); + return this; + } + + skip() { + this.runnable().skip(); + } + + retries(n) { + if (!arguments.length) { + return this.runnable().retries(); + } + this.runnable().retries(n); + return this; + } + +} + +module.exports = Context; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/hook.js b/js/common/modules/@arangodb/mocha/hook.js new file mode 100644 index 000000000000..2d5e8918190c --- /dev/null +++ b/js/common/modules/@arangodb/mocha/hook.js @@ -0,0 +1,25 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Runnable = require('@arangodb/mocha/runnable'); + +class Hook extends Runnable { + constructor(title, fn) { + super(title, fn); + this.type = 'hook'; + } + + error(err) { + if (!arguments.length) { + err = this._error; + this._error = null; + return err; + } + + this._error = err; + } +} + +module.exports = Hook; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/index.js b/js/common/modules/@arangodb/mocha/index.js new file mode 100644 index 000000000000..455ee902fd3e --- /dev/null +++ b/js/common/modules/@arangodb/mocha/index.js @@ -0,0 +1,125 @@ +'use strict'; + +// ////////////////////////////////////////////////////////////////////////////// +// / @brief ArangoDB Mocha integration +// / +// / @file +// / +// / DISCLAIMER +// / +// / Copyright 2015-2016 triAGENS GmbH, Cologne, Germany +// / +// / Licensed under the Apache License, Version 2.0 (the "License") +// / you may not use this file except in compliance with the License. +// / You may obtain a copy of the License at +// / +// / http://www.apache.org/licenses/LICENSE-2.0 +// / +// / Unless required by applicable law or agreed to in writing, software +// / distributed under the License is distributed on an "AS IS" BASIS, +// / WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// / See the License for the specific language governing permissions and +// / limitations under the License. +// / +// / Copyright holder is triAGENS GmbH, Cologne, Germany +// / +// / @author Alan Plum +// / @author Copyright 2015-2016, triAGENS GmbH, Cologne, Germany +// ////////////////////////////////////////////////////////////////////////////// + +var MochaContext = require('@arangodb/mocha/context'); +var MochaSuite = require('@arangodb/mocha/suite'); +var MochaRunner = require('@arangodb/mocha/runner'); +var createStatsCollector = require('@arangodb/mocha/stats-collector'); + +exports.reporters = { + stream: require('@arangodb/mocha/reporter/stream'), + suite: require('@arangodb/mocha/reporter/suite'), + xunit: require('@arangodb/mocha/reporter/xunit'), + tap: require('@arangodb/mocha/reporter/tap'), + default: require('@arangodb/mocha/reporter/json') +}; + +exports.run = function runMochaTests (run, files, reporterName, grep) { + if (!Array.isArray(files)) { + files = [files]; + } + + if (reporterName && !exports.reporters[reporterName]) { + throw new Error(`Unknown test reporter: "${ + reporterName + }". Known reporters: ${ + Object.keys(exports.reporters).join(', ') + }`); + } + + var suite = new MochaSuite('', new MochaContext()); + suite.timeout(0); + suite.bail(false); + + require('@arangodb/mocha/interface/bdd')(suite); + require('@arangodb/mocha/interface/tdd')(suite); + require('@arangodb/mocha/interface/exports')(suite); + + var options = {}; + var mocha = { + options: options, + grep (re) { + if (re) { + if (!Array.isArray(re)) { + re = [re]; + } + re = new RegExp(re.map( + v => v.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&") + ).join("|")); + } + this.options.grep = re; + return this; + }, + invert () { + this.options.invert = true; + return this; + } + }; + if (grep) { + mocha.grep(grep); + } + + // Clean up after chai.should(), etc + var globals = Object.getOwnPropertyNames(global); + var objectProps = Object.getOwnPropertyNames(Object.prototype); + + var Reporter = exports.reporters[reporterName || "default"]; + var reporter, runner; + + try { + files.forEach(function (file) { + var context = {}; + suite.emit('pre-require', context, file, mocha); + suite.emit('require', run(file, context), file, mocha); + suite.emit('post-require', global, file, mocha); + }); + + runner = new MochaRunner(suite, false); + createStatsCollector(runner); + runner.ignoreLeaks = true; + reporter = new Reporter(runner, options); + if (options.grep) { + runner.grep(options.grep, options.invert); + } + runner.run(); + } finally { + for (const name of Object.getOwnPropertyNames(global)) { + if (!globals.includes(name)) { + delete global[name]; + } + } + for (const name of Object.getOwnPropertyNames(Object.prototype)) { + if (!objectProps.includes(name)) { + delete Object.prototype[name]; + } + } + } + + return runner.testResults || reporter.stats; +}; diff --git a/js/common/modules/@arangodb/mocha/interface/bdd.js b/js/common/modules/@arangodb/mocha/interface/bdd.js new file mode 100644 index 000000000000..da036bd5a78a --- /dev/null +++ b/js/common/modules/@arangodb/mocha/interface/bdd.js @@ -0,0 +1,70 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Test = require('@arangodb/mocha/test'); + +module.exports = function bddInterface(suite) { + var suites = [suite]; + + suite.on('pre-require', function(context, file, mocha) { + var common = require('@arangodb/mocha/interface/common')(suites, context, mocha); + + context.before = common.before; + context.after = common.after; + context.beforeEach = common.beforeEach; + context.afterEach = common.afterEach; + context.run = mocha.options.delay && common.runWithSuite(suite); + + context.describe = context.context = function(title, fn) { + return common.suite.create({ + title: title, + file: file, + fn: fn + }); + }; + + context.xdescribe = context.xcontext = context.describe.skip = function( + title, + fn + ) { + return common.suite.skip({ + title: title, + file: file, + fn: fn + }); + }; + + context.describe.only = function(title, fn) { + return common.suite.only({ + title: title, + file: file, + fn: fn + }); + }; + + context.it = context.specify = function(title, fn) { + var suite = suites[0]; + if (suite.isPending()) { + fn = null; + } + var test = new Test(title, fn); + test.file = file; + suite.addTest(test); + return test; + }; + + context.it.only = function(title, fn) { + return common.test.only(mocha, context.it(title, fn)); + }; + + context.xit = context.xspecify = context.it.skip = function(title) { + return context.it(title); + }; + + context.it.retries = function(n) { + context.retries(n); + }; + }); +}; diff --git a/js/common/modules/@arangodb/mocha/interface/common.js b/js/common/modules/@arangodb/mocha/interface/common.js new file mode 100644 index 000000000000..10ab961d6ac5 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/interface/common.js @@ -0,0 +1,113 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Suite = require('@arangodb/mocha/suite'); + +function createMissingArgumentError(message, argument, expected) { + var err = new TypeError(message); + err.code = 'ERR_MOCHA_INVALID_ARG_TYPE'; + err.argument = argument; + err.expected = expected; + err.actual = typeof argument; + return err; +} + +module.exports = function(suites, context, mocha) { + function shouldBeTested(suite) { + return ( + !mocha.options.grep || + (mocha.options.grep && + mocha.options.grep.test(suite.fullTitle()) && + !mocha.options.invert) + ); + } + + return { + runWithSuite: function runWithSuite(suite) { + return function run() { + suite.run(); + }; + }, + + before: function(name, fn) { + suites[0].beforeAll(name, fn); + }, + + after: function(name, fn) { + suites[0].afterAll(name, fn); + }, + + beforeEach: function(name, fn) { + suites[0].beforeEach(name, fn); + }, + + afterEach: function(name, fn) { + suites[0].afterEach(name, fn); + }, + + suite: { + only: function only(opts) { + opts.isOnly = true; + return this.create(opts); + }, + + skip: function skip(opts) { + opts.pending = true; + return this.create(opts); + }, + + create: function create(opts) { + var suite = Suite.create(suites[0], opts.title); + suite.pending = Boolean(opts.pending); + suite.file = opts.file; + suites.unshift(suite); + if (opts.isOnly) { + if (mocha.options.forbidOnly && shouldBeTested(suite)) { + throw new Error('`.only` forbidden'); + } + + suite.parent.appendOnlySuite(suite); + } + if (suite.pending) { + if (mocha.options.forbidPending && shouldBeTested(suite)) { + throw new Error('Pending test forbidden'); + } + } + if (typeof opts.fn === 'function') { + opts.fn.call(suite); + suites.shift(); + } else if (typeof opts.fn === 'undefined' && !suite.pending) { + throw createMissingArgumentError( + 'Suite "' + + suite.fullTitle() + + '" was defined but no callback was supplied. ' + + 'Supply a callback or explicitly skip the suite.', + 'callback', + 'function' + ); + } else if (!opts.fn && suite.pending) { + suites.shift(); + } + + return suite; + } + }, + + test: { + only: function(mocha, test) { + test.parent.appendOnlyTest(test); + return test; + }, + + skip: function(title) { + context.test(title); + }, + + retries: function(n) { + context.retries(n); + } + } + }; +}; diff --git a/js/common/modules/@arangodb/mocha/interface/exports.js b/js/common/modules/@arangodb/mocha/interface/exports.js new file mode 100644 index 000000000000..71ec8136f627 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/interface/exports.js @@ -0,0 +1,45 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Suite = require('@arangodb/mocha/suite'); +const Test = require('@arangodb/mocha/test'); + +module.exports = function(suite) { + var suites = [suite]; + + suite.on('require', visit); + + function visit(obj, file) { + var suite; + for (var key in obj) { + if (typeof obj[key] === 'function') { + var fn = obj[key]; + switch (key) { + case 'before': + suites[0].beforeAll(fn); + break; + case 'after': + suites[0].afterAll(fn); + break; + case 'beforeEach': + suites[0].beforeEach(fn); + break; + case 'afterEach': + suites[0].afterEach(fn); + break; + default: + var test = new Test(key, fn); + test.file = file; + suites[0].addTest(test); + } + } else { + suite = Suite.create(suites[0], key); + suites.unshift(suite); + visit(obj[key], file); + suites.shift(); + } + } + } +}; diff --git a/js/common/modules/@arangodb/mocha/interface/tdd.js b/js/common/modules/@arangodb/mocha/interface/tdd.js new file mode 100644 index 000000000000..fd329d8ef5b2 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/interface/tdd.js @@ -0,0 +1,62 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Test = require('@arangodb/mocha/test'); + +module.exports = function(suite) { + var suites = [suite]; + + suite.on('pre-require', function(context, file, mocha) { + var common = require('@arangodb/mocha/interface/common')(suites, context, mocha); + + context.setup = common.beforeEach; + context.teardown = common.afterEach; + context.suiteSetup = common.before; + context.suiteTeardown = common.after; + context.run = mocha.options.delay && common.runWithSuite(suite); + + context.suite = function(title, fn) { + return common.suite.create({ + title: title, + file: file, + fn: fn + }); + }; + + context.suite.skip = function(title, fn) { + return common.suite.skip({ + title: title, + file: file, + fn: fn + }); + }; + + context.suite.only = function(title, fn) { + return common.suite.only({ + title: title, + file: file, + fn: fn + }); + }; + + context.test = function(title, fn) { + var suite = suites[0]; + if (suite.isPending()) { + fn = null; + } + var test = new Test(title, fn); + test.file = file; + suite.addTest(test); + return test; + }; + + context.test.only = function(title, fn) { + return common.test.only(mocha, context.test(title, fn)); + }; + + context.test.skip = common.test.skip; + context.test.retries = common.test.retries; + }); +}; diff --git a/js/common/modules/@arangodb/mocha/pending.js b/js/common/modules/@arangodb/mocha/pending.js new file mode 100644 index 000000000000..03d1f0bd5d65 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/pending.js @@ -0,0 +1,12 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +class Pending { + constructor(message) { + this.message = message; + } +} + +module.exports = Pending; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/reporter/index.js b/js/common/modules/@arangodb/mocha/reporter/index.js new file mode 100644 index 000000000000..fec835ccaaf4 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/reporter/index.js @@ -0,0 +1,46 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const util = require('util'); + +class BaseReporter { + constructor(runner, options) { + var failures = (this.failures = []); + + if (!runner) { + throw new TypeError('Missing runner argument'); + } + this.options = options || {}; + this.runner = runner; + this.stats = runner.stats; // assigned so Reporters keep a closer reference + + runner.on("pass", function(test) { + if (test.duration > test.slow()) { + test.speed = 'slow'; + } else if (test.duration > test.slow() / 2) { + test.speed = 'medium'; + } else { + test.speed = 'fast'; + } + }); + + runner.on("fail", function(test, err) { + if ( + err && + err.showDiff !== false && + String(err.actual) === String(err.expected) && + err.expected !== undefined && + (typeof err.actual !== "string" || typeof err.expected !== "string") + ) { + err.actual = util.inspect(err.actual); + err.expected = util.inspect(err.expected); + } + test.err = err; + failures.push(test); + }); + } +} + +module.exports = BaseReporter; diff --git a/js/common/modules/@arangodb/mocha/reporter/json.js b/js/common/modules/@arangodb/mocha/reporter/json.js new file mode 100644 index 000000000000..b8e554234353 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/reporter/json.js @@ -0,0 +1,48 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Reporter = require('@arangodb/mocha/reporter'); +const { clean } = require('@arangodb/mocha/utils'); + +class JsonReporter extends Reporter { + constructor(runner, options) { + super(runner, options); + var self = this; + var tests = []; + var pending = []; + var failures = []; + var passes = []; + + runner.on('test end', function(test) { + tests.push(test); + }); + + runner.on('pass', function(test) { + passes.push(test); + }); + + runner.on('fail', function(test) { + failures.push(test); + }); + + runner.on('pending', function(test) { + pending.push(test); + }); + + runner.once('end', function() { + var obj = { + stats: self.stats, + tests: tests.map(clean), + pending: pending.map(clean), + failures: failures.map(clean), + passes: passes.map(clean) + }; + + runner.testResults = obj; + }); + } +} + +module.exports = JsonReporter; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/reporter/stream.js b/js/common/modules/@arangodb/mocha/reporter/stream.js new file mode 100644 index 000000000000..643f67d59fc1 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/reporter/stream.js @@ -0,0 +1,35 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Reporter = require('@arangodb/mocha/reporter'); +const { clean } = require('@arangodb/mocha/utils'); + +class StreamReporter extends Reporter { + constructor (runner) { + super(runner); + var self = this; + var items = []; + var total = runner.total; + runner.on('start', function () { + items.push(['start', {total: total}]); + }); + runner.on('pass', function (test) { + var t = clean(test); + delete t.err; + items.push(['pass', t]); + }); + runner.on('fail', function (test, err) { + var t = clean(test); + t.err = err.message; + items.push(['fail', t]); + }); + runner.on('end', function () { + items.push(['end', self.stats]); + }); + runner.testResults = items; + } +} + +module.exports = StreamReporter; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/reporter/suite.js b/js/common/modules/@arangodb/mocha/reporter/suite.js new file mode 100644 index 000000000000..7b2b2da7b508 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/reporter/suite.js @@ -0,0 +1,59 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Reporter = require('@arangodb/mocha/reporter'); +const { clean } = require('@arangodb/mocha/utils'); + +class SuiteReporter extends Reporter { + constructor(runner) { + super(runner); + var self = this; + var suites = []; + var currentSuite; + runner.on('suite', function (suite) { + var s = { + title: suite.title, + tests: [], + suites: [] + }; + suites.unshift(s); + if (currentSuite) { + currentSuite.suites.push(s); + } + currentSuite = s; + }); + runner.on('suite end', function () { + var last = suites.shift(); + currentSuite = suites[0] || last; + }); + runner.on('pending', function (test) { + var t = clean(test); + delete t.fullTitle; + t.result = 'pending'; + currentSuite.tests.push(t); + }); + runner.on('pass', function (test) { + var t = clean(test); + delete t.fullTitle; + t.result = 'pass'; + currentSuite.tests.push(t); + }); + runner.on('fail', function (test) { + var t = clean(test); + delete t.fullTitle; + t.result = 'fail'; + currentSuite.tests.push(t); + }); + runner.on('end', function () { + runner.testResults = { + stats: self.stats, + suites: currentSuite ? currentSuite.suites : [], + tests: currentSuite ? currentSuite.tests : [] + }; + }); + } +} + +module.exports = SuiteReporter; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/reporter/tap.js b/js/common/modules/@arangodb/mocha/reporter/tap.js new file mode 100644 index 000000000000..9762bb307361 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/reporter/tap.js @@ -0,0 +1,38 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const JsonReporter = require('@arangodb/mocha/reporter/json'); + +class TapReporter extends JsonReporter { + constructor(runner) { + super(runner); + runner.on('end', function () { + const result = runner.testResults; + const lines = []; + lines.push(`1..${result.stats.tests}`); + for (let i = 0; i < result.tests.length; i++) { + const test = result.tests[i]; + if (test.err.stack) { + lines.push(`not ok ${i + 1} ${test.fullTitle}`); + const [message, ...stack] = test.err.stack.split('\n'); + lines.push(' ' + message); + for (const line of stack) { + lines.push(' ' + line); + } + } else if (test.duration === undefined) { + lines.push(`ok ${i + 1} ${test.fullTitle} # SKIP -`); + } else { + lines.push(`ok ${i + 1} ${test.fullTitle}`); + } + } + lines.push(`# tests ${result.stats.tests}`); + lines.push(`# pass ${result.stats.passes}`); + lines.push(`# fail ${result.stats.failures}`); + runner.testResults = lines; + }); + } +} + +module.exports = TapReporter; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/reporter/xunit.js b/js/common/modules/@arangodb/mocha/reporter/xunit.js new file mode 100644 index 000000000000..84ed7a0bfe2f --- /dev/null +++ b/js/common/modules/@arangodb/mocha/reporter/xunit.js @@ -0,0 +1,46 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const JsonReporter = require('@arangodb/mocha/reporter/json'); + +class XunitReporter extends JsonReporter { + constructor(runner) { + super(runner); + let start; + runner.on('start', function () { + start = new Date().toISOString(); + }); + runner.on('end', function () { + const result = runner.testResults; + const tests = []; + for (const test of result.tests) { + const parentName = test.fullTitle.slice(0, -(test.title.length + 1)) || 'global'; + const testcase = ['testcase', { + classname: parentName, + name: test.title, + time: test.duration || 0 + }]; + if (test.err.stack) { + const [cause, ...stack] = test.err.stack.split('\n'); + const [type, ...message] = cause.split(': '); + testcase.push(['failure', { + message: message.join(': '), + type + }, [cause, ...stack].join('\n')]); + } + tests.push(testcase); + } + runner.testResults = ['testsuite', { + timestamp: start, + tests: result.stats.tests || 0, + errors: 0, + failures: result.stats.failures || 0, + skip: result.stats.pending || 0, + time: result.stats.duration || 0 + }, ...tests]; + }); + } +} +module.exports = XunitReporter; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/runnable.js b/js/common/modules/@arangodb/mocha/runnable.js new file mode 100644 index 000000000000..c2b98c7d93e3 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/runnable.js @@ -0,0 +1,261 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const EventEmitter = require('events').EventEmitter; +const Pending = require('@arangodb/mocha/pending'); +const milliseconds = require('ms'); + +function createInvalidExceptionError(message, value) { + var err = new Error(message); + err.code = 'ERR_MOCHA_INVALID_EXCEPTION'; + err.valueType = typeof value; + err.value = value; + return err; +} + +function toValueOrError(value) { + return ( + value || + createInvalidExceptionError( + 'Runnable failed with falsy or undefined exception. Please throw an Error instead.', + value + ) + ); +} + + +var Date = global.Date; +var toString = Object.prototype.toString; + +class Runnable extends EventEmitter { + constructor(title, fn) { + super(); + this.title = title; + this.fn = fn; + this.body = (fn || '').toString(); + this.async = fn && fn.length; + this.sync = !this.async; + this._timeout = 2000; + this._slow = 75; + this._enableTimeouts = true; + this.timedOut = false; + this._retries = -1; + this._currentRetry = 0; + this.pending = false; + } + + timeout(ms) { + if (!arguments.length) { + return this._timeout; + } + if (typeof ms === 'string') { + ms = milliseconds(ms); + } + + var INT_MAX = Math.pow(2, 31) - 1; + ms = Math.max(0, Math.min(ms, INT_MAX)); + + if (ms === 0 || ms === INT_MAX) { + this._enableTimeouts = false; + } + this._timeout = ms; + return this; + } + + slow(ms) { + if (!arguments.length || typeof ms === 'undefined') { + return this._slow; + } + if (typeof ms === 'string') { + ms = milliseconds(ms); + } + this._slow = ms; + return this; + } + + enableTimeouts(enabled) { + if (!arguments.length) { + return this._enableTimeouts; + } + this._enableTimeouts = enabled; + return this; + } + + skip() { + throw new Pending('sync skip'); + } + + isPending() { + return this.pending || (this.parent && this.parent.isPending()); + } + + isFailed() { + return !this.isPending() && this.state === 'failed'; + } + + isPassed() { + return !this.isPending() && this.state === 'passed'; + } + + retries(n) { + if (!arguments.length) { + return this._retries; + } + this._retries = n; + } + + currentRetry(n) { + if (!arguments.length) { + return this._currentRetry; + } + this._currentRetry = n; + } + + fullTitle() { + return this.titlePath().join(' '); + } + + titlePath() { + return this.parent.titlePath().concat([this.title]); + } + + inspect() { + return JSON.stringify( + this, + function(key, val) { + if (key[0] === '_') { + return; + } + if (key === 'parent') { + return '#'; + } + if (key === 'ctx') { + return '#'; + } + return val; + }, + 2 + ); + } + + globals(globals) { + if (!arguments.length) { + return this._allowedGlobals; + } + this._allowedGlobals = globals; + } + + run(fn) { + var self = this; + var start = new Date(); + var ctx = this.ctx; + var finished; + var emitted; + + if (ctx && ctx.runnable) { + ctx.runnable(this); + } + + function multiple(err) { + if (emitted) { + return; + } + emitted = true; + var msg = 'done() called multiple times'; + if (err && err.message) { + err.message += " (and Mocha's " + msg + ')'; + self.emit('error', err); + } else { + self.emit('error', new Error(msg)); + } + } + + function done(err) { + var ms = self.timeout(); + if (self.timedOut) { + return; + } + + if (finished) { + return multiple(err); + } + + self.duration = new Date() - start; + finished = true; + if (!err && self.duration > ms && self._enableTimeouts) { + err = self._timeoutError(ms); + } + fn(err); + } + + this.callback = done; + + if (this.async) { + this.skip = function asyncSkip() { + done(new Pending('async skip call')); + throw new Pending('async skip; aborting execution'); + }; + + if (this.allowUncaught) { + return callFnAsync(this.fn); + } + try { + callFnAsync(this.fn); + } catch (err) { + emitted = true; + done(toValueOrError(err)); + } + return; + } + + if (this.allowUncaught) { + if (!this.isPending()) { + this.fn(ctx); + } + done(); + return; + } + + try { + if (!this.isPending()) { + this.fn(ctx); + } + done(); + } catch (err) { + emitted = true; + done(toValueOrError(err)); + } + + function callFnAsync(fn) { + fn.call(ctx, function(err) { + if (err instanceof Error || toString.call(err) === '[object Error]') { + return done(err); + } + if (err) { + if (Object.prototype.toString.call(err) === '[object Object]') { + return done( + new Error('done() invoked with non-Error: ' + JSON.stringify(err)) + ); + } + return done(new Error('done() invoked with non-Error: ' + err)); + } + done(); + }); + } + } + + _timeoutError(ms) { + var msg = + 'Timeout of ' + + ms + + 'ms exceeded.'; + if (this.file) { + msg += ' (' + this.file + ')'; + } + return new Error(msg); + } +} + +module.exports = Runnable; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/runner.js b/js/common/modules/@arangodb/mocha/runner.js new file mode 100644 index 000000000000..dc5bf46ba083 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/runner.js @@ -0,0 +1,647 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const util = require('util'); +const EventEmitter = require('events').EventEmitter; +const Pending = require('@arangodb/mocha/pending'); +const Runnable = require('@arangodb/mocha/runnable'); + +function createInvalidExceptionError(message, value) { + var err = new Error(message); + err.code = 'ERR_MOCHA_INVALID_EXCEPTION'; + err.valueType = typeof value; + err.value = value; + return err; +} + +var globals = [ + 'setTimeout', + 'clearTimeout', + 'setInterval', + 'clearInterval', + 'XMLHttpRequest', + 'Date', + 'setImmediate', + 'clearImmediate' +]; + +class Runner extends EventEmitter { + constructor(suite, delay) { + super(); + var self = this; + this._globals = []; + this._abort = false; + this._delay = delay; + this.suite = suite; + this.started = false; + this.total = suite.total(); + this.failures = 0; + this.on('test end', function(test) { + self.checkGlobals(test); + }); + this.on('hook end', function(hook) { + self.checkGlobals(hook); + }); + this._defaultGrep = /.*/; + this.grep(this._defaultGrep); + this.globals(this.globalProps().concat(extraGlobals())); + } + + grep(re, invert) { + this._grep = re; + this._invert = invert; + this.total = this.grepTotal(this.suite); + return this; + } + + grepTotal(suite) { + var self = this; + var total = 0; + + suite.eachTest(function(test) { + var match = self._grep.test(test.fullTitle()); + if (self._invert) { + match = !match; + } + if (match) { + total++; + } + }); + + return total; + } + + globalProps() { + var props = Object.keys(global); + + for (var i = 0; i < globals.length; ++i) { + if (~props.indexOf(globals[i])) { + continue; + } + props.push(globals[i]); + } + + return props; + } + + globals(arr) { + if (!arguments.length) { + return this._globals; + } + this._globals = this._globals.concat(arr); + return this; + } + + checkGlobals(test) { + if (this.ignoreLeaks) { + return; + } + var ok = this._globals; + + var globals = this.globalProps(); + var leaks; + + if (test) { + ok = ok.concat(test._allowedGlobals || []); + } + + if (this.prevGlobalsLength === globals.length) { + return; + } + this.prevGlobalsLength = globals.length; + + leaks = filterLeaks(ok, globals); + this._globals = this._globals.concat(leaks); + + if (leaks.length) { + var format = ( + leaks.length === 1 + ? 'global leak detected: %s' + : 'global leaks detected: %s' + ); + var error = new Error(util.format(format, leaks.map(leak => `'${leak}'`).join(', '))); + this.fail(test, error); + } + } + + fail(test, err) { + if (test.isPending()) { + return; + } + + ++this.failures; + test.state = 'failed'; + + if (!isError(err)) { + err = thrown2Error(err); + } + + // TODO filter stack trace + + this.emit('fail', test, err); + } + + failHook(hook, err) { + hook.originalTitle = hook.originalTitle || hook.title; + if (hook.ctx && hook.ctx.currentTest) { + hook.title = + hook.originalTitle + ' for ' + `"${hook.ctx.currentTest.title}"`; + } else { + var parentTitle; + if (hook.parent.title) { + parentTitle = hook.parent.title; + } else { + parentTitle = hook.parent.root ? '{root}' : ''; + } + hook.title = hook.originalTitle + ' in ' + `"parentTitle"`; + } + + this.fail(hook, err); + } + + hook(name, fn) { + var suite = this.suite; + var hooks = suite.getHooks(name); + var self = this; + + function next(i) { + var hook = hooks[i]; + if (!hook) { + return fn(); + } + self.currentRunnable = hook; + + if (name === 'beforeAll') { + hook.ctx.currentTest = hook.parent.tests[0]; + } else if (name === 'afterAll') { + hook.ctx.currentTest = hook.parent.tests[hook.parent.tests.length - 1]; + } else { + hook.ctx.currentTest = self.test; + } + + hook.allowUncaught = self.allowUncaught; + + self.emit('hook', hook); + + if (!hook.listeners('error').length) { + hook.on('error', function(err) { + self.failHook(hook, err); + }); + } + + hook.run(function(err) { + var testError = hook.error(); + if (testError) { + self.fail(self.test, testError); + } + if (err) { + if (err instanceof Pending) { + if (name === 'afterAll') { + throw new Error('Skipping a test within an "after all" hook is forbidden.'); + } + if (name === 'beforeEach' || name === 'afterEach') { + if (self.test) { + self.test.pending = true; + } + } else { + suite.tests.forEach(function(test) { + test.pending = true; + }); + suite.suites.forEach(function(suite) { + suite.pending = true; + }); + hook.pending = true; + } + } else { + self.failHook(hook, err); + return fn(err); + } + } + self.emit('hook end', hook); + delete hook.ctx.currentTest; + next(++i); + }); + } + + next(0); + } + + hooks(name, suites, fn) { + var self = this; + var orig = this.suite; + + function next(suite) { + self.suite = suite; + + if (!suite) { + self.suite = orig; + return fn(); + } + + self.hook(name, function(err) { + if (err) { + var errSuite = self.suite; + self.suite = orig; + return fn(err, errSuite); + } + + next(suites.pop()); + }); + } + + next(suites.pop()); + } + + hookUp(name, fn) { + var suites = [this.suite].concat(this.parents()).reverse(); + this.hooks(name, suites, fn); + } + + hookDown(name, fn) { + var suites = [this.suite].concat(this.parents()); + this.hooks(name, suites, fn); + } + + parents() { + var suite = this.suite; + var suites = []; + while (suite.parent) { + suite = suite.parent; + suites.push(suite); + } + return suites; + } + + runTest(fn) { + var self = this; + var test = this.test; + + if (!test) { + return; + } + + var suite = this.parents().reverse()[0] || this.suite; + if (this.forbidOnly && suite.hasOnly()) { + fn(new Error('`.only` forbidden')); + return; + } + test.on('error', function(err) { + self.fail(test, err); + }); + if (this.allowUncaught) { + test.allowUncaught = true; + return test.run(fn); + } + try { + test.run(fn); + } catch (err) { + fn(err); + } + } + + runTests(suite, fn) { + var self = this; + var tests = suite.tests.slice(); + var test; + + function hookErr(_, errSuite, after) { + var orig = self.suite; + + self.suite = after ? errSuite.parent : errSuite; + + if (self.suite) { + self.hookUp('afterEach', function(err2, errSuite2) { + self.suite = orig; + if (err2) { + return hookErr(err2, errSuite2, true); + } + fn(errSuite); + }); + } else { + self.suite = orig; + fn(errSuite); + } + } + + function next(err, errSuite) { + if (self.failures && suite._bail) { + tests = []; + } + + if (self._abort) { + return fn(); + } + + if (err) { + return hookErr(err, errSuite, true); + } + + test = tests.shift(); + + if (!test) { + return fn(); + } + + var match = self._grep.test(test.fullTitle()); + if (self._invert) { + match = !match; + } + if (!match) { + next(); + return; + } + + if (test.isPending()) { + if (self.forbidPending) { + test.isPending = () => false; + self.fail(test, new Error('Pending test forbidden')); + delete test.isPending; + } else { + self.emit('pending', test); + } + self.emit('test end', test); + return next(); + } + + self.emit('test', (self.test = test)); + self.hookDown('beforeEach', function(err, errSuite) { + if (test.isPending()) { + if (self.forbidPending) { + test.isPending = () => false; + self.fail(test, new Error('Pending test forbidden')); + delete test.isPending; + } else { + self.emit('pending', test); + } + self.emit('test end', test); + return next(); + } + if (err) { + return hookErr(err, errSuite, false); + } + self.currentRunnable = self.test; + self.runTest(function(err) { + test = self.test; + if (err) { + var retry = test.currentRetry(); + if (err instanceof Pending && self.forbidPending) { + self.fail(test, new Error('Pending test forbidden')); + } else if (err instanceof Pending) { + test.pending = true; + self.emit('pending', test); + } else if (retry < test.retries()) { + var clonedTest = test.clone(); + clonedTest.currentRetry(retry + 1); + tests.unshift(clonedTest); + + self.emit('retry', test, err); + + return self.hookUp('afterEach', next); + } else { + self.fail(test, err); + } + self.emit('test end', test); + + if (err instanceof Pending) { + return next(); + } + + return self.hookUp('afterEach', next); + } + + test.state = 'passed'; + self.emit('pass', test); + self.emit('test end', test); + self.hookUp('afterEach', next); + }); + }); + } + + this.next = next; + this.hookErr = hookErr; + next(); + } + + runSuite(suite, fn) { + var i = 0; + var self = this; + var total = this.grepTotal(suite); + var afterAllHookCalled = false; + + + if (!total || (self.failures && suite._bail)) { + return fn(); + } + + this.emit('suite', (this.suite = suite)); + + function next(errSuite) { + if (errSuite) { + if (errSuite === suite) { + return done(); + } + return done(errSuite); + } + + if (self._abort) { + return done(); + } + + var curr = suite.suites[i++]; + if (!curr) { + return done(); + } + + self.runSuite(curr, next); + } + + function done(errSuite) { + self.suite = suite; + self.nextSuite = next; + + if (afterAllHookCalled) { + fn(errSuite); + } else { + afterAllHookCalled = true; + + delete self.test; + + self.hook('afterAll', function() { + self.emit('suite end', suite); + fn(errSuite); + }); + } + } + + this.nextSuite = next; + + this.hook('beforeAll', function(err) { + if (err) { + return done(); + } + self.runTests(suite, next); + }); + } + + uncaught(err) { + if (err instanceof Pending) { + return; + } + if (!err) { + err = createInvalidExceptionError( + 'Caught falsy/undefined exception which would otherwise be uncaught. No stack trace found; try a debugger', + err + ); + } + + if (!isError(err)) { + err = thrown2Error(err); + } + err.uncaught = true; + + var runnable = this.currentRunnable; + + if (!runnable) { + runnable = new Runnable('Uncaught error outside test suite'); + runnable.parent = this.suite; + + if (this.started) { + this.fail(runnable, err); + } else { + this.emit('start'); + this.fail(runnable, err); + this.emit('end'); + } + + return; + } + + if (runnable.isFailed() || runnable.isPending()) { + return; + } + var alreadyPassed = runnable.isPassed(); + this.fail(runnable, err); + if (!alreadyPassed) { + if (runnable.type === 'test') { + this.emit('test end', runnable); + this.hookUp('afterEach', this.next); + return; + } + + var errSuite = this.suite; + + if (runnable.fullTitle().indexOf('after each') > -1) { + return this.hookErr(err, errSuite, true); + } + if (runnable.fullTitle().indexOf('before each') > -1) { + return this.hookErr(err, errSuite, false); + } + return this.nextSuite(errSuite); + } + + this.emit('end'); + } + + run(fn) { + var self = this; + var rootSuite = this.suite; + + fn = fn || function() {}; + + function uncaught(err) { + self.uncaught(err); + } + + function start() { + if (rootSuite.hasOnly()) { + rootSuite.filterOnly(); + } + self.started = true; + if (self._delay) { + self.emit('ready'); + } + self.emit('start'); + + self.runSuite(rootSuite, function() { + self.emit('end'); + }); + } + + + this.on('suite end', function(suite) { + suite.cleanReferences(); + }); + + this.on('end', function() { + process.removeListener('uncaughtException', uncaught); + fn(self.failures); + }); + + process.on('uncaughtException', uncaught); + + if (this._delay) { + this.emit('waiting', rootSuite); + rootSuite.once('run', start); + } else { + start(); + } + + return this; + } + + abort() { + this._abort = true; + + return this; + } +} + +function filterLeaks(ok, globals) { + return globals.filter(function(key) { + if (/^\d+/.test(key)) { + return false; + } + + if (/^mocha-/.test(key)) { + return false; + } + + var matched = ok.filter(function(ok) { + if (~ok.indexOf('*')) { + return key.indexOf(ok.split('*')[0]) === 0; + } + return key === ok; + }); + return !matched.length && (!global.navigator || key !== 'onerror'); + }); +} + +function isError(err) { + return err instanceof Error || (err && typeof err.message === 'string'); +} + +function thrown2Error(err) { + return new Error( + util.inspect(err) + ' was thrown, throw an Error :)' + ); +} + +function extraGlobals() { + if (typeof process === 'object' && typeof process.version === 'string') { + var parts = process.version.split('.'); + var nodeVersion = parts.reduce(function(a, v) { + return (a << 8) | v; + }); + + // 'errno' was renamed to process._errno in v0.9.11. + if (nodeVersion < 0x00090b) { + return ['errno']; + } + } + + return []; +} + +module.exports = Runner; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/stats-collector.js b/js/common/modules/@arangodb/mocha/stats-collector.js new file mode 100644 index 000000000000..366c517fbbfb --- /dev/null +++ b/js/common/modules/@arangodb/mocha/stats-collector.js @@ -0,0 +1,47 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +var Date = global.Date; + +function createStatsCollector(runner) { + var stats = { + suites: 0, + tests: 0, + passes: 0, + pending: 0, + failures: 0 + }; + + if (!runner) { + throw new TypeError('Missing runner argument'); + } + + runner.stats = stats; + + runner.once('start', function() { + stats.start = new Date(); + }); + runner.on('suite', function(suite) { + suite.root || stats.suites++; + }); + runner.on('pass', function() { + stats.passes++; + }); + runner.on('fail', function() { + stats.failures++; + }); + runner.on('pending', function() { + stats.pending++; + }); + runner.on('test end', function() { + stats.tests++; + }); + runner.once('end', function() { + stats.end = new Date(); + stats.duration = stats.end - stats.start; + }); +} + +module.exports = createStatsCollector; diff --git a/js/common/modules/@arangodb/mocha/suite.js b/js/common/modules/@arangodb/mocha/suite.js new file mode 100644 index 000000000000..a63a4a1dd5c0 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/suite.js @@ -0,0 +1,335 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +/** + * Module dependencies. + */ +const EventEmitter = require('events').EventEmitter; +const milliseconds = require('ms'); +const Hook = require('@arangodb/mocha/hook'); + +function createInvalidArgumentTypeError(message, argument, expected) { + var err = new TypeError(message); + err.code = 'ERR_MOCHA_INVALID_ARG_TYPE'; + err.argument = argument; + err.expected = expected; + err.actual = typeof argument; + return err; +} + +class Suite extends EventEmitter { + constructor(title, parentContext, isRoot) { + super(); + if (typeof title !== "string") { + throw createInvalidArgumentTypeError( + 'Suite argument "title" must be a string. Received type "' + + typeof title + + '"', + 'title', + 'string' + ); + } + this.title = title; + this.ctx = Object.create(parentContext || null); + this.suites = []; + this.tests = []; + this.pending = false; + this._beforeEach = []; + this._beforeAll = []; + this._afterEach = []; + this._afterAll = []; + this.root = isRoot === true; + this._timeout = 2000; + this._enableTimeouts = true; + this._slow = 75; + this._bail = false; + this._retries = -1; + this._onlyTests = []; + this._onlySuites = []; + this.delayed = false; + } + + clone() { + var suite = new Suite(this.title); + suite.ctx = this.ctx; + suite.root = this.root; + suite.timeout(this.timeout()); + suite.retries(this.retries()); + suite.enableTimeouts(this.enableTimeouts()); + suite.slow(this.slow()); + suite.bail(this.bail()); + return suite; + } + + timeout(ms) { + if (!arguments.length) { + return this._timeout; + } + if (ms.toString() === '0') { + this._enableTimeouts = false; + } + if (typeof ms === 'string') { + ms = milliseconds(ms); + } + this._timeout = parseInt(ms, 10); + return this; + } + + retries(n) { + if (!arguments.length) { + return this._retries; + } + this._retries = parseInt(n, 10) || 0; + return this; + } + + enableTimeouts(enabled) { + if (!arguments.length) { + return this._enableTimeouts; + } + this._enableTimeouts = enabled; + return this; + } + + slow(ms) { + if (!arguments.length) { + return this._slow; + } + if (typeof ms === 'string') { + ms = milliseconds(ms); + } + this._slow = ms; + return this; + } + + bail(bail) { + if (!arguments.length) { + return this._bail; + } + this._bail = bail; + return this; + } + + isPending() { + return this.pending || (this.parent && this.parent.isPending()); + } + + _createHook(title, fn) { + var hook = new Hook(title, fn); + hook.parent = this; + hook.timeout(this.timeout()); + hook.retries(this.retries()); + hook.enableTimeouts(this.enableTimeouts()); + hook.slow(this.slow()); + hook.ctx = this.ctx; + hook.file = this.file; + return hook; + } + + beforeAll(title, fn) { + if (this.isPending()) { + return this; + } + if (typeof title === 'function') { + fn = title; + title = fn.name; + } + title = '"before all" hook' + (title ? ': ' + title : ''); + + var hook = this._createHook(title, fn); + this._beforeAll.push(hook); + this.emit('beforeAll', hook); + return this; + } + + afterAll(title, fn) { + if (this.isPending()) { + return this; + } + if (typeof title === 'function') { + fn = title; + title = fn.name; + } + title = '"after all" hook' + (title ? ': ' + title : ''); + + var hook = this._createHook(title, fn); + this._afterAll.push(hook); + this.emit('afterAll', hook); + return this; + } + + beforeEach(title, fn) { + if (this.isPending()) { + return this; + } + if (typeof title === 'function') { + fn = title; + title = fn.name; + } + title = '"before each" hook' + (title ? ': ' + title : ''); + + var hook = this._createHook(title, fn); + this._beforeEach.push(hook); + this.emit('beforeEach', hook); + return this; + } + + afterEach(title, fn) { + if (this.isPending()) { + return this; + } + if (typeof title === 'function') { + fn = title; + title = fn.name; + } + title = '"after each" hook' + (title ? ': ' + title : ''); + + var hook = this._createHook(title, fn); + this._afterEach.push(hook); + this.emit('afterEach', hook); + return this; + } + + addSuite(suite) { + suite.parent = this; + suite.root = false; + suite.timeout(this.timeout()); + suite.retries(this.retries()); + suite.enableTimeouts(this.enableTimeouts()); + suite.slow(this.slow()); + suite.bail(this.bail()); + this.suites.push(suite); + this.emit('suite', suite); + return this; + } + + addTest(test) { + test.parent = this; + test.timeout(this.timeout()); + test.retries(this.retries()); + test.enableTimeouts(this.enableTimeouts()); + test.slow(this.slow()); + test.ctx = this.ctx; + this.tests.push(test); + this.emit('test', test); + return this; + } + + fullTitle() { + return this.titlePath().join(' '); + } + + titlePath() { + var result = []; + if (this.parent) { + result = result.concat(this.parent.titlePath()); + } + if (!this.root) { + result.push(this.title); + } + return result; + } + + total() { + return ( + this.suites.reduce(function(sum, suite) { + return sum + suite.total(); + }, 0) + this.tests.length + ); + } + + eachTest(fn) { + this.tests.forEach(fn); + this.suites.forEach(function(suite) { + suite.eachTest(fn); + }); + return this; + } + + run() { + if (this.root) { + this.emit('run'); + } + } + + hasOnly() { + return ( + this._onlyTests.length > 0 || + this._onlySuites.length > 0 || + this.suites.some(function(suite) { + return suite.hasOnly(); + }) + ); + } + + filterOnly() { + if (this._onlyTests.length) { + this.tests = this._onlyTests; + this.suites = []; + } else { + this.tests = []; + this._onlySuites.forEach(function(onlySuite) { + if (onlySuite.hasOnly()) { + onlySuite.filterOnly(); + } + }); + var onlySuites = this._onlySuites; + this.suites = this.suites.filter(function(childSuite) { + return onlySuites.indexOf(childSuite) !== -1 || childSuite.filterOnly(); + }); + } + return this.tests.length > 0 || this.suites.length > 0; + } + + appendOnlySuite(suite) { + this._onlySuites.push(suite); + } + + appendOnlyTest(test) { + this._onlyTests.push(test); + } + + getHooks(name) { + return this['_' + name]; + } + + cleanReferences() { + function cleanArrReferences(arr) { + for (var i = 0; i < arr.length; i++) { + delete arr[i].fn; + } + } + + if (Array.isArray(this._beforeAll)) { + cleanArrReferences(this._beforeAll); + } + + if (Array.isArray(this._beforeEach)) { + cleanArrReferences(this._beforeEach); + } + + if (Array.isArray(this._afterAll)) { + cleanArrReferences(this._afterAll); + } + + if (Array.isArray(this._afterEach)) { + cleanArrReferences(this._afterEach); + } + + for (var i = 0; i < this.tests.length; i++) { + delete this.tests[i].fn; + } + } +} + +module.exports = Suite; + +Suite.create = function(parent, title) { + var suite = new Suite(title, parent.ctx); + suite.parent = parent; + title = suite.fullTitle(); + parent.addSuite(suite); + return suite; +}; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/test.js b/js/common/modules/@arangodb/mocha/test.js new file mode 100644 index 000000000000..dd0122015cd2 --- /dev/null +++ b/js/common/modules/@arangodb/mocha/test.js @@ -0,0 +1,48 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +const Runnable = require('@arangodb/mocha/runnable'); + +function createInvalidArgumentTypeError(message, argument, expected) { + var err = new TypeError(message); + err.code = 'ERR_MOCHA_INVALID_ARG_TYPE'; + err.argument = argument; + err.expected = expected; + err.actual = typeof argument; + return err; +} + +class Test extends Runnable { + constructor(title, fn) { + if (typeof title !== "string") { + throw createInvalidArgumentTypeError( + 'Test argument "title" should be a string. Received type "' + + typeof title + + '"', + 'title', + 'string' + ); + } + super(title, fn); + this.pending = !fn; + this.type = 'test'; + } + + clone() { + var test = new Test(this.title, this.fn); + test.timeout(this.timeout()); + test.slow(this.slow()); + test.enableTimeouts(this.enableTimeouts()); + test.retries(this.retries()); + test.currentRetry(this.currentRetry()); + test.globals(this.globals()); + test.parent = this.parent; + test.file = this.file; + test.ctx = this.ctx; + return test; + } +} + +module.exports = Test; \ No newline at end of file diff --git a/js/common/modules/@arangodb/mocha/utils.js b/js/common/modules/@arangodb/mocha/utils.js new file mode 100644 index 000000000000..738e3c94f31b --- /dev/null +++ b/js/common/modules/@arangodb/mocha/utils.js @@ -0,0 +1,43 @@ +'use strict'; +// Based on mocha v6.1.3 under the MIT license. +// Original copyright (c) 2011-2018 JS Foundation and contributors, +// https://js.foundation + +exports.clean = function clean(test) { + var err = test.err || {}; + if (err instanceof Error) { + err = errorJSON(err); + } + + return { + title: test.title, + fullTitle: test.fullTitle(), + duration: test.duration, + currentRetry: test.currentRetry(), + err: cleanCycles(err) + }; +}; + +function cleanCycles(obj) { + var cache = []; + return JSON.parse( + JSON.stringify(obj, function(key, value) { + if (typeof value === 'object' && value !== null) { + if (cache.indexOf(value) !== -1) { + return '' + value; + } + cache.push(value); + } + + return value; + }) + ); +} + +function errorJSON(err) { + var res = {}; + Object.getOwnPropertyNames(err).forEach(function(key) { + res[key] = err[key]; + }, err); + return res; +} diff --git a/js/common/modules/@arangodb/util.js b/js/common/modules/@arangodb/util.js index 689d9519d7c0..0aa3a34a2b2b 100644 --- a/js/common/modules/@arangodb/util.js +++ b/js/common/modules/@arangodb/util.js @@ -28,8 +28,8 @@ const _ = require('lodash'); const fs = require('fs'); -const Chalk = require('chalk').constructor; -const chalk = new Chalk({enabled: true}); +const Chalk = require('chalk').Instance; +const chalk = new Chalk({level: 2}); const dedent = require('dedent'); const internal = require('internal'); const codeFrame = require('babel-code-frame'); diff --git a/js/node/node_modules/.bin/_mocha b/js/node/node_modules/.bin/_mocha deleted file mode 120000 index f2a54ffda15b..000000000000 --- a/js/node/node_modules/.bin/_mocha +++ /dev/null @@ -1 +0,0 @@ -../mocha/bin/_mocha \ No newline at end of file diff --git a/js/node/node_modules/.bin/ansi-html b/js/node/node_modules/.bin/ansi-html new file mode 120000 index 000000000000..7e3f8fb8f68e --- /dev/null +++ b/js/node/node_modules/.bin/ansi-html @@ -0,0 +1 @@ +../ansi-html/bin/ansi-html \ No newline at end of file diff --git a/js/node/node_modules/.bin/eslint b/js/node/node_modules/.bin/eslint new file mode 120000 index 000000000000..810e4bcb32af --- /dev/null +++ b/js/node/node_modules/.bin/eslint @@ -0,0 +1 @@ +../eslint/bin/eslint.js \ No newline at end of file diff --git a/js/node/node_modules/mocha/node_modules/.bin/js-yaml b/js/node/node_modules/.bin/js-yaml similarity index 100% rename from js/node/node_modules/mocha/node_modules/.bin/js-yaml rename to js/node/node_modules/.bin/js-yaml diff --git a/js/node/node_modules/.bin/mocha b/js/node/node_modules/.bin/mocha deleted file mode 120000 index 43c668d9a688..000000000000 --- a/js/node/node_modules/.bin/mocha +++ /dev/null @@ -1 +0,0 @@ -../mocha/bin/mocha \ No newline at end of file diff --git a/js/node/node_modules/.bin/semver b/js/node/node_modules/.bin/semver new file mode 120000 index 000000000000..5aaadf42c4a8 --- /dev/null +++ b/js/node/node_modules/.bin/semver @@ -0,0 +1 @@ +../semver/bin/semver.js \ No newline at end of file diff --git a/js/node/node_modules/.package-lock.json b/js/node/node_modules/.package-lock.json new file mode 100644 index 000000000000..dbff19c77e63 --- /dev/null +++ b/js/node/node_modules/.package-lock.json @@ -0,0 +1,1758 @@ +{ + "name": "node", + "lockfileVersion": 2, + "requires": true, + "packages": { + "node_modules/accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dependencies": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/accepts/node_modules/negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ansi_up": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi_up/-/ansi_up-5.0.1.tgz", + "integrity": "sha512-HGOTjFQECRKZM9fIlGhJfR2pcK8PMUWzFOqcPwqBEnNIa4P2r0Di+g2hxCX0hL0n1NUtAHGRA+fUyA/OajZYFw==", + "engines": { + "node": "*" + } + }, + "node_modules/ansi-html": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", + "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", + "engines": [ + "node >= 0.8.0" + ], + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/aqb": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/aqb/-/aqb-2.1.0.tgz", + "integrity": "sha1-zD3hZW+8fkPowGreTUAmKwafr70=" + }, + "node_modules/babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dependencies": { + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" + } + }, + "node_modules/babel-code-frame/node_modules/ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/babel-code-frame/node_modules/ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/babel-code-frame/node_modules/chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/babel-code-frame/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/babel-code-frame/node_modules/esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/babel-code-frame/node_modules/has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/babel-code-frame/node_modules/js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" + }, + "node_modules/babel-code-frame/node_modules/strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dependencies": { + "ansi-regex": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/babel-code-frame/node_modules/supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/chai": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-3.5.0.tgz", + "integrity": "sha1-TQJjewZ/6Vi9v906QOxW/vc3Mkc=", + "dependencies": { + "assertion-error": "^1.0.1", + "deep-eql": "^0.1.3", + "type-detect": "^1.0.0" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/chai/node_modules/assertion-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.0.2.tgz", + "integrity": "sha1-E8pRXYYgbaC6xm6DTdOX2HWBCUw=", + "engines": { + "node": "*" + } + }, + "node_modules/chai/node_modules/deep-eql": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-0.1.3.tgz", + "integrity": "sha1-71WKyrjeJSBs1xOQbXTlaTDrafI=", + "dependencies": { + "type-detect": "0.1.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/chai/node_modules/deep-eql/node_modules/type-detect": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-0.1.1.tgz", + "integrity": "sha1-C6XsKohWQORw6k6FBZcZANrFiCI=", + "engines": { + "node": "*" + } + }, + "node_modules/chai/node_modules/type-detect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-1.0.0.tgz", + "integrity": "sha1-diIXzAbbJY7EiQihKY6LlRIejqI=", + "engines": { + "node": "*" + } + }, + "node_modules/chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/chalk/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/chalk/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-disposition/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=" + }, + "node_modules/error-stack-parser": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.0.6.tgz", + "integrity": "sha512-d51brTeqC+BHlwF0BhPtcYgF5nlzf9ZZ0ZIUQNZpc9ZB9qw5IJ2diTrBY9jlCJkTLITYPjmiX6OWCwH+fuyNgQ==", + "dependencies": { + "stackframe": "^1.1.1" + } + }, + "node_modules/error-stack-parser/node_modules/stackframe": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.2.0.tgz", + "integrity": "sha512-GrdeshiRmS1YLMYgzF16olf2jJ/IzxXY9lhKOskuVziubpTYcYqyOwYeJKzQkwy7uN0fYSsbsC4RQaXf9LCrYA==" + }, + "node_modules/eslint": { + "version": "5.16.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.16.0.tgz", + "integrity": "sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg==", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "ajv": "^6.9.1", + "chalk": "^2.1.0", + "cross-spawn": "^6.0.5", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "eslint-scope": "^4.0.3", + "eslint-utils": "^1.3.1", + "eslint-visitor-keys": "^1.0.0", + "espree": "^5.0.1", + "esquery": "^1.0.1", + "esutils": "^2.0.2", + "file-entry-cache": "^5.0.1", + "functional-red-black-tree": "^1.0.1", + "glob": "^7.1.2", + "globals": "^11.7.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "inquirer": "^6.2.2", + "js-yaml": "^3.13.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.11", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.2", + "progress": "^2.0.0", + "regexpp": "^2.0.1", + "semver": "^5.5.1", + "strip-ansi": "^4.0.0", + "strip-json-comments": "^2.0.1", + "table": "^5.2.3", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^6.14.0 || ^8.10.0 || >=9.10.0" + } + }, + "node_modules/eslint/node_modules/@babel/code-frame": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", + "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "dependencies": { + "@babel/highlight": "^7.0.0" + } + }, + "node_modules/eslint/node_modules/@babel/highlight": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", + "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "dependencies": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "node_modules/eslint/node_modules/acorn": { + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.2.tgz", + "integrity": "sha512-XtGIhXwF8YM8bJhGxG5kXgjkEuNGLTkoYqVE+KMR+aspr4KGYmKYg7yUe3KghyQ9yheNwLnjmzh/7+gfDBmHCQ==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/eslint/node_modules/acorn-jsx": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.0.1.tgz", + "integrity": "sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg==" + }, + "node_modules/eslint/node_modules/ajv": { + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", + "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", + "dependencies": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "node_modules/eslint/node_modules/ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" + }, + "node_modules/eslint/node_modules/cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dependencies": { + "restore-cursor": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/cli-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=" + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" + }, + "node_modules/eslint/node_modules/cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dependencies": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "engines": { + "node": ">=4.8" + } + }, + "node_modules/eslint/node_modules/debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint/node_modules/deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=" + }, + "node_modules/eslint/node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eslint/node_modules/emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" + }, + "node_modules/eslint/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", + "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", + "dependencies": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/eslint/node_modules/eslint-utils": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", + "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/espree": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-5.0.1.tgz", + "integrity": "sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A==", + "dependencies": { + "acorn": "^6.0.7", + "acorn-jsx": "^5.0.0", + "eslint-visitor-keys": "^1.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eslint/node_modules/esquery": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", + "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", + "dependencies": { + "estraverse": "^4.0.0" + }, + "engines": { + "node": ">=0.6" + } + }, + "node_modules/eslint/node_modules/esrecurse": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", + "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dependencies": { + "estraverse": "^4.1.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/external-editor": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.0.3.tgz", + "integrity": "sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA==", + "dependencies": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" + }, + "node_modules/eslint/node_modules/fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "node_modules/eslint/node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" + }, + "node_modules/eslint/node_modules/figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/file-entry-cache": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", + "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", + "dependencies": { + "flat-cache": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/flat-cache": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", + "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", + "dependencies": { + "flatted": "^2.0.0", + "rimraf": "2.6.3", + "write": "1.0.3" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/flatted": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.0.tgz", + "integrity": "sha512-R+H8IZclI8AAkSBRQJLVOsxwAoHd6WC40b4QTNWIjzAa6BXOBfQcM587MXDTVPeYaopFNWHUFLx7eNmHDSxMWg==" + }, + "node_modules/eslint/node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "node_modules/eslint/node_modules/functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" + }, + "node_modules/eslint/node_modules/glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.11.0.tgz", + "integrity": "sha512-WHq43gS+6ufNOEqlrDBxVEbb8ntfXrfAUU2ZOpCxrBdGKW3gyv8mCxAfIBD0DroPKGrJ2eSsXsLtY9MPntsyTw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/eslint/node_modules/import-fresh": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.0.0.tgz", + "integrity": "sha512-pOnA9tfM3Uwics+SaBLCNyZZZbK+4PTu0OPZtLlMIrv17EdBoC15S9Kn8ckJ9TZTyKb3ywNE5y1yeDxxGA7nTQ==", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/eslint/node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/eslint/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "node_modules/eslint/node_modules/inquirer": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.3.1.tgz", + "integrity": "sha512-MmL624rfkFt4TG9y/Jvmt8vdmOo836U7Y0Hxr2aFk3RelZEGX4Igk0KabWrcaaZaTv9uzglOqWh1Vly+FAWAXA==", + "dependencies": { + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.11", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eslint/node_modules/inquirer/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/inquirer/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=" + }, + "node_modules/eslint/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" + }, + "node_modules/eslint/node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/eslint/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/eslint/node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=" + }, + "node_modules/eslint/node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint/node_modules/mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + }, + "node_modules/eslint/node_modules/mkdirp": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", + "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/eslint/node_modules/mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=" + }, + "node_modules/eslint/node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=" + }, + "node_modules/eslint/node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + }, + "node_modules/eslint/node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/eslint/node_modules/onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dependencies": { + "mimic-fn": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.4", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "wordwrap": "~1.0.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint/node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=" + }, + "node_modules/eslint/node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint/node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/eslint/node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/regexpp": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", + "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "engines": { + "node": ">=6.5.0" + } + }, + "node_modules/eslint/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dependencies": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/eslint/node_modules/run-async": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", + "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", + "dependencies": { + "is-promise": "^2.1.0" + }, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/eslint/node_modules/rxjs": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.4.0.tgz", + "integrity": "sha512-Z9Yfa11F6B9Sg/BK9MnqnQ+aQYicPLtilXBp2yUtDt2JRCE0h26d33EnfO3ZxoNxG0T92OUucP3Ct7cpfkdFfw==", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/eslint/node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/eslint/node_modules/semver": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/eslint/node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dependencies": { + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" + }, + "node_modules/eslint/node_modules/slice-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", + "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", + "dependencies": { + "ansi-styles": "^3.2.0", + "astral-regex": "^1.0.0", + "is-fullwidth-code-point": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/eslint/node_modules/table": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/table/-/table-5.2.3.tgz", + "integrity": "sha512-N2RsDAMvDLvYwFcwbPyF3VmVSSkuF+G1e+8inhBLtHpvwXGw4QRPEZhihQNeEN0i1up6/f6ObCJXNdlRG3YVyQ==", + "dependencies": { + "ajv": "^6.9.1", + "lodash": "^4.17.11", + "slice-ansi": "^2.1.0", + "string-width": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/eslint/node_modules/table/node_modules/ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/table/node_modules/string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/table/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint/node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=" + }, + "node_modules/eslint/node_modules/through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + }, + "node_modules/eslint/node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dependencies": { + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/eslint/node_modules/tslib": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", + "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==" + }, + "node_modules/eslint/node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint/node_modules/uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/eslint/node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/eslint/node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" + }, + "node_modules/eslint/node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "node_modules/eslint/node_modules/write": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", + "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", + "dependencies": { + "mkdirp": "^0.5.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/expect.js": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/expect.js/-/expect.js-0.3.1.tgz", + "integrity": "sha1-sKWaDS7/VDdUTr8M6qYBWEHQm1s=" + }, + "node_modules/extendible": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/extendible/-/extendible-0.1.1.tgz", + "integrity": "sha1-4qN+2HEp+0+VM+io11BiMKU5yQU=" + }, + "node_modules/graphql-sync": { + "version": "0.6.2-sync", + "resolved": "https://registry.npmjs.org/graphql-sync/-/graphql-sync-0.6.2-sync.tgz", + "integrity": "sha1-MtjS9LfAVbNvfxNKbnANe7hSA2A=", + "dependencies": { + "graphql": "^0.6.0" + } + }, + "node_modules/graphql-sync/node_modules/graphql": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/graphql/-/graphql-0.6.2.tgz", + "integrity": "sha1-Gc3LF+WGLWQ5agaE+S975k6Q568=", + "dependencies": { + "iterall": "1.0.2" + } + }, + "node_modules/graphql-sync/node_modules/iterall": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/iterall/-/iterall-1.0.2.tgz", + "integrity": "sha1-QaLpbOntpeYcdn7l3DEjc7sEbpE=" + }, + "node_modules/highlight.js": { + "version": "10.7.3", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz", + "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==", + "engines": { + "node": "*" + } + }, + "node_modules/http-errors": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.0.tgz", + "integrity": "sha512-4I8r0C5JDhT5VkvI47QktDW75rNlGVsUf/8hzjCC/wkWI/jdTRmBb9aI7erSG82r1bjKY3F6k28WnsVxB1C73A==", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/http-errors/node_modules/depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/http-errors/node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/http-errors/node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" + }, + "node_modules/http-errors/node_modules/toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/i": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/i/-/i-0.3.6.tgz", + "integrity": "sha1-2WyScyB28HJxG2sQ/X1PZa2O4j0=", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/iconv-lite/node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/joi": { + "version": "14.3.1", + "resolved": "https://registry.npmjs.org/joi/-/joi-14.3.1.tgz", + "integrity": "sha512-LQDdM+pkOrpAn4Lp+neNIFV3axv1Vna3j38bisbQhETPMANYRbFJFUyOZcOClYvM/hppMhGWuKSFEK9vjrB+bQ==", + "dependencies": { + "hoek": "6.x.x", + "isemail": "3.x.x", + "topo": "3.x.x" + } + }, + "node_modules/joi-to-json-schema": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/joi-to-json-schema/-/joi-to-json-schema-4.0.1.tgz", + "integrity": "sha512-MYJ+gqucm9ZhI6x8FHNYTCY4M6ROlbtFeibjVk+SnPXxbirFc+TdcelXKcjbKfdIvzVkT6kVxQuRK22tQLa6lQ==" + }, + "node_modules/joi/node_modules/hoek": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-6.1.3.tgz", + "integrity": "sha512-YXXAAhmF9zpQbC7LEcREFtXfGq5K1fmd+4PHkBq8NUqmzW3G+Dq10bI/i0KucLRwss3YYFQ0fSfoxBZYiGUqtQ==" + }, + "node_modules/joi/node_modules/isemail": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.2.0.tgz", + "integrity": "sha512-zKqkK+O+dGqevc93KNsbZ/TqTUFd46MwWjYOoMrjIMZ51eU7DtQG3Wmd9SQQT7i7RVnuTPEiYEWHU3MSbxC1Tg==", + "dependencies": { + "punycode": "2.x.x" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/joi/node_modules/punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "engines": { + "node": ">=6" + } + }, + "node_modules/joi/node_modules/topo": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/topo/-/topo-3.0.3.tgz", + "integrity": "sha512-IgpPtvD4kjrJ7CRA3ov2FhWQADwv+Tdqbsf1ZnPUSAtCJ9e1Z44MmoSGDXGk4IppoZA7jd/QRkNddlLJWlUZsQ==", + "dependencies": { + "hoek": "6.x.x" + } + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/js-yaml/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/js-yaml/node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/js-yaml/node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/mime-types": { + "version": "2.1.31", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.31.tgz", + "integrity": "sha512-XGZnNzm3QvgKxa8dpzyhFTHmpP3l5YNusmne07VUOXxou9CqUqYa/HBy124RqtVh/O2pECas/MOcsDgpilPOPg==", + "dependencies": { + "mime-db": "1.48.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types/node_modules/mime-db": { + "version": "1.48.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.48.0.tgz", + "integrity": "sha512-FM3QwxV+TnZYQ2aRqhlKBMHxk10lTbMt3bBkMAp54ddrNeVSfcQYOOKuGuy3Ddrm38I04If834fOUSq1yzslJQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimatch/node_modules/balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "node_modules/minimatch/node_modules/brace-expansion": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/minimatch/node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/netmask": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.0.2.tgz", + "integrity": "sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg==", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/qs": { + "version": "6.10.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.1.tgz", + "integrity": "sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/qs/node_modules/call-bind": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/qs/node_modules/function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "node_modules/qs/node_modules/get-intrinsic": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", + "integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/qs/node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/qs/node_modules/has-symbols": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz", + "integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/qs/node_modules/object-inspect": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", + "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/qs/node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/sinon": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-1.17.7.tgz", + "integrity": "sha1-RUKk9JugxFwF6y6d2dID4rjv4L8=", + "dependencies": { + "formatio": "1.1.1", + "lolex": "1.3.2", + "samsam": "1.1.2", + "util": ">=0.10.3 <1" + }, + "engines": { + "node": ">=0.1.103" + } + }, + "node_modules/sinon/node_modules/formatio": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/formatio/-/formatio-1.1.1.tgz", + "integrity": "sha1-XtPM1jZVEJc4NGXZlhmRAOhhYek=", + "dependencies": { + "samsam": "~1.1" + } + }, + "node_modules/sinon/node_modules/inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" + }, + "node_modules/sinon/node_modules/lolex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz", + "integrity": "sha1-fD2mL/yzDw9agKJWbKJORdigHzE=" + }, + "node_modules/sinon/node_modules/samsam": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.1.2.tgz", + "integrity": "sha1-vsEf3IOp/aBjQBIQ5AF2wwJNFWc=" + }, + "node_modules/sinon/node_modules/util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dependencies": { + "inherits": "2.0.1" + } + }, + "node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/timezone": { + "version": "1.0.23", + "resolved": "https://registry.npmjs.org/timezone/-/timezone-1.0.23.tgz", + "integrity": "sha512-yhQgk6qmSLB+TF8HGmApZAVI5bfzR1CoKUGr+WMZWmx75ED1uDewAZA8QMGCQ70TEv4GmM8pDB9jrHuxdaQ1PA==" + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/type-is/node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/underscore": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.1.tgz", + "integrity": "sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g==" + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/xmldom": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.6.0.tgz", + "integrity": "sha512-iAcin401y58LckRZ0TkI4k0VSM1Qg0KGSc3i8rU+xrxe19A/BN1zHyVSJY7uoutVlaTSzYyk/v5AmkewAP7jtg==", + "engines": { + "node": ">=10.0.0" + } + } + } +} diff --git a/js/node/node_modules/accepts/HISTORY.md b/js/node/node_modules/accepts/HISTORY.md index f16c17a569a2..0bf041781dc0 100644 --- a/js/node/node_modules/accepts/HISTORY.md +++ b/js/node/node_modules/accepts/HISTORY.md @@ -1,3 +1,15 @@ +1.3.7 / 2019-04-29 +================== + + * deps: negotiator@0.6.2 + - Fix sorting charset, encoding, and language with extra parameters + +1.3.6 / 2019-04-28 +================== + + * deps: mime-types@~2.1.24 + - deps: mime-db@~1.40.0 + 1.3.5 / 2018-02-28 ================== diff --git a/js/node/node_modules/accepts/README.md b/js/node/node_modules/accepts/README.md index 6a2749a1a817..66a2f5400f80 100644 --- a/js/node/node_modules/accepts/README.md +++ b/js/node/node_modules/accepts/README.md @@ -1,7 +1,7 @@ # accepts -[![NPM Version][npm-image]][npm-url] -[![NPM Downloads][downloads-image]][downloads-url] +[![NPM Version][npm-version-image]][npm-url] +[![NPM Downloads][npm-downloads-image]][npm-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] @@ -131,13 +131,12 @@ curl -I -H'Accept: text/html' http://localhost:3000/ [MIT](LICENSE) -[npm-image]: https://img.shields.io/npm/v/accepts.svg +[coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/accepts/master +[coveralls-url]: https://coveralls.io/r/jshttp/accepts?branch=master +[node-version-image]: https://badgen.net/npm/node/accepts +[node-version-url]: https://nodejs.org/en/download +[npm-downloads-image]: https://badgen.net/npm/dm/accepts [npm-url]: https://npmjs.org/package/accepts -[node-version-image]: https://img.shields.io/node/v/accepts.svg -[node-version-url]: https://nodejs.org/en/download/ -[travis-image]: https://img.shields.io/travis/jshttp/accepts/master.svg +[npm-version-image]: https://badgen.net/npm/v/accepts +[travis-image]: https://badgen.net/travis/jshttp/accepts/master [travis-url]: https://travis-ci.org/jshttp/accepts -[coveralls-image]: https://img.shields.io/coveralls/jshttp/accepts/master.svg -[coveralls-url]: https://coveralls.io/r/jshttp/accepts -[downloads-image]: https://img.shields.io/npm/dm/accepts.svg -[downloads-url]: https://npmjs.org/package/accepts diff --git a/js/node/node_modules/accepts/node_modules/negotiator/HISTORY.md b/js/node/node_modules/accepts/node_modules/negotiator/HISTORY.md index 10b69179de15..6d06c76aaa96 100644 --- a/js/node/node_modules/accepts/node_modules/negotiator/HISTORY.md +++ b/js/node/node_modules/accepts/node_modules/negotiator/HISTORY.md @@ -1,3 +1,8 @@ +0.6.2 / 2019-04-29 +================== + + * Fix sorting charset, encoding, and language with extra parameters + 0.6.1 / 2016-05-02 ================== diff --git a/js/node/node_modules/accepts/node_modules/negotiator/lib/charset.js b/js/node/node_modules/accepts/node_modules/negotiator/lib/charset.js index ac4217b4ccc9..cdd014803474 100644 --- a/js/node/node_modules/accepts/node_modules/negotiator/lib/charset.js +++ b/js/node/node_modules/accepts/node_modules/negotiator/lib/charset.js @@ -58,8 +58,8 @@ function parseCharset(str, i) { var q = 1; if (match[2]) { var params = match[2].split(';') - for (var i = 0; i < params.length; i ++) { - var p = params[i].trim().split('='); + for (var j = 0; j < params.length; j++) { + var p = params[j].trim().split('='); if (p[0] === 'q') { q = parseFloat(p[1]); break; diff --git a/js/node/node_modules/accepts/node_modules/negotiator/lib/encoding.js b/js/node/node_modules/accepts/node_modules/negotiator/lib/encoding.js index 70ac3de67f74..8432cd77b8a9 100644 --- a/js/node/node_modules/accepts/node_modules/negotiator/lib/encoding.js +++ b/js/node/node_modules/accepts/node_modules/negotiator/lib/encoding.js @@ -74,8 +74,8 @@ function parseEncoding(str, i) { var q = 1; if (match[2]) { var params = match[2].split(';'); - for (var i = 0; i < params.length; i ++) { - var p = params[i].trim().split('='); + for (var j = 0; j < params.length; j++) { + var p = params[j].trim().split('='); if (p[0] === 'q') { q = parseFloat(p[1]); break; diff --git a/js/node/node_modules/accepts/node_modules/negotiator/lib/language.js b/js/node/node_modules/accepts/node_modules/negotiator/lib/language.js index 1bd2d0e1d6d1..62f737f00602 100644 --- a/js/node/node_modules/accepts/node_modules/negotiator/lib/language.js +++ b/js/node/node_modules/accepts/node_modules/negotiator/lib/language.js @@ -32,10 +32,10 @@ function parseAcceptLanguage(accept) { var accepts = accept.split(','); for (var i = 0, j = 0; i < accepts.length; i++) { - var langauge = parseLanguage(accepts[i].trim(), i); + var language = parseLanguage(accepts[i].trim(), i); - if (langauge) { - accepts[j++] = langauge; + if (language) { + accepts[j++] = language; } } @@ -55,16 +55,16 @@ function parseLanguage(str, i) { if (!match) return null; var prefix = match[1], - suffix = match[2], - full = prefix; + suffix = match[2], + full = prefix; if (suffix) full += "-" + suffix; var q = 1; if (match[3]) { var params = match[3].split(';') - for (var i = 0; i < params.length; i ++) { - var p = params[i].split('='); + for (var j = 0; j < params.length; j++) { + var p = params[j].split('='); if (p[0] === 'q') q = parseFloat(p[1]); } } diff --git a/js/node/node_modules/accepts/node_modules/negotiator/package.json b/js/node/node_modules/accepts/node_modules/negotiator/package.json index 6b4047185c0a..0c7ff3c2e646 100644 --- a/js/node/node_modules/accepts/node_modules/negotiator/package.json +++ b/js/node/node_modules/accepts/node_modules/negotiator/package.json @@ -1,57 +1,27 @@ { - "_args": [ - [ - "negotiator@0.6.1", - "/mnt/c/Users/me/Documents/Projects/arangodb/arangodb/js/node" - ] - ], - "_from": "negotiator@0.6.1", - "_id": "negotiator@0.6.1", - "_inBundle": false, - "_integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", - "_location": "/accepts/negotiator", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "negotiator@0.6.1", - "name": "negotiator", - "escapedName": "negotiator", - "rawSpec": "0.6.1", - "saveSpec": null, - "fetchSpec": "0.6.1" - }, - "_requiredBy": [ - "/accepts" - ], - "_resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", - "_spec": "0.6.1", - "_where": "/mnt/c/Users/me/Documents/Projects/arangodb/arangodb/js/node", - "bugs": { - "url": "https://github.com/jshttp/negotiator/issues" - }, + "name": "negotiator", + "description": "HTTP content negotiation", + "version": "0.6.2", "contributors": [ - { - "name": "Douglas Christopher Wilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "Federico Romero", - "email": "federico.romero@outboxlabs.com" - }, - { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - } + "Douglas Christopher Wilson ", + "Federico Romero ", + "Isaac Z. Schlueter (http://blog.izs.me/)" ], - "description": "HTTP content negotiation", + "license": "MIT", + "keywords": [ + "http", + "content negotiation", + "accept", + "accept-language", + "accept-encoding", + "accept-charset" + ], + "repository": "jshttp/negotiator", "devDependencies": { - "istanbul": "0.4.3", - "mocha": "~1.21.5" - }, - "engines": { - "node": ">= 0.6" + "eslint": "5.16.0", + "eslint-plugin-markdown": "1.0.0", + "mocha": "6.1.4", + "nyc": "14.0.0" }, "files": [ "lib/", @@ -60,25 +30,13 @@ "index.js", "README.md" ], - "homepage": "https://github.com/jshttp/negotiator#readme", - "keywords": [ - "http", - "content negotiation", - "accept", - "accept-language", - "accept-encoding", - "accept-charset" - ], - "license": "MIT", - "name": "negotiator", - "repository": { - "type": "git", - "url": "git+https://github.com/jshttp/negotiator.git" + "engines": { + "node": ">= 0.6" }, "scripts": { + "lint": "eslint --plugin markdown --ext js,md .", "test": "mocha --reporter spec --check-leaks --bail test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" - }, - "version": "0.6.1" + "test-cov": "nyc --reporter=html --reporter=text npm test", + "test-travis": "nyc --reporter=text npm test" + } } diff --git a/js/node/node_modules/accepts/package.json b/js/node/node_modules/accepts/package.json index 983033a3f9f9..bc750cf80f9f 100644 --- a/js/node/node_modules/accepts/package.json +++ b/js/node/node_modules/accepts/package.json @@ -1,86 +1,47 @@ { - "_from": "accepts@latest", - "_id": "accepts@1.3.5", - "_inBundle": false, - "_integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", - "_location": "/accepts", - "_phantomChildren": {}, - "_requested": { - "type": "tag", - "registry": true, - "raw": "accepts@latest", - "name": "accepts", - "escapedName": "accepts", - "rawSpec": "latest", - "saveSpec": null, - "fetchSpec": "latest" - }, - "_requiredBy": [ - "#USER", - "/" - ], - "_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", - "_shasum": "eb777df6011723a3b14e8a72c0805c8e86746bd2", - "_spec": "accepts@latest", - "_where": "/mnt/c/Users/me/Documents/Projects/arangodb/arangodb/js/node", - "bugs": { - "url": "https://github.com/jshttp/accepts/issues" - }, - "bundleDependencies": false, + "name": "accepts", + "description": "Higher-level content negotiation", + "version": "1.3.7", "contributors": [ - { - "name": "Douglas Christopher Wilson", - "email": "doug@somethingdoug.com" - }, - { - "name": "Jonathan Ong", - "email": "me@jongleberry.com", - "url": "http://jongleberry.com" - } + "Douglas Christopher Wilson ", + "Jonathan Ong (http://jongleberry.com)" ], + "license": "MIT", + "repository": "jshttp/accepts", "dependencies": { - "mime-types": "~2.1.18", - "negotiator": "0.6.1" + "mime-types": "~2.1.24", + "negotiator": "0.6.2" }, - "deprecated": false, - "description": "Higher-level content negotiation", "devDependencies": { - "eslint": "4.18.1", - "eslint-config-standard": "11.0.0", - "eslint-plugin-import": "2.9.0", - "eslint-plugin-markdown": "1.0.0-beta.6", - "eslint-plugin-node": "6.0.1", - "eslint-plugin-promise": "3.6.0", - "eslint-plugin-standard": "3.0.1", - "istanbul": "0.4.5", - "mocha": "~1.21.5" - }, - "engines": { - "node": ">= 0.6" + "deep-equal": "1.0.1", + "eslint": "5.16.0", + "eslint-config-standard": "12.0.0", + "eslint-plugin-import": "2.17.2", + "eslint-plugin-markdown": "1.0.0", + "eslint-plugin-node": "8.0.1", + "eslint-plugin-promise": "4.1.1", + "eslint-plugin-standard": "4.0.0", + "mocha": "6.1.4", + "nyc": "14.0.0" }, "files": [ "LICENSE", "HISTORY.md", "index.js" ], - "homepage": "https://github.com/jshttp/accepts#readme", - "keywords": [ - "content", - "negotiation", - "accept", - "accepts" - ], - "license": "MIT", - "name": "accepts", - "repository": { - "type": "git", - "url": "git+https://github.com/jshttp/accepts.git" + "engines": { + "node": ">= 0.6" }, "scripts": { "lint": "eslint --plugin markdown --ext js,md .", "test": "mocha --reporter spec --check-leaks --bail test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" + "test-cov": "nyc --reporter=html --reporter=text npm test", + "test-travis": "nyc --reporter=text npm test" }, - "version": "1.3.5" + "keywords": [ + "content", + "negotiation", + "accept", + "accepts" + ] } diff --git a/js/node/node_modules/ansi-html/bin/ansi-html b/js/node/node_modules/ansi-html/bin/ansi-html old mode 100644 new mode 100755 diff --git a/js/node/node_modules/ansi-html/package.json b/js/node/node_modules/ansi-html/package.json index a6b0494e259d..138a201336b2 100644 --- a/js/node/node_modules/ansi-html/package.json +++ b/js/node/node_modules/ansi-html/package.json @@ -1,68 +1,43 @@ { - "_args": [ - [ - "ansi-html@0.0.7", - "/mnt/c/Users/me/Documents/Projects/arangodb/arangodb/js/node" - ] - ], - "_from": "ansi-html@0.0.7", - "_id": "ansi-html@0.0.7", - "_inBundle": false, - "_integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=", - "_location": "/ansi-html", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "ansi-html@0.0.7", - "name": "ansi-html", - "escapedName": "ansi-html", - "rawSpec": "0.0.7", - "saveSpec": null, - "fetchSpec": "0.0.7" - }, - "_requiredBy": [ - "/" - ], - "_resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", - "_spec": "0.0.7", - "_where": "/mnt/c/Users/me/Documents/Projects/arangodb/arangodb/js/node", - "author": { - "name": "Tjatse" + "name": "ansi-html", + "version": "0.0.7", + "description": "An elegant lib that converts the chalked (ANSI) text to HTML.", + "main": "index.js", + "scripts": { + "test": "./node_modules/.bin/mocha -R spec -t 5000" }, "bin": { "ansi-html": "./bin/ansi-html" }, - "bugs": { - "url": "https://github.com/Tjatse/ansi-html/issues" - }, - "dependencies": {}, - "description": "An elegant lib that converts the chalked (ANSI) text to HTML.", - "devDependencies": { - "chai": "^1.9.1", - "chalk": "^1.1.3", - "lodash": "^2.4.2", - "mocha": "^1.21.4" + "repository": { + "type": "git", + "url": "git://github.com/Tjatse/ansi-html.git" }, - "engines": [ - "node >= 0.8.0" - ], - "homepage": "https://github.com/Tjatse/ansi-html", "keywords": [ "ansi", "ansi html", "chalk html" ], + "author": { + "name": "Tjatse" + }, "license": "Apache-2.0", - "main": "index.js", - "name": "ansi-html", - "repository": { - "type": "git", - "url": "git://github.com/Tjatse/ansi-html.git" + "bugs": { + "url": "https://github.com/Tjatse/ansi-html/issues" }, - "scripts": { - "test": "mocha -R spec -t 5000" + "engines": [ + "node >= 0.8.0" + ], + "dependencies": { }, + "devDependencies": { + "mocha": "^1.21.4", + "chai": "^1.9.1", + "chalk": "^1.1.3", + "lodash": "^2.4.2" + }, + "readmeFilename": "README.md", + "homepage": "https://github.com/Tjatse/ansi-html", "standard": { "ignore": [], "globals": [ @@ -71,6 +46,5 @@ "before", "after" ] - }, - "version": "0.0.7" + } } diff --git a/js/node/node_modules/ansi_up/.notags b/js/node/node_modules/ansi_up/.notags new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/js/node/node_modules/ansi_up/LICENSE b/js/node/node_modules/ansi_up/LICENSE new file mode 100644 index 000000000000..6bf63c2437bc --- /dev/null +++ b/js/node/node_modules/ansi_up/LICENSE @@ -0,0 +1,22 @@ +(The MIT License) + +Copyright (c) 2011 Dru Nelson + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/js/node/node_modules/ansi_up/Readme.md b/js/node/node_modules/ansi_up/Readme.md index 28ec25581d50..ada3c970efe0 100644 --- a/js/node/node_modules/ansi_up/Readme.md +++ b/js/node/node_modules/ansi_up/Readme.md @@ -73,8 +73,8 @@ More examples are in the 'examples' directory in the repo. $ npm install ansi_up ## Versions - -* Version 4.0 - Re-architect code to support [https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda](terminal URL codes). +* Version 5.0 - Security fix for OSC URLs +* Version 4.0 - Re-architect code to support [terminal URL codes](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda). * Version 3.0 - now treats ANSI bold sequences as CSS font-weight:bold * Version 2.0 - moved to a stateful, streaming version of the API * Version 1.3 - was the last of the older, deprecated API. @@ -119,14 +119,6 @@ See the examples directory for a complete CSS theme for these classes. ## Properties -#### escape_for_html -(default: true) - -This does the minimum escaping of text to make it compliant with HTML. -In particular, the '&','<', and '>' characters are escaped. It is -** highly ** recommended that you do not set this to false. It will open -the door security vulnerabilities. - #### use_classes (default: false) @@ -140,12 +132,9 @@ This mapping is a whitelist of URI schemes that will be allowed to render HTML a ## Buffering -In general, the ansi_to_html *should* emit HTML when invoked with a non-empty string. -The only exceptions are an incomplete ESC sequence or an incomplete escaped URL. -For those cases, the library will buffer the escape or the sequence for the escaped URL. - -The library is also stateful. If a color is set in a prior invocation, then it will -continue to emit that color in further invocations until the color/SGR attribute is changed. +In general, the ansi_to_html *should* emit HTML output when invoked with a non-empty string. +The only exceptions are an incomplete ESC sequence or an incomplete OSC URL sequence. +For those cases, the library will buffer (not emit output), until it receives input that completes those sequences. ### Example of a Use Case @@ -199,28 +188,3 @@ Thanks goes to the following contributors for their patches: - Maximilian Antoni () - Jim Bauwens () - Jacek Jędrzejewski () - -## License - -(The MIT License) - -Copyright (c) 2011 Dru Nelson - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/js/node/node_modules/ansi_up/VERSION b/js/node/node_modules/ansi_up/VERSION new file mode 100644 index 000000000000..ceab6e11ece0 --- /dev/null +++ b/js/node/node_modules/ansi_up/VERSION @@ -0,0 +1 @@ +0.1 \ No newline at end of file diff --git a/js/node/node_modules/ansi_up/ansi_up.js b/js/node/node_modules/ansi_up/ansi_up.js index b207399e2488..fe186ee1a97a 100644 --- a/js/node/node_modules/ansi_up/ansi_up.js +++ b/js/node/node_modules/ansi_up/ansi_up.js @@ -34,10 +34,9 @@ var PacketKind; })(PacketKind || (PacketKind = {})); var AnsiUp = (function () { function AnsiUp() { - this.VERSION = "4.0.3"; + this.VERSION = "5.0.1"; this.setup_palettes(); this._use_classes = false; - this._escape_for_html = true; this.bold = false; this.fg = this.bg = null; this._buffer = ''; @@ -50,17 +49,7 @@ var AnsiUp = (function () { set: function (arg) { this._use_classes = arg; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AnsiUp.prototype, "escape_for_html", { - get: function () { - return this._escape_for_html; - }, - set: function (arg) { - this._escape_for_html = arg; - }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(AnsiUp.prototype, "url_whitelist", { @@ -70,7 +59,7 @@ var AnsiUp = (function () { set: function (arg) { this._url_whitelist = arg; }, - enumerable: true, + enumerable: false, configurable: true }); AnsiUp.prototype.setup_palettes = function () { @@ -120,13 +109,17 @@ var AnsiUp = (function () { } }; AnsiUp.prototype.escape_txt_for_html = function (txt) { - return txt.replace(/[&<>]/gm, function (str) { + return txt.replace(/[&<>"']/gm, function (str) { if (str === "&") return "&"; if (str === "<") return "<"; if (str === ">") return ">"; + if (str === "\"") + return """; + if (str === "'") + return "'"; }); }; AnsiUp.prototype.append_buffer = function (txt) { @@ -234,7 +227,7 @@ var AnsiUp = (function () { } } if (!this._osc_regex) { - this._osc_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n \u001B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n ([!-~]+) # TEXT capture\n \u001B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x21-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "])); + this._osc_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n \u001B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \u001B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "])); } var match = this._buffer.match(this._osc_regex); if (match === null) { @@ -341,8 +334,7 @@ var AnsiUp = (function () { var txt = fragment.text; if (txt.length === 0) return txt; - if (this._escape_for_html) - txt = this.escape_txt_for_html(txt); + txt = this.escape_txt_for_html(txt); if (!fragment.bold && fragment.fg === null && fragment.bg === null) return txt; var styles = []; diff --git a/js/node/node_modules/ansi_up/ansi_up.ts b/js/node/node_modules/ansi_up/ansi_up.ts index 77740aaf13f2..324b0661ba43 100644 --- a/js/node/node_modules/ansi_up/ansi_up.ts +++ b/js/node/node_modules/ansi_up/ansi_up.ts @@ -50,7 +50,7 @@ interface TextPacket { class AnsiUp { - VERSION = "4.0.3"; + VERSION = "5.0.1"; // // *** SEE README ON GITHUB FOR PUBLIC API *** @@ -66,7 +66,6 @@ class AnsiUp private bold:boolean; private _use_classes:boolean; - private _escape_for_html; private _csi_regex:RegExp; @@ -82,7 +81,6 @@ class AnsiUp // All construction occurs here this.setup_palettes(); this._use_classes = false; - this._escape_for_html = true; this.bold = false; this.fg = this.bg = null; @@ -102,16 +100,6 @@ class AnsiUp return this._use_classes; } - set escape_for_html(arg:boolean) - { - this._escape_for_html = arg; - } - - get escape_for_html():boolean - { - return this._escape_for_html; - } - set url_whitelist(arg:{}) { this._url_whitelist = arg; @@ -183,10 +171,12 @@ class AnsiUp private escape_txt_for_html(txt:string):string { - return txt.replace(/[&<>]/gm, (str) => { - if (str === "&") return "&"; - if (str === "<") return "<"; - if (str === ">") return ">"; + return txt.replace(/[&<>"']/gm, (str) => { + if (str === "&") return "&"; + if (str === "<") return "<"; + if (str === ">") return ">"; + if (str === "\"") return """; + if (str === "'") return "'"; }); } @@ -477,7 +467,7 @@ class AnsiUp | # alternate (?:\x07) # BEL (what xterm did) ) - ([\x21-\x7e]+) # TEXT capture + ([\x20-\x7e]+) # TEXT capture \x1b\]8;; # OSC Hyperlink End (?: # ST (?:\x1b\\) # ESC \ @@ -631,8 +621,7 @@ class AnsiUp if (txt.length === 0) return txt; - if (this._escape_for_html) - txt = this.escape_txt_for_html(txt); + txt = this.escape_txt_for_html(txt); // If colors not set, default style is used if (!fragment.bold && fragment.fg === null && fragment.bg === null) diff --git a/js/node/node_modules/ansi_up/dist/ansi_up.d.ts b/js/node/node_modules/ansi_up/dist/ansi_up.d.ts index 20e08cb46600..764276472600 100644 --- a/js/node/node_modules/ansi_up/dist/ansi_up.d.ts +++ b/js/node/node_modules/ansi_up/dist/ansi_up.d.ts @@ -30,16 +30,16 @@ export default class AnsiUp { private bg; private bold; private _use_classes; - private _escape_for_html; private _csi_regex; private _osc_st; private _osc_regex; private _url_whitelist; private _buffer; constructor(); - use_classes: boolean; - escape_for_html: boolean; - url_whitelist: {}; + set use_classes(arg: boolean); + get use_classes(): boolean; + set url_whitelist(arg: {}); + get url_whitelist(): {}; private setup_palettes; private escape_txt_for_html; private append_buffer; diff --git a/js/node/node_modules/ansi_up/dist/ansi_up.js.include b/js/node/node_modules/ansi_up/dist/ansi_up.js.include index b42b385f9973..1d26c10f6c63 100644 --- a/js/node/node_modules/ansi_up/dist/ansi_up.js.include +++ b/js/node/node_modules/ansi_up/dist/ansi_up.js.include @@ -15,10 +15,9 @@ var PacketKind; })(PacketKind || (PacketKind = {})); var AnsiUp = (function () { function AnsiUp() { - this.VERSION = "4.0.3"; + this.VERSION = "5.0.1"; this.setup_palettes(); this._use_classes = false; - this._escape_for_html = true; this.bold = false; this.fg = this.bg = null; this._buffer = ''; @@ -31,17 +30,7 @@ var AnsiUp = (function () { set: function (arg) { this._use_classes = arg; }, - enumerable: true, - configurable: true - }); - Object.defineProperty(AnsiUp.prototype, "escape_for_html", { - get: function () { - return this._escape_for_html; - }, - set: function (arg) { - this._escape_for_html = arg; - }, - enumerable: true, + enumerable: false, configurable: true }); Object.defineProperty(AnsiUp.prototype, "url_whitelist", { @@ -51,7 +40,7 @@ var AnsiUp = (function () { set: function (arg) { this._url_whitelist = arg; }, - enumerable: true, + enumerable: false, configurable: true }); AnsiUp.prototype.setup_palettes = function () { @@ -101,13 +90,17 @@ var AnsiUp = (function () { } }; AnsiUp.prototype.escape_txt_for_html = function (txt) { - return txt.replace(/[&<>]/gm, function (str) { + return txt.replace(/[&<>"']/gm, function (str) { if (str === "&") return "&"; if (str === "<") return "<"; if (str === ">") return ">"; + if (str === "\"") + return """; + if (str === "'") + return "'"; }); }; AnsiUp.prototype.append_buffer = function (txt) { @@ -215,7 +208,7 @@ var AnsiUp = (function () { } } if (!this._osc_regex) { - this._osc_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n \u001B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n ([!-~]+) # TEXT capture\n \u001B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x21-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "])); + this._osc_regex = rgx(__makeTemplateObject(["\n ^ # beginning of line\n #\n \u001B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \u001B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\u001B\\) # ESC | # alternate\n (?:\u0007) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "])); } var match = this._buffer.match(this._osc_regex); if (match === null) { @@ -322,8 +315,7 @@ var AnsiUp = (function () { var txt = fragment.text; if (txt.length === 0) return txt; - if (this._escape_for_html) - txt = this.escape_txt_for_html(txt); + txt = this.escape_txt_for_html(txt); if (!fragment.bold && fragment.fg === null && fragment.bg === null) return txt; var styles = []; diff --git a/js/node/node_modules/ansi_up/dist/ansi_up.js.map b/js/node/node_modules/ansi_up/dist/ansi_up.js.map index 6c66814119a9..7e802b88dd72 100644 --- a/js/node/node_modules/ansi_up/dist/ansi_up.js.map +++ b/js/node/node_modules/ansi_up/dist/ansi_up.js.map @@ -1 +1 @@ -{"version":3,"file":"ansi_up.js","sourceRoot":"","sources":["../ansi_up.ts"],"names":[],"mappings":"AAMA,YAAY,CAAC;;;;;AAwBb,IAAK,UAQJ;AARD,WAAK,UAAU;IACX,yCAAG,CAAA;IACH,2CAAI,CAAA;IACJ,uDAAU,CAAA;IACV,yCAAG,CAAA;IACH,iDAAO,CAAA;IACP,yCAAG,CAAA;IACH,+CAAM,CAAA;AACV,CAAC,EARI,UAAU,KAAV,UAAU,QAQd;AAYD;IA6BI;QA3BA,YAAO,GAAG,OAAO,CAAC;QA8Bd,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAE7B,IAAI,CAAC,IAA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AC,GAAG,CAAC,CAAC,CAAC,CAAC;IAGtC,IAAI,KAAK,GAAG,gCAAgC,CAAC;IAC7C,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAID,SAAS,IAAI,CAAC,OAAO;IAAE,eAAQ;SAAR,UAAQ,EAAR,qBAAQ,EAAR,IAAQ;QAAR,8BAAQ;;IAE3B,IAAI,SAAS,GAAU,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAGtC,IAAI,KAAK,GAAG,gCAAgC,CAAC;IAC7C,IAAI,IAAI,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/js/node/node_modules/ansi_up/examples/README.txt b/js/node/node_modules/ansi_up/examples/README.txt deleted file mode 100644 index ab041f435435..000000000000 --- a/js/node/node_modules/ansi_up/examples/README.txt +++ /dev/null @@ -1,9 +0,0 @@ - -Got these scripts from: - -# curl -LO 'https://misc.flogisoft.com/_export/code/bash/tip_colors_and_formatting?codeblock=55' -# curl -LO 'https://misc.flogisoft.com/_export/code/bash/tip_colors_and_formatting?codeblock=56' - -./colors.sh | less -FRX -./colors-256.sh | less -FRX - diff --git a/js/node/node_modules/ansi_up/examples/colors-256.sh b/js/node/node_modules/ansi_up/examples/colors-256.sh deleted file mode 100644 index 760dc7a6a6f7..000000000000 --- a/js/node/node_modules/ansi_up/examples/colors-256.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -# This program is free software. It comes without any warranty, to -# the extent permitted by applicable law. You can redistribute it -# and/or modify it under the terms of the Do What The Fuck You Want -# To Public License, Version 2, as published by Sam Hocevar. See -# http://sam.zoy.org/wtfpl/COPYING for more details. - -for fgbg in 38 48 ; do # Foreground / Background - for color in {0..255} ; do # Colors - # Display the color - printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color - # Display 6 colors per lines - if [ $((($color + 1) % 6)) == 4 ] ; then - echo # New line - fi - done - echo # New line -done - -exit 0 \ No newline at end of file diff --git a/js/node/node_modules/ansi_up/examples/colors.sh b/js/node/node_modules/ansi_up/examples/colors.sh deleted file mode 100644 index 70916b103ddf..000000000000 --- a/js/node/node_modules/ansi_up/examples/colors.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# This program is free software. It comes without any warranty, to -# the extent permitted by applicable law. You can redistribute it -# and/or modify it under the terms of the Do What The Fuck You Want -# To Public License, Version 2, as published by Sam Hocevar. See -# http://sam.zoy.org/wtfpl/COPYING for more details. - -#Background -for clbg in {40..47} {100..107} 49 ; do - #Foreground - for clfg in {30..37} {90..97} 39 ; do - #Formatting - for attr in 0 1 2 4 5 7 ; do - #Print the result - echo -en "\e[${attr};${clbg};${clfg}m ^[${attr};${clbg};${clfg}m \e[0m" - done - echo #Newline - done -done - -exit 0 \ No newline at end of file diff --git a/js/node/node_modules/ansi_up/examples/test-csi.js b/js/node/node_modules/ansi_up/examples/test-csi.js deleted file mode 100644 index 5e70da0d9b73..000000000000 --- a/js/node/node_modules/ansi_up/examples/test-csi.js +++ /dev/null @@ -1,70 +0,0 @@ - - - -// -// PRIVATE FUNCTIONS -// - -// ES5 template string transformer -function rgx(tmplObj, ...subst) { - // Use the 'raw' value so we don't have to double backslash in a template string - let regexText = tmplObj.raw[0]; - - // Remove white-space and comments - let wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm; - let txt2 = regexText.replace(wsrgx, ''); - console.log(txt2); - return new RegExp(txt2); -} - -// ES5 template string transformer -// Multi-Line On -function rgxM(tmplObj, ...subst) { - // Use the 'raw' value so we don't have to double backslash in a template string - let regexText = tmplObj.raw[0]; - - // Remove white-space and comments - let wsrgx = /^\s+|\s+\n|\s+#[\s\S]+?\n/gm; - let txt2 = regexText.replace(wsrgx, ''); - return new RegExp(txt2, 'm'); -} - -// MATCH A CSI -let csi_regex = rgx` - ^ # beginning of line - # - # First attempt - (?: # begin non-capture block - \x1b\[ - ([\x3c-\x3f]?) # a private-mode char (<=>?) - ([\d;]*) # any digits or semicolons - ([\x20-\x2f]? # an intermediate modifier - [\x40-\x7e]) # the command - ) - | # alternate - # Second attempt - (?: # begin non-capture block - \x1b\[ - [\x20-\x7e]* - ([\x00-\x1f:]) - ) -`; - -function show_match(txt, rgx) -{ - console.log(JSON.stringify(txt)); - let res = txt.match(rgx); - if (res == null) - return console.log("Still possible..."); - if (res[4]) - return console.log("BAD MATCH: ", JSON.stringify(res[0])); - console.log(res.slice(1,4)); -} -show_match("\x1b[\n", csi_regex); -show_match("\x1b[34\nm", csi_regex); -show_match("\x1b[34;44m", csi_regex); -show_match("\x1b[33:44m", csi_regex); -show_match("\x1b[>33;44m", csi_regex); -show_match("\x1b[33;44", csi_regex); -show_match("\x1b[", csi_regex); - diff --git a/js/node/node_modules/ansi_up/examples/test-osc.js b/js/node/node_modules/ansi_up/examples/test-osc.js deleted file mode 100644 index 6bb7978ad378..000000000000 --- a/js/node/node_modules/ansi_up/examples/test-osc.js +++ /dev/null @@ -1,156 +0,0 @@ - - - -// -// PRIVATE FUNCTIONS -// - -// ES5 template string transformer -function rgxG(tmplObj, ...subst) { - // Use the 'raw' value so we don't have to double backslash in a template string - let regexText = tmplObj.raw[0]; - - // Remove white-space and comments - let wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm; - let txt2 = regexText.replace(wsrgx, ''); - console.log(txt2); - //return new RegExp(txt2, 'y'); - return new RegExp(txt2, 'g'); -} - -// ES5 template string transformer -// Multi-Line On -function rgxM(tmplObj, ...subst) { - // Use the 'raw' value so we don't have to double backslash in a template string - let regexText = tmplObj.raw[0]; - - // Remove white-space and comments - let wsrgx = /^\s+|\s+\n|\s+#[\s\S]+?\n/gm; - let txt2 = regexText.replace(wsrgx, ''); - return new RegExp(txt2, 'm'); -} - - -osc_st = rgxG` -(?: # legal sequence - (\x1b\\) # ESC \ - | # alternate - (\x07) # BEL (what xterm did) -) - | # alternate (second attempt) -( # illegal sequence - [\x00-\x06] # anything illegal - | # alternate - [\x08-\x1a] # anything illegal - | # alternate - [\x1c-\x1f] # anything illegal -) -`; - -function show_match(txt, rgx) -{ - console.log(JSON.stringify(txt)); - //rgx.lastIndex = 0; - //let res = txt.match(rgx); - let res = rgx.exec(txt); - if (res == null) - { - rgx.lastIndex = 0; - return console.log("Still possible..."); - } - if (res[3]) - { - rgx.lastIndex = 0; - return console.log("BAD MATCH: ", JSON.stringify(res[0])); - } - console.log(res.slice(1,3)); - //console.log(res); - console.log(rgx.lastIndex); - rgx.lastIndex = 0; -} - -function show_match_repeat(txt, rgx) -{ - console.log(JSON.stringify(txt)); - //rgx.lastIndex = 0; - //let res = txt.match(rgx); - let res = rgx.exec(txt); - if (res == null) - return console.log("RPT Still possible..."); - - if (res[3]) - return console.log("RPT BAD MATCH: ", JSON.stringify(res[0])); - - console.log('RPT: ' + JSON.stringify(res.slice(1,3)) + " - " + rgx.lastIndex); - //console.log(res); -} -show_match("\x1b]\n\x07", osc_st); -show_match("\x1b]\x07", osc_st); -show_match("\x1b]8;;\x07", osc_st); -show_match("\x1b]8;;\x1b\\", osc_st); -show_match("\x1b]8;;", osc_st); -show_match("\x1b]8;;\b", osc_st); - -console.log("// Valid"); -osc_st.lastIndex = 0; -var str = "\x1b]8;;http://example.com/\x07TEST\x1b]8;;\x07"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -console.log("// Newline"); -osc_st.lastIndex = 0; -var str = "\x1b]8;;http://example.com/\x07TEST\n\x1b]8;;\x07"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -console.log("// Still Bad"); -osc_st.lastIndex = 0; -var str = "\x1b]8;;http://example.com/\x1b\\TEST\n\x1b]8;;\x07"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -console.log("// Standard St"); -osc_st.lastIndex = 0; -var str = "\x1b]8;;http://example.com/\x1b\\TEST\x1b]8;;\x1b\\"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -console.log("// Legal but bad"); -osc_st.lastIndex = 0; -var str = "\x1b]8;;http://example.com/\x1b\x07TEST\x1b]8;;\x1b\\"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -console.log("// Mixed St"); -osc_st.lastIndex = 0; -var str = "\x1b]8;;http://example.com/\x07TEST\x1b]8;;\x1b\\"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -console.log("// TEST ST"); -osc_st.lastIndex = 0; -var str = "\x1b]\x07\x1b]8\x07"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -console.log("// TEST ST"); -osc_st.lastIndex = 0; -var str = "\x1b]\x1b\\\x1b]8\x1b\\"; -show_match_repeat(str, osc_st); -show_match_repeat(str, osc_st); -console.log(" "); - -//show_match("\x1b[34\nm", osc_st); -//show_match("\x1b[34;44m", osc_st); -//show_match("\x1b[33:44m", osc_st); -//show_match("\x1b[>33;44m", osc_st); -//show_match("\x1b[33;44", osc_st); -//show_match("\x1b[", osc_st); - diff --git a/js/node/node_modules/ansi_up/examples/test.js b/js/node/node_modules/ansi_up/examples/test.js deleted file mode 100644 index 5e70da0d9b73..000000000000 --- a/js/node/node_modules/ansi_up/examples/test.js +++ /dev/null @@ -1,70 +0,0 @@ - - - -// -// PRIVATE FUNCTIONS -// - -// ES5 template string transformer -function rgx(tmplObj, ...subst) { - // Use the 'raw' value so we don't have to double backslash in a template string - let regexText = tmplObj.raw[0]; - - // Remove white-space and comments - let wsrgx = /^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm; - let txt2 = regexText.replace(wsrgx, ''); - console.log(txt2); - return new RegExp(txt2); -} - -// ES5 template string transformer -// Multi-Line On -function rgxM(tmplObj, ...subst) { - // Use the 'raw' value so we don't have to double backslash in a template string - let regexText = tmplObj.raw[0]; - - // Remove white-space and comments - let wsrgx = /^\s+|\s+\n|\s+#[\s\S]+?\n/gm; - let txt2 = regexText.replace(wsrgx, ''); - return new RegExp(txt2, 'm'); -} - -// MATCH A CSI -let csi_regex = rgx` - ^ # beginning of line - # - # First attempt - (?: # begin non-capture block - \x1b\[ - ([\x3c-\x3f]?) # a private-mode char (<=>?) - ([\d;]*) # any digits or semicolons - ([\x20-\x2f]? # an intermediate modifier - [\x40-\x7e]) # the command - ) - | # alternate - # Second attempt - (?: # begin non-capture block - \x1b\[ - [\x20-\x7e]* - ([\x00-\x1f:]) - ) -`; - -function show_match(txt, rgx) -{ - console.log(JSON.stringify(txt)); - let res = txt.match(rgx); - if (res == null) - return console.log("Still possible..."); - if (res[4]) - return console.log("BAD MATCH: ", JSON.stringify(res[0])); - console.log(res.slice(1,4)); -} -show_match("\x1b[\n", csi_regex); -show_match("\x1b[34\nm", csi_regex); -show_match("\x1b[34;44m", csi_regex); -show_match("\x1b[33:44m", csi_regex); -show_match("\x1b[>33;44m", csi_regex); -show_match("\x1b[33;44", csi_regex); -show_match("\x1b[", csi_regex); - diff --git a/js/node/node_modules/ansi_up/package.json b/js/node/node_modules/ansi_up/package.json index d8052cf31192..ac68bab66f13 100644 --- a/js/node/node_modules/ansi_up/package.json +++ b/js/node/node_modules/ansi_up/package.json @@ -1,62 +1,32 @@ { - "_from": "ansi_up@latest", - "_id": "ansi_up@4.0.3", - "_inBundle": false, - "_integrity": "sha512-ub+xzfB7Mkikx6u0/iHx97Cvs5SJRNjh3yoQpuRaAvC9L2t8ZghlqG6jXIQ7XkbtQyHJU/EP2AnPvwcib0vu6A==", - "_location": "/ansi_up", - "_phantomChildren": {}, - "_requested": { - "type": "tag", - "registry": true, - "raw": "ansi_up@latest", - "name": "ansi_up", - "escapedName": "ansi_up", - "rawSpec": "latest", - "saveSpec": null, - "fetchSpec": "latest" - }, - "_requiredBy": [ - "#USER", - "/" - ], - "_resolved": "https://registry.npmjs.org/ansi_up/-/ansi_up-4.0.3.tgz", - "_shasum": "7cc6683304c71f4dcd83725b7e8d313089e369a7", - "_spec": "ansi_up@latest", - "_where": "/mnt/c/Users/me/Documents/Projects/arangodb/arangodb/js/node", - "author": { - "name": "drudru", - "email": "drudru@gmail.com" - }, - "bugs": { - "url": "http://github.com/drudru/ansi_up/issues" - }, - "bundleDependencies": false, - "deprecated": false, + "name": "ansi_up", + "version": "5.0.1", "description": "Convert ansi sequences in strings to colorful HTML", - "devDependencies": { - "mocha": "*", - "should": "*", - "typescript": "^3.0" - }, - "engines": { - "node": "*" - }, - "homepage": "https://github.com/drudru/ansi_up#readme", "keywords": [ "ansi", "html" ], + "author": "drudru ", "license": "MIT", "main": "./ansi_up.js", - "name": "ansi_up", + "types": "./dist/ansi_up.d.ts", "repository": { "type": "git", "url": "git://github.com/drudru/ansi_up.git" }, + "bugs": { + "url": "http://github.com/drudru/ansi_up/issues" + }, + "engines": { + "node": "*" + }, "scripts": { - "build": "make typescript", - "test": "make test" + "test": "make test", + "build": "make typescript" }, - "types": "./ansi_up.d.ts", - "version": "4.0.3" + "devDependencies": { + "mocha": "*", + "should": "*", + "typescript": "^3.0" + } } diff --git a/js/node/node_modules/ansi_up/test/ansi_up-test.js b/js/node/node_modules/ansi_up/test/ansi_up-test.js index 0a7f6238c9b3..2f5eb01728a1 100644 --- a/js/node/node_modules/ansi_up/test/ansi_up-test.js +++ b/js/node/node_modules/ansi_up/test/ansi_up-test.js @@ -112,7 +112,7 @@ describe('ansi_up', function () { it('should escape a mix of characters that require escaping', function () { var start = "<&>/\\'\""; - var expected = "<&>/\\'\""; + var expected = "<&>/\\'""; var au = new AnsiUp(); var l = au.ansi_to_html(start); @@ -123,135 +123,6 @@ describe('ansi_up', function () { }); - describe('escape_for_html off', function () { - - describe('ampersands', function () { - - it('should escape a single ampersand', function () { - var start = "&"; - var expected = "&"; - - var au = new AnsiUp(); - au.escape_for_html = false; - var l = au.ansi_to_html(start); - l.should.eql(expected); - }); - - it('should escape some text with ampersands', function () { - var start = "abcd&efgh"; - var expected = "abcd&efgh"; - - var au = new AnsiUp(); - au.escape_for_html = false; - var l = au.ansi_to_html(start); - l.should.eql(expected); - }); - - it('should escape multiple ampersands', function () { - var start = " & & "; - var expected = " & & "; - - var au = new AnsiUp(); - au.escape_for_html = false; - var l = au.ansi_to_html(start); - l.should.eql(expected); - }); - - it('should escape an already escaped ampersand', function () { - var start = " & "; - var expected = " & "; - - var au = new AnsiUp(); - au.escape_for_html = false; - var l = au.ansi_to_html(start); - l.should.eql(expected); - }); - }); - - describe('less-than', function () { - - it('should escape a single less-than', function () { - var start = "<"; - var expected = "<"; - - var au = new AnsiUp(); - au.escape_for_html = false; - var l = au.ansi_to_html(start); - l.should.eql(expected); - }); - - it('should escape some text with less-thans', function () { - var start = "abcdA Link DEF"; + + var au = new AnsiUp(); + var l = au.ansi_to_html(start); + l.should.eql(expected); + }); }); diff --git a/js/node/node_modules/ansi_up/url-test.js b/js/node/node_modules/ansi_up/url-test.js deleted file mode 100644 index fae2cd081f93..000000000000 --- a/js/node/node_modules/ansi_up/url-test.js +++ /dev/null @@ -1,12 +0,0 @@ - -var AU = require('./ansi_up.js') -var ansi_up = new AU.default; - -var txt = "ABC \x1b]8;;http://example.com\x1b\\EXAMPLE\x1b]8;;\x07 DEF" - -var res = ansi_up.ansi_to_html(txt) - -console.log(JSON.stringify(res)); - -console.log(JSON.stringify(ansi_up._buffer)); - diff --git a/js/node/node_modules/chalk/node_modules/ansi-regex/index.js b/js/node/node_modules/babel-code-frame/node_modules/ansi-regex/index.js similarity index 100% rename from js/node/node_modules/chalk/node_modules/ansi-regex/index.js rename to js/node/node_modules/babel-code-frame/node_modules/ansi-regex/index.js diff --git a/js/node/node_modules/chalk/node_modules/ansi-regex/license b/js/node/node_modules/babel-code-frame/node_modules/ansi-regex/license similarity index 100% rename from js/node/node_modules/chalk/node_modules/ansi-regex/license rename to js/node/node_modules/babel-code-frame/node_modules/ansi-regex/license diff --git a/js/node/node_modules/babel-code-frame/node_modules/ansi-regex/package.json b/js/node/node_modules/babel-code-frame/node_modules/ansi-regex/package.json new file mode 100644 index 000000000000..eb44fb5c1fe8 --- /dev/null +++ b/js/node/node_modules/babel-code-frame/node_modules/ansi-regex/package.json @@ -0,0 +1,64 @@ +{ + "name": "ansi-regex", + "version": "2.1.1", + "description": "Regular expression for matching ANSI escape codes", + "license": "MIT", + "repository": "chalk/ansi-regex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Appelman (jbnicolai.com)", + "JD Ballard (github.com/qix-)" + ], + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "xo && ava --verbose", + "view-supported": "node fixtures/view-codes.js" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "devDependencies": { + "ava": "0.17.0", + "xo": "0.16.0" + }, + "xo": { + "rules": { + "guard-for-in": 0, + "no-loop-func": 0 + } + } +} diff --git a/js/node/node_modules/chalk/node_modules/ansi-regex/readme.md b/js/node/node_modules/babel-code-frame/node_modules/ansi-regex/readme.md similarity index 100% rename from js/node/node_modules/chalk/node_modules/ansi-regex/readme.md rename to js/node/node_modules/babel-code-frame/node_modules/ansi-regex/readme.md diff --git a/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/index.js b/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/index.js new file mode 100644 index 000000000000..78945278f78a --- /dev/null +++ b/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/index.js @@ -0,0 +1,65 @@ +'use strict'; + +function assembleStyles () { + var styles = { + modifiers: { + reset: [0, 0], + bold: [1, 22], // 21 isn't widely supported and 22 does the same thing + dim: [2, 22], + italic: [3, 23], + underline: [4, 24], + inverse: [7, 27], + hidden: [8, 28], + strikethrough: [9, 29] + }, + colors: { + black: [30, 39], + red: [31, 39], + green: [32, 39], + yellow: [33, 39], + blue: [34, 39], + magenta: [35, 39], + cyan: [36, 39], + white: [37, 39], + gray: [90, 39] + }, + bgColors: { + bgBlack: [40, 49], + bgRed: [41, 49], + bgGreen: [42, 49], + bgYellow: [43, 49], + bgBlue: [44, 49], + bgMagenta: [45, 49], + bgCyan: [46, 49], + bgWhite: [47, 49] + } + }; + + // fix humans + styles.colors.grey = styles.colors.gray; + + Object.keys(styles).forEach(function (groupName) { + var group = styles[groupName]; + + Object.keys(group).forEach(function (styleName) { + var style = group[styleName]; + + styles[styleName] = group[styleName] = { + open: '\u001b[' + style[0] + 'm', + close: '\u001b[' + style[1] + 'm' + }; + }); + + Object.defineProperty(styles, groupName, { + value: group, + enumerable: false + }); + }); + + return styles; +} + +Object.defineProperty(module, 'exports', { + enumerable: true, + get: assembleStyles +}); diff --git a/js/node/node_modules/chalk/node_modules/escape-string-regexp/license b/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/license similarity index 100% rename from js/node/node_modules/chalk/node_modules/escape-string-regexp/license rename to js/node/node_modules/babel-code-frame/node_modules/ansi-styles/license diff --git a/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/package.json b/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/package.json new file mode 100644 index 000000000000..78c535f7450c --- /dev/null +++ b/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/package.json @@ -0,0 +1,50 @@ +{ + "name": "ansi-styles", + "version": "2.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Appelman (jbnicolai.com)" + ], + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "mocha" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "devDependencies": { + "mocha": "*" + } +} diff --git a/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/readme.md b/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/readme.md new file mode 100644 index 000000000000..3f933f6162e5 --- /dev/null +++ b/js/node/node_modules/babel-code-frame/node_modules/ansi-styles/readme.md @@ -0,0 +1,86 @@ +# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) + +> [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal + +You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings. + +![](screenshot.png) + + +## Install + +``` +$ npm install --save ansi-styles +``` + + +## Usage + +```js +var ansi = require('ansi-styles'); + +console.log(ansi.green.open + 'Hello world!' + ansi.green.close); +``` + + +## API + +Each style has an `open` and `close` property. + + +## Styles + +### Modifiers + +- `reset` +- `bold` +- `dim` +- `italic` *(not widely supported)* +- `underline` +- `inverse` +- `hidden` +- `strikethrough` *(not widely supported)* + +### Colors + +- `black` +- `red` +- `green` +- `yellow` +- `blue` +- `magenta` +- `cyan` +- `white` +- `gray` + +### Background colors + +- `bgBlack` +- `bgRed` +- `bgGreen` +- `bgYellow` +- `bgBlue` +- `bgMagenta` +- `bgCyan` +- `bgWhite` + + +## Advanced usage + +By default you get a map of styles, but the styles are also available as groups. They are non-enumerable so they don't show up unless you access them explicitly. This makes it easier to expose only a subset in a higher-level module. + +- `ansi.modifiers` +- `ansi.colors` +- `ansi.bgColors` + + +###### Example + +```js +console.log(ansi.colors.green.open); +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) diff --git a/js/node/node_modules/chalk/index.js b/js/node/node_modules/babel-code-frame/node_modules/chalk/index.js similarity index 100% rename from js/node/node_modules/chalk/index.js rename to js/node/node_modules/babel-code-frame/node_modules/chalk/index.js diff --git a/js/node/node_modules/chalk/node_modules/has-ansi/license b/js/node/node_modules/babel-code-frame/node_modules/chalk/license similarity index 100% rename from js/node/node_modules/chalk/node_modules/has-ansi/license rename to js/node/node_modules/babel-code-frame/node_modules/chalk/license diff --git a/js/node/node_modules/babel-code-frame/node_modules/chalk/package.json b/js/node/node_modules/babel-code-frame/node_modules/chalk/package.json new file mode 100644 index 000000000000..2b5881e9a3c2 --- /dev/null +++ b/js/node/node_modules/babel-code-frame/node_modules/chalk/package.json @@ -0,0 +1,70 @@ +{ + "name": "chalk", + "version": "1.1.3", + "description": "Terminal string styling done right. Much color.", + "license": "MIT", + "repository": "chalk/chalk", + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Appelman (jbnicolai.com)", + "JD Ballard (github.com/qix-)" + ], + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "test": "xo && mocha", + "bench": "matcha benchmark.js", + "coverage": "nyc npm test && nyc report", + "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "index.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "devDependencies": { + "coveralls": "^2.11.2", + "matcha": "^0.6.0", + "mocha": "*", + "nyc": "^3.0.0", + "require-uncached": "^1.0.2", + "resolve-from": "^1.0.0", + "semver": "^4.3.3", + "xo": "*" + }, + "xo": { + "envs": [ + "node", + "mocha" + ] + } +} diff --git a/js/node/node_modules/babel-code-frame/node_modules/chalk/readme.md b/js/node/node_modules/babel-code-frame/node_modules/chalk/readme.md new file mode 100644 index 000000000000..5cf111e35338 --- /dev/null +++ b/js/node/node_modules/babel-code-frame/node_modules/chalk/readme.md @@ -0,0 +1,213 @@ +

+
+
+ chalk +
+
+
+

+ +> Terminal string styling done right + +[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) +[![Coverage Status](https://coveralls.io/repos/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/r/chalk/chalk?branch=master) +[![](http://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) + + +[colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68). Although there are other ones, they either do too much or not enough. + +**Chalk is a clean and focused alternative.** + +![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png) + + +## Why + +- Highly performant +- Doesn't extend `String.prototype` +- Expressive API +- Ability to nest styles +- Clean and focused +- Auto-detects color support +- Actively maintained +- [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015 + + +## Install + +``` +$ npm install --save chalk +``` + + +## Usage + +Chalk comes with an easy to use composable API where you just chain and nest the styles you want. + +```js +var chalk = require('chalk'); + +// style a string +chalk.blue('Hello world!'); + +// combine styled and normal strings +chalk.blue('Hello') + 'World' + chalk.red('!'); + +// compose multiple styles using the chainable API +chalk.blue.bgRed.bold('Hello world!'); + +// pass in multiple arguments +chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'); + +// nest styles +chalk.red('Hello', chalk.underline.bgBlue('world') + '!'); + +// nest styles of the same type even (color, underline, background) +chalk.green( + 'I am a green line ' + + chalk.blue.underline.bold('with a blue substring') + + ' that becomes green again!' +); +``` + +Easily define your own themes. + +```js +var chalk = require('chalk'); +var error = chalk.bold.red; +console.log(error('Error!')); +``` + +Take advantage of console.log [string substitution](http://nodejs.org/docs/latest/api/console.html#console_console_log_data). + +```js +var name = 'Sindre'; +console.log(chalk.green('Hello %s'), name); +//=> Hello Sindre +``` + + +## API + +### chalk.`', returnEnd: true, - subLanguage: ['css', 'xml'] + end: /<\/style>/, + returnEnd: true, + subLanguage: [ + 'css', + 'xml' + ] } }, { className: 'tag', // See the comment in the