@corellium/corellium-cli 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.gitlab-ci.yml +20 -0
- package/.nvmrc +1 -1
- package/ci/gitlab-build.sh +127 -0
- package/node_modules/@babel/cli/node_modules/commander/package.json +58 -27
- package/node_modules/@babel/cli/node_modules/make-dir/package.json +93 -62
- package/node_modules/@babel/cli/node_modules/pify/package.json +85 -54
- package/node_modules/@babel/cli/node_modules/semver/package.json +51 -20
- package/node_modules/@babel/cli/node_modules/slash/package.json +68 -37
- package/node_modules/@babel/cli/package.json +69 -37
- package/node_modules/@corellium/client-api/package.json +40 -15
- package/node_modules/@jridgewell/resolve-uri/package.json +75 -40
- package/node_modules/@jridgewell/sourcemap-codec/package.json +74 -43
- package/node_modules/@jridgewell/trace-mapping/package.json +72 -40
- package/node_modules/@nicolo-ribaudo/chokidar-2/package.json +55 -22
- package/node_modules/ansi-regex/package.json +89 -58
- package/node_modules/ansi-styles/package.json +95 -59
- package/node_modules/anymatch/package.json +56 -28
- package/node_modules/asynckit/package.json +74 -45
- package/node_modules/axios/package.json +72 -46
- package/node_modules/balanced-match/package.json +49 -22
- package/node_modules/binary-extensions/package.json +73 -41
- package/node_modules/brace-expansion/package.json +50 -23
- package/node_modules/braces/package.json +76 -30
- package/node_modules/call-bind/package.json +125 -83
- package/node_modules/chokidar/package.json +74 -40
- package/node_modules/cliui/package.json +87 -53
- package/node_modules/color-convert/package.json +59 -25
- package/node_modules/color-name/package.json +60 -32
- package/node_modules/combined-stream/package.json +52 -19
- package/node_modules/component-emitter/package.json +45 -17
- package/node_modules/concat-map/package.json +89 -45
- package/node_modules/convert-source-map/package.json +55 -28
- package/node_modules/cookiejar/package.json +44 -16
- package/node_modules/debug/package.json +87 -37
- package/node_modules/delayed-stream/package.json +53 -19
- package/node_modules/dotenv/package.json +64 -37
- package/node_modules/emoji-regex/package.json +58 -32
- package/node_modules/escalade/package.json +59 -28
- package/node_modules/fast-safe-stringify/package.json +73 -33
- package/node_modules/fill-range/package.json +72 -28
- package/node_modules/follow-redirects/package.json +77 -42
- package/node_modules/form-data/package.json +74 -42
- package/node_modules/formidable/package.json +52 -22
- package/node_modules/fs-readdir-recursive/package.json +50 -20
- package/node_modules/fs.realpath/package.json +53 -21
- package/node_modules/function-bind/package.json +61 -28
- package/node_modules/generate-password/package.json +54 -28
- package/node_modules/get-caller-file/package.json +53 -27
- package/node_modules/get-intrinsic/package.json +124 -91
- package/node_modules/glob/package.json +68 -34
- package/node_modules/glob-parent/package.json +70 -27
- package/node_modules/has/package.json +55 -26
- package/node_modules/has-symbols/package.json +133 -104
- package/node_modules/inflight/package.json +48 -20
- package/node_modules/inherits/package.json +54 -17
- package/node_modules/is-binary-path/package.json +75 -43
- package/node_modules/is-extglob/package.json +52 -22
- package/node_modules/is-fullwidth-code-point/package.json +79 -45
- package/node_modules/is-glob/package.json +68 -26
- package/node_modules/is-number/package.json +65 -26
- package/node_modules/lru-cache/package.json +61 -27
- package/node_modules/methods/package.json +64 -22
- package/node_modules/mime/package.json +48 -20
- package/node_modules/mime-db/package.json +67 -25
- package/node_modules/mime-types/package.json +64 -20
- package/node_modules/minimatch/package.json +61 -25
- package/node_modules/ms/package.json +58 -24
- package/node_modules/multi-progress/package.json +46 -20
- package/node_modules/normalize-path/package.json +63 -25
- package/node_modules/object-inspect/package.json +81 -53
- package/node_modules/once/package.json +56 -19
- package/node_modules/path-is-absolute/package.json +47 -16
- package/node_modules/picomatch/package.json +60 -28
- package/node_modules/progress/package.json +65 -21
- package/node_modules/qs/package.json +105 -78
- package/node_modules/readdirp/package.json +83 -47
- package/node_modules/require-directory/package.json +57 -29
- package/node_modules/safe-buffer/package.json +38 -10
- package/node_modules/semver/package.json +70 -36
- package/node_modules/side-channel/package.json +98 -70
- package/node_modules/string-width/package.json +97 -59
- package/node_modules/string_decoder/package.json +47 -18
- package/node_modules/strip-ansi/package.json +94 -57
- package/node_modules/superagent/node_modules/form-data/package.json +74 -42
- package/node_modules/superagent/node_modules/readable-stream/package.json +60 -32
- package/node_modules/superagent/package.json +59 -13
- package/node_modules/to-regex-range/package.json +61 -25
- package/node_modules/util-deprecate/package.json +49 -19
- package/node_modules/uuid/package.json +102 -74
- package/node_modules/wrap-ansi/package.json +97 -65
- package/node_modules/wrappy/package.json +50 -21
- package/node_modules/y18n/package.json +73 -43
- package/node_modules/yallist/package.json +55 -20
- package/node_modules/yargs/package.json +99 -72
- package/node_modules/yargs-parser/package.json +83 -52
- package/package.json +9 -4
- package/src/clients/Agent.js +32 -0
- package/src/clients/Instance.js +2 -2
- package/src/commands/agent/{apps.js → apps/index.js} +7 -9
- package/src/commands/agent/apps/install.js +33 -0
- package/src/commands/agent/file.js +2 -5
- package/src/commands/agent/ready.js +2 -4
- package/src/commands/extensions/delete.js +6 -10
- package/src/commands/extensions/list.js +3 -8
- package/src/commands/extensions/load.js +5 -9
- package/src/commands/extensions/validate.js +7 -6
- package/src/commands/firmware/list.js +6 -10
- package/src/commands/firmware/load.js +3 -8
- package/src/commands/images/create.js +3 -8
- package/src/commands/images/delete.js +5 -10
- package/src/commands/images/list.js +3 -8
- package/src/commands/index.js +2 -1
- package/src/commands/instances/create.js +3 -8
- package/src/commands/instances/delete.js +5 -10
- package/src/commands/instances/list.js +3 -8
- package/src/commands/instances/netmon/disable.js +1 -0
- package/src/commands/instances/netmon/download.js +1 -0
- package/src/commands/instances/netmon/enable.js +1 -0
- package/src/commands/instances/netmon/stream.js +1 -0
- package/src/commands/instances/restoreBackup.js +9 -3
- package/src/commands/instances/rotate.js +5 -11
- package/src/commands/instances/start.js +5 -10
- package/src/commands/instances/stop.js +5 -10
- package/src/commands/instances/upgrade.js +2 -4
- package/src/commands/login.js +10 -7
- package/src/commands/logout.js +5 -9
- package/src/commands/mast/constants.js +3 -0
- package/src/commands/mast/create-assessment.js +57 -0
- package/src/commands/mast/delete-assessment.js +50 -0
- package/src/commands/mast/download-report.js +51 -0
- package/src/commands/mast/get-assessment.js +52 -0
- package/src/commands/mast/index.js +18 -0
- package/src/commands/mast/start-monitor.js +52 -0
- package/src/commands/mast/stop-monitor.js +52 -0
- package/src/commands/mast/test.js +62 -0
- package/src/commands/projects/create.js +4 -8
- package/src/commands/projects/delete.js +6 -10
- package/src/commands/projects/list.js +3 -8
- package/src/commands/signup.js +2 -7
- package/src/commands/webplayer/create.js +2 -5
- package/src/commands/webplayer/destroy.js +2 -4
- package/src/commands/webplayer/list.js +2 -7
- package/src/commands/webplayer/login.js +2 -6
- package/src/corellium-api.js +25 -0
- package/src/error.js +9 -2
- package/src/logging.js +5 -5
- package/src/progress.js +19 -0
- package/src/table.js +7 -10
- package/src/upload.js +3 -4
- package/src/utils.js +3 -0
- package/test.sh +2 -0
- package/Jenkinsfile +0 -3
- package/corellium-corellium-cli-1.0.3.tgz +0 -0
- package/jenkinsbuild/build.sh +0 -70
- package/netdump.pcap +0 -0
- package/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +0 -504
- package/node_modules/@mapbox/node-pre-gyp/LICENSE +0 -27
- package/node_modules/@mapbox/node-pre-gyp/README.md +0 -742
- package/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp +0 -4
- package/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
- package/node_modules/@mapbox/node-pre-gyp/contributing.md +0 -10
- package/node_modules/@mapbox/node-pre-gyp/lib/build.js +0 -51
- package/node_modules/@mapbox/node-pre-gyp/lib/clean.js +0 -31
- package/node_modules/@mapbox/node-pre-gyp/lib/configure.js +0 -52
- package/node_modules/@mapbox/node-pre-gyp/lib/info.js +0 -38
- package/node_modules/@mapbox/node-pre-gyp/lib/install.js +0 -235
- package/node_modules/@mapbox/node-pre-gyp/lib/main.js +0 -125
- package/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +0 -309
- package/node_modules/@mapbox/node-pre-gyp/lib/package.js +0 -73
- package/node_modules/@mapbox/node-pre-gyp/lib/pre-binding.js +0 -34
- package/node_modules/@mapbox/node-pre-gyp/lib/publish.js +0 -81
- package/node_modules/@mapbox/node-pre-gyp/lib/rebuild.js +0 -20
- package/node_modules/@mapbox/node-pre-gyp/lib/reinstall.js +0 -19
- package/node_modules/@mapbox/node-pre-gyp/lib/reveal.js +0 -32
- package/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +0 -79
- package/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +0 -53
- package/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +0 -41
- package/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +0 -2602
- package/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +0 -93
- package/node_modules/@mapbox/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -102
- package/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +0 -205
- package/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
- package/node_modules/@mapbox/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
- package/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +0 -163
- package/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +0 -335
- package/node_modules/@mapbox/node-pre-gyp/package.json +0 -66
- package/node_modules/abbrev/LICENSE +0 -46
- package/node_modules/abbrev/README.md +0 -23
- package/node_modules/abbrev/abbrev.js +0 -61
- package/node_modules/abbrev/package.json +0 -25
- package/node_modules/agent-base/README.md +0 -145
- package/node_modules/agent-base/dist/src/index.d.ts +0 -78
- package/node_modules/agent-base/dist/src/index.js +0 -203
- package/node_modules/agent-base/dist/src/index.js.map +0 -1
- package/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
- package/node_modules/agent-base/dist/src/promisify.js +0 -18
- package/node_modules/agent-base/dist/src/promisify.js.map +0 -1
- package/node_modules/agent-base/package.json +0 -68
- package/node_modules/agent-base/src/index.ts +0 -345
- package/node_modules/agent-base/src/promisify.ts +0 -33
- package/node_modules/aproba/CHANGELOG.md +0 -4
- package/node_modules/aproba/LICENSE +0 -14
- package/node_modules/aproba/README.md +0 -94
- package/node_modules/aproba/index.js +0 -105
- package/node_modules/aproba/package.json +0 -39
- package/node_modules/are-we-there-yet/LICENSE.md +0 -18
- package/node_modules/are-we-there-yet/README.md +0 -208
- package/node_modules/are-we-there-yet/lib/index.js +0 -4
- package/node_modules/are-we-there-yet/lib/tracker-base.js +0 -11
- package/node_modules/are-we-there-yet/lib/tracker-group.js +0 -116
- package/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -36
- package/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/node_modules/are-we-there-yet/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/are-we-there-yet/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/are-we-there-yet/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/are-we-there-yet/node_modules/readable-stream/README.md +0 -106
- package/node_modules/are-we-there-yet/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/are-we-there-yet/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/are-we-there-yet/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_writable.js +0 -697
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/are-we-there-yet/node_modules/readable-stream/package.json +0 -72
- package/node_modules/are-we-there-yet/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/are-we-there-yet/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/are-we-there-yet/package.json +0 -57
- package/node_modules/ascii-art/.travis.yml +0 -19
- package/node_modules/ascii-art/Fonts/Doom.flf +0 -833
- package/node_modules/ascii-art/Fonts/rusted.flf +0 -302
- package/node_modules/ascii-art/LICENSE +0 -20
- package/node_modules/ascii-art/README.md +0 -654
- package/node_modules/ascii-art/art-source.js +0 -42
- package/node_modules/ascii-art/art.js +0 -579
- package/node_modules/ascii-art/artwork.js +0 -53
- package/node_modules/ascii-art/bin/ascii-art +0 -359
- package/node_modules/ascii-art/color_profiles.json +0 -20
- package/node_modules/ascii-art/demo.js +0 -151
- package/node_modules/ascii-art/generate.js +0 -83
- package/node_modules/ascii-art/kaolin.js +0 -140
- package/node_modules/ascii-art/karma.conf.js +0 -81
- package/node_modules/ascii-art/package.json +0 -91
- package/node_modules/ascii-art/test/dev_setup.sh +0 -16
- package/node_modules/ascii-art/test/extras/kaolin-test.js +0 -81
- package/node_modules/ascii-art/test/images/animal_muppet.nfo +0 -43
- package/node_modules/ascii-art/test/images/beyonce-upgrade.nfo +0 -21
- package/node_modules/ascii-art/test/images/cernettes.nfo +0 -31
- package/node_modules/ascii-art/test/images/gir.nfo +0 -40
- package/node_modules/ascii-art/test/images/gob.nfo +0 -40
- package/node_modules/ascii-art/test/images/grendel.nfo +0 -70
- package/node_modules/ascii-art/test/images/initech.nfo +0 -29
- package/node_modules/ascii-art/test/images/metropolis.nfo +0 -56
- package/node_modules/ascii-art/test/images/mixed.nfo +0 -15
- package/node_modules/ascii-art/test/images/mucha-job.art.nfo +0 -56
- package/node_modules/ascii-art/test/images/mucha-job.nfo +0 -56
- package/node_modules/ascii-art/test/images/peewee.nfo +0 -50
- package/node_modules/ascii-art/test/images/peewee.poster.nfo +0 -50
- package/node_modules/ascii-art/test/images/rene-cigler.nfo +0 -59
- package/node_modules/ascii-art/test/images/serious-business.nfo +0 -48
- package/node_modules/ascii-art/test/images/seven-proxies.nfo +0 -26
- package/node_modules/ascii-art/test/images/sunburst.nfo +0 -40
- package/node_modules/ascii-art/test/images/sunburst_red.nfo +0 -40
- package/node_modules/ascii-art/test/images/zero-cool.nfo +0 -60
- package/node_modules/ascii-art/test/karma/init.js +0 -34
- package/node_modules/ascii-art/test/scripts/bbs.js +0 -42
- package/node_modules/ascii-art/test/test.js +0 -459
- package/node_modules/ascii-art-ansi/LICENSE +0 -20
- package/node_modules/ascii-art-ansi/README.md +0 -287
- package/node_modules/ascii-art-ansi/ansi.js +0 -409
- package/node_modules/ascii-art-ansi/color.js +0 -623
- package/node_modules/ascii-art-ansi/grid.js +0 -129
- package/node_modules/ascii-art-ansi/package.json +0 -53
- package/node_modules/ascii-art-ansi/test/test.js +0 -251
- package/node_modules/ascii-art-braille/README.md +0 -6
- package/node_modules/ascii-art-braille/braille.js +0 -176
- package/node_modules/ascii-art-braille/package.json +0 -9
- package/node_modules/ascii-art-font/Fonts/Doom.flf +0 -833
- package/node_modules/ascii-art-font/Fonts/rusted.flf +0 -302
- package/node_modules/ascii-art-font/LICENSE +0 -22
- package/node_modules/ascii-art-font/MIT-LICENSE.txt +0 -20
- package/node_modules/ascii-art-font/README.md +0 -74
- package/node_modules/ascii-art-font/font.js +0 -152
- package/node_modules/ascii-art-font/package.json +0 -41
- package/node_modules/ascii-art-font/test/test.js +0 -59
- package/node_modules/ascii-art-graph/README.md +0 -142
- package/node_modules/ascii-art-graph/d3.js +0 -20
- package/node_modules/ascii-art-graph/graph.js +0 -1042
- package/node_modules/ascii-art-graph/multi-series.png +0 -0
- package/node_modules/ascii-art-graph/package.json +0 -21
- package/node_modules/ascii-art-graph/simple-braille.png +0 -0
- package/node_modules/ascii-art-graph/test/data/binaryGrid.json +0 -1725
- package/node_modules/ascii-art-graph/test/data/multiLineGraph.json +0 -21
- package/node_modules/ascii-art-graph/test/data/simple-braille.ansi +0 -20
- package/node_modules/ascii-art-graph/test/data/simpleLineGraph.json +0 -21
- package/node_modules/ascii-art-graph/test/test.js +0 -119
- package/node_modules/ascii-art-image/README.md +0 -93
- package/node_modules/ascii-art-image/generate.js +0 -80
- package/node_modules/ascii-art-image/image.js +0 -464
- package/node_modules/ascii-art-image/node_modules/ascii-art-braille/README.md +0 -6
- package/node_modules/ascii-art-image/node_modules/ascii-art-braille/braille.js +0 -249
- package/node_modules/ascii-art-image/node_modules/ascii-art-braille/package.json +0 -9
- package/node_modules/ascii-art-image/package.json +0 -22
- package/node_modules/ascii-art-image/renderers/average.js +0 -170
- package/node_modules/ascii-art-image/test/images/animal_muppet.nfo +0 -43
- package/node_modules/ascii-art-image/test/images/beyonce-upgrade.nfo +0 -21
- package/node_modules/ascii-art-image/test/images/cernettes.nfo +0 -31
- package/node_modules/ascii-art-image/test/images/gir.nfo +0 -40
- package/node_modules/ascii-art-image/test/images/gob.nfo +0 -40
- package/node_modules/ascii-art-image/test/images/grendel.nfo +0 -70
- package/node_modules/ascii-art-image/test/images/initech.nfo +0 -29
- package/node_modules/ascii-art-image/test/images/metropolis.nfo +0 -56
- package/node_modules/ascii-art-image/test/images/mixed.nfo +0 -15
- package/node_modules/ascii-art-image/test/images/mucha-job.art.nfo +0 -56
- package/node_modules/ascii-art-image/test/images/mucha-job.json +0 -1
- package/node_modules/ascii-art-image/test/images/mucha-job.nfo +0 -56
- package/node_modules/ascii-art-image/test/images/peewee.nfo +0 -50
- package/node_modules/ascii-art-image/test/images/peewee.poster.nfo +0 -50
- package/node_modules/ascii-art-image/test/images/rene-cigler.nfo +0 -59
- package/node_modules/ascii-art-image/test/images/serious-business.nfo +0 -48
- package/node_modules/ascii-art-image/test/images/seven-proxies.nfo +0 -26
- package/node_modules/ascii-art-image/test/images/zero-cool.nfo +0 -60
- package/node_modules/ascii-art-image/test/test.js +0 -334
- package/node_modules/ascii-art-table/README.md +0 -152
- package/node_modules/ascii-art-table/package.json +0 -17
- package/node_modules/ascii-art-table/table.js +0 -512
- package/node_modules/ascii-art-table/test/test.js +0 -133
- package/node_modules/ascii-art-utf/README.md +0 -23
- package/node_modules/ascii-art-utf/package.json +0 -41
- package/node_modules/ascii-art-utf/run.js +0 -5
- package/node_modules/ascii-art-utf/utf.js +0 -170
- package/node_modules/async/CHANGELOG.md +0 -278
- package/node_modules/async/LICENSE +0 -19
- package/node_modules/async/README.md +0 -56
- package/node_modules/async/all.js +0 -50
- package/node_modules/async/allLimit.js +0 -42
- package/node_modules/async/allSeries.js +0 -37
- package/node_modules/async/any.js +0 -52
- package/node_modules/async/anyLimit.js +0 -43
- package/node_modules/async/anySeries.js +0 -38
- package/node_modules/async/apply.js +0 -68
- package/node_modules/async/applyEach.js +0 -51
- package/node_modules/async/applyEachSeries.js +0 -37
- package/node_modules/async/asyncify.js +0 -110
- package/node_modules/async/auto.js +0 -289
- package/node_modules/async/autoInject.js +0 -170
- package/node_modules/async/bower.json +0 -17
- package/node_modules/async/cargo.js +0 -94
- package/node_modules/async/compose.js +0 -58
- package/node_modules/async/concat.js +0 -43
- package/node_modules/async/concatLimit.js +0 -65
- package/node_modules/async/concatSeries.js +0 -36
- package/node_modules/async/constant.js +0 -66
- package/node_modules/async/detect.js +0 -61
- package/node_modules/async/detectLimit.js +0 -48
- package/node_modules/async/detectSeries.js +0 -38
- package/node_modules/async/dir.js +0 -43
- package/node_modules/async/dist/async.js +0 -5612
- package/node_modules/async/dist/async.min.js +0 -2
- package/node_modules/async/dist/async.min.map +0 -1
- package/node_modules/async/doDuring.js +0 -66
- package/node_modules/async/doUntil.js +0 -39
- package/node_modules/async/doWhilst.js +0 -59
- package/node_modules/async/during.js +0 -76
- package/node_modules/async/each.js +0 -82
- package/node_modules/async/eachLimit.js +0 -45
- package/node_modules/async/eachOf.js +0 -111
- package/node_modules/async/eachOfLimit.js +0 -41
- package/node_modules/async/eachOfSeries.js +0 -35
- package/node_modules/async/eachSeries.js +0 -37
- package/node_modules/async/ensureAsync.js +0 -73
- package/node_modules/async/every.js +0 -50
- package/node_modules/async/everyLimit.js +0 -42
- package/node_modules/async/everySeries.js +0 -37
- package/node_modules/async/filter.js +0 -45
- package/node_modules/async/filterLimit.js +0 -37
- package/node_modules/async/filterSeries.js +0 -35
- package/node_modules/async/find.js +0 -61
- package/node_modules/async/findLimit.js +0 -48
- package/node_modules/async/findSeries.js +0 -38
- package/node_modules/async/foldl.js +0 -78
- package/node_modules/async/foldr.js +0 -44
- package/node_modules/async/forEach.js +0 -82
- package/node_modules/async/forEachLimit.js +0 -45
- package/node_modules/async/forEachOf.js +0 -111
- package/node_modules/async/forEachOfLimit.js +0 -41
- package/node_modules/async/forEachOfSeries.js +0 -35
- package/node_modules/async/forEachSeries.js +0 -37
- package/node_modules/async/forever.js +0 -65
- package/node_modules/async/groupBy.js +0 -54
- package/node_modules/async/groupByLimit.js +0 -71
- package/node_modules/async/groupBySeries.js +0 -37
- package/node_modules/async/index.js +0 -582
- package/node_modules/async/inject.js +0 -78
- package/node_modules/async/internal/DoublyLinkedList.js +0 -88
- package/node_modules/async/internal/applyEach.js +0 -38
- package/node_modules/async/internal/breakLoop.js +0 -9
- package/node_modules/async/internal/consoleFunc.js +0 -42
- package/node_modules/async/internal/createTester.js +0 -44
- package/node_modules/async/internal/doLimit.js +0 -12
- package/node_modules/async/internal/doParallel.js +0 -23
- package/node_modules/async/internal/doParallelLimit.js +0 -23
- package/node_modules/async/internal/eachOfLimit.js +0 -74
- package/node_modules/async/internal/filter.js +0 -75
- package/node_modules/async/internal/findGetResult.js +0 -10
- package/node_modules/async/internal/getIterator.js +0 -13
- package/node_modules/async/internal/initialParams.js +0 -21
- package/node_modules/async/internal/iterator.js +0 -61
- package/node_modules/async/internal/map.js +0 -35
- package/node_modules/async/internal/notId.js +0 -10
- package/node_modules/async/internal/once.js +0 -15
- package/node_modules/async/internal/onlyOnce.js +0 -15
- package/node_modules/async/internal/parallel.js +0 -42
- package/node_modules/async/internal/queue.js +0 -204
- package/node_modules/async/internal/reject.js +0 -21
- package/node_modules/async/internal/setImmediate.js +0 -42
- package/node_modules/async/internal/slice.js +0 -16
- package/node_modules/async/internal/withoutIndex.js +0 -12
- package/node_modules/async/internal/wrapAsync.js +0 -25
- package/node_modules/async/log.js +0 -41
- package/node_modules/async/map.js +0 -54
- package/node_modules/async/mapLimit.js +0 -37
- package/node_modules/async/mapSeries.js +0 -36
- package/node_modules/async/mapValues.js +0 -63
- package/node_modules/async/mapValuesLimit.js +0 -61
- package/node_modules/async/mapValuesSeries.js +0 -37
- package/node_modules/async/memoize.js +0 -101
- package/node_modules/async/nextTick.js +0 -51
- package/node_modules/async/package.json +0 -84
- package/node_modules/async/parallel.js +0 -90
- package/node_modules/async/parallelLimit.js +0 -40
- package/node_modules/async/priorityQueue.js +0 -98
- package/node_modules/async/queue.js +0 -130
- package/node_modules/async/race.js +0 -70
- package/node_modules/async/reduce.js +0 -78
- package/node_modules/async/reduceRight.js +0 -44
- package/node_modules/async/reflect.js +0 -81
- package/node_modules/async/reflectAll.js +0 -105
- package/node_modules/async/reject.js +0 -45
- package/node_modules/async/rejectLimit.js +0 -37
- package/node_modules/async/rejectSeries.js +0 -35
- package/node_modules/async/retry.js +0 -156
- package/node_modules/async/retryable.js +0 -65
- package/node_modules/async/select.js +0 -45
- package/node_modules/async/selectLimit.js +0 -37
- package/node_modules/async/selectSeries.js +0 -35
- package/node_modules/async/seq.js +0 -91
- package/node_modules/async/series.js +0 -85
- package/node_modules/async/setImmediate.js +0 -45
- package/node_modules/async/some.js +0 -52
- package/node_modules/async/someLimit.js +0 -43
- package/node_modules/async/someSeries.js +0 -38
- package/node_modules/async/sortBy.js +0 -91
- package/node_modules/async/timeout.js +0 -89
- package/node_modules/async/times.js +0 -50
- package/node_modules/async/timesLimit.js +0 -42
- package/node_modules/async/timesSeries.js +0 -32
- package/node_modules/async/transform.js +0 -87
- package/node_modules/async/tryEach.js +0 -81
- package/node_modules/async/unmemoize.js +0 -25
- package/node_modules/async/until.js +0 -41
- package/node_modules/async/waterfall.js +0 -113
- package/node_modules/async/whilst.js +0 -72
- package/node_modules/async/wrapSync.js +0 -110
- package/node_modules/async-arrays/.travis.yml +0 -6
- package/node_modules/async-arrays/LICENSE +0 -20
- package/node_modules/async-arrays/README.md +0 -133
- package/node_modules/async-arrays/async-arrays.js +0 -214
- package/node_modules/async-arrays/package.json +0 -36
- package/node_modules/async-arrays/test.js +0 -101
- package/node_modules/canvas/Readme.md +0 -600
- package/node_modules/canvas/binding.gyp +0 -229
- package/node_modules/canvas/browser.js +0 -35
- package/node_modules/canvas/build/Release/.deps/Release/canvas.node.d +0 -1
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Backends.o.d +0 -386
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Canvas.o.d +0 -396
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d +0 -374
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d +0 -706
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d +0 -721
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/Image.o.d +0 -709
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/ImageData.o.d +0 -69
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d +0 -78
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d +0 -79
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d +0 -385
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d +0 -385
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d +0 -5
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/closure.o.d +0 -379
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/color.o.d +0 -4
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/init.o.d +0 -744
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas/src/register_font.o.d +0 -348
- package/node_modules/canvas/build/Release/.deps/Release/obj.target/canvas.node.d +0 -1
- package/node_modules/canvas/build/Release/canvas.node +0 -0
- package/node_modules/canvas/build/Release/libcairo-gobject.so.2 +0 -0
- package/node_modules/canvas/build/Release/libcairo.so.2 +0 -0
- package/node_modules/canvas/build/Release/libexpat.so.1 +0 -0
- package/node_modules/canvas/build/Release/libffi.so.7 +0 -0
- package/node_modules/canvas/build/Release/libfontconfig.so.1 +0 -0
- package/node_modules/canvas/build/Release/libfreetype.so.6 +0 -0
- package/node_modules/canvas/build/Release/libfribidi.so.0 +0 -0
- package/node_modules/canvas/build/Release/libgdk_pixbuf-2.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libgif.so.7 +0 -0
- package/node_modules/canvas/build/Release/libgio-2.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libglib-2.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libgmodule-2.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libgobject-2.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libharfbuzz.so.0 +0 -0
- package/node_modules/canvas/build/Release/libjpeg.so.62 +0 -0
- package/node_modules/canvas/build/Release/libpango-1.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libpangocairo-1.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libpangoft2-1.0.so.0 +0 -0
- package/node_modules/canvas/build/Release/libpcre.so.1 +0 -0
- package/node_modules/canvas/build/Release/libpixman-1.so.0 +0 -0
- package/node_modules/canvas/build/Release/libpng16.so.16 +0 -0
- package/node_modules/canvas/build/Release/librsvg-2.so.2 +0 -0
- package/node_modules/canvas/build/Release/libstdc++.so.6 +0 -0
- package/node_modules/canvas/build/Release/libxml2.so.2 +0 -0
- package/node_modules/canvas/build/Release/libz.so.1 +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/Backends.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/Canvas.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasGradient.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasPattern.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/CanvasRenderingContext2d.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/Image.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/ImageData.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/Backend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/ImageBackend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/PdfBackend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/backend/SvgBackend.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/bmp/BMPParser.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/closure.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/color.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/init.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas/src/register_font.o +0 -0
- package/node_modules/canvas/build/Release/obj.target/canvas.node +0 -0
- package/node_modules/canvas/index.js +0 -92
- package/node_modules/canvas/lib/DOMMatrix.js +0 -620
- package/node_modules/canvas/lib/bindings.js +0 -13
- package/node_modules/canvas/lib/canvas.js +0 -113
- package/node_modules/canvas/lib/context2d.js +0 -14
- package/node_modules/canvas/lib/image.js +0 -93
- package/node_modules/canvas/lib/jpegstream.js +0 -41
- package/node_modules/canvas/lib/parse-font.js +0 -101
- package/node_modules/canvas/lib/pattern.js +0 -17
- package/node_modules/canvas/lib/pdfstream.js +0 -35
- package/node_modules/canvas/lib/pngstream.js +0 -42
- package/node_modules/canvas/package.json +0 -73
- package/node_modules/canvas/src/Backends.cc +0 -18
- package/node_modules/canvas/src/Backends.h +0 -10
- package/node_modules/canvas/src/Canvas.cc +0 -951
- package/node_modules/canvas/src/Canvas.h +0 -82
- package/node_modules/canvas/src/CanvasError.h +0 -23
- package/node_modules/canvas/src/CanvasGradient.cc +0 -123
- package/node_modules/canvas/src/CanvasGradient.h +0 -22
- package/node_modules/canvas/src/CanvasPattern.cc +0 -136
- package/node_modules/canvas/src/CanvasPattern.h +0 -37
- package/node_modules/canvas/src/CanvasRenderingContext2d.cc +0 -3097
- package/node_modules/canvas/src/CanvasRenderingContext2d.h +0 -203
- package/node_modules/canvas/src/Image.cc +0 -1402
- package/node_modules/canvas/src/Image.h +0 -127
- package/node_modules/canvas/src/ImageData.cc +0 -140
- package/node_modules/canvas/src/ImageData.h +0 -27
- package/node_modules/canvas/src/JPEGStream.h +0 -167
- package/node_modules/canvas/src/PNG.h +0 -292
- package/node_modules/canvas/src/Point.h +0 -10
- package/node_modules/canvas/src/Util.h +0 -34
- package/node_modules/canvas/src/backend/Backend.cc +0 -112
- package/node_modules/canvas/src/backend/Backend.h +0 -69
- package/node_modules/canvas/src/backend/ImageBackend.cc +0 -74
- package/node_modules/canvas/src/backend/ImageBackend.h +0 -26
- package/node_modules/canvas/src/backend/PdfBackend.cc +0 -53
- package/node_modules/canvas/src/backend/PdfBackend.h +0 -24
- package/node_modules/canvas/src/backend/SvgBackend.cc +0 -61
- package/node_modules/canvas/src/backend/SvgBackend.h +0 -24
- package/node_modules/canvas/src/bmp/BMPParser.cc +0 -457
- package/node_modules/canvas/src/bmp/BMPParser.h +0 -60
- package/node_modules/canvas/src/bmp/LICENSE.md +0 -24
- package/node_modules/canvas/src/closure.cc +0 -26
- package/node_modules/canvas/src/closure.h +0 -81
- package/node_modules/canvas/src/color.cc +0 -775
- package/node_modules/canvas/src/color.h +0 -30
- package/node_modules/canvas/src/dll_visibility.h +0 -20
- package/node_modules/canvas/src/init.cc +0 -92
- package/node_modules/canvas/src/register_font.cc +0 -408
- package/node_modules/canvas/src/register_font.h +0 -7
- package/node_modules/canvas/types/index.d.ts +0 -335
- package/node_modules/canvas/util/has_lib.js +0 -119
- package/node_modules/canvas/util/win_jpeg_lookup.js +0 -21
- package/node_modules/chownr/LICENSE +0 -15
- package/node_modules/chownr/README.md +0 -3
- package/node_modules/chownr/chownr.js +0 -167
- package/node_modules/chownr/package.json +0 -36
- package/node_modules/cli/README.md +0 -196
- package/node_modules/cli/cli.js +0 -1133
- package/node_modules/cli/examples/cat.js +0 -17
- package/node_modules/cli/examples/command.js +0 -16
- package/node_modules/cli/examples/echo.js +0 -54
- package/node_modules/cli/examples/glob.js +0 -6
- package/node_modules/cli/examples/long_desc.js +0 -20
- package/node_modules/cli/examples/progress.js +0 -11
- package/node_modules/cli/examples/sort.js +0 -18
- package/node_modules/cli/examples/spinner.js +0 -9
- package/node_modules/cli/examples/static.coffee +0 -27
- package/node_modules/cli/examples/static.js +0 -25
- package/node_modules/cli/index.js +0 -1
- package/node_modules/cli/package.json +0 -30
- package/node_modules/color/LICENSE +0 -21
- package/node_modules/color/README.md +0 -123
- package/node_modules/color/index.js +0 -482
- package/node_modules/color/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/color/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color/node_modules/color-convert/README.md +0 -68
- package/node_modules/color/node_modules/color-convert/conversions.js +0 -868
- package/node_modules/color/node_modules/color-convert/index.js +0 -78
- package/node_modules/color/node_modules/color-convert/package.json +0 -50
- package/node_modules/color/node_modules/color-convert/route.js +0 -97
- package/node_modules/color/node_modules/color-name/.eslintrc.json +0 -43
- package/node_modules/color/node_modules/color-name/.npmignore +0 -107
- package/node_modules/color/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color/node_modules/color-name/README.md +0 -11
- package/node_modules/color/node_modules/color-name/index.js +0 -152
- package/node_modules/color/node_modules/color-name/package.json +0 -29
- package/node_modules/color/node_modules/color-name/test.js +0 -7
- package/node_modules/color/package.json +0 -44
- package/node_modules/color-difference/LICENSE +0 -7
- package/node_modules/color-difference/Makefile +0 -29
- package/node_modules/color-difference/README.md +0 -12
- package/node_modules/color-difference/bin/color-difference +0 -3
- package/node_modules/color-difference/index.js +0 -4
- package/node_modules/color-difference/lib/cli-runner.js +0 -49
- package/node_modules/color-difference/lib/compare.js +0 -28
- package/node_modules/color-difference/lib/index.js +0 -7
- package/node_modules/color-difference/lib/method/abstract.js +0 -15
- package/node_modules/color-difference/lib/method/cie-76-difference.js +0 -33
- package/node_modules/color-difference/lib/method/euclidean-distance.js +0 -32
- package/node_modules/color-difference/package.json +0 -41
- package/node_modules/color-difference/test/compare.js +0 -40
- package/node_modules/color-difference/test/method-absract.js +0 -18
- package/node_modules/color-model/Makefile +0 -29
- package/node_modules/color-model/index.js +0 -5
- package/node_modules/color-model/lib/abstract-model.js +0 -92
- package/node_modules/color-model/lib/component.js +0 -59
- package/node_modules/color-model/lib/hex-rgb.js +0 -69
- package/node_modules/color-model/lib/hsl.js +0 -108
- package/node_modules/color-model/lib/index.js +0 -9
- package/node_modules/color-model/lib/lab.js +0 -46
- package/node_modules/color-model/lib/rgb.js +0 -154
- package/node_modules/color-model/lib/xyz.js +0 -117
- package/node_modules/color-model/package.json +0 -36
- package/node_modules/color-model/test/abstract-model.js +0 -82
- package/node_modules/color-model/test/component.js +0 -104
- package/node_modules/color-model/test/hex-rgb.js +0 -56
- package/node_modules/color-model/test/hsl.js +0 -33
- package/node_modules/color-model/test/lab.js +0 -37
- package/node_modules/color-model/test/rgb.js +0 -74
- package/node_modules/color-model/test/xyz.js +0 -45
- package/node_modules/color-string/LICENSE +0 -21
- package/node_modules/color-string/README.md +0 -62
- package/node_modules/color-string/index.js +0 -242
- package/node_modules/color-string/package.json +0 -43
- package/node_modules/color-support/LICENSE +0 -15
- package/node_modules/color-support/README.md +0 -129
- package/node_modules/color-support/bin.js +0 -3
- package/node_modules/color-support/browser.js +0 -14
- package/node_modules/color-support/index.js +0 -134
- package/node_modules/color-support/package.json +0 -40
- package/node_modules/console-control-strings/LICENSE +0 -13
- package/node_modules/console-control-strings/README.md +0 -145
- package/node_modules/console-control-strings/README.md~ +0 -140
- package/node_modules/console-control-strings/index.js +0 -125
- package/node_modules/console-control-strings/package.json +0 -31
- package/node_modules/core-util-is/LICENSE +0 -19
- package/node_modules/core-util-is/README.md +0 -3
- package/node_modules/core-util-is/lib/util.js +0 -107
- package/node_modules/core-util-is/package.json +0 -42
- package/node_modules/d3/CHANGES.md +0 -1409
- package/node_modules/d3/LICENSE +0 -27
- package/node_modules/d3/README.md +0 -57
- package/node_modules/d3/dist/d3.js +0 -18568
- package/node_modules/d3/dist/d3.min.js +0 -2
- package/node_modules/d3/dist/d3.node.js +0 -287
- package/node_modules/d3/dist/package.js +0 -16
- package/node_modules/d3/index.js +0 -32
- package/node_modules/d3/package.json +0 -82
- package/node_modules/d3-array/.eslintrc.json +0 -15
- package/node_modules/d3-array/LICENSE +0 -27
- package/node_modules/d3-array/README.md +0 -382
- package/node_modules/d3-array/dist/d3-array.js +0 -590
- package/node_modules/d3-array/dist/d3-array.min.js +0 -2
- package/node_modules/d3-array/package.json +0 -46
- package/node_modules/d3-array/rollup.config.js +0 -36
- package/node_modules/d3-array/src/array.js +0 -4
- package/node_modules/d3-array/src/ascending.js +0 -3
- package/node_modules/d3-array/src/bisect.js +0 -7
- package/node_modules/d3-array/src/bisector.js +0 -33
- package/node_modules/d3-array/src/constant.js +0 -5
- package/node_modules/d3-array/src/cross.js +0 -21
- package/node_modules/d3-array/src/descending.js +0 -3
- package/node_modules/d3-array/src/deviation.js +0 -6
- package/node_modules/d3-array/src/extent.js +0 -37
- package/node_modules/d3-array/src/histogram.js +0 -75
- package/node_modules/d3-array/src/identity.js +0 -3
- package/node_modules/d3-array/src/index.js +0 -27
- package/node_modules/d3-array/src/max.js +0 -34
- package/node_modules/d3-array/src/mean.js +0 -25
- package/node_modules/d3-array/src/median.js +0 -28
- package/node_modules/d3-array/src/merge.js +0 -21
- package/node_modules/d3-array/src/min.js +0 -34
- package/node_modules/d3-array/src/number.js +0 -3
- package/node_modules/d3-array/src/pairs.js +0 -10
- package/node_modules/d3-array/src/permute.js +0 -5
- package/node_modules/d3-array/src/quantile.js +0 -14
- package/node_modules/d3-array/src/range.js +0 -13
- package/node_modules/d3-array/src/scan.js +0 -20
- package/node_modules/d3-array/src/shuffle.js +0 -14
- package/node_modules/d3-array/src/sum.js +0 -20
- package/node_modules/d3-array/src/threshold/freedmanDiaconis.js +0 -9
- package/node_modules/d3-array/src/threshold/scott.js +0 -5
- package/node_modules/d3-array/src/threshold/sturges.js +0 -3
- package/node_modules/d3-array/src/ticks.js +0 -51
- package/node_modules/d3-array/src/transpose.js +0 -15
- package/node_modules/d3-array/src/variance.js +0 -33
- package/node_modules/d3-array/src/zip.js +0 -5
- package/node_modules/d3-array/yarn.lock +0 -939
- package/node_modules/d3-axis/.eslintrc.json +0 -15
- package/node_modules/d3-axis/LICENSE +0 -27
- package/node_modules/d3-axis/README.md +0 -192
- package/node_modules/d3-axis/dist/d3-axis.js +0 -193
- package/node_modules/d3-axis/dist/d3-axis.min.js +0 -2
- package/node_modules/d3-axis/package.json +0 -45
- package/node_modules/d3-axis/rollup.config.js +0 -36
- package/node_modules/d3-axis/src/array.js +0 -1
- package/node_modules/d3-axis/src/axis.js +0 -174
- package/node_modules/d3-axis/src/identity.js +0 -3
- package/node_modules/d3-axis/src/index.js +0 -6
- package/node_modules/d3-axis/yarn.lock +0 -1432
- package/node_modules/d3-brush/LICENSE +0 -27
- package/node_modules/d3-brush/README.md +0 -169
- package/node_modules/d3-brush/dist/d3-brush.js +0 -619
- package/node_modules/d3-brush/dist/d3-brush.min.js +0 -2
- package/node_modules/d3-brush/package.json +0 -52
- package/node_modules/d3-brush/src/brush.js +0 -591
- package/node_modules/d3-brush/src/constant.js +0 -5
- package/node_modules/d3-brush/src/event.js +0 -5
- package/node_modules/d3-brush/src/index.js +0 -6
- package/node_modules/d3-brush/src/noevent.js +0 -10
- package/node_modules/d3-chord/.eslintrc.json +0 -15
- package/node_modules/d3-chord/LICENSE +0 -27
- package/node_modules/d3-chord/README.md +0 -170
- package/node_modules/d3-chord/dist/d3-chord.js +0 -230
- package/node_modules/d3-chord/dist/d3-chord.min.js +0 -2
- package/node_modules/d3-chord/package.json +0 -47
- package/node_modules/d3-chord/rollup.config.js +0 -36
- package/node_modules/d3-chord/src/array.js +0 -1
- package/node_modules/d3-chord/src/chord.js +0 -121
- package/node_modules/d3-chord/src/constant.js +0 -5
- package/node_modules/d3-chord/src/index.js +0 -2
- package/node_modules/d3-chord/src/math.js +0 -6
- package/node_modules/d3-chord/src/ribbon.js +0 -87
- package/node_modules/d3-chord/yarn.lock +0 -943
- package/node_modules/d3-collection/.eslintrc.json +0 -15
- package/node_modules/d3-collection/LICENSE +0 -27
- package/node_modules/d3-collection/README.md +0 -271
- package/node_modules/d3-collection/dist/d3-collection.js +0 -217
- package/node_modules/d3-collection/dist/d3-collection.min.js +0 -2
- package/node_modules/d3-collection/package.json +0 -46
- package/node_modules/d3-collection/rollup.config.js +0 -36
- package/node_modules/d3-collection/src/entries.js +0 -5
- package/node_modules/d3-collection/src/index.js +0 -6
- package/node_modules/d3-collection/src/keys.js +0 -5
- package/node_modules/d3-collection/src/map.js +0 -75
- package/node_modules/d3-collection/src/nest.js +0 -73
- package/node_modules/d3-collection/src/set.js +0 -39
- package/node_modules/d3-collection/src/values.js +0 -5
- package/node_modules/d3-collection/yarn-error.log +0 -1049
- package/node_modules/d3-collection/yarn.lock +0 -939
- package/node_modules/d3-color/LICENSE +0 -27
- package/node_modules/d3-color/README.md +0 -177
- package/node_modules/d3-color/dist/d3-color.js +0 -581
- package/node_modules/d3-color/dist/d3-color.min.js +0 -2
- package/node_modules/d3-color/package.json +0 -51
- package/node_modules/d3-color/src/color.js +0 -371
- package/node_modules/d3-color/src/cubehelix.js +0 -61
- package/node_modules/d3-color/src/define.js +0 -10
- package/node_modules/d3-color/src/index.js +0 -3
- package/node_modules/d3-color/src/lab.js +0 -123
- package/node_modules/d3-color/src/math.js +0 -2
- package/node_modules/d3-contour/.eslintrc.json +0 -16
- package/node_modules/d3-contour/LICENSE +0 -27
- package/node_modules/d3-contour/README.md +0 -172
- package/node_modules/d3-contour/dist/d3-contour.js +0 -431
- package/node_modules/d3-contour/dist/d3-contour.min.js +0 -2
- package/node_modules/d3-contour/package.json +0 -44
- package/node_modules/d3-contour/rollup.config.js +0 -36
- package/node_modules/d3-contour/src/area.js +0 -5
- package/node_modules/d3-contour/src/array.js +0 -3
- package/node_modules/d3-contour/src/ascending.js +0 -3
- package/node_modules/d3-contour/src/blur.js +0 -43
- package/node_modules/d3-contour/src/constant.js +0 -5
- package/node_modules/d3-contour/src/contains.js +0 -27
- package/node_modules/d3-contour/src/contours.js +0 -203
- package/node_modules/d3-contour/src/density.js +0 -133
- package/node_modules/d3-contour/src/index.js +0 -2
- package/node_modules/d3-contour/src/noop.js +0 -1
- package/node_modules/d3-contour/yarn.lock +0 -939
- package/node_modules/d3-dispatch/LICENSE +0 -27
- package/node_modules/d3-dispatch/README.md +0 -82
- package/node_modules/d3-dispatch/dist/d3-dispatch.js +0 -95
- package/node_modules/d3-dispatch/dist/d3-dispatch.min.js +0 -2
- package/node_modules/d3-dispatch/package.json +0 -47
- package/node_modules/d3-dispatch/src/dispatch.js +0 -84
- package/node_modules/d3-dispatch/src/index.js +0 -1
- package/node_modules/d3-drag/LICENSE +0 -27
- package/node_modules/d3-drag/README.md +0 -235
- package/node_modules/d3-drag/dist/d3-drag.js +0 -234
- package/node_modules/d3-drag/dist/d3-drag.min.js +0 -2
- package/node_modules/d3-drag/package.json +0 -51
- package/node_modules/d3-drag/src/constant.js +0 -5
- package/node_modules/d3-drag/src/drag.js +0 -167
- package/node_modules/d3-drag/src/event.js +0 -17
- package/node_modules/d3-drag/src/index.js +0 -2
- package/node_modules/d3-drag/src/nodrag.js +0 -28
- package/node_modules/d3-drag/src/noevent.js +0 -10
- package/node_modules/d3-dsv/LICENSE +0 -27
- package/node_modules/d3-dsv/README.md +0 -473
- package/node_modules/d3-dsv/bin/dsv2dsv +0 -32
- package/node_modules/d3-dsv/bin/dsv2json +0 -33
- package/node_modules/d3-dsv/bin/json2dsv +0 -33
- package/node_modules/d3-dsv/dist/d3-dsv.js +0 -233
- package/node_modules/d3-dsv/dist/d3-dsv.min.js +0 -2
- package/node_modules/d3-dsv/node_modules/commander/CHANGELOG.md +0 -419
- package/node_modules/d3-dsv/node_modules/commander/LICENSE +0 -22
- package/node_modules/d3-dsv/node_modules/commander/Readme.md +0 -428
- package/node_modules/d3-dsv/node_modules/commander/index.js +0 -1224
- package/node_modules/d3-dsv/node_modules/commander/package.json +0 -42
- package/node_modules/d3-dsv/node_modules/commander/typings/index.d.ts +0 -310
- package/node_modules/d3-dsv/package.json +0 -65
- package/node_modules/d3-dsv/src/autoType.js +0 -20
- package/node_modules/d3-dsv/src/csv.js +0 -11
- package/node_modules/d3-dsv/src/dsv.js +0 -164
- package/node_modules/d3-dsv/src/index.js +0 -4
- package/node_modules/d3-dsv/src/tsv.js +0 -11
- package/node_modules/d3-ease/LICENSE +0 -28
- package/node_modules/d3-ease/README.md +0 -241
- package/node_modules/d3-ease/dist/d3-ease.js +0 -264
- package/node_modules/d3-ease/dist/d3-ease.min.js +0 -2
- package/node_modules/d3-ease/package.json +0 -48
- package/node_modules/d3-ease/src/back.js +0 -37
- package/node_modules/d3-ease/src/bounce.js +0 -22
- package/node_modules/d3-ease/src/circle.js +0 -11
- package/node_modules/d3-ease/src/cubic.js +0 -11
- package/node_modules/d3-ease/src/elastic.js +0 -46
- package/node_modules/d3-ease/src/exp.js +0 -13
- package/node_modules/d3-ease/src/index.js +0 -66
- package/node_modules/d3-ease/src/linear.js +0 -3
- package/node_modules/d3-ease/src/math.js +0 -4
- package/node_modules/d3-ease/src/poly.js +0 -37
- package/node_modules/d3-ease/src/quad.js +0 -11
- package/node_modules/d3-ease/src/sin.js +0 -14
- package/node_modules/d3-fetch/LICENSE +0 -27
- package/node_modules/d3-fetch/README.md +0 -104
- package/node_modules/d3-fetch/dist/d3-fetch.js +0 -103
- package/node_modules/d3-fetch/dist/d3-fetch.min.js +0 -2
- package/node_modules/d3-fetch/package.json +0 -50
- package/node_modules/d3-fetch/src/blob.js +0 -8
- package/node_modules/d3-fetch/src/buffer.js +0 -8
- package/node_modules/d3-fetch/src/dsv.js +0 -22
- package/node_modules/d3-fetch/src/image.js +0 -9
- package/node_modules/d3-fetch/src/index.js +0 -7
- package/node_modules/d3-fetch/src/json.js +0 -9
- package/node_modules/d3-fetch/src/text.js +0 -8
- package/node_modules/d3-fetch/src/xml.js +0 -15
- package/node_modules/d3-force/.eslintrc.json +0 -15
- package/node_modules/d3-force/LICENSE +0 -27
- package/node_modules/d3-force/README.md +0 -459
- package/node_modules/d3-force/dist/d3-force.js +0 -668
- package/node_modules/d3-force/dist/d3-force.min.js +0 -2
- package/node_modules/d3-force/package.json +0 -51
- package/node_modules/d3-force/rollup.config.js +0 -36
- package/node_modules/d3-force/src/center.js +0 -36
- package/node_modules/d3-force/src/collide.js +0 -98
- package/node_modules/d3-force/src/constant.js +0 -5
- package/node_modules/d3-force/src/index.js +0 -8
- package/node_modules/d3-force/src/jiggle.js +0 -3
- package/node_modules/d3-force/src/link.js +0 -116
- package/node_modules/d3-force/src/manyBody.js +0 -114
- package/node_modules/d3-force/src/radial.js +0 -57
- package/node_modules/d3-force/src/simulation.js +0 -151
- package/node_modules/d3-force/src/x.js +0 -41
- package/node_modules/d3-force/src/y.js +0 -41
- package/node_modules/d3-force/yarn.lock +0 -951
- package/node_modules/d3-format/LICENSE +0 -27
- package/node_modules/d3-format/README.md +0 -343
- package/node_modules/d3-format/dist/d3-format.js +0 -345
- package/node_modules/d3-format/dist/d3-format.min.js +0 -2
- package/node_modules/d3-format/locale/ar-001.json +0 -7
- package/node_modules/d3-format/locale/ar-AE.json +0 -7
- package/node_modules/d3-format/locale/ar-BH.json +0 -7
- package/node_modules/d3-format/locale/ar-DJ.json +0 -7
- package/node_modules/d3-format/locale/ar-DZ.json +0 -6
- package/node_modules/d3-format/locale/ar-EG.json +0 -7
- package/node_modules/d3-format/locale/ar-EH.json +0 -6
- package/node_modules/d3-format/locale/ar-ER.json +0 -7
- package/node_modules/d3-format/locale/ar-IL.json +0 -7
- package/node_modules/d3-format/locale/ar-IQ.json +0 -7
- package/node_modules/d3-format/locale/ar-JO.json +0 -7
- package/node_modules/d3-format/locale/ar-KM.json +0 -7
- package/node_modules/d3-format/locale/ar-KW.json +0 -7
- package/node_modules/d3-format/locale/ar-LB.json +0 -7
- package/node_modules/d3-format/locale/ar-LY.json +0 -6
- package/node_modules/d3-format/locale/ar-MA.json +0 -6
- package/node_modules/d3-format/locale/ar-MR.json +0 -7
- package/node_modules/d3-format/locale/ar-OM.json +0 -7
- package/node_modules/d3-format/locale/ar-PS.json +0 -7
- package/node_modules/d3-format/locale/ar-QA.json +0 -7
- package/node_modules/d3-format/locale/ar-SA.json +0 -7
- package/node_modules/d3-format/locale/ar-SD.json +0 -7
- package/node_modules/d3-format/locale/ar-SO.json +0 -7
- package/node_modules/d3-format/locale/ar-SS.json +0 -7
- package/node_modules/d3-format/locale/ar-SY.json +0 -7
- package/node_modules/d3-format/locale/ar-TD.json +0 -7
- package/node_modules/d3-format/locale/ar-TN.json +0 -6
- package/node_modules/d3-format/locale/ar-YE.json +0 -7
- package/node_modules/d3-format/locale/ca-ES.json +0 -6
- package/node_modules/d3-format/locale/cs-CZ.json +0 -6
- package/node_modules/d3-format/locale/de-CH.json +0 -6
- package/node_modules/d3-format/locale/de-DE.json +0 -6
- package/node_modules/d3-format/locale/en-CA.json +0 -6
- package/node_modules/d3-format/locale/en-GB.json +0 -6
- package/node_modules/d3-format/locale/en-IE.json +0 -6
- package/node_modules/d3-format/locale/en-IN.json +0 -6
- package/node_modules/d3-format/locale/en-US.json +0 -6
- package/node_modules/d3-format/locale/es-BO.json +0 -7
- package/node_modules/d3-format/locale/es-ES.json +0 -6
- package/node_modules/d3-format/locale/es-MX.json +0 -6
- package/node_modules/d3-format/locale/fi-FI.json +0 -6
- package/node_modules/d3-format/locale/fr-CA.json +0 -6
- package/node_modules/d3-format/locale/fr-FR.json +0 -7
- package/node_modules/d3-format/locale/he-IL.json +0 -6
- package/node_modules/d3-format/locale/hu-HU.json +0 -6
- package/node_modules/d3-format/locale/it-IT.json +0 -6
- package/node_modules/d3-format/locale/ja-JP.json +0 -6
- package/node_modules/d3-format/locale/ko-KR.json +0 -6
- package/node_modules/d3-format/locale/mk-MK.json +0 -6
- package/node_modules/d3-format/locale/nl-NL.json +0 -6
- package/node_modules/d3-format/locale/pl-PL.json +0 -6
- package/node_modules/d3-format/locale/pt-BR.json +0 -6
- package/node_modules/d3-format/locale/ru-RU.json +0 -6
- package/node_modules/d3-format/locale/sv-SE.json +0 -6
- package/node_modules/d3-format/locale/uk-UA.json +0 -6
- package/node_modules/d3-format/locale/zh-CN.json +0 -6
- package/node_modules/d3-format/package.json +0 -49
- package/node_modules/d3-format/src/defaultLocale.js +0 -20
- package/node_modules/d3-format/src/exponent.js +0 -5
- package/node_modules/d3-format/src/formatDecimal.js +0 -20
- package/node_modules/d3-format/src/formatGroup.js +0 -18
- package/node_modules/d3-format/src/formatNumerals.js +0 -7
- package/node_modules/d3-format/src/formatPrefixAuto.js +0 -16
- package/node_modules/d3-format/src/formatRounded.js +0 -11
- package/node_modules/d3-format/src/formatSpecifier.js +0 -47
- package/node_modules/d3-format/src/formatTrim.js +0 -11
- package/node_modules/d3-format/src/formatTypes.js +0 -19
- package/node_modules/d3-format/src/identity.js +0 -3
- package/node_modules/d3-format/src/index.js +0 -6
- package/node_modules/d3-format/src/locale.js +0 -148
- package/node_modules/d3-format/src/precisionFixed.js +0 -5
- package/node_modules/d3-format/src/precisionPrefix.js +0 -5
- package/node_modules/d3-format/src/precisionRound.js +0 -6
- package/node_modules/d3-geo/LICENSE +0 -48
- package/node_modules/d3-geo/README.md +0 -683
- package/node_modules/d3-geo/dist/d3-geo.js +0 -3165
- package/node_modules/d3-geo/dist/d3-geo.min.js +0 -2
- package/node_modules/d3-geo/package.json +0 -56
- package/node_modules/d3-geo/src/adder.js +0 -40
- package/node_modules/d3-geo/src/area.js +0 -74
- package/node_modules/d3-geo/src/bounds.js +0 -179
- package/node_modules/d3-geo/src/cartesian.js +0 -33
- package/node_modules/d3-geo/src/centroid.js +0 -140
- package/node_modules/d3-geo/src/circle.js +0 -72
- package/node_modules/d3-geo/src/clip/antimeridian.js +0 -92
- package/node_modules/d3-geo/src/clip/buffer.js +0 -24
- package/node_modules/d3-geo/src/clip/circle.js +0 -177
- package/node_modules/d3-geo/src/clip/extent.js +0 -20
- package/node_modules/d3-geo/src/clip/index.js +0 -131
- package/node_modules/d3-geo/src/clip/line.js +0 -59
- package/node_modules/d3-geo/src/clip/rectangle.js +0 -168
- package/node_modules/d3-geo/src/clip/rejoin.js +0 -103
- package/node_modules/d3-geo/src/compose.js +0 -12
- package/node_modules/d3-geo/src/constant.js +0 -5
- package/node_modules/d3-geo/src/contains.js +0 -97
- package/node_modules/d3-geo/src/distance.js +0 -10
- package/node_modules/d3-geo/src/graticule.js +0 -105
- package/node_modules/d3-geo/src/identity.js +0 -3
- package/node_modules/d3-geo/src/index.js +0 -34
- package/node_modules/d3-geo/src/interpolate.js +0 -36
- package/node_modules/d3-geo/src/length.js +0 -53
- package/node_modules/d3-geo/src/math.js +0 -35
- package/node_modules/d3-geo/src/noop.js +0 -1
- package/node_modules/d3-geo/src/path/area.js +0 -50
- package/node_modules/d3-geo/src/path/bounds.js +0 -28
- package/node_modules/d3-geo/src/path/centroid.js +0 -100
- package/node_modules/d3-geo/src/path/context.js +0 -45
- package/node_modules/d3-geo/src/path/index.js +0 -61
- package/node_modules/d3-geo/src/path/measure.js +0 -45
- package/node_modules/d3-geo/src/path/string.js +0 -59
- package/node_modules/d3-geo/src/pointEqual.js +0 -5
- package/node_modules/d3-geo/src/polygonContains.js +0 -79
- package/node_modules/d3-geo/src/projection/albers.js +0 -10
- package/node_modules/d3-geo/src/projection/albersUsa.js +0 -111
- package/node_modules/d3-geo/src/projection/azimuthal.js +0 -26
- package/node_modules/d3-geo/src/projection/azimuthalEqualArea.js +0 -17
- package/node_modules/d3-geo/src/projection/azimuthalEquidistant.js +0 -17
- package/node_modules/d3-geo/src/projection/conic.js +0 -15
- package/node_modules/d3-geo/src/projection/conicConformal.js +0 -38
- package/node_modules/d3-geo/src/projection/conicEqualArea.js +0 -33
- package/node_modules/d3-geo/src/projection/conicEquidistant.js +0 -32
- package/node_modules/d3-geo/src/projection/cylindricalEqualArea.js +0 -15
- package/node_modules/d3-geo/src/projection/equalEarth.js +0 -36
- package/node_modules/d3-geo/src/projection/equirectangular.js +0 -12
- package/node_modules/d3-geo/src/projection/fit.js +0 -47
- package/node_modules/d3-geo/src/projection/gnomonic.js +0 -16
- package/node_modules/d3-geo/src/projection/identity.js +0 -85
- package/node_modules/d3-geo/src/projection/index.js +0 -176
- package/node_modules/d3-geo/src/projection/mercator.js +0 -52
- package/node_modules/d3-geo/src/projection/naturalEarth1.js +0 -28
- package/node_modules/d3-geo/src/projection/orthographic.js +0 -15
- package/node_modules/d3-geo/src/projection/resample.js +0 -102
- package/node_modules/d3-geo/src/projection/stereographic.js +0 -18
- package/node_modules/d3-geo/src/projection/transverseMercator.js +0 -27
- package/node_modules/d3-geo/src/rotation.js +0 -76
- package/node_modules/d3-geo/src/stream.js +0 -69
- package/node_modules/d3-geo/src/transform.js +0 -26
- package/node_modules/d3-hierarchy/LICENSE +0 -27
- package/node_modules/d3-hierarchy/README.md +0 -548
- package/node_modules/d3-hierarchy/dist/d3-hierarchy.js +0 -1290
- package/node_modules/d3-hierarchy/dist/d3-hierarchy.min.js +0 -2
- package/node_modules/d3-hierarchy/package.json +0 -54
- package/node_modules/d3-hierarchy/src/accessors.js +0 -8
- package/node_modules/d3-hierarchy/src/array.js +0 -16
- package/node_modules/d3-hierarchy/src/cluster.js +0 -84
- package/node_modules/d3-hierarchy/src/constant.js +0 -9
- package/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +0 -7
- package/node_modules/d3-hierarchy/src/hierarchy/count.js +0 -12
- package/node_modules/d3-hierarchy/src/hierarchy/descendants.js +0 -7
- package/node_modules/d3-hierarchy/src/hierarchy/each.js +0 -13
- package/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +0 -13
- package/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +0 -10
- package/node_modules/d3-hierarchy/src/hierarchy/index.js +0 -79
- package/node_modules/d3-hierarchy/src/hierarchy/leaves.js +0 -9
- package/node_modules/d3-hierarchy/src/hierarchy/links.js +0 -9
- package/node_modules/d3-hierarchy/src/hierarchy/path.js +0 -30
- package/node_modules/d3-hierarchy/src/hierarchy/sort.js +0 -7
- package/node_modules/d3-hierarchy/src/hierarchy/sum.js +0 -9
- package/node_modules/d3-hierarchy/src/index.js +0 -15
- package/node_modules/d3-hierarchy/src/pack/enclose.js +0 -118
- package/node_modules/d3-hierarchy/src/pack/index.js +0 -79
- package/node_modules/d3-hierarchy/src/pack/siblings.js +0 -118
- package/node_modules/d3-hierarchy/src/partition.js +0 -52
- package/node_modules/d3-hierarchy/src/stratify.js +0 -73
- package/node_modules/d3-hierarchy/src/tree.js +0 -237
- package/node_modules/d3-hierarchy/src/treemap/binary.js +0 -46
- package/node_modules/d3-hierarchy/src/treemap/dice.js +0 -12
- package/node_modules/d3-hierarchy/src/treemap/index.js +0 -94
- package/node_modules/d3-hierarchy/src/treemap/resquarify.js +0 -36
- package/node_modules/d3-hierarchy/src/treemap/round.js +0 -6
- package/node_modules/d3-hierarchy/src/treemap/slice.js +0 -12
- package/node_modules/d3-hierarchy/src/treemap/sliceDice.js +0 -6
- package/node_modules/d3-hierarchy/src/treemap/squarify.js +0 -66
- package/node_modules/d3-interpolate/LICENSE +0 -27
- package/node_modules/d3-interpolate/README.md +0 -250
- package/node_modules/d3-interpolate/dist/d3-interpolate.js +0 -593
- package/node_modules/d3-interpolate/dist/d3-interpolate.min.js +0 -2
- package/node_modules/d3-interpolate/package.json +0 -50
- package/node_modules/d3-interpolate/src/array.js +0 -22
- package/node_modules/d3-interpolate/src/basis.js +0 -19
- package/node_modules/d3-interpolate/src/basisClosed.js +0 -13
- package/node_modules/d3-interpolate/src/color.js +0 -29
- package/node_modules/d3-interpolate/src/constant.js +0 -5
- package/node_modules/d3-interpolate/src/cubehelix.js +0 -29
- package/node_modules/d3-interpolate/src/date.js +0 -6
- package/node_modules/d3-interpolate/src/discrete.js +0 -6
- package/node_modules/d3-interpolate/src/hcl.js +0 -21
- package/node_modules/d3-interpolate/src/hsl.js +0 -21
- package/node_modules/d3-interpolate/src/hue.js +0 -9
- package/node_modules/d3-interpolate/src/index.js +0 -21
- package/node_modules/d3-interpolate/src/lab.js +0 -16
- package/node_modules/d3-interpolate/src/number.js +0 -5
- package/node_modules/d3-interpolate/src/numberArray.js +0 -14
- package/node_modules/d3-interpolate/src/object.js +0 -23
- package/node_modules/d3-interpolate/src/piecewise.js +0 -8
- package/node_modules/d3-interpolate/src/quantize.js +0 -5
- package/node_modules/d3-interpolate/src/rgb.js +0 -55
- package/node_modules/d3-interpolate/src/round.js +0 -5
- package/node_modules/d3-interpolate/src/string.js +0 -64
- package/node_modules/d3-interpolate/src/transform/decompose.js +0 -26
- package/node_modules/d3-interpolate/src/transform/index.js +0 -63
- package/node_modules/d3-interpolate/src/transform/parse.js +0 -25
- package/node_modules/d3-interpolate/src/value.js +0 -22
- package/node_modules/d3-interpolate/src/zoom.js +0 -64
- package/node_modules/d3-path/LICENSE +0 -27
- package/node_modules/d3-path/README.md +0 -78
- package/node_modules/d3-path/dist/d3-path.js +0 -141
- package/node_modules/d3-path/dist/d3-path.min.js +0 -2
- package/node_modules/d3-path/package.json +0 -51
- package/node_modules/d3-path/src/index.js +0 -1
- package/node_modules/d3-path/src/path.js +0 -130
- package/node_modules/d3-polygon/LICENSE +0 -27
- package/node_modules/d3-polygon/README.md +0 -40
- package/node_modules/d3-polygon/dist/d3-polygon.js +0 -150
- package/node_modules/d3-polygon/dist/d3-polygon.min.js +0 -2
- package/node_modules/d3-polygon/package.json +0 -48
- package/node_modules/d3-polygon/src/area.js +0 -15
- package/node_modules/d3-polygon/src/centroid.js +0 -20
- package/node_modules/d3-polygon/src/contains.js +0 -16
- package/node_modules/d3-polygon/src/cross.js +0 -7
- package/node_modules/d3-polygon/src/hull.js +0 -49
- package/node_modules/d3-polygon/src/index.js +0 -5
- package/node_modules/d3-polygon/src/length.js +0 -23
- package/node_modules/d3-quadtree/LICENSE +0 -27
- package/node_modules/d3-quadtree/README.md +0 -163
- package/node_modules/d3-quadtree/dist/d3-quadtree.js +0 -419
- package/node_modules/d3-quadtree/dist/d3-quadtree.min.js +0 -2
- package/node_modules/d3-quadtree/package.json +0 -46
- package/node_modules/d3-quadtree/src/add.js +0 -84
- package/node_modules/d3-quadtree/src/cover.js +0 -43
- package/node_modules/d3-quadtree/src/data.js +0 -7
- package/node_modules/d3-quadtree/src/extent.js +0 -5
- package/node_modules/d3-quadtree/src/find.js +0 -70
- package/node_modules/d3-quadtree/src/index.js +0 -1
- package/node_modules/d3-quadtree/src/quad.js +0 -7
- package/node_modules/d3-quadtree/src/quadtree.js +0 -73
- package/node_modules/d3-quadtree/src/remove.js +0 -62
- package/node_modules/d3-quadtree/src/root.js +0 -3
- package/node_modules/d3-quadtree/src/size.js +0 -7
- package/node_modules/d3-quadtree/src/visit.js +0 -16
- package/node_modules/d3-quadtree/src/visitAfter.js +0 -21
- package/node_modules/d3-quadtree/src/x.js +0 -7
- package/node_modules/d3-quadtree/src/y.js +0 -7
- package/node_modules/d3-random/.eslintrc.json +0 -15
- package/node_modules/d3-random/LICENSE +0 -27
- package/node_modules/d3-random/README.md +0 -63
- package/node_modules/d3-random/dist/d3-random.js +0 -115
- package/node_modules/d3-random/dist/d3-random.min.js +0 -2
- package/node_modules/d3-random/package.json +0 -43
- package/node_modules/d3-random/rollup.config.js +0 -36
- package/node_modules/d3-random/src/bates.js +0 -15
- package/node_modules/d3-random/src/defaultSource.js +0 -3
- package/node_modules/d3-random/src/exponential.js +0 -13
- package/node_modules/d3-random/src/index.js +0 -6
- package/node_modules/d3-random/src/irwinHall.js +0 -14
- package/node_modules/d3-random/src/logNormal.js +0 -15
- package/node_modules/d3-random/src/normal.js +0 -28
- package/node_modules/d3-random/src/uniform.js +0 -17
- package/node_modules/d3-random/yarn.lock +0 -943
- package/node_modules/d3-scale/.eslintrc.json +0 -15
- package/node_modules/d3-scale/LICENSE +0 -27
- package/node_modules/d3-scale/README.md +0 -952
- package/node_modules/d3-scale/dist/d3-scale.js +0 -1165
- package/node_modules/d3-scale/dist/d3-scale.min.js +0 -2
- package/node_modules/d3-scale/package.json +0 -50
- package/node_modules/d3-scale/rollup.config.js +0 -36
- package/node_modules/d3-scale/src/array.js +0 -4
- package/node_modules/d3-scale/src/band.js +0 -100
- package/node_modules/d3-scale/src/colors.js +0 -5
- package/node_modules/d3-scale/src/constant.js +0 -5
- package/node_modules/d3-scale/src/continuous.js +0 -124
- package/node_modules/d3-scale/src/diverging.js +0 -91
- package/node_modules/d3-scale/src/identity.js +0 -29
- package/node_modules/d3-scale/src/index.js +0 -74
- package/node_modules/d3-scale/src/init.js +0 -17
- package/node_modules/d3-scale/src/linear.js +0 -72
- package/node_modules/d3-scale/src/log.js +0 -145
- package/node_modules/d3-scale/src/nice.js +0 -18
- package/node_modules/d3-scale/src/number.js +0 -3
- package/node_modules/d3-scale/src/ordinal.js +0 -45
- package/node_modules/d3-scale/src/pow.js +0 -50
- package/node_modules/d3-scale/src/quantile.js +0 -58
- package/node_modules/d3-scale/src/quantize.js +0 -57
- package/node_modules/d3-scale/src/sequential.js +0 -95
- package/node_modules/d3-scale/src/sequentialQuantile.js +0 -30
- package/node_modules/d3-scale/src/symlog.js +0 -35
- package/node_modules/d3-scale/src/threshold.js +0 -40
- package/node_modules/d3-scale/src/tickFormat.js +0 -29
- package/node_modules/d3-scale/src/time.js +0 -135
- package/node_modules/d3-scale/src/utcTime.js +0 -8
- package/node_modules/d3-scale/yarn.lock +0 -967
- package/node_modules/d3-scale-chromatic/LICENSE +0 -44
- package/node_modules/d3-scale-chromatic/README.md +0 -386
- package/node_modules/d3-scale-chromatic/dist/d3-scale-chromatic.js +0 -521
- package/node_modules/d3-scale-chromatic/dist/d3-scale-chromatic.min.js +0 -2
- package/node_modules/d3-scale-chromatic/package.json +0 -52
- package/node_modules/d3-scale-chromatic/src/categorical/Accent.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Dark2.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Paired.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Set1.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Set2.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Set3.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +0 -3
- package/node_modules/d3-scale-chromatic/src/categorical/category10.js +0 -3
- package/node_modules/d3-scale-chromatic/src/colors.js +0 -5
- package/node_modules/d3-scale-chromatic/src/diverging/BrBG.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/PRGn.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/PiYG.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/PuOr.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/RdBu.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/RdGy.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js +0 -16
- package/node_modules/d3-scale-chromatic/src/diverging/Spectral.js +0 -16
- package/node_modules/d3-scale-chromatic/src/index.js +0 -43
- package/node_modules/d3-scale-chromatic/src/ramp.js +0 -5
- package/node_modules/d3-scale-chromatic/src/rampClosed.js +0 -9
- package/node_modules/d3-scale-chromatic/src/scheme.js +0 -11
- package/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js +0 -8
- package/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js +0 -4
- package/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js +0 -17
- package/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js +0 -8
- package/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js +0 -16
- package/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js +0 -14
- package/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js +0 -14
- package/node_modules/d3-selection/LICENSE +0 -26
- package/node_modules/d3-selection/README.md +0 -829
- package/node_modules/d3-selection/dist/d3-selection.js +0 -989
- package/node_modules/d3-selection/dist/d3-selection.min.js +0 -2
- package/node_modules/d3-selection/package.json +0 -48
- package/node_modules/d3-selection/src/constant.js +0 -5
- package/node_modules/d3-selection/src/create.js +0 -6
- package/node_modules/d3-selection/src/creator.js +0 -25
- package/node_modules/d3-selection/src/identity.js +0 -3
- package/node_modules/d3-selection/src/index.js +0 -18
- package/node_modules/d3-selection/src/local.js +0 -27
- package/node_modules/d3-selection/src/matcher.js +0 -5
- package/node_modules/d3-selection/src/mouse.js +0 -8
- package/node_modules/d3-selection/src/namespace.js +0 -7
- package/node_modules/d3-selection/src/namespaces.js +0 -9
- package/node_modules/d3-selection/src/point.js +0 -13
- package/node_modules/d3-selection/src/select.js +0 -7
- package/node_modules/d3-selection/src/selectAll.js +0 -7
- package/node_modules/d3-selection/src/selection/append.js +0 -8
- package/node_modules/d3-selection/src/selection/attr.js +0 -57
- package/node_modules/d3-selection/src/selection/call.js +0 -6
- package/node_modules/d3-selection/src/selection/classed.js +0 -75
- package/node_modules/d3-selection/src/selection/clone.js +0 -13
- package/node_modules/d3-selection/src/selection/data.js +0 -118
- package/node_modules/d3-selection/src/selection/datum.js +0 -5
- package/node_modules/d3-selection/src/selection/dispatch.js +0 -34
- package/node_modules/d3-selection/src/selection/each.js +0 -10
- package/node_modules/d3-selection/src/selection/empty.js +0 -3
- package/node_modules/d3-selection/src/selection/enter.js +0 -22
- package/node_modules/d3-selection/src/selection/exit.js +0 -6
- package/node_modules/d3-selection/src/selection/filter.js +0 -16
- package/node_modules/d3-selection/src/selection/html.js +0 -25
- package/node_modules/d3-selection/src/selection/index.js +0 -79
- package/node_modules/d3-selection/src/selection/insert.js +0 -14
- package/node_modules/d3-selection/src/selection/join.js +0 -7
- package/node_modules/d3-selection/src/selection/lower.js +0 -7
- package/node_modules/d3-selection/src/selection/merge.js +0 -18
- package/node_modules/d3-selection/src/selection/node.js +0 -11
- package/node_modules/d3-selection/src/selection/nodes.js +0 -5
- package/node_modules/d3-selection/src/selection/on.js +0 -107
- package/node_modules/d3-selection/src/selection/order.js +0 -13
- package/node_modules/d3-selection/src/selection/property.js +0 -28
- package/node_modules/d3-selection/src/selection/raise.js +0 -7
- package/node_modules/d3-selection/src/selection/remove.js +0 -8
- package/node_modules/d3-selection/src/selection/select.js +0 -17
- package/node_modules/d3-selection/src/selection/selectAll.js +0 -17
- package/node_modules/d3-selection/src/selection/size.js +0 -5
- package/node_modules/d3-selection/src/selection/sort.js +0 -24
- package/node_modules/d3-selection/src/selection/sparse.js +0 -3
- package/node_modules/d3-selection/src/selection/style.js +0 -35
- package/node_modules/d3-selection/src/selection/text.js +0 -25
- package/node_modules/d3-selection/src/selector.js +0 -7
- package/node_modules/d3-selection/src/selectorAll.js +0 -9
- package/node_modules/d3-selection/src/sourceEvent.js +0 -7
- package/node_modules/d3-selection/src/touch.js +0 -14
- package/node_modules/d3-selection/src/touches.js +0 -12
- package/node_modules/d3-selection/src/window.js +0 -5
- package/node_modules/d3-shape/LICENSE +0 -27
- package/node_modules/d3-shape/README.md +0 -1149
- package/node_modules/d3-shape/dist/d3-shape.js +0 -1949
- package/node_modules/d3-shape/dist/d3-shape.min.js +0 -2
- package/node_modules/d3-shape/package.json +0 -52
- package/node_modules/d3-shape/src/arc.js +0 -261
- package/node_modules/d3-shape/src/area.js +0 -109
- package/node_modules/d3-shape/src/areaRadial.js +0 -29
- package/node_modules/d3-shape/src/array.js +0 -1
- package/node_modules/d3-shape/src/constant.js +0 -5
- package/node_modules/d3-shape/src/curve/basis.js +0 -51
- package/node_modules/d3-shape/src/curve/basisClosed.js +0 -52
- package/node_modules/d3-shape/src/curve/basisOpen.js +0 -39
- package/node_modules/d3-shape/src/curve/bundle.js +0 -56
- package/node_modules/d3-shape/src/curve/cardinal.js +0 -61
- package/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -61
- package/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -49
- package/node_modules/d3-shape/src/curve/catmullRom.js +0 -88
- package/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -74
- package/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -62
- package/node_modules/d3-shape/src/curve/linear.js +0 -31
- package/node_modules/d3-shape/src/curve/linearClosed.js +0 -25
- package/node_modules/d3-shape/src/curve/monotone.js +0 -104
- package/node_modules/d3-shape/src/curve/natural.js +0 -65
- package/node_modules/d3-shape/src/curve/radial.js +0 -36
- package/node_modules/d3-shape/src/curve/step.js +0 -53
- package/node_modules/d3-shape/src/descending.js +0 -3
- package/node_modules/d3-shape/src/identity.js +0 -3
- package/node_modules/d3-shape/src/index.js +0 -46
- package/node_modules/d3-shape/src/line.js +0 -55
- package/node_modules/d3-shape/src/lineRadial.js +0 -19
- package/node_modules/d3-shape/src/link/index.js +0 -84
- package/node_modules/d3-shape/src/math.js +0 -20
- package/node_modules/d3-shape/src/noop.js +0 -1
- package/node_modules/d3-shape/src/offset/diverging.js +0 -14
- package/node_modules/d3-shape/src/offset/expand.js +0 -10
- package/node_modules/d3-shape/src/offset/none.js +0 -9
- package/node_modules/d3-shape/src/offset/silhouette.js +0 -10
- package/node_modules/d3-shape/src/offset/wiggle.js +0 -24
- package/node_modules/d3-shape/src/order/appearance.js +0 -12
- package/node_modules/d3-shape/src/order/ascending.js +0 -12
- package/node_modules/d3-shape/src/order/descending.js +0 -5
- package/node_modules/d3-shape/src/order/insideOut.js +0 -27
- package/node_modules/d3-shape/src/order/none.js +0 -5
- package/node_modules/d3-shape/src/order/reverse.js +0 -5
- package/node_modules/d3-shape/src/pie.js +0 -79
- package/node_modules/d3-shape/src/point.js +0 -7
- package/node_modules/d3-shape/src/pointRadial.js +0 -3
- package/node_modules/d3-shape/src/stack.js +0 -57
- package/node_modules/d3-shape/src/symbol/circle.js +0 -9
- package/node_modules/d3-shape/src/symbol/cross.js +0 -18
- package/node_modules/d3-shape/src/symbol/diamond.js +0 -14
- package/node_modules/d3-shape/src/symbol/square.js +0 -7
- package/node_modules/d3-shape/src/symbol/star.js +0 -24
- package/node_modules/d3-shape/src/symbol/triangle.js +0 -11
- package/node_modules/d3-shape/src/symbol/wye.js +0 -26
- package/node_modules/d3-shape/src/symbol.js +0 -46
- package/node_modules/d3-time/LICENSE +0 -27
- package/node_modules/d3-time/README.md +0 -333
- package/node_modules/d3-time/dist/d3-time.js +0 -373
- package/node_modules/d3-time/dist/d3-time.min.js +0 -2
- package/node_modules/d3-time/package.json +0 -47
- package/node_modules/d3-time/src/day.js +0 -15
- package/node_modules/d3-time/src/duration.js +0 -5
- package/node_modules/d3-time/src/hour.js +0 -15
- package/node_modules/d3-time/src/index.js +0 -105
- package/node_modules/d3-time/src/interval.js +0 -70
- package/node_modules/d3-time/src/millisecond.js +0 -26
- package/node_modules/d3-time/src/minute.js +0 -15
- package/node_modules/d3-time/src/month.js +0 -15
- package/node_modules/d3-time/src/second.js +0 -15
- package/node_modules/d3-time/src/utcDay.js +0 -15
- package/node_modules/d3-time/src/utcHour.js +0 -15
- package/node_modules/d3-time/src/utcMinute.js +0 -15
- package/node_modules/d3-time/src/utcMonth.js +0 -15
- package/node_modules/d3-time/src/utcWeek.js +0 -29
- package/node_modules/d3-time/src/utcYear.js +0 -26
- package/node_modules/d3-time/src/week.js +0 -29
- package/node_modules/d3-time/src/year.js +0 -26
- package/node_modules/d3-time-format/LICENSE +0 -27
- package/node_modules/d3-time-format/README.md +0 -199
- package/node_modules/d3-time-format/dist/d3-time-format.js +0 -743
- package/node_modules/d3-time-format/dist/d3-time-format.min.js +0 -2
- package/node_modules/d3-time-format/locale/ar-EG.json +0 -10
- package/node_modules/d3-time-format/locale/ca-ES.json +0 -10
- package/node_modules/d3-time-format/locale/cs-CZ.json +0 -10
- package/node_modules/d3-time-format/locale/da-DK.json +0 -10
- package/node_modules/d3-time-format/locale/de-CH.json +0 -10
- package/node_modules/d3-time-format/locale/de-DE.json +0 -10
- package/node_modules/d3-time-format/locale/en-CA.json +0 -10
- package/node_modules/d3-time-format/locale/en-GB.json +0 -10
- package/node_modules/d3-time-format/locale/en-US.json +0 -10
- package/node_modules/d3-time-format/locale/es-ES.json +0 -10
- package/node_modules/d3-time-format/locale/es-MX.json +0 -10
- package/node_modules/d3-time-format/locale/fa-IR.json +0 -10
- package/node_modules/d3-time-format/locale/fi-FI.json +0 -10
- package/node_modules/d3-time-format/locale/fr-CA.json +0 -10
- package/node_modules/d3-time-format/locale/fr-FR.json +0 -10
- package/node_modules/d3-time-format/locale/he-IL.json +0 -10
- package/node_modules/d3-time-format/locale/hu-HU.json +0 -10
- package/node_modules/d3-time-format/locale/it-IT.json +0 -10
- package/node_modules/d3-time-format/locale/ja-JP.json +0 -10
- package/node_modules/d3-time-format/locale/ko-KR.json +0 -10
- package/node_modules/d3-time-format/locale/mk-MK.json +0 -10
- package/node_modules/d3-time-format/locale/nb-NO.json +0 -10
- package/node_modules/d3-time-format/locale/nl-NL.json +0 -10
- package/node_modules/d3-time-format/locale/pl-PL.json +0 -10
- package/node_modules/d3-time-format/locale/pt-BR.json +0 -10
- package/node_modules/d3-time-format/locale/ru-RU.json +0 -10
- package/node_modules/d3-time-format/locale/sv-SE.json +0 -10
- package/node_modules/d3-time-format/locale/tr-TR.json +0 -10
- package/node_modules/d3-time-format/locale/uk-UA.json +0 -10
- package/node_modules/d3-time-format/locale/zh-CN.json +0 -10
- package/node_modules/d3-time-format/locale/zh-TW.json +0 -10
- package/node_modules/d3-time-format/package.json +0 -55
- package/node_modules/d3-time-format/src/defaultLocale.js +0 -27
- package/node_modules/d3-time-format/src/index.js +0 -4
- package/node_modules/d3-time-format/src/isoFormat.js +0 -13
- package/node_modules/d3-time-format/src/isoParse.js +0 -13
- package/node_modules/d3-time-format/src/locale.js +0 -699
- package/node_modules/d3-timer/LICENSE +0 -27
- package/node_modules/d3-timer/README.md +0 -75
- package/node_modules/d3-timer/dist/d3-timer.js +0 -149
- package/node_modules/d3-timer/dist/d3-timer.min.js +0 -2
- package/node_modules/d3-timer/package.json +0 -50
- package/node_modules/d3-timer/src/index.js +0 -13
- package/node_modules/d3-timer/src/interval.js +0 -13
- package/node_modules/d3-timer/src/timeout.js +0 -11
- package/node_modules/d3-timer/src/timer.js +0 -110
- package/node_modules/d3-transition/LICENSE +0 -58
- package/node_modules/d3-transition/README.md +0 -448
- package/node_modules/d3-transition/dist/d3-transition.js +0 -880
- package/node_modules/d3-transition/dist/d3-transition.min.js +0 -2
- package/node_modules/d3-transition/package.json +0 -56
- package/node_modules/d3-transition/src/active.js +0 -21
- package/node_modules/d3-transition/src/index.js +0 -4
- package/node_modules/d3-transition/src/interrupt.js +0 -24
- package/node_modules/d3-transition/src/selection/index.js +0 -6
- package/node_modules/d3-transition/src/selection/interrupt.js +0 -7
- package/node_modules/d3-transition/src/selection/transition.js +0 -42
- package/node_modules/d3-transition/src/transition/attr.js +0 -78
- package/node_modules/d3-transition/src/transition/attrTween.js +0 -44
- package/node_modules/d3-transition/src/transition/delay.js +0 -23
- package/node_modules/d3-transition/src/transition/duration.js +0 -23
- package/node_modules/d3-transition/src/transition/ease.js +0 -16
- package/node_modules/d3-transition/src/transition/end.js +0 -26
- package/node_modules/d3-transition/src/transition/filter.js +0 -16
- package/node_modules/d3-transition/src/transition/index.js +0 -68
- package/node_modules/d3-transition/src/transition/interpolate.js +0 -10
- package/node_modules/d3-transition/src/transition/merge.js +0 -19
- package/node_modules/d3-transition/src/transition/on.js +0 -32
- package/node_modules/d3-transition/src/transition/remove.js +0 -11
- package/node_modules/d3-transition/src/transition/schedule.js +0 -153
- package/node_modules/d3-transition/src/transition/select.js +0 -22
- package/node_modules/d3-transition/src/transition/selectAll.js +0 -26
- package/node_modules/d3-transition/src/transition/selection.js +0 -7
- package/node_modules/d3-transition/src/transition/style.js +0 -80
- package/node_modules/d3-transition/src/transition/styleTween.js +0 -24
- package/node_modules/d3-transition/src/transition/text.js +0 -20
- package/node_modules/d3-transition/src/transition/textTween.js +0 -24
- package/node_modules/d3-transition/src/transition/transition.js +0 -24
- package/node_modules/d3-transition/src/transition/tween.js +0 -81
- package/node_modules/d3-voronoi/.eslintrc.json +0 -16
- package/node_modules/d3-voronoi/LICENSE +0 -50
- package/node_modules/d3-voronoi/README.md +0 -164
- package/node_modules/d3-voronoi/dist/d3-voronoi.js +0 -999
- package/node_modules/d3-voronoi/dist/d3-voronoi.min.js +0 -2
- package/node_modules/d3-voronoi/package.json +0 -41
- package/node_modules/d3-voronoi/rollup.config.js +0 -36
- package/node_modules/d3-voronoi/src/Beach.js +0 -193
- package/node_modules/d3-voronoi/src/Cell.js +0 -126
- package/node_modules/d3-voronoi/src/Circle.js +0 -78
- package/node_modules/d3-voronoi/src/Diagram.js +0 -142
- package/node_modules/d3-voronoi/src/Edge.js +0 -168
- package/node_modules/d3-voronoi/src/RedBlackTree.js +0 -237
- package/node_modules/d3-voronoi/src/constant.js +0 -5
- package/node_modules/d3-voronoi/src/index.js +0 -1
- package/node_modules/d3-voronoi/src/point.js +0 -7
- package/node_modules/d3-voronoi/src/voronoi.js +0 -48
- package/node_modules/d3-voronoi/yarn.lock +0 -935
- package/node_modules/d3-zoom/LICENSE +0 -27
- package/node_modules/d3-zoom/README.md +0 -398
- package/node_modules/d3-zoom/dist/d3-zoom.js +0 -497
- package/node_modules/d3-zoom/dist/d3-zoom.min.js +0 -2
- package/node_modules/d3-zoom/package.json +0 -53
- package/node_modules/d3-zoom/src/constant.js +0 -5
- package/node_modules/d3-zoom/src/event.js +0 -5
- package/node_modules/d3-zoom/src/index.js +0 -2
- package/node_modules/d3-zoom/src/noevent.js +0 -10
- package/node_modules/d3-zoom/src/transform.js +0 -51
- package/node_modules/d3-zoom/src/zoom.js +0 -419
- package/node_modules/decompress-response/index.d.ts +0 -29
- package/node_modules/decompress-response/index.js +0 -40
- package/node_modules/decompress-response/license +0 -9
- package/node_modules/decompress-response/package.json +0 -54
- package/node_modules/decompress-response/readme.md +0 -52
- package/node_modules/delegates/.npmignore +0 -1
- package/node_modules/delegates/History.md +0 -22
- package/node_modules/delegates/License +0 -20
- package/node_modules/delegates/Makefile +0 -8
- package/node_modules/delegates/Readme.md +0 -94
- package/node_modules/delegates/index.js +0 -121
- package/node_modules/delegates/package.json +0 -17
- package/node_modules/delegates/test/index.js +0 -94
- package/node_modules/detect-libc/LICENSE +0 -201
- package/node_modules/detect-libc/README.md +0 -160
- package/node_modules/detect-libc/index.d.ts +0 -11
- package/node_modules/detect-libc/lib/detect-libc.js +0 -178
- package/node_modules/detect-libc/lib/process.js +0 -16
- package/node_modules/detect-libc/package.json +0 -40
- package/node_modules/dirname-shim/LICENSE +0 -20
- package/node_modules/dirname-shim/README.md +0 -11
- package/node_modules/dirname-shim/package.json +0 -28
- package/node_modules/dirname-shim/shim.js +0 -110
- package/node_modules/duplexer/.travis.yml +0 -6
- package/node_modules/duplexer/LICENCE +0 -19
- package/node_modules/duplexer/README.md +0 -49
- package/node_modules/duplexer/index.js +0 -87
- package/node_modules/duplexer/package.json +0 -46
- package/node_modules/duplexer/test/index.js +0 -31
- package/node_modules/extended-emitter/.travis.yml +0 -6
- package/node_modules/extended-emitter/LICENSE +0 -20
- package/node_modules/extended-emitter/README.md +0 -65
- package/node_modules/extended-emitter/extended-emitter.js +0 -115
- package/node_modules/extended-emitter/package.json +0 -39
- package/node_modules/extended-emitter/test.js +0 -156
- package/node_modules/fs-minipass/LICENSE +0 -15
- package/node_modules/fs-minipass/README.md +0 -70
- package/node_modules/fs-minipass/index.js +0 -422
- package/node_modules/fs-minipass/package.json +0 -43
- package/node_modules/fsevents/LICENSE +0 -22
- package/node_modules/fsevents/README.md +0 -83
- package/node_modules/fsevents/fsevents.d.ts +0 -46
- package/node_modules/fsevents/fsevents.js +0 -82
- package/node_modules/fsevents/fsevents.node +0 -0
- package/node_modules/fsevents/package.json +0 -66
- package/node_modules/ftp-response-parser/.README.md.un~ +0 -0
- package/node_modules/ftp-response-parser/.index.js.un~ +0 -0
- package/node_modules/ftp-response-parser/.package.json.un~ +0 -0
- package/node_modules/ftp-response-parser/.test.js.un~ +0 -0
- package/node_modules/ftp-response-parser/LICENSE +0 -20
- package/node_modules/ftp-response-parser/README.md +0 -104
- package/node_modules/ftp-response-parser/index.js +0 -82
- package/node_modules/ftp-response-parser/node_modules/isarray/README.md +0 -54
- package/node_modules/ftp-response-parser/node_modules/isarray/build/build.js +0 -209
- package/node_modules/ftp-response-parser/node_modules/isarray/component.json +0 -19
- package/node_modules/ftp-response-parser/node_modules/isarray/index.js +0 -3
- package/node_modules/ftp-response-parser/node_modules/isarray/package.json +0 -29
- package/node_modules/ftp-response-parser/node_modules/readable-stream/.npmignore +0 -5
- package/node_modules/ftp-response-parser/node_modules/readable-stream/LICENSE +0 -18
- package/node_modules/ftp-response-parser/node_modules/readable-stream/README.md +0 -15
- package/node_modules/ftp-response-parser/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/ftp-response-parser/node_modules/readable-stream/float.patch +0 -923
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_duplex.js +0 -89
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_passthrough.js +0 -46
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_readable.js +0 -951
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_transform.js +0 -209
- package/node_modules/ftp-response-parser/node_modules/readable-stream/lib/_stream_writable.js +0 -477
- package/node_modules/ftp-response-parser/node_modules/readable-stream/package.json +0 -36
- package/node_modules/ftp-response-parser/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/ftp-response-parser/node_modules/readable-stream/readable.js +0 -10
- package/node_modules/ftp-response-parser/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/ftp-response-parser/node_modules/readable-stream/writable.js +0 -1
- package/node_modules/ftp-response-parser/node_modules/string_decoder/.npmignore +0 -2
- package/node_modules/ftp-response-parser/node_modules/string_decoder/LICENSE +0 -20
- package/node_modules/ftp-response-parser/node_modules/string_decoder/README.md +0 -7
- package/node_modules/ftp-response-parser/node_modules/string_decoder/index.js +0 -221
- package/node_modules/ftp-response-parser/node_modules/string_decoder/package.json +0 -29
- package/node_modules/ftp-response-parser/package.json +0 -39
- package/node_modules/ftp-response-parser/test.js +0 -149
- package/node_modules/gauge/CHANGELOG.md +0 -163
- package/node_modules/gauge/LICENSE +0 -13
- package/node_modules/gauge/README.md +0 -402
- package/node_modules/gauge/base-theme.js +0 -14
- package/node_modules/gauge/error.js +0 -24
- package/node_modules/gauge/has-color.js +0 -4
- package/node_modules/gauge/index.js +0 -233
- package/node_modules/gauge/package.json +0 -70
- package/node_modules/gauge/plumbing.js +0 -48
- package/node_modules/gauge/process.js +0 -3
- package/node_modules/gauge/progress-bar.js +0 -35
- package/node_modules/gauge/render-template.js +0 -178
- package/node_modules/gauge/set-immediate.js +0 -7
- package/node_modules/gauge/set-interval.js +0 -3
- package/node_modules/gauge/spin.js +0 -5
- package/node_modules/gauge/template-item.js +0 -72
- package/node_modules/gauge/theme-set.js +0 -114
- package/node_modules/gauge/themes.js +0 -56
- package/node_modules/gauge/wide-truncate.js +0 -25
- package/node_modules/has-unicode/LICENSE +0 -14
- package/node_modules/has-unicode/README.md +0 -43
- package/node_modules/has-unicode/index.js +0 -16
- package/node_modules/has-unicode/package.json +0 -34
- package/node_modules/https-proxy-agent/README.md +0 -137
- package/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
- package/node_modules/https-proxy-agent/dist/agent.js +0 -177
- package/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
- package/node_modules/https-proxy-agent/dist/index.d.ts +0 -23
- package/node_modules/https-proxy-agent/dist/index.js +0 -14
- package/node_modules/https-proxy-agent/dist/index.js.map +0 -1
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -66
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
- package/node_modules/https-proxy-agent/package.json +0 -60
- package/node_modules/iconv-lite/Changelog.md +0 -162
- package/node_modules/iconv-lite/LICENSE +0 -21
- package/node_modules/iconv-lite/README.md +0 -156
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +0 -555
- package/node_modules/iconv-lite/encodings/dbcs-data.js +0 -176
- package/node_modules/iconv-lite/encodings/index.js +0 -22
- package/node_modules/iconv-lite/encodings/internal.js +0 -188
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +0 -72
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +0 -451
- package/node_modules/iconv-lite/encodings/sbcs-data.js +0 -174
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +0 -122
- package/node_modules/iconv-lite/encodings/tables/cp936.json +0 -264
- package/node_modules/iconv-lite/encodings/tables/cp949.json +0 -273
- package/node_modules/iconv-lite/encodings/tables/cp950.json +0 -177
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +0 -182
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +0 -1
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +0 -55
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +0 -125
- package/node_modules/iconv-lite/encodings/utf16.js +0 -177
- package/node_modules/iconv-lite/encodings/utf7.js +0 -290
- package/node_modules/iconv-lite/lib/bom-handling.js +0 -52
- package/node_modules/iconv-lite/lib/extend-node.js +0 -217
- package/node_modules/iconv-lite/lib/index.d.ts +0 -24
- package/node_modules/iconv-lite/lib/index.js +0 -153
- package/node_modules/iconv-lite/lib/streams.js +0 -121
- package/node_modules/iconv-lite/package.json +0 -50
- package/node_modules/jsftp/LICENSE +0 -22
- package/node_modules/jsftp/README.md +0 -329
- package/node_modules/jsftp/index.js +0 -1
- package/node_modules/jsftp/lib/jsftp.js +0 -772
- package/node_modules/jsftp/node_modules/debug/CHANGELOG.md +0 -395
- package/node_modules/jsftp/node_modules/debug/LICENSE +0 -19
- package/node_modules/jsftp/node_modules/debug/README.md +0 -437
- package/node_modules/jsftp/node_modules/debug/node.js +0 -1
- package/node_modules/jsftp/node_modules/debug/package.json +0 -55
- package/node_modules/jsftp/node_modules/debug/src/browser.js +0 -180
- package/node_modules/jsftp/node_modules/debug/src/common.js +0 -249
- package/node_modules/jsftp/node_modules/debug/src/index.js +0 -12
- package/node_modules/jsftp/node_modules/debug/src/node.js +0 -177
- package/node_modules/jsftp/package.json +0 -47
- package/node_modules/json2csv/.eslintrc +0 -7
- package/node_modules/json2csv/.gitattributes +0 -3
- package/node_modules/json2csv/CHANGELOG.md +0 -522
- package/node_modules/json2csv/LICENSE.md +0 -14
- package/node_modules/json2csv/README.md +0 -852
- package/node_modules/json2csv/bin/json2csv.js +0 -239
- package/node_modules/json2csv/bin/utils/TablePrinter.js +0 -96
- package/node_modules/json2csv/bin/utils/parseNdjson.js +0 -11
- package/node_modules/json2csv/dist/json2csv.cjs.js +0 -2286
- package/node_modules/json2csv/dist/json2csv.esm.js +0 -2276
- package/node_modules/json2csv/dist/json2csv.umd.js +0 -7440
- package/node_modules/json2csv/lib/JSON2CSVAsyncParser.js +0 -53
- package/node_modules/json2csv/lib/JSON2CSVBase.js +0 -291
- package/node_modules/json2csv/lib/JSON2CSVParser.js +0 -83
- package/node_modules/json2csv/lib/JSON2CSVTransform.js +0 -204
- package/node_modules/json2csv/lib/json2csv.js +0 -37
- package/node_modules/json2csv/lib/utils.js +0 -46
- package/node_modules/json2csv/node_modules/commander/CHANGELOG.md +0 -419
- package/node_modules/json2csv/node_modules/commander/LICENSE +0 -22
- package/node_modules/json2csv/node_modules/commander/Readme.md +0 -428
- package/node_modules/json2csv/node_modules/commander/index.js +0 -1224
- package/node_modules/json2csv/node_modules/commander/package.json +0 -42
- package/node_modules/json2csv/node_modules/commander/typings/index.d.ts +0 -310
- package/node_modules/json2csv/package.json +0 -69
- package/node_modules/json2csv/rollup.config.js +0 -47
- package/node_modules/jsonparse/.npmignore +0 -1
- package/node_modules/jsonparse/LICENSE +0 -24
- package/node_modules/jsonparse/README.markdown +0 -11
- package/node_modules/jsonparse/bench.js +0 -26
- package/node_modules/jsonparse/examples/twitterfeed.js +0 -30
- package/node_modules/jsonparse/jsonparse.js +0 -413
- package/node_modules/jsonparse/package.json +0 -26
- package/node_modules/jsonparse/samplejson/basic.json +0 -167
- package/node_modules/jsonparse/samplejson/basic2.json +0 -180
- package/node_modules/jsonparse/test/big-token.js +0 -24
- package/node_modules/jsonparse/test/boundary.js +0 -110
- package/node_modules/jsonparse/test/offset.js +0 -67
- package/node_modules/jsonparse/test/primitives.js +0 -57
- package/node_modules/jsonparse/test/surrogate.js +0 -26
- package/node_modules/jsonparse/test/unvalid.js +0 -15
- package/node_modules/jsonparse/test/utf8.js +0 -38
- package/node_modules/lodash/LICENSE +0 -47
- package/node_modules/lodash/README.md +0 -39
- package/node_modules/lodash/_DataView.js +0 -7
- package/node_modules/lodash/_Hash.js +0 -32
- package/node_modules/lodash/_LazyWrapper.js +0 -28
- package/node_modules/lodash/_ListCache.js +0 -32
- package/node_modules/lodash/_LodashWrapper.js +0 -22
- package/node_modules/lodash/_Map.js +0 -7
- package/node_modules/lodash/_MapCache.js +0 -32
- package/node_modules/lodash/_Promise.js +0 -7
- package/node_modules/lodash/_Set.js +0 -7
- package/node_modules/lodash/_SetCache.js +0 -27
- package/node_modules/lodash/_Stack.js +0 -27
- package/node_modules/lodash/_Symbol.js +0 -6
- package/node_modules/lodash/_Uint8Array.js +0 -6
- package/node_modules/lodash/_WeakMap.js +0 -7
- package/node_modules/lodash/_apply.js +0 -21
- package/node_modules/lodash/_arrayAggregator.js +0 -22
- package/node_modules/lodash/_arrayEach.js +0 -22
- package/node_modules/lodash/_arrayEachRight.js +0 -21
- package/node_modules/lodash/_arrayEvery.js +0 -23
- package/node_modules/lodash/_arrayFilter.js +0 -25
- package/node_modules/lodash/_arrayIncludes.js +0 -17
- package/node_modules/lodash/_arrayIncludesWith.js +0 -22
- package/node_modules/lodash/_arrayLikeKeys.js +0 -49
- package/node_modules/lodash/_arrayMap.js +0 -21
- package/node_modules/lodash/_arrayPush.js +0 -20
- package/node_modules/lodash/_arrayReduce.js +0 -26
- package/node_modules/lodash/_arrayReduceRight.js +0 -24
- package/node_modules/lodash/_arraySample.js +0 -15
- package/node_modules/lodash/_arraySampleSize.js +0 -17
- package/node_modules/lodash/_arrayShuffle.js +0 -15
- package/node_modules/lodash/_arraySome.js +0 -23
- package/node_modules/lodash/_asciiSize.js +0 -12
- package/node_modules/lodash/_asciiToArray.js +0 -12
- package/node_modules/lodash/_asciiWords.js +0 -15
- package/node_modules/lodash/_assignMergeValue.js +0 -20
- package/node_modules/lodash/_assignValue.js +0 -28
- package/node_modules/lodash/_assocIndexOf.js +0 -21
- package/node_modules/lodash/_baseAggregator.js +0 -21
- package/node_modules/lodash/_baseAssign.js +0 -17
- package/node_modules/lodash/_baseAssignIn.js +0 -17
- package/node_modules/lodash/_baseAssignValue.js +0 -25
- package/node_modules/lodash/_baseAt.js +0 -23
- package/node_modules/lodash/_baseClamp.js +0 -22
- package/node_modules/lodash/_baseClone.js +0 -166
- package/node_modules/lodash/_baseConforms.js +0 -18
- package/node_modules/lodash/_baseConformsTo.js +0 -27
- package/node_modules/lodash/_baseCreate.js +0 -30
- package/node_modules/lodash/_baseDelay.js +0 -21
- package/node_modules/lodash/_baseDifference.js +0 -67
- package/node_modules/lodash/_baseEach.js +0 -14
- package/node_modules/lodash/_baseEachRight.js +0 -14
- package/node_modules/lodash/_baseEvery.js +0 -21
- package/node_modules/lodash/_baseExtremum.js +0 -32
- package/node_modules/lodash/_baseFill.js +0 -32
- package/node_modules/lodash/_baseFilter.js +0 -21
- package/node_modules/lodash/_baseFindIndex.js +0 -24
- package/node_modules/lodash/_baseFindKey.js +0 -23
- package/node_modules/lodash/_baseFlatten.js +0 -38
- package/node_modules/lodash/_baseFor.js +0 -16
- package/node_modules/lodash/_baseForOwn.js +0 -16
- package/node_modules/lodash/_baseForOwnRight.js +0 -16
- package/node_modules/lodash/_baseForRight.js +0 -15
- package/node_modules/lodash/_baseFunctions.js +0 -19
- package/node_modules/lodash/_baseGet.js +0 -24
- package/node_modules/lodash/_baseGetAllKeys.js +0 -20
- package/node_modules/lodash/_baseGetTag.js +0 -28
- package/node_modules/lodash/_baseGt.js +0 -14
- package/node_modules/lodash/_baseHas.js +0 -19
- package/node_modules/lodash/_baseHasIn.js +0 -13
- package/node_modules/lodash/_baseInRange.js +0 -18
- package/node_modules/lodash/_baseIndexOf.js +0 -20
- package/node_modules/lodash/_baseIndexOfWith.js +0 -23
- package/node_modules/lodash/_baseIntersection.js +0 -74
- package/node_modules/lodash/_baseInverter.js +0 -21
- package/node_modules/lodash/_baseInvoke.js +0 -24
- package/node_modules/lodash/_baseIsArguments.js +0 -18
- package/node_modules/lodash/_baseIsArrayBuffer.js +0 -17
- package/node_modules/lodash/_baseIsDate.js +0 -18
- package/node_modules/lodash/_baseIsEqual.js +0 -28
- package/node_modules/lodash/_baseIsEqualDeep.js +0 -83
- package/node_modules/lodash/_baseIsMap.js +0 -18
- package/node_modules/lodash/_baseIsMatch.js +0 -62
- package/node_modules/lodash/_baseIsNaN.js +0 -12
- package/node_modules/lodash/_baseIsNative.js +0 -47
- package/node_modules/lodash/_baseIsRegExp.js +0 -18
- package/node_modules/lodash/_baseIsSet.js +0 -18
- package/node_modules/lodash/_baseIsTypedArray.js +0 -60
- package/node_modules/lodash/_baseIteratee.js +0 -31
- package/node_modules/lodash/_baseKeys.js +0 -30
- package/node_modules/lodash/_baseKeysIn.js +0 -33
- package/node_modules/lodash/_baseLodash.js +0 -10
- package/node_modules/lodash/_baseLt.js +0 -14
- package/node_modules/lodash/_baseMap.js +0 -22
- package/node_modules/lodash/_baseMatches.js +0 -22
- package/node_modules/lodash/_baseMatchesProperty.js +0 -33
- package/node_modules/lodash/_baseMean.js +0 -20
- package/node_modules/lodash/_baseMerge.js +0 -42
- package/node_modules/lodash/_baseMergeDeep.js +0 -94
- package/node_modules/lodash/_baseNth.js +0 -20
- package/node_modules/lodash/_baseOrderBy.js +0 -49
- package/node_modules/lodash/_basePick.js +0 -19
- package/node_modules/lodash/_basePickBy.js +0 -30
- package/node_modules/lodash/_baseProperty.js +0 -14
- package/node_modules/lodash/_basePropertyDeep.js +0 -16
- package/node_modules/lodash/_basePropertyOf.js +0 -14
- package/node_modules/lodash/_basePullAll.js +0 -51
- package/node_modules/lodash/_basePullAt.js +0 -37
- package/node_modules/lodash/_baseRandom.js +0 -18
- package/node_modules/lodash/_baseRange.js +0 -28
- package/node_modules/lodash/_baseReduce.js +0 -23
- package/node_modules/lodash/_baseRepeat.js +0 -35
- package/node_modules/lodash/_baseRest.js +0 -17
- package/node_modules/lodash/_baseSample.js +0 -15
- package/node_modules/lodash/_baseSampleSize.js +0 -18
- package/node_modules/lodash/_baseSet.js +0 -51
- package/node_modules/lodash/_baseSetData.js +0 -17
- package/node_modules/lodash/_baseSetToString.js +0 -22
- package/node_modules/lodash/_baseShuffle.js +0 -15
- package/node_modules/lodash/_baseSlice.js +0 -31
- package/node_modules/lodash/_baseSome.js +0 -22
- package/node_modules/lodash/_baseSortBy.js +0 -21
- package/node_modules/lodash/_baseSortedIndex.js +0 -42
- package/node_modules/lodash/_baseSortedIndexBy.js +0 -67
- package/node_modules/lodash/_baseSortedUniq.js +0 -30
- package/node_modules/lodash/_baseSum.js +0 -24
- package/node_modules/lodash/_baseTimes.js +0 -20
- package/node_modules/lodash/_baseToNumber.js +0 -24
- package/node_modules/lodash/_baseToPairs.js +0 -18
- package/node_modules/lodash/_baseToString.js +0 -37
- package/node_modules/lodash/_baseTrim.js +0 -19
- package/node_modules/lodash/_baseUnary.js +0 -14
- package/node_modules/lodash/_baseUniq.js +0 -72
- package/node_modules/lodash/_baseUnset.js +0 -20
- package/node_modules/lodash/_baseUpdate.js +0 -18
- package/node_modules/lodash/_baseValues.js +0 -19
- package/node_modules/lodash/_baseWhile.js +0 -26
- package/node_modules/lodash/_baseWrapperValue.js +0 -25
- package/node_modules/lodash/_baseXor.js +0 -36
- package/node_modules/lodash/_baseZipObject.js +0 -23
- package/node_modules/lodash/_cacheHas.js +0 -13
- package/node_modules/lodash/_castArrayLikeObject.js +0 -14
- package/node_modules/lodash/_castFunction.js +0 -14
- package/node_modules/lodash/_castPath.js +0 -21
- package/node_modules/lodash/_castRest.js +0 -14
- package/node_modules/lodash/_castSlice.js +0 -18
- package/node_modules/lodash/_charsEndIndex.js +0 -19
- package/node_modules/lodash/_charsStartIndex.js +0 -20
- package/node_modules/lodash/_cloneArrayBuffer.js +0 -16
- package/node_modules/lodash/_cloneBuffer.js +0 -35
- package/node_modules/lodash/_cloneDataView.js +0 -16
- package/node_modules/lodash/_cloneRegExp.js +0 -17
- package/node_modules/lodash/_cloneSymbol.js +0 -18
- package/node_modules/lodash/_cloneTypedArray.js +0 -16
- package/node_modules/lodash/_compareAscending.js +0 -41
- package/node_modules/lodash/_compareMultiple.js +0 -44
- package/node_modules/lodash/_composeArgs.js +0 -39
- package/node_modules/lodash/_composeArgsRight.js +0 -41
- package/node_modules/lodash/_copyArray.js +0 -20
- package/node_modules/lodash/_copyObject.js +0 -40
- package/node_modules/lodash/_copySymbols.js +0 -16
- package/node_modules/lodash/_copySymbolsIn.js +0 -16
- package/node_modules/lodash/_coreJsData.js +0 -6
- package/node_modules/lodash/_countHolders.js +0 -21
- package/node_modules/lodash/_createAggregator.js +0 -23
- package/node_modules/lodash/_createAssigner.js +0 -37
- package/node_modules/lodash/_createBaseEach.js +0 -32
- package/node_modules/lodash/_createBaseFor.js +0 -25
- package/node_modules/lodash/_createBind.js +0 -28
- package/node_modules/lodash/_createCaseFirst.js +0 -33
- package/node_modules/lodash/_createCompounder.js +0 -24
- package/node_modules/lodash/_createCtor.js +0 -37
- package/node_modules/lodash/_createCurry.js +0 -46
- package/node_modules/lodash/_createFind.js +0 -25
- package/node_modules/lodash/_createFlow.js +0 -78
- package/node_modules/lodash/_createHybrid.js +0 -92
- package/node_modules/lodash/_createInverter.js +0 -17
- package/node_modules/lodash/_createMathOperation.js +0 -38
- package/node_modules/lodash/_createOver.js +0 -27
- package/node_modules/lodash/_createPadding.js +0 -33
- package/node_modules/lodash/_createPartial.js +0 -43
- package/node_modules/lodash/_createRange.js +0 -30
- package/node_modules/lodash/_createRecurry.js +0 -56
- package/node_modules/lodash/_createRelationalOperation.js +0 -20
- package/node_modules/lodash/_createRound.js +0 -35
- package/node_modules/lodash/_createSet.js +0 -19
- package/node_modules/lodash/_createToPairs.js +0 -30
- package/node_modules/lodash/_createWrap.js +0 -106
- package/node_modules/lodash/_customDefaultsAssignIn.js +0 -29
- package/node_modules/lodash/_customDefaultsMerge.js +0 -28
- package/node_modules/lodash/_customOmitClone.js +0 -16
- package/node_modules/lodash/_deburrLetter.js +0 -71
- package/node_modules/lodash/_defineProperty.js +0 -11
- package/node_modules/lodash/_equalArrays.js +0 -84
- package/node_modules/lodash/_equalByTag.js +0 -112
- package/node_modules/lodash/_equalObjects.js +0 -90
- package/node_modules/lodash/_escapeHtmlChar.js +0 -21
- package/node_modules/lodash/_escapeStringChar.js +0 -22
- package/node_modules/lodash/_flatRest.js +0 -16
- package/node_modules/lodash/_freeGlobal.js +0 -4
- package/node_modules/lodash/_getAllKeys.js +0 -16
- package/node_modules/lodash/_getAllKeysIn.js +0 -17
- package/node_modules/lodash/_getData.js +0 -15
- package/node_modules/lodash/_getFuncName.js +0 -31
- package/node_modules/lodash/_getHolder.js +0 -13
- package/node_modules/lodash/_getMapData.js +0 -18
- package/node_modules/lodash/_getMatchData.js +0 -24
- package/node_modules/lodash/_getNative.js +0 -17
- package/node_modules/lodash/_getPrototype.js +0 -6
- package/node_modules/lodash/_getRawTag.js +0 -46
- package/node_modules/lodash/_getSymbols.js +0 -30
- package/node_modules/lodash/_getSymbolsIn.js +0 -25
- package/node_modules/lodash/_getTag.js +0 -58
- package/node_modules/lodash/_getValue.js +0 -13
- package/node_modules/lodash/_getView.js +0 -33
- package/node_modules/lodash/_getWrapDetails.js +0 -17
- package/node_modules/lodash/_hasPath.js +0 -39
- package/node_modules/lodash/_hasUnicode.js +0 -26
- package/node_modules/lodash/_hasUnicodeWord.js +0 -15
- package/node_modules/lodash/_hashClear.js +0 -15
- package/node_modules/lodash/_hashDelete.js +0 -17
- package/node_modules/lodash/_hashGet.js +0 -30
- package/node_modules/lodash/_hashHas.js +0 -23
- package/node_modules/lodash/_hashSet.js +0 -23
- package/node_modules/lodash/_initCloneArray.js +0 -26
- package/node_modules/lodash/_initCloneByTag.js +0 -77
- package/node_modules/lodash/_initCloneObject.js +0 -18
- package/node_modules/lodash/_insertWrapDetails.js +0 -23
- package/node_modules/lodash/_isFlattenable.js +0 -20
- package/node_modules/lodash/_isIndex.js +0 -25
- package/node_modules/lodash/_isIterateeCall.js +0 -30
- package/node_modules/lodash/_isKey.js +0 -29
- package/node_modules/lodash/_isKeyable.js +0 -15
- package/node_modules/lodash/_isLaziable.js +0 -28
- package/node_modules/lodash/_isMaskable.js +0 -14
- package/node_modules/lodash/_isMasked.js +0 -20
- package/node_modules/lodash/_isPrototype.js +0 -18
- package/node_modules/lodash/_isStrictComparable.js +0 -15
- package/node_modules/lodash/_iteratorToArray.js +0 -18
- package/node_modules/lodash/_lazyClone.js +0 -23
- package/node_modules/lodash/_lazyReverse.js +0 -23
- package/node_modules/lodash/_lazyValue.js +0 -69
- package/node_modules/lodash/_listCacheClear.js +0 -13
- package/node_modules/lodash/_listCacheDelete.js +0 -35
- package/node_modules/lodash/_listCacheGet.js +0 -19
- package/node_modules/lodash/_listCacheHas.js +0 -16
- package/node_modules/lodash/_listCacheSet.js +0 -26
- package/node_modules/lodash/_mapCacheClear.js +0 -21
- package/node_modules/lodash/_mapCacheDelete.js +0 -18
- package/node_modules/lodash/_mapCacheGet.js +0 -16
- package/node_modules/lodash/_mapCacheHas.js +0 -16
- package/node_modules/lodash/_mapCacheSet.js +0 -22
- package/node_modules/lodash/_mapToArray.js +0 -18
- package/node_modules/lodash/_matchesStrictComparable.js +0 -20
- package/node_modules/lodash/_memoizeCapped.js +0 -26
- package/node_modules/lodash/_mergeData.js +0 -90
- package/node_modules/lodash/_metaMap.js +0 -6
- package/node_modules/lodash/_nativeCreate.js +0 -6
- package/node_modules/lodash/_nativeKeys.js +0 -6
- package/node_modules/lodash/_nativeKeysIn.js +0 -20
- package/node_modules/lodash/_nodeUtil.js +0 -30
- package/node_modules/lodash/_objectToString.js +0 -22
- package/node_modules/lodash/_overArg.js +0 -15
- package/node_modules/lodash/_overRest.js +0 -36
- package/node_modules/lodash/_parent.js +0 -16
- package/node_modules/lodash/_reEscape.js +0 -4
- package/node_modules/lodash/_reEvaluate.js +0 -4
- package/node_modules/lodash/_reInterpolate.js +0 -4
- package/node_modules/lodash/_realNames.js +0 -4
- package/node_modules/lodash/_reorder.js +0 -29
- package/node_modules/lodash/_replaceHolders.js +0 -29
- package/node_modules/lodash/_root.js +0 -9
- package/node_modules/lodash/_safeGet.js +0 -21
- package/node_modules/lodash/_setCacheAdd.js +0 -19
- package/node_modules/lodash/_setCacheHas.js +0 -14
- package/node_modules/lodash/_setData.js +0 -20
- package/node_modules/lodash/_setToArray.js +0 -18
- package/node_modules/lodash/_setToPairs.js +0 -18
- package/node_modules/lodash/_setToString.js +0 -14
- package/node_modules/lodash/_setWrapToString.js +0 -21
- package/node_modules/lodash/_shortOut.js +0 -37
- package/node_modules/lodash/_shuffleSelf.js +0 -28
- package/node_modules/lodash/_stackClear.js +0 -15
- package/node_modules/lodash/_stackDelete.js +0 -18
- package/node_modules/lodash/_stackGet.js +0 -14
- package/node_modules/lodash/_stackHas.js +0 -14
- package/node_modules/lodash/_stackSet.js +0 -34
- package/node_modules/lodash/_strictIndexOf.js +0 -23
- package/node_modules/lodash/_strictLastIndexOf.js +0 -21
- package/node_modules/lodash/_stringSize.js +0 -18
- package/node_modules/lodash/_stringToArray.js +0 -18
- package/node_modules/lodash/_stringToPath.js +0 -27
- package/node_modules/lodash/_toKey.js +0 -21
- package/node_modules/lodash/_toSource.js +0 -26
- package/node_modules/lodash/_trimmedEndIndex.js +0 -19
- package/node_modules/lodash/_unescapeHtmlChar.js +0 -21
- package/node_modules/lodash/_unicodeSize.js +0 -44
- package/node_modules/lodash/_unicodeToArray.js +0 -40
- package/node_modules/lodash/_unicodeWords.js +0 -69
- package/node_modules/lodash/_updateWrapDetails.js +0 -46
- package/node_modules/lodash/_wrapperClone.js +0 -23
- package/node_modules/lodash/add.js +0 -22
- package/node_modules/lodash/after.js +0 -42
- package/node_modules/lodash/array.js +0 -67
- package/node_modules/lodash/ary.js +0 -29
- package/node_modules/lodash/assign.js +0 -58
- package/node_modules/lodash/assignIn.js +0 -40
- package/node_modules/lodash/assignInWith.js +0 -38
- package/node_modules/lodash/assignWith.js +0 -37
- package/node_modules/lodash/at.js +0 -23
- package/node_modules/lodash/attempt.js +0 -35
- package/node_modules/lodash/before.js +0 -40
- package/node_modules/lodash/bind.js +0 -57
- package/node_modules/lodash/bindAll.js +0 -41
- package/node_modules/lodash/bindKey.js +0 -68
- package/node_modules/lodash/camelCase.js +0 -29
- package/node_modules/lodash/capitalize.js +0 -23
- package/node_modules/lodash/castArray.js +0 -44
- package/node_modules/lodash/ceil.js +0 -26
- package/node_modules/lodash/chain.js +0 -38
- package/node_modules/lodash/chunk.js +0 -50
- package/node_modules/lodash/clamp.js +0 -39
- package/node_modules/lodash/clone.js +0 -36
- package/node_modules/lodash/cloneDeep.js +0 -29
- package/node_modules/lodash/cloneDeepWith.js +0 -40
- package/node_modules/lodash/cloneWith.js +0 -42
- package/node_modules/lodash/collection.js +0 -30
- package/node_modules/lodash/commit.js +0 -33
- package/node_modules/lodash/compact.js +0 -31
- package/node_modules/lodash/concat.js +0 -43
- package/node_modules/lodash/cond.js +0 -60
- package/node_modules/lodash/conforms.js +0 -35
- package/node_modules/lodash/conformsTo.js +0 -32
- package/node_modules/lodash/constant.js +0 -26
- package/node_modules/lodash/core.js +0 -3877
- package/node_modules/lodash/core.min.js +0 -29
- package/node_modules/lodash/countBy.js +0 -40
- package/node_modules/lodash/create.js +0 -43
- package/node_modules/lodash/curry.js +0 -57
- package/node_modules/lodash/curryRight.js +0 -54
- package/node_modules/lodash/date.js +0 -3
- package/node_modules/lodash/debounce.js +0 -191
- package/node_modules/lodash/deburr.js +0 -45
- package/node_modules/lodash/defaultTo.js +0 -25
- package/node_modules/lodash/defaults.js +0 -64
- package/node_modules/lodash/defaultsDeep.js +0 -30
- package/node_modules/lodash/defer.js +0 -26
- package/node_modules/lodash/delay.js +0 -28
- package/node_modules/lodash/difference.js +0 -33
- package/node_modules/lodash/differenceBy.js +0 -44
- package/node_modules/lodash/differenceWith.js +0 -40
- package/node_modules/lodash/divide.js +0 -22
- package/node_modules/lodash/drop.js +0 -38
- package/node_modules/lodash/dropRight.js +0 -39
- package/node_modules/lodash/dropRightWhile.js +0 -45
- package/node_modules/lodash/dropWhile.js +0 -45
- package/node_modules/lodash/each.js +0 -1
- package/node_modules/lodash/eachRight.js +0 -1
- package/node_modules/lodash/endsWith.js +0 -43
- package/node_modules/lodash/entries.js +0 -1
- package/node_modules/lodash/entriesIn.js +0 -1
- package/node_modules/lodash/eq.js +0 -37
- package/node_modules/lodash/escape.js +0 -43
- package/node_modules/lodash/escapeRegExp.js +0 -32
- package/node_modules/lodash/every.js +0 -56
- package/node_modules/lodash/extend.js +0 -1
- package/node_modules/lodash/extendWith.js +0 -1
- package/node_modules/lodash/fill.js +0 -45
- package/node_modules/lodash/filter.js +0 -52
- package/node_modules/lodash/find.js +0 -42
- package/node_modules/lodash/findIndex.js +0 -55
- package/node_modules/lodash/findKey.js +0 -44
- package/node_modules/lodash/findLast.js +0 -25
- package/node_modules/lodash/findLastIndex.js +0 -59
- package/node_modules/lodash/findLastKey.js +0 -44
- package/node_modules/lodash/first.js +0 -1
- package/node_modules/lodash/flake.lock +0 -40
- package/node_modules/lodash/flake.nix +0 -20
- package/node_modules/lodash/flatMap.js +0 -29
- package/node_modules/lodash/flatMapDeep.js +0 -31
- package/node_modules/lodash/flatMapDepth.js +0 -31
- package/node_modules/lodash/flatten.js +0 -22
- package/node_modules/lodash/flattenDeep.js +0 -25
- package/node_modules/lodash/flattenDepth.js +0 -33
- package/node_modules/lodash/flip.js +0 -28
- package/node_modules/lodash/floor.js +0 -26
- package/node_modules/lodash/flow.js +0 -27
- package/node_modules/lodash/flowRight.js +0 -26
- package/node_modules/lodash/forEach.js +0 -41
- package/node_modules/lodash/forEachRight.js +0 -31
- package/node_modules/lodash/forIn.js +0 -39
- package/node_modules/lodash/forInRight.js +0 -37
- package/node_modules/lodash/forOwn.js +0 -36
- package/node_modules/lodash/forOwnRight.js +0 -34
- package/node_modules/lodash/fp/F.js +0 -1
- package/node_modules/lodash/fp/T.js +0 -1
- package/node_modules/lodash/fp/__.js +0 -1
- package/node_modules/lodash/fp/_baseConvert.js +0 -569
- package/node_modules/lodash/fp/_convertBrowser.js +0 -18
- package/node_modules/lodash/fp/_falseOptions.js +0 -7
- package/node_modules/lodash/fp/_mapping.js +0 -358
- package/node_modules/lodash/fp/_util.js +0 -16
- package/node_modules/lodash/fp/add.js +0 -5
- package/node_modules/lodash/fp/after.js +0 -5
- package/node_modules/lodash/fp/all.js +0 -1
- package/node_modules/lodash/fp/allPass.js +0 -1
- package/node_modules/lodash/fp/always.js +0 -1
- package/node_modules/lodash/fp/any.js +0 -1
- package/node_modules/lodash/fp/anyPass.js +0 -1
- package/node_modules/lodash/fp/apply.js +0 -1
- package/node_modules/lodash/fp/array.js +0 -2
- package/node_modules/lodash/fp/ary.js +0 -5
- package/node_modules/lodash/fp/assign.js +0 -5
- package/node_modules/lodash/fp/assignAll.js +0 -5
- package/node_modules/lodash/fp/assignAllWith.js +0 -5
- package/node_modules/lodash/fp/assignIn.js +0 -5
- package/node_modules/lodash/fp/assignInAll.js +0 -5
- package/node_modules/lodash/fp/assignInAllWith.js +0 -5
- package/node_modules/lodash/fp/assignInWith.js +0 -5
- package/node_modules/lodash/fp/assignWith.js +0 -5
- package/node_modules/lodash/fp/assoc.js +0 -1
- package/node_modules/lodash/fp/assocPath.js +0 -1
- package/node_modules/lodash/fp/at.js +0 -5
- package/node_modules/lodash/fp/attempt.js +0 -5
- package/node_modules/lodash/fp/before.js +0 -5
- package/node_modules/lodash/fp/bind.js +0 -5
- package/node_modules/lodash/fp/bindAll.js +0 -5
- package/node_modules/lodash/fp/bindKey.js +0 -5
- package/node_modules/lodash/fp/camelCase.js +0 -5
- package/node_modules/lodash/fp/capitalize.js +0 -5
- package/node_modules/lodash/fp/castArray.js +0 -5
- package/node_modules/lodash/fp/ceil.js +0 -5
- package/node_modules/lodash/fp/chain.js +0 -5
- package/node_modules/lodash/fp/chunk.js +0 -5
- package/node_modules/lodash/fp/clamp.js +0 -5
- package/node_modules/lodash/fp/clone.js +0 -5
- package/node_modules/lodash/fp/cloneDeep.js +0 -5
- package/node_modules/lodash/fp/cloneDeepWith.js +0 -5
- package/node_modules/lodash/fp/cloneWith.js +0 -5
- package/node_modules/lodash/fp/collection.js +0 -2
- package/node_modules/lodash/fp/commit.js +0 -5
- package/node_modules/lodash/fp/compact.js +0 -5
- package/node_modules/lodash/fp/complement.js +0 -1
- package/node_modules/lodash/fp/compose.js +0 -1
- package/node_modules/lodash/fp/concat.js +0 -5
- package/node_modules/lodash/fp/cond.js +0 -5
- package/node_modules/lodash/fp/conforms.js +0 -1
- package/node_modules/lodash/fp/conformsTo.js +0 -5
- package/node_modules/lodash/fp/constant.js +0 -5
- package/node_modules/lodash/fp/contains.js +0 -1
- package/node_modules/lodash/fp/convert.js +0 -18
- package/node_modules/lodash/fp/countBy.js +0 -5
- package/node_modules/lodash/fp/create.js +0 -5
- package/node_modules/lodash/fp/curry.js +0 -5
- package/node_modules/lodash/fp/curryN.js +0 -5
- package/node_modules/lodash/fp/curryRight.js +0 -5
- package/node_modules/lodash/fp/curryRightN.js +0 -5
- package/node_modules/lodash/fp/date.js +0 -2
- package/node_modules/lodash/fp/debounce.js +0 -5
- package/node_modules/lodash/fp/deburr.js +0 -5
- package/node_modules/lodash/fp/defaultTo.js +0 -5
- package/node_modules/lodash/fp/defaults.js +0 -5
- package/node_modules/lodash/fp/defaultsAll.js +0 -5
- package/node_modules/lodash/fp/defaultsDeep.js +0 -5
- package/node_modules/lodash/fp/defaultsDeepAll.js +0 -5
- package/node_modules/lodash/fp/defer.js +0 -5
- package/node_modules/lodash/fp/delay.js +0 -5
- package/node_modules/lodash/fp/difference.js +0 -5
- package/node_modules/lodash/fp/differenceBy.js +0 -5
- package/node_modules/lodash/fp/differenceWith.js +0 -5
- package/node_modules/lodash/fp/dissoc.js +0 -1
- package/node_modules/lodash/fp/dissocPath.js +0 -1
- package/node_modules/lodash/fp/divide.js +0 -5
- package/node_modules/lodash/fp/drop.js +0 -5
- package/node_modules/lodash/fp/dropLast.js +0 -1
- package/node_modules/lodash/fp/dropLastWhile.js +0 -1
- package/node_modules/lodash/fp/dropRight.js +0 -5
- package/node_modules/lodash/fp/dropRightWhile.js +0 -5
- package/node_modules/lodash/fp/dropWhile.js +0 -5
- package/node_modules/lodash/fp/each.js +0 -1
- package/node_modules/lodash/fp/eachRight.js +0 -1
- package/node_modules/lodash/fp/endsWith.js +0 -5
- package/node_modules/lodash/fp/entries.js +0 -1
- package/node_modules/lodash/fp/entriesIn.js +0 -1
- package/node_modules/lodash/fp/eq.js +0 -5
- package/node_modules/lodash/fp/equals.js +0 -1
- package/node_modules/lodash/fp/escape.js +0 -5
- package/node_modules/lodash/fp/escapeRegExp.js +0 -5
- package/node_modules/lodash/fp/every.js +0 -5
- package/node_modules/lodash/fp/extend.js +0 -1
- package/node_modules/lodash/fp/extendAll.js +0 -1
- package/node_modules/lodash/fp/extendAllWith.js +0 -1
- package/node_modules/lodash/fp/extendWith.js +0 -1
- package/node_modules/lodash/fp/fill.js +0 -5
- package/node_modules/lodash/fp/filter.js +0 -5
- package/node_modules/lodash/fp/find.js +0 -5
- package/node_modules/lodash/fp/findFrom.js +0 -5
- package/node_modules/lodash/fp/findIndex.js +0 -5
- package/node_modules/lodash/fp/findIndexFrom.js +0 -5
- package/node_modules/lodash/fp/findKey.js +0 -5
- package/node_modules/lodash/fp/findLast.js +0 -5
- package/node_modules/lodash/fp/findLastFrom.js +0 -5
- package/node_modules/lodash/fp/findLastIndex.js +0 -5
- package/node_modules/lodash/fp/findLastIndexFrom.js +0 -5
- package/node_modules/lodash/fp/findLastKey.js +0 -5
- package/node_modules/lodash/fp/first.js +0 -1
- package/node_modules/lodash/fp/flatMap.js +0 -5
- package/node_modules/lodash/fp/flatMapDeep.js +0 -5
- package/node_modules/lodash/fp/flatMapDepth.js +0 -5
- package/node_modules/lodash/fp/flatten.js +0 -5
- package/node_modules/lodash/fp/flattenDeep.js +0 -5
- package/node_modules/lodash/fp/flattenDepth.js +0 -5
- package/node_modules/lodash/fp/flip.js +0 -5
- package/node_modules/lodash/fp/floor.js +0 -5
- package/node_modules/lodash/fp/flow.js +0 -5
- package/node_modules/lodash/fp/flowRight.js +0 -5
- package/node_modules/lodash/fp/forEach.js +0 -5
- package/node_modules/lodash/fp/forEachRight.js +0 -5
- package/node_modules/lodash/fp/forIn.js +0 -5
- package/node_modules/lodash/fp/forInRight.js +0 -5
- package/node_modules/lodash/fp/forOwn.js +0 -5
- package/node_modules/lodash/fp/forOwnRight.js +0 -5
- package/node_modules/lodash/fp/fromPairs.js +0 -5
- package/node_modules/lodash/fp/function.js +0 -2
- package/node_modules/lodash/fp/functions.js +0 -5
- package/node_modules/lodash/fp/functionsIn.js +0 -5
- package/node_modules/lodash/fp/get.js +0 -5
- package/node_modules/lodash/fp/getOr.js +0 -5
- package/node_modules/lodash/fp/groupBy.js +0 -5
- package/node_modules/lodash/fp/gt.js +0 -5
- package/node_modules/lodash/fp/gte.js +0 -5
- package/node_modules/lodash/fp/has.js +0 -5
- package/node_modules/lodash/fp/hasIn.js +0 -5
- package/node_modules/lodash/fp/head.js +0 -5
- package/node_modules/lodash/fp/identical.js +0 -1
- package/node_modules/lodash/fp/identity.js +0 -5
- package/node_modules/lodash/fp/inRange.js +0 -5
- package/node_modules/lodash/fp/includes.js +0 -5
- package/node_modules/lodash/fp/includesFrom.js +0 -5
- package/node_modules/lodash/fp/indexBy.js +0 -1
- package/node_modules/lodash/fp/indexOf.js +0 -5
- package/node_modules/lodash/fp/indexOfFrom.js +0 -5
- package/node_modules/lodash/fp/init.js +0 -1
- package/node_modules/lodash/fp/initial.js +0 -5
- package/node_modules/lodash/fp/intersection.js +0 -5
- package/node_modules/lodash/fp/intersectionBy.js +0 -5
- package/node_modules/lodash/fp/intersectionWith.js +0 -5
- package/node_modules/lodash/fp/invert.js +0 -5
- package/node_modules/lodash/fp/invertBy.js +0 -5
- package/node_modules/lodash/fp/invertObj.js +0 -1
- package/node_modules/lodash/fp/invoke.js +0 -5
- package/node_modules/lodash/fp/invokeArgs.js +0 -5
- package/node_modules/lodash/fp/invokeArgsMap.js +0 -5
- package/node_modules/lodash/fp/invokeMap.js +0 -5
- package/node_modules/lodash/fp/isArguments.js +0 -5
- package/node_modules/lodash/fp/isArray.js +0 -5
- package/node_modules/lodash/fp/isArrayBuffer.js +0 -5
- package/node_modules/lodash/fp/isArrayLike.js +0 -5
- package/node_modules/lodash/fp/isArrayLikeObject.js +0 -5
- package/node_modules/lodash/fp/isBoolean.js +0 -5
- package/node_modules/lodash/fp/isBuffer.js +0 -5
- package/node_modules/lodash/fp/isDate.js +0 -5
- package/node_modules/lodash/fp/isElement.js +0 -5
- package/node_modules/lodash/fp/isEmpty.js +0 -5
- package/node_modules/lodash/fp/isEqual.js +0 -5
- package/node_modules/lodash/fp/isEqualWith.js +0 -5
- package/node_modules/lodash/fp/isError.js +0 -5
- package/node_modules/lodash/fp/isFinite.js +0 -5
- package/node_modules/lodash/fp/isFunction.js +0 -5
- package/node_modules/lodash/fp/isInteger.js +0 -5
- package/node_modules/lodash/fp/isLength.js +0 -5
- package/node_modules/lodash/fp/isMap.js +0 -5
- package/node_modules/lodash/fp/isMatch.js +0 -5
- package/node_modules/lodash/fp/isMatchWith.js +0 -5
- package/node_modules/lodash/fp/isNaN.js +0 -5
- package/node_modules/lodash/fp/isNative.js +0 -5
- package/node_modules/lodash/fp/isNil.js +0 -5
- package/node_modules/lodash/fp/isNull.js +0 -5
- package/node_modules/lodash/fp/isNumber.js +0 -5
- package/node_modules/lodash/fp/isObject.js +0 -5
- package/node_modules/lodash/fp/isObjectLike.js +0 -5
- package/node_modules/lodash/fp/isPlainObject.js +0 -5
- package/node_modules/lodash/fp/isRegExp.js +0 -5
- package/node_modules/lodash/fp/isSafeInteger.js +0 -5
- package/node_modules/lodash/fp/isSet.js +0 -5
- package/node_modules/lodash/fp/isString.js +0 -5
- package/node_modules/lodash/fp/isSymbol.js +0 -5
- package/node_modules/lodash/fp/isTypedArray.js +0 -5
- package/node_modules/lodash/fp/isUndefined.js +0 -5
- package/node_modules/lodash/fp/isWeakMap.js +0 -5
- package/node_modules/lodash/fp/isWeakSet.js +0 -5
- package/node_modules/lodash/fp/iteratee.js +0 -5
- package/node_modules/lodash/fp/join.js +0 -5
- package/node_modules/lodash/fp/juxt.js +0 -1
- package/node_modules/lodash/fp/kebabCase.js +0 -5
- package/node_modules/lodash/fp/keyBy.js +0 -5
- package/node_modules/lodash/fp/keys.js +0 -5
- package/node_modules/lodash/fp/keysIn.js +0 -5
- package/node_modules/lodash/fp/lang.js +0 -2
- package/node_modules/lodash/fp/last.js +0 -5
- package/node_modules/lodash/fp/lastIndexOf.js +0 -5
- package/node_modules/lodash/fp/lastIndexOfFrom.js +0 -5
- package/node_modules/lodash/fp/lowerCase.js +0 -5
- package/node_modules/lodash/fp/lowerFirst.js +0 -5
- package/node_modules/lodash/fp/lt.js +0 -5
- package/node_modules/lodash/fp/lte.js +0 -5
- package/node_modules/lodash/fp/map.js +0 -5
- package/node_modules/lodash/fp/mapKeys.js +0 -5
- package/node_modules/lodash/fp/mapValues.js +0 -5
- package/node_modules/lodash/fp/matches.js +0 -1
- package/node_modules/lodash/fp/matchesProperty.js +0 -5
- package/node_modules/lodash/fp/math.js +0 -2
- package/node_modules/lodash/fp/max.js +0 -5
- package/node_modules/lodash/fp/maxBy.js +0 -5
- package/node_modules/lodash/fp/mean.js +0 -5
- package/node_modules/lodash/fp/meanBy.js +0 -5
- package/node_modules/lodash/fp/memoize.js +0 -5
- package/node_modules/lodash/fp/merge.js +0 -5
- package/node_modules/lodash/fp/mergeAll.js +0 -5
- package/node_modules/lodash/fp/mergeAllWith.js +0 -5
- package/node_modules/lodash/fp/mergeWith.js +0 -5
- package/node_modules/lodash/fp/method.js +0 -5
- package/node_modules/lodash/fp/methodOf.js +0 -5
- package/node_modules/lodash/fp/min.js +0 -5
- package/node_modules/lodash/fp/minBy.js +0 -5
- package/node_modules/lodash/fp/mixin.js +0 -5
- package/node_modules/lodash/fp/multiply.js +0 -5
- package/node_modules/lodash/fp/nAry.js +0 -1
- package/node_modules/lodash/fp/negate.js +0 -5
- package/node_modules/lodash/fp/next.js +0 -5
- package/node_modules/lodash/fp/noop.js +0 -5
- package/node_modules/lodash/fp/now.js +0 -5
- package/node_modules/lodash/fp/nth.js +0 -5
- package/node_modules/lodash/fp/nthArg.js +0 -5
- package/node_modules/lodash/fp/number.js +0 -2
- package/node_modules/lodash/fp/object.js +0 -2
- package/node_modules/lodash/fp/omit.js +0 -5
- package/node_modules/lodash/fp/omitAll.js +0 -1
- package/node_modules/lodash/fp/omitBy.js +0 -5
- package/node_modules/lodash/fp/once.js +0 -5
- package/node_modules/lodash/fp/orderBy.js +0 -5
- package/node_modules/lodash/fp/over.js +0 -5
- package/node_modules/lodash/fp/overArgs.js +0 -5
- package/node_modules/lodash/fp/overEvery.js +0 -5
- package/node_modules/lodash/fp/overSome.js +0 -5
- package/node_modules/lodash/fp/pad.js +0 -5
- package/node_modules/lodash/fp/padChars.js +0 -5
- package/node_modules/lodash/fp/padCharsEnd.js +0 -5
- package/node_modules/lodash/fp/padCharsStart.js +0 -5
- package/node_modules/lodash/fp/padEnd.js +0 -5
- package/node_modules/lodash/fp/padStart.js +0 -5
- package/node_modules/lodash/fp/parseInt.js +0 -5
- package/node_modules/lodash/fp/partial.js +0 -5
- package/node_modules/lodash/fp/partialRight.js +0 -5
- package/node_modules/lodash/fp/partition.js +0 -5
- package/node_modules/lodash/fp/path.js +0 -1
- package/node_modules/lodash/fp/pathEq.js +0 -1
- package/node_modules/lodash/fp/pathOr.js +0 -1
- package/node_modules/lodash/fp/paths.js +0 -1
- package/node_modules/lodash/fp/pick.js +0 -5
- package/node_modules/lodash/fp/pickAll.js +0 -1
- package/node_modules/lodash/fp/pickBy.js +0 -5
- package/node_modules/lodash/fp/pipe.js +0 -1
- package/node_modules/lodash/fp/placeholder.js +0 -6
- package/node_modules/lodash/fp/plant.js +0 -5
- package/node_modules/lodash/fp/pluck.js +0 -1
- package/node_modules/lodash/fp/prop.js +0 -1
- package/node_modules/lodash/fp/propEq.js +0 -1
- package/node_modules/lodash/fp/propOr.js +0 -1
- package/node_modules/lodash/fp/property.js +0 -1
- package/node_modules/lodash/fp/propertyOf.js +0 -5
- package/node_modules/lodash/fp/props.js +0 -1
- package/node_modules/lodash/fp/pull.js +0 -5
- package/node_modules/lodash/fp/pullAll.js +0 -5
- package/node_modules/lodash/fp/pullAllBy.js +0 -5
- package/node_modules/lodash/fp/pullAllWith.js +0 -5
- package/node_modules/lodash/fp/pullAt.js +0 -5
- package/node_modules/lodash/fp/random.js +0 -5
- package/node_modules/lodash/fp/range.js +0 -5
- package/node_modules/lodash/fp/rangeRight.js +0 -5
- package/node_modules/lodash/fp/rangeStep.js +0 -5
- package/node_modules/lodash/fp/rangeStepRight.js +0 -5
- package/node_modules/lodash/fp/rearg.js +0 -5
- package/node_modules/lodash/fp/reduce.js +0 -5
- package/node_modules/lodash/fp/reduceRight.js +0 -5
- package/node_modules/lodash/fp/reject.js +0 -5
- package/node_modules/lodash/fp/remove.js +0 -5
- package/node_modules/lodash/fp/repeat.js +0 -5
- package/node_modules/lodash/fp/replace.js +0 -5
- package/node_modules/lodash/fp/rest.js +0 -5
- package/node_modules/lodash/fp/restFrom.js +0 -5
- package/node_modules/lodash/fp/result.js +0 -5
- package/node_modules/lodash/fp/reverse.js +0 -5
- package/node_modules/lodash/fp/round.js +0 -5
- package/node_modules/lodash/fp/sample.js +0 -5
- package/node_modules/lodash/fp/sampleSize.js +0 -5
- package/node_modules/lodash/fp/seq.js +0 -2
- package/node_modules/lodash/fp/set.js +0 -5
- package/node_modules/lodash/fp/setWith.js +0 -5
- package/node_modules/lodash/fp/shuffle.js +0 -5
- package/node_modules/lodash/fp/size.js +0 -5
- package/node_modules/lodash/fp/slice.js +0 -5
- package/node_modules/lodash/fp/snakeCase.js +0 -5
- package/node_modules/lodash/fp/some.js +0 -5
- package/node_modules/lodash/fp/sortBy.js +0 -5
- package/node_modules/lodash/fp/sortedIndex.js +0 -5
- package/node_modules/lodash/fp/sortedIndexBy.js +0 -5
- package/node_modules/lodash/fp/sortedIndexOf.js +0 -5
- package/node_modules/lodash/fp/sortedLastIndex.js +0 -5
- package/node_modules/lodash/fp/sortedLastIndexBy.js +0 -5
- package/node_modules/lodash/fp/sortedLastIndexOf.js +0 -5
- package/node_modules/lodash/fp/sortedUniq.js +0 -5
- package/node_modules/lodash/fp/sortedUniqBy.js +0 -5
- package/node_modules/lodash/fp/split.js +0 -5
- package/node_modules/lodash/fp/spread.js +0 -5
- package/node_modules/lodash/fp/spreadFrom.js +0 -5
- package/node_modules/lodash/fp/startCase.js +0 -5
- package/node_modules/lodash/fp/startsWith.js +0 -5
- package/node_modules/lodash/fp/string.js +0 -2
- package/node_modules/lodash/fp/stubArray.js +0 -5
- package/node_modules/lodash/fp/stubFalse.js +0 -5
- package/node_modules/lodash/fp/stubObject.js +0 -5
- package/node_modules/lodash/fp/stubString.js +0 -5
- package/node_modules/lodash/fp/stubTrue.js +0 -5
- package/node_modules/lodash/fp/subtract.js +0 -5
- package/node_modules/lodash/fp/sum.js +0 -5
- package/node_modules/lodash/fp/sumBy.js +0 -5
- package/node_modules/lodash/fp/symmetricDifference.js +0 -1
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +0 -1
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +0 -1
- package/node_modules/lodash/fp/tail.js +0 -5
- package/node_modules/lodash/fp/take.js +0 -5
- package/node_modules/lodash/fp/takeLast.js +0 -1
- package/node_modules/lodash/fp/takeLastWhile.js +0 -1
- package/node_modules/lodash/fp/takeRight.js +0 -5
- package/node_modules/lodash/fp/takeRightWhile.js +0 -5
- package/node_modules/lodash/fp/takeWhile.js +0 -5
- package/node_modules/lodash/fp/tap.js +0 -5
- package/node_modules/lodash/fp/template.js +0 -5
- package/node_modules/lodash/fp/templateSettings.js +0 -5
- package/node_modules/lodash/fp/throttle.js +0 -5
- package/node_modules/lodash/fp/thru.js +0 -5
- package/node_modules/lodash/fp/times.js +0 -5
- package/node_modules/lodash/fp/toArray.js +0 -5
- package/node_modules/lodash/fp/toFinite.js +0 -5
- package/node_modules/lodash/fp/toInteger.js +0 -5
- package/node_modules/lodash/fp/toIterator.js +0 -5
- package/node_modules/lodash/fp/toJSON.js +0 -5
- package/node_modules/lodash/fp/toLength.js +0 -5
- package/node_modules/lodash/fp/toLower.js +0 -5
- package/node_modules/lodash/fp/toNumber.js +0 -5
- package/node_modules/lodash/fp/toPairs.js +0 -5
- package/node_modules/lodash/fp/toPairsIn.js +0 -5
- package/node_modules/lodash/fp/toPath.js +0 -5
- package/node_modules/lodash/fp/toPlainObject.js +0 -5
- package/node_modules/lodash/fp/toSafeInteger.js +0 -5
- package/node_modules/lodash/fp/toString.js +0 -5
- package/node_modules/lodash/fp/toUpper.js +0 -5
- package/node_modules/lodash/fp/transform.js +0 -5
- package/node_modules/lodash/fp/trim.js +0 -5
- package/node_modules/lodash/fp/trimChars.js +0 -5
- package/node_modules/lodash/fp/trimCharsEnd.js +0 -5
- package/node_modules/lodash/fp/trimCharsStart.js +0 -5
- package/node_modules/lodash/fp/trimEnd.js +0 -5
- package/node_modules/lodash/fp/trimStart.js +0 -5
- package/node_modules/lodash/fp/truncate.js +0 -5
- package/node_modules/lodash/fp/unapply.js +0 -1
- package/node_modules/lodash/fp/unary.js +0 -5
- package/node_modules/lodash/fp/unescape.js +0 -5
- package/node_modules/lodash/fp/union.js +0 -5
- package/node_modules/lodash/fp/unionBy.js +0 -5
- package/node_modules/lodash/fp/unionWith.js +0 -5
- package/node_modules/lodash/fp/uniq.js +0 -5
- package/node_modules/lodash/fp/uniqBy.js +0 -5
- package/node_modules/lodash/fp/uniqWith.js +0 -5
- package/node_modules/lodash/fp/uniqueId.js +0 -5
- package/node_modules/lodash/fp/unnest.js +0 -1
- package/node_modules/lodash/fp/unset.js +0 -5
- package/node_modules/lodash/fp/unzip.js +0 -5
- package/node_modules/lodash/fp/unzipWith.js +0 -5
- package/node_modules/lodash/fp/update.js +0 -5
- package/node_modules/lodash/fp/updateWith.js +0 -5
- package/node_modules/lodash/fp/upperCase.js +0 -5
- package/node_modules/lodash/fp/upperFirst.js +0 -5
- package/node_modules/lodash/fp/useWith.js +0 -1
- package/node_modules/lodash/fp/util.js +0 -2
- package/node_modules/lodash/fp/value.js +0 -5
- package/node_modules/lodash/fp/valueOf.js +0 -5
- package/node_modules/lodash/fp/values.js +0 -5
- package/node_modules/lodash/fp/valuesIn.js +0 -5
- package/node_modules/lodash/fp/where.js +0 -1
- package/node_modules/lodash/fp/whereEq.js +0 -1
- package/node_modules/lodash/fp/without.js +0 -5
- package/node_modules/lodash/fp/words.js +0 -5
- package/node_modules/lodash/fp/wrap.js +0 -5
- package/node_modules/lodash/fp/wrapperAt.js +0 -5
- package/node_modules/lodash/fp/wrapperChain.js +0 -5
- package/node_modules/lodash/fp/wrapperLodash.js +0 -5
- package/node_modules/lodash/fp/wrapperReverse.js +0 -5
- package/node_modules/lodash/fp/wrapperValue.js +0 -5
- package/node_modules/lodash/fp/xor.js +0 -5
- package/node_modules/lodash/fp/xorBy.js +0 -5
- package/node_modules/lodash/fp/xorWith.js +0 -5
- package/node_modules/lodash/fp/zip.js +0 -5
- package/node_modules/lodash/fp/zipAll.js +0 -5
- package/node_modules/lodash/fp/zipObj.js +0 -1
- package/node_modules/lodash/fp/zipObject.js +0 -5
- package/node_modules/lodash/fp/zipObjectDeep.js +0 -5
- package/node_modules/lodash/fp/zipWith.js +0 -5
- package/node_modules/lodash/fp.js +0 -2
- package/node_modules/lodash/fromPairs.js +0 -28
- package/node_modules/lodash/function.js +0 -25
- package/node_modules/lodash/functions.js +0 -31
- package/node_modules/lodash/functionsIn.js +0 -31
- package/node_modules/lodash/get.js +0 -33
- package/node_modules/lodash/groupBy.js +0 -41
- package/node_modules/lodash/gt.js +0 -29
- package/node_modules/lodash/gte.js +0 -30
- package/node_modules/lodash/has.js +0 -35
- package/node_modules/lodash/hasIn.js +0 -34
- package/node_modules/lodash/head.js +0 -23
- package/node_modules/lodash/identity.js +0 -21
- package/node_modules/lodash/inRange.js +0 -55
- package/node_modules/lodash/includes.js +0 -53
- package/node_modules/lodash/index.js +0 -1
- package/node_modules/lodash/indexOf.js +0 -42
- package/node_modules/lodash/initial.js +0 -22
- package/node_modules/lodash/intersection.js +0 -30
- package/node_modules/lodash/intersectionBy.js +0 -45
- package/node_modules/lodash/intersectionWith.js +0 -41
- package/node_modules/lodash/invert.js +0 -42
- package/node_modules/lodash/invertBy.js +0 -56
- package/node_modules/lodash/invoke.js +0 -24
- package/node_modules/lodash/invokeMap.js +0 -41
- package/node_modules/lodash/isArguments.js +0 -36
- package/node_modules/lodash/isArray.js +0 -26
- package/node_modules/lodash/isArrayBuffer.js +0 -27
- package/node_modules/lodash/isArrayLike.js +0 -33
- package/node_modules/lodash/isArrayLikeObject.js +0 -33
- package/node_modules/lodash/isBoolean.js +0 -29
- package/node_modules/lodash/isBuffer.js +0 -38
- package/node_modules/lodash/isDate.js +0 -27
- package/node_modules/lodash/isElement.js +0 -25
- package/node_modules/lodash/isEmpty.js +0 -77
- package/node_modules/lodash/isEqual.js +0 -35
- package/node_modules/lodash/isEqualWith.js +0 -41
- package/node_modules/lodash/isError.js +0 -36
- package/node_modules/lodash/isFinite.js +0 -36
- package/node_modules/lodash/isFunction.js +0 -37
- package/node_modules/lodash/isInteger.js +0 -33
- package/node_modules/lodash/isLength.js +0 -35
- package/node_modules/lodash/isMap.js +0 -27
- package/node_modules/lodash/isMatch.js +0 -36
- package/node_modules/lodash/isMatchWith.js +0 -41
- package/node_modules/lodash/isNaN.js +0 -38
- package/node_modules/lodash/isNative.js +0 -40
- package/node_modules/lodash/isNil.js +0 -25
- package/node_modules/lodash/isNull.js +0 -22
- package/node_modules/lodash/isNumber.js +0 -38
- package/node_modules/lodash/isObject.js +0 -31
- package/node_modules/lodash/isObjectLike.js +0 -29
- package/node_modules/lodash/isPlainObject.js +0 -62
- package/node_modules/lodash/isRegExp.js +0 -27
- package/node_modules/lodash/isSafeInteger.js +0 -37
- package/node_modules/lodash/isSet.js +0 -27
- package/node_modules/lodash/isString.js +0 -30
- package/node_modules/lodash/isSymbol.js +0 -29
- package/node_modules/lodash/isTypedArray.js +0 -27
- package/node_modules/lodash/isUndefined.js +0 -22
- package/node_modules/lodash/isWeakMap.js +0 -28
- package/node_modules/lodash/isWeakSet.js +0 -28
- package/node_modules/lodash/iteratee.js +0 -53
- package/node_modules/lodash/join.js +0 -26
- package/node_modules/lodash/kebabCase.js +0 -28
- package/node_modules/lodash/keyBy.js +0 -36
- package/node_modules/lodash/keys.js +0 -37
- package/node_modules/lodash/keysIn.js +0 -32
- package/node_modules/lodash/lang.js +0 -58
- package/node_modules/lodash/last.js +0 -20
- package/node_modules/lodash/lastIndexOf.js +0 -46
- package/node_modules/lodash/lodash.js +0 -17209
- package/node_modules/lodash/lodash.min.js +0 -140
- package/node_modules/lodash/lowerCase.js +0 -27
- package/node_modules/lodash/lowerFirst.js +0 -22
- package/node_modules/lodash/lt.js +0 -29
- package/node_modules/lodash/lte.js +0 -30
- package/node_modules/lodash/map.js +0 -53
- package/node_modules/lodash/mapKeys.js +0 -36
- package/node_modules/lodash/mapValues.js +0 -43
- package/node_modules/lodash/matches.js +0 -46
- package/node_modules/lodash/matchesProperty.js +0 -44
- package/node_modules/lodash/math.js +0 -17
- package/node_modules/lodash/max.js +0 -29
- package/node_modules/lodash/maxBy.js +0 -34
- package/node_modules/lodash/mean.js +0 -22
- package/node_modules/lodash/meanBy.js +0 -31
- package/node_modules/lodash/memoize.js +0 -73
- package/node_modules/lodash/merge.js +0 -39
- package/node_modules/lodash/mergeWith.js +0 -39
- package/node_modules/lodash/method.js +0 -34
- package/node_modules/lodash/methodOf.js +0 -33
- package/node_modules/lodash/min.js +0 -29
- package/node_modules/lodash/minBy.js +0 -34
- package/node_modules/lodash/mixin.js +0 -74
- package/node_modules/lodash/multiply.js +0 -22
- package/node_modules/lodash/negate.js +0 -40
- package/node_modules/lodash/next.js +0 -35
- package/node_modules/lodash/noop.js +0 -17
- package/node_modules/lodash/now.js +0 -23
- package/node_modules/lodash/nth.js +0 -29
- package/node_modules/lodash/nthArg.js +0 -32
- package/node_modules/lodash/number.js +0 -5
- package/node_modules/lodash/object.js +0 -49
- package/node_modules/lodash/omit.js +0 -57
- package/node_modules/lodash/omitBy.js +0 -29
- package/node_modules/lodash/once.js +0 -25
- package/node_modules/lodash/orderBy.js +0 -47
- package/node_modules/lodash/over.js +0 -24
- package/node_modules/lodash/overArgs.js +0 -61
- package/node_modules/lodash/overEvery.js +0 -34
- package/node_modules/lodash/overSome.js +0 -37
- package/node_modules/lodash/package.json +0 -21
- package/node_modules/lodash/pad.js +0 -49
- package/node_modules/lodash/padEnd.js +0 -39
- package/node_modules/lodash/padStart.js +0 -39
- package/node_modules/lodash/parseInt.js +0 -43
- package/node_modules/lodash/partial.js +0 -50
- package/node_modules/lodash/partialRight.js +0 -49
- package/node_modules/lodash/partition.js +0 -43
- package/node_modules/lodash/pick.js +0 -25
- package/node_modules/lodash/pickBy.js +0 -37
- package/node_modules/lodash/plant.js +0 -48
- package/node_modules/lodash/property.js +0 -32
- package/node_modules/lodash/propertyOf.js +0 -30
- package/node_modules/lodash/pull.js +0 -29
- package/node_modules/lodash/pullAll.js +0 -29
- package/node_modules/lodash/pullAllBy.js +0 -33
- package/node_modules/lodash/pullAllWith.js +0 -32
- package/node_modules/lodash/pullAt.js +0 -43
- package/node_modules/lodash/random.js +0 -82
- package/node_modules/lodash/range.js +0 -46
- package/node_modules/lodash/rangeRight.js +0 -41
- package/node_modules/lodash/rearg.js +0 -33
- package/node_modules/lodash/reduce.js +0 -51
- package/node_modules/lodash/reduceRight.js +0 -36
- package/node_modules/lodash/reject.js +0 -46
- package/node_modules/lodash/release.md +0 -48
- package/node_modules/lodash/remove.js +0 -53
- package/node_modules/lodash/repeat.js +0 -37
- package/node_modules/lodash/replace.js +0 -29
- package/node_modules/lodash/rest.js +0 -40
- package/node_modules/lodash/result.js +0 -56
- package/node_modules/lodash/reverse.js +0 -34
- package/node_modules/lodash/round.js +0 -26
- package/node_modules/lodash/sample.js +0 -24
- package/node_modules/lodash/sampleSize.js +0 -37
- package/node_modules/lodash/seq.js +0 -16
- package/node_modules/lodash/set.js +0 -35
- package/node_modules/lodash/setWith.js +0 -32
- package/node_modules/lodash/shuffle.js +0 -25
- package/node_modules/lodash/size.js +0 -46
- package/node_modules/lodash/slice.js +0 -37
- package/node_modules/lodash/snakeCase.js +0 -28
- package/node_modules/lodash/some.js +0 -51
- package/node_modules/lodash/sortBy.js +0 -48
- package/node_modules/lodash/sortedIndex.js +0 -24
- package/node_modules/lodash/sortedIndexBy.js +0 -33
- package/node_modules/lodash/sortedIndexOf.js +0 -31
- package/node_modules/lodash/sortedLastIndex.js +0 -25
- package/node_modules/lodash/sortedLastIndexBy.js +0 -33
- package/node_modules/lodash/sortedLastIndexOf.js +0 -31
- package/node_modules/lodash/sortedUniq.js +0 -24
- package/node_modules/lodash/sortedUniqBy.js +0 -26
- package/node_modules/lodash/split.js +0 -52
- package/node_modules/lodash/spread.js +0 -63
- package/node_modules/lodash/startCase.js +0 -29
- package/node_modules/lodash/startsWith.js +0 -39
- package/node_modules/lodash/string.js +0 -33
- package/node_modules/lodash/stubArray.js +0 -23
- package/node_modules/lodash/stubFalse.js +0 -18
- package/node_modules/lodash/stubObject.js +0 -23
- package/node_modules/lodash/stubString.js +0 -18
- package/node_modules/lodash/stubTrue.js +0 -18
- package/node_modules/lodash/subtract.js +0 -22
- package/node_modules/lodash/sum.js +0 -24
- package/node_modules/lodash/sumBy.js +0 -33
- package/node_modules/lodash/tail.js +0 -22
- package/node_modules/lodash/take.js +0 -37
- package/node_modules/lodash/takeRight.js +0 -39
- package/node_modules/lodash/takeRightWhile.js +0 -45
- package/node_modules/lodash/takeWhile.js +0 -45
- package/node_modules/lodash/tap.js +0 -29
- package/node_modules/lodash/template.js +0 -272
- package/node_modules/lodash/templateSettings.js +0 -67
- package/node_modules/lodash/throttle.js +0 -69
- package/node_modules/lodash/thru.js +0 -28
- package/node_modules/lodash/times.js +0 -51
- package/node_modules/lodash/toArray.js +0 -58
- package/node_modules/lodash/toFinite.js +0 -42
- package/node_modules/lodash/toInteger.js +0 -36
- package/node_modules/lodash/toIterator.js +0 -23
- package/node_modules/lodash/toJSON.js +0 -1
- package/node_modules/lodash/toLength.js +0 -38
- package/node_modules/lodash/toLower.js +0 -28
- package/node_modules/lodash/toNumber.js +0 -64
- package/node_modules/lodash/toPairs.js +0 -30
- package/node_modules/lodash/toPairsIn.js +0 -30
- package/node_modules/lodash/toPath.js +0 -33
- package/node_modules/lodash/toPlainObject.js +0 -32
- package/node_modules/lodash/toSafeInteger.js +0 -37
- package/node_modules/lodash/toString.js +0 -28
- package/node_modules/lodash/toUpper.js +0 -28
- package/node_modules/lodash/transform.js +0 -65
- package/node_modules/lodash/trim.js +0 -47
- package/node_modules/lodash/trimEnd.js +0 -41
- package/node_modules/lodash/trimStart.js +0 -43
- package/node_modules/lodash/truncate.js +0 -111
- package/node_modules/lodash/unary.js +0 -22
- package/node_modules/lodash/unescape.js +0 -34
- package/node_modules/lodash/union.js +0 -26
- package/node_modules/lodash/unionBy.js +0 -39
- package/node_modules/lodash/unionWith.js +0 -34
- package/node_modules/lodash/uniq.js +0 -25
- package/node_modules/lodash/uniqBy.js +0 -31
- package/node_modules/lodash/uniqWith.js +0 -28
- package/node_modules/lodash/uniqueId.js +0 -28
- package/node_modules/lodash/unset.js +0 -34
- package/node_modules/lodash/unzip.js +0 -45
- package/node_modules/lodash/unzipWith.js +0 -39
- package/node_modules/lodash/update.js +0 -35
- package/node_modules/lodash/updateWith.js +0 -33
- package/node_modules/lodash/upperCase.js +0 -27
- package/node_modules/lodash/upperFirst.js +0 -22
- package/node_modules/lodash/util.js +0 -34
- package/node_modules/lodash/value.js +0 -1
- package/node_modules/lodash/valueOf.js +0 -1
- package/node_modules/lodash/values.js +0 -34
- package/node_modules/lodash/valuesIn.js +0 -32
- package/node_modules/lodash/without.js +0 -31
- package/node_modules/lodash/words.js +0 -35
- package/node_modules/lodash/wrap.js +0 -30
- package/node_modules/lodash/wrapperAt.js +0 -48
- package/node_modules/lodash/wrapperChain.js +0 -34
- package/node_modules/lodash/wrapperLodash.js +0 -147
- package/node_modules/lodash/wrapperReverse.js +0 -44
- package/node_modules/lodash/wrapperValue.js +0 -21
- package/node_modules/lodash/xor.js +0 -28
- package/node_modules/lodash/xorBy.js +0 -39
- package/node_modules/lodash/xorWith.js +0 -34
- package/node_modules/lodash/zip.js +0 -22
- package/node_modules/lodash/zipObject.js +0 -24
- package/node_modules/lodash/zipObjectDeep.js +0 -23
- package/node_modules/lodash/zipWith.js +0 -32
- package/node_modules/lodash.get/LICENSE +0 -47
- package/node_modules/lodash.get/README.md +0 -18
- package/node_modules/lodash.get/index.js +0 -931
- package/node_modules/lodash.get/package.json +0 -21
- package/node_modules/make-dir/index.d.ts +0 -66
- package/node_modules/make-dir/index.js +0 -156
- package/node_modules/make-dir/license +0 -9
- package/node_modules/make-dir/node_modules/semver/CHANGELOG.md +0 -70
- package/node_modules/make-dir/node_modules/semver/LICENSE +0 -15
- package/node_modules/make-dir/node_modules/semver/README.md +0 -443
- package/node_modules/make-dir/node_modules/semver/bin/semver.js +0 -174
- package/node_modules/make-dir/node_modules/semver/package.json +0 -32
- package/node_modules/make-dir/node_modules/semver/range.bnf +0 -16
- package/node_modules/make-dir/node_modules/semver/semver.js +0 -1596
- package/node_modules/make-dir/package.json +0 -63
- package/node_modules/make-dir/readme.md +0 -125
- package/node_modules/maplex/README.md +0 -31
- package/node_modules/maplex/maplex.js +0 -116
- package/node_modules/maplex/package-lock.json.2349981881 +0 -2125
- package/node_modules/maplex/package.json +0 -24
- package/node_modules/maplex/test.js +0 -43
- package/node_modules/mimic-response/index.d.ts +0 -17
- package/node_modules/mimic-response/index.js +0 -38
- package/node_modules/mimic-response/license +0 -9
- package/node_modules/mimic-response/package.json +0 -46
- package/node_modules/mimic-response/readme.md +0 -57
- package/node_modules/minipass/LICENSE +0 -15
- package/node_modules/minipass/README.md +0 -728
- package/node_modules/minipass/index.d.ts +0 -149
- package/node_modules/minipass/index.js +0 -649
- package/node_modules/minipass/package.json +0 -59
- package/node_modules/minizlib/LICENSE +0 -26
- package/node_modules/minizlib/README.md +0 -60
- package/node_modules/minizlib/constants.js +0 -115
- package/node_modules/minizlib/index.js +0 -348
- package/node_modules/minizlib/package.json +0 -46
- package/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/node_modules/mkdirp/LICENSE +0 -21
- package/node_modules/mkdirp/bin/cmd.js +0 -68
- package/node_modules/mkdirp/index.js +0 -31
- package/node_modules/mkdirp/lib/find-made.js +0 -29
- package/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- package/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- package/node_modules/mkdirp/lib/opts-arg.js +0 -23
- package/node_modules/mkdirp/lib/path-arg.js +0 -29
- package/node_modules/mkdirp/lib/use-native.js +0 -10
- package/node_modules/mkdirp/package.json +0 -48
- package/node_modules/mkdirp/readme.markdown +0 -266
- package/node_modules/nan/CHANGELOG.md +0 -545
- package/node_modules/nan/LICENSE.md +0 -9
- package/node_modules/nan/README.md +0 -456
- package/node_modules/nan/doc/asyncworker.md +0 -146
- package/node_modules/nan/doc/buffers.md +0 -54
- package/node_modules/nan/doc/callback.md +0 -76
- package/node_modules/nan/doc/converters.md +0 -41
- package/node_modules/nan/doc/errors.md +0 -226
- package/node_modules/nan/doc/json.md +0 -62
- package/node_modules/nan/doc/maybe_types.md +0 -583
- package/node_modules/nan/doc/methods.md +0 -664
- package/node_modules/nan/doc/new.md +0 -147
- package/node_modules/nan/doc/node_misc.md +0 -123
- package/node_modules/nan/doc/object_wrappers.md +0 -263
- package/node_modules/nan/doc/persistent.md +0 -296
- package/node_modules/nan/doc/scopes.md +0 -73
- package/node_modules/nan/doc/script.md +0 -58
- package/node_modules/nan/doc/string_bytes.md +0 -62
- package/node_modules/nan/doc/v8_internals.md +0 -199
- package/node_modules/nan/doc/v8_misc.md +0 -85
- package/node_modules/nan/include_dirs.js +0 -1
- package/node_modules/nan/nan.h +0 -2909
- package/node_modules/nan/nan_callbacks.h +0 -88
- package/node_modules/nan/nan_callbacks_12_inl.h +0 -514
- package/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
- package/node_modules/nan/nan_converters.h +0 -72
- package/node_modules/nan/nan_converters_43_inl.h +0 -68
- package/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
- package/node_modules/nan/nan_define_own_property_helper.h +0 -29
- package/node_modules/nan/nan_implementation_12_inl.h +0 -430
- package/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
- package/node_modules/nan/nan_json.h +0 -166
- package/node_modules/nan/nan_maybe_43_inl.h +0 -356
- package/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
- package/node_modules/nan/nan_new.h +0 -340
- package/node_modules/nan/nan_object_wrap.h +0 -156
- package/node_modules/nan/nan_persistent_12_inl.h +0 -132
- package/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
- package/node_modules/nan/nan_private.h +0 -73
- package/node_modules/nan/nan_scriptorigin.h +0 -76
- package/node_modules/nan/nan_string_bytes.h +0 -305
- package/node_modules/nan/nan_typedarray_contents.h +0 -96
- package/node_modules/nan/nan_weak.h +0 -437
- package/node_modules/nan/package.json +0 -41
- package/node_modules/nan/tools/1to2.js +0 -412
- package/node_modules/nan/tools/README.md +0 -14
- package/node_modules/nan/tools/package.json +0 -19
- package/node_modules/node-fetch/LICENSE.md +0 -22
- package/node_modules/node-fetch/README.md +0 -590
- package/node_modules/node-fetch/browser.js +0 -25
- package/node_modules/node-fetch/lib/index.es.js +0 -1688
- package/node_modules/node-fetch/lib/index.js +0 -1697
- package/node_modules/node-fetch/lib/index.mjs +0 -1686
- package/node_modules/node-fetch/package.json +0 -80
- package/node_modules/nopt/CHANGELOG.md +0 -58
- package/node_modules/nopt/LICENSE +0 -15
- package/node_modules/nopt/README.md +0 -213
- package/node_modules/nopt/bin/nopt.js +0 -54
- package/node_modules/nopt/lib/nopt.js +0 -441
- package/node_modules/nopt/package.json +0 -38
- package/node_modules/npmlog/LICENSE +0 -15
- package/node_modules/npmlog/README.md +0 -216
- package/node_modules/npmlog/log.js +0 -403
- package/node_modules/npmlog/package.json +0 -37
- package/node_modules/object-assign/index.js +0 -90
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/package.json +0 -46
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/parse-listing/..gitignore.un~ +0 -0
- package/node_modules/parse-listing/..travis.yml.un~ +0 -0
- package/node_modules/parse-listing/.Makefile.un~ +0 -0
- package/node_modules/parse-listing/.README.md.un~ +0 -0
- package/node_modules/parse-listing/.npmignore +0 -4
- package/node_modules/parse-listing/.package.json.un~ +0 -0
- package/node_modules/parse-listing/.parser.js.un~ +0 -0
- package/node_modules/parse-listing/.parset_test.js.un~ +0 -0
- package/node_modules/parse-listing/.travis.yml +0 -7
- package/node_modules/parse-listing/Makefile +0 -30
- package/node_modules/parse-listing/README.md +0 -115
- package/node_modules/parse-listing/_site/Makefile +0 -30
- package/node_modules/parse-listing/_site/README.md +0 -115
- package/node_modules/parse-listing/_site/package.json +0 -41
- package/node_modules/parse-listing/_site/src/ftp-parser.js +0 -456
- package/node_modules/parse-listing/_site/src/parser.js +0 -338
- package/node_modules/parse-listing/_site/test/parser.test.js +0 -707
- package/node_modules/parse-listing/package.json +0 -45
- package/node_modules/parse-listing/src/.parser.js.un~ +0 -0
- package/node_modules/parse-listing/src/ftp-parser.js +0 -456
- package/node_modules/parse-listing/src/parser.js +0 -339
- package/node_modules/parse-listing/test/.parser.test.js.un~ +0 -0
- package/node_modules/parse-listing/test/.parser_test.js.un~ +0 -0
- package/node_modules/parse-listing/test/parser.test.js +0 -714
- package/node_modules/rimraf/CHANGELOG.md +0 -65
- package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/rimraf/README.md +0 -101
- package/node_modules/rimraf/bin.js +0 -68
- package/node_modules/rimraf/package.json +0 -36
- package/node_modules/rimraf/rimraf.js +0 -360
- package/node_modules/rw/.eslintrc +0 -5
- package/node_modules/rw/.npmignore +0 -3
- package/node_modules/rw/LICENSE +0 -26
- package/node_modules/rw/README.md +0 -120
- package/node_modules/rw/index.js +0 -5
- package/node_modules/rw/lib/rw/dash.js +0 -14
- package/node_modules/rw/lib/rw/decode.js +0 -23
- package/node_modules/rw/lib/rw/encode.js +0 -7
- package/node_modules/rw/lib/rw/read-file-sync.js +0 -29
- package/node_modules/rw/lib/rw/read-file.js +0 -23
- package/node_modules/rw/lib/rw/write-file-sync.js +0 -32
- package/node_modules/rw/lib/rw/write-file.js +0 -22
- package/node_modules/rw/package.json +0 -36
- package/node_modules/rw/test/cat-async +0 -10
- package/node_modules/rw/test/cat-sync +0 -5
- package/node_modules/rw/test/encode-object-async +0 -7
- package/node_modules/rw/test/encode-object-sync +0 -5
- package/node_modules/rw/test/encode-string-async +0 -7
- package/node_modules/rw/test/encode-string-sync +0 -5
- package/node_modules/rw/test/encoding-async +0 -42
- package/node_modules/rw/test/encoding-sync +0 -20
- package/node_modules/rw/test/run-tests +0 -53
- package/node_modules/rw/test/utf8.txt +0 -1
- package/node_modules/rw/test/wc-async +0 -8
- package/node_modules/rw/test/wc-sync +0 -5
- package/node_modules/rw/test/write-async +0 -7
- package/node_modules/rw/test/write-sync +0 -5
- package/node_modules/safer-buffer/LICENSE +0 -21
- package/node_modules/safer-buffer/Porting-Buffer.md +0 -268
- package/node_modules/safer-buffer/Readme.md +0 -156
- package/node_modules/safer-buffer/dangerous.js +0 -58
- package/node_modules/safer-buffer/package.json +0 -38
- package/node_modules/safer-buffer/safer.js +0 -77
- package/node_modules/safer-buffer/tests.js +0 -406
- package/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/node_modules/set-blocking/LICENSE.txt +0 -14
- package/node_modules/set-blocking/README.md +0 -31
- package/node_modules/set-blocking/index.js +0 -7
- package/node_modules/set-blocking/package.json +0 -46
- package/node_modules/sift/MIT-LICENSE.txt +0 -20
- package/node_modules/sift/README.md +0 -465
- package/node_modules/sift/es/index.js +0 -626
- package/node_modules/sift/es/index.js.map +0 -1
- package/node_modules/sift/es5m/index.js +0 -729
- package/node_modules/sift/es5m/index.js.map +0 -1
- package/node_modules/sift/index.d.ts +0 -4
- package/node_modules/sift/index.js +0 -4
- package/node_modules/sift/lib/core.d.ts +0 -119
- package/node_modules/sift/lib/index.d.ts +0 -6
- package/node_modules/sift/lib/index.js +0 -766
- package/node_modules/sift/lib/index.js.map +0 -1
- package/node_modules/sift/lib/operations.d.ts +0 -88
- package/node_modules/sift/lib/utils.d.ts +0 -9
- package/node_modules/sift/package.json +0 -66
- package/node_modules/sift/sift.csp.min.js +0 -763
- package/node_modules/sift/sift.csp.min.js.map +0 -1
- package/node_modules/sift/sift.min.js +0 -16
- package/node_modules/sift/sift.min.js.map +0 -1
- package/node_modules/sift/src/core.d.ts +0 -123
- package/node_modules/sift/src/core.js +0 -270
- package/node_modules/sift/src/core.js.map +0 -1
- package/node_modules/sift/src/core.ts +0 -479
- package/node_modules/sift/src/index.d.ts +0 -6
- package/node_modules/sift/src/index.js +0 -35
- package/node_modules/sift/src/index.js.map +0 -1
- package/node_modules/sift/src/index.ts +0 -42
- package/node_modules/sift/src/operations.d.ts +0 -85
- package/node_modules/sift/src/operations.js +0 -276
- package/node_modules/sift/src/operations.js.map +0 -1
- package/node_modules/sift/src/operations.ts +0 -411
- package/node_modules/sift/src/utils.d.ts +0 -9
- package/node_modules/sift/src/utils.js +0 -70
- package/node_modules/sift/src/utils.js.map +0 -1
- package/node_modules/sift/src/utils.ts +0 -68
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -39
- package/node_modules/signal-exit/index.js +0 -202
- package/node_modules/signal-exit/package.json +0 -42
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/simple-concat/.travis.yml +0 -3
- package/node_modules/simple-concat/LICENSE +0 -20
- package/node_modules/simple-concat/README.md +0 -44
- package/node_modules/simple-concat/index.js +0 -15
- package/node_modules/simple-concat/package.json +0 -51
- package/node_modules/simple-concat/test/basic.js +0 -41
- package/node_modules/simple-get/LICENSE +0 -20
- package/node_modules/simple-get/README.md +0 -319
- package/node_modules/simple-get/index.js +0 -107
- package/node_modules/simple-get/package.json +0 -57
- package/node_modules/simple-swizzle/LICENSE +0 -21
- package/node_modules/simple-swizzle/README.md +0 -39
- package/node_modules/simple-swizzle/index.js +0 -29
- package/node_modules/simple-swizzle/node_modules/is-arrayish/LICENSE +0 -21
- package/node_modules/simple-swizzle/node_modules/is-arrayish/README.md +0 -16
- package/node_modules/simple-swizzle/node_modules/is-arrayish/index.js +0 -9
- package/node_modules/simple-swizzle/node_modules/is-arrayish/package.json +0 -49
- package/node_modules/simple-swizzle/node_modules/is-arrayish/yarn-error.log +0 -1443
- package/node_modules/simple-swizzle/package.json +0 -40
- package/node_modules/strangler/.travis.yml +0 -21
- package/node_modules/strangler/README.md +0 -191
- package/node_modules/strangler/package-lock.json.2408204802 +0 -289
- package/node_modules/strangler/package.json +0 -41
- package/node_modules/strangler/strangler.js +0 -272
- package/node_modules/strangler/test-utils.js +0 -52
- package/node_modules/strangler/test.js +0 -186
- package/node_modules/stream-combiner/.npmignore +0 -3
- package/node_modules/stream-combiner/.travis.yml +0 -4
- package/node_modules/stream-combiner/LICENSE +0 -22
- package/node_modules/stream-combiner/README.md +0 -55
- package/node_modules/stream-combiner/index.js +0 -45
- package/node_modules/stream-combiner/package.json +0 -26
- package/node_modules/stream-combiner/test/index.js +0 -65
- package/node_modules/string-tools/.npmignore +0 -2
- package/node_modules/string-tools/.travis.yml +0 -5
- package/node_modules/string-tools/LICENSE +0 -21
- package/node_modules/string-tools/README.md +0 -101
- package/node_modules/string-tools/jsdoc2md/README.hbs +0 -10
- package/node_modules/string-tools/lib/string-tools.js +0 -119
- package/node_modules/string-tools/package.json +0 -28
- package/node_modules/string-tools/test/test.js +0 -38
- package/node_modules/tar/LICENSE +0 -15
- package/node_modules/tar/README.md +0 -1042
- package/node_modules/tar/index.js +0 -18
- package/node_modules/tar/lib/create.js +0 -104
- package/node_modules/tar/lib/extract.js +0 -107
- package/node_modules/tar/lib/get-write-flag.js +0 -20
- package/node_modules/tar/lib/header.js +0 -288
- package/node_modules/tar/lib/high-level-opt.js +0 -29
- package/node_modules/tar/lib/large-numbers.js +0 -99
- package/node_modules/tar/lib/list.js +0 -132
- package/node_modules/tar/lib/mkdir.js +0 -213
- package/node_modules/tar/lib/mode-fix.js +0 -23
- package/node_modules/tar/lib/normalize-unicode.js +0 -11
- package/node_modules/tar/lib/normalize-windows-path.js +0 -8
- package/node_modules/tar/lib/pack.js +0 -397
- package/node_modules/tar/lib/parse.js +0 -481
- package/node_modules/tar/lib/path-reservations.js +0 -148
- package/node_modules/tar/lib/pax.js +0 -143
- package/node_modules/tar/lib/read-entry.js +0 -100
- package/node_modules/tar/lib/replace.js +0 -223
- package/node_modules/tar/lib/strip-absolute-path.js +0 -24
- package/node_modules/tar/lib/strip-trailing-slashes.js +0 -13
- package/node_modules/tar/lib/types.js +0 -44
- package/node_modules/tar/lib/unpack.js +0 -877
- package/node_modules/tar/lib/update.js +0 -36
- package/node_modules/tar/lib/warn-mixin.js +0 -21
- package/node_modules/tar/lib/winchars.js +0 -23
- package/node_modules/tar/lib/write-entry.js +0 -525
- package/node_modules/tar/package.json +0 -63
- package/node_modules/through/.travis.yml +0 -5
- package/node_modules/through/LICENSE.APACHE2 +0 -15
- package/node_modules/through/LICENSE.MIT +0 -24
- package/node_modules/through/index.js +0 -108
- package/node_modules/through/package.json +0 -40
- package/node_modules/through/readme.markdown +0 -64
- package/node_modules/through/test/async.js +0 -28
- package/node_modules/through/test/auto-destroy.js +0 -30
- package/node_modules/through/test/buffering.js +0 -71
- package/node_modules/through/test/end.js +0 -45
- package/node_modules/through/test/index.js +0 -133
- package/node_modules/tr46/.npmignore +0 -4
- package/node_modules/tr46/index.js +0 -193
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +0 -1
- package/node_modules/tr46/package.json +0 -35
- package/node_modules/unorm/LICENSE.md +0 -42
- package/node_modules/unorm/README.md +0 -118
- package/node_modules/unorm/lib/unorm.js +0 -452
- package/node_modules/unorm/package.json +0 -35
- package/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/node_modules/webidl-conversions/README.md +0 -53
- package/node_modules/webidl-conversions/lib/index.js +0 -189
- package/node_modules/webidl-conversions/package.json +0 -27
- package/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/node_modules/whatwg-url/README.md +0 -67
- package/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/node_modules/whatwg-url/lib/URL.js +0 -196
- package/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/node_modules/whatwg-url/lib/utils.js +0 -20
- package/node_modules/whatwg-url/package.json +0 -36
- package/node_modules/wide-align/LICENSE +0 -14
- package/node_modules/wide-align/README.md +0 -47
- package/node_modules/wide-align/align.js +0 -65
- package/node_modules/wide-align/package.json +0 -37
- package/node_modules/wolfy87-eventemitter/CHANGES.md +0 -47
- package/node_modules/wolfy87-eventemitter/EventEmitter.d.ts +0 -507
- package/node_modules/wolfy87-eventemitter/EventEmitter.js +0 -486
- package/node_modules/wolfy87-eventemitter/EventEmitter.min.js +0 -7
- package/node_modules/wolfy87-eventemitter/README.md +0 -80
- package/node_modules/wolfy87-eventemitter/UNLICENSE +0 -24
- package/node_modules/wolfy87-eventemitter/bower.json +0 -22
- package/node_modules/wolfy87-eventemitter/component.json +0 -10
- package/node_modules/wolfy87-eventemitter/docs/api.dust +0 -17
- package/node_modules/wolfy87-eventemitter/docs/api.md +0 -157
- package/node_modules/wolfy87-eventemitter/docs/guide.md +0 -301
- package/node_modules/wolfy87-eventemitter/docs/render.js +0 -48
- package/node_modules/wolfy87-eventemitter/package.json +0 -43
- package/node_modules/wolfy87-eventemitter/tests/index.html +0 -16
- package/node_modules/wolfy87-eventemitter/tests/tests.js +0 -845
- package/node_modules/wolfy87-eventemitter/tools/dist.sh +0 -6
- package/node_modules/wolfy87-eventemitter/tools/doc.sh +0 -4
- package/node_modules/wolfy87-eventemitter/tools/server-python2.sh +0 -2
- package/node_modules/wolfy87-eventemitter/tools/server.sh +0 -2
- package/t.log +0 -0
package/node_modules/nan/nan.h
DELETED
@@ -1,2909 +0,0 @@
|
|
1
|
-
/*********************************************************************
|
2
|
-
* NAN - Native Abstractions for Node.js
|
3
|
-
*
|
4
|
-
* Copyright (c) 2018 NAN contributors:
|
5
|
-
* - Rod Vagg <https://github.com/rvagg>
|
6
|
-
* - Benjamin Byholm <https://github.com/kkoopa>
|
7
|
-
* - Trevor Norris <https://github.com/trevnorris>
|
8
|
-
* - Nathan Rajlich <https://github.com/TooTallNate>
|
9
|
-
* - Brett Lawson <https://github.com/brett19>
|
10
|
-
* - Ben Noordhuis <https://github.com/bnoordhuis>
|
11
|
-
* - David Siegel <https://github.com/agnat>
|
12
|
-
* - Michael Ira Krufky <https://github.com/mkrufky>
|
13
|
-
*
|
14
|
-
* MIT License <https://github.com/nodejs/nan/blob/master/LICENSE.md>
|
15
|
-
*
|
16
|
-
* Version 2.16.0: current Node 18.2.0, Node 0.12: 0.12.18, Node 0.10: 0.10.48, iojs: 3.3.1
|
17
|
-
*
|
18
|
-
* See https://github.com/nodejs/nan for the latest update to this file
|
19
|
-
**********************************************************************************/
|
20
|
-
|
21
|
-
#ifndef NAN_H_
|
22
|
-
#define NAN_H_
|
23
|
-
|
24
|
-
#include <node_version.h>
|
25
|
-
|
26
|
-
#define NODE_0_10_MODULE_VERSION 11
|
27
|
-
#define NODE_0_12_MODULE_VERSION 14
|
28
|
-
#define ATOM_0_21_MODULE_VERSION 41
|
29
|
-
#define IOJS_1_0_MODULE_VERSION 42
|
30
|
-
#define IOJS_1_1_MODULE_VERSION 43
|
31
|
-
#define IOJS_2_0_MODULE_VERSION 44
|
32
|
-
#define IOJS_3_0_MODULE_VERSION 45
|
33
|
-
#define NODE_4_0_MODULE_VERSION 46
|
34
|
-
#define NODE_5_0_MODULE_VERSION 47
|
35
|
-
#define NODE_6_0_MODULE_VERSION 48
|
36
|
-
#define NODE_7_0_MODULE_VERSION 51
|
37
|
-
#define NODE_8_0_MODULE_VERSION 57
|
38
|
-
#define NODE_9_0_MODULE_VERSION 59
|
39
|
-
#define NODE_10_0_MODULE_VERSION 64
|
40
|
-
#define NODE_11_0_MODULE_VERSION 67
|
41
|
-
#define NODE_12_0_MODULE_VERSION 72
|
42
|
-
#define NODE_13_0_MODULE_VERSION 79
|
43
|
-
#define NODE_14_0_MODULE_VERSION 83
|
44
|
-
#define NODE_15_0_MODULE_VERSION 88
|
45
|
-
#define NODE_16_0_MODULE_VERSION 93
|
46
|
-
#define NODE_17_0_MODULE_VERSION 102
|
47
|
-
#define NODE_18_0_MODULE_VERSION 108
|
48
|
-
|
49
|
-
#ifdef _MSC_VER
|
50
|
-
# define NAN_HAS_CPLUSPLUS_11 (_MSC_VER >= 1800)
|
51
|
-
#else
|
52
|
-
# define NAN_HAS_CPLUSPLUS_11 (__cplusplus >= 201103L)
|
53
|
-
#endif
|
54
|
-
|
55
|
-
#if NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION && !NAN_HAS_CPLUSPLUS_11
|
56
|
-
# error This version of node/NAN/v8 requires a C++11 compiler
|
57
|
-
#endif
|
58
|
-
|
59
|
-
#include <uv.h>
|
60
|
-
#include <node.h>
|
61
|
-
#include <node_buffer.h>
|
62
|
-
#include <node_object_wrap.h>
|
63
|
-
#include <algorithm>
|
64
|
-
#include <cstring>
|
65
|
-
#include <climits>
|
66
|
-
#include <cstdlib>
|
67
|
-
#include <utility>
|
68
|
-
#if defined(_MSC_VER)
|
69
|
-
# pragma warning( push )
|
70
|
-
# pragma warning( disable : 4530 )
|
71
|
-
# include <queue>
|
72
|
-
# include <string>
|
73
|
-
# include <vector>
|
74
|
-
# pragma warning( pop )
|
75
|
-
#else
|
76
|
-
# include <queue>
|
77
|
-
# include <string>
|
78
|
-
# include <vector>
|
79
|
-
#endif
|
80
|
-
|
81
|
-
// uv helpers
|
82
|
-
#ifdef UV_VERSION_MAJOR
|
83
|
-
# ifndef UV_VERSION_PATCH
|
84
|
-
# define UV_VERSION_PATCH 0
|
85
|
-
# endif
|
86
|
-
# define NAUV_UVVERSION ((UV_VERSION_MAJOR << 16) | \
|
87
|
-
(UV_VERSION_MINOR << 8) | \
|
88
|
-
(UV_VERSION_PATCH))
|
89
|
-
#else
|
90
|
-
# define NAUV_UVVERSION 0x000b00
|
91
|
-
#endif
|
92
|
-
|
93
|
-
#if NAUV_UVVERSION < 0x000b0b
|
94
|
-
# ifdef WIN32
|
95
|
-
# include <windows.h>
|
96
|
-
# else
|
97
|
-
# include <pthread.h>
|
98
|
-
# endif
|
99
|
-
#endif
|
100
|
-
|
101
|
-
namespace Nan {
|
102
|
-
|
103
|
-
#define NAN_CONCAT(a, b) NAN_CONCAT_HELPER(a, b)
|
104
|
-
#define NAN_CONCAT_HELPER(a, b) a##b
|
105
|
-
|
106
|
-
#define NAN_INLINE inline // TODO(bnoordhuis) Remove in v3.0.0.
|
107
|
-
|
108
|
-
#if defined(__GNUC__) && \
|
109
|
-
!(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
|
110
|
-
# define NAN_DEPRECATED __attribute__((deprecated))
|
111
|
-
#elif defined(_MSC_VER) && \
|
112
|
-
!(defined(V8_DISABLE_DEPRECATIONS) && V8_DISABLE_DEPRECATIONS)
|
113
|
-
# define NAN_DEPRECATED __declspec(deprecated)
|
114
|
-
#else
|
115
|
-
# define NAN_DEPRECATED
|
116
|
-
#endif
|
117
|
-
|
118
|
-
#if NAN_HAS_CPLUSPLUS_11
|
119
|
-
# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&) = delete;
|
120
|
-
# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&) = delete;
|
121
|
-
# define NAN_DISALLOW_MOVE(CLASS) \
|
122
|
-
CLASS(CLASS&&) = delete; /* NOLINT(build/c++11) */ \
|
123
|
-
void operator=(CLASS&&) = delete;
|
124
|
-
#else
|
125
|
-
# define NAN_DISALLOW_ASSIGN(CLASS) void operator=(const CLASS&);
|
126
|
-
# define NAN_DISALLOW_COPY(CLASS) CLASS(const CLASS&);
|
127
|
-
# define NAN_DISALLOW_MOVE(CLASS)
|
128
|
-
#endif
|
129
|
-
|
130
|
-
#define NAN_DISALLOW_ASSIGN_COPY(CLASS) \
|
131
|
-
NAN_DISALLOW_ASSIGN(CLASS) \
|
132
|
-
NAN_DISALLOW_COPY(CLASS)
|
133
|
-
|
134
|
-
#define NAN_DISALLOW_ASSIGN_MOVE(CLASS) \
|
135
|
-
NAN_DISALLOW_ASSIGN(CLASS) \
|
136
|
-
NAN_DISALLOW_MOVE(CLASS)
|
137
|
-
|
138
|
-
#define NAN_DISALLOW_COPY_MOVE(CLASS) \
|
139
|
-
NAN_DISALLOW_COPY(CLASS) \
|
140
|
-
NAN_DISALLOW_MOVE(CLASS)
|
141
|
-
|
142
|
-
#define NAN_DISALLOW_ASSIGN_COPY_MOVE(CLASS) \
|
143
|
-
NAN_DISALLOW_ASSIGN(CLASS) \
|
144
|
-
NAN_DISALLOW_COPY(CLASS) \
|
145
|
-
NAN_DISALLOW_MOVE(CLASS)
|
146
|
-
|
147
|
-
#define TYPE_CHECK(T, S) \
|
148
|
-
while (false) { \
|
149
|
-
*(static_cast<T *volatile *>(0)) = static_cast<S*>(0); \
|
150
|
-
}
|
151
|
-
|
152
|
-
//=== RegistrationFunction =====================================================
|
153
|
-
|
154
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
155
|
-
typedef v8::Handle<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
|
156
|
-
#else
|
157
|
-
typedef v8::Local<v8::Object> ADDON_REGISTER_FUNCTION_ARGS_TYPE;
|
158
|
-
#endif
|
159
|
-
|
160
|
-
#define NAN_MODULE_INIT(name) \
|
161
|
-
void name(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target)
|
162
|
-
|
163
|
-
#if NODE_MAJOR_VERSION >= 10 || \
|
164
|
-
NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3
|
165
|
-
#define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
|
166
|
-
extern "C" NODE_MODULE_EXPORT void \
|
167
|
-
NAN_CONCAT(node_register_module_v, NODE_MODULE_VERSION)( \
|
168
|
-
v8::Local<v8::Object> exports, v8::Local<v8::Value> module, \
|
169
|
-
v8::Local<v8::Context> context) \
|
170
|
-
{ \
|
171
|
-
registration(exports); \
|
172
|
-
}
|
173
|
-
#else
|
174
|
-
#define NAN_MODULE_WORKER_ENABLED(module_name, registration) \
|
175
|
-
NODE_MODULE(module_name, registration)
|
176
|
-
#endif
|
177
|
-
|
178
|
-
//=== CallbackInfo =============================================================
|
179
|
-
|
180
|
-
#include "nan_callbacks.h" // NOLINT(build/include)
|
181
|
-
|
182
|
-
//==============================================================================
|
183
|
-
|
184
|
-
#if (NODE_MODULE_VERSION < NODE_0_12_MODULE_VERSION)
|
185
|
-
typedef v8::Script UnboundScript;
|
186
|
-
typedef v8::Script BoundScript;
|
187
|
-
#else
|
188
|
-
typedef v8::UnboundScript UnboundScript;
|
189
|
-
typedef v8::Script BoundScript;
|
190
|
-
#endif
|
191
|
-
|
192
|
-
#if (NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION)
|
193
|
-
typedef v8::String::ExternalAsciiStringResource
|
194
|
-
ExternalOneByteStringResource;
|
195
|
-
#else
|
196
|
-
typedef v8::String::ExternalOneByteStringResource
|
197
|
-
ExternalOneByteStringResource;
|
198
|
-
#endif
|
199
|
-
|
200
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
201
|
-
template<typename T>
|
202
|
-
class NonCopyablePersistentTraits :
|
203
|
-
public v8::NonCopyablePersistentTraits<T> {};
|
204
|
-
template<typename T>
|
205
|
-
class CopyablePersistentTraits :
|
206
|
-
public v8::CopyablePersistentTraits<T> {};
|
207
|
-
|
208
|
-
template<typename T>
|
209
|
-
class PersistentBase :
|
210
|
-
public v8::PersistentBase<T> {};
|
211
|
-
|
212
|
-
template<typename T, typename M = v8::NonCopyablePersistentTraits<T> >
|
213
|
-
class Persistent;
|
214
|
-
#else
|
215
|
-
template<typename T> class NonCopyablePersistentTraits;
|
216
|
-
template<typename T> class PersistentBase;
|
217
|
-
template<typename T, typename P> class WeakCallbackData;
|
218
|
-
template<typename T, typename M = NonCopyablePersistentTraits<T> >
|
219
|
-
class Persistent;
|
220
|
-
#endif // NODE_MODULE_VERSION
|
221
|
-
|
222
|
-
template<typename T>
|
223
|
-
class Maybe {
|
224
|
-
public:
|
225
|
-
inline bool IsNothing() const { return !has_value_; }
|
226
|
-
inline bool IsJust() const { return has_value_; }
|
227
|
-
|
228
|
-
inline T ToChecked() const { return FromJust(); }
|
229
|
-
inline void Check() const { FromJust(); }
|
230
|
-
|
231
|
-
inline bool To(T* out) const {
|
232
|
-
if (IsJust()) *out = value_;
|
233
|
-
return IsJust();
|
234
|
-
}
|
235
|
-
|
236
|
-
inline T FromJust() const {
|
237
|
-
#if defined(V8_ENABLE_CHECKS)
|
238
|
-
assert(IsJust() && "FromJust is Nothing");
|
239
|
-
#endif // V8_ENABLE_CHECKS
|
240
|
-
return value_;
|
241
|
-
}
|
242
|
-
|
243
|
-
inline T FromMaybe(const T& default_value) const {
|
244
|
-
return has_value_ ? value_ : default_value;
|
245
|
-
}
|
246
|
-
|
247
|
-
inline bool operator==(const Maybe &other) const {
|
248
|
-
return (IsJust() == other.IsJust()) &&
|
249
|
-
(!IsJust() || FromJust() == other.FromJust());
|
250
|
-
}
|
251
|
-
|
252
|
-
inline bool operator!=(const Maybe &other) const {
|
253
|
-
return !operator==(other);
|
254
|
-
}
|
255
|
-
|
256
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
257
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
258
|
-
// Allow implicit conversions from v8::Maybe<T> to Nan::Maybe<T>.
|
259
|
-
Maybe(const v8::Maybe<T>& that) // NOLINT(runtime/explicit)
|
260
|
-
: has_value_(that.IsJust())
|
261
|
-
, value_(that.FromMaybe(T())) {}
|
262
|
-
#endif
|
263
|
-
|
264
|
-
private:
|
265
|
-
Maybe() : has_value_(false) {}
|
266
|
-
explicit Maybe(const T& t) : has_value_(true), value_(t) {}
|
267
|
-
bool has_value_;
|
268
|
-
T value_;
|
269
|
-
|
270
|
-
template<typename U>
|
271
|
-
friend Maybe<U> Nothing();
|
272
|
-
template<typename U>
|
273
|
-
friend Maybe<U> Just(const U& u);
|
274
|
-
};
|
275
|
-
|
276
|
-
template<typename T>
|
277
|
-
inline Maybe<T> Nothing() {
|
278
|
-
return Maybe<T>();
|
279
|
-
}
|
280
|
-
|
281
|
-
template<typename T>
|
282
|
-
inline Maybe<T> Just(const T& t) {
|
283
|
-
return Maybe<T>(t);
|
284
|
-
}
|
285
|
-
|
286
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
287
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
288
|
-
# include "nan_maybe_43_inl.h" // NOLINT(build/include)
|
289
|
-
#else
|
290
|
-
# include "nan_maybe_pre_43_inl.h" // NOLINT(build/include)
|
291
|
-
#endif
|
292
|
-
|
293
|
-
#include "nan_converters.h" // NOLINT(build/include)
|
294
|
-
#include "nan_new.h" // NOLINT(build/include)
|
295
|
-
|
296
|
-
#if NAUV_UVVERSION < 0x000b17
|
297
|
-
#define NAUV_WORK_CB(func) \
|
298
|
-
void func(uv_async_t *async, int)
|
299
|
-
#else
|
300
|
-
#define NAUV_WORK_CB(func) \
|
301
|
-
void func(uv_async_t *async)
|
302
|
-
#endif
|
303
|
-
|
304
|
-
#if NAUV_UVVERSION >= 0x000b0b
|
305
|
-
|
306
|
-
typedef uv_key_t nauv_key_t;
|
307
|
-
|
308
|
-
inline int nauv_key_create(nauv_key_t *key) {
|
309
|
-
return uv_key_create(key);
|
310
|
-
}
|
311
|
-
|
312
|
-
inline void nauv_key_delete(nauv_key_t *key) {
|
313
|
-
uv_key_delete(key);
|
314
|
-
}
|
315
|
-
|
316
|
-
inline void* nauv_key_get(nauv_key_t *key) {
|
317
|
-
return uv_key_get(key);
|
318
|
-
}
|
319
|
-
|
320
|
-
inline void nauv_key_set(nauv_key_t *key, void *value) {
|
321
|
-
uv_key_set(key, value);
|
322
|
-
}
|
323
|
-
|
324
|
-
#else
|
325
|
-
|
326
|
-
/* Implement thread local storage for older versions of libuv.
|
327
|
-
* This is essentially a backport of libuv commit 5d2434bf
|
328
|
-
* written by Ben Noordhuis, adjusted for names and inline.
|
329
|
-
*/
|
330
|
-
|
331
|
-
#ifndef WIN32
|
332
|
-
|
333
|
-
typedef pthread_key_t nauv_key_t;
|
334
|
-
|
335
|
-
inline int nauv_key_create(nauv_key_t* key) {
|
336
|
-
return -pthread_key_create(key, NULL);
|
337
|
-
}
|
338
|
-
|
339
|
-
inline void nauv_key_delete(nauv_key_t* key) {
|
340
|
-
if (pthread_key_delete(*key))
|
341
|
-
abort();
|
342
|
-
}
|
343
|
-
|
344
|
-
inline void* nauv_key_get(nauv_key_t* key) {
|
345
|
-
return pthread_getspecific(*key);
|
346
|
-
}
|
347
|
-
|
348
|
-
inline void nauv_key_set(nauv_key_t* key, void* value) {
|
349
|
-
if (pthread_setspecific(*key, value))
|
350
|
-
abort();
|
351
|
-
}
|
352
|
-
|
353
|
-
#else
|
354
|
-
|
355
|
-
typedef struct {
|
356
|
-
DWORD tls_index;
|
357
|
-
} nauv_key_t;
|
358
|
-
|
359
|
-
inline int nauv_key_create(nauv_key_t* key) {
|
360
|
-
key->tls_index = TlsAlloc();
|
361
|
-
if (key->tls_index == TLS_OUT_OF_INDEXES)
|
362
|
-
return UV_ENOMEM;
|
363
|
-
return 0;
|
364
|
-
}
|
365
|
-
|
366
|
-
inline void nauv_key_delete(nauv_key_t* key) {
|
367
|
-
if (TlsFree(key->tls_index) == FALSE)
|
368
|
-
abort();
|
369
|
-
key->tls_index = TLS_OUT_OF_INDEXES;
|
370
|
-
}
|
371
|
-
|
372
|
-
inline void* nauv_key_get(nauv_key_t* key) {
|
373
|
-
void* value = TlsGetValue(key->tls_index);
|
374
|
-
if (value == NULL)
|
375
|
-
if (GetLastError() != ERROR_SUCCESS)
|
376
|
-
abort();
|
377
|
-
return value;
|
378
|
-
}
|
379
|
-
|
380
|
-
inline void nauv_key_set(nauv_key_t* key, void* value) {
|
381
|
-
if (TlsSetValue(key->tls_index, value) == FALSE)
|
382
|
-
abort();
|
383
|
-
}
|
384
|
-
|
385
|
-
#endif
|
386
|
-
#endif
|
387
|
-
|
388
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
389
|
-
template<typename T>
|
390
|
-
v8::Local<T> New(v8::Handle<T>);
|
391
|
-
#endif
|
392
|
-
|
393
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
394
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
395
|
-
typedef v8::WeakCallbackType WeakCallbackType;
|
396
|
-
#else
|
397
|
-
struct WeakCallbackType {
|
398
|
-
enum E {kParameter, kInternalFields};
|
399
|
-
E type;
|
400
|
-
WeakCallbackType(E other) : type(other) {} // NOLINT(runtime/explicit)
|
401
|
-
inline bool operator==(E other) { return other == this->type; }
|
402
|
-
inline bool operator!=(E other) { return !operator==(other); }
|
403
|
-
};
|
404
|
-
#endif
|
405
|
-
|
406
|
-
template<typename P> class WeakCallbackInfo;
|
407
|
-
|
408
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
409
|
-
# include "nan_persistent_12_inl.h" // NOLINT(build/include)
|
410
|
-
#else
|
411
|
-
# include "nan_persistent_pre_12_inl.h" // NOLINT(build/include)
|
412
|
-
#endif
|
413
|
-
|
414
|
-
namespace imp {
|
415
|
-
static const size_t kMaxLength = 0x3fffffff;
|
416
|
-
// v8::String::REPLACE_INVALID_UTF8 was introduced
|
417
|
-
// in node.js v0.10.29 and v0.8.27.
|
418
|
-
#if NODE_MAJOR_VERSION > 0 || \
|
419
|
-
NODE_MINOR_VERSION > 10 || \
|
420
|
-
NODE_MINOR_VERSION == 10 && NODE_PATCH_VERSION >= 29 || \
|
421
|
-
NODE_MINOR_VERSION == 8 && NODE_PATCH_VERSION >= 27
|
422
|
-
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
|
423
|
-
#else
|
424
|
-
static const unsigned kReplaceInvalidUtf8 = 0;
|
425
|
-
#endif
|
426
|
-
} // end of namespace imp
|
427
|
-
|
428
|
-
//=== HandleScope ==============================================================
|
429
|
-
|
430
|
-
class HandleScope {
|
431
|
-
v8::HandleScope scope;
|
432
|
-
|
433
|
-
public:
|
434
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
435
|
-
inline HandleScope() : scope(v8::Isolate::GetCurrent()) {}
|
436
|
-
inline static int NumberOfHandles() {
|
437
|
-
return v8::HandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
|
438
|
-
}
|
439
|
-
#else
|
440
|
-
inline HandleScope() : scope() {}
|
441
|
-
inline static int NumberOfHandles() {
|
442
|
-
return v8::HandleScope::NumberOfHandles();
|
443
|
-
}
|
444
|
-
#endif
|
445
|
-
|
446
|
-
private:
|
447
|
-
// Make it hard to create heap-allocated or illegal handle scopes by
|
448
|
-
// disallowing certain operations.
|
449
|
-
HandleScope(const HandleScope &);
|
450
|
-
void operator=(const HandleScope &);
|
451
|
-
void *operator new(size_t size);
|
452
|
-
void operator delete(void *, size_t) {
|
453
|
-
abort();
|
454
|
-
}
|
455
|
-
};
|
456
|
-
|
457
|
-
class EscapableHandleScope {
|
458
|
-
public:
|
459
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
460
|
-
inline EscapableHandleScope() : scope(v8::Isolate::GetCurrent()) {}
|
461
|
-
|
462
|
-
inline static int NumberOfHandles() {
|
463
|
-
return v8::EscapableHandleScope::NumberOfHandles(v8::Isolate::GetCurrent());
|
464
|
-
}
|
465
|
-
|
466
|
-
template<typename T>
|
467
|
-
inline v8::Local<T> Escape(v8::Local<T> value) {
|
468
|
-
return scope.Escape(value);
|
469
|
-
}
|
470
|
-
|
471
|
-
private:
|
472
|
-
v8::EscapableHandleScope scope;
|
473
|
-
#else
|
474
|
-
inline EscapableHandleScope() : scope() {}
|
475
|
-
|
476
|
-
inline static int NumberOfHandles() {
|
477
|
-
return v8::HandleScope::NumberOfHandles();
|
478
|
-
}
|
479
|
-
|
480
|
-
template<typename T>
|
481
|
-
inline v8::Local<T> Escape(v8::Local<T> value) {
|
482
|
-
return scope.Close(value);
|
483
|
-
}
|
484
|
-
|
485
|
-
private:
|
486
|
-
v8::HandleScope scope;
|
487
|
-
#endif
|
488
|
-
|
489
|
-
private:
|
490
|
-
// Make it hard to create heap-allocated or illegal handle scopes by
|
491
|
-
// disallowing certain operations.
|
492
|
-
EscapableHandleScope(const EscapableHandleScope &);
|
493
|
-
void operator=(const EscapableHandleScope &);
|
494
|
-
void *operator new(size_t size);
|
495
|
-
void operator delete(void *, size_t) {
|
496
|
-
abort();
|
497
|
-
}
|
498
|
-
};
|
499
|
-
|
500
|
-
//=== TryCatch =================================================================
|
501
|
-
|
502
|
-
class TryCatch {
|
503
|
-
v8::TryCatch try_catch_;
|
504
|
-
friend void FatalException(const TryCatch&);
|
505
|
-
|
506
|
-
public:
|
507
|
-
#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
|
508
|
-
TryCatch() : try_catch_(v8::Isolate::GetCurrent()) {}
|
509
|
-
#endif
|
510
|
-
|
511
|
-
inline bool HasCaught() const { return try_catch_.HasCaught(); }
|
512
|
-
|
513
|
-
inline bool CanContinue() const { return try_catch_.CanContinue(); }
|
514
|
-
|
515
|
-
inline v8::Local<v8::Value> ReThrow() {
|
516
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
517
|
-
return New(try_catch_.ReThrow());
|
518
|
-
#else
|
519
|
-
return try_catch_.ReThrow();
|
520
|
-
#endif
|
521
|
-
}
|
522
|
-
|
523
|
-
inline v8::Local<v8::Value> Exception() const {
|
524
|
-
return try_catch_.Exception();
|
525
|
-
}
|
526
|
-
|
527
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
528
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
529
|
-
inline v8::MaybeLocal<v8::Value> StackTrace() const {
|
530
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
531
|
-
v8::EscapableHandleScope scope(isolate);
|
532
|
-
return scope.Escape(try_catch_.StackTrace(isolate->GetCurrentContext())
|
533
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
534
|
-
}
|
535
|
-
#else
|
536
|
-
inline MaybeLocal<v8::Value> StackTrace() const {
|
537
|
-
return try_catch_.StackTrace();
|
538
|
-
}
|
539
|
-
#endif
|
540
|
-
|
541
|
-
inline v8::Local<v8::Message> Message() const {
|
542
|
-
return try_catch_.Message();
|
543
|
-
}
|
544
|
-
|
545
|
-
inline void Reset() { try_catch_.Reset(); }
|
546
|
-
|
547
|
-
inline void SetVerbose(bool value) { try_catch_.SetVerbose(value); }
|
548
|
-
|
549
|
-
inline void SetCaptureMessage(bool value) {
|
550
|
-
try_catch_.SetCaptureMessage(value);
|
551
|
-
}
|
552
|
-
};
|
553
|
-
|
554
|
-
v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
|
555
|
-
v8::Local<v8::Function> func,
|
556
|
-
int argc,
|
557
|
-
v8::Local<v8::Value>* argv);
|
558
|
-
v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
|
559
|
-
v8::Local<v8::String> symbol,
|
560
|
-
int argc,
|
561
|
-
v8::Local<v8::Value>* argv);
|
562
|
-
v8::Local<v8::Value> MakeCallback(v8::Local<v8::Object> target,
|
563
|
-
const char* method,
|
564
|
-
int argc,
|
565
|
-
v8::Local<v8::Value>* argv);
|
566
|
-
|
567
|
-
// === AsyncResource ===========================================================
|
568
|
-
|
569
|
-
class AsyncResource {
|
570
|
-
public:
|
571
|
-
AsyncResource(
|
572
|
-
v8::Local<v8::String> name
|
573
|
-
, v8::Local<v8::Object> resource = New<v8::Object>()) {
|
574
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
575
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
576
|
-
|
577
|
-
if (resource.IsEmpty()) {
|
578
|
-
resource = New<v8::Object>();
|
579
|
-
}
|
580
|
-
|
581
|
-
context = node::EmitAsyncInit(isolate, resource, name);
|
582
|
-
#endif
|
583
|
-
}
|
584
|
-
|
585
|
-
AsyncResource(
|
586
|
-
const char* name
|
587
|
-
, v8::Local<v8::Object> resource = New<v8::Object>()) {
|
588
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
589
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
590
|
-
|
591
|
-
if (resource.IsEmpty()) {
|
592
|
-
resource = New<v8::Object>();
|
593
|
-
}
|
594
|
-
|
595
|
-
v8::Local<v8::String> name_string =
|
596
|
-
New<v8::String>(name).ToLocalChecked();
|
597
|
-
context = node::EmitAsyncInit(isolate, resource, name_string);
|
598
|
-
#endif
|
599
|
-
}
|
600
|
-
|
601
|
-
~AsyncResource() {
|
602
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
603
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
604
|
-
node::EmitAsyncDestroy(isolate, context);
|
605
|
-
#endif
|
606
|
-
}
|
607
|
-
|
608
|
-
inline MaybeLocal<v8::Value> runInAsyncScope(
|
609
|
-
v8::Local<v8::Object> target
|
610
|
-
, v8::Local<v8::Function> func
|
611
|
-
, int argc
|
612
|
-
, v8::Local<v8::Value>* argv) {
|
613
|
-
#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
|
614
|
-
return MakeCallback(target, func, argc, argv);
|
615
|
-
#else
|
616
|
-
return node::MakeCallback(
|
617
|
-
v8::Isolate::GetCurrent(), target, func, argc, argv, context);
|
618
|
-
#endif
|
619
|
-
}
|
620
|
-
|
621
|
-
inline MaybeLocal<v8::Value> runInAsyncScope(
|
622
|
-
v8::Local<v8::Object> target
|
623
|
-
, v8::Local<v8::String> symbol
|
624
|
-
, int argc
|
625
|
-
, v8::Local<v8::Value>* argv) {
|
626
|
-
#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
|
627
|
-
return MakeCallback(target, symbol, argc, argv);
|
628
|
-
#else
|
629
|
-
return node::MakeCallback(
|
630
|
-
v8::Isolate::GetCurrent(), target, symbol, argc, argv, context);
|
631
|
-
#endif
|
632
|
-
}
|
633
|
-
|
634
|
-
inline MaybeLocal<v8::Value> runInAsyncScope(
|
635
|
-
v8::Local<v8::Object> target
|
636
|
-
, const char* method
|
637
|
-
, int argc
|
638
|
-
, v8::Local<v8::Value>* argv) {
|
639
|
-
#if NODE_MODULE_VERSION < NODE_9_0_MODULE_VERSION
|
640
|
-
return MakeCallback(target, method, argc, argv);
|
641
|
-
#else
|
642
|
-
return node::MakeCallback(
|
643
|
-
v8::Isolate::GetCurrent(), target, method, argc, argv, context);
|
644
|
-
#endif
|
645
|
-
}
|
646
|
-
|
647
|
-
private:
|
648
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncResource)
|
649
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
650
|
-
node::async_context context;
|
651
|
-
#endif
|
652
|
-
};
|
653
|
-
|
654
|
-
inline uv_loop_t* GetCurrentEventLoop() {
|
655
|
-
#if NODE_MAJOR_VERSION >= 10 || \
|
656
|
-
NODE_MAJOR_VERSION == 9 && NODE_MINOR_VERSION >= 3 || \
|
657
|
-
NODE_MAJOR_VERSION == 8 && NODE_MINOR_VERSION >= 10
|
658
|
-
return node::GetCurrentEventLoop(v8::Isolate::GetCurrent());
|
659
|
-
#else
|
660
|
-
return uv_default_loop();
|
661
|
-
#endif
|
662
|
-
}
|
663
|
-
|
664
|
-
//============ =================================================================
|
665
|
-
|
666
|
-
/* node 0.12 */
|
667
|
-
#if NODE_MODULE_VERSION >= NODE_0_12_MODULE_VERSION
|
668
|
-
inline
|
669
|
-
void SetCounterFunction(v8::CounterLookupCallback cb) {
|
670
|
-
v8::Isolate::GetCurrent()->SetCounterFunction(cb);
|
671
|
-
}
|
672
|
-
|
673
|
-
inline
|
674
|
-
void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
|
675
|
-
v8::Isolate::GetCurrent()->SetCreateHistogramFunction(cb);
|
676
|
-
}
|
677
|
-
|
678
|
-
inline
|
679
|
-
void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
|
680
|
-
v8::Isolate::GetCurrent()->SetAddHistogramSampleFunction(cb);
|
681
|
-
}
|
682
|
-
|
683
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
684
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
685
|
-
inline bool IdleNotification(int idle_time_in_ms) {
|
686
|
-
return v8::Isolate::GetCurrent()->IdleNotificationDeadline(
|
687
|
-
idle_time_in_ms * 0.001);
|
688
|
-
}
|
689
|
-
# else
|
690
|
-
inline bool IdleNotification(int idle_time_in_ms) {
|
691
|
-
return v8::Isolate::GetCurrent()->IdleNotification(idle_time_in_ms);
|
692
|
-
}
|
693
|
-
#endif
|
694
|
-
|
695
|
-
inline void LowMemoryNotification() {
|
696
|
-
v8::Isolate::GetCurrent()->LowMemoryNotification();
|
697
|
-
}
|
698
|
-
|
699
|
-
inline void ContextDisposedNotification() {
|
700
|
-
v8::Isolate::GetCurrent()->ContextDisposedNotification();
|
701
|
-
}
|
702
|
-
#else
|
703
|
-
inline
|
704
|
-
void SetCounterFunction(v8::CounterLookupCallback cb) {
|
705
|
-
v8::V8::SetCounterFunction(cb);
|
706
|
-
}
|
707
|
-
|
708
|
-
inline
|
709
|
-
void SetCreateHistogramFunction(v8::CreateHistogramCallback cb) {
|
710
|
-
v8::V8::SetCreateHistogramFunction(cb);
|
711
|
-
}
|
712
|
-
|
713
|
-
inline
|
714
|
-
void SetAddHistogramSampleFunction(v8::AddHistogramSampleCallback cb) {
|
715
|
-
v8::V8::SetAddHistogramSampleFunction(cb);
|
716
|
-
}
|
717
|
-
|
718
|
-
inline bool IdleNotification(int idle_time_in_ms) {
|
719
|
-
return v8::V8::IdleNotification(idle_time_in_ms);
|
720
|
-
}
|
721
|
-
|
722
|
-
inline void LowMemoryNotification() {
|
723
|
-
v8::V8::LowMemoryNotification();
|
724
|
-
}
|
725
|
-
|
726
|
-
inline void ContextDisposedNotification() {
|
727
|
-
v8::V8::ContextDisposedNotification();
|
728
|
-
}
|
729
|
-
#endif
|
730
|
-
|
731
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION) // Node 0.12
|
732
|
-
inline v8::Local<v8::Primitive> Undefined() {
|
733
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
734
|
-
EscapableHandleScope scope;
|
735
|
-
return scope.Escape(New(v8::Undefined(v8::Isolate::GetCurrent())));
|
736
|
-
# else
|
737
|
-
return v8::Undefined(v8::Isolate::GetCurrent());
|
738
|
-
# endif
|
739
|
-
}
|
740
|
-
|
741
|
-
inline v8::Local<v8::Primitive> Null() {
|
742
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
743
|
-
EscapableHandleScope scope;
|
744
|
-
return scope.Escape(New(v8::Null(v8::Isolate::GetCurrent())));
|
745
|
-
# else
|
746
|
-
return v8::Null(v8::Isolate::GetCurrent());
|
747
|
-
# endif
|
748
|
-
}
|
749
|
-
|
750
|
-
inline v8::Local<v8::Boolean> True() {
|
751
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
752
|
-
EscapableHandleScope scope;
|
753
|
-
return scope.Escape(New(v8::True(v8::Isolate::GetCurrent())));
|
754
|
-
# else
|
755
|
-
return v8::True(v8::Isolate::GetCurrent());
|
756
|
-
# endif
|
757
|
-
}
|
758
|
-
|
759
|
-
inline v8::Local<v8::Boolean> False() {
|
760
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
761
|
-
EscapableHandleScope scope;
|
762
|
-
return scope.Escape(New(v8::False(v8::Isolate::GetCurrent())));
|
763
|
-
# else
|
764
|
-
return v8::False(v8::Isolate::GetCurrent());
|
765
|
-
# endif
|
766
|
-
}
|
767
|
-
|
768
|
-
inline v8::Local<v8::String> EmptyString() {
|
769
|
-
return v8::String::Empty(v8::Isolate::GetCurrent());
|
770
|
-
}
|
771
|
-
|
772
|
-
inline int AdjustExternalMemory(int bc) {
|
773
|
-
return static_cast<int>(
|
774
|
-
v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(bc));
|
775
|
-
}
|
776
|
-
|
777
|
-
inline void SetTemplate(
|
778
|
-
v8::Local<v8::Template> templ
|
779
|
-
, const char *name
|
780
|
-
, v8::Local<v8::Data> value) {
|
781
|
-
templ->Set(v8::Isolate::GetCurrent(), name, value);
|
782
|
-
}
|
783
|
-
|
784
|
-
inline void SetTemplate(
|
785
|
-
v8::Local<v8::Template> templ
|
786
|
-
, v8::Local<v8::String> name
|
787
|
-
, v8::Local<v8::Data> value
|
788
|
-
, v8::PropertyAttribute attributes) {
|
789
|
-
templ->Set(name, value, attributes);
|
790
|
-
}
|
791
|
-
|
792
|
-
inline v8::Local<v8::Context> GetCurrentContext() {
|
793
|
-
return v8::Isolate::GetCurrent()->GetCurrentContext();
|
794
|
-
}
|
795
|
-
|
796
|
-
inline void* GetInternalFieldPointer(
|
797
|
-
v8::Local<v8::Object> object
|
798
|
-
, int index) {
|
799
|
-
return object->GetAlignedPointerFromInternalField(index);
|
800
|
-
}
|
801
|
-
|
802
|
-
inline void SetInternalFieldPointer(
|
803
|
-
v8::Local<v8::Object> object
|
804
|
-
, int index
|
805
|
-
, void* value) {
|
806
|
-
object->SetAlignedPointerInInternalField(index, value);
|
807
|
-
}
|
808
|
-
|
809
|
-
# define NAN_GC_CALLBACK(name) \
|
810
|
-
void name(v8::Isolate *isolate, v8::GCType type, v8::GCCallbackFlags flags)
|
811
|
-
|
812
|
-
#if NODE_MODULE_VERSION <= NODE_4_0_MODULE_VERSION
|
813
|
-
typedef v8::Isolate::GCEpilogueCallback GCEpilogueCallback;
|
814
|
-
typedef v8::Isolate::GCPrologueCallback GCPrologueCallback;
|
815
|
-
#else
|
816
|
-
typedef v8::Isolate::GCCallback GCEpilogueCallback;
|
817
|
-
typedef v8::Isolate::GCCallback GCPrologueCallback;
|
818
|
-
#endif
|
819
|
-
|
820
|
-
inline void AddGCEpilogueCallback(
|
821
|
-
GCEpilogueCallback callback
|
822
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
823
|
-
v8::Isolate::GetCurrent()->AddGCEpilogueCallback(callback, gc_type_filter);
|
824
|
-
}
|
825
|
-
|
826
|
-
inline void RemoveGCEpilogueCallback(
|
827
|
-
GCEpilogueCallback callback) {
|
828
|
-
v8::Isolate::GetCurrent()->RemoveGCEpilogueCallback(callback);
|
829
|
-
}
|
830
|
-
|
831
|
-
inline void AddGCPrologueCallback(
|
832
|
-
GCPrologueCallback callback
|
833
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
834
|
-
v8::Isolate::GetCurrent()->AddGCPrologueCallback(callback, gc_type_filter);
|
835
|
-
}
|
836
|
-
|
837
|
-
inline void RemoveGCPrologueCallback(
|
838
|
-
GCPrologueCallback callback) {
|
839
|
-
v8::Isolate::GetCurrent()->RemoveGCPrologueCallback(callback);
|
840
|
-
}
|
841
|
-
|
842
|
-
inline void GetHeapStatistics(
|
843
|
-
v8::HeapStatistics *heap_statistics) {
|
844
|
-
v8::Isolate::GetCurrent()->GetHeapStatistics(heap_statistics);
|
845
|
-
}
|
846
|
-
|
847
|
-
# define X(NAME) \
|
848
|
-
inline v8::Local<v8::Value> NAME(const char *msg) { \
|
849
|
-
EscapableHandleScope scope; \
|
850
|
-
return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
851
|
-
} \
|
852
|
-
\
|
853
|
-
inline \
|
854
|
-
v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
|
855
|
-
return v8::Exception::NAME(msg); \
|
856
|
-
} \
|
857
|
-
\
|
858
|
-
inline void Throw ## NAME(const char *msg) { \
|
859
|
-
HandleScope scope; \
|
860
|
-
v8::Isolate::GetCurrent()->ThrowException( \
|
861
|
-
v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
862
|
-
} \
|
863
|
-
\
|
864
|
-
inline void Throw ## NAME(v8::Local<v8::String> msg) { \
|
865
|
-
HandleScope scope; \
|
866
|
-
v8::Isolate::GetCurrent()->ThrowException( \
|
867
|
-
v8::Exception::NAME(msg)); \
|
868
|
-
}
|
869
|
-
|
870
|
-
X(Error)
|
871
|
-
X(RangeError)
|
872
|
-
X(ReferenceError)
|
873
|
-
X(SyntaxError)
|
874
|
-
X(TypeError)
|
875
|
-
|
876
|
-
# undef X
|
877
|
-
|
878
|
-
inline void ThrowError(v8::Local<v8::Value> error) {
|
879
|
-
v8::Isolate::GetCurrent()->ThrowException(error);
|
880
|
-
}
|
881
|
-
|
882
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
883
|
-
char *data
|
884
|
-
, size_t length
|
885
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
886
|
-
, node::Buffer::FreeCallback callback
|
887
|
-
#else
|
888
|
-
, node::smalloc::FreeCallback callback
|
889
|
-
#endif
|
890
|
-
, void *hint
|
891
|
-
) {
|
892
|
-
// arbitrary buffer lengths requires
|
893
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
894
|
-
assert(length <= imp::kMaxLength && "too large buffer");
|
895
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
896
|
-
return node::Buffer::New(
|
897
|
-
v8::Isolate::GetCurrent(), data, length, callback, hint);
|
898
|
-
#else
|
899
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), data, length, callback,
|
900
|
-
hint);
|
901
|
-
#endif
|
902
|
-
}
|
903
|
-
|
904
|
-
inline MaybeLocal<v8::Object> CopyBuffer(
|
905
|
-
const char *data
|
906
|
-
, uint32_t size
|
907
|
-
) {
|
908
|
-
// arbitrary buffer lengths requires
|
909
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
910
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
911
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
912
|
-
return node::Buffer::Copy(
|
913
|
-
v8::Isolate::GetCurrent(), data, size);
|
914
|
-
#else
|
915
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
|
916
|
-
#endif
|
917
|
-
}
|
918
|
-
|
919
|
-
inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
|
920
|
-
// arbitrary buffer lengths requires
|
921
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
922
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
923
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
924
|
-
return node::Buffer::New(
|
925
|
-
v8::Isolate::GetCurrent(), size);
|
926
|
-
#else
|
927
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
|
928
|
-
#endif
|
929
|
-
}
|
930
|
-
|
931
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
932
|
-
char* data
|
933
|
-
, uint32_t size
|
934
|
-
) {
|
935
|
-
// arbitrary buffer lengths requires
|
936
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
937
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
938
|
-
#if NODE_MODULE_VERSION > IOJS_2_0_MODULE_VERSION
|
939
|
-
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
|
940
|
-
#else
|
941
|
-
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
|
942
|
-
#endif
|
943
|
-
}
|
944
|
-
|
945
|
-
#if defined(V8_MAJOR_VERSION) && (V8_MAJOR_VERSION > 4 || \
|
946
|
-
(V8_MAJOR_VERSION == 4 && defined(V8_MINOR_VERSION) && V8_MINOR_VERSION >= 3))
|
947
|
-
inline MaybeLocal<v8::String>
|
948
|
-
NewOneByteString(const uint8_t * value, int length = -1) {
|
949
|
-
return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
|
950
|
-
v8::NewStringType::kNormal, length);
|
951
|
-
}
|
952
|
-
|
953
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
954
|
-
v8::Local<v8::String> s
|
955
|
-
, const v8::ScriptOrigin& origin
|
956
|
-
) {
|
957
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
958
|
-
v8::EscapableHandleScope scope(isolate);
|
959
|
-
v8::ScriptCompiler::Source source(s, origin);
|
960
|
-
return scope.Escape(
|
961
|
-
v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
|
962
|
-
.FromMaybe(v8::Local<BoundScript>()));
|
963
|
-
}
|
964
|
-
|
965
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
966
|
-
v8::Local<v8::String> s
|
967
|
-
) {
|
968
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
969
|
-
v8::EscapableHandleScope scope(isolate);
|
970
|
-
v8::ScriptCompiler::Source source(s);
|
971
|
-
return scope.Escape(
|
972
|
-
v8::ScriptCompiler::Compile(isolate->GetCurrentContext(), &source)
|
973
|
-
.FromMaybe(v8::Local<BoundScript>()));
|
974
|
-
}
|
975
|
-
|
976
|
-
inline MaybeLocal<v8::Value> RunScript(
|
977
|
-
v8::Local<UnboundScript> script
|
978
|
-
) {
|
979
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
980
|
-
v8::EscapableHandleScope scope(isolate);
|
981
|
-
return scope.Escape(script->BindToCurrentContext()
|
982
|
-
->Run(isolate->GetCurrentContext())
|
983
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
984
|
-
}
|
985
|
-
|
986
|
-
inline MaybeLocal<v8::Value> RunScript(
|
987
|
-
v8::Local<BoundScript> script
|
988
|
-
) {
|
989
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
990
|
-
v8::EscapableHandleScope scope(isolate);
|
991
|
-
return scope.Escape(script->Run(isolate->GetCurrentContext())
|
992
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
993
|
-
}
|
994
|
-
#else
|
995
|
-
inline MaybeLocal<v8::String>
|
996
|
-
NewOneByteString(const uint8_t * value, int length = -1) {
|
997
|
-
return v8::String::NewFromOneByte(v8::Isolate::GetCurrent(), value,
|
998
|
-
v8::String::kNormalString, length);
|
999
|
-
}
|
1000
|
-
|
1001
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
1002
|
-
v8::Local<v8::String> s
|
1003
|
-
, const v8::ScriptOrigin& origin
|
1004
|
-
) {
|
1005
|
-
v8::ScriptCompiler::Source source(s, origin);
|
1006
|
-
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
|
1007
|
-
}
|
1008
|
-
|
1009
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
1010
|
-
v8::Local<v8::String> s
|
1011
|
-
) {
|
1012
|
-
v8::ScriptCompiler::Source source(s);
|
1013
|
-
return v8::ScriptCompiler::Compile(v8::Isolate::GetCurrent(), &source);
|
1014
|
-
}
|
1015
|
-
|
1016
|
-
inline MaybeLocal<v8::Value> RunScript(
|
1017
|
-
v8::Local<UnboundScript> script
|
1018
|
-
) {
|
1019
|
-
EscapableHandleScope scope;
|
1020
|
-
return scope.Escape(script->BindToCurrentContext()->Run());
|
1021
|
-
}
|
1022
|
-
|
1023
|
-
inline MaybeLocal<v8::Value> RunScript(
|
1024
|
-
v8::Local<BoundScript> script
|
1025
|
-
) {
|
1026
|
-
return script->Run();
|
1027
|
-
}
|
1028
|
-
#endif
|
1029
|
-
|
1030
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
|
1031
|
-
v8::Local<v8::Object> target
|
1032
|
-
, v8::Local<v8::Function> func
|
1033
|
-
, int argc
|
1034
|
-
, v8::Local<v8::Value>* argv) {
|
1035
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
1036
|
-
EscapableHandleScope scope;
|
1037
|
-
return scope.Escape(New(node::MakeCallback(
|
1038
|
-
v8::Isolate::GetCurrent(), target, func, argc, argv)));
|
1039
|
-
#else
|
1040
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1041
|
-
AsyncResource res("nan:makeCallback");
|
1042
|
-
return res.runInAsyncScope(target, func, argc, argv)
|
1043
|
-
.FromMaybe(v8::Local<v8::Value>());
|
1044
|
-
# else
|
1045
|
-
return node::MakeCallback(
|
1046
|
-
v8::Isolate::GetCurrent(), target, func, argc, argv);
|
1047
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1048
|
-
#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
1049
|
-
}
|
1050
|
-
|
1051
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
|
1052
|
-
v8::Local<v8::Object> target
|
1053
|
-
, v8::Local<v8::String> symbol
|
1054
|
-
, int argc
|
1055
|
-
, v8::Local<v8::Value>* argv) {
|
1056
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
1057
|
-
EscapableHandleScope scope;
|
1058
|
-
return scope.Escape(New(node::MakeCallback(
|
1059
|
-
v8::Isolate::GetCurrent(), target, symbol, argc, argv)));
|
1060
|
-
#else
|
1061
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1062
|
-
AsyncResource res("nan:makeCallback");
|
1063
|
-
return res.runInAsyncScope(target, symbol, argc, argv)
|
1064
|
-
.FromMaybe(v8::Local<v8::Value>());
|
1065
|
-
# else
|
1066
|
-
return node::MakeCallback(
|
1067
|
-
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
|
1068
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1069
|
-
#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
1070
|
-
}
|
1071
|
-
|
1072
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
|
1073
|
-
v8::Local<v8::Object> target
|
1074
|
-
, const char* method
|
1075
|
-
, int argc
|
1076
|
-
, v8::Local<v8::Value>* argv) {
|
1077
|
-
#if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
1078
|
-
EscapableHandleScope scope;
|
1079
|
-
return scope.Escape(New(node::MakeCallback(
|
1080
|
-
v8::Isolate::GetCurrent(), target, method, argc, argv)));
|
1081
|
-
#else
|
1082
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1083
|
-
AsyncResource res("nan:makeCallback");
|
1084
|
-
return res.runInAsyncScope(target, method, argc, argv)
|
1085
|
-
.FromMaybe(v8::Local<v8::Value>());
|
1086
|
-
# else
|
1087
|
-
return node::MakeCallback(
|
1088
|
-
v8::Isolate::GetCurrent(), target, method, argc, argv);
|
1089
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1090
|
-
#endif // NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
1091
|
-
}
|
1092
|
-
|
1093
|
-
inline void FatalException(const TryCatch& try_catch) {
|
1094
|
-
node::FatalException(v8::Isolate::GetCurrent(), try_catch.try_catch_);
|
1095
|
-
}
|
1096
|
-
|
1097
|
-
inline v8::Local<v8::Value> ErrnoException(
|
1098
|
-
int errorno
|
1099
|
-
, const char* syscall = NULL
|
1100
|
-
, const char* message = NULL
|
1101
|
-
, const char* path = NULL) {
|
1102
|
-
return node::ErrnoException(v8::Isolate::GetCurrent(), errorno, syscall,
|
1103
|
-
message, path);
|
1104
|
-
}
|
1105
|
-
|
1106
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
|
1107
|
-
int errorno
|
1108
|
-
, const char* syscall = NULL
|
1109
|
-
, const char* message = NULL
|
1110
|
-
, const char* path = NULL) {
|
1111
|
-
return ErrnoException(errorno, syscall, message, path);
|
1112
|
-
}
|
1113
|
-
|
1114
|
-
template<typename T>
|
1115
|
-
inline void SetIsolateData(
|
1116
|
-
v8::Isolate *isolate
|
1117
|
-
, T *data
|
1118
|
-
) {
|
1119
|
-
isolate->SetData(0, data);
|
1120
|
-
}
|
1121
|
-
|
1122
|
-
template<typename T>
|
1123
|
-
inline T *GetIsolateData(
|
1124
|
-
v8::Isolate *isolate
|
1125
|
-
) {
|
1126
|
-
return static_cast<T*>(isolate->GetData(0));
|
1127
|
-
}
|
1128
|
-
|
1129
|
-
class Utf8String {
|
1130
|
-
public:
|
1131
|
-
inline explicit Utf8String(v8::Local<v8::Value> from) :
|
1132
|
-
length_(0), str_(str_st_) {
|
1133
|
-
HandleScope scope;
|
1134
|
-
if (!from.IsEmpty()) {
|
1135
|
-
#if NODE_MAJOR_VERSION >= 10
|
1136
|
-
v8::Local<v8::Context> context = GetCurrentContext();
|
1137
|
-
v8::Local<v8::String> string =
|
1138
|
-
from->ToString(context).FromMaybe(v8::Local<v8::String>());
|
1139
|
-
#else
|
1140
|
-
v8::Local<v8::String> string = from->ToString();
|
1141
|
-
#endif
|
1142
|
-
if (!string.IsEmpty()) {
|
1143
|
-
size_t len = 3 * string->Length() + 1;
|
1144
|
-
assert(len <= INT_MAX);
|
1145
|
-
if (len > sizeof (str_st_)) {
|
1146
|
-
str_ = static_cast<char*>(malloc(len));
|
1147
|
-
assert(str_ != 0);
|
1148
|
-
}
|
1149
|
-
const int flags =
|
1150
|
-
v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
|
1151
|
-
#if NODE_MAJOR_VERSION >= 11
|
1152
|
-
length_ = string->WriteUtf8(v8::Isolate::GetCurrent(), str_,
|
1153
|
-
static_cast<int>(len), 0, flags);
|
1154
|
-
#else
|
1155
|
-
// See https://github.com/nodejs/nan/issues/832.
|
1156
|
-
// Disable the warning as there is no way around it.
|
1157
|
-
#ifdef _MSC_VER
|
1158
|
-
#pragma warning(push)
|
1159
|
-
#pragma warning(disable : 4996)
|
1160
|
-
#endif
|
1161
|
-
#ifdef __GNUC__
|
1162
|
-
#pragma GCC diagnostic push
|
1163
|
-
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
1164
|
-
#endif
|
1165
|
-
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
|
1166
|
-
#ifdef __GNUC__
|
1167
|
-
#pragma GCC diagnostic pop
|
1168
|
-
#endif
|
1169
|
-
#ifdef _MSC_VER
|
1170
|
-
#pragma warning(pop)
|
1171
|
-
#endif
|
1172
|
-
#endif // NODE_MAJOR_VERSION < 11
|
1173
|
-
str_[length_] = '\0';
|
1174
|
-
}
|
1175
|
-
}
|
1176
|
-
}
|
1177
|
-
|
1178
|
-
inline int length() const {
|
1179
|
-
return length_;
|
1180
|
-
}
|
1181
|
-
|
1182
|
-
inline char* operator*() { return str_; }
|
1183
|
-
inline const char* operator*() const { return str_; }
|
1184
|
-
|
1185
|
-
inline ~Utf8String() {
|
1186
|
-
if (str_ != str_st_) {
|
1187
|
-
free(str_);
|
1188
|
-
}
|
1189
|
-
}
|
1190
|
-
|
1191
|
-
private:
|
1192
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
|
1193
|
-
|
1194
|
-
int length_;
|
1195
|
-
char *str_;
|
1196
|
-
char str_st_[1024];
|
1197
|
-
};
|
1198
|
-
|
1199
|
-
#else // Node 0.8 and 0.10
|
1200
|
-
inline v8::Local<v8::Primitive> Undefined() {
|
1201
|
-
EscapableHandleScope scope;
|
1202
|
-
return scope.Escape(New(v8::Undefined()));
|
1203
|
-
}
|
1204
|
-
|
1205
|
-
inline v8::Local<v8::Primitive> Null() {
|
1206
|
-
EscapableHandleScope scope;
|
1207
|
-
return scope.Escape(New(v8::Null()));
|
1208
|
-
}
|
1209
|
-
|
1210
|
-
inline v8::Local<v8::Boolean> True() {
|
1211
|
-
EscapableHandleScope scope;
|
1212
|
-
return scope.Escape(New(v8::True()));
|
1213
|
-
}
|
1214
|
-
|
1215
|
-
inline v8::Local<v8::Boolean> False() {
|
1216
|
-
EscapableHandleScope scope;
|
1217
|
-
return scope.Escape(New(v8::False()));
|
1218
|
-
}
|
1219
|
-
|
1220
|
-
inline v8::Local<v8::String> EmptyString() {
|
1221
|
-
return v8::String::Empty();
|
1222
|
-
}
|
1223
|
-
|
1224
|
-
inline int AdjustExternalMemory(int bc) {
|
1225
|
-
return static_cast<int>(v8::V8::AdjustAmountOfExternalAllocatedMemory(bc));
|
1226
|
-
}
|
1227
|
-
|
1228
|
-
inline void SetTemplate(
|
1229
|
-
v8::Local<v8::Template> templ
|
1230
|
-
, const char *name
|
1231
|
-
, v8::Local<v8::Data> value) {
|
1232
|
-
templ->Set(name, value);
|
1233
|
-
}
|
1234
|
-
|
1235
|
-
inline void SetTemplate(
|
1236
|
-
v8::Local<v8::Template> templ
|
1237
|
-
, v8::Local<v8::String> name
|
1238
|
-
, v8::Local<v8::Data> value
|
1239
|
-
, v8::PropertyAttribute attributes) {
|
1240
|
-
templ->Set(name, value, attributes);
|
1241
|
-
}
|
1242
|
-
|
1243
|
-
inline v8::Local<v8::Context> GetCurrentContext() {
|
1244
|
-
return v8::Context::GetCurrent();
|
1245
|
-
}
|
1246
|
-
|
1247
|
-
inline void* GetInternalFieldPointer(
|
1248
|
-
v8::Local<v8::Object> object
|
1249
|
-
, int index) {
|
1250
|
-
return object->GetPointerFromInternalField(index);
|
1251
|
-
}
|
1252
|
-
|
1253
|
-
inline void SetInternalFieldPointer(
|
1254
|
-
v8::Local<v8::Object> object
|
1255
|
-
, int index
|
1256
|
-
, void* value) {
|
1257
|
-
object->SetPointerInInternalField(index, value);
|
1258
|
-
}
|
1259
|
-
|
1260
|
-
# define NAN_GC_CALLBACK(name) \
|
1261
|
-
void name(v8::GCType type, v8::GCCallbackFlags flags)
|
1262
|
-
|
1263
|
-
inline void AddGCEpilogueCallback(
|
1264
|
-
v8::GCEpilogueCallback callback
|
1265
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
1266
|
-
v8::V8::AddGCEpilogueCallback(callback, gc_type_filter);
|
1267
|
-
}
|
1268
|
-
inline void RemoveGCEpilogueCallback(
|
1269
|
-
v8::GCEpilogueCallback callback) {
|
1270
|
-
v8::V8::RemoveGCEpilogueCallback(callback);
|
1271
|
-
}
|
1272
|
-
inline void AddGCPrologueCallback(
|
1273
|
-
v8::GCPrologueCallback callback
|
1274
|
-
, v8::GCType gc_type_filter = v8::kGCTypeAll) {
|
1275
|
-
v8::V8::AddGCPrologueCallback(callback, gc_type_filter);
|
1276
|
-
}
|
1277
|
-
inline void RemoveGCPrologueCallback(
|
1278
|
-
v8::GCPrologueCallback callback) {
|
1279
|
-
v8::V8::RemoveGCPrologueCallback(callback);
|
1280
|
-
}
|
1281
|
-
inline void GetHeapStatistics(
|
1282
|
-
v8::HeapStatistics *heap_statistics) {
|
1283
|
-
v8::V8::GetHeapStatistics(heap_statistics);
|
1284
|
-
}
|
1285
|
-
|
1286
|
-
# define X(NAME) \
|
1287
|
-
inline v8::Local<v8::Value> NAME(const char *msg) { \
|
1288
|
-
EscapableHandleScope scope; \
|
1289
|
-
return scope.Escape(v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
1290
|
-
} \
|
1291
|
-
\
|
1292
|
-
inline \
|
1293
|
-
v8::Local<v8::Value> NAME(v8::Local<v8::String> msg) { \
|
1294
|
-
return v8::Exception::NAME(msg); \
|
1295
|
-
} \
|
1296
|
-
\
|
1297
|
-
inline void Throw ## NAME(const char *msg) { \
|
1298
|
-
HandleScope scope; \
|
1299
|
-
v8::ThrowException(v8::Exception::NAME(New(msg).ToLocalChecked())); \
|
1300
|
-
} \
|
1301
|
-
\
|
1302
|
-
inline \
|
1303
|
-
void Throw ## NAME(v8::Local<v8::String> errmsg) { \
|
1304
|
-
HandleScope scope; \
|
1305
|
-
v8::ThrowException(v8::Exception::NAME(errmsg)); \
|
1306
|
-
}
|
1307
|
-
|
1308
|
-
X(Error)
|
1309
|
-
X(RangeError)
|
1310
|
-
X(ReferenceError)
|
1311
|
-
X(SyntaxError)
|
1312
|
-
X(TypeError)
|
1313
|
-
|
1314
|
-
# undef X
|
1315
|
-
|
1316
|
-
inline void ThrowError(v8::Local<v8::Value> error) {
|
1317
|
-
v8::ThrowException(error);
|
1318
|
-
}
|
1319
|
-
|
1320
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
1321
|
-
char *data
|
1322
|
-
, size_t length
|
1323
|
-
, node::Buffer::free_callback callback
|
1324
|
-
, void *hint
|
1325
|
-
) {
|
1326
|
-
EscapableHandleScope scope;
|
1327
|
-
// arbitrary buffer lengths requires
|
1328
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
1329
|
-
assert(length <= imp::kMaxLength && "too large buffer");
|
1330
|
-
return scope.Escape(
|
1331
|
-
New(node::Buffer::New(data, length, callback, hint)->handle_));
|
1332
|
-
}
|
1333
|
-
|
1334
|
-
inline MaybeLocal<v8::Object> CopyBuffer(
|
1335
|
-
const char *data
|
1336
|
-
, uint32_t size
|
1337
|
-
) {
|
1338
|
-
EscapableHandleScope scope;
|
1339
|
-
// arbitrary buffer lengths requires
|
1340
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
1341
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
1342
|
-
#if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
|
1343
|
-
return scope.Escape(New(node::Buffer::New(data, size)->handle_));
|
1344
|
-
#else
|
1345
|
-
return scope.Escape(
|
1346
|
-
New(node::Buffer::New(const_cast<char *>(data), size)->handle_));
|
1347
|
-
#endif
|
1348
|
-
}
|
1349
|
-
|
1350
|
-
inline MaybeLocal<v8::Object> NewBuffer(uint32_t size) {
|
1351
|
-
// arbitrary buffer lengths requires
|
1352
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
1353
|
-
EscapableHandleScope scope;
|
1354
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
1355
|
-
return scope.Escape(New(node::Buffer::New(size)->handle_));
|
1356
|
-
}
|
1357
|
-
|
1358
|
-
inline void FreeData(char *data, void *hint) {
|
1359
|
-
(void) hint; // unused
|
1360
|
-
delete[] data;
|
1361
|
-
}
|
1362
|
-
|
1363
|
-
inline MaybeLocal<v8::Object> NewBuffer(
|
1364
|
-
char* data
|
1365
|
-
, uint32_t size
|
1366
|
-
) {
|
1367
|
-
EscapableHandleScope scope;
|
1368
|
-
// arbitrary buffer lengths requires
|
1369
|
-
// NODE_MODULE_VERSION >= IOJS_3_0_MODULE_VERSION
|
1370
|
-
assert(size <= imp::kMaxLength && "too large buffer");
|
1371
|
-
return scope.Escape(
|
1372
|
-
New(node::Buffer::New(data, size, FreeData, NULL)->handle_));
|
1373
|
-
}
|
1374
|
-
|
1375
|
-
namespace imp {
|
1376
|
-
inline void
|
1377
|
-
widenString(std::vector<uint16_t> *ws, const uint8_t *s, int l) {
|
1378
|
-
size_t len = static_cast<size_t>(l);
|
1379
|
-
if (l < 0) {
|
1380
|
-
len = strlen(reinterpret_cast<const char*>(s));
|
1381
|
-
}
|
1382
|
-
assert(len <= INT_MAX && "string too long");
|
1383
|
-
ws->resize(len);
|
1384
|
-
std::copy(s, s + len, ws->begin()); // NOLINT(build/include_what_you_use)
|
1385
|
-
}
|
1386
|
-
} // end of namespace imp
|
1387
|
-
|
1388
|
-
inline MaybeLocal<v8::String>
|
1389
|
-
NewOneByteString(const uint8_t * value, int length = -1) {
|
1390
|
-
std::vector<uint16_t> wideString; // NOLINT(build/include_what_you_use)
|
1391
|
-
imp::widenString(&wideString, value, length);
|
1392
|
-
return v8::String::New(wideString.data(),
|
1393
|
-
static_cast<int>(wideString.size()));
|
1394
|
-
}
|
1395
|
-
|
1396
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
1397
|
-
v8::Local<v8::String> s
|
1398
|
-
, const v8::ScriptOrigin& origin
|
1399
|
-
) {
|
1400
|
-
return v8::Script::Compile(s, const_cast<v8::ScriptOrigin *>(&origin));
|
1401
|
-
}
|
1402
|
-
|
1403
|
-
inline MaybeLocal<BoundScript> CompileScript(
|
1404
|
-
v8::Local<v8::String> s
|
1405
|
-
) {
|
1406
|
-
return v8::Script::Compile(s);
|
1407
|
-
}
|
1408
|
-
|
1409
|
-
inline
|
1410
|
-
MaybeLocal<v8::Value> RunScript(v8::Local<v8::Script> script) {
|
1411
|
-
return script->Run();
|
1412
|
-
}
|
1413
|
-
|
1414
|
-
inline v8::Local<v8::Value> MakeCallback(
|
1415
|
-
v8::Local<v8::Object> target
|
1416
|
-
, v8::Local<v8::Function> func
|
1417
|
-
, int argc
|
1418
|
-
, v8::Local<v8::Value>* argv) {
|
1419
|
-
v8::HandleScope scope;
|
1420
|
-
return scope.Close(New(node::MakeCallback(target, func, argc, argv)));
|
1421
|
-
}
|
1422
|
-
|
1423
|
-
inline v8::Local<v8::Value> MakeCallback(
|
1424
|
-
v8::Local<v8::Object> target
|
1425
|
-
, v8::Local<v8::String> symbol
|
1426
|
-
, int argc
|
1427
|
-
, v8::Local<v8::Value>* argv) {
|
1428
|
-
v8::HandleScope scope;
|
1429
|
-
return scope.Close(New(node::MakeCallback(target, symbol, argc, argv)));
|
1430
|
-
}
|
1431
|
-
|
1432
|
-
inline v8::Local<v8::Value> MakeCallback(
|
1433
|
-
v8::Local<v8::Object> target
|
1434
|
-
, const char* method
|
1435
|
-
, int argc
|
1436
|
-
, v8::Local<v8::Value>* argv) {
|
1437
|
-
v8::HandleScope scope;
|
1438
|
-
return scope.Close(New(node::MakeCallback(target, method, argc, argv)));
|
1439
|
-
}
|
1440
|
-
|
1441
|
-
inline void FatalException(const TryCatch& try_catch) {
|
1442
|
-
node::FatalException(const_cast<v8::TryCatch &>(try_catch.try_catch_));
|
1443
|
-
}
|
1444
|
-
|
1445
|
-
inline v8::Local<v8::Value> ErrnoException(
|
1446
|
-
int errorno
|
1447
|
-
, const char* syscall = NULL
|
1448
|
-
, const char* message = NULL
|
1449
|
-
, const char* path = NULL) {
|
1450
|
-
return node::ErrnoException(errorno, syscall, message, path);
|
1451
|
-
}
|
1452
|
-
|
1453
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> NanErrnoException(
|
1454
|
-
int errorno
|
1455
|
-
, const char* syscall = NULL
|
1456
|
-
, const char* message = NULL
|
1457
|
-
, const char* path = NULL) {
|
1458
|
-
return ErrnoException(errorno, syscall, message, path);
|
1459
|
-
}
|
1460
|
-
|
1461
|
-
|
1462
|
-
template<typename T>
|
1463
|
-
inline void SetIsolateData(
|
1464
|
-
v8::Isolate *isolate
|
1465
|
-
, T *data
|
1466
|
-
) {
|
1467
|
-
isolate->SetData(data);
|
1468
|
-
}
|
1469
|
-
|
1470
|
-
template<typename T>
|
1471
|
-
inline T *GetIsolateData(
|
1472
|
-
v8::Isolate *isolate
|
1473
|
-
) {
|
1474
|
-
return static_cast<T*>(isolate->GetData());
|
1475
|
-
}
|
1476
|
-
|
1477
|
-
class Utf8String {
|
1478
|
-
public:
|
1479
|
-
inline explicit Utf8String(v8::Local<v8::Value> from) :
|
1480
|
-
length_(0), str_(str_st_) {
|
1481
|
-
v8::HandleScope scope;
|
1482
|
-
if (!from.IsEmpty()) {
|
1483
|
-
v8::Local<v8::String> string = from->ToString();
|
1484
|
-
if (!string.IsEmpty()) {
|
1485
|
-
size_t len = 3 * string->Length() + 1;
|
1486
|
-
assert(len <= INT_MAX);
|
1487
|
-
if (len > sizeof (str_st_)) {
|
1488
|
-
str_ = static_cast<char*>(malloc(len));
|
1489
|
-
assert(str_ != 0);
|
1490
|
-
}
|
1491
|
-
const int flags =
|
1492
|
-
v8::String::NO_NULL_TERMINATION | imp::kReplaceInvalidUtf8;
|
1493
|
-
length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
|
1494
|
-
str_[length_] = '\0';
|
1495
|
-
}
|
1496
|
-
}
|
1497
|
-
}
|
1498
|
-
|
1499
|
-
inline int length() const {
|
1500
|
-
return length_;
|
1501
|
-
}
|
1502
|
-
|
1503
|
-
inline char* operator*() { return str_; }
|
1504
|
-
inline const char* operator*() const { return str_; }
|
1505
|
-
|
1506
|
-
inline ~Utf8String() {
|
1507
|
-
if (str_ != str_st_) {
|
1508
|
-
free(str_);
|
1509
|
-
}
|
1510
|
-
}
|
1511
|
-
|
1512
|
-
private:
|
1513
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(Utf8String)
|
1514
|
-
|
1515
|
-
int length_;
|
1516
|
-
char *str_;
|
1517
|
-
char str_st_[1024];
|
1518
|
-
};
|
1519
|
-
|
1520
|
-
#endif // NODE_MODULE_VERSION
|
1521
|
-
|
1522
|
-
typedef void (*FreeCallback)(char *data, void *hint);
|
1523
|
-
|
1524
|
-
typedef const FunctionCallbackInfo<v8::Value>& NAN_METHOD_ARGS_TYPE;
|
1525
|
-
typedef void NAN_METHOD_RETURN_TYPE;
|
1526
|
-
|
1527
|
-
typedef const PropertyCallbackInfo<v8::Value>& NAN_GETTER_ARGS_TYPE;
|
1528
|
-
typedef void NAN_GETTER_RETURN_TYPE;
|
1529
|
-
|
1530
|
-
typedef const PropertyCallbackInfo<void>& NAN_SETTER_ARGS_TYPE;
|
1531
|
-
typedef void NAN_SETTER_RETURN_TYPE;
|
1532
|
-
|
1533
|
-
typedef const PropertyCallbackInfo<v8::Value>&
|
1534
|
-
NAN_PROPERTY_GETTER_ARGS_TYPE;
|
1535
|
-
typedef void NAN_PROPERTY_GETTER_RETURN_TYPE;
|
1536
|
-
|
1537
|
-
typedef const PropertyCallbackInfo<v8::Value>&
|
1538
|
-
NAN_PROPERTY_SETTER_ARGS_TYPE;
|
1539
|
-
typedef void NAN_PROPERTY_SETTER_RETURN_TYPE;
|
1540
|
-
|
1541
|
-
typedef const PropertyCallbackInfo<v8::Array>&
|
1542
|
-
NAN_PROPERTY_ENUMERATOR_ARGS_TYPE;
|
1543
|
-
typedef void NAN_PROPERTY_ENUMERATOR_RETURN_TYPE;
|
1544
|
-
|
1545
|
-
typedef const PropertyCallbackInfo<v8::Boolean>&
|
1546
|
-
NAN_PROPERTY_DELETER_ARGS_TYPE;
|
1547
|
-
typedef void NAN_PROPERTY_DELETER_RETURN_TYPE;
|
1548
|
-
|
1549
|
-
typedef const PropertyCallbackInfo<v8::Integer>&
|
1550
|
-
NAN_PROPERTY_QUERY_ARGS_TYPE;
|
1551
|
-
typedef void NAN_PROPERTY_QUERY_RETURN_TYPE;
|
1552
|
-
|
1553
|
-
typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_GETTER_ARGS_TYPE;
|
1554
|
-
typedef void NAN_INDEX_GETTER_RETURN_TYPE;
|
1555
|
-
|
1556
|
-
typedef const PropertyCallbackInfo<v8::Value>& NAN_INDEX_SETTER_ARGS_TYPE;
|
1557
|
-
typedef void NAN_INDEX_SETTER_RETURN_TYPE;
|
1558
|
-
|
1559
|
-
typedef const PropertyCallbackInfo<v8::Array>&
|
1560
|
-
NAN_INDEX_ENUMERATOR_ARGS_TYPE;
|
1561
|
-
typedef void NAN_INDEX_ENUMERATOR_RETURN_TYPE;
|
1562
|
-
|
1563
|
-
typedef const PropertyCallbackInfo<v8::Boolean>&
|
1564
|
-
NAN_INDEX_DELETER_ARGS_TYPE;
|
1565
|
-
typedef void NAN_INDEX_DELETER_RETURN_TYPE;
|
1566
|
-
|
1567
|
-
typedef const PropertyCallbackInfo<v8::Integer>&
|
1568
|
-
NAN_INDEX_QUERY_ARGS_TYPE;
|
1569
|
-
typedef void NAN_INDEX_QUERY_RETURN_TYPE;
|
1570
|
-
|
1571
|
-
#define NAN_METHOD(name) \
|
1572
|
-
Nan::NAN_METHOD_RETURN_TYPE name(Nan::NAN_METHOD_ARGS_TYPE info)
|
1573
|
-
#define NAN_GETTER(name) \
|
1574
|
-
Nan::NAN_GETTER_RETURN_TYPE name( \
|
1575
|
-
v8::Local<v8::String> property \
|
1576
|
-
, Nan::NAN_GETTER_ARGS_TYPE info)
|
1577
|
-
#define NAN_SETTER(name) \
|
1578
|
-
Nan::NAN_SETTER_RETURN_TYPE name( \
|
1579
|
-
v8::Local<v8::String> property \
|
1580
|
-
, v8::Local<v8::Value> value \
|
1581
|
-
, Nan::NAN_SETTER_ARGS_TYPE info)
|
1582
|
-
#define NAN_PROPERTY_GETTER(name) \
|
1583
|
-
Nan::NAN_PROPERTY_GETTER_RETURN_TYPE name( \
|
1584
|
-
v8::Local<v8::String> property \
|
1585
|
-
, Nan::NAN_PROPERTY_GETTER_ARGS_TYPE info)
|
1586
|
-
#define NAN_PROPERTY_SETTER(name) \
|
1587
|
-
Nan::NAN_PROPERTY_SETTER_RETURN_TYPE name( \
|
1588
|
-
v8::Local<v8::String> property \
|
1589
|
-
, v8::Local<v8::Value> value \
|
1590
|
-
, Nan::NAN_PROPERTY_SETTER_ARGS_TYPE info)
|
1591
|
-
#define NAN_PROPERTY_ENUMERATOR(name) \
|
1592
|
-
Nan::NAN_PROPERTY_ENUMERATOR_RETURN_TYPE name( \
|
1593
|
-
Nan::NAN_PROPERTY_ENUMERATOR_ARGS_TYPE info)
|
1594
|
-
#define NAN_PROPERTY_DELETER(name) \
|
1595
|
-
Nan::NAN_PROPERTY_DELETER_RETURN_TYPE name( \
|
1596
|
-
v8::Local<v8::String> property \
|
1597
|
-
, Nan::NAN_PROPERTY_DELETER_ARGS_TYPE info)
|
1598
|
-
#define NAN_PROPERTY_QUERY(name) \
|
1599
|
-
Nan::NAN_PROPERTY_QUERY_RETURN_TYPE name( \
|
1600
|
-
v8::Local<v8::String> property \
|
1601
|
-
, Nan::NAN_PROPERTY_QUERY_ARGS_TYPE info)
|
1602
|
-
# define NAN_INDEX_GETTER(name) \
|
1603
|
-
Nan::NAN_INDEX_GETTER_RETURN_TYPE name( \
|
1604
|
-
uint32_t index \
|
1605
|
-
, Nan::NAN_INDEX_GETTER_ARGS_TYPE info)
|
1606
|
-
#define NAN_INDEX_SETTER(name) \
|
1607
|
-
Nan::NAN_INDEX_SETTER_RETURN_TYPE name( \
|
1608
|
-
uint32_t index \
|
1609
|
-
, v8::Local<v8::Value> value \
|
1610
|
-
, Nan::NAN_INDEX_SETTER_ARGS_TYPE info)
|
1611
|
-
#define NAN_INDEX_ENUMERATOR(name) \
|
1612
|
-
Nan::NAN_INDEX_ENUMERATOR_RETURN_TYPE \
|
1613
|
-
name(Nan::NAN_INDEX_ENUMERATOR_ARGS_TYPE info)
|
1614
|
-
#define NAN_INDEX_DELETER(name) \
|
1615
|
-
Nan::NAN_INDEX_DELETER_RETURN_TYPE name( \
|
1616
|
-
uint32_t index \
|
1617
|
-
, Nan::NAN_INDEX_DELETER_ARGS_TYPE info)
|
1618
|
-
#define NAN_INDEX_QUERY(name) \
|
1619
|
-
Nan::NAN_INDEX_QUERY_RETURN_TYPE name( \
|
1620
|
-
uint32_t index \
|
1621
|
-
, Nan::NAN_INDEX_QUERY_ARGS_TYPE info)
|
1622
|
-
|
1623
|
-
class Callback {
|
1624
|
-
public:
|
1625
|
-
Callback() {}
|
1626
|
-
|
1627
|
-
explicit Callback(const v8::Local<v8::Function> &fn) : handle_(fn) {}
|
1628
|
-
|
1629
|
-
~Callback() {
|
1630
|
-
handle_.Reset();
|
1631
|
-
}
|
1632
|
-
|
1633
|
-
bool operator==(const Callback &other) const {
|
1634
|
-
return handle_ == other.handle_;
|
1635
|
-
}
|
1636
|
-
|
1637
|
-
bool operator!=(const Callback &other) const {
|
1638
|
-
return !operator==(other);
|
1639
|
-
}
|
1640
|
-
|
1641
|
-
inline
|
1642
|
-
v8::Local<v8::Function> operator*() const { return GetFunction(); }
|
1643
|
-
|
1644
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
|
1645
|
-
v8::Local<v8::Object> target
|
1646
|
-
, int argc = 0
|
1647
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
1648
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1649
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
1650
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1651
|
-
AsyncResource async("nan:Callback:operator()");
|
1652
|
-
return Call_(isolate, target, argc, argv, &async)
|
1653
|
-
.FromMaybe(v8::Local<v8::Value>());
|
1654
|
-
# else
|
1655
|
-
return Call_(isolate, target, argc, argv);
|
1656
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1657
|
-
#else
|
1658
|
-
return Call_(target, argc, argv);
|
1659
|
-
#endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1660
|
-
}
|
1661
|
-
|
1662
|
-
NAN_DEPRECATED inline v8::Local<v8::Value> operator()(
|
1663
|
-
int argc = 0
|
1664
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
1665
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1666
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
1667
|
-
v8::EscapableHandleScope scope(isolate);
|
1668
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1669
|
-
AsyncResource async("nan:Callback:operator()");
|
1670
|
-
return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
|
1671
|
-
argc, argv, &async)
|
1672
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
1673
|
-
# else
|
1674
|
-
return scope.Escape(
|
1675
|
-
Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
|
1676
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1677
|
-
#else
|
1678
|
-
v8::HandleScope scope;
|
1679
|
-
return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
|
1680
|
-
#endif // NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1681
|
-
}
|
1682
|
-
|
1683
|
-
inline MaybeLocal<v8::Value> operator()(
|
1684
|
-
AsyncResource* resource
|
1685
|
-
, int argc = 0
|
1686
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
1687
|
-
return this->Call(argc, argv, resource);
|
1688
|
-
}
|
1689
|
-
|
1690
|
-
inline MaybeLocal<v8::Value> operator()(
|
1691
|
-
AsyncResource* resource
|
1692
|
-
, v8::Local<v8::Object> target
|
1693
|
-
, int argc = 0
|
1694
|
-
, v8::Local<v8::Value> argv[] = 0) const {
|
1695
|
-
return this->Call(target, argc, argv, resource);
|
1696
|
-
}
|
1697
|
-
|
1698
|
-
// TODO(kkoopa): remove
|
1699
|
-
inline void SetFunction(const v8::Local<v8::Function> &fn) {
|
1700
|
-
Reset(fn);
|
1701
|
-
}
|
1702
|
-
|
1703
|
-
inline void Reset(const v8::Local<v8::Function> &fn) {
|
1704
|
-
handle_.Reset(fn);
|
1705
|
-
}
|
1706
|
-
|
1707
|
-
inline void Reset() {
|
1708
|
-
handle_.Reset();
|
1709
|
-
}
|
1710
|
-
|
1711
|
-
inline v8::Local<v8::Function> GetFunction() const {
|
1712
|
-
return New(handle_);
|
1713
|
-
}
|
1714
|
-
|
1715
|
-
inline bool IsEmpty() const {
|
1716
|
-
return handle_.IsEmpty();
|
1717
|
-
}
|
1718
|
-
|
1719
|
-
// Deprecated: For async callbacks Use the versions that accept an
|
1720
|
-
// AsyncResource. If this callback does not correspond to an async resource,
|
1721
|
-
// that is, it is a synchronous function call on a non-empty JS stack, you
|
1722
|
-
// should Nan::Call instead.
|
1723
|
-
NAN_DEPRECATED inline v8::Local<v8::Value>
|
1724
|
-
Call(v8::Local<v8::Object> target
|
1725
|
-
, int argc
|
1726
|
-
, v8::Local<v8::Value> argv[]) const {
|
1727
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1728
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
1729
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1730
|
-
AsyncResource async("nan:Callback:Call");
|
1731
|
-
return Call_(isolate, target, argc, argv, &async)
|
1732
|
-
.FromMaybe(v8::Local<v8::Value>());
|
1733
|
-
# else
|
1734
|
-
return Call_(isolate, target, argc, argv);
|
1735
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1736
|
-
#else
|
1737
|
-
return Call_(target, argc, argv);
|
1738
|
-
#endif
|
1739
|
-
}
|
1740
|
-
|
1741
|
-
// Deprecated: For async callbacks Use the versions that accept an
|
1742
|
-
// AsyncResource. If this callback does not correspond to an async resource,
|
1743
|
-
// that is, it is a synchronous function call on a non-empty JS stack, you
|
1744
|
-
// should Nan::Call instead.
|
1745
|
-
NAN_DEPRECATED inline v8::Local<v8::Value>
|
1746
|
-
Call(int argc, v8::Local<v8::Value> argv[]) const {
|
1747
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1748
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
1749
|
-
v8::EscapableHandleScope scope(isolate);
|
1750
|
-
# if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1751
|
-
AsyncResource async("nan:Callback:Call");
|
1752
|
-
return scope.Escape(Call_(isolate, isolate->GetCurrentContext()->Global(),
|
1753
|
-
argc, argv, &async)
|
1754
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
1755
|
-
# else
|
1756
|
-
return scope.Escape(
|
1757
|
-
Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
|
1758
|
-
# endif // NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1759
|
-
#else
|
1760
|
-
v8::HandleScope scope;
|
1761
|
-
return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
|
1762
|
-
#endif
|
1763
|
-
}
|
1764
|
-
|
1765
|
-
inline MaybeLocal<v8::Value>
|
1766
|
-
Call(v8::Local<v8::Object> target
|
1767
|
-
, int argc
|
1768
|
-
, v8::Local<v8::Value> argv[]
|
1769
|
-
, AsyncResource* resource) const {
|
1770
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1771
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
1772
|
-
return Call_(isolate, target, argc, argv, resource);
|
1773
|
-
#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1774
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
1775
|
-
return Call_(isolate, target, argc, argv);
|
1776
|
-
#else
|
1777
|
-
return Call_(target, argc, argv);
|
1778
|
-
#endif
|
1779
|
-
}
|
1780
|
-
|
1781
|
-
inline MaybeLocal<v8::Value>
|
1782
|
-
Call(int argc, v8::Local<v8::Value> argv[], AsyncResource* resource) const {
|
1783
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1784
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
1785
|
-
return Call(isolate->GetCurrentContext()->Global(), argc, argv, resource);
|
1786
|
-
#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1787
|
-
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
1788
|
-
v8::EscapableHandleScope scope(isolate);
|
1789
|
-
return scope.Escape(
|
1790
|
-
Call_(isolate, isolate->GetCurrentContext()->Global(), argc, argv));
|
1791
|
-
#else
|
1792
|
-
v8::HandleScope scope;
|
1793
|
-
return scope.Close(Call_(v8::Context::GetCurrent()->Global(), argc, argv));
|
1794
|
-
#endif
|
1795
|
-
}
|
1796
|
-
|
1797
|
-
private:
|
1798
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(Callback)
|
1799
|
-
Persistent<v8::Function> handle_;
|
1800
|
-
|
1801
|
-
#if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
|
1802
|
-
MaybeLocal<v8::Value> Call_(v8::Isolate *isolate
|
1803
|
-
, v8::Local<v8::Object> target
|
1804
|
-
, int argc
|
1805
|
-
, v8::Local<v8::Value> argv[]
|
1806
|
-
, AsyncResource* resource) const {
|
1807
|
-
EscapableHandleScope scope;
|
1808
|
-
v8::Local<v8::Function> func = New(handle_);
|
1809
|
-
auto maybe = resource->runInAsyncScope(target, func, argc, argv);
|
1810
|
-
v8::Local<v8::Value> local;
|
1811
|
-
if (!maybe.ToLocal(&local)) return MaybeLocal<v8::Value>();
|
1812
|
-
return scope.Escape(local);
|
1813
|
-
}
|
1814
|
-
#elif NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1815
|
-
v8::Local<v8::Value> Call_(v8::Isolate *isolate
|
1816
|
-
, v8::Local<v8::Object> target
|
1817
|
-
, int argc
|
1818
|
-
, v8::Local<v8::Value> argv[]) const {
|
1819
|
-
EscapableHandleScope scope;
|
1820
|
-
|
1821
|
-
v8::Local<v8::Function> callback = New(handle_);
|
1822
|
-
# if NODE_MODULE_VERSION < IOJS_3_0_MODULE_VERSION
|
1823
|
-
return scope.Escape(New(node::MakeCallback(
|
1824
|
-
isolate
|
1825
|
-
, target
|
1826
|
-
, callback
|
1827
|
-
, argc
|
1828
|
-
, argv
|
1829
|
-
)));
|
1830
|
-
# else
|
1831
|
-
return scope.Escape(node::MakeCallback(
|
1832
|
-
isolate
|
1833
|
-
, target
|
1834
|
-
, callback
|
1835
|
-
, argc
|
1836
|
-
, argv
|
1837
|
-
));
|
1838
|
-
# endif
|
1839
|
-
}
|
1840
|
-
#else
|
1841
|
-
v8::Local<v8::Value> Call_(v8::Local<v8::Object> target
|
1842
|
-
, int argc
|
1843
|
-
, v8::Local<v8::Value> argv[]) const {
|
1844
|
-
EscapableHandleScope scope;
|
1845
|
-
|
1846
|
-
v8::Local<v8::Function> callback = New(handle_);
|
1847
|
-
return scope.Escape(New(node::MakeCallback(
|
1848
|
-
target
|
1849
|
-
, callback
|
1850
|
-
, argc
|
1851
|
-
, argv
|
1852
|
-
)));
|
1853
|
-
}
|
1854
|
-
#endif
|
1855
|
-
};
|
1856
|
-
|
1857
|
-
inline MaybeLocal<v8::Value> Call(
|
1858
|
-
const Nan::Callback& callback
|
1859
|
-
, v8::Local<v8::Object> recv
|
1860
|
-
, int argc
|
1861
|
-
, v8::Local<v8::Value> argv[]) {
|
1862
|
-
return Call(*callback, recv, argc, argv);
|
1863
|
-
}
|
1864
|
-
|
1865
|
-
inline MaybeLocal<v8::Value> Call(
|
1866
|
-
const Nan::Callback& callback
|
1867
|
-
, int argc
|
1868
|
-
, v8::Local<v8::Value> argv[]) {
|
1869
|
-
#if NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION
|
1870
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
1871
|
-
v8::EscapableHandleScope scope(isolate);
|
1872
|
-
return scope.Escape(
|
1873
|
-
Call(*callback, isolate->GetCurrentContext()->Global(), argc, argv)
|
1874
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
1875
|
-
#else
|
1876
|
-
EscapableHandleScope scope;
|
1877
|
-
return scope.Escape(
|
1878
|
-
Call(*callback, v8::Context::GetCurrent()->Global(), argc, argv)
|
1879
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
1880
|
-
#endif
|
1881
|
-
}
|
1882
|
-
|
1883
|
-
inline MaybeLocal<v8::Value> Call(
|
1884
|
-
v8::Local<v8::String> symbol
|
1885
|
-
, v8::Local<v8::Object> recv
|
1886
|
-
, int argc
|
1887
|
-
, v8::Local<v8::Value> argv[]) {
|
1888
|
-
EscapableHandleScope scope;
|
1889
|
-
v8::Local<v8::Value> fn_v =
|
1890
|
-
Get(recv, symbol).FromMaybe(v8::Local<v8::Value>());
|
1891
|
-
if (fn_v.IsEmpty() || !fn_v->IsFunction()) return v8::Local<v8::Value>();
|
1892
|
-
v8::Local<v8::Function> fn = fn_v.As<v8::Function>();
|
1893
|
-
return scope.Escape(
|
1894
|
-
Call(fn, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
|
1895
|
-
}
|
1896
|
-
|
1897
|
-
inline MaybeLocal<v8::Value> Call(
|
1898
|
-
const char* method
|
1899
|
-
, v8::Local<v8::Object> recv
|
1900
|
-
, int argc
|
1901
|
-
, v8::Local<v8::Value> argv[]) {
|
1902
|
-
EscapableHandleScope scope;
|
1903
|
-
v8::Local<v8::String> method_string =
|
1904
|
-
New<v8::String>(method).ToLocalChecked();
|
1905
|
-
return scope.Escape(
|
1906
|
-
Call(method_string, recv, argc, argv).FromMaybe(v8::Local<v8::Value>()));
|
1907
|
-
}
|
1908
|
-
|
1909
|
-
/* abstract */ class AsyncWorker {
|
1910
|
-
public:
|
1911
|
-
explicit AsyncWorker(Callback *callback_,
|
1912
|
-
const char* resource_name = "nan:AsyncWorker")
|
1913
|
-
: callback(callback_), errmsg_(NULL) {
|
1914
|
-
request.data = this;
|
1915
|
-
|
1916
|
-
HandleScope scope;
|
1917
|
-
v8::Local<v8::Object> obj = New<v8::Object>();
|
1918
|
-
persistentHandle.Reset(obj);
|
1919
|
-
async_resource = new AsyncResource(resource_name, obj);
|
1920
|
-
}
|
1921
|
-
|
1922
|
-
virtual ~AsyncWorker() {
|
1923
|
-
HandleScope scope;
|
1924
|
-
|
1925
|
-
if (!persistentHandle.IsEmpty())
|
1926
|
-
persistentHandle.Reset();
|
1927
|
-
delete callback;
|
1928
|
-
delete[] errmsg_;
|
1929
|
-
delete async_resource;
|
1930
|
-
}
|
1931
|
-
|
1932
|
-
virtual void WorkComplete() {
|
1933
|
-
HandleScope scope;
|
1934
|
-
|
1935
|
-
if (errmsg_ == NULL)
|
1936
|
-
HandleOKCallback();
|
1937
|
-
else
|
1938
|
-
HandleErrorCallback();
|
1939
|
-
delete callback;
|
1940
|
-
callback = NULL;
|
1941
|
-
}
|
1942
|
-
|
1943
|
-
inline void SaveToPersistent(
|
1944
|
-
const char *key, const v8::Local<v8::Value> &value) {
|
1945
|
-
HandleScope scope;
|
1946
|
-
Set(New(persistentHandle), New(key).ToLocalChecked(), value).FromJust();
|
1947
|
-
}
|
1948
|
-
|
1949
|
-
inline void SaveToPersistent(
|
1950
|
-
const v8::Local<v8::String> &key, const v8::Local<v8::Value> &value) {
|
1951
|
-
HandleScope scope;
|
1952
|
-
Set(New(persistentHandle), key, value).FromJust();
|
1953
|
-
}
|
1954
|
-
|
1955
|
-
inline void SaveToPersistent(
|
1956
|
-
uint32_t index, const v8::Local<v8::Value> &value) {
|
1957
|
-
HandleScope scope;
|
1958
|
-
Set(New(persistentHandle), index, value).FromJust();
|
1959
|
-
}
|
1960
|
-
|
1961
|
-
inline v8::Local<v8::Value> GetFromPersistent(const char *key) const {
|
1962
|
-
EscapableHandleScope scope;
|
1963
|
-
return scope.Escape(
|
1964
|
-
Get(New(persistentHandle), New(key).ToLocalChecked())
|
1965
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
1966
|
-
}
|
1967
|
-
|
1968
|
-
inline v8::Local<v8::Value>
|
1969
|
-
GetFromPersistent(const v8::Local<v8::String> &key) const {
|
1970
|
-
EscapableHandleScope scope;
|
1971
|
-
return scope.Escape(
|
1972
|
-
Get(New(persistentHandle), key)
|
1973
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
1974
|
-
}
|
1975
|
-
|
1976
|
-
inline v8::Local<v8::Value> GetFromPersistent(uint32_t index) const {
|
1977
|
-
EscapableHandleScope scope;
|
1978
|
-
return scope.Escape(
|
1979
|
-
Get(New(persistentHandle), index)
|
1980
|
-
.FromMaybe(v8::Local<v8::Value>()));
|
1981
|
-
}
|
1982
|
-
|
1983
|
-
virtual void Execute() = 0;
|
1984
|
-
|
1985
|
-
uv_work_t request;
|
1986
|
-
|
1987
|
-
virtual void Destroy() {
|
1988
|
-
delete this;
|
1989
|
-
}
|
1990
|
-
|
1991
|
-
protected:
|
1992
|
-
Persistent<v8::Object> persistentHandle;
|
1993
|
-
Callback *callback;
|
1994
|
-
AsyncResource *async_resource;
|
1995
|
-
|
1996
|
-
virtual void HandleOKCallback() {
|
1997
|
-
HandleScope scope;
|
1998
|
-
|
1999
|
-
callback->Call(0, NULL, async_resource);
|
2000
|
-
}
|
2001
|
-
|
2002
|
-
virtual void HandleErrorCallback() {
|
2003
|
-
HandleScope scope;
|
2004
|
-
|
2005
|
-
v8::Local<v8::Value> argv[] = {
|
2006
|
-
v8::Exception::Error(New<v8::String>(ErrorMessage()).ToLocalChecked())
|
2007
|
-
};
|
2008
|
-
callback->Call(1, argv, async_resource);
|
2009
|
-
}
|
2010
|
-
|
2011
|
-
void SetErrorMessage(const char *msg) {
|
2012
|
-
delete[] errmsg_;
|
2013
|
-
|
2014
|
-
size_t size = strlen(msg) + 1;
|
2015
|
-
errmsg_ = new char[size];
|
2016
|
-
memcpy(errmsg_, msg, size);
|
2017
|
-
}
|
2018
|
-
|
2019
|
-
const char* ErrorMessage() const {
|
2020
|
-
return errmsg_;
|
2021
|
-
}
|
2022
|
-
|
2023
|
-
private:
|
2024
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(AsyncWorker)
|
2025
|
-
char *errmsg_;
|
2026
|
-
};
|
2027
|
-
|
2028
|
-
/* abstract */ class AsyncBareProgressWorkerBase : public AsyncWorker {
|
2029
|
-
public:
|
2030
|
-
explicit AsyncBareProgressWorkerBase(
|
2031
|
-
Callback *callback_,
|
2032
|
-
const char* resource_name = "nan:AsyncBareProgressWorkerBase")
|
2033
|
-
: AsyncWorker(callback_, resource_name) {
|
2034
|
-
uv_async_init(
|
2035
|
-
GetCurrentEventLoop()
|
2036
|
-
, &async
|
2037
|
-
, AsyncProgress_
|
2038
|
-
);
|
2039
|
-
async.data = this;
|
2040
|
-
}
|
2041
|
-
|
2042
|
-
virtual ~AsyncBareProgressWorkerBase() {
|
2043
|
-
}
|
2044
|
-
|
2045
|
-
virtual void WorkProgress() = 0;
|
2046
|
-
|
2047
|
-
virtual void Destroy() {
|
2048
|
-
uv_close(reinterpret_cast<uv_handle_t*>(&async), AsyncClose_);
|
2049
|
-
}
|
2050
|
-
|
2051
|
-
private:
|
2052
|
-
inline static NAUV_WORK_CB(AsyncProgress_) {
|
2053
|
-
AsyncBareProgressWorkerBase *worker =
|
2054
|
-
static_cast<AsyncBareProgressWorkerBase*>(async->data);
|
2055
|
-
worker->WorkProgress();
|
2056
|
-
}
|
2057
|
-
|
2058
|
-
inline static void AsyncClose_(uv_handle_t* handle) {
|
2059
|
-
AsyncBareProgressWorkerBase *worker =
|
2060
|
-
static_cast<AsyncBareProgressWorkerBase*>(handle->data);
|
2061
|
-
delete worker;
|
2062
|
-
}
|
2063
|
-
|
2064
|
-
protected:
|
2065
|
-
uv_async_t async;
|
2066
|
-
};
|
2067
|
-
|
2068
|
-
template<class T>
|
2069
|
-
/* abstract */
|
2070
|
-
class AsyncBareProgressWorker : public AsyncBareProgressWorkerBase {
|
2071
|
-
public:
|
2072
|
-
explicit AsyncBareProgressWorker(
|
2073
|
-
Callback *callback_,
|
2074
|
-
const char* resource_name = "nan:AsyncBareProgressWorker")
|
2075
|
-
: AsyncBareProgressWorkerBase(callback_, resource_name) {
|
2076
|
-
uv_mutex_init(&async_lock);
|
2077
|
-
}
|
2078
|
-
|
2079
|
-
virtual ~AsyncBareProgressWorker() {
|
2080
|
-
uv_mutex_destroy(&async_lock);
|
2081
|
-
}
|
2082
|
-
|
2083
|
-
class ExecutionProgress {
|
2084
|
-
friend class AsyncBareProgressWorker;
|
2085
|
-
public:
|
2086
|
-
void Signal() const {
|
2087
|
-
uv_mutex_lock(&that_->async_lock);
|
2088
|
-
uv_async_send(&that_->async);
|
2089
|
-
uv_mutex_unlock(&that_->async_lock);
|
2090
|
-
}
|
2091
|
-
|
2092
|
-
void Send(const T* data, size_t count) const {
|
2093
|
-
that_->SendProgress_(data, count);
|
2094
|
-
}
|
2095
|
-
|
2096
|
-
private:
|
2097
|
-
explicit ExecutionProgress(AsyncBareProgressWorker *that) : that_(that) {}
|
2098
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
|
2099
|
-
AsyncBareProgressWorker* const that_;
|
2100
|
-
};
|
2101
|
-
|
2102
|
-
virtual void Execute(const ExecutionProgress& progress) = 0;
|
2103
|
-
virtual void HandleProgressCallback(const T *data, size_t size) = 0;
|
2104
|
-
|
2105
|
-
protected:
|
2106
|
-
uv_mutex_t async_lock;
|
2107
|
-
|
2108
|
-
private:
|
2109
|
-
void Execute() /*final override*/ {
|
2110
|
-
ExecutionProgress progress(this);
|
2111
|
-
Execute(progress);
|
2112
|
-
}
|
2113
|
-
|
2114
|
-
virtual void SendProgress_(const T *data, size_t count) = 0;
|
2115
|
-
};
|
2116
|
-
|
2117
|
-
template<class T>
|
2118
|
-
/* abstract */
|
2119
|
-
class AsyncProgressWorkerBase : public AsyncBareProgressWorker<T> {
|
2120
|
-
public:
|
2121
|
-
explicit AsyncProgressWorkerBase(
|
2122
|
-
Callback *callback_,
|
2123
|
-
const char* resource_name = "nan:AsyncProgressWorkerBase")
|
2124
|
-
: AsyncBareProgressWorker<T>(callback_, resource_name), asyncdata_(NULL),
|
2125
|
-
asyncsize_(0) {
|
2126
|
-
}
|
2127
|
-
|
2128
|
-
virtual ~AsyncProgressWorkerBase() {
|
2129
|
-
delete[] asyncdata_;
|
2130
|
-
}
|
2131
|
-
|
2132
|
-
void WorkProgress() {
|
2133
|
-
uv_mutex_lock(&this->async_lock);
|
2134
|
-
T *data = asyncdata_;
|
2135
|
-
size_t size = asyncsize_;
|
2136
|
-
asyncdata_ = NULL;
|
2137
|
-
asyncsize_ = 0;
|
2138
|
-
uv_mutex_unlock(&this->async_lock);
|
2139
|
-
|
2140
|
-
// Don't send progress events after we've already completed.
|
2141
|
-
if (this->callback) {
|
2142
|
-
this->HandleProgressCallback(data, size);
|
2143
|
-
}
|
2144
|
-
delete[] data;
|
2145
|
-
}
|
2146
|
-
|
2147
|
-
private:
|
2148
|
-
void SendProgress_(const T *data, size_t count) {
|
2149
|
-
T *new_data = new T[count];
|
2150
|
-
std::copy(data, data + count, new_data);
|
2151
|
-
|
2152
|
-
uv_mutex_lock(&this->async_lock);
|
2153
|
-
T *old_data = asyncdata_;
|
2154
|
-
asyncdata_ = new_data;
|
2155
|
-
asyncsize_ = count;
|
2156
|
-
uv_async_send(&this->async);
|
2157
|
-
uv_mutex_unlock(&this->async_lock);
|
2158
|
-
|
2159
|
-
delete[] old_data;
|
2160
|
-
}
|
2161
|
-
|
2162
|
-
T *asyncdata_;
|
2163
|
-
size_t asyncsize_;
|
2164
|
-
};
|
2165
|
-
|
2166
|
-
// This ensures compatibility to the previous un-templated AsyncProgressWorker
|
2167
|
-
// class definition.
|
2168
|
-
typedef AsyncProgressWorkerBase<char> AsyncProgressWorker;
|
2169
|
-
|
2170
|
-
template<class T>
|
2171
|
-
/* abstract */
|
2172
|
-
class AsyncBareProgressQueueWorker : public AsyncBareProgressWorkerBase {
|
2173
|
-
public:
|
2174
|
-
explicit AsyncBareProgressQueueWorker(
|
2175
|
-
Callback *callback_,
|
2176
|
-
const char* resource_name = "nan:AsyncBareProgressQueueWorker")
|
2177
|
-
: AsyncBareProgressWorkerBase(callback_, resource_name) {
|
2178
|
-
}
|
2179
|
-
|
2180
|
-
virtual ~AsyncBareProgressQueueWorker() {
|
2181
|
-
}
|
2182
|
-
|
2183
|
-
class ExecutionProgress {
|
2184
|
-
friend class AsyncBareProgressQueueWorker;
|
2185
|
-
public:
|
2186
|
-
void Send(const T* data, size_t count) const {
|
2187
|
-
that_->SendProgress_(data, count);
|
2188
|
-
}
|
2189
|
-
|
2190
|
-
private:
|
2191
|
-
explicit ExecutionProgress(AsyncBareProgressQueueWorker *that)
|
2192
|
-
: that_(that) {}
|
2193
|
-
NAN_DISALLOW_ASSIGN_COPY_MOVE(ExecutionProgress)
|
2194
|
-
AsyncBareProgressQueueWorker* const that_;
|
2195
|
-
};
|
2196
|
-
|
2197
|
-
virtual void Execute(const ExecutionProgress& progress) = 0;
|
2198
|
-
virtual void HandleProgressCallback(const T *data, size_t size) = 0;
|
2199
|
-
|
2200
|
-
private:
|
2201
|
-
void Execute() /*final override*/ {
|
2202
|
-
ExecutionProgress progress(this);
|
2203
|
-
Execute(progress);
|
2204
|
-
}
|
2205
|
-
|
2206
|
-
virtual void SendProgress_(const T *data, size_t count) = 0;
|
2207
|
-
};
|
2208
|
-
|
2209
|
-
template<class T>
|
2210
|
-
/* abstract */
|
2211
|
-
class AsyncProgressQueueWorker : public AsyncBareProgressQueueWorker<T> {
|
2212
|
-
public:
|
2213
|
-
explicit AsyncProgressQueueWorker(
|
2214
|
-
Callback *callback_,
|
2215
|
-
const char* resource_name = "nan:AsyncProgressQueueWorker")
|
2216
|
-
: AsyncBareProgressQueueWorker<T>(callback_) {
|
2217
|
-
uv_mutex_init(&async_lock);
|
2218
|
-
}
|
2219
|
-
|
2220
|
-
virtual ~AsyncProgressQueueWorker() {
|
2221
|
-
uv_mutex_lock(&async_lock);
|
2222
|
-
|
2223
|
-
while (!asyncdata_.empty()) {
|
2224
|
-
std::pair<T*, size_t> &datapair = asyncdata_.front();
|
2225
|
-
T *data = datapair.first;
|
2226
|
-
|
2227
|
-
asyncdata_.pop();
|
2228
|
-
|
2229
|
-
delete[] data;
|
2230
|
-
}
|
2231
|
-
|
2232
|
-
uv_mutex_unlock(&async_lock);
|
2233
|
-
uv_mutex_destroy(&async_lock);
|
2234
|
-
}
|
2235
|
-
|
2236
|
-
void WorkComplete() {
|
2237
|
-
WorkProgress();
|
2238
|
-
AsyncWorker::WorkComplete();
|
2239
|
-
}
|
2240
|
-
|
2241
|
-
void WorkProgress() {
|
2242
|
-
uv_mutex_lock(&async_lock);
|
2243
|
-
|
2244
|
-
while (!asyncdata_.empty()) {
|
2245
|
-
std::pair<T*, size_t> &datapair = asyncdata_.front();
|
2246
|
-
|
2247
|
-
T *data = datapair.first;
|
2248
|
-
size_t size = datapair.second;
|
2249
|
-
|
2250
|
-
asyncdata_.pop();
|
2251
|
-
uv_mutex_unlock(&async_lock);
|
2252
|
-
|
2253
|
-
// Don't send progress events after we've already completed.
|
2254
|
-
if (this->callback) {
|
2255
|
-
this->HandleProgressCallback(data, size);
|
2256
|
-
}
|
2257
|
-
|
2258
|
-
delete[] data;
|
2259
|
-
|
2260
|
-
uv_mutex_lock(&async_lock);
|
2261
|
-
}
|
2262
|
-
|
2263
|
-
uv_mutex_unlock(&async_lock);
|
2264
|
-
}
|
2265
|
-
|
2266
|
-
private:
|
2267
|
-
void SendProgress_(const T *data, size_t count) {
|
2268
|
-
T *new_data = new T[count];
|
2269
|
-
std::copy(data, data + count, new_data);
|
2270
|
-
|
2271
|
-
uv_mutex_lock(&async_lock);
|
2272
|
-
asyncdata_.push(std::pair<T*, size_t>(new_data, count));
|
2273
|
-
uv_mutex_unlock(&async_lock);
|
2274
|
-
|
2275
|
-
uv_async_send(&this->async);
|
2276
|
-
}
|
2277
|
-
|
2278
|
-
uv_mutex_t async_lock;
|
2279
|
-
std::queue<std::pair<T*, size_t> > asyncdata_;
|
2280
|
-
};
|
2281
|
-
|
2282
|
-
inline void AsyncExecute (uv_work_t* req) {
|
2283
|
-
AsyncWorker *worker = static_cast<AsyncWorker*>(req->data);
|
2284
|
-
worker->Execute();
|
2285
|
-
}
|
2286
|
-
|
2287
|
-
/* uv_after_work_cb has 1 argument before node-v0.9.4 and
|
2288
|
-
* 2 arguments since node-v0.9.4
|
2289
|
-
* https://github.com/libuv/libuv/commit/92fb84b751e18f032c02609467f44bfe927b80c5
|
2290
|
-
*/
|
2291
|
-
inline void AsyncExecuteComplete(uv_work_t *req) {
|
2292
|
-
AsyncWorker* worker = static_cast<AsyncWorker*>(req->data);
|
2293
|
-
worker->WorkComplete();
|
2294
|
-
worker->Destroy();
|
2295
|
-
}
|
2296
|
-
inline void AsyncExecuteComplete (uv_work_t* req, int status) {
|
2297
|
-
AsyncExecuteComplete(req);
|
2298
|
-
}
|
2299
|
-
|
2300
|
-
inline void AsyncQueueWorker (AsyncWorker* worker) {
|
2301
|
-
uv_queue_work(
|
2302
|
-
GetCurrentEventLoop()
|
2303
|
-
, &worker->request
|
2304
|
-
, AsyncExecute
|
2305
|
-
, AsyncExecuteComplete
|
2306
|
-
);
|
2307
|
-
}
|
2308
|
-
|
2309
|
-
namespace imp {
|
2310
|
-
|
2311
|
-
inline
|
2312
|
-
ExternalOneByteStringResource const*
|
2313
|
-
GetExternalResource(v8::Local<v8::String> str) {
|
2314
|
-
#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
|
2315
|
-
return str->GetExternalAsciiStringResource();
|
2316
|
-
#else
|
2317
|
-
return str->GetExternalOneByteStringResource();
|
2318
|
-
#endif
|
2319
|
-
}
|
2320
|
-
|
2321
|
-
inline
|
2322
|
-
bool
|
2323
|
-
IsExternal(v8::Local<v8::String> str) {
|
2324
|
-
#if NODE_MODULE_VERSION < ATOM_0_21_MODULE_VERSION
|
2325
|
-
return str->IsExternalAscii();
|
2326
|
-
#else
|
2327
|
-
return str->IsExternalOneByte();
|
2328
|
-
#endif
|
2329
|
-
}
|
2330
|
-
|
2331
|
-
} // end of namespace imp
|
2332
|
-
|
2333
|
-
enum Encoding {ASCII, UTF8, BASE64, UCS2, BINARY, HEX, BUFFER};
|
2334
|
-
|
2335
|
-
#if NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION
|
2336
|
-
# include "nan_string_bytes.h" // NOLINT(build/include)
|
2337
|
-
#endif
|
2338
|
-
|
2339
|
-
inline v8::Local<v8::Value> Encode(
|
2340
|
-
const void *buf, size_t len, enum Encoding encoding = BINARY) {
|
2341
|
-
#if (NODE_MODULE_VERSION >= ATOM_0_21_MODULE_VERSION)
|
2342
|
-
v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
2343
|
-
node::encoding node_enc = static_cast<node::encoding>(encoding);
|
2344
|
-
|
2345
|
-
if (encoding == UCS2) {
|
2346
|
-
return node::Encode(
|
2347
|
-
isolate
|
2348
|
-
, reinterpret_cast<const uint16_t *>(buf)
|
2349
|
-
, len / 2);
|
2350
|
-
} else {
|
2351
|
-
return node::Encode(
|
2352
|
-
isolate
|
2353
|
-
, reinterpret_cast<const char *>(buf)
|
2354
|
-
, len
|
2355
|
-
, node_enc);
|
2356
|
-
}
|
2357
|
-
#elif (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
2358
|
-
return node::Encode(
|
2359
|
-
v8::Isolate::GetCurrent()
|
2360
|
-
, buf, len
|
2361
|
-
, static_cast<node::encoding>(encoding));
|
2362
|
-
#else
|
2363
|
-
# if NODE_MODULE_VERSION >= NODE_0_10_MODULE_VERSION
|
2364
|
-
return node::Encode(buf, len, static_cast<node::encoding>(encoding));
|
2365
|
-
# else
|
2366
|
-
return imp::Encode(reinterpret_cast<const char*>(buf), len, encoding);
|
2367
|
-
# endif
|
2368
|
-
#endif
|
2369
|
-
}
|
2370
|
-
|
2371
|
-
inline ssize_t DecodeBytes(
|
2372
|
-
v8::Local<v8::Value> val, enum Encoding encoding = BINARY) {
|
2373
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
2374
|
-
return node::DecodeBytes(
|
2375
|
-
v8::Isolate::GetCurrent()
|
2376
|
-
, val
|
2377
|
-
, static_cast<node::encoding>(encoding));
|
2378
|
-
#else
|
2379
|
-
# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
|
2380
|
-
if (encoding == BUFFER) {
|
2381
|
-
return node::DecodeBytes(val, node::BINARY);
|
2382
|
-
}
|
2383
|
-
# endif
|
2384
|
-
return node::DecodeBytes(val, static_cast<node::encoding>(encoding));
|
2385
|
-
#endif
|
2386
|
-
}
|
2387
|
-
|
2388
|
-
inline ssize_t DecodeWrite(
|
2389
|
-
char *buf
|
2390
|
-
, size_t len
|
2391
|
-
, v8::Local<v8::Value> val
|
2392
|
-
, enum Encoding encoding = BINARY) {
|
2393
|
-
#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
|
2394
|
-
return node::DecodeWrite(
|
2395
|
-
v8::Isolate::GetCurrent()
|
2396
|
-
, buf
|
2397
|
-
, len
|
2398
|
-
, val
|
2399
|
-
, static_cast<node::encoding>(encoding));
|
2400
|
-
#else
|
2401
|
-
# if (NODE_MODULE_VERSION < NODE_0_10_MODULE_VERSION)
|
2402
|
-
if (encoding == BUFFER) {
|
2403
|
-
return node::DecodeWrite(buf, len, val, node::BINARY);
|
2404
|
-
}
|
2405
|
-
# endif
|
2406
|
-
return node::DecodeWrite(
|
2407
|
-
buf
|
2408
|
-
, len
|
2409
|
-
, val
|
2410
|
-
, static_cast<node::encoding>(encoding));
|
2411
|
-
#endif
|
2412
|
-
}
|
2413
|
-
|
2414
|
-
inline void SetPrototypeTemplate(
|
2415
|
-
v8::Local<v8::FunctionTemplate> templ
|
2416
|
-
, const char *name
|
2417
|
-
, v8::Local<v8::Data> value
|
2418
|
-
) {
|
2419
|
-
HandleScope scope;
|
2420
|
-
SetTemplate(templ->PrototypeTemplate(), name, value);
|
2421
|
-
}
|
2422
|
-
|
2423
|
-
inline void SetPrototypeTemplate(
|
2424
|
-
v8::Local<v8::FunctionTemplate> templ
|
2425
|
-
, v8::Local<v8::String> name
|
2426
|
-
, v8::Local<v8::Data> value
|
2427
|
-
, v8::PropertyAttribute attributes
|
2428
|
-
) {
|
2429
|
-
HandleScope scope;
|
2430
|
-
SetTemplate(templ->PrototypeTemplate(), name, value, attributes);
|
2431
|
-
}
|
2432
|
-
|
2433
|
-
inline void SetInstanceTemplate(
|
2434
|
-
v8::Local<v8::FunctionTemplate> templ
|
2435
|
-
, const char *name
|
2436
|
-
, v8::Local<v8::Data> value
|
2437
|
-
) {
|
2438
|
-
HandleScope scope;
|
2439
|
-
SetTemplate(templ->InstanceTemplate(), name, value);
|
2440
|
-
}
|
2441
|
-
|
2442
|
-
inline void SetInstanceTemplate(
|
2443
|
-
v8::Local<v8::FunctionTemplate> templ
|
2444
|
-
, v8::Local<v8::String> name
|
2445
|
-
, v8::Local<v8::Data> value
|
2446
|
-
, v8::PropertyAttribute attributes
|
2447
|
-
) {
|
2448
|
-
HandleScope scope;
|
2449
|
-
SetTemplate(templ->InstanceTemplate(), name, value, attributes);
|
2450
|
-
}
|
2451
|
-
|
2452
|
-
namespace imp {
|
2453
|
-
|
2454
|
-
// Note(@agnat): Helper to distinguish different receiver types. The first
|
2455
|
-
// version deals with receivers derived from v8::Template. The second version
|
2456
|
-
// handles everything else. The final argument only serves as discriminator and
|
2457
|
-
// is unused.
|
2458
|
-
template <typename T>
|
2459
|
-
inline
|
2460
|
-
void
|
2461
|
-
SetMethodAux(T recv,
|
2462
|
-
v8::Local<v8::String> name,
|
2463
|
-
v8::Local<v8::FunctionTemplate> tpl,
|
2464
|
-
v8::Template *) {
|
2465
|
-
recv->Set(name, tpl);
|
2466
|
-
}
|
2467
|
-
|
2468
|
-
template <typename T>
|
2469
|
-
inline
|
2470
|
-
void
|
2471
|
-
SetMethodAux(T recv,
|
2472
|
-
v8::Local<v8::String> name,
|
2473
|
-
v8::Local<v8::FunctionTemplate> tpl,
|
2474
|
-
...) {
|
2475
|
-
Set(recv, name, GetFunction(tpl).ToLocalChecked());
|
2476
|
-
}
|
2477
|
-
|
2478
|
-
} // end of namespace imp
|
2479
|
-
|
2480
|
-
template <typename T, template <typename> class HandleType>
|
2481
|
-
inline void SetMethod(
|
2482
|
-
HandleType<T> recv
|
2483
|
-
, const char *name
|
2484
|
-
, FunctionCallback callback
|
2485
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
2486
|
-
HandleScope scope;
|
2487
|
-
v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(callback, data);
|
2488
|
-
v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
|
2489
|
-
t->SetClassName(fn_name);
|
2490
|
-
// Note(@agnat): Pass an empty T* as discriminator. See note on
|
2491
|
-
// SetMethodAux(...) above
|
2492
|
-
imp::SetMethodAux(recv, fn_name, t, static_cast<T*>(0));
|
2493
|
-
}
|
2494
|
-
|
2495
|
-
inline void SetPrototypeMethod(
|
2496
|
-
v8::Local<v8::FunctionTemplate> recv
|
2497
|
-
, const char* name
|
2498
|
-
, FunctionCallback callback
|
2499
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
2500
|
-
HandleScope scope;
|
2501
|
-
v8::Local<v8::FunctionTemplate> t = New<v8::FunctionTemplate>(
|
2502
|
-
callback
|
2503
|
-
, data
|
2504
|
-
, New<v8::Signature>(recv));
|
2505
|
-
v8::Local<v8::String> fn_name = New(name).ToLocalChecked();
|
2506
|
-
recv->PrototypeTemplate()->Set(fn_name, t);
|
2507
|
-
t->SetClassName(fn_name);
|
2508
|
-
}
|
2509
|
-
|
2510
|
-
//=== Accessors and Such =======================================================
|
2511
|
-
|
2512
|
-
inline void SetAccessor(
|
2513
|
-
v8::Local<v8::ObjectTemplate> tpl
|
2514
|
-
, v8::Local<v8::String> name
|
2515
|
-
, GetterCallback getter
|
2516
|
-
, SetterCallback setter = 0
|
2517
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()
|
2518
|
-
, v8::AccessControl settings = v8::DEFAULT
|
2519
|
-
, v8::PropertyAttribute attribute = v8::None
|
2520
|
-
, imp::Sig signature = imp::Sig()) {
|
2521
|
-
HandleScope scope;
|
2522
|
-
|
2523
|
-
imp::NativeGetter getter_ =
|
2524
|
-
imp::GetterCallbackWrapper;
|
2525
|
-
imp::NativeSetter setter_ =
|
2526
|
-
setter ? imp::SetterCallbackWrapper : 0;
|
2527
|
-
|
2528
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
2529
|
-
otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
|
2530
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
2531
|
-
|
2532
|
-
obj->SetInternalField(
|
2533
|
-
imp::kGetterIndex
|
2534
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
2535
|
-
|
2536
|
-
if (setter != 0) {
|
2537
|
-
obj->SetInternalField(
|
2538
|
-
imp::kSetterIndex
|
2539
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
2540
|
-
}
|
2541
|
-
|
2542
|
-
if (!data.IsEmpty()) {
|
2543
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
2544
|
-
}
|
2545
|
-
|
2546
|
-
tpl->SetAccessor(
|
2547
|
-
name
|
2548
|
-
, getter_
|
2549
|
-
, setter_
|
2550
|
-
, obj
|
2551
|
-
, settings
|
2552
|
-
, attribute
|
2553
|
-
#if (NODE_MODULE_VERSION < NODE_18_0_MODULE_VERSION)
|
2554
|
-
, signature
|
2555
|
-
#endif
|
2556
|
-
);
|
2557
|
-
}
|
2558
|
-
|
2559
|
-
inline bool SetAccessor(
|
2560
|
-
v8::Local<v8::Object> obj
|
2561
|
-
, v8::Local<v8::String> name
|
2562
|
-
, GetterCallback getter
|
2563
|
-
, SetterCallback setter = 0
|
2564
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()
|
2565
|
-
, v8::AccessControl settings = v8::DEFAULT
|
2566
|
-
, v8::PropertyAttribute attribute = v8::None) {
|
2567
|
-
HandleScope scope;
|
2568
|
-
|
2569
|
-
imp::NativeGetter getter_ =
|
2570
|
-
imp::GetterCallbackWrapper;
|
2571
|
-
imp::NativeSetter setter_ =
|
2572
|
-
setter ? imp::SetterCallbackWrapper : 0;
|
2573
|
-
|
2574
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
2575
|
-
otpl->SetInternalFieldCount(imp::kAccessorFieldCount);
|
2576
|
-
v8::Local<v8::Object> dataobj = NewInstance(otpl).ToLocalChecked();
|
2577
|
-
|
2578
|
-
dataobj->SetInternalField(
|
2579
|
-
imp::kGetterIndex
|
2580
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
2581
|
-
|
2582
|
-
if (!data.IsEmpty()) {
|
2583
|
-
dataobj->SetInternalField(imp::kDataIndex, data);
|
2584
|
-
}
|
2585
|
-
|
2586
|
-
if (setter) {
|
2587
|
-
dataobj->SetInternalField(
|
2588
|
-
imp::kSetterIndex
|
2589
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
2590
|
-
}
|
2591
|
-
|
2592
|
-
#if (NODE_MODULE_VERSION >= NODE_6_0_MODULE_VERSION)
|
2593
|
-
return obj->SetAccessor(
|
2594
|
-
GetCurrentContext()
|
2595
|
-
, name
|
2596
|
-
, getter_
|
2597
|
-
, setter_
|
2598
|
-
, dataobj
|
2599
|
-
, settings
|
2600
|
-
, attribute).FromMaybe(false);
|
2601
|
-
#else
|
2602
|
-
return obj->SetAccessor(
|
2603
|
-
name
|
2604
|
-
, getter_
|
2605
|
-
, setter_
|
2606
|
-
, dataobj
|
2607
|
-
, settings
|
2608
|
-
, attribute);
|
2609
|
-
#endif
|
2610
|
-
}
|
2611
|
-
|
2612
|
-
inline void SetNamedPropertyHandler(
|
2613
|
-
v8::Local<v8::ObjectTemplate> tpl
|
2614
|
-
, PropertyGetterCallback getter
|
2615
|
-
, PropertySetterCallback setter = 0
|
2616
|
-
, PropertyQueryCallback query = 0
|
2617
|
-
, PropertyDeleterCallback deleter = 0
|
2618
|
-
, PropertyEnumeratorCallback enumerator = 0
|
2619
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
2620
|
-
HandleScope scope;
|
2621
|
-
|
2622
|
-
imp::NativePropertyGetter getter_ =
|
2623
|
-
imp::PropertyGetterCallbackWrapper;
|
2624
|
-
imp::NativePropertySetter setter_ =
|
2625
|
-
setter ? imp::PropertySetterCallbackWrapper : 0;
|
2626
|
-
imp::NativePropertyQuery query_ =
|
2627
|
-
query ? imp::PropertyQueryCallbackWrapper : 0;
|
2628
|
-
imp::NativePropertyDeleter *deleter_ =
|
2629
|
-
deleter ? imp::PropertyDeleterCallbackWrapper : 0;
|
2630
|
-
imp::NativePropertyEnumerator enumerator_ =
|
2631
|
-
enumerator ? imp::PropertyEnumeratorCallbackWrapper : 0;
|
2632
|
-
|
2633
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
2634
|
-
otpl->SetInternalFieldCount(imp::kPropertyFieldCount);
|
2635
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
2636
|
-
obj->SetInternalField(
|
2637
|
-
imp::kPropertyGetterIndex
|
2638
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
2639
|
-
|
2640
|
-
if (setter) {
|
2641
|
-
obj->SetInternalField(
|
2642
|
-
imp::kPropertySetterIndex
|
2643
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
2644
|
-
}
|
2645
|
-
|
2646
|
-
if (query) {
|
2647
|
-
obj->SetInternalField(
|
2648
|
-
imp::kPropertyQueryIndex
|
2649
|
-
, New<v8::External>(reinterpret_cast<void *>(query)));
|
2650
|
-
}
|
2651
|
-
|
2652
|
-
if (deleter) {
|
2653
|
-
obj->SetInternalField(
|
2654
|
-
imp::kPropertyDeleterIndex
|
2655
|
-
, New<v8::External>(reinterpret_cast<void *>(deleter)));
|
2656
|
-
}
|
2657
|
-
|
2658
|
-
if (enumerator) {
|
2659
|
-
obj->SetInternalField(
|
2660
|
-
imp::kPropertyEnumeratorIndex
|
2661
|
-
, New<v8::External>(reinterpret_cast<void *>(enumerator)));
|
2662
|
-
}
|
2663
|
-
|
2664
|
-
if (!data.IsEmpty()) {
|
2665
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
2666
|
-
}
|
2667
|
-
|
2668
|
-
#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
|
2669
|
-
tpl->SetHandler(v8::NamedPropertyHandlerConfiguration(
|
2670
|
-
getter_, setter_, query_, deleter_, enumerator_, obj));
|
2671
|
-
#else
|
2672
|
-
tpl->SetNamedPropertyHandler(
|
2673
|
-
getter_
|
2674
|
-
, setter_
|
2675
|
-
, query_
|
2676
|
-
, deleter_
|
2677
|
-
, enumerator_
|
2678
|
-
, obj);
|
2679
|
-
#endif
|
2680
|
-
}
|
2681
|
-
|
2682
|
-
inline void SetIndexedPropertyHandler(
|
2683
|
-
v8::Local<v8::ObjectTemplate> tpl
|
2684
|
-
, IndexGetterCallback getter
|
2685
|
-
, IndexSetterCallback setter = 0
|
2686
|
-
, IndexQueryCallback query = 0
|
2687
|
-
, IndexDeleterCallback deleter = 0
|
2688
|
-
, IndexEnumeratorCallback enumerator = 0
|
2689
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
2690
|
-
HandleScope scope;
|
2691
|
-
|
2692
|
-
imp::NativeIndexGetter getter_ =
|
2693
|
-
imp::IndexGetterCallbackWrapper;
|
2694
|
-
imp::NativeIndexSetter setter_ =
|
2695
|
-
setter ? imp::IndexSetterCallbackWrapper : 0;
|
2696
|
-
imp::NativeIndexQuery query_ =
|
2697
|
-
query ? imp::IndexQueryCallbackWrapper : 0;
|
2698
|
-
imp::NativeIndexDeleter deleter_ =
|
2699
|
-
deleter ? imp::IndexDeleterCallbackWrapper : 0;
|
2700
|
-
imp::NativeIndexEnumerator enumerator_ =
|
2701
|
-
enumerator ? imp::IndexEnumeratorCallbackWrapper : 0;
|
2702
|
-
|
2703
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
2704
|
-
otpl->SetInternalFieldCount(imp::kIndexPropertyFieldCount);
|
2705
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
2706
|
-
obj->SetInternalField(
|
2707
|
-
imp::kIndexPropertyGetterIndex
|
2708
|
-
, New<v8::External>(reinterpret_cast<void *>(getter)));
|
2709
|
-
|
2710
|
-
if (setter) {
|
2711
|
-
obj->SetInternalField(
|
2712
|
-
imp::kIndexPropertySetterIndex
|
2713
|
-
, New<v8::External>(reinterpret_cast<void *>(setter)));
|
2714
|
-
}
|
2715
|
-
|
2716
|
-
if (query) {
|
2717
|
-
obj->SetInternalField(
|
2718
|
-
imp::kIndexPropertyQueryIndex
|
2719
|
-
, New<v8::External>(reinterpret_cast<void *>(query)));
|
2720
|
-
}
|
2721
|
-
|
2722
|
-
if (deleter) {
|
2723
|
-
obj->SetInternalField(
|
2724
|
-
imp::kIndexPropertyDeleterIndex
|
2725
|
-
, New<v8::External>(reinterpret_cast<void *>(deleter)));
|
2726
|
-
}
|
2727
|
-
|
2728
|
-
if (enumerator) {
|
2729
|
-
obj->SetInternalField(
|
2730
|
-
imp::kIndexPropertyEnumeratorIndex
|
2731
|
-
, New<v8::External>(reinterpret_cast<void *>(enumerator)));
|
2732
|
-
}
|
2733
|
-
|
2734
|
-
if (!data.IsEmpty()) {
|
2735
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
2736
|
-
}
|
2737
|
-
|
2738
|
-
#if NODE_MODULE_VERSION > NODE_0_12_MODULE_VERSION
|
2739
|
-
tpl->SetHandler(v8::IndexedPropertyHandlerConfiguration(
|
2740
|
-
getter_, setter_, query_, deleter_, enumerator_, obj));
|
2741
|
-
#else
|
2742
|
-
tpl->SetIndexedPropertyHandler(
|
2743
|
-
getter_
|
2744
|
-
, setter_
|
2745
|
-
, query_
|
2746
|
-
, deleter_
|
2747
|
-
, enumerator_
|
2748
|
-
, obj);
|
2749
|
-
#endif
|
2750
|
-
}
|
2751
|
-
|
2752
|
-
inline void SetCallHandler(
|
2753
|
-
v8::Local<v8::FunctionTemplate> tpl
|
2754
|
-
, FunctionCallback callback
|
2755
|
-
, v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
2756
|
-
HandleScope scope;
|
2757
|
-
|
2758
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
2759
|
-
otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
|
2760
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
2761
|
-
|
2762
|
-
obj->SetInternalField(
|
2763
|
-
imp::kFunctionIndex
|
2764
|
-
, New<v8::External>(reinterpret_cast<void *>(callback)));
|
2765
|
-
|
2766
|
-
if (!data.IsEmpty()) {
|
2767
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
2768
|
-
}
|
2769
|
-
|
2770
|
-
tpl->SetCallHandler(imp::FunctionCallbackWrapper, obj);
|
2771
|
-
}
|
2772
|
-
|
2773
|
-
|
2774
|
-
inline void SetCallAsFunctionHandler(
|
2775
|
-
v8::Local<v8::ObjectTemplate> tpl,
|
2776
|
-
FunctionCallback callback,
|
2777
|
-
v8::Local<v8::Value> data = v8::Local<v8::Value>()) {
|
2778
|
-
HandleScope scope;
|
2779
|
-
|
2780
|
-
v8::Local<v8::ObjectTemplate> otpl = New<v8::ObjectTemplate>();
|
2781
|
-
otpl->SetInternalFieldCount(imp::kFunctionFieldCount);
|
2782
|
-
v8::Local<v8::Object> obj = NewInstance(otpl).ToLocalChecked();
|
2783
|
-
|
2784
|
-
obj->SetInternalField(
|
2785
|
-
imp::kFunctionIndex
|
2786
|
-
, New<v8::External>(reinterpret_cast<void *>(callback)));
|
2787
|
-
|
2788
|
-
if (!data.IsEmpty()) {
|
2789
|
-
obj->SetInternalField(imp::kDataIndex, data);
|
2790
|
-
}
|
2791
|
-
|
2792
|
-
tpl->SetCallAsFunctionHandler(imp::FunctionCallbackWrapper, obj);
|
2793
|
-
}
|
2794
|
-
|
2795
|
-
//=== Weak Persistent Handling =================================================
|
2796
|
-
|
2797
|
-
#include "nan_weak.h" // NOLINT(build/include)
|
2798
|
-
|
2799
|
-
//=== ObjectWrap ===============================================================
|
2800
|
-
|
2801
|
-
#include "nan_object_wrap.h" // NOLINT(build/include)
|
2802
|
-
|
2803
|
-
//=== HiddenValue/Private ======================================================
|
2804
|
-
|
2805
|
-
#include "nan_private.h" // NOLINT(build/include)
|
2806
|
-
|
2807
|
-
//=== Export ==================================================================
|
2808
|
-
|
2809
|
-
inline
|
2810
|
-
void
|
2811
|
-
Export(ADDON_REGISTER_FUNCTION_ARGS_TYPE target, const char *name,
|
2812
|
-
FunctionCallback f) {
|
2813
|
-
HandleScope scope;
|
2814
|
-
|
2815
|
-
Set(target, New<v8::String>(name).ToLocalChecked(),
|
2816
|
-
GetFunction(New<v8::FunctionTemplate>(f)).ToLocalChecked());
|
2817
|
-
}
|
2818
|
-
|
2819
|
-
//=== Tap Reverse Binding =====================================================
|
2820
|
-
|
2821
|
-
struct Tap {
|
2822
|
-
explicit Tap(v8::Local<v8::Value> t) : t_() {
|
2823
|
-
HandleScope scope;
|
2824
|
-
|
2825
|
-
t_.Reset(To<v8::Object>(t).ToLocalChecked());
|
2826
|
-
}
|
2827
|
-
|
2828
|
-
~Tap() { t_.Reset(); } // not sure if necessary
|
2829
|
-
|
2830
|
-
inline void plan(int i) {
|
2831
|
-
HandleScope scope;
|
2832
|
-
v8::Local<v8::Value> arg = New(i);
|
2833
|
-
Call("plan", New(t_), 1, &arg);
|
2834
|
-
}
|
2835
|
-
|
2836
|
-
inline void ok(bool isOk, const char *msg = NULL) {
|
2837
|
-
HandleScope scope;
|
2838
|
-
v8::Local<v8::Value> args[2];
|
2839
|
-
args[0] = New(isOk);
|
2840
|
-
if (msg) args[1] = New(msg).ToLocalChecked();
|
2841
|
-
Call("ok", New(t_), msg ? 2 : 1, args);
|
2842
|
-
}
|
2843
|
-
|
2844
|
-
inline void pass(const char * msg = NULL) {
|
2845
|
-
HandleScope scope;
|
2846
|
-
v8::Local<v8::Value> hmsg;
|
2847
|
-
if (msg) hmsg = New(msg).ToLocalChecked();
|
2848
|
-
Call("pass", New(t_), msg ? 1 : 0, &hmsg);
|
2849
|
-
}
|
2850
|
-
|
2851
|
-
inline void end() {
|
2852
|
-
HandleScope scope;
|
2853
|
-
Call("end", New(t_), 0, NULL);
|
2854
|
-
}
|
2855
|
-
|
2856
|
-
private:
|
2857
|
-
Persistent<v8::Object> t_;
|
2858
|
-
};
|
2859
|
-
|
2860
|
-
#define NAN_STRINGIZE2(x) #x
|
2861
|
-
#define NAN_STRINGIZE(x) NAN_STRINGIZE2(x)
|
2862
|
-
#define NAN_TEST_EXPRESSION(expression) \
|
2863
|
-
( expression ), __FILE__ ":" NAN_STRINGIZE(__LINE__) ": " #expression
|
2864
|
-
|
2865
|
-
#define NAN_EXPORT(target, function) Export(target, #function, function)
|
2866
|
-
|
2867
|
-
#undef TYPE_CHECK
|
2868
|
-
|
2869
|
-
//=== Generic Maybefication ===================================================
|
2870
|
-
|
2871
|
-
namespace imp {
|
2872
|
-
|
2873
|
-
template <typename T> struct Maybefier;
|
2874
|
-
|
2875
|
-
template <typename T> struct Maybefier<v8::Local<T> > {
|
2876
|
-
inline static MaybeLocal<T> convert(v8::Local<T> v) {
|
2877
|
-
return v;
|
2878
|
-
}
|
2879
|
-
};
|
2880
|
-
|
2881
|
-
template <typename T> struct Maybefier<MaybeLocal<T> > {
|
2882
|
-
inline static MaybeLocal<T> convert(MaybeLocal<T> v) {
|
2883
|
-
return v;
|
2884
|
-
}
|
2885
|
-
};
|
2886
|
-
|
2887
|
-
} // end of namespace imp
|
2888
|
-
|
2889
|
-
template <typename T, template <typename> class MaybeMaybe>
|
2890
|
-
inline MaybeLocal<T>
|
2891
|
-
MakeMaybe(MaybeMaybe<T> v) {
|
2892
|
-
return imp::Maybefier<MaybeMaybe<T> >::convert(v);
|
2893
|
-
}
|
2894
|
-
|
2895
|
-
//=== TypedArrayContents =======================================================
|
2896
|
-
|
2897
|
-
#include "nan_typedarray_contents.h" // NOLINT(build/include)
|
2898
|
-
|
2899
|
-
//=== JSON =====================================================================
|
2900
|
-
|
2901
|
-
#include "nan_json.h" // NOLINT(build/include)
|
2902
|
-
|
2903
|
-
//=== ScriptOrigin =============================================================
|
2904
|
-
|
2905
|
-
#include "nan_scriptorigin.h" // NOLINT(build/include)
|
2906
|
-
|
2907
|
-
} // end of namespace Nan
|
2908
|
-
|
2909
|
-
#endif // NAN_H_
|