├── .eslintrc.js ├── .gitignore ├── .npmignore ├── .vscode └── launch.json ├── CONTRIBUTING.md ├── LICENSE-MIT ├── README.md ├── bin └── json-diff.js ├── doc └── screenshot.png ├── example ├── a.json ├── b.json ├── big_a.json ├── big_b.json ├── big_result.jsdiff ├── full-result-colored.jsdiff ├── full-result-precision-1.jsdiff ├── full-result.jsdiff ├── result-colored.jsdiff └── result.jsdiff ├── lib ├── cli.js ├── colorize.js ├── index.js └── util.js ├── old-coffee-lib ├── cli.coffee ├── colorize.coffee ├── index.coffee └── util.coffee ├── package-lock.json ├── package.json ├── test ├── .diff_test.coffee.swp ├── colorize_test.coffee ├── diff_test.coffee └── mocha.opts └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | browser: true, 4 | es2021: true 5 | }, 6 | extends: [ 7 | 'standard' 8 | ], 9 | parserOptions: { 10 | ecmaVersion: 13, 11 | sourceType: 'module' 12 | }, 13 | rules: { 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | !bin/*.js 3 | /lib-cov 4 | test/*.js 5 | coverage.html 6 | .idea -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | *.coffee 2 | /example 3 | /doc 4 | /test 5 | /lib-cov 6 | coverage.html 7 | yarn.lock 8 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "node", 9 | "request": "launch", 10 | "name": "Launch Program", 11 | "skipFiles": [ 12 | "/**" 13 | ], 14 | "program": "${workspaceFolder}/bin/json-diff.js", 15 | "outFiles": [ 16 | "${workspaceFolder}/**/*.js" 17 | ], 18 | "args": ["--raw-json", "--full", "a.json", "b.json"] 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Steps to a new release 2 | ====================== 3 | 4 | 1. Make a branch to fix a bug or add a feature, e.g. "json-diff-fix-68" or "json-diff-bignum-support". 5 | 1. Fix the bug or add the feature, add unit tests to detect that the bug fix or new feature works. 6 | 1. Make a PR from the branch against master and submit it. 7 | 1. Maintainer then does: 8 | * A review and squash-merge of the PR 9 | * git checkout master 10 | * git pull 11 | * npm ci 12 | * npm run test 13 | * update change log in README 14 | * git commit -a -m "Update README"; git push 15 | * npm version 16 | * git push --tags; git push 17 | * npm publish (get one-time NPM password from authy) -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Andrey Tarantsov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JSON structural diff 2 | 3 | Does exactly what you think it does: 4 | 5 | ![Screenshot](https://github.com/andreyvit/json-diff/raw/master/doc/screenshot.png) 6 | 7 | ## Installation 8 | 9 | ```sh 10 | npm install -g json-diff 11 | ``` 12 | 13 | ## Contribution policy 14 | 15 | 1. This project is maintained thanks to your contributions! Please send pull requests. 16 | 17 | 2. I will merge any pull request that adds something useful, does not break existing things, has reasonable code quality and provides/updates tests where appropriate. 18 | 19 | 3. Anyone who gets a significant pull request merged gets commit access to the repository. 20 | 21 | ## Usage 22 | 23 | Simple: 24 | 25 | ```sh 26 | json-diff a.json b.json 27 | ``` 28 | 29 | Detailed: 30 | 31 | ```sh 32 | % json-diff --help 33 | 34 | Usage: json-diff [-vCjfonskKp] first.json second.json 35 | 36 | Arguments: 37 | Old file 38 | New file 39 | 40 | General options: 41 | -v, --verbose Output progress info 42 | -C, --[no-]color Colored output 43 | -j, --raw-json Display raw JSON encoding of the diff 44 | -f, --full Include the equal sections of the document, not just the deltas 45 | --max-elisions COUNT Max number of ...s to show in a row in "deltas" mode (before 46 | collapsing them) 47 | 48 | -o, --output-keys KEYS Always print this comma separated keys, with their value, if they are 49 | part of an object with any diff 50 | 51 | -x, --exclude-keys KEYS Exclude these comma separated keys from comparison on both files 52 | 53 | -n, --output-new-only Output only the updated and new key/value pairs (without marking them as 54 | such). If you need only the diffs from the old file, just exchange the 55 | first and second json. 56 | 57 | -s, --sort Sort primitive values in arrays before comparing 58 | -k, --keys-only Compare only the keys, ignore the differences in values 59 | -K, --keep-unchanged-values Instead of omitting values that are equal, output them as they are 60 | -p, --precision DECIMALS Round all floating point numbers to this number of decimal places prior 61 | to comparison 62 | 63 | -h, --help Display this usage information 64 | ``` 65 | 66 | In javascript (ES5): 67 | 68 | ```js 69 | var jsonDiff = require('json-diff'); 70 | 71 | console.log(jsonDiff.diffString({ foo: 'bar' }, { foo: 'baz' })); 72 | // Output: 73 | // { 74 | // - foo: "bar" 75 | // + foo: "baz" 76 | // } 77 | 78 | // As above, but without console colors 79 | console.log(jsonDiff.diffString({ foo: 'bar' }, { foo: 'baz' }, { color: false })); 80 | 81 | // Raw output: 82 | console.log(jsonDiff.diff({ foo: 'bar', b: 3 }, { foo: 'baz', b: 3 })); 83 | // Output: 84 | // { foo: { __old: 'bar', __new: 'baz' } } 85 | 86 | // Passing in the "full" option: 87 | console.log(jsonDiff.diff({ foo: 'bar', b: 3 }, { foo: 'baz', b: 3 }, { full: true })); 88 | // Output: 89 | // { foo: { __old: 'bar', __new: 'baz' }, b: 3 } 90 | ``` 91 | 92 | In javascript (ES6+): 93 | 94 | ```js 95 | import { diffString, diff } from 'json-diff'; 96 | 97 | console.log(diffString({ foo: 'bar' }, { foo: 'baz' })); 98 | console.log(diff({ foo: 'bar' }, { foo: 'baz' })); 99 | ``` 100 | 101 | ## Features 102 | 103 | - colorized, diff-like output 104 | - fuzzy matching of modified array elements (when array elements are object hierarchies) 105 | - "keysOnly" option to compare only the json structure (keys), ignoring the values 106 | - "full" option to output the entire json tree, not just the deltas 107 | - "outputKeys" option to always output the given keys for an object that has differences 108 | - reasonable test coverage (far from 100%, though) 109 | 110 | ## Output Language in Raw-json mode ("full" mode) 111 | 112 | ### ARRAYS 113 | 114 | Unless two arrays are equal, all array elements are transformed into 2-tuple arrays: 115 | 116 | - The first element is a one character string denoting the equality ('+', '-', '~', ' ') 117 | - The second element is the old (-), new (+), altered sub-object (~), or unchanged (' ') value 118 | 119 | ```sh 120 | json-diff.js --full --raw-json <(echo '[1,7,3]') <(echo '[1,2,3]') 121 | [ [ " ", 1 ], [ "-", 7 ], [ "+", 2 ], [ " ", 3 ] ] 122 | ``` 123 | 124 | ```sh 125 | json-diff.js --full --raw-json <(echo '[1,["a","b"],4]') <(echo '[1,["a","c"],4]') 126 | [ [ " ", 1 ], [ "~", [ [ " ", "a" ], [ "-", "b" ], [ "+", "c" ] ] ], [ " ", 4 ] ] 127 | ``` 128 | 129 | - If two arrays are equal, they are left as is. 130 | 131 | ### OBJECTS 132 | 133 | **Object property values:** 134 | 135 | - If equal, they are left as is 136 | - Unequal scalar values are replaced by an object containing the old and new value: 137 | 138 | ```sh 139 | json-diff.js --full --raw-json <(echo '{"a":4}') <(echo '{"a":5}') 140 | { "a": { "__old": 4, "__new": 5 } } 141 | ``` 142 | 143 | - Unequal arrays and objects are replaced by their diff: 144 | 145 | ```sh 146 | json-diff.js --full --raw-json <(echo '{"a":[4,5]}') <(echo '{"a":[4,6]}') 147 | { "a": [ [ " ", 4 ], [ "-", 5 ], [ "+", 6 ] ] } 148 | ``` 149 | 150 | **Object property keys:** 151 | 152 | - Object keys that are deleted or added between two objects are marked as such: 153 | 154 | ```sh 155 | json-diff.js --full --raw-json <(echo '{"a":[4,5]}') <(echo '{"b":[4,5]}') 156 | { "a__deleted": [ 4, 5 ], "b__added": [ 4, 5 ] } 157 | json-diff.js --full --raw-json <(echo '{"a":[4,5]}') <(echo '{"b":[4,6]}') 158 | { "a__deleted": [ 4, 5 ], "b__added": [ 4, 6 ] } 159 | ``` 160 | 161 | ## Non-full mode 162 | 163 | - In regular, delta-only (non-"full") mode, equal properties and values are omitted: 164 | 165 | ```sh 166 | json-diff.js --raw-json <(echo '{"a":4, "b":6}') <(echo '{"a":5,"b":6}') 167 | { "a": { "__old": 4, "__new": 5 } } 168 | ``` 169 | 170 | - Equal array elements are represented by a one-tuple containing only a space " ": 171 | 172 | ```sh 173 | json-diff.js --raw-json <(echo '[1,7,3]') <(echo '[1,2,3]') 174 | [ [ " " ], [ "-", 7 ], [ "+", 2 ], [ " " ] ] 175 | ``` 176 | 177 | ## Tests 178 | 179 | Run: 180 | 181 | ```sh 182 | npm test 183 | ``` 184 | 185 | Output: 186 |
187 | Open to View Test Output 🔽 188 | 189 | json-diff@0.5.3 test 190 | coffee -c test; mocha test/*.js 191 | 192 | colorizeToArray 193 | ✔ should return ' ' for a scalar value 194 | ✔ should return ' ' for 'null' value 195 | ✔ should return ' ' for 'false' value 196 | ✔ should return '-', '+' for a scalar diff 197 | ✔ should return '-', '+' for 'null' and 'false' diff 198 | ✔ should return '-: ' for an object diff with a removed key 199 | ✔ should return '+: ' for an object diff with an added key 200 | ✔ should return '+: ' for an object diff with an added key with 'null' value 201 | ✔ should return '+: ' for an object diff with an added key with 'false' value 202 | ✔ should return '+: ' for an object diff with an added key and a non-scalar value 203 | ✔ should return ' : ' for an object diff with a modified key 204 | ✔ should return '+' for an array diff 205 | ✔ should return '-' for an array diff 206 | ✔ should handle an array diff with subobject diff 207 | ✔ should collapse long sequences of identical subobjects into one '...' 208 | 209 | colorize 210 | ✔ should return a string with ANSI escapes 211 | ✔ should return a string without ANSI escapes on { color: false } 212 | 213 | diff 214 | with simple scalar values 215 | ✔ should return undefined for two identical numbers 216 | ✔ should return undefined for two identical strings 217 | ✔ should return { __old: , __new: } object for two different numbers 218 | with objects 219 | ✔ should return undefined for two empty objects 220 | ✔ should return undefined for two objects with identical contents 221 | ✔ should return undefined for two object hierarchies with identical contents 222 | ✔ should return { __deleted: } when the second object is missing a key 223 | ✔ should return { __added: } when the first object is missing a key 224 | ✔ should return { : { __old: , __new: } } for two objects with different scalar values for a key 225 | ✔ should return { : } with a recursive diff for two objects with different values for a key 226 | with arrays of scalars 227 | ✔ should return undefined for two arrays with identical contents 228 | ✔ should return [..., ['-', ], ...] for two arrays when the second array is missing a value 229 | ✔ should return [..., ['+', ], ...] for two arrays when the second one has an extra value 230 | ✔ should return [..., ['+', ]] for two arrays when the second one has an extra value at the end (edge case test) 231 | with arrays of objects 232 | ✔ should return undefined for two arrays with identical contents 233 | ✔ should return undefined for two arrays with identical, empty object contents 234 | ✔ should return undefined for two arrays with identical, empty array contents 235 | ✔ should return undefined for two arrays with identical array contents including 'null' 236 | ✔ should return undefined for two arrays with identical, repeated contents 237 | ✔ should return [..., ['-', ], ...] for two arrays when the second array is missing a value 238 | ✔ should return [..., ['+', ], ...] for two arrays when the second array has an extra value 239 | ✔ should return [['+', ], ..., ['+', ]] for two arrays containing objects of 3 or more properties when the second array has extra values (fixes issue #57) 240 | ✔ should return [..., ['+', ], ...] for two arrays when the second array has a new but nearly identical object added 241 | ✔ should return [..., ['~', ], ...] for two arrays when an item has been modified 242 | with reported bugs 243 | ✔ should handle type mismatch during scalarize 244 | ✔ should handle mixed scalars and non-scalars in scalarize 245 | 246 | diff({sort: true}) 247 | with arrays 248 | ✔ should return undefined for two arrays with the same contents in different order 249 | 250 | diff({keepUnchangedValues: true}) 251 | with nested object 252 | ✔ should return partial object with modified and unmodified elements in the edited scope 253 | 254 | diff({full: true}) 255 | with simple scalar values 256 | ✔ should return the number for two identical numbers 257 | ✔ should return the string for two identical strings 258 | ✔ should return { __old: , __new: } object for two different numbers 259 | with objects 260 | ✔ should return an empty object for two empty objects 261 | ✔ should return the object for two objects with identical contents 262 | ✔ should return the object for two object hierarchies with identical contents 263 | ✔ should return { __deleted: , } when the second object is missing a key 264 | ✔ should return { __added: , } when the first object is missing a key 265 | ✔ should return { : { __old: , __new: } } for two objects with different scalar values for a key 266 | ✔ should return { : , } with a recursive diff for two objects with different values for a key 267 | ✔ should return { : , } with a recursive diff for two objects with different values for a key 268 | with arrays of scalars 269 | ✔ should return an array showing no changes for any element for two arrays with identical contents 270 | ✔ should return [[' ', ], ['-', ], [' ', ]] for two arrays when the second array is missing a value 271 | ✔ should return [' ', ], ['+', ], [' ', ]] for two arrays when the second one has an extra value 272 | ✔ should return [' ', s], ['+', ]] for two arrays when the second one has an extra value at the end (edge case test) 273 | with arrays of objects 274 | ✔ should return an array of unchanged elements for two arrays with identical contents 275 | ✔ should return an array with an unchanged element for two arrays with identical, empty object contents 276 | ✔ should return an array with an unchanged element for two arrays with identical, empty array contents 277 | ✔ should return an array of unchanged elements for two arrays with identical array contents including 'null' 278 | ✔ should return an array of unchanged elements for two arrays with identical, repeated contents 279 | ✔ should return [[' ', ], ['-', ], [' ', ]] for two arrays when the second array is missing a value 280 | ✔ should return [[' ', ], ['+', ], [' ', ]] for two arrays when the second array has an extra value 281 | ✔ should return [[' ', ], ['+', ], [' ', ]] for two arrays when the second array has a new but nearly identical object added 282 | ✔ should return [[' ', ], ['~', ], [' ', ]] for two arrays when an item has been modified 283 | 284 | diff({ outputKeys: foo,bar } 285 | ✔ should return keys foo and bar although they have no changes 286 | ✔ should return keys foo (with addition) and bar (with no changes) 287 | ✔ should return keys foo and bar (with addition) 288 | ✔ should return nothing as the entire object is equal, no matter that show keys has some of them 289 | ✔ should return the keys of an entire object although it has no changes 290 | 291 | diff({keysOnly: true}) 292 | with simple scalar values 293 | ✔ should return undefined for two identical numbers 294 | ✔ should return undefined for two identical strings 295 | ✔ should return undefined object for two different numbers 296 | with objects 297 | ✔ should return undefined for two empty objects 298 | ✔ should return undefined for two objects with identical contents 299 | ✔ should return undefined for two object hierarchies with identical contents 300 | ✔ should return { __deleted: } when the second object is missing a key 301 | ✔ should return { __added: } when the first object is missing a key 302 | ✔ should return undefined for two objects with different scalar values for a key 303 | ✔ should return undefined with a recursive diff for two objects with different values for a key 304 | ✔ should return { : } with a recursive diff when second object is missing a key and two objects with different values for a key 305 | with arrays of scalars 306 | ✔ should return undefined for two arrays with identical contents 307 | ✔ should return undefined for two arrays with when an item has been modified 308 | ✔ should return [..., ['-', ], ...] for two arrays when the second array is missing a value 309 | ✔ should return [..., ['+', ], ...] for two arrays when the second one has an extra value 310 | ✔ should return [..., ['+', ]] for two arrays when the second one has an extra value at the end (edge case test) 311 | with arrays of objects 312 | ✔ should return undefined for two arrays with identical contents 313 | ✔ should return undefined for two arrays with identical, empty object contents 314 | ✔ should return undefined for two arrays with identical, empty array contents 315 | ✔ should return undefined for two arrays with identical, repeated contents 316 | ✔ should return [..., ['-', ], ...] for two arrays when the second array is missing a value 317 | ✔ should return [..., ['+', ], ...] for two arrays when the second array has an extra value 318 | ✔ should return [..., ['~', ], ...] for two arrays when an item has been modified 319 | 320 | diffString 321 | ✔ should produce the expected result for the example JSON files 322 | ✔ should produce the expected result for the example JSON files with precision set to 1 323 | ✔ should produce the expected colored result for the example JSON files 324 | ✔ return an empty string when no diff found 325 | 326 | diff({ outputNewOnly: true } 327 | ✔ should return only new diffs (added) 328 | ✔ should return only new diffs (changed) 329 | ✔ should return only new diffs (deleted) 330 | ✔ should return only old diffs - exchanged first and second json (added) 331 | ✔ should return only old diffs - exchanged first and second json (changed) 332 | ✔ should return only old diffs - exchanged first and second json (deleted) 333 | 334 | 335 | 107 passing (74ms) 336 |
337 | 338 | ## Change Log 339 | - 1.0.6 Comment out another debugging output. 340 | - 1.0.5 Comment out debugging output(!) 341 | - 1.0.4 Fix typo that broke -o/--output-keys 342 | - 1.0.3 Change from cli-color to colors to reduce package size. 343 | - 1.0.2 Add colorize and colorizeToCallback to module exports (Fix bug #103) 344 | - 1.0.1 Bug fixes: Properly compare date objects; properly exclude keys with -x; improve README readability. 345 | - 1.0.0 Properly distinguish list elements with identical strings of different types e.g. `["true"]` vs `[true]`, `["0"]` vs `[0]` (enabled by switching to a new difflib) 346 | - 0.10.0 Add --exclude-keys 347 | - 0.9.1 Fix bug #88 348 | - 0.9.0 Add --output-new-only option 349 | - 0.8.0 Add --keep-unchanged-values option 350 | - 0.7.4 Fix bug #76 351 | - 0.7.3 Revert use of ?? operator in 0.7.2 (which caused a breaking change) 352 | - 0.7.2 Add --maxElisions and --precision options. 353 | - 0.7.1 Add --output-keys option. 354 | - 0.7.0 Add --sort option. 355 | - 0.6.3 Fix ticket #68. 356 | - 0.6.2 Provide examples of setting mode from code. 357 | - 0.6.1 Return exit code 0. Update cli-color to the latest version. 358 | - 0.6.0 Convert project code to ES6. 359 | - 0.5.5 Fix bug in scalarize fuzzy compare logic. 360 | - 0.4.0 Add --keys-only feature. 361 | 362 | ## License 363 | 364 | © Andrey Tarantsov. Distributed under the MIT license. 365 | -------------------------------------------------------------------------------- /bin/json-diff.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../lib/cli')(process.argv.slice(2)); 3 | -------------------------------------------------------------------------------- /doc/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreyvit/json-diff/76adeca7de9c86bb156dfecf6e3f43dc4237ab02/doc/screenshot.png -------------------------------------------------------------------------------- /example/a.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": 42, 3 | "bar": 100, 4 | "boz": [ 5 | 1.2345, 6 | 2.3456789, 7 | 3, 8 | 4.56789123456, 9 | 5, 10 | 6 11 | ], 12 | "fubar": { 13 | "kaboom": { 14 | "note": "We're running dangerously low on metasyntatic variables here", 15 | "afoo": { 16 | "abar": "raba", 17 | "aboz": "zoba", 18 | "afubar": "rabufa" 19 | }, 20 | "akaboom": 200 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/b.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": 42, 3 | "bar": 100, 4 | "boz": [ 5 | 0, 6 | 1.2345, 7 | 4.5678, 8 | 5, 9 | 6, 10 | 7 11 | ], 12 | "fubar": { 13 | "kaboom": { 14 | "note": "We're running dangerously low on metasyntatic variables here", 15 | "afoo": { 16 | "abar": "raba", 17 | "aboz": "zozoba", 18 | "afubar": "rabufa" 19 | }, 20 | "akaboom": 200 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/big_a.json: -------------------------------------------------------------------------------- 1 | { 2 | "movies": [ 3 | { 4 | "title": "Star Wars: Episode IV - A New Hope", 5 | "directors": ["George Lucas"], 6 | "year": 1977 7 | }, 8 | { 9 | "title": "Starship Troopers", 10 | "directors": ["Paul Verhoeven"], 11 | "year": 1997 12 | }, 13 | { 14 | "title": "Fight Club", 15 | "directors": ["David Fincher"], 16 | "year": 1999 17 | }, 18 | { 19 | "title": "Groundhog Day", 20 | "directors": ["Harold Ramis"], 21 | "year": 1993 22 | }, 23 | { 24 | "title": "Serenity", 25 | "directors": ["Joss Wheldon"], 26 | "year": 2005 27 | }, 28 | { 29 | "title": "Tron", 30 | "directors": ["Steven Lisberger"], 31 | "year": 1982 32 | }, 33 | { 34 | "title": "The Matrix", 35 | "directors": ["Lana Wachowski", "Lilly Wachowski"], 36 | "year": 1999 37 | }, 38 | { 39 | "title": "Blade Runner", 40 | "directors": ["Ridley Scott"], 41 | "year": 1982 42 | }, 43 | { 44 | "title": "Monty Python and the Holy Grail", 45 | "directors": ["Terry Gilliam"], 46 | "year": 1975 47 | }, 48 | { 49 | "title": "2001: A Space Odyssey", 50 | "directors": ["Stanley Kubrick"], 51 | "year": 1968 52 | } 53 | ] 54 | } 55 | -------------------------------------------------------------------------------- /example/big_b.json: -------------------------------------------------------------------------------- 1 | { 2 | "movies": [ 3 | { 4 | "title": "Star Wars: Episode IV - A New Hope", 5 | "directors": ["George Lucas"], 6 | "year": 1977 7 | }, 8 | { 9 | "title": "Starship Troopers", 10 | "directors": ["Paul Verhoeven"], 11 | "year": 1997 12 | }, 13 | { 14 | "title": "Fight Club", 15 | "directors": ["David Fincher"], 16 | "year": 1999 17 | }, 18 | { 19 | "title": "Groundhog Day", 20 | "directors": ["Harold Ramis"], 21 | "year": 1993 22 | }, 23 | { 24 | "title": "Serenity", 25 | "directors": ["Joss Wheldon"], 26 | "year": 2005 27 | }, 28 | { 29 | "title": "Tron", 30 | "directors": ["Steven Lisberger"], 31 | "year": 1982 32 | }, 33 | { 34 | "title": "The Matrix", 35 | "directors": ["Lana Wachowski", "Lilly Wachowski"], 36 | "year": 1999 37 | }, 38 | { 39 | "title": "Blade Runner", 40 | "directors": ["Ridley Scott"], 41 | "year": 1982 42 | }, 43 | { 44 | "title": "Monty Python and the Holy Grail", 45 | "directors": ["Terry Gilliam", "Terry Jones"], 46 | "year": 1975 47 | }, 48 | { 49 | "title": "2001: A Space Odyssey", 50 | "directors": ["Stanley Kubrick"], 51 | "year": 1968 52 | } 53 | ] 54 | } 55 | -------------------------------------------------------------------------------- /example/big_result.jsdiff: -------------------------------------------------------------------------------- 1 | { 2 | movies: [ 3 | ... (8 entries) 4 | { 5 | directors: [ 6 | ... 7 | + "Terry Jones" 8 | ] 9 | } 10 | ... 11 | ] 12 | } 13 | -------------------------------------------------------------------------------- /example/full-result-colored.jsdiff: -------------------------------------------------------------------------------- 1 | { 2 | foo: 42 3 | bar: 100 4 | boz: [ 5 | + 0 6 | 1.2345 7 | - 2.3456789 8 | - 3 9 | - 4.56789123456 10 | + 4.5678 11 | 5 12 | 6 13 | + 7 14 | ] 15 | fubar: { 16 | kaboom: { 17 | note: "We're running dangerously low on metasyntatic variables here" 18 | afoo: { 19 | abar: "raba" 20 | - aboz: "zoba" 21 | + aboz: "zozoba" 22 | afubar: "rabufa" 23 | } 24 | akaboom: 200 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /example/full-result-precision-1.jsdiff: -------------------------------------------------------------------------------- 1 | { 2 | foo: 42 3 | bar: 100 4 | boz: [ 5 | + 0 6 | 1.2 7 | - 2.3 8 | - 3 9 | 4.6 10 | 5 11 | 6 12 | + 7 13 | ] 14 | fubar: { 15 | kaboom: { 16 | note: "We're running dangerously low on metasyntatic variables here" 17 | afoo: { 18 | abar: "raba" 19 | - aboz: "zoba" 20 | + aboz: "zozoba" 21 | afubar: "rabufa" 22 | } 23 | akaboom: 200 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /example/full-result.jsdiff: -------------------------------------------------------------------------------- 1 | { 2 | foo: 42 3 | bar: 100 4 | boz: [ 5 | + 0 6 | 1.2345 7 | - 2.3456789 8 | - 3 9 | - 4.56789123456 10 | + 4.5678 11 | 5 12 | 6 13 | + 7 14 | ] 15 | fubar: { 16 | kaboom: { 17 | note: "We're running dangerously low on metasyntatic variables here" 18 | afoo: { 19 | abar: "raba" 20 | - aboz: "zoba" 21 | + aboz: "zozoba" 22 | afubar: "rabufa" 23 | } 24 | akaboom: 200 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /example/result-colored.jsdiff: -------------------------------------------------------------------------------- 1 | { 2 | boz: [ 3 | + 0 4 | 1 5 | - 2 6 | - 3 7 | 4 8 | 5 9 | 6 10 | + 7 11 | ] 12 | fubar: { 13 | kaboom: { 14 | afoo: { 15 | - aboz: "zoba" 16 | + aboz: "zozoba" 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /example/result.jsdiff: -------------------------------------------------------------------------------- 1 | { 2 | boz: [ 3 | + 0 4 | 1 5 | - 2 6 | - 3 7 | 4 8 | 5 9 | 6 10 | + 7 11 | ] 12 | fubar: { 13 | kaboom: { 14 | afoo: { 15 | - aboz: "zoba" 16 | + aboz: "zozoba" 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /lib/cli.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs') 2 | const tty = require('tty') 3 | 4 | const { diff } = require('./index') 5 | const { colorize } = require('./colorize') 6 | 7 | module.exports = function (argv) { 8 | const options = require('dreamopt')( 9 | [ 10 | 'Usage: json-diff [-vCjfoxnskKp] first.json second.json', 11 | ' Old file #var(file1) #required', 12 | ' New file #var(file2) #required', 13 | 'General options:', 14 | ' -v, --verbose Output progress info', 15 | ' -C, --[no-]color Colored output', 16 | ' -j, --raw-json Display raw JSON encoding of the diff #var(raw)', 17 | ' -f, --full Include the equal sections of the document, not just the deltas #var(full)', 18 | ' --max-elisions COUNT Max number of ...\'s to show in a row in "deltas" mode (before collapsing them) #var(maxElisions)', 19 | ' -o, --output-keys KEYS Always print this comma separated keys, with their value, if they are part of an object with any diff #var(outputKeys)', 20 | ' -x, --exclude-keys KEYS Exclude these comma separated keys from comparison on both files #var(excludeKeys)', 21 | ' -n, --output-new-only Output only the updated and new key/value pairs (without marking them as such). If you need only the diffs from the old file, just exchange the first and second json. #var(outputNewOnly)', 22 | ' -s, --sort Sort primitive values in arrays before comparing #var(sort)', 23 | ' -k, --keys-only Compare only the keys, ignore the differences in values #var(keysOnly)', 24 | ' -K, --keep-unchanged-values Instead of omitting values that are equal, output them as they are #var(keepUnchangedValues)', 25 | ' -p, --precision DECIMALS Round all floating point numbers to this number of decimal places prior to comparison' 26 | ], 27 | argv 28 | ) 29 | 30 | options.outputKeys = options.outputKeys ? options.outputKeys.split(',') : [] 31 | options.excludeKeys = options.excludeKeys ? options.excludeKeys.split(',') : [] 32 | 33 | if (options.verbose) { 34 | process.stderr.write(`${JSON.stringify(options, null, 2)}\n`) 35 | } 36 | 37 | if (options.verbose) { 38 | process.stderr.write('Loading files...\n') 39 | } 40 | const data1 = fs.readFileSync(options.file1, 'utf8') 41 | const data2 = fs.readFileSync(options.file2, 'utf8') 42 | 43 | if (options.verbose) { 44 | process.stderr.write('Parsing old file...\n') 45 | } 46 | const json1 = JSON.parse(data1) 47 | 48 | if (options.verbose) { 49 | process.stderr.write('Parsing new file...\n') 50 | } 51 | const json2 = JSON.parse(data2) 52 | 53 | if (options.verbose) { 54 | process.stderr.write('Running diff...\n') 55 | } 56 | 57 | const result = diff(json1, json2, options) 58 | 59 | if (options.color == null) { 60 | options.color = tty.isatty(process.stdout.fd) 61 | } 62 | 63 | if (result) { 64 | if (options.raw) { 65 | if (options.verbose) { 66 | process.stderr.write('Serializing JSON output...\n') 67 | } 68 | process.stdout.write(JSON.stringify(result, null, 2) + '\n') 69 | } else { 70 | if (options.verbose) { 71 | process.stderr.write('Producing colored output...\n') 72 | } 73 | const colorizeOptions = { 74 | color: options.color, 75 | maxElisions: options.maxElisions 76 | } 77 | process.stdout.write(colorize(result, colorizeOptions)) 78 | } 79 | process.exit(1) 80 | } else { 81 | if (options.verbose) { 82 | process.stderr.write('No diff') 83 | } 84 | process.exit(0) 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /lib/colorize.js: -------------------------------------------------------------------------------- 1 | const color = require('colors/safe') 2 | 3 | const { extendedTypeOf } = require('./util') 4 | 5 | const Theme = { 6 | ' ' (s) { return s }, 7 | '+': color.green, 8 | '-': color.red 9 | } 10 | 11 | const subcolorizeToCallback = function (options, key, diff, output, color, indent) { 12 | let subvalue 13 | const prefix = key ? `${key}: ` : '' 14 | const subindent = indent + ' ' 15 | 16 | const outputElisions = (n) => { 17 | const maxElisions = options.maxElisions === undefined ? Infinity : options.maxElisions 18 | if (n < maxElisions) { 19 | for (let i = 0; i < n; i++) { 20 | output(' ', subindent + '...') 21 | } 22 | } else { 23 | output(' ', subindent + `... (${n} entries)`) 24 | } 25 | } 26 | 27 | switch (extendedTypeOf(diff)) { 28 | case 'object': 29 | if (('__old' in diff) && ('__new' in diff) && (Object.keys(diff).length === 2)) { 30 | subcolorizeToCallback(options, key, diff.__old, output, '-', indent) 31 | return subcolorizeToCallback(options, key, diff.__new, output, '+', indent) 32 | } else { 33 | output(color, `${indent}${prefix}{`) 34 | for (const subkey of Object.keys(diff)) { 35 | let m 36 | subvalue = diff[subkey] 37 | if ((m = subkey.match(/^(.*)__deleted$/))) { 38 | subcolorizeToCallback(options, m[1], subvalue, output, '-', subindent) 39 | } else if ((m = subkey.match(/^(.*)__added$/))) { 40 | subcolorizeToCallback(options, m[1], subvalue, output, '+', subindent) 41 | } else { 42 | subcolorizeToCallback(options, subkey, subvalue, output, color, subindent) 43 | } 44 | } 45 | return output(color, `${indent}}`) 46 | } 47 | 48 | case 'array': { 49 | output(color, `${indent}${prefix}[`) 50 | 51 | let looksLikeDiff = true 52 | for (const item of diff) { 53 | if ((extendedTypeOf(item) !== 'array') || !((item.length === 2) || ((item.length === 1) && (item[0] === ' '))) || !(typeof (item[0]) === 'string') || (item[0].length !== 1) || !([' ', '-', '+', '~'].includes(item[0]))) { 54 | looksLikeDiff = false 55 | } 56 | } 57 | 58 | if (looksLikeDiff) { 59 | let op 60 | let elisionCount = 0 61 | for ([op, subvalue] of diff) { 62 | if (op === ' ' && subvalue == null) { 63 | elisionCount++ 64 | } else { 65 | if (elisionCount > 0) { 66 | outputElisions(elisionCount) 67 | } 68 | elisionCount = 0 69 | 70 | if (![' ', '~', '+', '-'].includes(op)) { 71 | throw new Error(`Unexpected op '${op}' in ${JSON.stringify(diff, null, 2)}`) 72 | } 73 | if (op === '~') { op = ' ' } 74 | subcolorizeToCallback(options, '', subvalue, output, op, subindent) 75 | } 76 | } 77 | if (elisionCount > 0) { 78 | outputElisions(elisionCount) 79 | } 80 | } else { 81 | for (subvalue of diff) { 82 | subcolorizeToCallback(options, '', subvalue, output, color, subindent) 83 | } 84 | } 85 | 86 | return output(color, `${indent}]`) 87 | } 88 | 89 | default: 90 | if (diff === 0 || diff === null || diff === false || diff === '' || diff) { 91 | return output(color, indent + prefix + JSON.stringify(diff)) 92 | } 93 | } 94 | } 95 | 96 | const colorizeToCallback = (diff, options, output) => 97 | subcolorizeToCallback(options, '', diff, output, ' ', '') 98 | 99 | const colorizeToArray = function (diff, options = {}) { 100 | const output = [] 101 | colorizeToCallback(diff, options, (color, line) => output.push(`${color}${line}`)) 102 | return output 103 | } 104 | 105 | const colorize = function (diff, options = {}) { 106 | const output = [] 107 | colorizeToCallback(diff, options, function (color, line) { 108 | if (options.color != null ? options.color : true) { 109 | return output.push(((options.theme != null ? options.theme[color] : undefined) != null ? (options.theme != null ? options.theme[color] : undefined) : Theme[color])(`${color}${line}`) + '\n') 110 | } else { 111 | return output.push(`${color}${line}\n`) 112 | } 113 | }) 114 | return output.join('') 115 | } 116 | 117 | module.exports = { colorize, colorizeToArray, colorizeToCallback } 118 | -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- 1 | const { SequenceMatcher } = require('@ewoudenberg/difflib') 2 | const { extendedTypeOf, roundObj } = require('./util') 3 | const { colorize, colorizeToCallback } = require('./colorize') 4 | 5 | class JsonDiff { 6 | constructor (options) { 7 | options.outputKeys = options.outputKeys || [] 8 | options.excludeKeys = options.excludeKeys || [] 9 | this.options = options 10 | } 11 | 12 | isScalar (obj) { 13 | return typeof obj !== 'object' || obj === null 14 | } 15 | 16 | objectDiff (obj1, obj2) { 17 | let result = {} 18 | let score = 0 19 | let equal = true 20 | 21 | for (const [key, value] of Object.entries(obj1)) { 22 | if (!this.options.outputNewOnly) { 23 | const postfix = '__deleted' 24 | 25 | if (!(key in obj2) && !(this.options.excludeKeys.includes(key))) { 26 | result[`${key}${postfix}`] = value 27 | score -= 30 28 | equal = false 29 | } 30 | } 31 | } 32 | 33 | for (const [key, value] of Object.entries(obj2)) { 34 | const postfix = !this.options.outputNewOnly ? '__added' : '' 35 | 36 | if (!(key in obj1) && !(this.options.excludeKeys.includes(key))) { 37 | result[`${key}${postfix}`] = value 38 | score -= 30 39 | equal = false 40 | } 41 | } 42 | 43 | for (const [key, value1] of Object.entries(obj1)) { 44 | if (key in obj2) { 45 | if (this.options.excludeKeys.includes(key)) { 46 | continue 47 | } 48 | score += 20 49 | const value2 = obj2[key] 50 | const change = this.diff(value1, value2) 51 | if (!change.equal) { 52 | result[key] = change.result 53 | equal = false 54 | } else if (this.options.full || this.options.outputKeys.includes(key)) { 55 | result[key] = value1 56 | } 57 | // console.log(`key ${key} change.score=${change.score} ${change.result}`) 58 | score += Math.min(20, Math.max(-10, change.score / 5)) // BATMAN! 59 | } 60 | } 61 | 62 | if (equal) { 63 | score = 100 * Math.max(Object.keys(obj1).length, 0.5) 64 | if (!this.options.full) { 65 | result = undefined 66 | } 67 | } else { 68 | score = Math.max(0, score) 69 | } 70 | 71 | // console.log(`objectDiff(${JSON.stringify(obj1, null, 2)} <=> ${JSON.stringify(obj2, null, 2)}) == ${JSON.stringify({score, result, equal})}`) 72 | return { score, result, equal } 73 | } 74 | 75 | findMatchingObject (item, index, fuzzyOriginals) { 76 | // console.log('findMatchingObject: ' + JSON.stringify({item, fuzzyOriginals}, null, 2)) 77 | let bestMatch = null 78 | 79 | for (const [key, { item: candidate, index: matchIndex }] of Object.entries(fuzzyOriginals)) { 80 | if (key !== '__next') { 81 | const indexDistance = Math.abs(matchIndex - index) 82 | if (extendedTypeOf(item) === extendedTypeOf(candidate)) { 83 | const { score } = this.diff(item, candidate) 84 | if ( 85 | !bestMatch || 86 | score > bestMatch.score || 87 | (score === bestMatch.score && 88 | indexDistance < bestMatch.indexDistance) 89 | ) { 90 | bestMatch = { score, key, indexDistance } 91 | } 92 | } 93 | } 94 | } 95 | 96 | // console.log('findMatchingObject result = ' + JSON.stringify(bestMatch, null, 2)); 97 | return bestMatch 98 | } 99 | 100 | scalarize (array, originals, fuzzyOriginals) { 101 | // console.log('scalarize', array, originals, fuzzyOriginals); 102 | const fuzzyMatches = [] 103 | if (fuzzyOriginals) { 104 | // Find best fuzzy match for each object in the array 105 | const keyScores = {} 106 | for (let index = 0; index < array.length; index++) { 107 | const item = array[index] 108 | if (this.isScalar(item)) { 109 | continue 110 | } 111 | const bestMatch = this.findMatchingObject(item, index, fuzzyOriginals) 112 | if (bestMatch && (!keyScores[bestMatch.key] || bestMatch.score > keyScores[bestMatch.key].score)) { 113 | keyScores[bestMatch.key] = { score: bestMatch.score, index } 114 | } 115 | } 116 | for (const [key, match] of Object.entries(keyScores)) { 117 | fuzzyMatches[match.index] = key 118 | } 119 | } 120 | 121 | const result = [] 122 | for (let index = 0; index < array.length; index++) { 123 | const item = array[index] 124 | if (this.isScalar(item)) { 125 | result.push(item) 126 | } else { 127 | const key = fuzzyMatches[index] || '__$!SCALAR' + originals.__next++ 128 | originals[key] = { item, index } 129 | result.push(key) 130 | } 131 | } 132 | // console.log('Scalarize result', result); 133 | return result 134 | } 135 | 136 | isScalarized (item, originals) { 137 | return typeof item === 'string' && item in originals 138 | } 139 | 140 | descalarize (item, originals) { 141 | if (this.isScalarized(item, originals)) { 142 | return originals[item].item 143 | } else { 144 | return item 145 | } 146 | } 147 | 148 | arrayDiff (obj1, obj2) { 149 | const originals1 = { __next: 1 } 150 | const seq1 = this.scalarize(obj1, originals1) 151 | const originals2 = { __next: originals1.__next } 152 | const seq2 = this.scalarize(obj2, originals2, originals1) 153 | 154 | if (this.options.sort) { 155 | seq1.sort() 156 | seq2.sort() 157 | } 158 | const opcodes = new SequenceMatcher(null, seq1, seq2).getOpcodes() 159 | 160 | // console.log(`arrayDiff:\nobj1 = ${JSON.stringify(obj1, null, 2)}\nobj2 = ${JSON.stringify(obj2, null, 2)}\nseq1 = ${JSON.stringify(seq1, null, 2)}\nseq2 = ${JSON.stringify(seq2, null, 2)}\nopcodes = ${JSON.stringify(opcodes, null, 2)}`) 161 | 162 | let result = [] 163 | let score = 0 164 | let equal = true 165 | 166 | for (const [op, i1, i2, j1, j2] of opcodes) { 167 | let i, j 168 | let asc, end 169 | let asc1, end1 170 | let asc2, end2 171 | if (!(op === 'equal' || (this.options.keysOnly && op === 'replace'))) { 172 | equal = false 173 | } 174 | 175 | switch (op) { 176 | case 'equal': 177 | for ( 178 | i = i1, end = i2, asc = i1 <= end; 179 | asc ? i < end : i > end; 180 | asc ? i++ : i-- 181 | ) { 182 | const item = seq1[i] 183 | if (this.isScalarized(item, originals1)) { 184 | if (!this.isScalarized(item, originals2)) { 185 | throw new Error( 186 | `internal bug: isScalarized(item, originals1) != isScalarized(item, originals2) for item ${JSON.stringify( 187 | item 188 | )}` 189 | ) 190 | } 191 | const item1 = this.descalarize(item, originals1) 192 | const item2 = this.descalarize(item, originals2) 193 | const change = this.diff(item1, item2) 194 | if (!change.equal) { 195 | result.push(['~', change.result]) 196 | equal = false 197 | } else { 198 | if (this.options.full || this.options.keepUnchangedValues) { 199 | result.push([' ', item1]) 200 | } else { 201 | result.push([' ']) 202 | } 203 | } 204 | } else { 205 | if (this.options.full || this.options.keepUnchangedValues) { 206 | result.push([' ', item]) 207 | } else { 208 | result.push([' ']) 209 | } 210 | } 211 | score += 10 212 | } 213 | break 214 | case 'delete': 215 | for ( 216 | i = i1, end1 = i2, asc1 = i1 <= end1; 217 | asc1 ? i < end1 : i > end1; 218 | asc1 ? i++ : i-- 219 | ) { 220 | result.push(['-', this.descalarize(seq1[i], originals1)]) 221 | score -= 5 222 | } 223 | break 224 | case 'insert': 225 | for ( 226 | j = j1, end2 = j2, asc2 = j1 <= end2; 227 | asc2 ? j < end2 : j > end2; 228 | asc2 ? j++ : j-- 229 | ) { 230 | result.push(['+', this.descalarize(seq2[j], originals2)]) 231 | score -= 5 232 | } 233 | break 234 | case 'replace': 235 | if (!this.options.keysOnly) { 236 | let asc3, end3 237 | let asc4, end4 238 | for ( 239 | i = i1, end3 = i2, asc3 = i1 <= end3; 240 | asc3 ? i < end3 : i > end3; 241 | asc3 ? i++ : i-- 242 | ) { 243 | result.push(['-', this.descalarize(seq1[i], originals1)]) 244 | score -= 5 245 | } 246 | for ( 247 | j = j1, end4 = j2, asc4 = j1 <= end4; 248 | asc4 ? j < end4 : j > end4; 249 | asc4 ? j++ : j-- 250 | ) { 251 | result.push(['+', this.descalarize(seq2[j], originals2)]) 252 | score -= 5 253 | } 254 | } else { 255 | let asc5, end5 256 | for ( 257 | i = i1, end5 = i2, asc5 = i1 <= end5; 258 | asc5 ? i < end5 : i > end5; 259 | asc5 ? i++ : i-- 260 | ) { 261 | const change = this.diff( 262 | this.descalarize(seq1[i], originals1), 263 | this.descalarize(seq2[i - i1 + j1], originals2) 264 | ) 265 | if (!change.equal) { 266 | result.push(['~', change.result]) 267 | equal = false 268 | } else { 269 | result.push([' ']) 270 | } 271 | } 272 | } 273 | break 274 | } 275 | } 276 | 277 | if (equal || opcodes.length === 0) { 278 | if (!this.options.full) { 279 | result = undefined 280 | } else { 281 | result = obj1 282 | } 283 | score = 100 284 | } else { 285 | score = Math.max(0, score) 286 | } 287 | 288 | return { score, result, equal } 289 | } 290 | 291 | diff (obj1, obj2) { 292 | const type1 = extendedTypeOf(obj1) 293 | const type2 = extendedTypeOf(obj2) 294 | 295 | if (type1 === type2) { 296 | switch (type1) { 297 | case 'object': 298 | return this.objectDiff(obj1, obj2) 299 | 300 | case 'array': 301 | return this.arrayDiff(obj1, obj2) 302 | } 303 | } 304 | 305 | // Compare primitives or complex objects of different types 306 | let score = 100 307 | let result = obj1 308 | let equal 309 | if (!this.options.keysOnly) { 310 | if (type1 === 'date' && type2 === 'date') { 311 | equal = obj1.getTime() === obj2.getTime() 312 | } else { 313 | equal = obj1 === obj2 314 | } 315 | if (!equal) { 316 | score = 0 317 | 318 | if (this.options.outputNewOnly) { 319 | result = obj2 320 | } else { 321 | result = { __old: obj1, __new: obj2 } 322 | } 323 | } else if (!this.options.full) { 324 | result = undefined 325 | } 326 | } else { 327 | equal = true 328 | result = undefined 329 | } 330 | 331 | // console.log(`diff: equal ${equal} obj1 ${obj1} obj2 ${obj2} score ${score} ${result || ''}`) 332 | 333 | return { score, result, equal } 334 | } 335 | } 336 | 337 | function diff (obj1, obj2, options = {}) { 338 | if (options.precision !== undefined) { 339 | obj1 = roundObj(obj1, options.precision) 340 | obj2 = roundObj(obj2, options.precision) 341 | } 342 | return new JsonDiff(options).diff(obj1, obj2).result 343 | } 344 | 345 | function diffString (obj1, obj2, options = {}) { 346 | return colorize(diff(obj1, obj2, options), options) 347 | } 348 | 349 | module.exports = { diff, diffString, colorize, colorizeToCallback } 350 | -------------------------------------------------------------------------------- /lib/util.js: -------------------------------------------------------------------------------- 1 | const extendedTypeOf = function (obj) { 2 | const result = typeof obj 3 | if (obj == null) { 4 | return 'null' 5 | } else if (result === 'object' && obj.constructor === Array) { 6 | return 'array' 7 | } else if (result === 'object' && obj instanceof Date) { 8 | return 'date' 9 | } else { 10 | return result 11 | } 12 | } 13 | 14 | const roundObj = function (data, precision) { 15 | const type = typeof data 16 | if (type === 'array') { 17 | return data.map((x) => roundObj(x, precision)) 18 | } else if (type === 'object') { 19 | for (const key in data) { 20 | data[key] = roundObj(data[key], precision) 21 | } 22 | return data 23 | } else if ( 24 | type === 'number' && 25 | Number.isFinite(data) && 26 | !Number.isInteger(data) 27 | ) { 28 | return +data.toFixed(precision) 29 | } else { 30 | return data 31 | } 32 | } 33 | 34 | module.exports = { extendedTypeOf, roundObj } 35 | -------------------------------------------------------------------------------- /old-coffee-lib/cli.coffee: -------------------------------------------------------------------------------- 1 | fs = require 'fs' 2 | tty = require 'tty' 3 | 4 | { diff } = require './index' 5 | { colorize } = require './colorize' 6 | 7 | module.exports = (argv) -> 8 | options = require('dreamopt') [ 9 | "Usage: json-diff [-vjCk] first.json second.json" 10 | 11 | "Arguments:" 12 | " first.json Old file #var(file1) #required" 13 | " second.json New file #var(file2) #required" 14 | 15 | "General options:" 16 | " -v, --verbose Output progress info" 17 | " -C, --[no-]color Colored output" 18 | " -j, --raw-json Display raw JSON encoding of the diff #var(raw)" 19 | " -k, --keys-only Compare only the keys, ignore the differences in values #var(keysOnly)" 20 | ], argv 21 | 22 | process.stderr.write "#{JSON.stringify(options, null, 2)}\n" if options.verbose 23 | 24 | process.stderr.write "Loading files...\n" if options.verbose 25 | data1 = fs.readFileSync(options.file1, 'utf8') 26 | data2 = fs.readFileSync(options.file2, 'utf8') 27 | 28 | process.stderr.write "Parsing old file...\n" if options.verbose 29 | json1 = JSON.parse(data1) 30 | process.stderr.write "Parsing new file...\n" if options.verbose 31 | json2 = JSON.parse(data2) 32 | 33 | process.stderr.write "Running diff...\n" if options.verbose 34 | result = diff(json1, json2, options) 35 | 36 | options.color ?= tty.isatty(process.stdout.fd) 37 | 38 | if result 39 | if options.raw 40 | process.stderr.write "Serializing JSON output...\n" if options.verbose 41 | process.stdout.write JSON.stringify(result, null, 2) + '\n' 42 | else 43 | process.stderr.write "Producing colored output...\n" if options.verbose 44 | process.stdout.write colorize(result, color: options.color) 45 | else 46 | process.stderr.write "No diff" if options.verbose 47 | 48 | process.exit 1 if result 49 | -------------------------------------------------------------------------------- /old-coffee-lib/colorize.coffee: -------------------------------------------------------------------------------- 1 | color = require 'colors/safe' 2 | 3 | { extendedTypeOf } = require './util' 4 | 5 | Theme = 6 | ' ': (s) -> s 7 | '+': color.green 8 | '-': color.red 9 | 10 | 11 | subcolorizeToCallback = (key, diff, output, color, indent) -> 12 | prefix = if key then "#{key}: " else '' 13 | subindent = indent + ' ' 14 | 15 | switch extendedTypeOf(diff) 16 | when 'object' 17 | if ('__old' of diff) and ('__new' of diff) and (Object.keys(diff).length is 2) 18 | subcolorizeToCallback(key, diff.__old, output, '-', indent) 19 | subcolorizeToCallback(key, diff.__new, output, '+', indent) 20 | else 21 | output color, "#{indent}#{prefix}{" 22 | for own subkey, subvalue of diff 23 | if m = subkey.match /^(.*)__deleted$/ 24 | subcolorizeToCallback(m[1], subvalue, output, '-', subindent) 25 | else if m = subkey.match /^(.*)__added$/ 26 | subcolorizeToCallback(m[1], subvalue, output, '+', subindent) 27 | else 28 | subcolorizeToCallback(subkey, subvalue, output, color, subindent) 29 | output color, "#{indent}}" 30 | 31 | when 'array' 32 | output color, "#{indent}#{prefix}[" 33 | 34 | looksLikeDiff = yes 35 | for item in diff 36 | if (extendedTypeOf(item) isnt 'array') or !((item.length is 2) or ((item.length is 1) and (item[0] is ' '))) or !(typeof(item[0]) is 'string') or item[0].length != 1 or !(item[0] in [' ', '-', '+', '~']) 37 | looksLikeDiff = no 38 | 39 | if looksLikeDiff 40 | for [op, subvalue] in diff 41 | if op is ' ' && !subvalue? 42 | output(' ', subindent + '...') 43 | else 44 | unless op in [' ', '~', '+', '-'] 45 | throw new Error("Unexpected op '#{op}' in #{JSON.stringify(diff, null, 2)}") 46 | op = ' ' if op is '~' 47 | subcolorizeToCallback('', subvalue, output, op, subindent) 48 | else 49 | for subvalue in diff 50 | subcolorizeToCallback('', subvalue, output, color, subindent) 51 | 52 | output color, "#{indent}]" 53 | 54 | else 55 | if diff == 0 or diff == null or diff == false or diff 56 | output(color, indent + prefix + JSON.stringify(diff)) 57 | 58 | 59 | 60 | colorizeToCallback = (diff, output) -> 61 | subcolorizeToCallback('', diff, output, ' ', '') 62 | 63 | 64 | colorizeToArray = (diff) -> 65 | output = [] 66 | colorizeToCallback(diff, (color, line) -> output.push "#{color}#{line}") 67 | return output 68 | 69 | 70 | colorize = (diff, options={}) -> 71 | output = [] 72 | colorizeToCallback diff, (color, line) -> 73 | if options.color ? yes 74 | output.push (options.theme?[color] ? Theme[color])("#{color}#{line}") + "\n" 75 | else 76 | output.push "#{color}#{line}\n" 77 | return output.join('') 78 | 79 | 80 | module.exports = { colorize, colorizeToArray, colorizeToCallback } 81 | -------------------------------------------------------------------------------- /old-coffee-lib/index.coffee: -------------------------------------------------------------------------------- 1 | { SequenceMatcher } = require '@ewoudenberg/difflib' 2 | { extendedTypeOf } = require './util' 3 | { colorize } = require './colorize' 4 | 5 | isScalar = (obj) -> (typeof obj isnt 'object' || obj == null) 6 | 7 | 8 | objectDiff = (obj1, obj2, options = {}) -> 9 | result = {} 10 | score = 0 11 | 12 | for own key, value1 of obj1 when !(key of obj2) 13 | result["#{key}__deleted"] = value1 14 | score -= 30 15 | 16 | for own key, value2 of obj2 when !(key of obj1) 17 | result["#{key}__added"] = value2 18 | score -= 30 19 | 20 | for own key, value1 of obj1 when key of obj2 21 | score += 20 22 | value2 = obj2[key] 23 | [subscore, change] = diffWithScore(value1, value2, options) 24 | if change 25 | result[key] = change 26 | else 27 | result[key] = value1 28 | # console.log "key #{key} subscore=#{subscore} #{value1}" 29 | score += Math.min(20, Math.max(-10, subscore / 5)) # BATMAN! 30 | 31 | if Object.keys(result).length is 0 32 | [score, result] = [100 * Math.max(Object.keys(obj1).length, 0.5), undefined] 33 | else 34 | score = Math.max(0, score) 35 | 36 | # console.log "objectDiff(#{JSON.stringify(obj1, null, 2)} <=> #{JSON.stringify(obj2, null, 2)}) == #{JSON.stringify([score, result])}" 37 | 38 | return [score, result] 39 | 40 | 41 | findMatchingObject = (item, index, fuzzyOriginals) -> 42 | # console.log "findMatchingObject: " + JSON.stringify({item, fuzzyOriginals}, null, 2) 43 | bestMatch = null 44 | 45 | matchIndex = 0 46 | for own key, candidate of fuzzyOriginals when key isnt '__next' 47 | indexDistance = Math.abs(matchIndex - index) 48 | if extendedTypeOf(item) == extendedTypeOf(candidate) 49 | score = diffScore(item, candidate) 50 | if !bestMatch || score > bestMatch.score || (score == bestMatch.score && indexDistance < bestMatch.indexDistance) 51 | bestMatch = { score, key, indexDistance } 52 | matchIndex++ 53 | 54 | # console.log "findMatchingObject result = " + JSON.stringify(bestMatch, null, 2) 55 | bestMatch 56 | 57 | 58 | scalarize = (array, originals, fuzzyOriginals) -> 59 | fuzzyMatches = [] 60 | if fuzzyOriginals 61 | # Find best fuzzy match for each object in the array 62 | keyScores = {} 63 | for item, index in array 64 | if isScalar item 65 | continue 66 | bestMatch = findMatchingObject(item, index, fuzzyOriginals) 67 | if !keyScores[bestMatch.key] || bestMatch.score > keyScores[bestMatch.key].score 68 | keyScores[bestMatch.key] = {score: bestMatch.score, index} 69 | for key, match of keyScores 70 | fuzzyMatches[match.index] = key 71 | 72 | for item, index in array 73 | if isScalar item 74 | item 75 | else 76 | key = fuzzyMatches[index] || "__$!SCALAR" + originals.__next++ 77 | originals[key] = item 78 | key 79 | 80 | isScalarized = (item, originals) -> 81 | (typeof item is 'string') && (item of originals) 82 | 83 | descalarize = (item, originals) -> 84 | if isScalarized(item, originals) 85 | originals[item] 86 | else 87 | item 88 | 89 | 90 | arrayDiff = (obj1, obj2, options = {}) -> 91 | originals1 = { __next: 1 } 92 | seq1 = scalarize(obj1, originals1) 93 | originals2 = { __next: originals1.__next } 94 | seq2 = scalarize(obj2, originals2, originals1) 95 | 96 | opcodes = new SequenceMatcher(null, seq1, seq2).getOpcodes() 97 | 98 | # console.log "arrayDiff:\nobj1 = #{JSON.stringify(obj1, null, 2)}\nobj2 = #{JSON.stringify(obj2, null, 2)}\nseq1 = #{JSON.stringify(seq1, null, 2)}\nseq2 = #{JSON.stringify(seq2, null, 2)}\nopcodes = #{JSON.stringify(opcodes, null, 2)}" 99 | 100 | result = [] 101 | score = 0 102 | 103 | allEqual = yes 104 | for [op, i1, i2, j1, j2] in opcodes 105 | if !(op is 'equal' or (options.keysOnly and op is 'replace')) 106 | allEqual = no 107 | 108 | switch op 109 | when 'equal' 110 | for i in [i1 ... i2] 111 | item = seq1[i] 112 | if isScalarized(item, originals1) 113 | unless isScalarized(item, originals2) 114 | throw new AssertionError("internal bug: isScalarized(item, originals1) != isScalarized(item, originals2) for item #{JSON.stringify(item)}") 115 | item1 = descalarize(item, originals1) 116 | item2 = descalarize(item, originals2) 117 | change = diff(item1, item2, options) 118 | if change 119 | result.push ['~', change] 120 | allEqual = no 121 | else 122 | result.push [' ', item1] 123 | else 124 | result.push [' ', item] 125 | score += 10 126 | when 'delete' 127 | for i in [i1 ... i2] 128 | result.push ['-', descalarize(seq1[i], originals1)] 129 | score -= 5 130 | when 'insert' 131 | for j in [j1 ... j2] 132 | result.push ['+', descalarize(seq2[j], originals2)] 133 | score -= 5 134 | when 'replace' 135 | if !options.keysOnly 136 | for i in [i1 ... i2] 137 | result.push ['-', descalarize(seq1[i], originals1)] 138 | score -= 5 139 | for j in [j1 ... j2] 140 | result.push ['+', descalarize(seq2[j], originals2)] 141 | score -= 5 142 | else 143 | for i in [i1 ... i2] 144 | change = diff(descalarize(seq1[i], originals1), descalarize(seq2[i - i1 + j1], originals2), options) 145 | if change 146 | result.push ['~', change] 147 | allEqual = no 148 | else 149 | result.push [' '] 150 | 151 | if allEqual or (opcodes.length is 0) 152 | # result = undefined 153 | score = 100 154 | else 155 | score = Math.max(0, score) 156 | 157 | return [score, result] 158 | 159 | 160 | diffWithScore = (obj1, obj2, options = {}) -> 161 | type1 = extendedTypeOf obj1 162 | type2 = extendedTypeOf obj2 163 | 164 | if type1 == type2 165 | switch type1 166 | when 'object' 167 | return objectDiff(obj1, obj2, options) 168 | when 'array' 169 | return arrayDiff(obj1, obj2, options) 170 | 171 | if !options.keysOnly 172 | if obj1 != obj2 173 | [0, { __old: obj1, __new: obj2 }] 174 | else 175 | [100, obj1] 176 | else 177 | [100, undefined] 178 | 179 | diff = (obj1, obj2, options = {}) -> 180 | [score, change] = diffWithScore(obj1, obj2, options) 181 | return change 182 | 183 | diffScore = (obj1, obj2, options = {}) -> 184 | [score, change] = diffWithScore(obj1, obj2, options) 185 | return score 186 | 187 | diffString = (obj1, obj2, colorizeOptions, diffOptions = {}) -> 188 | return colorize(diff(obj1, obj2, diffOptions), colorizeOptions) 189 | 190 | 191 | 192 | module.exports = { diff, diffString } 193 | -------------------------------------------------------------------------------- /old-coffee-lib/util.coffee: -------------------------------------------------------------------------------- 1 | 2 | extendedTypeOf = (obj) -> 3 | result = typeof obj 4 | if !obj? 5 | 'null' 6 | else if result is 'object' and obj.constructor is Array 7 | 'array' 8 | else 9 | result 10 | 11 | module.exports = { extendedTypeOf } 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Andrey Tarantsov ", 3 | "contributors": [ 4 | "Gavriel Fleischer ", 5 | "Eric Woudenberg " 6 | ], 7 | "name": "json-diff", 8 | "description": "JSON diff", 9 | "version": "1.0.6", 10 | "homepage": "https://github.com/andreyvit/json-diff", 11 | "license": "MIT", 12 | "repository": { 13 | "url": "git@github.com:andreyvit/json-diff.git" 14 | }, 15 | "main": "lib/index.js", 16 | "bin": "bin/json-diff.js", 17 | "scripts": { 18 | "fix": "eslint --fix lib", 19 | "test": "coffee -c test; mocha test/*.js", 20 | "cov": "rm -rf lib-cov; jscoverage lib lib-cov; env JSLIB=lib-cov mocha -R dot && env JSLIB=lib-cov mocha -R html-cov >coverage.html; open coverage.html" 21 | }, 22 | "dependencies": { 23 | "@ewoudenberg/difflib": "0.1.0", 24 | "colors": "^1.4.0", 25 | "dreamopt": "~0.8.0" 26 | }, 27 | "devDependencies": { 28 | "coffeescript": "^2.6.1", 29 | "eslint": "^8", 30 | "eslint-config-standard": "^17", 31 | "jscoverage": "^0.6.0", 32 | "mocha": "9.1.3" 33 | }, 34 | "engines": { 35 | "node": "*" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /test/.diff_test.coffee.swp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andreyvit/json-diff/76adeca7de9c86bb156dfecf6e3f43dc4237ab02/test/.diff_test.coffee.swp -------------------------------------------------------------------------------- /test/colorize_test.coffee: -------------------------------------------------------------------------------- 1 | assert = require 'assert' 2 | 3 | { colorize, colorizeToArray } = require "../#{process.env.JSLIB or 'lib'}/colorize" 4 | 5 | describe 'colorizeToArray', -> 6 | 7 | it "should return ' ' for a scalar value", -> 8 | assert.deepEqual [' 42'], colorizeToArray(42) 9 | 10 | it "should return ' ' for 'null' value", -> 11 | assert.deepEqual [' null'], colorizeToArray(null) 12 | 13 | it "should return ' ' for 'false' value", -> 14 | assert.deepEqual [' false'], colorizeToArray(false) 15 | 16 | it "should return '-', '+' for a scalar diff", -> 17 | assert.deepEqual ['-42', '+10'], colorizeToArray({ __old: 42, __new: 10 }) 18 | 19 | it "should return '-', '+' for 'null' and 'false' diff", -> 20 | assert.deepEqual ['-false', '+null'], colorizeToArray({ __old: false, __new: null }) 21 | 22 | it "should return '-: ' for an object diff with a removed key", -> 23 | assert.deepEqual [' {', '- foo: 42', ' }'], colorizeToArray({ foo__deleted: 42 }) 24 | 25 | it "should return '+: ' for an object diff with an added key", -> 26 | assert.deepEqual [' {', '+ foo: 42', ' }'], colorizeToArray({ foo__added: 42 }) 27 | 28 | it "should return '+: ' for an object diff with an added key with 'null' value", -> 29 | assert.deepEqual [' {', '+ foo: null', ' }'], colorizeToArray({ foo__added: null }) 30 | 31 | it "should return '+: ' for an object diff with an added key with 'false' value", -> 32 | assert.deepEqual [' {', '+ foo: false', ' }'], colorizeToArray({ foo__added: false }) 33 | 34 | it "should return '+: ' for an object diff with an added key and a non-scalar value", -> 35 | assert.deepEqual [' {', '+ foo: {', '+ bar: 42', '+ }', ' }'], colorizeToArray({ foo__added: { bar: 42 } }) 36 | 37 | it "should return ' : ' for an object diff with a modified key", -> 38 | assert.deepEqual [' {', '- foo: 42', '+ foo: 10', ' }'], colorizeToArray({ foo: { __old: 42, __new: 10 } }) 39 | 40 | it "should return '+' for an array diff", -> 41 | assert.deepEqual [' [', ' 10', '+ 20', ' 30', ' ]'], colorizeToArray([[' ', 10], ['+', 20], [' ', 30]]) 42 | 43 | it "should return '-' for an array diff", -> 44 | assert.deepEqual [' [', ' 10', '- 20', ' 30', ' ]'], colorizeToArray([[' ', 10], ['-', 20], [' ', 30]]) 45 | 46 | it "should handle an array diff with subobject diff", -> 47 | input = [ [" "], ["~", {"foo__added": 42}], [" "] ] 48 | expected = [" [", " ...", " {", "+ foo: 42", " }", " ...", " ]"] 49 | assert.deepEqual colorizeToArray(input), expected 50 | 51 | it "should collapse long sequences of identical subobjects into one '...'", -> 52 | input = [ [" "], [" "], [" "], [" "], [" "], [" "], [" "], ["~", {"foo__added": 42}], [" "] ] 53 | expected = [" [", " ... (7 entries)", " {", "+ foo: 42", " }", " ...", " ]"] 54 | assert.deepEqual colorizeToArray(input, {maxElisions: 5}), expected 55 | 56 | 57 | describe 'colorize', -> 58 | 59 | it "should return a string with ANSI escapes", -> 60 | assert.equal colorize({ foo: { __old: 42, __new: 10 } }), " {\n\u001b[31m- foo: 42\u001b[39m\n\u001b[32m+ foo: 10\u001b[39m\n }\n" 61 | 62 | it "should return a string without ANSI escapes on { color: false }", -> 63 | assert.equal colorize({ foo: { __old: 42, __new: 10 } }, color: no), " {\n- foo: 42\n+ foo: 10\n }\n" 64 | 65 | -------------------------------------------------------------------------------- /test/diff_test.coffee: -------------------------------------------------------------------------------- 1 | fs = require 'fs' 2 | Path = require 'path' 3 | assert = require 'assert' 4 | 5 | { diff, diffString } = require "../#{process.env.JSLIB or 'lib'}/index" 6 | 7 | describe 'diff', -> 8 | 9 | describe 'with simple scalar values', -> 10 | 11 | it "should return undefined for two identical numbers", -> 12 | assert.deepEqual undefined, diff(42, 42) 13 | 14 | it "should return undefined for two identical strings", -> 15 | assert.deepEqual undefined, diff("foo", "foo") 16 | 17 | it "should return undefined for two identical dates", -> 18 | date = new Date() 19 | assert.deepEqual undefined, diff(date, date) 20 | 21 | it "should return { __old: , __new: } object for two different numbers", -> 22 | assert.deepEqual { __old: 42, __new: 10 }, diff(42, 10) 23 | 24 | it "should return { __old: , __new: } object for two different dates", -> 25 | oldDate = new Date() 26 | newDate = new Date() 27 | newDate.setFullYear(oldDate.getFullYear()-4) 28 | assert.deepEqual { __old: oldDate, __new: newDate }, diff(oldDate, newDate) 29 | 30 | describe 'with objects', -> 31 | 32 | it "should return undefined for two empty objects", -> 33 | assert.deepEqual undefined, diff({ }, { }) 34 | 35 | it "should return undefined for two objects with identical contents", -> 36 | assert.deepEqual undefined, diff({ foo: 42, bar: 10 }, { foo: 42, bar: 10 }) 37 | 38 | it "should return undefined for two object hierarchies with identical contents", -> 39 | assert.deepEqual undefined, diff({ foo: 42, bar: { bbbar: 10, bbboz: 11 } }, { foo: 42, bar: { bbbar: 10, bbboz: 11 } }) 40 | 41 | it "should return { __deleted: } when the second object is missing a key", -> 42 | assert.deepEqual { foo__deleted: 42 }, diff({ foo: 42, bar: 10 }, { bar: 10 }) 43 | 44 | it "should return { __added: } when the first object is missing a key", -> 45 | assert.deepEqual { foo__added: 42 }, diff({ bar: 10 }, { foo: 42, bar: 10 }) 46 | 47 | it "should return { : { __old: , __new: } } for two objects with different scalar values for a key", -> 48 | assert.deepEqual { foo: { __old: 42, __new: 10 } }, diff({ foo: 42 }, { foo: 10 }) 49 | 50 | it "should return { : } with a recursive diff for two objects with different values for a key", -> 51 | assert.deepEqual { bar: { bbboz__deleted: 11, bbbar: { __old: 10, __new: 12 } } }, diff({ foo: 42, bar: { bbbar: 10, bbboz: 11 }}, { foo: 42, bar: { bbbar: 12 }}) 52 | 53 | describe 'with arrays of scalars', -> 54 | 55 | it "should return undefined for two arrays with identical contents", -> 56 | assert.deepEqual undefined, diff([10, 20, 30], [10, 20, 30]) 57 | 58 | it "should return [..., ['-', ], ...] for two arrays when the second array is missing a value", -> 59 | assert.deepEqual [[' '], ['-', 20], [' ']], diff([10, 20, 30], [10, 30]) 60 | 61 | it "should return [..., ['+', ], ...] for two arrays when the second one has an extra value", -> 62 | assert.deepEqual [[' '], ['+', 20], [' ']], diff([10, 30], [10, 20, 30]) 63 | 64 | it "should return [..., ['+', ]] for two arrays when the second one has an extra value at the end (edge case test)", -> 65 | assert.deepEqual [[' '], [' '], ['+', 30]], diff([10, 20], [10, 20, 30]) 66 | 67 | it "should return [['-', true], ['+', 'true']] for two arrays with identical strings of different types", -> 68 | assert.deepEqual undefined, diff([10, 20, 30], [10, 20, 30]) 69 | 70 | describe 'with arrays of objects', -> 71 | 72 | it "should return undefined for two arrays with identical contents", -> 73 | assert.deepEqual undefined, diff([{ foo: 10 }, { foo: 20 }, { foo: 30 }], [{ foo: 10 }, { foo: 20 }, { foo: 30 }]) 74 | 75 | it "should return undefined for two arrays with identical, empty object contents", -> 76 | assert.deepEqual undefined, diff([{ }], [{ }]) 77 | 78 | it "should return undefined for two arrays with identical, empty array contents", -> 79 | assert.deepEqual undefined, diff([[]], [[]]) 80 | 81 | it "should return undefined for two arrays with identical array contents including 'null'", -> 82 | assert.deepEqual undefined, diff([1, null, null], [1, null, null]) 83 | 84 | it "should return undefined for two arrays with identical, repeated contents", -> 85 | assert.deepEqual undefined, diff([{ a: 1, b: 2 }, { a: 1, b: 2 }], [{ a: 1, b: 2 }, { a: 1, b: 2 }]) 86 | 87 | it "should return [..., ['-', ], ...] for two arrays when the second array is missing a value", -> 88 | assert.deepEqual [[' '], ['-', { foo: 20 }], [' ']], diff([{ foo: 10 }, { foo: 20 }, { foo: 30 }], [{ foo: 10 }, { foo: 30 }]) 89 | 90 | it "should return [..., ['+', ], ...] for two arrays when the second array has an extra value", -> 91 | assert.deepEqual [[' '], ['+', { foo: 20 }], [' ']], diff([{ foo: 10 }, { foo: 30 }], [{ foo: 10 }, { foo: 20 }, { foo: 30 }]) 92 | 93 | it "should return [['+', ], ..., ['+', ]] for two arrays containing objects of 3 or more properties when the second array has extra values (fixes issue #57)", -> 94 | assert.deepEqual([ [ "+", { "key1": "b", "key2": "1", "key3": "m" } ], [ " " ], [ "+", { "key1": "c", "key2": "1", "key3": "dm" } ]], 95 | diff([ { "key1": "a", "key2": "12", "key3": "cm" } ], [ { "key1": "b", "key2": "1", "key3": "m" }, { "key1": "a", "key2": "12", "key3": "cm" }, { "key1": "c", "key2": "1", "key3": "dm" } ]) 96 | ) 97 | 98 | it "should return [..., ['+', ], ...] for two arrays when the second array has a new but nearly identical object added", -> 99 | assert.deepEqual [[' '],[ '+', { name: 'Foo', a: 3, b: 1, c: 1 }], [' ']], diff([{ "name": "Foo", "a": 3, "b": 1 },{ foo: 10 }], [{ "name": "Foo", "a": 3, "b": 1 },{ "name": "Foo", "a": 3, "b": 1, "c": 1 },{ foo: 10 }]) 100 | 101 | it "should return [..., ['~', ], ...] for two arrays when an item has been modified", -> 102 | assert.deepEqual( [[' '], ['~', { foo: { __old: 20, __new: 21 } }], [' ']], 103 | diff([{ foo: 10, bar: { bbbar: 10, bbboz: 11 } }, 104 | { foo: 20, bar: { bbbar: 50, bbboz: 25 } }, 105 | { foo: 30, bar: { bbbar: 92, bbboz: 34 } }], 106 | [{ foo: 10, bar: { bbbar: 10, bbboz: 11 } }, 107 | { foo: 21, bar: { bbbar: 50, bbboz: 25 } }, 108 | { foo: 30, bar: { bbbar: 92, bbboz: 34 } }]) 109 | ) 110 | 111 | describe 'with reported bugs', -> 112 | 113 | it "should handle type mismatch during scalarize", -> 114 | assert.deepEqual( { "s": [ [ "~", [ [ "~", { "b": { "__old": "123", "__new": "abc" } } ] ] ], [ "+", [] ] ] }, 115 | diff({"s": [[{ "b": "123" }]]}, {"s": [[{ "b": "abc" }], []]} ) ) 116 | 117 | it "should handle mixed scalars and non-scalars in scalarize", -> 118 | assert.deepEqual( undefined, 119 | diff(["a", {"foo": "bar"}, {"foo": "bar"}], ["a", {"foo": "bar"}, {"foo": "bar"}] ) ) 120 | 121 | describe 'diff({sort: true})', -> 122 | describe 'with arrays', -> 123 | it "should return undefined for two arrays with the same contents in different order", -> 124 | assert.deepEqual undefined, diff( [1, undefined, null, true, "", {a:4}, [7, 8]], [[7, 8], {a:4}, true, null, undefined, "", 1], {sort: true}) 125 | 126 | describe 'diff({keepUnchangedValues: true})', -> 127 | describe 'with nested object', -> 128 | it "should return partial object with modified and unmodified elements in the edited scope", -> 129 | assert.deepEqual { "a" : { "b" : [ [" ", 1], ["-", 2], [" ", 3], ["+", 4]] } }, diff( { "a" : { "b" : [ 1, 2, 3], "c": "d" } }, { "a" : { "b" : [ 1, 3, 4], "c": "d"} }, {keepUnchangedValues: true}) 130 | 131 | describe 'diff({full: true})', -> 132 | 133 | describe 'with simple scalar values', -> 134 | 135 | it "should return the number for two identical numbers", -> 136 | assert.deepEqual 42, diff(42, 42, {full: true}) 137 | 138 | it "should return the string for two identical strings", -> 139 | assert.deepEqual "foo", diff("foo", "foo", {full: true}) 140 | 141 | it "should return { __old: , __new: } object for two different numbers", -> 142 | assert.deepEqual { __new: 10, __old: 42 }, diff(42, 10, {full: true}) 143 | 144 | describe 'with objects', -> 145 | 146 | it "should return an empty object for two empty objects", -> 147 | assert.deepEqual {}, diff({ }, { }, {full: true}) 148 | 149 | it "should return the object for two objects with identical contents", -> 150 | assert.deepEqual { foo: 42, bar: 10 }, diff({ foo: 42, bar: 10 }, { foo: 42, bar: 10 }, {full: true}) 151 | 152 | it "should return the object for two object hierarchies with identical contents", -> 153 | assert.deepEqual { foo: 42, bar: { bbbar: 10, bbboz: 11 } }, diff({ foo: 42, bar: { bbbar: 10, bbboz: 11 } }, { foo: 42, bar: { bbbar: 10, bbboz: 11 } }, {full: true}) 154 | 155 | it "should return { __deleted: , } when the second object is missing a key", -> 156 | assert.deepEqual { foo__deleted: 42, bar: 10 }, diff({ foo: 42, bar: 10 }, { bar: 10 }, {full: true}) 157 | 158 | it "should return { __added: , } when the first object is missing a key", -> 159 | assert.deepEqual { foo__added: 42, bar: 10 }, diff({ bar: 10 }, { foo: 42, bar: 10 }, {full: true}) 160 | 161 | it "should return { : { __old: , __new: } } for two objects with different scalar values for a key", -> 162 | assert.deepEqual { foo: { __old: 42, __new: 10 } }, diff({ foo: 42 }, { foo: 10 }, {full: true}) 163 | 164 | it "should return { : , } with a recursive diff for two objects with different values for a key", -> 165 | assert.deepEqual { foo: 42, bar: { bbbar: { __old: 10, __new: 12 } } }, diff({ foo: 42, bar: { bbbar: 10 }}, { foo: 42, bar: { bbbar: 12 }}, {full: true}) 166 | 167 | it "should return { : , } with a recursive diff for two objects with different values for a key", -> 168 | assert.deepEqual { foo: 42, bar: { bbboz__deleted: 11, bbbar: { __old: 10, __new: 12 } } }, diff({ foo: 42, bar: { bbbar: 10, bbboz: 11 }}, { foo: 42, bar: { bbbar: 12 }}, {full: true}) 169 | 170 | describe 'with arrays of scalars', -> 171 | 172 | it "should return an array showing no changes for any element for two arrays with identical contents", -> 173 | assert.deepEqual [ 10, 20, 30 ], diff([10, 20, 30], [10, 20, 30], {full: true}) 174 | 175 | it "should return [[' ', ], ['-', ], [' ', ]] for two arrays when the second array is missing a value", -> 176 | assert.deepEqual [ [ " ", 10 ], [ "-", 20 ], [ "+", 42 ], [ " ", 30 ] ], diff([10, 20, 30], [10, 42, 30], {full: true}) 177 | 178 | it "should return [' ', ], ['+', ], [' ', ]] for two arrays when the second one has an extra value", -> 179 | assert.deepEqual [[' ', 10], ['+', 20], [' ', 30]], diff([10, 30], [10, 20, 30], {full: true}) 180 | 181 | it "should return [' ', s], ['+', ]] for two arrays when the second one has an extra value at the end (edge case test)", -> 182 | assert.deepEqual [[' ', 10], [' ', 20], ['+', 30]], diff([10, 20], [10, 20, 30], {full: true}) 183 | 184 | describe 'with arrays of objects', -> 185 | 186 | it "should return an array of unchanged elements for two arrays with identical contents", -> 187 | assert.deepEqual [{ foo: 10 }, { foo: 20 }, { foo: 30 }], diff([{ foo: 10 }, { foo: 20 }, { foo: 30 }], [{ foo: 10 }, { foo: 20 }, { foo: 30 }], {full: true}) 188 | 189 | it "should return an array with an unchanged element for two arrays with identical, empty object contents", -> 190 | assert.deepEqual [ {} ], diff([{ }], [{ }], {full: true}) 191 | 192 | it "should return an array with an unchanged element for two arrays with identical, empty array contents", -> 193 | assert.deepEqual [ [] ], diff([[]], [[]], {full: true}) 194 | 195 | it "should return an array of unchanged elements for two arrays with identical array contents including 'null'", -> 196 | assert.deepEqual [ 1, null, null ], diff([1, null, null], [1, null, null], {full: true}) 197 | 198 | it "should return an array of unchanged elements for two arrays with identical, repeated contents", -> 199 | assert.deepEqual [ { "a": 1, "b": 2 }, { "a": 1, "b": 2 } ], diff([{ a: 1, b: 2 }, { a: 1, b: 2 }], [{ a: 1, b: 2 }, { a: 1, b: 2 }], {full: true}) 200 | 201 | it "should return [[' ', ], ['-', ], [' ', ]] for two arrays when the second array is missing a value", -> 202 | assert.deepEqual [ [ " ", { "foo": 10 } ], [ "-", { "foo": 20 } ], [ " ", { "foo": 30 } ] ], diff([{ foo: 10 }, { foo: 20 }, { foo: 30 }], [{ foo: 10 }, { foo: 30 }], {full: true}) 203 | 204 | it "should return [[' ', ], ['+', ], [' ', ]] for two arrays when the second array has an extra value", -> 205 | assert.deepEqual [ [ " ", { "foo": 10 } ], [ "+", { "foo": 20 } ], [ " ", { "foo": 30 } ] ], diff([{ foo: 10 }, { foo: 30 }], [{ foo: 10 }, { foo: 20 }, { foo: 30 }], {full: true}) 206 | 207 | it "should return [[' ', ], ['+', ], [' ', ]] for two arrays when the second array has a new but nearly identical object added", -> 208 | assert.deepEqual [ [ " ", { "name": "Foo", "a": 3, "b": 1 } ], [ "+", { "name": "Foo", "a": 3, "b": 1, "c": 1 } ], [ " ", { "foo": 10 } ] ], diff([{ "name": "Foo", "a": 3, "b": 1 },{ "foo": 10 }], [{ "name": "Foo", "a": 3, "b": 1 },{ "name": "Foo", "a": 3, "b": 1, "c": 1 },{ "foo": 10 }], {full: true}) 209 | 210 | it "should return [[' ', ], ['~', ], [' ', ]] for two arrays when an item has been modified", -> 211 | assert.deepEqual( [ [ " ", { "foo": 10, "bar": { "bbbar": 10, "bbboz": 11 } } ], 212 | [ "~", { "foo": { "__old": 20, "__new": 21 }, "bar": { "bbbar": 50, "bbboz": 25 } } ], 213 | [ " ", { "foo": 30, "bar": { "bbbar": 92, "bbboz": 34 } } ] ], 214 | diff([{ foo: 10, bar: { bbbar: 10, bbboz: 11 } }, 215 | { foo: 20, bar: { bbbar: 50, bbboz: 25 } }, 216 | { foo: 30, bar: { bbbar: 92, bbboz: 34 } }], 217 | [{ foo: 10, bar: { bbbar: 10, bbboz: 11 } }, 218 | { foo: 21, bar: { bbbar: 50, bbboz: 25 } }, 219 | { foo: 30, bar: { bbbar: 92, bbboz: 34 } }], {full: true}) 220 | ) 221 | 222 | describe 'diff({ outputKeys: foo,bar }', -> 223 | 224 | it "should return keys foo and bar although they have no changes", -> 225 | assert.deepEqual { foo: 42, bar: 10, bbar__added: 5 }, diff({ foo: 42, bar: 10 }, { foo: 42, bar: 10, bbar: 5 }, {outputKeys: ["foo", "bar"]}) 226 | it "should return keys foo (with addition) and bar (with no changes) ", -> 227 | assert.deepEqual { foo__added: 42, bar: 10, bbar__added: 5 }, diff({ bar: 10 }, { foo: 42, bar: 10, bbar: 5 }, {outputKeys: ["foo", "bar"]}) 228 | it "should return keys foo and bar (with addition) ", -> 229 | assert.deepEqual { foo__added: 42, bar__added: 10 }, diff({ bbar: 5 }, { foo: 42, bar: 10, bbar: 5 }, {outputKeys: ["foo", "bar"]}) 230 | it "should return nothing as the entire object is equal, no matter that show keys has some of them", -> 231 | assert.deepEqual undefined, diff({ foo: 42, bar: 10, bbar: 5 }, { foo: 42, bar: 10, bbar: 5 }, {outputKeys: ["foo", "bar"]}) 232 | it "should return the keys of an entire object although it has no changes ", -> 233 | assert.deepEqual { foo: { a: 1, b: 2, c: [1, 2] }, bbar__added: 5 }, diff({ foo: { a: 1, b: 2, c: [1, 2] } }, { foo: { a: 1, b: 2, c: [1, 2] }, bbar: 5 }, {outputKeys: ["foo", "bar"]}) 234 | 235 | describe 'diff({ excludeKeys: foo,bar }', -> 236 | 237 | it "shouldn't return keys foo and bar even thou they have changes", -> 238 | assert.deepEqual { bbar__added: 5 }, diff({ foo: 42 }, { bar: 10, bbar: 5 }, excludeKeys: ["foo", "bar"]) 239 | it "shouldn't return keys foo (with addition) and bar (with no changes) ", -> 240 | assert.deepEqual { bbar__added: 5 }, diff({ bar: 10 }, { foo: 42, bar: 10, bbar: 5 }, {excludeKeys: ["foo", "bar"]}) 241 | it "shouldn't return keys foo and bar (with addition) ", -> 242 | assert.deepEqual undefined, diff({ bbar: 5 }, { foo: 42, bar: 10, bbar: 5 }, {excludeKeys: ["foo", "bar"]}) 243 | 244 | describe 'diff({keysOnly: true})', -> 245 | 246 | describe 'with simple scalar values', -> 247 | 248 | it "should return undefined for two identical numbers", -> 249 | assert.deepEqual undefined, diff(42, 42, {keysOnly: true}) 250 | 251 | it "should return undefined for two identical strings", -> 252 | assert.deepEqual undefined, diff("foo", "foo", {keysOnly: true}) 253 | 254 | it "should return undefined object for two different numbers", -> 255 | assert.deepEqual undefined, diff(42, 10, {keysOnly: true}) 256 | 257 | describe 'with objects', -> 258 | 259 | it "should return undefined for two empty objects", -> 260 | assert.deepEqual undefined, diff({ }, { }, {keysOnly: true}) 261 | 262 | it "should return undefined for two objects with identical contents", -> 263 | assert.deepEqual undefined, diff({ foo: 42, bar: 10 }, { foo: 42, bar: 10 }, {keysOnly: true}) 264 | 265 | it "should return undefined for two object hierarchies with identical contents", -> 266 | assert.deepEqual undefined, diff({ foo: 42, bar: { bbbar: 10, bbboz: 11 } }, { foo: 42, bar: { bbbar: 10, bbboz: 11 } }, {keysOnly: true}) 267 | 268 | it "should return { __deleted: } when the second object is missing a key", -> 269 | assert.deepEqual { foo__deleted: 42 }, diff({ foo: 42, bar: 10 }, { bar: 10 }, {keysOnly: true}) 270 | 271 | it "should return { __added: } when the first object is missing a key", -> 272 | assert.deepEqual { foo__added: 42 }, diff({ bar: 10 }, { foo: 42, bar: 10 }, {keysOnly: true}) 273 | 274 | it "should return undefined for two objects with different scalar values for a key", -> 275 | assert.deepEqual undefined, diff({ foo: 42 }, { foo: 10 }, {keysOnly: true}) 276 | 277 | it "should return undefined with a recursive diff for two objects with different values for a key", -> 278 | assert.deepEqual undefined, diff({ foo: 42, bar: { bbbar: 10 }}, { foo: 42, bar: { bbbar: 12 }}, {keysOnly: true}) 279 | 280 | it "should return { : } with a recursive diff when second object is missing a key and two objects with different values for a key", -> 281 | assert.deepEqual { bar: { bbboz__deleted: 11 } }, diff({ foo: 42, bar: { bbbar: 10, bbboz: 11 }}, { foo: 42, bar: { bbbar: 12 }}, {keysOnly: true}) 282 | 283 | describe 'with arrays of scalars', -> 284 | 285 | it "should return undefined for two arrays with identical contents", -> 286 | assert.deepEqual undefined, diff([10, 20, 30], [10, 20, 30], {keysOnly: true}) 287 | 288 | it "should return undefined for two arrays with when an item has been modified", -> 289 | assert.deepEqual undefined, diff([10, 20, 30], [10, 42, 30], {keysOnly: true}) 290 | 291 | it "should return [..., ['-', ], ...] for two arrays when the second array is missing a value", -> 292 | assert.deepEqual [[' '], ['-', 20], [' ']], diff([10, 20, 30], [10, 30], {keysOnly: true}) 293 | 294 | it "should return [..., ['+', ], ...] for two arrays when the second one has an extra value", -> 295 | assert.deepEqual [[' '], ['+', 20], [' ']], diff([10, 30], [10, 20, 30], {keysOnly: true}) 296 | 297 | it "should return [..., ['+', ]] for two arrays when the second one has an extra value at the end (edge case test)", -> 298 | assert.deepEqual [[' '], [' '], ['+', 30]], diff([10, 20], [10, 20, 30], {keysOnly: true}) 299 | 300 | describe 'with arrays of objects', -> 301 | 302 | it "should return undefined for two arrays with identical contents", -> 303 | assert.deepEqual undefined, diff([{ foo: 10 }, { foo: 20 }, { foo: 30 }], [{ foo: 10 }, { foo: 20 }, { foo: 30 }], {keysOnly: true}) 304 | 305 | it "should return undefined for two arrays with identical, empty object contents", -> 306 | assert.deepEqual undefined, diff([{ }], [{ }], {keysOnly: true}) 307 | 308 | it "should return undefined for two arrays with identical, empty array contents", -> 309 | assert.deepEqual undefined, diff([[]], [[]], {keysOnly: true}) 310 | 311 | it "should return undefined for two arrays with identical, repeated contents", -> 312 | assert.deepEqual undefined, diff([{ a: 1, b: 2 }, { a: 1, b: 2 }], [{ a: 1, b: 2 }, { a: 1, b: 2 }], {keysOnly: true}) 313 | 314 | it "should return [..., ['-', ], ...] for two arrays when the second array is missing a value", -> 315 | assert.deepEqual [[' '], ['-', { bar: 20 }], [' ']], diff([{ foo: 10 }, { bar: 20 }, { bletch: 30 }], [{ foo: 10 }, { bletch: 30 }], {keysOnly: true}) 316 | 317 | it "should return [..., ['+', ], ...] for two arrays when the second array has an extra value", -> 318 | assert.deepEqual [[' '], ['+', { bar: 20 }], [' ']], diff([{ foo: 10 }, { bletch: 30 }], [{ foo: 10 }, { bar: 20 }, { bletch: 30 }], {keysOnly: true}) 319 | 320 | it "should return [..., ['~', ], ...] for two arrays when an item has been modified", -> 321 | assert.deepEqual undefined, diff([{ foo: 10, bar: { bbbar: 10, bbboz: 11 } }, { foo: 20, bar: { bbbar: 50, bbboz: 25 } }, { foo: 30, bar: { bbbar: 92, bbboz: 34 } }], [{ foo: 10, bar: { bbbar: 10, bbboz: 11 } }, { foo: 21, bar: { bbbar: 50, bbboz: 25 } }, { foo: 30, bar: { bbbar: 92, bbboz: 34 } }], {keysOnly: true}) 322 | 323 | describe 'diffString', -> 324 | 325 | readExampleFile = (file) -> fs.readFileSync(Path.join(__dirname, '../example', file), 'utf8') 326 | a = JSON.parse(readExampleFile('a.json')) 327 | b = JSON.parse(readExampleFile('b.json')) 328 | big_a = JSON.parse(readExampleFile('big_a.json')) 329 | big_b = JSON.parse(readExampleFile('big_b.json')) 330 | # Get duplicate copies for the precision test - numbers within these are altered (rounded) by the precision operation 331 | aprec = JSON.parse(readExampleFile('a.json')) 332 | bprec = JSON.parse(readExampleFile('b.json')) 333 | 334 | it "should produce the expected result for the example JSON files", -> 335 | assert.equal diffString(a, b, {color: false, full: true}), readExampleFile('full-result.jsdiff') 336 | assert.equal diffString(big_a, big_b, {color: false, maxElisions: 5}), readExampleFile('big_result.jsdiff') 337 | 338 | it "should produce the expected result for the example JSON files with precision set to 1", -> 339 | assert.equal diffString(a, b, {color: false, full: true, precision: 1}), readExampleFile('full-result-precision-1.jsdiff') 340 | 341 | it "should produce the expected colored result for the example JSON files", -> 342 | assert.equal diffString(aprec, bprec, {color: true, full: true}), readExampleFile('full-result-colored.jsdiff') 343 | 344 | it "return an empty string when no diff found", -> 345 | assert.equal diffString(a, a), '' 346 | 347 | describe 'diff({ outputNewOnly: true }', -> 348 | 349 | it "should return only new diffs (added)", -> 350 | assert.deepEqual { bbar: 5 }, diff({ foo: 42, bar: 10 }, { foo: 42, bar: 10, bbar: 5 }, {outputNewOnly: true}) 351 | it "should return only new diffs (changed)", -> 352 | assert.deepEqual { foo: 13, bbar: 5 }, diff({ foo: 42, bar: 10 }, { foo: 13, bar: 10, bbar: 5 }, {outputNewOnly: true}) 353 | it "should return only new diffs (deleted)", -> 354 | assert.deepEqual { bbar: 5 }, diff({ foo: 42, bar: 10 }, { bar: 10, bbar: 5 }, {outputNewOnly: true}) 355 | it "should return only old diffs - exchanged first and second json (added)", -> 356 | assert.deepEqual undefined, diff({ foo: 42, bar: 10, bbar: 5 }, { foo: 42, bar: 10 }, {outputNewOnly: true}) 357 | it "should return only old diffs - exchanged first and second json (changed)", -> 358 | assert.deepEqual { foo: 42 }, diff({ foo: 13, bar: 10, bbar: 5 }, { foo: 42, bar: 10 }, {outputNewOnly: true}) 359 | it "should return only old diffs - exchanged first and second json (deleted)", -> 360 | assert.deepEqual { foo: 42 }, diff({ bar: 10, bbar: 5 }, { foo: 42, bar: 10 }, {outputNewOnly: true}) -------------------------------------------------------------------------------- /test/mocha.opts: -------------------------------------------------------------------------------- 1 | --reporter spec 2 | --compilers coffee:coffee-script/register 3 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@eslint/eslintrc@^1.0.5": 6 | "integrity" "sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ==" 7 | "resolved" "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.5.tgz" 8 | "version" "1.0.5" 9 | dependencies: 10 | "ajv" "^6.12.4" 11 | "debug" "^4.3.2" 12 | "espree" "^9.2.0" 13 | "globals" "^13.9.0" 14 | "ignore" "^4.0.6" 15 | "import-fresh" "^3.2.1" 16 | "js-yaml" "^4.1.0" 17 | "minimatch" "^3.0.4" 18 | "strip-json-comments" "^3.1.1" 19 | 20 | "@ewoudenberg/difflib@0.1.0": 21 | "integrity" "sha512-OU5P5mJyD3OoWYMWY+yIgwvgNS9cFAU10f+DDuvtogcWQOoJIsQ4Hy2McSfUfhKjq8L0FuWVb4Rt7kgA+XK86A==" 22 | "resolved" "https://registry.npmjs.org/@ewoudenberg/difflib/-/difflib-0.1.0.tgz" 23 | "version" "0.1.0" 24 | dependencies: 25 | "heap" ">= 0.2.0" 26 | 27 | "@humanwhocodes/config-array@^0.9.2": 28 | "integrity" "sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA==" 29 | "resolved" "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.2.tgz" 30 | "version" "0.9.2" 31 | dependencies: 32 | "@humanwhocodes/object-schema" "^1.2.1" 33 | "debug" "^4.1.1" 34 | "minimatch" "^3.0.4" 35 | 36 | "@humanwhocodes/object-schema@^1.2.1": 37 | "integrity" "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==" 38 | "resolved" "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" 39 | "version" "1.2.1" 40 | 41 | "@types/json5@^0.0.29": 42 | "integrity" "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" 43 | "resolved" "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz" 44 | "version" "0.0.29" 45 | 46 | "@ungap/promise-all-settled@1.1.2": 47 | "integrity" "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==" 48 | "resolved" "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz" 49 | "version" "1.1.2" 50 | 51 | "acorn-jsx@^5.3.1": 52 | "integrity" "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==" 53 | "resolved" "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz" 54 | "version" "5.3.2" 55 | 56 | "acorn@^6.0.0 || ^7.0.0 || ^8.0.0", "acorn@^8.6.0": 57 | "integrity" "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==" 58 | "resolved" "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz" 59 | "version" "8.6.0" 60 | 61 | "ajv@^6.10.0", "ajv@^6.12.4": 62 | "integrity" "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==" 63 | "resolved" "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz" 64 | "version" "6.12.6" 65 | dependencies: 66 | "fast-deep-equal" "^3.1.1" 67 | "fast-json-stable-stringify" "^2.0.0" 68 | "json-schema-traverse" "^0.4.1" 69 | "uri-js" "^4.2.2" 70 | 71 | "amdefine@>=0.0.4": 72 | "integrity" "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=" 73 | "resolved" "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz" 74 | "version" "1.0.1" 75 | 76 | "ansi-colors@^4.1.1", "ansi-colors@4.1.1": 77 | "integrity" "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==" 78 | "resolved" "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz" 79 | "version" "4.1.1" 80 | 81 | "ansi-regex@^5.0.1": 82 | "integrity" "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" 83 | "resolved" "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" 84 | "version" "5.0.1" 85 | 86 | "ansi-styles@^4.0.0", "ansi-styles@^4.1.0": 87 | "integrity" "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==" 88 | "resolved" "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" 89 | "version" "4.3.0" 90 | dependencies: 91 | "color-convert" "^2.0.1" 92 | 93 | "anymatch@~3.1.2": 94 | "integrity" "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==" 95 | "resolved" "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz" 96 | "version" "3.1.2" 97 | dependencies: 98 | "normalize-path" "^3.0.0" 99 | "picomatch" "^2.0.4" 100 | 101 | "argparse@^2.0.1": 102 | "integrity" "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" 103 | "resolved" "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz" 104 | "version" "2.0.1" 105 | 106 | "array-includes@^3.1.4": 107 | "integrity" "sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw==" 108 | "resolved" "https://registry.npmjs.org/array-includes/-/array-includes-3.1.6.tgz" 109 | "version" "3.1.6" 110 | dependencies: 111 | "call-bind" "^1.0.2" 112 | "define-properties" "^1.1.4" 113 | "es-abstract" "^1.20.4" 114 | "get-intrinsic" "^1.1.3" 115 | "is-string" "^1.0.7" 116 | 117 | "array.prototype.flat@^1.2.5": 118 | "integrity" "sha512-roTU0KWIOmJ4DRLmwKd19Otg0/mT3qPNt0Qb3GWW8iObuZXxrjB/pzn0R3hqpRSWg4HCwqx+0vwOnWnvlOyeIA==" 119 | "resolved" "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz" 120 | "version" "1.3.1" 121 | dependencies: 122 | "call-bind" "^1.0.2" 123 | "define-properties" "^1.1.4" 124 | "es-abstract" "^1.20.4" 125 | "es-shim-unscopables" "^1.0.0" 126 | 127 | "async@~0.2.6": 128 | "integrity" "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=" 129 | "resolved" "https://registry.npmjs.org/async/-/async-0.2.10.tgz" 130 | "version" "0.2.10" 131 | 132 | "balanced-match@^1.0.0": 133 | "integrity" "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 134 | "resolved" "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" 135 | "version" "1.0.2" 136 | 137 | "binary-extensions@^2.0.0": 138 | "integrity" "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==" 139 | "resolved" "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz" 140 | "version" "2.2.0" 141 | 142 | "brace-expansion@^1.1.7": 143 | "integrity" "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" 144 | "resolved" "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" 145 | "version" "1.1.11" 146 | dependencies: 147 | "balanced-match" "^1.0.0" 148 | "concat-map" "0.0.1" 149 | 150 | "braces@~3.0.2": 151 | "integrity" "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==" 152 | "resolved" "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" 153 | "version" "3.0.2" 154 | dependencies: 155 | "fill-range" "^7.0.1" 156 | 157 | "browser-stdout@1.3.1": 158 | "integrity" "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==" 159 | "resolved" "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz" 160 | "version" "1.3.1" 161 | 162 | "builtins@^5.0.1": 163 | "integrity" "sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==" 164 | "resolved" "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz" 165 | "version" "5.0.1" 166 | dependencies: 167 | "semver" "^7.0.0" 168 | 169 | "call-bind@^1.0.0", "call-bind@^1.0.2": 170 | "integrity" "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==" 171 | "resolved" "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz" 172 | "version" "1.0.2" 173 | dependencies: 174 | "function-bind" "^1.1.1" 175 | "get-intrinsic" "^1.0.2" 176 | 177 | "callsites@^3.0.0": 178 | "integrity" "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" 179 | "resolved" "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" 180 | "version" "3.1.0" 181 | 182 | "camelcase@^1.0.2": 183 | "integrity" "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=" 184 | "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz" 185 | "version" "1.2.1" 186 | 187 | "camelcase@^6.0.0": 188 | "integrity" "sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA==" 189 | "resolved" "https://registry.npmjs.org/camelcase/-/camelcase-6.2.1.tgz" 190 | "version" "6.2.1" 191 | 192 | "chalk@^4.0.0", "chalk@^4.1.0": 193 | "integrity" "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==" 194 | "resolved" "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" 195 | "version" "4.1.2" 196 | dependencies: 197 | "ansi-styles" "^4.1.0" 198 | "supports-color" "^7.1.0" 199 | 200 | "chokidar@3.5.2": 201 | "integrity" "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==" 202 | "resolved" "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz" 203 | "version" "3.5.2" 204 | dependencies: 205 | "anymatch" "~3.1.2" 206 | "braces" "~3.0.2" 207 | "glob-parent" "~5.1.2" 208 | "is-binary-path" "~2.1.0" 209 | "is-glob" "~4.0.1" 210 | "normalize-path" "~3.0.0" 211 | "readdirp" "~3.6.0" 212 | optionalDependencies: 213 | "fsevents" "~2.3.2" 214 | 215 | "cliui@^7.0.2": 216 | "integrity" "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==" 217 | "resolved" "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz" 218 | "version" "7.0.4" 219 | dependencies: 220 | "string-width" "^4.2.0" 221 | "strip-ansi" "^6.0.0" 222 | "wrap-ansi" "^7.0.0" 223 | 224 | "coffee-script@*": 225 | "integrity" "sha512-fLeEhqwymYat/MpTPUjSKHVYYl0ec2mOyALEMLmzr5i1isuG+6jfI2j2d5oBO3VIzgUXgBVIcOT9uH1TFxBckw==" 226 | "resolved" "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.7.tgz" 227 | "version" "1.12.7" 228 | 229 | "coffeescript@^2.6.1": 230 | "integrity" "sha512-GG5nkF93qII8HmHqnnibkgpp/SV7PSnSPiWsbinwya7nNOe95aE/x2xrKZJFks8Qpko3TNrC+/LahaKgrz5YCg==" 231 | "resolved" "https://registry.npmjs.org/coffeescript/-/coffeescript-2.6.1.tgz" 232 | "version" "2.6.1" 233 | 234 | "color-convert@^2.0.1": 235 | "integrity" "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" 236 | "resolved" "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" 237 | "version" "2.0.1" 238 | dependencies: 239 | "color-name" "~1.1.4" 240 | 241 | "color-name@~1.1.4": 242 | "integrity" "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 243 | "resolved" "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" 244 | "version" "1.1.4" 245 | 246 | "colors@^1.4.0": 247 | "integrity" "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==" 248 | "resolved" "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz" 249 | "version" "1.4.0" 250 | 251 | "commander@^2.6.0": 252 | "integrity" "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" 253 | "resolved" "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" 254 | "version" "2.20.3" 255 | 256 | "concat-map@0.0.1": 257 | "integrity" "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 258 | "resolved" "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" 259 | "version" "0.0.1" 260 | 261 | "cross-spawn@^7.0.2": 262 | "integrity" "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==" 263 | "resolved" "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" 264 | "version" "7.0.3" 265 | dependencies: 266 | "path-key" "^3.1.0" 267 | "shebang-command" "^2.0.0" 268 | "which" "^2.0.1" 269 | 270 | "debug@^2.6.9": 271 | "integrity" "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==" 272 | "resolved" "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz" 273 | "version" "2.6.9" 274 | dependencies: 275 | "ms" "2.0.0" 276 | 277 | "debug@^3.2.7": 278 | "integrity" "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==" 279 | "resolved" "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz" 280 | "version" "3.2.7" 281 | dependencies: 282 | "ms" "^2.1.1" 283 | 284 | "debug@^4.1.1", "debug@^4.3.2", "debug@4.3.2": 285 | "integrity" "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==" 286 | "resolved" "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz" 287 | "version" "4.3.2" 288 | dependencies: 289 | "ms" "2.1.2" 290 | 291 | "debug@~1.0.3": 292 | "integrity" "sha1-9yQSF0MPmd7EwrRz6rkiKOh0wqw=" 293 | "resolved" "https://registry.npmjs.org/debug/-/debug-1.0.5.tgz" 294 | "version" "1.0.5" 295 | dependencies: 296 | "ms" "2.0.0" 297 | 298 | "decamelize@^1.0.0": 299 | "integrity" "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 300 | "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" 301 | "version" "1.2.0" 302 | 303 | "decamelize@^4.0.0": 304 | "integrity" "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==" 305 | "resolved" "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz" 306 | "version" "4.0.0" 307 | 308 | "deep-is@^0.1.3": 309 | "integrity" "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" 310 | "resolved" "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz" 311 | "version" "0.1.4" 312 | 313 | "define-properties@^1.1.3", "define-properties@^1.1.4": 314 | "integrity" "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==" 315 | "resolved" "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz" 316 | "version" "1.1.4" 317 | dependencies: 318 | "has-property-descriptors" "^1.0.0" 319 | "object-keys" "^1.1.1" 320 | 321 | "diff@5.0.0": 322 | "integrity" "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==" 323 | "resolved" "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz" 324 | "version" "5.0.0" 325 | 326 | "doctrine@^2.1.0": 327 | "integrity" "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==" 328 | "resolved" "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz" 329 | "version" "2.1.0" 330 | dependencies: 331 | "esutils" "^2.0.2" 332 | 333 | "doctrine@^3.0.0": 334 | "integrity" "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==" 335 | "resolved" "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz" 336 | "version" "3.0.0" 337 | dependencies: 338 | "esutils" "^2.0.2" 339 | 340 | "dreamopt@~0.8.0": 341 | "integrity" "sha1-W8yAvnCX5F/EicNCQFq2gUCowdk=" 342 | "resolved" "https://registry.npmjs.org/dreamopt/-/dreamopt-0.8.0.tgz" 343 | "version" "0.8.0" 344 | dependencies: 345 | "wordwrap" ">=0.0.2" 346 | 347 | "ejs@1.0.0": 348 | "integrity" "sha1-ycYKSKRu5FL7MqccMXuV5aofyz0=" 349 | "resolved" "https://registry.npmjs.org/ejs/-/ejs-1.0.0.tgz" 350 | "version" "1.0.0" 351 | 352 | "emoji-regex@^8.0.0": 353 | "integrity" "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 354 | "resolved" "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" 355 | "version" "8.0.0" 356 | 357 | "enquirer@^2.3.5": 358 | "integrity" "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==" 359 | "resolved" "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz" 360 | "version" "2.3.6" 361 | dependencies: 362 | "ansi-colors" "^4.1.1" 363 | 364 | "es-abstract@^1.19.0", "es-abstract@^1.20.4": 365 | "integrity" "sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA==" 366 | "resolved" "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.4.tgz" 367 | "version" "1.20.4" 368 | dependencies: 369 | "call-bind" "^1.0.2" 370 | "es-to-primitive" "^1.2.1" 371 | "function-bind" "^1.1.1" 372 | "function.prototype.name" "^1.1.5" 373 | "get-intrinsic" "^1.1.3" 374 | "get-symbol-description" "^1.0.0" 375 | "has" "^1.0.3" 376 | "has-property-descriptors" "^1.0.0" 377 | "has-symbols" "^1.0.3" 378 | "internal-slot" "^1.0.3" 379 | "is-callable" "^1.2.7" 380 | "is-negative-zero" "^2.0.2" 381 | "is-regex" "^1.1.4" 382 | "is-shared-array-buffer" "^1.0.2" 383 | "is-string" "^1.0.7" 384 | "is-weakref" "^1.0.2" 385 | "object-inspect" "^1.12.2" 386 | "object-keys" "^1.1.1" 387 | "object.assign" "^4.1.4" 388 | "regexp.prototype.flags" "^1.4.3" 389 | "safe-regex-test" "^1.0.0" 390 | "string.prototype.trimend" "^1.0.5" 391 | "string.prototype.trimstart" "^1.0.5" 392 | "unbox-primitive" "^1.0.2" 393 | 394 | "es-shim-unscopables@^1.0.0": 395 | "integrity" "sha512-Jm6GPcCdC30eMLbZ2x8z2WuRwAws3zTBBKuusffYVUrNj/GVSUAZ+xKMaUpfNDR5IbyNA5LJbaecoUVbmUcB1w==" 396 | "resolved" "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz" 397 | "version" "1.0.0" 398 | dependencies: 399 | "has" "^1.0.3" 400 | 401 | "es-to-primitive@^1.2.1": 402 | "integrity" "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==" 403 | "resolved" "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz" 404 | "version" "1.2.1" 405 | dependencies: 406 | "is-callable" "^1.1.4" 407 | "is-date-object" "^1.0.1" 408 | "is-symbol" "^1.0.2" 409 | 410 | "escalade@^3.1.1": 411 | "integrity" "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" 412 | "resolved" "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz" 413 | "version" "3.1.1" 414 | 415 | "escape-string-regexp@^4.0.0", "escape-string-regexp@4.0.0": 416 | "integrity" "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" 417 | "resolved" "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" 418 | "version" "4.0.0" 419 | 420 | "eslint-config-standard@^17": 421 | "integrity" "sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg==" 422 | "resolved" "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-17.0.0.tgz" 423 | "version" "17.0.0" 424 | 425 | "eslint-import-resolver-node@^0.3.6": 426 | "integrity" "sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==" 427 | "resolved" "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz" 428 | "version" "0.3.6" 429 | dependencies: 430 | "debug" "^3.2.7" 431 | "resolve" "^1.20.0" 432 | 433 | "eslint-module-utils@^2.7.3": 434 | "integrity" "sha512-j4GT+rqzCoRKHwURX7pddtIPGySnX9Si/cgMI5ztrcqOPtk5dDEeZ34CQVPphnqkJytlc97Vuk05Um2mJ3gEQA==" 435 | "resolved" "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.7.4.tgz" 436 | "version" "2.7.4" 437 | dependencies: 438 | "debug" "^3.2.7" 439 | 440 | "eslint-plugin-es@^4.1.0": 441 | "integrity" "sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==" 442 | "resolved" "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz" 443 | "version" "4.1.0" 444 | dependencies: 445 | "eslint-utils" "^2.0.0" 446 | "regexpp" "^3.0.0" 447 | 448 | "eslint-plugin-import@^2.25.2": 449 | "integrity" "sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==" 450 | "resolved" "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz" 451 | "version" "2.26.0" 452 | dependencies: 453 | "array-includes" "^3.1.4" 454 | "array.prototype.flat" "^1.2.5" 455 | "debug" "^2.6.9" 456 | "doctrine" "^2.1.0" 457 | "eslint-import-resolver-node" "^0.3.6" 458 | "eslint-module-utils" "^2.7.3" 459 | "has" "^1.0.3" 460 | "is-core-module" "^2.8.1" 461 | "is-glob" "^4.0.3" 462 | "minimatch" "^3.1.2" 463 | "object.values" "^1.1.5" 464 | "resolve" "^1.22.0" 465 | "tsconfig-paths" "^3.14.1" 466 | 467 | "eslint-plugin-n@^15.0.0": 468 | "integrity" "sha512-VCqQiZDpdm1Q9grnvy+XsENZoXDgTLqPHRQwgl9qFNNgTKR4YEnQOMN0pFB/9TbmrQ88jdeTnqTcNwRvjqMOtg==" 469 | "resolved" "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-15.5.0.tgz" 470 | "version" "15.5.0" 471 | dependencies: 472 | "builtins" "^5.0.1" 473 | "eslint-plugin-es" "^4.1.0" 474 | "eslint-utils" "^3.0.0" 475 | "ignore" "^5.1.1" 476 | "is-core-module" "^2.10.0" 477 | "minimatch" "^3.1.2" 478 | "resolve" "^1.22.1" 479 | "semver" "^7.3.7" 480 | 481 | "eslint-plugin-promise@^6.0.0": 482 | "integrity" "sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==" 483 | "resolved" "https://registry.npmjs.org/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz" 484 | "version" "6.1.1" 485 | 486 | "eslint-scope@^7.1.0": 487 | "integrity" "sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg==" 488 | "resolved" "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.0.tgz" 489 | "version" "7.1.0" 490 | dependencies: 491 | "esrecurse" "^4.3.0" 492 | "estraverse" "^5.2.0" 493 | 494 | "eslint-utils@^2.0.0": 495 | "integrity" "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==" 496 | "resolved" "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz" 497 | "version" "2.1.0" 498 | dependencies: 499 | "eslint-visitor-keys" "^1.1.0" 500 | 501 | "eslint-utils@^3.0.0": 502 | "integrity" "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==" 503 | "resolved" "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz" 504 | "version" "3.0.0" 505 | dependencies: 506 | "eslint-visitor-keys" "^2.0.0" 507 | 508 | "eslint-visitor-keys@^1.1.0": 509 | "integrity" "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==" 510 | "resolved" "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz" 511 | "version" "1.3.0" 512 | 513 | "eslint-visitor-keys@^2.0.0": 514 | "integrity" "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==" 515 | "resolved" "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz" 516 | "version" "2.1.0" 517 | 518 | "eslint-visitor-keys@^3.1.0": 519 | "integrity" "sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==" 520 | "resolved" "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz" 521 | "version" "3.1.0" 522 | 523 | "eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8", "eslint@^7.0.0 || ^8.0.0", "eslint@^8", "eslint@^8.0.1", "eslint@>=4.19.1", "eslint@>=5", "eslint@>=7.0.0": 524 | "integrity" "sha512-TxU/p7LB1KxQ6+7aztTnO7K0i+h0tDi81YRY9VzB6Id71kNz+fFYnf5HD5UOQmxkzcoa0TlVZf9dpMtUv0GpWg==" 525 | "resolved" "https://registry.npmjs.org/eslint/-/eslint-8.4.1.tgz" 526 | "version" "8.4.1" 527 | dependencies: 528 | "@eslint/eslintrc" "^1.0.5" 529 | "@humanwhocodes/config-array" "^0.9.2" 530 | "ajv" "^6.10.0" 531 | "chalk" "^4.0.0" 532 | "cross-spawn" "^7.0.2" 533 | "debug" "^4.3.2" 534 | "doctrine" "^3.0.0" 535 | "enquirer" "^2.3.5" 536 | "escape-string-regexp" "^4.0.0" 537 | "eslint-scope" "^7.1.0" 538 | "eslint-utils" "^3.0.0" 539 | "eslint-visitor-keys" "^3.1.0" 540 | "espree" "^9.2.0" 541 | "esquery" "^1.4.0" 542 | "esutils" "^2.0.2" 543 | "fast-deep-equal" "^3.1.3" 544 | "file-entry-cache" "^6.0.1" 545 | "functional-red-black-tree" "^1.0.1" 546 | "glob-parent" "^6.0.1" 547 | "globals" "^13.6.0" 548 | "ignore" "^4.0.6" 549 | "import-fresh" "^3.0.0" 550 | "imurmurhash" "^0.1.4" 551 | "is-glob" "^4.0.0" 552 | "js-yaml" "^4.1.0" 553 | "json-stable-stringify-without-jsonify" "^1.0.1" 554 | "levn" "^0.4.1" 555 | "lodash.merge" "^4.6.2" 556 | "minimatch" "^3.0.4" 557 | "natural-compare" "^1.4.0" 558 | "optionator" "^0.9.1" 559 | "progress" "^2.0.0" 560 | "regexpp" "^3.2.0" 561 | "semver" "^7.2.1" 562 | "strip-ansi" "^6.0.1" 563 | "strip-json-comments" "^3.1.0" 564 | "text-table" "^0.2.0" 565 | "v8-compile-cache" "^2.0.3" 566 | 567 | "espree@^9.2.0": 568 | "integrity" "sha512-oP3utRkynpZWF/F2x/HZJ+AGtnIclaR7z1pYPxy7NYM2fSO6LgK/Rkny8anRSPK/VwEA1eqm2squui0T7ZMOBg==" 569 | "resolved" "https://registry.npmjs.org/espree/-/espree-9.2.0.tgz" 570 | "version" "9.2.0" 571 | dependencies: 572 | "acorn" "^8.6.0" 573 | "acorn-jsx" "^5.3.1" 574 | "eslint-visitor-keys" "^3.1.0" 575 | 576 | "esquery@^1.4.0": 577 | "integrity" "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==" 578 | "resolved" "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz" 579 | "version" "1.4.0" 580 | dependencies: 581 | "estraverse" "^5.1.0" 582 | 583 | "esrecurse@^4.3.0": 584 | "integrity" "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==" 585 | "resolved" "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz" 586 | "version" "4.3.0" 587 | dependencies: 588 | "estraverse" "^5.2.0" 589 | 590 | "estraverse@^5.1.0", "estraverse@^5.2.0": 591 | "integrity" "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" 592 | "resolved" "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz" 593 | "version" "5.3.0" 594 | 595 | "esutils@^2.0.2": 596 | "integrity" "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" 597 | "resolved" "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" 598 | "version" "2.0.3" 599 | 600 | "fast-deep-equal@^3.1.1", "fast-deep-equal@^3.1.3": 601 | "integrity" "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" 602 | "resolved" "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz" 603 | "version" "3.1.3" 604 | 605 | "fast-json-stable-stringify@^2.0.0": 606 | "integrity" "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 607 | "resolved" "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" 608 | "version" "2.1.0" 609 | 610 | "fast-levenshtein@^2.0.6": 611 | "integrity" "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" 612 | "resolved" "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz" 613 | "version" "2.0.6" 614 | 615 | "file-entry-cache@^6.0.1": 616 | "integrity" "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==" 617 | "resolved" "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz" 618 | "version" "6.0.1" 619 | dependencies: 620 | "flat-cache" "^3.0.4" 621 | 622 | "fill-range@^7.0.1": 623 | "integrity" "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==" 624 | "resolved" "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" 625 | "version" "7.0.1" 626 | dependencies: 627 | "to-regex-range" "^5.0.1" 628 | 629 | "find-up@5.0.0": 630 | "integrity" "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==" 631 | "resolved" "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz" 632 | "version" "5.0.0" 633 | dependencies: 634 | "locate-path" "^6.0.0" 635 | "path-exists" "^4.0.0" 636 | 637 | "flat-cache@^3.0.4": 638 | "integrity" "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==" 639 | "resolved" "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz" 640 | "version" "3.0.4" 641 | dependencies: 642 | "flatted" "^3.1.0" 643 | "rimraf" "^3.0.2" 644 | 645 | "flat@^5.0.2": 646 | "integrity" "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==" 647 | "resolved" "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz" 648 | "version" "5.0.2" 649 | 650 | "flatted@^3.1.0": 651 | "integrity" "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==" 652 | "resolved" "https://registry.npmjs.org/flatted/-/flatted-3.2.4.tgz" 653 | "version" "3.2.4" 654 | 655 | "fs.realpath@^1.0.0": 656 | "integrity" "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 657 | "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" 658 | "version" "1.0.0" 659 | 660 | "fsevents@~2.3.2": 661 | "integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==" 662 | "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz" 663 | "version" "2.3.2" 664 | 665 | "function-bind@^1.1.1": 666 | "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" 667 | "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" 668 | "version" "1.1.1" 669 | 670 | "function.prototype.name@^1.1.5": 671 | "integrity" "sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA==" 672 | "resolved" "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.5.tgz" 673 | "version" "1.1.5" 674 | dependencies: 675 | "call-bind" "^1.0.2" 676 | "define-properties" "^1.1.3" 677 | "es-abstract" "^1.19.0" 678 | "functions-have-names" "^1.2.2" 679 | 680 | "functional-red-black-tree@^1.0.1": 681 | "integrity" "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" 682 | "resolved" "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" 683 | "version" "1.0.1" 684 | 685 | "functions-have-names@^1.2.2": 686 | "integrity" "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==" 687 | "resolved" "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz" 688 | "version" "1.2.3" 689 | 690 | "get-caller-file@^2.0.5": 691 | "integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" 692 | "resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" 693 | "version" "2.0.5" 694 | 695 | "get-intrinsic@^1.0.2", "get-intrinsic@^1.1.0", "get-intrinsic@^1.1.1", "get-intrinsic@^1.1.3": 696 | "integrity" "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==" 697 | "resolved" "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz" 698 | "version" "1.1.3" 699 | dependencies: 700 | "function-bind" "^1.1.1" 701 | "has" "^1.0.3" 702 | "has-symbols" "^1.0.3" 703 | 704 | "get-symbol-description@^1.0.0": 705 | "integrity" "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==" 706 | "resolved" "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz" 707 | "version" "1.0.0" 708 | dependencies: 709 | "call-bind" "^1.0.2" 710 | "get-intrinsic" "^1.1.1" 711 | 712 | "glob-parent@^6.0.1": 713 | "integrity" "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==" 714 | "resolved" "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz" 715 | "version" "6.0.2" 716 | dependencies: 717 | "is-glob" "^4.0.3" 718 | 719 | "glob-parent@~5.1.2": 720 | "integrity" "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==" 721 | "resolved" "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" 722 | "version" "5.1.2" 723 | dependencies: 724 | "is-glob" "^4.0.1" 725 | 726 | "glob@^7.1.3": 727 | "integrity" "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==" 728 | "resolved" "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz" 729 | "version" "7.2.0" 730 | dependencies: 731 | "fs.realpath" "^1.0.0" 732 | "inflight" "^1.0.4" 733 | "inherits" "2" 734 | "minimatch" "^3.0.4" 735 | "once" "^1.3.0" 736 | "path-is-absolute" "^1.0.0" 737 | 738 | "glob@7.1.7": 739 | "integrity" "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==" 740 | "resolved" "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz" 741 | "version" "7.1.7" 742 | dependencies: 743 | "fs.realpath" "^1.0.0" 744 | "inflight" "^1.0.4" 745 | "inherits" "2" 746 | "minimatch" "^3.0.4" 747 | "once" "^1.3.0" 748 | "path-is-absolute" "^1.0.0" 749 | 750 | "globals@^13.6.0", "globals@^13.9.0": 751 | "integrity" "sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==" 752 | "resolved" "https://registry.npmjs.org/globals/-/globals-13.12.0.tgz" 753 | "version" "13.12.0" 754 | dependencies: 755 | "type-fest" "^0.20.2" 756 | 757 | "growl@1.10.5": 758 | "integrity" "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==" 759 | "resolved" "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz" 760 | "version" "1.10.5" 761 | 762 | "has-bigints@^1.0.1", "has-bigints@^1.0.2": 763 | "integrity" "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==" 764 | "resolved" "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz" 765 | "version" "1.0.2" 766 | 767 | "has-flag@^4.0.0": 768 | "integrity" "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" 769 | "resolved" "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" 770 | "version" "4.0.0" 771 | 772 | "has-property-descriptors@^1.0.0": 773 | "integrity" "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==" 774 | "resolved" "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz" 775 | "version" "1.0.0" 776 | dependencies: 777 | "get-intrinsic" "^1.1.1" 778 | 779 | "has-symbols@^1.0.2", "has-symbols@^1.0.3": 780 | "integrity" "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" 781 | "resolved" "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" 782 | "version" "1.0.3" 783 | 784 | "has-tostringtag@^1.0.0": 785 | "integrity" "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==" 786 | "resolved" "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz" 787 | "version" "1.0.0" 788 | dependencies: 789 | "has-symbols" "^1.0.2" 790 | 791 | "has@^1.0.3": 792 | "integrity" "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==" 793 | "resolved" "https://registry.npmjs.org/has/-/has-1.0.3.tgz" 794 | "version" "1.0.3" 795 | dependencies: 796 | "function-bind" "^1.1.1" 797 | 798 | "he@1.2.0": 799 | "integrity" "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==" 800 | "resolved" "https://registry.npmjs.org/he/-/he-1.2.0.tgz" 801 | "version" "1.2.0" 802 | 803 | "heap@>= 0.2.0": 804 | "integrity" "sha1-CH4fELBGky/IWU3Z5tN4r8nR5aw=" 805 | "resolved" "https://registry.npmjs.org/heap/-/heap-0.2.6.tgz" 806 | "version" "0.2.6" 807 | 808 | "ignore@^4.0.6": 809 | "integrity" "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==" 810 | "resolved" "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz" 811 | "version" "4.0.6" 812 | 813 | "ignore@^5.1.1": 814 | "integrity" "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==" 815 | "resolved" "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz" 816 | "version" "5.2.0" 817 | 818 | "import-fresh@^3.0.0", "import-fresh@^3.2.1": 819 | "integrity" "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==" 820 | "resolved" "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" 821 | "version" "3.3.0" 822 | dependencies: 823 | "parent-module" "^1.0.0" 824 | "resolve-from" "^4.0.0" 825 | 826 | "imurmurhash@^0.1.4": 827 | "integrity" "sha1-khi5srkoojixPcT7a21XbyMUU+o=" 828 | "resolved" "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" 829 | "version" "0.1.4" 830 | 831 | "inflight@^1.0.4": 832 | "integrity" "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=" 833 | "resolved" "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" 834 | "version" "1.0.6" 835 | dependencies: 836 | "once" "^1.3.0" 837 | "wrappy" "1" 838 | 839 | "inherits@2": 840 | "integrity" "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 841 | "resolved" "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" 842 | "version" "2.0.4" 843 | 844 | "internal-slot@^1.0.3": 845 | "integrity" "sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA==" 846 | "resolved" "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.3.tgz" 847 | "version" "1.0.3" 848 | dependencies: 849 | "get-intrinsic" "^1.1.0" 850 | "has" "^1.0.3" 851 | "side-channel" "^1.0.4" 852 | 853 | "is-bigint@^1.0.1": 854 | "integrity" "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==" 855 | "resolved" "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz" 856 | "version" "1.0.4" 857 | dependencies: 858 | "has-bigints" "^1.0.1" 859 | 860 | "is-binary-path@~2.1.0": 861 | "integrity" "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==" 862 | "resolved" "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" 863 | "version" "2.1.0" 864 | dependencies: 865 | "binary-extensions" "^2.0.0" 866 | 867 | "is-boolean-object@^1.1.0": 868 | "integrity" "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==" 869 | "resolved" "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz" 870 | "version" "1.1.2" 871 | dependencies: 872 | "call-bind" "^1.0.2" 873 | "has-tostringtag" "^1.0.0" 874 | 875 | "is-callable@^1.1.4", "is-callable@^1.2.7": 876 | "integrity" "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" 877 | "resolved" "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz" 878 | "version" "1.2.7" 879 | 880 | "is-core-module@^2.10.0", "is-core-module@^2.8.1", "is-core-module@^2.9.0": 881 | "integrity" "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==" 882 | "resolved" "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz" 883 | "version" "2.11.0" 884 | dependencies: 885 | "has" "^1.0.3" 886 | 887 | "is-date-object@^1.0.1": 888 | "integrity" "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==" 889 | "resolved" "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz" 890 | "version" "1.0.5" 891 | dependencies: 892 | "has-tostringtag" "^1.0.0" 893 | 894 | "is-extglob@^2.1.1": 895 | "integrity" "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" 896 | "resolved" "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" 897 | "version" "2.1.1" 898 | 899 | "is-fullwidth-code-point@^3.0.0": 900 | "integrity" "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" 901 | "resolved" "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" 902 | "version" "3.0.0" 903 | 904 | "is-glob@^4.0.0", "is-glob@^4.0.1", "is-glob@^4.0.3", "is-glob@~4.0.1": 905 | "integrity" "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==" 906 | "resolved" "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz" 907 | "version" "4.0.3" 908 | dependencies: 909 | "is-extglob" "^2.1.1" 910 | 911 | "is-negative-zero@^2.0.2": 912 | "integrity" "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==" 913 | "resolved" "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz" 914 | "version" "2.0.2" 915 | 916 | "is-number-object@^1.0.4": 917 | "integrity" "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==" 918 | "resolved" "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz" 919 | "version" "1.0.7" 920 | dependencies: 921 | "has-tostringtag" "^1.0.0" 922 | 923 | "is-number@^7.0.0": 924 | "integrity" "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" 925 | "resolved" "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" 926 | "version" "7.0.0" 927 | 928 | "is-plain-obj@^2.1.0": 929 | "integrity" "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==" 930 | "resolved" "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz" 931 | "version" "2.1.0" 932 | 933 | "is-regex@^1.1.4": 934 | "integrity" "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==" 935 | "resolved" "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz" 936 | "version" "1.1.4" 937 | dependencies: 938 | "call-bind" "^1.0.2" 939 | "has-tostringtag" "^1.0.0" 940 | 941 | "is-shared-array-buffer@^1.0.2": 942 | "integrity" "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==" 943 | "resolved" "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz" 944 | "version" "1.0.2" 945 | dependencies: 946 | "call-bind" "^1.0.2" 947 | 948 | "is-string@^1.0.5", "is-string@^1.0.7": 949 | "integrity" "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==" 950 | "resolved" "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz" 951 | "version" "1.0.7" 952 | dependencies: 953 | "has-tostringtag" "^1.0.0" 954 | 955 | "is-symbol@^1.0.2", "is-symbol@^1.0.3": 956 | "integrity" "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==" 957 | "resolved" "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz" 958 | "version" "1.0.4" 959 | dependencies: 960 | "has-symbols" "^1.0.2" 961 | 962 | "is-unicode-supported@^0.1.0": 963 | "integrity" "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==" 964 | "resolved" "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz" 965 | "version" "0.1.0" 966 | 967 | "is-weakref@^1.0.2": 968 | "integrity" "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==" 969 | "resolved" "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz" 970 | "version" "1.0.2" 971 | dependencies: 972 | "call-bind" "^1.0.2" 973 | 974 | "isexe@^2.0.0": 975 | "integrity" "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" 976 | "resolved" "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" 977 | "version" "2.0.0" 978 | 979 | "js-yaml@^4.1.0", "js-yaml@4.1.0": 980 | "integrity" "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==" 981 | "resolved" "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz" 982 | "version" "4.1.0" 983 | dependencies: 984 | "argparse" "^2.0.1" 985 | 986 | "jscoverage@^0.6.0": 987 | "integrity" "sha1-9eE6nhN3Yzh2jB7gLhrnHVFc2sk=" 988 | "resolved" "https://registry.npmjs.org/jscoverage/-/jscoverage-0.6.0.tgz" 989 | "version" "0.6.0" 990 | dependencies: 991 | "coffee-script" "*" 992 | "commander" "^2.6.0" 993 | "debug" "~1.0.3" 994 | "ejs" "1.0.0" 995 | "optimist" "^0.6.1" 996 | "uglify-js" "~2.4.15" 997 | "xfs" "~0.1.8" 998 | 999 | "json-schema-traverse@^0.4.1": 1000 | "integrity" "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 1001 | "resolved" "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz" 1002 | "version" "0.4.1" 1003 | 1004 | "json-stable-stringify-without-jsonify@^1.0.1": 1005 | "integrity" "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=" 1006 | "resolved" "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" 1007 | "version" "1.0.1" 1008 | 1009 | "json5@^1.0.1": 1010 | "integrity" "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==" 1011 | "resolved" "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz" 1012 | "version" "1.0.1" 1013 | dependencies: 1014 | "minimist" "^1.2.0" 1015 | 1016 | "levn@^0.4.1": 1017 | "integrity" "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==" 1018 | "resolved" "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz" 1019 | "version" "0.4.1" 1020 | dependencies: 1021 | "prelude-ls" "^1.2.1" 1022 | "type-check" "~0.4.0" 1023 | 1024 | "locate-path@^6.0.0": 1025 | "integrity" "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==" 1026 | "resolved" "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz" 1027 | "version" "6.0.0" 1028 | dependencies: 1029 | "p-locate" "^5.0.0" 1030 | 1031 | "lodash.merge@^4.6.2": 1032 | "integrity" "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" 1033 | "resolved" "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" 1034 | "version" "4.6.2" 1035 | 1036 | "log-symbols@4.1.0": 1037 | "integrity" "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==" 1038 | "resolved" "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz" 1039 | "version" "4.1.0" 1040 | dependencies: 1041 | "chalk" "^4.1.0" 1042 | "is-unicode-supported" "^0.1.0" 1043 | 1044 | "lru-cache@^6.0.0": 1045 | "integrity" "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==" 1046 | "resolved" "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz" 1047 | "version" "6.0.0" 1048 | dependencies: 1049 | "yallist" "^4.0.0" 1050 | 1051 | "minimatch@^3.0.4", "minimatch@3.0.4": 1052 | "integrity" "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==" 1053 | "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" 1054 | "version" "3.0.4" 1055 | dependencies: 1056 | "brace-expansion" "^1.1.7" 1057 | 1058 | "minimatch@^3.1.2": 1059 | "integrity" "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==" 1060 | "resolved" "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" 1061 | "version" "3.1.2" 1062 | dependencies: 1063 | "brace-expansion" "^1.1.7" 1064 | 1065 | "minimist@^1.2.0": 1066 | "integrity" "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" 1067 | "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz" 1068 | "version" "1.2.7" 1069 | 1070 | "minimist@^1.2.6": 1071 | "integrity" "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" 1072 | "resolved" "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz" 1073 | "version" "1.2.7" 1074 | 1075 | "minimist@~0.0.1": 1076 | "integrity" "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=" 1077 | "resolved" "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz" 1078 | "version" "0.0.10" 1079 | 1080 | "mocha@9.1.3": 1081 | "integrity" "sha512-Xcpl9FqXOAYqI3j79pEtHBBnQgVXIhpULjGQa7DVb0Po+VzmSIK9kanAiWLHoRR/dbZ2qpdPshuXr8l1VaHCzw==" 1082 | "resolved" "https://registry.npmjs.org/mocha/-/mocha-9.1.3.tgz" 1083 | "version" "9.1.3" 1084 | dependencies: 1085 | "@ungap/promise-all-settled" "1.1.2" 1086 | "ansi-colors" "4.1.1" 1087 | "browser-stdout" "1.3.1" 1088 | "chokidar" "3.5.2" 1089 | "debug" "4.3.2" 1090 | "diff" "5.0.0" 1091 | "escape-string-regexp" "4.0.0" 1092 | "find-up" "5.0.0" 1093 | "glob" "7.1.7" 1094 | "growl" "1.10.5" 1095 | "he" "1.2.0" 1096 | "js-yaml" "4.1.0" 1097 | "log-symbols" "4.1.0" 1098 | "minimatch" "3.0.4" 1099 | "ms" "2.1.3" 1100 | "nanoid" "3.1.25" 1101 | "serialize-javascript" "6.0.0" 1102 | "strip-json-comments" "3.1.1" 1103 | "supports-color" "8.1.1" 1104 | "which" "2.0.2" 1105 | "workerpool" "6.1.5" 1106 | "yargs" "16.2.0" 1107 | "yargs-parser" "20.2.4" 1108 | "yargs-unparser" "2.0.0" 1109 | 1110 | "ms@^2.1.1", "ms@2.1.3": 1111 | "integrity" "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1112 | "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" 1113 | "version" "2.1.3" 1114 | 1115 | "ms@2.0.0": 1116 | "integrity" "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 1117 | "resolved" "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz" 1118 | "version" "2.0.0" 1119 | 1120 | "ms@2.1.2": 1121 | "integrity" "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1122 | "resolved" "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" 1123 | "version" "2.1.2" 1124 | 1125 | "nanoid@3.1.25": 1126 | "integrity" "sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q==" 1127 | "resolved" "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz" 1128 | "version" "3.1.25" 1129 | 1130 | "natural-compare@^1.4.0": 1131 | "integrity" "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=" 1132 | "resolved" "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" 1133 | "version" "1.4.0" 1134 | 1135 | "normalize-path@^3.0.0", "normalize-path@~3.0.0": 1136 | "integrity" "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" 1137 | "resolved" "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" 1138 | "version" "3.0.0" 1139 | 1140 | "object-inspect@^1.12.2", "object-inspect@^1.9.0": 1141 | "integrity" "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" 1142 | "resolved" "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz" 1143 | "version" "1.12.2" 1144 | 1145 | "object-keys@^1.1.1": 1146 | "integrity" "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" 1147 | "resolved" "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz" 1148 | "version" "1.1.1" 1149 | 1150 | "object.assign@^4.1.4": 1151 | "integrity" "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==" 1152 | "resolved" "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz" 1153 | "version" "4.1.4" 1154 | dependencies: 1155 | "call-bind" "^1.0.2" 1156 | "define-properties" "^1.1.4" 1157 | "has-symbols" "^1.0.3" 1158 | "object-keys" "^1.1.1" 1159 | 1160 | "object.values@^1.1.5": 1161 | "integrity" "sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw==" 1162 | "resolved" "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz" 1163 | "version" "1.1.6" 1164 | dependencies: 1165 | "call-bind" "^1.0.2" 1166 | "define-properties" "^1.1.4" 1167 | "es-abstract" "^1.20.4" 1168 | 1169 | "once@^1.3.0": 1170 | "integrity" "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=" 1171 | "resolved" "https://registry.npmjs.org/once/-/once-1.4.0.tgz" 1172 | "version" "1.4.0" 1173 | dependencies: 1174 | "wrappy" "1" 1175 | 1176 | "optimist@^0.6.1": 1177 | "integrity" "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=" 1178 | "resolved" "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz" 1179 | "version" "0.6.1" 1180 | dependencies: 1181 | "minimist" "~0.0.1" 1182 | "wordwrap" "~0.0.2" 1183 | 1184 | "optionator@^0.9.1": 1185 | "integrity" "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==" 1186 | "resolved" "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz" 1187 | "version" "0.9.1" 1188 | dependencies: 1189 | "deep-is" "^0.1.3" 1190 | "fast-levenshtein" "^2.0.6" 1191 | "levn" "^0.4.1" 1192 | "prelude-ls" "^1.2.1" 1193 | "type-check" "^0.4.0" 1194 | "word-wrap" "^1.2.3" 1195 | 1196 | "p-limit@^3.0.2": 1197 | "integrity" "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==" 1198 | "resolved" "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" 1199 | "version" "3.1.0" 1200 | dependencies: 1201 | "yocto-queue" "^0.1.0" 1202 | 1203 | "p-locate@^5.0.0": 1204 | "integrity" "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==" 1205 | "resolved" "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz" 1206 | "version" "5.0.0" 1207 | dependencies: 1208 | "p-limit" "^3.0.2" 1209 | 1210 | "parent-module@^1.0.0": 1211 | "integrity" "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==" 1212 | "resolved" "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz" 1213 | "version" "1.0.1" 1214 | dependencies: 1215 | "callsites" "^3.0.0" 1216 | 1217 | "path-exists@^4.0.0": 1218 | "integrity" "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" 1219 | "resolved" "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" 1220 | "version" "4.0.0" 1221 | 1222 | "path-is-absolute@^1.0.0": 1223 | "integrity" "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 1224 | "resolved" "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" 1225 | "version" "1.0.1" 1226 | 1227 | "path-key@^3.1.0": 1228 | "integrity" "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" 1229 | "resolved" "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" 1230 | "version" "3.1.1" 1231 | 1232 | "path-parse@^1.0.7": 1233 | "integrity" "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" 1234 | "resolved" "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" 1235 | "version" "1.0.7" 1236 | 1237 | "picomatch@^2.0.4", "picomatch@^2.2.1": 1238 | "integrity" "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==" 1239 | "resolved" "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz" 1240 | "version" "2.3.0" 1241 | 1242 | "prelude-ls@^1.2.1": 1243 | "integrity" "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" 1244 | "resolved" "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" 1245 | "version" "1.2.1" 1246 | 1247 | "progress@^2.0.0": 1248 | "integrity" "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" 1249 | "resolved" "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz" 1250 | "version" "2.0.3" 1251 | 1252 | "punycode@^2.1.0": 1253 | "integrity" "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 1254 | "resolved" "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz" 1255 | "version" "2.1.1" 1256 | 1257 | "randombytes@^2.1.0": 1258 | "integrity" "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==" 1259 | "resolved" "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz" 1260 | "version" "2.1.0" 1261 | dependencies: 1262 | "safe-buffer" "^5.1.0" 1263 | 1264 | "readdirp@~3.6.0": 1265 | "integrity" "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==" 1266 | "resolved" "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz" 1267 | "version" "3.6.0" 1268 | dependencies: 1269 | "picomatch" "^2.2.1" 1270 | 1271 | "regexp.prototype.flags@^1.4.3": 1272 | "integrity" "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==" 1273 | "resolved" "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz" 1274 | "version" "1.4.3" 1275 | dependencies: 1276 | "call-bind" "^1.0.2" 1277 | "define-properties" "^1.1.3" 1278 | "functions-have-names" "^1.2.2" 1279 | 1280 | "regexpp@^3.0.0", "regexpp@^3.2.0": 1281 | "integrity" "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==" 1282 | "resolved" "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz" 1283 | "version" "3.2.0" 1284 | 1285 | "require-directory@^2.1.1": 1286 | "integrity" "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" 1287 | "resolved" "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" 1288 | "version" "2.1.1" 1289 | 1290 | "resolve-from@^4.0.0": 1291 | "integrity" "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" 1292 | "resolved" "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" 1293 | "version" "4.0.0" 1294 | 1295 | "resolve@^1.20.0", "resolve@^1.22.0", "resolve@^1.22.1": 1296 | "integrity" "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==" 1297 | "resolved" "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz" 1298 | "version" "1.22.1" 1299 | dependencies: 1300 | "is-core-module" "^2.9.0" 1301 | "path-parse" "^1.0.7" 1302 | "supports-preserve-symlinks-flag" "^1.0.0" 1303 | 1304 | "rimraf@^3.0.2": 1305 | "integrity" "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==" 1306 | "resolved" "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" 1307 | "version" "3.0.2" 1308 | dependencies: 1309 | "glob" "^7.1.3" 1310 | 1311 | "safe-buffer@^5.1.0": 1312 | "integrity" "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" 1313 | "resolved" "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" 1314 | "version" "5.2.1" 1315 | 1316 | "safe-regex-test@^1.0.0": 1317 | "integrity" "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==" 1318 | "resolved" "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz" 1319 | "version" "1.0.0" 1320 | dependencies: 1321 | "call-bind" "^1.0.2" 1322 | "get-intrinsic" "^1.1.3" 1323 | "is-regex" "^1.1.4" 1324 | 1325 | "semver@^7.0.0", "semver@^7.2.1", "semver@^7.3.7": 1326 | "integrity" "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==" 1327 | "resolved" "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz" 1328 | "version" "7.3.8" 1329 | dependencies: 1330 | "lru-cache" "^6.0.0" 1331 | 1332 | "serialize-javascript@6.0.0": 1333 | "integrity" "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==" 1334 | "resolved" "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz" 1335 | "version" "6.0.0" 1336 | dependencies: 1337 | "randombytes" "^2.1.0" 1338 | 1339 | "shebang-command@^2.0.0": 1340 | "integrity" "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==" 1341 | "resolved" "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" 1342 | "version" "2.0.0" 1343 | dependencies: 1344 | "shebang-regex" "^3.0.0" 1345 | 1346 | "shebang-regex@^3.0.0": 1347 | "integrity" "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" 1348 | "resolved" "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" 1349 | "version" "3.0.0" 1350 | 1351 | "side-channel@^1.0.4": 1352 | "integrity" "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==" 1353 | "resolved" "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz" 1354 | "version" "1.0.4" 1355 | dependencies: 1356 | "call-bind" "^1.0.0" 1357 | "get-intrinsic" "^1.0.2" 1358 | "object-inspect" "^1.9.0" 1359 | 1360 | "source-map@0.1.34": 1361 | "integrity" "sha1-p8/omux7FoLDsZjQrPtH19CQVms=" 1362 | "resolved" "https://registry.npmjs.org/source-map/-/source-map-0.1.34.tgz" 1363 | "version" "0.1.34" 1364 | dependencies: 1365 | "amdefine" ">=0.0.4" 1366 | 1367 | "string-width@^4.1.0", "string-width@^4.2.0": 1368 | "integrity" "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==" 1369 | "resolved" "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" 1370 | "version" "4.2.3" 1371 | dependencies: 1372 | "emoji-regex" "^8.0.0" 1373 | "is-fullwidth-code-point" "^3.0.0" 1374 | "strip-ansi" "^6.0.1" 1375 | 1376 | "string.prototype.trimend@^1.0.5": 1377 | "integrity" "sha512-JySq+4mrPf9EsDBEDYMOb/lM7XQLulwg5R/m1r0PXEFqrV0qHvl58sdTilSXtKOflCsK2E8jxf+GKC0T07RWwQ==" 1378 | "resolved" "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.6.tgz" 1379 | "version" "1.0.6" 1380 | dependencies: 1381 | "call-bind" "^1.0.2" 1382 | "define-properties" "^1.1.4" 1383 | "es-abstract" "^1.20.4" 1384 | 1385 | "string.prototype.trimstart@^1.0.5": 1386 | "integrity" "sha512-omqjMDaY92pbn5HOX7f9IccLA+U1tA9GvtU4JrodiXFfYB7jPzzHpRzpglLAjtUV6bB557zwClJezTqnAiYnQA==" 1387 | "resolved" "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.6.tgz" 1388 | "version" "1.0.6" 1389 | dependencies: 1390 | "call-bind" "^1.0.2" 1391 | "define-properties" "^1.1.4" 1392 | "es-abstract" "^1.20.4" 1393 | 1394 | "strip-ansi@^6.0.0", "strip-ansi@^6.0.1": 1395 | "integrity" "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==" 1396 | "resolved" "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" 1397 | "version" "6.0.1" 1398 | dependencies: 1399 | "ansi-regex" "^5.0.1" 1400 | 1401 | "strip-bom@^3.0.0": 1402 | "integrity" "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==" 1403 | "resolved" "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" 1404 | "version" "3.0.0" 1405 | 1406 | "strip-json-comments@^3.1.0", "strip-json-comments@^3.1.1", "strip-json-comments@3.1.1": 1407 | "integrity" "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" 1408 | "resolved" "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" 1409 | "version" "3.1.1" 1410 | 1411 | "supports-color@^7.1.0": 1412 | "integrity" "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==" 1413 | "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" 1414 | "version" "7.2.0" 1415 | dependencies: 1416 | "has-flag" "^4.0.0" 1417 | 1418 | "supports-color@8.1.1": 1419 | "integrity" "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==" 1420 | "resolved" "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" 1421 | "version" "8.1.1" 1422 | dependencies: 1423 | "has-flag" "^4.0.0" 1424 | 1425 | "supports-preserve-symlinks-flag@^1.0.0": 1426 | "integrity" "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" 1427 | "resolved" "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" 1428 | "version" "1.0.0" 1429 | 1430 | "text-table@^0.2.0": 1431 | "integrity" "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=" 1432 | "resolved" "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz" 1433 | "version" "0.2.0" 1434 | 1435 | "to-regex-range@^5.0.1": 1436 | "integrity" "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==" 1437 | "resolved" "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" 1438 | "version" "5.0.1" 1439 | dependencies: 1440 | "is-number" "^7.0.0" 1441 | 1442 | "tsconfig-paths@^3.14.1": 1443 | "integrity" "sha512-fxDhWnFSLt3VuTwtvJt5fpwxBHg5AdKWMsgcPOOIilyjymcYVZoCQF8fvFRezCNfblEXmi+PcM1eYHeOAgXCOQ==" 1444 | "resolved" "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz" 1445 | "version" "3.14.1" 1446 | dependencies: 1447 | "@types/json5" "^0.0.29" 1448 | "json5" "^1.0.1" 1449 | "minimist" "^1.2.6" 1450 | "strip-bom" "^3.0.0" 1451 | 1452 | "type-check@^0.4.0", "type-check@~0.4.0": 1453 | "integrity" "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==" 1454 | "resolved" "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz" 1455 | "version" "0.4.0" 1456 | dependencies: 1457 | "prelude-ls" "^1.2.1" 1458 | 1459 | "type-fest@^0.20.2": 1460 | "integrity" "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" 1461 | "resolved" "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz" 1462 | "version" "0.20.2" 1463 | 1464 | "uglify-js@~2.4.15": 1465 | "integrity" "sha1-+tV1XB4Vd2WLsG/5q25UjJW+vW4=" 1466 | "resolved" "https://registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz" 1467 | "version" "2.4.24" 1468 | dependencies: 1469 | "async" "~0.2.6" 1470 | "source-map" "0.1.34" 1471 | "uglify-to-browserify" "~1.0.0" 1472 | "yargs" "~3.5.4" 1473 | 1474 | "uglify-to-browserify@~1.0.0": 1475 | "integrity" "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=" 1476 | "resolved" "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz" 1477 | "version" "1.0.2" 1478 | 1479 | "unbox-primitive@^1.0.2": 1480 | "integrity" "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==" 1481 | "resolved" "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz" 1482 | "version" "1.0.2" 1483 | dependencies: 1484 | "call-bind" "^1.0.2" 1485 | "has-bigints" "^1.0.2" 1486 | "has-symbols" "^1.0.3" 1487 | "which-boxed-primitive" "^1.0.2" 1488 | 1489 | "uri-js@^4.2.2": 1490 | "integrity" "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==" 1491 | "resolved" "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz" 1492 | "version" "4.4.1" 1493 | dependencies: 1494 | "punycode" "^2.1.0" 1495 | 1496 | "v8-compile-cache@^2.0.3": 1497 | "integrity" "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==" 1498 | "resolved" "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz" 1499 | "version" "2.3.0" 1500 | 1501 | "which-boxed-primitive@^1.0.2": 1502 | "integrity" "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==" 1503 | "resolved" "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz" 1504 | "version" "1.0.2" 1505 | dependencies: 1506 | "is-bigint" "^1.0.1" 1507 | "is-boolean-object" "^1.1.0" 1508 | "is-number-object" "^1.0.4" 1509 | "is-string" "^1.0.5" 1510 | "is-symbol" "^1.0.3" 1511 | 1512 | "which@^2.0.1", "which@2.0.2": 1513 | "integrity" "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==" 1514 | "resolved" "https://registry.npmjs.org/which/-/which-2.0.2.tgz" 1515 | "version" "2.0.2" 1516 | dependencies: 1517 | "isexe" "^2.0.0" 1518 | 1519 | "window-size@0.1.0": 1520 | "integrity" "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=" 1521 | "resolved" "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz" 1522 | "version" "0.1.0" 1523 | 1524 | "word-wrap@^1.2.3": 1525 | "integrity" "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" 1526 | "resolved" "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz" 1527 | "version" "1.2.3" 1528 | 1529 | "wordwrap@>=0.0.2": 1530 | "integrity" "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" 1531 | "resolved" "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz" 1532 | "version" "1.0.0" 1533 | 1534 | "wordwrap@~0.0.2": 1535 | "integrity" "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=" 1536 | "resolved" "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz" 1537 | "version" "0.0.3" 1538 | 1539 | "wordwrap@0.0.2": 1540 | "integrity" "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=" 1541 | "resolved" "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz" 1542 | "version" "0.0.2" 1543 | 1544 | "workerpool@6.1.5": 1545 | "integrity" "sha512-XdKkCK0Zqc6w3iTxLckiuJ81tiD/o5rBE/m+nXpRCB+/Sq4DqkfXZ/x0jW02DG1tGsfUGXbTJyZDP+eu67haSw==" 1546 | "resolved" "https://registry.npmjs.org/workerpool/-/workerpool-6.1.5.tgz" 1547 | "version" "6.1.5" 1548 | 1549 | "wrap-ansi@^7.0.0": 1550 | "integrity" "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==" 1551 | "resolved" "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" 1552 | "version" "7.0.0" 1553 | dependencies: 1554 | "ansi-styles" "^4.0.0" 1555 | "string-width" "^4.1.0" 1556 | "strip-ansi" "^6.0.0" 1557 | 1558 | "wrappy@1": 1559 | "integrity" "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1560 | "resolved" "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" 1561 | "version" "1.0.2" 1562 | 1563 | "xfs@~0.1.8": 1564 | "integrity" "sha1-TdL9uyraKifmxdRxy1fAleZStwM=" 1565 | "resolved" "https://registry.npmjs.org/xfs/-/xfs-0.1.10.tgz" 1566 | "version" "0.1.10" 1567 | 1568 | "y18n@^5.0.5": 1569 | "integrity" "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" 1570 | "resolved" "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" 1571 | "version" "5.0.8" 1572 | 1573 | "yallist@^4.0.0": 1574 | "integrity" "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 1575 | "resolved" "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz" 1576 | "version" "4.0.0" 1577 | 1578 | "yargs-parser@^20.2.2", "yargs-parser@20.2.4": 1579 | "integrity" "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==" 1580 | "resolved" "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz" 1581 | "version" "20.2.4" 1582 | 1583 | "yargs-unparser@2.0.0": 1584 | "integrity" "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==" 1585 | "resolved" "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz" 1586 | "version" "2.0.0" 1587 | dependencies: 1588 | "camelcase" "^6.0.0" 1589 | "decamelize" "^4.0.0" 1590 | "flat" "^5.0.2" 1591 | "is-plain-obj" "^2.1.0" 1592 | 1593 | "yargs@~3.5.4": 1594 | "integrity" "sha1-2K/49mXpTDS9JZvevRv68N3TU2E=" 1595 | "resolved" "https://registry.npmjs.org/yargs/-/yargs-3.5.4.tgz" 1596 | "version" "3.5.4" 1597 | dependencies: 1598 | "camelcase" "^1.0.2" 1599 | "decamelize" "^1.0.0" 1600 | "window-size" "0.1.0" 1601 | "wordwrap" "0.0.2" 1602 | 1603 | "yargs@16.2.0": 1604 | "integrity" "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==" 1605 | "resolved" "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz" 1606 | "version" "16.2.0" 1607 | dependencies: 1608 | "cliui" "^7.0.2" 1609 | "escalade" "^3.1.1" 1610 | "get-caller-file" "^2.0.5" 1611 | "require-directory" "^2.1.1" 1612 | "string-width" "^4.2.0" 1613 | "y18n" "^5.0.5" 1614 | "yargs-parser" "^20.2.2" 1615 | 1616 | "yocto-queue@^0.1.0": 1617 | "integrity" "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==" 1618 | "resolved" "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" 1619 | "version" "0.1.0" 1620 | --------------------------------------------------------------------------------