fsevents 1.2.12 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +6 -4
- package/install.js +13 -0
- package/package.json +3 -5
- 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 -56
- package/node_modules/ansi-regex/index.js +0 -4
- package/node_modules/ansi-regex/license +0 -21
- package/node_modules/ansi-regex/package.json +0 -108
- package/node_modules/ansi-regex/readme.md +0 -39
- 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 -62
- package/node_modules/are-we-there-yet/CHANGES.md +0 -37
- package/node_modules/are-we-there-yet/LICENSE +0 -5
- package/node_modules/are-we-there-yet/README.md +0 -195
- package/node_modules/are-we-there-yet/index.js +0 -4
- package/node_modules/are-we-there-yet/package.json +0 -63
- package/node_modules/are-we-there-yet/tracker-base.js +0 -11
- package/node_modules/are-we-there-yet/tracker-group.js +0 -107
- package/node_modules/are-we-there-yet/tracker-stream.js +0 -36
- package/node_modules/are-we-there-yet/tracker.js +0 -30
- package/node_modules/balanced-match/.npmignore +0 -5
- package/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/balanced-match/README.md +0 -91
- package/node_modules/balanced-match/index.js +0 -59
- package/node_modules/balanced-match/package.json +0 -77
- package/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/brace-expansion/README.md +0 -129
- package/node_modules/brace-expansion/index.js +0 -201
- package/node_modules/brace-expansion/package.json +0 -75
- 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 -62
- package/node_modules/code-point-at/index.js +0 -32
- package/node_modules/code-point-at/license +0 -21
- package/node_modules/code-point-at/package.json +0 -70
- package/node_modules/code-point-at/readme.md +0 -32
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/concat-map/index.js +0 -13
- package/node_modules/concat-map/package.json +0 -88
- package/node_modules/concat-map/test/map.js +0 -39
- 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 -61
- 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/float.patch +0 -604
- package/node_modules/core-util-is/lib/util.js +0 -107
- package/node_modules/core-util-is/package.json +0 -62
- package/node_modules/core-util-is/test.js +0 -68
- package/node_modules/debug/CHANGELOG.md +0 -395
- package/node_modules/debug/LICENSE +0 -19
- package/node_modules/debug/README.md +0 -437
- package/node_modules/debug/dist/debug.js +0 -886
- package/node_modules/debug/node.js +0 -1
- package/node_modules/debug/package.json +0 -90
- package/node_modules/debug/src/browser.js +0 -180
- package/node_modules/debug/src/common.js +0 -249
- package/node_modules/debug/src/index.js +0 -12
- package/node_modules/debug/src/node.js +0 -174
- package/node_modules/deep-extend/CHANGELOG.md +0 -46
- package/node_modules/deep-extend/LICENSE +0 -20
- package/node_modules/deep-extend/README.md +0 -91
- package/node_modules/deep-extend/index.js +0 -1
- package/node_modules/deep-extend/lib/deep-extend.js +0 -150
- package/node_modules/deep-extend/package.json +0 -92
- 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 -48
- package/node_modules/delegates/test/index.js +0 -94
- package/node_modules/detect-libc/.npmignore +0 -7
- package/node_modules/detect-libc/LICENSE +0 -201
- package/node_modules/detect-libc/README.md +0 -78
- package/node_modules/detect-libc/bin/detect-libc.js +0 -18
- package/node_modules/detect-libc/lib/detect-libc.js +0 -92
- package/node_modules/detect-libc/package.json +0 -70
- 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 -387
- package/node_modules/fs-minipass/package.json +0 -65
- package/node_modules/fs.realpath/LICENSE +0 -43
- package/node_modules/fs.realpath/README.md +0 -33
- package/node_modules/fs.realpath/index.js +0 -66
- package/node_modules/fs.realpath/old.js +0 -303
- package/node_modules/fs.realpath/package.json +0 -59
- package/node_modules/gauge/CHANGELOG.md +0 -160
- package/node_modules/gauge/LICENSE +0 -13
- package/node_modules/gauge/README.md +0 -399
- 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 -12
- package/node_modules/gauge/index.js +0 -233
- package/node_modules/gauge/package.json +0 -91
- 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 -181
- 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 -73
- package/node_modules/gauge/theme-set.js +0 -115
- package/node_modules/gauge/themes.js +0 -54
- package/node_modules/gauge/wide-truncate.js +0 -25
- package/node_modules/glob/LICENSE +0 -21
- package/node_modules/glob/README.md +0 -375
- package/node_modules/glob/changelog.md +0 -67
- package/node_modules/glob/common.js +0 -240
- package/node_modules/glob/glob.js +0 -790
- package/node_modules/glob/package.json +0 -79
- package/node_modules/glob/sync.js +0 -486
- 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 -58
- 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 -76
- package/node_modules/ignore-walk/LICENSE +0 -15
- package/node_modules/ignore-walk/README.md +0 -60
- package/node_modules/ignore-walk/index.js +0 -269
- package/node_modules/ignore-walk/package.json +0 -74
- package/node_modules/inflight/LICENSE +0 -15
- package/node_modules/inflight/README.md +0 -37
- package/node_modules/inflight/inflight.js +0 -54
- package/node_modules/inflight/package.json +0 -58
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -62
- package/node_modules/ini/LICENSE +0 -15
- package/node_modules/ini/README.md +0 -102
- package/node_modules/ini/ini.js +0 -194
- package/node_modules/ini/package.json +0 -63
- package/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/node_modules/is-fullwidth-code-point/license +0 -21
- package/node_modules/is-fullwidth-code-point/package.json +0 -77
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/isarray/.npmignore +0 -1
- package/node_modules/isarray/.travis.yml +0 -4
- package/node_modules/isarray/Makefile +0 -6
- package/node_modules/isarray/README.md +0 -60
- package/node_modules/isarray/component.json +0 -19
- package/node_modules/isarray/index.js +0 -5
- package/node_modules/isarray/package.json +0 -73
- package/node_modules/isarray/test.js +0 -20
- package/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/minimatch/README.md +0 -209
- package/node_modules/minimatch/minimatch.js +0 -923
- package/node_modules/minimatch/package.json +0 -64
- package/node_modules/minimist/.travis.yml +0 -8
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/example/parse.js +0 -2
- package/node_modules/minimist/index.js +0 -245
- package/node_modules/minimist/package.json +0 -74
- package/node_modules/minimist/readme.markdown +0 -95
- package/node_modules/minimist/test/all_bool.js +0 -32
- package/node_modules/minimist/test/bool.js +0 -178
- package/node_modules/minimist/test/dash.js +0 -31
- package/node_modules/minimist/test/default_bool.js +0 -35
- package/node_modules/minimist/test/dotted.js +0 -22
- package/node_modules/minimist/test/kv_short.js +0 -16
- package/node_modules/minimist/test/long.js +0 -31
- package/node_modules/minimist/test/num.js +0 -36
- package/node_modules/minimist/test/parse.js +0 -197
- package/node_modules/minimist/test/parse_modified.js +0 -9
- package/node_modules/minimist/test/proto.js +0 -44
- package/node_modules/minimist/test/short.js +0 -67
- package/node_modules/minimist/test/stop_early.js +0 -15
- package/node_modules/minimist/test/unknown.js +0 -102
- package/node_modules/minimist/test/whitespace.js +0 -8
- package/node_modules/minipass/LICENSE +0 -15
- package/node_modules/minipass/README.md +0 -606
- package/node_modules/minipass/index.js +0 -537
- package/node_modules/minipass/package.json +0 -72
- package/node_modules/minizlib/LICENSE +0 -26
- package/node_modules/minizlib/README.md +0 -53
- package/node_modules/minizlib/constants.js +0 -115
- package/node_modules/minizlib/index.js +0 -320
- package/node_modules/minizlib/package.json +0 -71
- package/node_modules/mkdirp/LICENSE +0 -21
- package/node_modules/mkdirp/bin/cmd.js +0 -33
- package/node_modules/mkdirp/bin/usage.txt +0 -12
- package/node_modules/mkdirp/index.js +0 -98
- package/node_modules/mkdirp/package.json +0 -70
- package/node_modules/mkdirp/readme.markdown +0 -100
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -69
- package/node_modules/ms/readme.md +0 -60
- package/node_modules/needle/.github/workflows/nodejs.yml +0 -27
- package/node_modules/needle/README.md +0 -593
- package/node_modules/needle/bin/needle +0 -40
- package/node_modules/needle/examples/deflated-stream.js +0 -22
- package/node_modules/needle/examples/digest-auth.js +0 -16
- package/node_modules/needle/examples/download-to-file.js +0 -18
- package/node_modules/needle/examples/multipart-stream.js +0 -25
- package/node_modules/needle/examples/parsed-stream.js +0 -23
- package/node_modules/needle/examples/parsed-stream2.js +0 -21
- package/node_modules/needle/examples/stream-events.js +0 -23
- package/node_modules/needle/examples/stream-to-file.js +0 -14
- package/node_modules/needle/examples/upload-image.js +0 -51
- package/node_modules/needle/lib/auth.js +0 -110
- package/node_modules/needle/lib/cookies.js +0 -79
- package/node_modules/needle/lib/decoder.js +0 -53
- package/node_modules/needle/lib/multipart.js +0 -98
- package/node_modules/needle/lib/needle.js +0 -803
- package/node_modules/needle/lib/parsers.js +0 -120
- package/node_modules/needle/lib/querystring.js +0 -49
- package/node_modules/needle/license.txt +0 -19
- package/node_modules/needle/package.json +0 -102
- package/node_modules/needle/test/basic_auth_spec.js +0 -196
- package/node_modules/needle/test/compression_spec.js +0 -112
- package/node_modules/needle/test/cookies_spec.js +0 -305
- package/node_modules/needle/test/decoder_spec.js +0 -86
- package/node_modules/needle/test/errors_spec.js +0 -286
- package/node_modules/needle/test/headers_spec.js +0 -198
- package/node_modules/needle/test/helpers.js +0 -72
- package/node_modules/needle/test/long_string_spec.js +0 -34
- package/node_modules/needle/test/output_spec.js +0 -254
- package/node_modules/needle/test/parsing_spec.js +0 -494
- package/node_modules/needle/test/post_data_spec.js +0 -1021
- package/node_modules/needle/test/proxy_spec.js +0 -202
- package/node_modules/needle/test/querystring_spec.js +0 -128
- package/node_modules/needle/test/redirect_spec.js +0 -392
- package/node_modules/needle/test/redirect_with_timeout.js +0 -45
- package/node_modules/needle/test/request_stream_spec.js +0 -202
- package/node_modules/needle/test/response_stream_spec.js +0 -139
- package/node_modules/needle/test/socket_pool_spec.js +0 -66
- package/node_modules/needle/test/url_spec.js +0 -155
- package/node_modules/needle/test/utils/formidable.js +0 -17
- package/node_modules/needle/test/utils/proxy.js +0 -62
- package/node_modules/needle/test/utils/test.js +0 -104
- package/node_modules/node-pre-gyp/CHANGELOG.md +0 -443
- package/node_modules/node-pre-gyp/LICENSE +0 -27
- package/node_modules/node-pre-gyp/README.md +0 -693
- package/node_modules/node-pre-gyp/appveyor.yml +0 -30
- package/node_modules/node-pre-gyp/bin/node-pre-gyp +0 -134
- package/node_modules/node-pre-gyp/bin/node-pre-gyp.cmd +0 -2
- package/node_modules/node-pre-gyp/contributing.md +0 -10
- package/node_modules/node-pre-gyp/lib/build.js +0 -51
- package/node_modules/node-pre-gyp/lib/clean.js +0 -32
- package/node_modules/node-pre-gyp/lib/configure.js +0 -52
- package/node_modules/node-pre-gyp/lib/info.js +0 -40
- package/node_modules/node-pre-gyp/lib/install.js +0 -285
- package/node_modules/node-pre-gyp/lib/node-pre-gyp.js +0 -203
- package/node_modules/node-pre-gyp/lib/package.js +0 -56
- package/node_modules/node-pre-gyp/lib/pre-binding.js +0 -30
- package/node_modules/node-pre-gyp/lib/publish.js +0 -79
- package/node_modules/node-pre-gyp/lib/rebuild.js +0 -21
- package/node_modules/node-pre-gyp/lib/reinstall.js +0 -20
- package/node_modules/node-pre-gyp/lib/reveal.js +0 -33
- package/node_modules/node-pre-gyp/lib/testbinary.js +0 -81
- package/node_modules/node-pre-gyp/lib/testpackage.js +0 -55
- package/node_modules/node-pre-gyp/lib/unpublish.js +0 -43
- package/node_modules/node-pre-gyp/lib/util/abi_crosswalk.json +0 -2070
- package/node_modules/node-pre-gyp/lib/util/compile.js +0 -87
- package/node_modules/node-pre-gyp/lib/util/handle_gyp_opts.js +0 -103
- package/node_modules/node-pre-gyp/lib/util/napi.js +0 -205
- package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/index.html +0 -26
- package/node_modules/node-pre-gyp/lib/util/nw-pre-gyp/package.json +0 -9
- package/node_modules/node-pre-gyp/lib/util/s3_setup.js +0 -27
- package/node_modules/node-pre-gyp/lib/util/versioning.js +0 -331
- package/node_modules/node-pre-gyp/package.json +0 -87
- 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 -65
- package/node_modules/npm-bundled/LICENSE +0 -15
- package/node_modules/npm-bundled/README.md +0 -48
- package/node_modules/npm-bundled/index.js +0 -249
- package/node_modules/npm-bundled/package.json +0 -63
- package/node_modules/npm-normalize-package-bin/.github/settings.yml +0 -2
- package/node_modules/npm-normalize-package-bin/.npmignore +0 -24
- package/node_modules/npm-normalize-package-bin/LICENSE +0 -15
- package/node_modules/npm-normalize-package-bin/README.md +0 -14
- package/node_modules/npm-normalize-package-bin/index.js +0 -60
- package/node_modules/npm-normalize-package-bin/package-lock.json +0 -3529
- package/node_modules/npm-normalize-package-bin/package.json +0 -58
- package/node_modules/npm-normalize-package-bin/test/array.js +0 -37
- package/node_modules/npm-normalize-package-bin/test/nobin.js +0 -35
- package/node_modules/npm-normalize-package-bin/test/object.js +0 -141
- package/node_modules/npm-normalize-package-bin/test/string.js +0 -37
- package/node_modules/npm-packlist/LICENSE +0 -15
- package/node_modules/npm-packlist/README.md +0 -68
- package/node_modules/npm-packlist/index.js +0 -289
- package/node_modules/npm-packlist/package.json +0 -74
- package/node_modules/npmlog/CHANGELOG.md +0 -49
- package/node_modules/npmlog/LICENSE +0 -15
- package/node_modules/npmlog/README.md +0 -216
- package/node_modules/npmlog/log.js +0 -309
- package/node_modules/npmlog/package.json +0 -61
- package/node_modules/number-is-nan/index.js +0 -4
- package/node_modules/number-is-nan/license +0 -21
- package/node_modules/number-is-nan/package.json +0 -67
- package/node_modules/number-is-nan/readme.md +0 -28
- 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 -74
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -67
- package/node_modules/os-homedir/index.js +0 -24
- package/node_modules/os-homedir/license +0 -21
- package/node_modules/os-homedir/package.json +0 -73
- package/node_modules/os-homedir/readme.md +0 -31
- package/node_modules/os-tmpdir/index.js +0 -25
- package/node_modules/os-tmpdir/license +0 -21
- package/node_modules/os-tmpdir/package.json +0 -73
- package/node_modules/os-tmpdir/readme.md +0 -32
- package/node_modules/osenv/LICENSE +0 -15
- package/node_modules/osenv/README.md +0 -63
- package/node_modules/osenv/osenv.js +0 -72
- package/node_modules/osenv/package.json +0 -73
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/license +0 -21
- package/node_modules/path-is-absolute/package.json +0 -75
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/process-nextick-args/index.js +0 -45
- package/node_modules/process-nextick-args/license.md +0 -19
- package/node_modules/process-nextick-args/package.json +0 -50
- package/node_modules/process-nextick-args/readme.md +0 -18
- package/node_modules/rc/LICENSE.APACHE2 +0 -15
- package/node_modules/rc/LICENSE.BSD +0 -26
- package/node_modules/rc/LICENSE.MIT +0 -24
- package/node_modules/rc/README.md +0 -227
- package/node_modules/rc/browser.js +0 -7
- package/node_modules/rc/cli.js +0 -4
- package/node_modules/rc/index.js +0 -53
- package/node_modules/rc/lib/utils.js +0 -104
- package/node_modules/rc/package.json +0 -64
- package/node_modules/rc/test/ini.js +0 -16
- package/node_modules/rc/test/nested-env-vars.js +0 -50
- package/node_modules/rc/test/test.js +0 -59
- package/node_modules/readable-stream/.travis.yml +0 -34
- package/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/readable-stream/README.md +0 -58
- package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/node_modules/readable-stream/duplex-browser.js +0 -1
- package/node_modules/readable-stream/duplex.js +0 -1
- package/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/node_modules/readable-stream/lib/_stream_writable.js +0 -687
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -79
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -74
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/readable-stream/package.json +0 -81
- package/node_modules/readable-stream/passthrough.js +0 -1
- package/node_modules/readable-stream/readable-browser.js +0 -7
- package/node_modules/readable-stream/readable.js +0 -19
- package/node_modules/readable-stream/transform.js +0 -1
- package/node_modules/readable-stream/writable-browser.js +0 -1
- package/node_modules/readable-stream/writable.js +0 -8
- package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/rimraf/README.md +0 -101
- package/node_modules/rimraf/bin.js +0 -50
- package/node_modules/rimraf/package.json +0 -67
- package/node_modules/rimraf/rimraf.js +0 -372
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -62
- package/node_modules/safe-buffer/package.json +0 -65
- 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 -60
- package/node_modules/safer-buffer/safer.js +0 -77
- package/node_modules/safer-buffer/tests.js +0 -406
- package/node_modules/sax/LICENSE +0 -41
- package/node_modules/sax/README.md +0 -225
- package/node_modules/sax/lib/sax.js +0 -1565
- package/node_modules/sax/package.json +0 -61
- package/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -412
- package/node_modules/semver/bin/semver +0 -160
- package/node_modules/semver/package.json +0 -60
- package/node_modules/semver/range.bnf +0 -16
- package/node_modules/semver/semver.js +0 -1483
- 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 -70
- package/node_modules/signal-exit/CHANGELOG.md +0 -27
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -40
- package/node_modules/signal-exit/index.js +0 -157
- package/node_modules/signal-exit/package.json +0 -66
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/string-width/index.js +0 -37
- package/node_modules/string-width/license +0 -21
- package/node_modules/string-width/package.json +0 -89
- package/node_modules/string-width/readme.md +0 -42
- package/node_modules/string_decoder/.travis.yml +0 -50
- package/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/string_decoder/README.md +0 -47
- package/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/string_decoder/package.json +0 -59
- package/node_modules/strip-ansi/index.js +0 -6
- package/node_modules/strip-ansi/license +0 -21
- package/node_modules/strip-ansi/package.json +0 -102
- package/node_modules/strip-ansi/readme.md +0 -33
- package/node_modules/strip-json-comments/index.js +0 -70
- package/node_modules/strip-json-comments/license +0 -21
- package/node_modules/strip-json-comments/package.json +0 -74
- package/node_modules/strip-json-comments/readme.md +0 -64
- package/node_modules/tar/LICENSE +0 -15
- package/node_modules/tar/README.md +0 -954
- package/node_modules/tar/index.js +0 -18
- package/node_modules/tar/lib/buffer.js +0 -11
- package/node_modules/tar/lib/create.js +0 -105
- package/node_modules/tar/lib/extract.js +0 -112
- package/node_modules/tar/lib/header.js +0 -289
- package/node_modules/tar/lib/high-level-opt.js +0 -29
- package/node_modules/tar/lib/large-numbers.js +0 -97
- package/node_modules/tar/lib/list.js +0 -130
- package/node_modules/tar/lib/mkdir.js +0 -206
- package/node_modules/tar/lib/mode-fix.js +0 -14
- package/node_modules/tar/lib/pack.js +0 -404
- package/node_modules/tar/lib/parse.js +0 -428
- package/node_modules/tar/lib/pax.js +0 -146
- package/node_modules/tar/lib/read-entry.js +0 -98
- package/node_modules/tar/lib/replace.js +0 -220
- package/node_modules/tar/lib/types.js +0 -44
- package/node_modules/tar/lib/unpack.js +0 -621
- package/node_modules/tar/lib/update.js +0 -36
- package/node_modules/tar/lib/warn-mixin.js +0 -14
- package/node_modules/tar/lib/winchars.js +0 -23
- package/node_modules/tar/lib/write-entry.js +0 -422
- package/node_modules/tar/package.json +0 -82
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -56
- 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 -66
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -59
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/README.md +0 -204
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/package.json +0 -63
- package/node_modules/yallist/yallist.js +0 -426
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
// Update with any zlib constants that are added or changed in the future.
|
|
2
|
-
// Node v6 didn't export this, so we just hard code the version and rely
|
|
3
|
-
// on all the other hard-coded values from zlib v4736. When node v6
|
|
4
|
-
// support drops, we can just export the realZlibConstants object.
|
|
5
|
-
const realZlibConstants = require('zlib').constants ||
|
|
6
|
-
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 }
|
|
7
|
-
|
|
8
|
-
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
9
|
-
Z_NO_FLUSH: 0,
|
|
10
|
-
Z_PARTIAL_FLUSH: 1,
|
|
11
|
-
Z_SYNC_FLUSH: 2,
|
|
12
|
-
Z_FULL_FLUSH: 3,
|
|
13
|
-
Z_FINISH: 4,
|
|
14
|
-
Z_BLOCK: 5,
|
|
15
|
-
Z_OK: 0,
|
|
16
|
-
Z_STREAM_END: 1,
|
|
17
|
-
Z_NEED_DICT: 2,
|
|
18
|
-
Z_ERRNO: -1,
|
|
19
|
-
Z_STREAM_ERROR: -2,
|
|
20
|
-
Z_DATA_ERROR: -3,
|
|
21
|
-
Z_MEM_ERROR: -4,
|
|
22
|
-
Z_BUF_ERROR: -5,
|
|
23
|
-
Z_VERSION_ERROR: -6,
|
|
24
|
-
Z_NO_COMPRESSION: 0,
|
|
25
|
-
Z_BEST_SPEED: 1,
|
|
26
|
-
Z_BEST_COMPRESSION: 9,
|
|
27
|
-
Z_DEFAULT_COMPRESSION: -1,
|
|
28
|
-
Z_FILTERED: 1,
|
|
29
|
-
Z_HUFFMAN_ONLY: 2,
|
|
30
|
-
Z_RLE: 3,
|
|
31
|
-
Z_FIXED: 4,
|
|
32
|
-
Z_DEFAULT_STRATEGY: 0,
|
|
33
|
-
DEFLATE: 1,
|
|
34
|
-
INFLATE: 2,
|
|
35
|
-
GZIP: 3,
|
|
36
|
-
GUNZIP: 4,
|
|
37
|
-
DEFLATERAW: 5,
|
|
38
|
-
INFLATERAW: 6,
|
|
39
|
-
UNZIP: 7,
|
|
40
|
-
BROTLI_DECODE: 8,
|
|
41
|
-
BROTLI_ENCODE: 9,
|
|
42
|
-
Z_MIN_WINDOWBITS: 8,
|
|
43
|
-
Z_MAX_WINDOWBITS: 15,
|
|
44
|
-
Z_DEFAULT_WINDOWBITS: 15,
|
|
45
|
-
Z_MIN_CHUNK: 64,
|
|
46
|
-
Z_MAX_CHUNK: Infinity,
|
|
47
|
-
Z_DEFAULT_CHUNK: 16384,
|
|
48
|
-
Z_MIN_MEMLEVEL: 1,
|
|
49
|
-
Z_MAX_MEMLEVEL: 9,
|
|
50
|
-
Z_DEFAULT_MEMLEVEL: 8,
|
|
51
|
-
Z_MIN_LEVEL: -1,
|
|
52
|
-
Z_MAX_LEVEL: 9,
|
|
53
|
-
Z_DEFAULT_LEVEL: -1,
|
|
54
|
-
BROTLI_OPERATION_PROCESS: 0,
|
|
55
|
-
BROTLI_OPERATION_FLUSH: 1,
|
|
56
|
-
BROTLI_OPERATION_FINISH: 2,
|
|
57
|
-
BROTLI_OPERATION_EMIT_METADATA: 3,
|
|
58
|
-
BROTLI_MODE_GENERIC: 0,
|
|
59
|
-
BROTLI_MODE_TEXT: 1,
|
|
60
|
-
BROTLI_MODE_FONT: 2,
|
|
61
|
-
BROTLI_DEFAULT_MODE: 0,
|
|
62
|
-
BROTLI_MIN_QUALITY: 0,
|
|
63
|
-
BROTLI_MAX_QUALITY: 11,
|
|
64
|
-
BROTLI_DEFAULT_QUALITY: 11,
|
|
65
|
-
BROTLI_MIN_WINDOW_BITS: 10,
|
|
66
|
-
BROTLI_MAX_WINDOW_BITS: 24,
|
|
67
|
-
BROTLI_LARGE_MAX_WINDOW_BITS: 30,
|
|
68
|
-
BROTLI_DEFAULT_WINDOW: 22,
|
|
69
|
-
BROTLI_MIN_INPUT_BLOCK_BITS: 16,
|
|
70
|
-
BROTLI_MAX_INPUT_BLOCK_BITS: 24,
|
|
71
|
-
BROTLI_PARAM_MODE: 0,
|
|
72
|
-
BROTLI_PARAM_QUALITY: 1,
|
|
73
|
-
BROTLI_PARAM_LGWIN: 2,
|
|
74
|
-
BROTLI_PARAM_LGBLOCK: 3,
|
|
75
|
-
BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4,
|
|
76
|
-
BROTLI_PARAM_SIZE_HINT: 5,
|
|
77
|
-
BROTLI_PARAM_LARGE_WINDOW: 6,
|
|
78
|
-
BROTLI_PARAM_NPOSTFIX: 7,
|
|
79
|
-
BROTLI_PARAM_NDIRECT: 8,
|
|
80
|
-
BROTLI_DECODER_RESULT_ERROR: 0,
|
|
81
|
-
BROTLI_DECODER_RESULT_SUCCESS: 1,
|
|
82
|
-
BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2,
|
|
83
|
-
BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3,
|
|
84
|
-
BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0,
|
|
85
|
-
BROTLI_DECODER_PARAM_LARGE_WINDOW: 1,
|
|
86
|
-
BROTLI_DECODER_NO_ERROR: 0,
|
|
87
|
-
BROTLI_DECODER_SUCCESS: 1,
|
|
88
|
-
BROTLI_DECODER_NEEDS_MORE_INPUT: 2,
|
|
89
|
-
BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3,
|
|
90
|
-
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1,
|
|
91
|
-
BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2,
|
|
92
|
-
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3,
|
|
93
|
-
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4,
|
|
94
|
-
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5,
|
|
95
|
-
BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6,
|
|
96
|
-
BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7,
|
|
97
|
-
BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8,
|
|
98
|
-
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9,
|
|
99
|
-
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10,
|
|
100
|
-
BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11,
|
|
101
|
-
BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12,
|
|
102
|
-
BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13,
|
|
103
|
-
BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14,
|
|
104
|
-
BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15,
|
|
105
|
-
BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16,
|
|
106
|
-
BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19,
|
|
107
|
-
BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20,
|
|
108
|
-
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21,
|
|
109
|
-
BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22,
|
|
110
|
-
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25,
|
|
111
|
-
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26,
|
|
112
|
-
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27,
|
|
113
|
-
BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30,
|
|
114
|
-
BROTLI_DECODER_ERROR_UNREACHABLE: -31,
|
|
115
|
-
}, realZlibConstants))
|
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const assert = require('assert')
|
|
4
|
-
const Buffer = require('buffer').Buffer
|
|
5
|
-
const realZlib = require('zlib')
|
|
6
|
-
|
|
7
|
-
const constants = exports.constants = require('./constants.js')
|
|
8
|
-
const Minipass = require('minipass')
|
|
9
|
-
|
|
10
|
-
const OriginalBufferConcat = Buffer.concat
|
|
11
|
-
|
|
12
|
-
class ZlibError extends Error {
|
|
13
|
-
constructor (err) {
|
|
14
|
-
super('zlib: ' + err.message)
|
|
15
|
-
this.code = err.code
|
|
16
|
-
this.errno = err.errno
|
|
17
|
-
/* istanbul ignore if */
|
|
18
|
-
if (!this.code)
|
|
19
|
-
this.code = 'ZLIB_ERROR'
|
|
20
|
-
|
|
21
|
-
this.message = 'zlib: ' + err.message
|
|
22
|
-
Error.captureStackTrace(this, this.constructor)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
get name () {
|
|
26
|
-
return 'ZlibError'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// the Zlib class they all inherit from
|
|
31
|
-
// This thing manages the queue of requests, and returns
|
|
32
|
-
// true or false if there is anything in the queue when
|
|
33
|
-
// you call the .write() method.
|
|
34
|
-
const _opts = Symbol('opts')
|
|
35
|
-
const _flushFlag = Symbol('flushFlag')
|
|
36
|
-
const _finishFlushFlag = Symbol('finishFlushFlag')
|
|
37
|
-
const _fullFlushFlag = Symbol('fullFlushFlag')
|
|
38
|
-
const _handle = Symbol('handle')
|
|
39
|
-
const _onError = Symbol('onError')
|
|
40
|
-
const _sawError = Symbol('sawError')
|
|
41
|
-
const _level = Symbol('level')
|
|
42
|
-
const _strategy = Symbol('strategy')
|
|
43
|
-
const _ended = Symbol('ended')
|
|
44
|
-
const _defaultFullFlush = Symbol('_defaultFullFlush')
|
|
45
|
-
|
|
46
|
-
class ZlibBase extends Minipass {
|
|
47
|
-
constructor (opts, mode) {
|
|
48
|
-
if (!opts || typeof opts !== 'object')
|
|
49
|
-
throw new TypeError('invalid options for ZlibBase constructor')
|
|
50
|
-
|
|
51
|
-
super(opts)
|
|
52
|
-
this[_ended] = false
|
|
53
|
-
this[_opts] = opts
|
|
54
|
-
|
|
55
|
-
this[_flushFlag] = opts.flush
|
|
56
|
-
this[_finishFlushFlag] = opts.finishFlush
|
|
57
|
-
// this will throw if any options are invalid for the class selected
|
|
58
|
-
try {
|
|
59
|
-
this[_handle] = new realZlib[mode](opts)
|
|
60
|
-
} catch (er) {
|
|
61
|
-
// make sure that all errors get decorated properly
|
|
62
|
-
throw new ZlibError(er)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
this[_onError] = (err) => {
|
|
66
|
-
this[_sawError] = true
|
|
67
|
-
// there is no way to cleanly recover.
|
|
68
|
-
// continuing only obscures problems.
|
|
69
|
-
this.close()
|
|
70
|
-
this.emit('error', err)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
this[_handle].on('error', er => this[_onError](new ZlibError(er)))
|
|
74
|
-
this.once('end', () => this.close)
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
close () {
|
|
78
|
-
if (this[_handle]) {
|
|
79
|
-
this[_handle].close()
|
|
80
|
-
this[_handle] = null
|
|
81
|
-
this.emit('close')
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
reset () {
|
|
86
|
-
if (!this[_sawError]) {
|
|
87
|
-
assert(this[_handle], 'zlib binding closed')
|
|
88
|
-
return this[_handle].reset()
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
flush (flushFlag) {
|
|
93
|
-
if (this.ended)
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
if (typeof flushFlag !== 'number')
|
|
97
|
-
flushFlag = this[_fullFlushFlag]
|
|
98
|
-
this.write(Object.assign(Buffer.alloc(0), { [_flushFlag]: flushFlag }))
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
end (chunk, encoding, cb) {
|
|
102
|
-
if (chunk)
|
|
103
|
-
this.write(chunk, encoding)
|
|
104
|
-
this.flush(this[_finishFlushFlag])
|
|
105
|
-
this[_ended] = true
|
|
106
|
-
return super.end(null, null, cb)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
get ended () {
|
|
110
|
-
return this[_ended]
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
write (chunk, encoding, cb) {
|
|
114
|
-
// process the chunk using the sync process
|
|
115
|
-
// then super.write() all the outputted chunks
|
|
116
|
-
if (typeof encoding === 'function')
|
|
117
|
-
cb = encoding, encoding = 'utf8'
|
|
118
|
-
|
|
119
|
-
if (typeof chunk === 'string')
|
|
120
|
-
chunk = Buffer.from(chunk, encoding)
|
|
121
|
-
|
|
122
|
-
if (this[_sawError])
|
|
123
|
-
return
|
|
124
|
-
assert(this[_handle], 'zlib binding closed')
|
|
125
|
-
|
|
126
|
-
// _processChunk tries to .close() the native handle after it's done, so we
|
|
127
|
-
// intercept that by temporarily making it a no-op.
|
|
128
|
-
const nativeHandle = this[_handle]._handle
|
|
129
|
-
const originalNativeClose = nativeHandle.close
|
|
130
|
-
nativeHandle.close = () => {}
|
|
131
|
-
const originalClose = this[_handle].close
|
|
132
|
-
this[_handle].close = () => {}
|
|
133
|
-
// It also calls `Buffer.concat()` at the end, which may be convenient
|
|
134
|
-
// for some, but which we are not interested in as it slows us down.
|
|
135
|
-
Buffer.concat = (args) => args
|
|
136
|
-
let result
|
|
137
|
-
try {
|
|
138
|
-
const flushFlag = typeof chunk[_flushFlag] === 'number'
|
|
139
|
-
? chunk[_flushFlag] : this[_flushFlag]
|
|
140
|
-
result = this[_handle]._processChunk(chunk, flushFlag)
|
|
141
|
-
// if we don't throw, reset it back how it was
|
|
142
|
-
Buffer.concat = OriginalBufferConcat
|
|
143
|
-
} catch (err) {
|
|
144
|
-
// or if we do, put Buffer.concat() back before we emit error
|
|
145
|
-
// Error events call into user code, which may call Buffer.concat()
|
|
146
|
-
Buffer.concat = OriginalBufferConcat
|
|
147
|
-
this[_onError](new ZlibError(err))
|
|
148
|
-
} finally {
|
|
149
|
-
if (this[_handle]) {
|
|
150
|
-
// Core zlib resets `_handle` to null after attempting to close the
|
|
151
|
-
// native handle. Our no-op handler prevented actual closure, but we
|
|
152
|
-
// need to restore the `._handle` property.
|
|
153
|
-
this[_handle]._handle = nativeHandle
|
|
154
|
-
nativeHandle.close = originalNativeClose
|
|
155
|
-
this[_handle].close = originalClose
|
|
156
|
-
// `_processChunk()` adds an 'error' listener. If we don't remove it
|
|
157
|
-
// after each call, these handlers start piling up.
|
|
158
|
-
this[_handle].removeAllListeners('error')
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
let writeReturn
|
|
163
|
-
if (result) {
|
|
164
|
-
if (Array.isArray(result) && result.length > 0) {
|
|
165
|
-
// The first buffer is always `handle._outBuffer`, which would be
|
|
166
|
-
// re-used for later invocations; so, we always have to copy that one.
|
|
167
|
-
writeReturn = super.write(Buffer.from(result[0]))
|
|
168
|
-
for (let i = 1; i < result.length; i++) {
|
|
169
|
-
writeReturn = super.write(result[i])
|
|
170
|
-
}
|
|
171
|
-
} else {
|
|
172
|
-
writeReturn = super.write(Buffer.from(result))
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
if (cb)
|
|
177
|
-
cb()
|
|
178
|
-
return writeReturn
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
class Zlib extends ZlibBase {
|
|
183
|
-
constructor (opts, mode) {
|
|
184
|
-
opts = opts || {}
|
|
185
|
-
|
|
186
|
-
opts.flush = opts.flush || constants.Z_NO_FLUSH
|
|
187
|
-
opts.finishFlush = opts.finishFlush || constants.Z_FINISH
|
|
188
|
-
super(opts, mode)
|
|
189
|
-
|
|
190
|
-
this[_fullFlushFlag] = constants.Z_FULL_FLUSH
|
|
191
|
-
this[_level] = opts.level
|
|
192
|
-
this[_strategy] = opts.strategy
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
params (level, strategy) {
|
|
196
|
-
if (this[_sawError])
|
|
197
|
-
return
|
|
198
|
-
|
|
199
|
-
if (!this[_handle])
|
|
200
|
-
throw new Error('cannot switch params when binding is closed')
|
|
201
|
-
|
|
202
|
-
// no way to test this without also not supporting params at all
|
|
203
|
-
/* istanbul ignore if */
|
|
204
|
-
if (!this[_handle].params)
|
|
205
|
-
throw new Error('not supported in this implementation')
|
|
206
|
-
|
|
207
|
-
if (this[_level] !== level || this[_strategy] !== strategy) {
|
|
208
|
-
this.flush(constants.Z_SYNC_FLUSH)
|
|
209
|
-
assert(this[_handle], 'zlib binding closed')
|
|
210
|
-
// .params() calls .flush(), but the latter is always async in the
|
|
211
|
-
// core zlib. We override .flush() temporarily to intercept that and
|
|
212
|
-
// flush synchronously.
|
|
213
|
-
const origFlush = this[_handle].flush
|
|
214
|
-
this[_handle].flush = (flushFlag, cb) => {
|
|
215
|
-
this.flush(flushFlag)
|
|
216
|
-
cb()
|
|
217
|
-
}
|
|
218
|
-
try {
|
|
219
|
-
this[_handle].params(level, strategy)
|
|
220
|
-
} finally {
|
|
221
|
-
this[_handle].flush = origFlush
|
|
222
|
-
}
|
|
223
|
-
/* istanbul ignore else */
|
|
224
|
-
if (this[_handle]) {
|
|
225
|
-
this[_level] = level
|
|
226
|
-
this[_strategy] = strategy
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
// minimal 2-byte header
|
|
233
|
-
class Deflate extends Zlib {
|
|
234
|
-
constructor (opts) {
|
|
235
|
-
super(opts, 'Deflate')
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
class Inflate extends Zlib {
|
|
240
|
-
constructor (opts) {
|
|
241
|
-
super(opts, 'Inflate')
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
// gzip - bigger header, same deflate compression
|
|
246
|
-
class Gzip extends Zlib {
|
|
247
|
-
constructor (opts) {
|
|
248
|
-
super(opts, 'Gzip')
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
class Gunzip extends Zlib {
|
|
253
|
-
constructor (opts) {
|
|
254
|
-
super(opts, 'Gunzip')
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// raw - no header
|
|
259
|
-
class DeflateRaw extends Zlib {
|
|
260
|
-
constructor (opts) {
|
|
261
|
-
super(opts, 'DeflateRaw')
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
class InflateRaw extends Zlib {
|
|
266
|
-
constructor (opts) {
|
|
267
|
-
super(opts, 'InflateRaw')
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// auto-detect header.
|
|
272
|
-
class Unzip extends Zlib {
|
|
273
|
-
constructor (opts) {
|
|
274
|
-
super(opts, 'Unzip')
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
class Brotli extends ZlibBase {
|
|
279
|
-
constructor (opts, mode) {
|
|
280
|
-
opts = opts || {}
|
|
281
|
-
|
|
282
|
-
opts.flush = opts.flush || constants.BROTLI_OPERATION_PROCESS
|
|
283
|
-
opts.finishFlush = opts.finishFlush || constants.BROTLI_OPERATION_FINISH
|
|
284
|
-
|
|
285
|
-
super(opts, mode)
|
|
286
|
-
|
|
287
|
-
this[_fullFlushFlag] = constants.BROTLI_OPERATION_FLUSH
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
class BrotliCompress extends Brotli {
|
|
292
|
-
constructor (opts) {
|
|
293
|
-
super(opts, 'BrotliCompress')
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
class BrotliDecompress extends Brotli {
|
|
298
|
-
constructor (opts) {
|
|
299
|
-
super(opts, 'BrotliDecompress')
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
exports.Deflate = Deflate
|
|
304
|
-
exports.Inflate = Inflate
|
|
305
|
-
exports.Gzip = Gzip
|
|
306
|
-
exports.Gunzip = Gunzip
|
|
307
|
-
exports.DeflateRaw = DeflateRaw
|
|
308
|
-
exports.InflateRaw = InflateRaw
|
|
309
|
-
exports.Unzip = Unzip
|
|
310
|
-
/* istanbul ignore else */
|
|
311
|
-
if (typeof realZlib.BrotliCompress === 'function') {
|
|
312
|
-
exports.BrotliCompress = BrotliCompress
|
|
313
|
-
exports.BrotliDecompress = BrotliDecompress
|
|
314
|
-
} else {
|
|
315
|
-
exports.BrotliCompress = exports.BrotliDecompress = class {
|
|
316
|
-
constructor () {
|
|
317
|
-
throw new Error('Brotli is not supported in this version of Node.js')
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_from": "minizlib@^1.2.1",
|
|
3
|
-
"_id": "minizlib@1.3.3",
|
|
4
|
-
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==",
|
|
6
|
-
"_location": "/minizlib",
|
|
7
|
-
"_phantomChildren": {},
|
|
8
|
-
"_requested": {
|
|
9
|
-
"type": "range",
|
|
10
|
-
"registry": true,
|
|
11
|
-
"raw": "minizlib@^1.2.1",
|
|
12
|
-
"name": "minizlib",
|
|
13
|
-
"escapedName": "minizlib",
|
|
14
|
-
"rawSpec": "^1.2.1",
|
|
15
|
-
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^1.2.1"
|
|
17
|
-
},
|
|
18
|
-
"_requiredBy": [
|
|
19
|
-
"/tar"
|
|
20
|
-
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz",
|
|
22
|
-
"_shasum": "2290de96818a34c29551c8a8d301216bd65a861d",
|
|
23
|
-
"_spec": "minizlib@^1.2.1",
|
|
24
|
-
"_where": "/Users/user/Developer/personal/fsevents/node_modules/tar",
|
|
25
|
-
"author": {
|
|
26
|
-
"name": "Isaac Z. Schlueter",
|
|
27
|
-
"email": "i@izs.me",
|
|
28
|
-
"url": "http://blog.izs.me/"
|
|
29
|
-
},
|
|
30
|
-
"bugs": {
|
|
31
|
-
"url": "https://github.com/isaacs/minizlib/issues"
|
|
32
|
-
},
|
|
33
|
-
"bundleDependencies": false,
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"minipass": "^2.9.0"
|
|
36
|
-
},
|
|
37
|
-
"deprecated": false,
|
|
38
|
-
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"tap": "^12.0.1"
|
|
41
|
-
},
|
|
42
|
-
"files": [
|
|
43
|
-
"index.js",
|
|
44
|
-
"constants.js"
|
|
45
|
-
],
|
|
46
|
-
"homepage": "https://github.com/isaacs/minizlib#readme",
|
|
47
|
-
"keywords": [
|
|
48
|
-
"zlib",
|
|
49
|
-
"gzip",
|
|
50
|
-
"gunzip",
|
|
51
|
-
"deflate",
|
|
52
|
-
"inflate",
|
|
53
|
-
"compression",
|
|
54
|
-
"zip",
|
|
55
|
-
"unzip"
|
|
56
|
-
],
|
|
57
|
-
"license": "MIT",
|
|
58
|
-
"main": "index.js",
|
|
59
|
-
"name": "minizlib",
|
|
60
|
-
"repository": {
|
|
61
|
-
"type": "git",
|
|
62
|
-
"url": "git+https://github.com/isaacs/minizlib.git"
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"postpublish": "git push origin --all; git push origin --tags",
|
|
66
|
-
"postversion": "npm publish",
|
|
67
|
-
"preversion": "npm test",
|
|
68
|
-
"test": "tap test/*.js --100 -J"
|
|
69
|
-
},
|
|
70
|
-
"version": "1.3.3"
|
|
71
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Copyright 2010 James Halliday (mail@substack.net)
|
|
2
|
-
|
|
3
|
-
This project is free software released under the MIT/X11 license:
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
var mkdirp = require('../');
|
|
4
|
-
var minimist = require('minimist');
|
|
5
|
-
var fs = require('fs');
|
|
6
|
-
|
|
7
|
-
var argv = minimist(process.argv.slice(2), {
|
|
8
|
-
alias: { m: 'mode', h: 'help' },
|
|
9
|
-
string: [ 'mode' ]
|
|
10
|
-
});
|
|
11
|
-
if (argv.help) {
|
|
12
|
-
fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
var paths = argv._.slice();
|
|
17
|
-
var mode = argv.mode ? parseInt(argv.mode, 8) : undefined;
|
|
18
|
-
|
|
19
|
-
(function next () {
|
|
20
|
-
if (paths.length === 0) return;
|
|
21
|
-
var p = paths.shift();
|
|
22
|
-
|
|
23
|
-
if (mode === undefined) mkdirp(p, cb)
|
|
24
|
-
else mkdirp(p, mode, cb)
|
|
25
|
-
|
|
26
|
-
function cb (err) {
|
|
27
|
-
if (err) {
|
|
28
|
-
console.error(err.message);
|
|
29
|
-
process.exit(1);
|
|
30
|
-
}
|
|
31
|
-
else next();
|
|
32
|
-
}
|
|
33
|
-
})();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
usage: mkdirp [DIR1,DIR2..] {OPTIONS}
|
|
2
|
-
|
|
3
|
-
Create each supplied directory including any necessary parent directories that
|
|
4
|
-
don't yet exist.
|
|
5
|
-
|
|
6
|
-
If the directory already exists, do nothing.
|
|
7
|
-
|
|
8
|
-
OPTIONS are:
|
|
9
|
-
|
|
10
|
-
-m, --mode If a directory needs to be created, set the mode as an octal
|
|
11
|
-
permission string.
|
|
12
|
-
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
var path = require('path');
|
|
2
|
-
var fs = require('fs');
|
|
3
|
-
var _0777 = parseInt('0777', 8);
|
|
4
|
-
|
|
5
|
-
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
|
|
6
|
-
|
|
7
|
-
function mkdirP (p, opts, f, made) {
|
|
8
|
-
if (typeof opts === 'function') {
|
|
9
|
-
f = opts;
|
|
10
|
-
opts = {};
|
|
11
|
-
}
|
|
12
|
-
else if (!opts || typeof opts !== 'object') {
|
|
13
|
-
opts = { mode: opts };
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
var mode = opts.mode;
|
|
17
|
-
var xfs = opts.fs || fs;
|
|
18
|
-
|
|
19
|
-
if (mode === undefined) {
|
|
20
|
-
mode = _0777 & (~process.umask());
|
|
21
|
-
}
|
|
22
|
-
if (!made) made = null;
|
|
23
|
-
|
|
24
|
-
var cb = f || function () {};
|
|
25
|
-
p = path.resolve(p);
|
|
26
|
-
|
|
27
|
-
xfs.mkdir(p, mode, function (er) {
|
|
28
|
-
if (!er) {
|
|
29
|
-
made = made || p;
|
|
30
|
-
return cb(null, made);
|
|
31
|
-
}
|
|
32
|
-
switch (er.code) {
|
|
33
|
-
case 'ENOENT':
|
|
34
|
-
mkdirP(path.dirname(p), opts, function (er, made) {
|
|
35
|
-
if (er) cb(er, made);
|
|
36
|
-
else mkdirP(p, opts, cb, made);
|
|
37
|
-
});
|
|
38
|
-
break;
|
|
39
|
-
|
|
40
|
-
// In the case of any other error, just see if there's a dir
|
|
41
|
-
// there already. If so, then hooray! If not, then something
|
|
42
|
-
// is borked.
|
|
43
|
-
default:
|
|
44
|
-
xfs.stat(p, function (er2, stat) {
|
|
45
|
-
// if the stat fails, then that's super weird.
|
|
46
|
-
// let the original error be the failure reason.
|
|
47
|
-
if (er2 || !stat.isDirectory()) cb(er, made)
|
|
48
|
-
else cb(null, made);
|
|
49
|
-
});
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
mkdirP.sync = function sync (p, opts, made) {
|
|
56
|
-
if (!opts || typeof opts !== 'object') {
|
|
57
|
-
opts = { mode: opts };
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
var mode = opts.mode;
|
|
61
|
-
var xfs = opts.fs || fs;
|
|
62
|
-
|
|
63
|
-
if (mode === undefined) {
|
|
64
|
-
mode = _0777 & (~process.umask());
|
|
65
|
-
}
|
|
66
|
-
if (!made) made = null;
|
|
67
|
-
|
|
68
|
-
p = path.resolve(p);
|
|
69
|
-
|
|
70
|
-
try {
|
|
71
|
-
xfs.mkdirSync(p, mode);
|
|
72
|
-
made = made || p;
|
|
73
|
-
}
|
|
74
|
-
catch (err0) {
|
|
75
|
-
switch (err0.code) {
|
|
76
|
-
case 'ENOENT' :
|
|
77
|
-
made = sync(path.dirname(p), opts, made);
|
|
78
|
-
sync(p, opts, made);
|
|
79
|
-
break;
|
|
80
|
-
|
|
81
|
-
// In the case of any other error, just see if there's a dir
|
|
82
|
-
// there already. If so, then hooray! If not, then something
|
|
83
|
-
// is borked.
|
|
84
|
-
default:
|
|
85
|
-
var stat;
|
|
86
|
-
try {
|
|
87
|
-
stat = xfs.statSync(p);
|
|
88
|
-
}
|
|
89
|
-
catch (err1) {
|
|
90
|
-
throw err0;
|
|
91
|
-
}
|
|
92
|
-
if (!stat.isDirectory()) throw err0;
|
|
93
|
-
break;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
return made;
|
|
98
|
-
};
|