From fce5f2e313d7d876ed156c35c8417a3bf1f9dfed Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 8 Apr 2020 00:33:20 +0200 Subject: [PATCH] Remove absolute paths --- .github/workflows/release.yml | 5 +- node_modules/@actions/core/README.md | 6 + node_modules/@actions/core/lib/core.d.ts | 4 + node_modules/@actions/core/lib/core.js | 7 + node_modules/@actions/core/lib/core.js.map | 2 +- node_modules/@actions/core/package.json | 27 +- node_modules/@actions/exec/package.json | 9 +- node_modules/@actions/http-client/README.md | 8 +- node_modules/@actions/http-client/RELEASES.md | 13 + node_modules/@actions/http-client/index.d.ts | 18 + node_modules/@actions/http-client/index.js | 114 ++ .../@actions/http-client/interfaces.d.ts | 6 + .../node_modules/tunnel/CHANGELOG.md | 22 - .../http-client/node_modules/tunnel/README.md | 185 -- .../http-client/node_modules/tunnel/index.js | 1 - .../node_modules/tunnel/lib/tunnel.js | 264 --- .../node_modules/tunnel/package.json | 67 - .../@actions/http-client/package.json | 27 +- node_modules/@actions/io/package.json | 9 +- node_modules/@actions/tool-cache/README.md | 6 +- .../@actions/tool-cache/lib/retry-helper.d.ts | 12 + .../@actions/tool-cache/lib/retry-helper.js | 70 + .../tool-cache/lib/retry-helper.js.map | 1 + .../@actions/tool-cache/lib/tool-cache.js | 167 +- .../@actions/tool-cache/lib/tool-cache.js.map | 2 +- node_modules/@actions/tool-cache/package.json | 27 +- node_modules/@sindresorhus/is/package.json | 9 +- .../node_modules/file-type/package.json | 9 +- node_modules/archive-type/package.json | 9 +- node_modules/base64-js/package.json | 9 +- node_modules/bl/package.json | 9 +- node_modules/buffer-alloc-unsafe/package.json | 9 +- node_modules/buffer-alloc/package.json | 9 +- node_modules/buffer-crc32/package.json | 9 +- node_modules/buffer-fill/package.json | 9 +- node_modules/buffer/AUTHORS.md | 2 + node_modules/buffer/README.md | 7 +- node_modules/buffer/index.js | 6 + node_modules/buffer/package.json | 32 +- .../node_modules/get-stream/buffer-stream.js | 51 + .../node_modules/get-stream/index.js | 51 + .../node_modules/get-stream/license | 21 + .../node_modules/get-stream/package.json | 76 + .../node_modules/get-stream/readme.md | 117 ++ .../node_modules/lowercase-keys/package.json | 9 +- node_modules/cacheable-request/package.json | 9 +- node_modules/caw/index.js | 37 - node_modules/caw/package.json | 84 - node_modules/caw/readme.md | 51 - node_modules/clone-response/package.json | 9 +- node_modules/commander/package.json | 9 +- node_modules/config-chain/LICENCE | 22 - node_modules/config-chain/index.js | 282 ---- node_modules/config-chain/package.json | 65 - node_modules/config-chain/readme.markdown | 257 --- .../node_modules/safe-buffer/package.json | 9 +- node_modules/content-disposition/package.json | 9 +- node_modules/core-util-is/package.json | 9 +- .../decode-uri-component/package.json | 9 +- node_modules/decompress-response/package.json | 9 +- .../node_modules/file-type/package.json | 9 +- node_modules/decompress-tar/package.json | 9 +- .../node_modules/file-type/package.json | 9 +- node_modules/decompress-tarbz2/package.json | 9 +- .../node_modules/file-type/package.json | 9 +- node_modules/decompress-targz/package.json | 9 +- .../node_modules/file-type/package.json | 9 +- .../node_modules/get-stream/package.json | 9 +- .../node_modules/pify/package.json | 9 +- node_modules/decompress-unzip/package.json | 9 +- node_modules/decompress/index.js | 59 +- node_modules/decompress/license | 22 +- .../decompress/node_modules/make-dir/index.js | 85 + .../node_modules/make-dir}/license | 2 +- .../make-dir/node_modules/pify/index.js | 84 + .../make-dir/node_modules/pify}/license | 2 +- .../make-dir/node_modules/pify/package.json | 79 + .../make-dir/node_modules/pify/readme.md | 131 ++ .../node_modules/make-dir/package.json | 82 + .../node_modules/make-dir/readme.md | 116 ++ .../decompress/node_modules/pify/package.json | 9 +- node_modules/decompress/package.json | 39 +- node_modules/decompress/readme.md | 4 +- node_modules/download/index.js | 26 +- node_modules/download/package.json | 50 +- node_modules/download/readme.md | 45 +- node_modules/duplexer3/package.json | 9 +- node_modules/end-of-stream/package.json | 9 +- .../escape-string-regexp/package.json | 9 +- node_modules/ext-list/package.json | 9 +- node_modules/ext-name/package.json | 9 +- node_modules/fd-slicer/package.json | 9 +- node_modules/file-type/index.d.ts | 205 +++ node_modules/file-type/index.js | 442 +++-- node_modules/file-type/package.json | 69 +- node_modules/file-type/readme.md | 107 +- node_modules/file-type/util.js | 58 + .../filename-reserved-regex/package.json | 9 +- node_modules/filenamify/index.d.ts | 30 + node_modules/filenamify/index.js | 13 +- node_modules/filenamify/package.json | 39 +- node_modules/filenamify/readme.md | 5 + node_modules/from2/package.json | 9 +- node_modules/fs-constants/package.json | 9 +- node_modules/get-proxy/index.js | 13 - node_modules/get-proxy/package.json | 68 - node_modules/get-proxy/readme.md | 25 - node_modules/get-stream/buffer-stream.js | 10 +- node_modules/get-stream/index.js | 61 +- node_modules/get-stream/license | 20 +- node_modules/get-stream/package.json | 43 +- node_modules/get-stream/readme.md | 26 +- .../node_modules/get-stream/buffer-stream.js | 51 + .../got/node_modules/get-stream/index.js | 51 + .../got/node_modules/get-stream/license | 21 + .../got/node_modules/get-stream/package.json | 76 + .../got/node_modules/get-stream/readme.md | 117 ++ node_modules/got/node_modules/pify/index.js | 84 + .../{caw => got/node_modules/pify}/license | 2 +- .../got/node_modules/pify/package.json | 79 + node_modules/got/node_modules/pify/readme.md | 131 ++ node_modules/got/package.json | 9 +- node_modules/graceful-fs/graceful-fs.js | 10 +- node_modules/graceful-fs/package.json | 34 +- node_modules/graceful-readlink/package.json | 9 +- .../has-symbol-support-x/package.json | 9 +- node_modules/has-to-string-tag-x/package.json | 9 +- .../http-cache-semantics/package.json | 9 +- node_modules/ieee754/package.json | 9 +- node_modules/inherits/package.json | 9 +- node_modules/ini/README.md | 102 -- node_modules/ini/ini.js | 194 --- node_modules/ini/package.json | 66 - node_modules/into-stream/package.json | 9 +- node_modules/is-natural-number/package.json | 9 +- node_modules/is-object/package.json | 9 +- node_modules/is-plain-obj/package.json | 9 +- node_modules/is-retry-allowed/package.json | 9 +- node_modules/is-stream/package.json | 9 +- node_modules/isarray/package.json | 9 +- node_modules/isurl/package.json | 9 +- node_modules/json-buffer/package.json | 9 +- node_modules/keyv/package.json | 9 +- node_modules/lowercase-keys/package.json | 9 +- node_modules/make-dir/index.d.ts | 39 + node_modules/make-dir/index.js | 98 +- .../make-dir/node_modules/.bin/semver | 15 + .../make-dir/node_modules/.bin/semver.cmd | 7 + .../make-dir/node_modules/semver/CHANGELOG.md | 39 + .../node_modules/semver}/LICENSE | 0 .../make-dir/node_modules/semver/README.md | 412 +++++ .../make-dir/node_modules/semver/bin/semver | 160 ++ .../make-dir/node_modules/semver/package.json | 56 + .../make-dir/node_modules/semver/range.bnf | 16 + .../make-dir/node_modules/semver/semver.js | 1483 +++++++++++++++++ node_modules/make-dir/package.json | 47 +- node_modules/make-dir/readme.md | 23 +- node_modules/mime-db/HISTORY.md | 15 + node_modules/mime-db/README.md | 8 +- node_modules/mime-db/db.json | 188 ++- node_modules/mime-db/package.json | 41 +- node_modules/mimic-response/package.json | 9 +- .../node_modules/sort-keys/package.json | 9 +- node_modules/normalize-url/package.json | 9 +- node_modules/npm-conf/index.js | 43 - node_modules/npm-conf/lib/conf.js | 174 -- node_modules/npm-conf/lib/defaults.js | 169 -- node_modules/npm-conf/lib/make.js | 91 - node_modules/npm-conf/lib/types.js | 127 -- node_modules/npm-conf/lib/util.js | 147 -- node_modules/npm-conf/package.json | 85 - node_modules/npm-conf/readme.md | 47 - node_modules/object-assign/package.json | 9 +- node_modules/once/package.json | 9 +- node_modules/p-cancelable/package.json | 9 +- node_modules/p-event/package.json | 9 +- node_modules/p-finally/package.json | 9 +- node_modules/p-is-promise/package.json | 9 +- node_modules/p-timeout/package.json | 9 +- node_modules/pend/package.json | 9 +- node_modules/pify/index.js | 78 +- node_modules/pify/package.json | 41 +- node_modules/pify/readme.md | 16 +- node_modules/pinkie-promise/package.json | 9 +- node_modules/pinkie/package.json | 9 +- node_modules/prepend-http/package.json | 9 +- .../process-nextick-args/package.json | 9 +- node_modules/proto-list/LICENSE | 15 - node_modules/proto-list/README.md | 3 - node_modules/proto-list/package.json | 54 - node_modules/proto-list/proto-list.js | 88 - node_modules/proto-list/test/basic.js | 61 - node_modules/pump/.travis.yml | 5 + .../node_modules/tunnel => pump}/LICENSE | 4 +- node_modules/pump/README.md | 65 + node_modules/pump/index.js | 82 + node_modules/pump/package.json | 57 + node_modules/pump/test-browser.js | 66 + node_modules/pump/test-node.js | 53 + node_modules/query-string/package.json | 9 +- node_modules/readable-stream/.travis.yml | 39 +- .../readable-stream/lib/_stream_duplex.js | 2 +- .../lib/_stream_passthrough.js | 2 +- .../readable-stream/lib/_stream_readable.js | 2 +- .../readable-stream/lib/_stream_transform.js | 2 +- .../readable-stream/lib/_stream_writable.js | 2 +- .../node_modules/safe-buffer/package.json | 9 +- node_modules/readable-stream/package.json | 27 +- node_modules/responselike/package.json | 9 +- node_modules/safe-buffer/package.json | 9 +- node_modules/seek-bzip/package.json | 9 +- node_modules/semver/package.json | 9 +- node_modules/sort-keys-length/package.json | 9 +- node_modules/sort-keys/package.json | 9 +- node_modules/strict-uri-encode/package.json | 9 +- .../node_modules/safe-buffer/package.json | 9 +- node_modules/string_decoder/package.json | 9 +- node_modules/strip-dirs/package.json | 9 +- node_modules/strip-outer/package.json | 9 +- node_modules/tar-stream/package.json | 9 +- node_modules/through/package.json | 9 +- node_modules/timed-out/package.json | 9 +- node_modules/to-buffer/package.json | 9 +- node_modules/trim-repeated/package.json | 9 +- node_modules/tunnel-agent/LICENSE | 55 - node_modules/tunnel-agent/README.md | 4 - node_modules/tunnel-agent/index.js | 244 --- node_modules/tunnel-agent/package.json | 59 - .../tunnel/.idea/encodings.xml | 0 .../tunnel/.idea/modules.xml | 0 .../tunnel/.idea/node-tunnel.iml | 0 .../node_modules => }/tunnel/.idea/vcs.xml | 0 .../tunnel/.idea/workspace.xml | 0 node_modules/tunnel/.npmignore | 2 - .../node_modules => }/tunnel/.travis.yml | 0 node_modules/tunnel/CHANGELOG.md | 9 + node_modules/tunnel/README.md | 14 +- node_modules/tunnel/lib/tunnel.js | 35 +- node_modules/tunnel/package.json | 34 +- node_modules/tunnel/test/http-over-http.js | 108 -- node_modules/tunnel/test/http-over-https.js | 130 -- node_modules/tunnel/test/https-over-http.js | 130 -- .../tunnel/test/https-over-https-error.js | 261 --- node_modules/tunnel/test/https-over-https.js | 146 -- node_modules/tunnel/test/keys/Makefile | 157 -- node_modules/tunnel/test/keys/agent1-cert.pem | 14 - node_modules/tunnel/test/keys/agent1-csr.pem | 10 - node_modules/tunnel/test/keys/agent1-key.pem | 9 - node_modules/tunnel/test/keys/agent1.cnf | 19 - node_modules/tunnel/test/keys/agent2-cert.pem | 13 - node_modules/tunnel/test/keys/agent2-csr.pem | 10 - node_modules/tunnel/test/keys/agent2-key.pem | 9 - node_modules/tunnel/test/keys/agent2.cnf | 19 - node_modules/tunnel/test/keys/agent3-cert.pem | 14 - node_modules/tunnel/test/keys/agent3-csr.pem | 10 - node_modules/tunnel/test/keys/agent3-key.pem | 9 - node_modules/tunnel/test/keys/agent3.cnf | 19 - node_modules/tunnel/test/keys/agent4-cert.pem | 15 - node_modules/tunnel/test/keys/agent4-csr.pem | 10 - node_modules/tunnel/test/keys/agent4-key.pem | 9 - node_modules/tunnel/test/keys/agent4.cnf | 21 - node_modules/tunnel/test/keys/ca1-cert.pem | 14 - node_modules/tunnel/test/keys/ca1-cert.srl | 1 - node_modules/tunnel/test/keys/ca1-key.pem | 17 - node_modules/tunnel/test/keys/ca1.cnf | 17 - node_modules/tunnel/test/keys/ca2-cert.pem | 14 - node_modules/tunnel/test/keys/ca2-cert.srl | 1 - node_modules/tunnel/test/keys/ca2-crl.pem | 10 - .../tunnel/test/keys/ca2-database.txt | 1 - node_modules/tunnel/test/keys/ca2-key.pem | 17 - node_modules/tunnel/test/keys/ca2-serial | 1 - node_modules/tunnel/test/keys/ca2.cnf | 17 - node_modules/tunnel/test/keys/ca3-cert.pem | 14 - node_modules/tunnel/test/keys/ca3-cert.srl | 1 - node_modules/tunnel/test/keys/ca3-key.pem | 17 - node_modules/tunnel/test/keys/ca3.cnf | 17 - node_modules/tunnel/test/keys/ca4-cert.pem | 14 - node_modules/tunnel/test/keys/ca4-cert.srl | 1 - node_modules/tunnel/test/keys/ca4-key.pem | 17 - node_modules/tunnel/test/keys/ca4.cnf | 17 - node_modules/tunnel/test/keys/client.cnf | 16 - .../tunnel/test/keys/client1-cert.pem | 14 - node_modules/tunnel/test/keys/client1-csr.pem | 12 - node_modules/tunnel/test/keys/client1-key.pem | 15 - node_modules/tunnel/test/keys/client1.cnf | 16 - .../tunnel/test/keys/client2-cert.pem | 14 - node_modules/tunnel/test/keys/client2-csr.pem | 12 - node_modules/tunnel/test/keys/client2-key.pem | 15 - node_modules/tunnel/test/keys/client2.cnf | 16 - node_modules/tunnel/test/keys/proxy1-cert.pem | 14 - node_modules/tunnel/test/keys/proxy1-csr.pem | 12 - node_modules/tunnel/test/keys/proxy1-key.pem | 15 - node_modules/tunnel/test/keys/proxy1.cnf | 16 - node_modules/tunnel/test/keys/proxy2-cert.pem | 14 - node_modules/tunnel/test/keys/proxy2-csr.pem | 12 - node_modules/tunnel/test/keys/proxy2-key.pem | 15 - node_modules/tunnel/test/keys/proxy2.cnf | 16 - .../tunnel/test/keys/server1-cert.pem | 14 - node_modules/tunnel/test/keys/server1-csr.pem | 12 - node_modules/tunnel/test/keys/server1-key.pem | 15 - node_modules/tunnel/test/keys/server1.cnf | 16 - .../tunnel/test/keys/server2-cert.pem | 14 - node_modules/tunnel/test/keys/server2-csr.pem | 12 - node_modules/tunnel/test/keys/server2-key.pem | 15 - node_modules/tunnel/test/keys/server2.cnf | 16 - node_modules/tunnel/test/keys/test.js | 43 - node_modules/typed-rest-client/HttpClient.js | 7 +- node_modules/typed-rest-client/LICENSE | 18 + .../typed-rest-client/RestClient.d.ts | 4 +- node_modules/typed-rest-client/RestClient.js | 16 +- node_modules/typed-rest-client/Util.js | 3 +- .../typed-rest-client/handlers/basiccreds.js | 2 +- .../typed-rest-client/handlers/bearertoken.js | 2 +- .../typed-rest-client/handlers/ntlm.js | 62 +- .../handlers/personalaccesstoken.js | 2 +- .../qs/.github/workflows/rebase.yml | 15 + .../node_modules/qs/CHANGELOG.md | 54 + .../node_modules/qs/README.md | 6 + .../node_modules/qs/dist/qs.js | 44 +- .../node_modules/qs/lib/parse.js | 44 +- .../node_modules/qs/package.json | 51 +- .../node_modules/qs/test/parse.js | 16 +- .../opensource/Node-SMB/README.md | 5 + .../opensource/Node-SMB/lib/common.js | 61 + .../opensource/Node-SMB/lib/ntlm.js | 220 +++ .../opensource/Node-SMB/lib/smbhash.js | 64 + .../opensource/node-http-ntlm/ntlm.js | 389 ----- .../opensource/node-http-ntlm/readme.txt | 6 - node_modules/typed-rest-client/package.json | 29 +- .../unbzip2-stream/dist/unbzip2-stream.min.js | 1 - node_modules/unbzip2-stream/index.js | 5 +- node_modules/unbzip2-stream/lib/bzip2.js | 2 - node_modules/unbzip2-stream/package.json | 27 +- node_modules/underscore/package.json | 9 +- node_modules/url-parse-lax/package.json | 9 +- node_modules/url-to-options/package.json | 9 +- node_modules/util-deprecate/package.json | 9 +- node_modules/uuid/package.json | 9 +- node_modules/wrappy/package.json | 9 +- node_modules/xtend/package.json | 9 +- node_modules/yauzl/package.json | 9 +- package.json | 16 +- 342 files changed, 6643 insertions(+), 7220 deletions(-) create mode 100644 node_modules/@actions/http-client/RELEASES.md delete mode 100644 node_modules/@actions/http-client/node_modules/tunnel/CHANGELOG.md delete mode 100644 node_modules/@actions/http-client/node_modules/tunnel/README.md delete mode 100644 node_modules/@actions/http-client/node_modules/tunnel/index.js delete mode 100644 node_modules/@actions/http-client/node_modules/tunnel/lib/tunnel.js delete mode 100644 node_modules/@actions/http-client/node_modules/tunnel/package.json create mode 100644 node_modules/@actions/tool-cache/lib/retry-helper.d.ts create mode 100644 node_modules/@actions/tool-cache/lib/retry-helper.js create mode 100644 node_modules/@actions/tool-cache/lib/retry-helper.js.map create mode 100644 node_modules/cacheable-request/node_modules/get-stream/buffer-stream.js create mode 100644 node_modules/cacheable-request/node_modules/get-stream/index.js create mode 100644 node_modules/cacheable-request/node_modules/get-stream/license create mode 100644 node_modules/cacheable-request/node_modules/get-stream/package.json create mode 100644 node_modules/cacheable-request/node_modules/get-stream/readme.md delete mode 100644 node_modules/caw/index.js delete mode 100644 node_modules/caw/package.json delete mode 100644 node_modules/caw/readme.md delete mode 100644 node_modules/config-chain/LICENCE delete mode 100644 node_modules/config-chain/index.js delete mode 100644 node_modules/config-chain/package.json delete mode 100644 node_modules/config-chain/readme.markdown create mode 100644 node_modules/decompress/node_modules/make-dir/index.js rename node_modules/{npm-conf => decompress/node_modules/make-dir}/license (92%) create mode 100644 node_modules/decompress/node_modules/make-dir/node_modules/pify/index.js rename node_modules/{get-proxy => decompress/node_modules/make-dir/node_modules/pify}/license (92%) create mode 100644 node_modules/decompress/node_modules/make-dir/node_modules/pify/package.json create mode 100644 node_modules/decompress/node_modules/make-dir/node_modules/pify/readme.md create mode 100644 node_modules/decompress/node_modules/make-dir/package.json create mode 100644 node_modules/decompress/node_modules/make-dir/readme.md create mode 100644 node_modules/file-type/index.d.ts create mode 100644 node_modules/file-type/util.js create mode 100644 node_modules/filenamify/index.d.ts delete mode 100644 node_modules/get-proxy/index.js delete mode 100644 node_modules/get-proxy/package.json delete mode 100644 node_modules/get-proxy/readme.md create mode 100644 node_modules/got/node_modules/get-stream/buffer-stream.js create mode 100644 node_modules/got/node_modules/get-stream/index.js create mode 100644 node_modules/got/node_modules/get-stream/license create mode 100644 node_modules/got/node_modules/get-stream/package.json create mode 100644 node_modules/got/node_modules/get-stream/readme.md create mode 100644 node_modules/got/node_modules/pify/index.js rename node_modules/{caw => got/node_modules/pify}/license (92%) create mode 100644 node_modules/got/node_modules/pify/package.json create mode 100644 node_modules/got/node_modules/pify/readme.md delete mode 100644 node_modules/ini/README.md delete mode 100644 node_modules/ini/ini.js delete mode 100644 node_modules/ini/package.json create mode 100644 node_modules/make-dir/index.d.ts create mode 100644 node_modules/make-dir/node_modules/.bin/semver create mode 100644 node_modules/make-dir/node_modules/.bin/semver.cmd create mode 100644 node_modules/make-dir/node_modules/semver/CHANGELOG.md rename node_modules/{ini => make-dir/node_modules/semver}/LICENSE (100%) create mode 100644 node_modules/make-dir/node_modules/semver/README.md create mode 100644 node_modules/make-dir/node_modules/semver/bin/semver create mode 100644 node_modules/make-dir/node_modules/semver/package.json create mode 100644 node_modules/make-dir/node_modules/semver/range.bnf create mode 100644 node_modules/make-dir/node_modules/semver/semver.js delete mode 100644 node_modules/npm-conf/index.js delete mode 100644 node_modules/npm-conf/lib/conf.js delete mode 100644 node_modules/npm-conf/lib/defaults.js delete mode 100644 node_modules/npm-conf/lib/make.js delete mode 100644 node_modules/npm-conf/lib/types.js delete mode 100644 node_modules/npm-conf/lib/util.js delete mode 100644 node_modules/npm-conf/package.json delete mode 100644 node_modules/npm-conf/readme.md delete mode 100644 node_modules/proto-list/LICENSE delete mode 100644 node_modules/proto-list/README.md delete mode 100644 node_modules/proto-list/package.json delete mode 100644 node_modules/proto-list/proto-list.js delete mode 100644 node_modules/proto-list/test/basic.js create mode 100644 node_modules/pump/.travis.yml rename node_modules/{@actions/http-client/node_modules/tunnel => pump}/LICENSE (95%) create mode 100644 node_modules/pump/README.md create mode 100644 node_modules/pump/index.js create mode 100644 node_modules/pump/package.json create mode 100644 node_modules/pump/test-browser.js create mode 100644 node_modules/pump/test-node.js delete mode 100644 node_modules/tunnel-agent/LICENSE delete mode 100644 node_modules/tunnel-agent/README.md delete mode 100644 node_modules/tunnel-agent/index.js delete mode 100644 node_modules/tunnel-agent/package.json rename node_modules/{@actions/http-client/node_modules => }/tunnel/.idea/encodings.xml (100%) rename node_modules/{@actions/http-client/node_modules => }/tunnel/.idea/modules.xml (100%) rename node_modules/{@actions/http-client/node_modules => }/tunnel/.idea/node-tunnel.iml (100%) rename node_modules/{@actions/http-client/node_modules => }/tunnel/.idea/vcs.xml (100%) rename node_modules/{@actions/http-client/node_modules => }/tunnel/.idea/workspace.xml (100%) delete mode 100644 node_modules/tunnel/.npmignore rename node_modules/{@actions/http-client/node_modules => }/tunnel/.travis.yml (100%) delete mode 100644 node_modules/tunnel/test/http-over-http.js delete mode 100644 node_modules/tunnel/test/http-over-https.js delete mode 100644 node_modules/tunnel/test/https-over-http.js delete mode 100644 node_modules/tunnel/test/https-over-https-error.js delete mode 100644 node_modules/tunnel/test/https-over-https.js delete mode 100644 node_modules/tunnel/test/keys/Makefile delete mode 100644 node_modules/tunnel/test/keys/agent1-cert.pem delete mode 100644 node_modules/tunnel/test/keys/agent1-csr.pem delete mode 100644 node_modules/tunnel/test/keys/agent1-key.pem delete mode 100644 node_modules/tunnel/test/keys/agent1.cnf delete mode 100644 node_modules/tunnel/test/keys/agent2-cert.pem delete mode 100644 node_modules/tunnel/test/keys/agent2-csr.pem delete mode 100644 node_modules/tunnel/test/keys/agent2-key.pem delete mode 100644 node_modules/tunnel/test/keys/agent2.cnf delete mode 100644 node_modules/tunnel/test/keys/agent3-cert.pem delete mode 100644 node_modules/tunnel/test/keys/agent3-csr.pem delete mode 100644 node_modules/tunnel/test/keys/agent3-key.pem delete mode 100644 node_modules/tunnel/test/keys/agent3.cnf delete mode 100644 node_modules/tunnel/test/keys/agent4-cert.pem delete mode 100644 node_modules/tunnel/test/keys/agent4-csr.pem delete mode 100644 node_modules/tunnel/test/keys/agent4-key.pem delete mode 100644 node_modules/tunnel/test/keys/agent4.cnf delete mode 100644 node_modules/tunnel/test/keys/ca1-cert.pem delete mode 100644 node_modules/tunnel/test/keys/ca1-cert.srl delete mode 100644 node_modules/tunnel/test/keys/ca1-key.pem delete mode 100644 node_modules/tunnel/test/keys/ca1.cnf delete mode 100644 node_modules/tunnel/test/keys/ca2-cert.pem delete mode 100644 node_modules/tunnel/test/keys/ca2-cert.srl delete mode 100644 node_modules/tunnel/test/keys/ca2-crl.pem delete mode 100644 node_modules/tunnel/test/keys/ca2-database.txt delete mode 100644 node_modules/tunnel/test/keys/ca2-key.pem delete mode 100644 node_modules/tunnel/test/keys/ca2-serial delete mode 100644 node_modules/tunnel/test/keys/ca2.cnf delete mode 100644 node_modules/tunnel/test/keys/ca3-cert.pem delete mode 100644 node_modules/tunnel/test/keys/ca3-cert.srl delete mode 100644 node_modules/tunnel/test/keys/ca3-key.pem delete mode 100644 node_modules/tunnel/test/keys/ca3.cnf delete mode 100644 node_modules/tunnel/test/keys/ca4-cert.pem delete mode 100644 node_modules/tunnel/test/keys/ca4-cert.srl delete mode 100644 node_modules/tunnel/test/keys/ca4-key.pem delete mode 100644 node_modules/tunnel/test/keys/ca4.cnf delete mode 100644 node_modules/tunnel/test/keys/client.cnf delete mode 100644 node_modules/tunnel/test/keys/client1-cert.pem delete mode 100644 node_modules/tunnel/test/keys/client1-csr.pem delete mode 100644 node_modules/tunnel/test/keys/client1-key.pem delete mode 100644 node_modules/tunnel/test/keys/client1.cnf delete mode 100644 node_modules/tunnel/test/keys/client2-cert.pem delete mode 100644 node_modules/tunnel/test/keys/client2-csr.pem delete mode 100644 node_modules/tunnel/test/keys/client2-key.pem delete mode 100644 node_modules/tunnel/test/keys/client2.cnf delete mode 100644 node_modules/tunnel/test/keys/proxy1-cert.pem delete mode 100644 node_modules/tunnel/test/keys/proxy1-csr.pem delete mode 100644 node_modules/tunnel/test/keys/proxy1-key.pem delete mode 100644 node_modules/tunnel/test/keys/proxy1.cnf delete mode 100644 node_modules/tunnel/test/keys/proxy2-cert.pem delete mode 100644 node_modules/tunnel/test/keys/proxy2-csr.pem delete mode 100644 node_modules/tunnel/test/keys/proxy2-key.pem delete mode 100644 node_modules/tunnel/test/keys/proxy2.cnf delete mode 100644 node_modules/tunnel/test/keys/server1-cert.pem delete mode 100644 node_modules/tunnel/test/keys/server1-csr.pem delete mode 100644 node_modules/tunnel/test/keys/server1-key.pem delete mode 100644 node_modules/tunnel/test/keys/server1.cnf delete mode 100644 node_modules/tunnel/test/keys/server2-cert.pem delete mode 100644 node_modules/tunnel/test/keys/server2-csr.pem delete mode 100644 node_modules/tunnel/test/keys/server2-key.pem delete mode 100644 node_modules/tunnel/test/keys/server2.cnf delete mode 100644 node_modules/tunnel/test/keys/test.js create mode 100644 node_modules/typed-rest-client/node_modules/qs/.github/workflows/rebase.yml create mode 100644 node_modules/typed-rest-client/opensource/Node-SMB/README.md create mode 100644 node_modules/typed-rest-client/opensource/Node-SMB/lib/common.js create mode 100644 node_modules/typed-rest-client/opensource/Node-SMB/lib/ntlm.js create mode 100644 node_modules/typed-rest-client/opensource/Node-SMB/lib/smbhash.js delete mode 100644 node_modules/typed-rest-client/opensource/node-http-ntlm/ntlm.js delete mode 100644 node_modules/typed-rest-client/opensource/node-http-ntlm/readme.txt delete mode 100644 node_modules/unbzip2-stream/dist/unbzip2-stream.min.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 15bf4a9..970e3c9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,9 +48,8 @@ jobs: - name: NPM production deps run: | - rm -rf node_modules - sed -i '/node_modules/d' .gitignore - npm install --production + npm run build-dep + npm run prune - name: Commit and push changes run: | diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md index 457f73c..5ad27ee 100644 --- a/node_modules/@actions/core/README.md +++ b/node_modules/@actions/core/README.md @@ -82,6 +82,12 @@ try { core.warning('myInput was not set'); } + if (core.isDebug()) { + // curl -v https://github.com + } else { + // curl https://github.com + } + // Do stuff } catch (err) { diff --git a/node_modules/@actions/core/lib/core.d.ts b/node_modules/@actions/core/lib/core.d.ts index 6483c3c..8fcc31b 100644 --- a/node_modules/@actions/core/lib/core.d.ts +++ b/node_modules/@actions/core/lib/core.d.ts @@ -55,6 +55,10 @@ export declare function setOutput(name: string, value: string): void; * @param message add error issue message */ export declare function setFailed(message: string): void; +/** + * Gets whether Actions Step Debug is on or not + */ +export declare function isDebug(): boolean; /** * Writes debug message to user log * @param message debug message diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js index b99e1de..b7ec8ab 100644 --- a/node_modules/@actions/core/lib/core.js +++ b/node_modules/@actions/core/lib/core.js @@ -104,6 +104,13 @@ exports.setFailed = setFailed; //----------------------------------------------------------------------- // Logging Commands //----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; /** * Writes debug message to user log * @param message debug message diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map index 33c6268..fb93bd3 100644 --- a/node_modules/@actions/core/lib/core.js.map +++ b/node_modules/@actions/core/lib/core.js.map @@ -1 +1 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index c92c23c..4c5526e 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,34 +1,27 @@ { - "_args": [ - [ - "@actions/core@1.2.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "@actions/core@1.2.2", - "_id": "@actions/core@1.2.2", + "_from": "@actions/core@1.2.3", + "_id": "@actions/core@1.2.3", "_inBundle": false, - "_integrity": "sha512-IbCx7oefq+Gi6FWbSs2Fnw8VkEI6Y4gvjrYprY3RV//ksq/KPMlClOerJ4jRosyal6zkUIc8R9fS/cpRMlGClg==", + "_integrity": "sha512-Wp4xnyokakM45Uuj4WLUxdsa8fJjKVl1fDTsPbTEcTcuu0Nb26IPQbOtjmnfaCPGcaoPOOqId8H9NapZ8gii4w==", "_location": "/@actions/core", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@actions/core@1.2.2", + "raw": "@actions/core@1.2.3", "name": "@actions/core", "escapedName": "@actions%2fcore", "scope": "@actions", - "rawSpec": "1.2.2", + "rawSpec": "1.2.3", "saveSpec": null, - "fetchSpec": "1.2.2" + "fetchSpec": "1.2.3" }, "_requiredBy": [ "/", "/@actions/tool-cache" ], - "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.2.tgz", - "_spec": "1.2.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.3.tgz", + "_spec": "1.2.3", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, @@ -66,5 +59,5 @@ "tsc": "tsc" }, "types": "lib/core.d.ts", - "version": "1.2.2" -} + "version": "1.2.3" +} \ No newline at end of file diff --git a/node_modules/@actions/exec/package.json b/node_modules/@actions/exec/package.json index 85d2da6..65d4e90 100644 --- a/node_modules/@actions/exec/package.json +++ b/node_modules/@actions/exec/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "@actions/exec@1.0.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "@actions/exec@1.0.3", "_id": "@actions/exec@1.0.3", "_inBundle": false, @@ -28,7 +22,6 @@ ], "_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.3.tgz", "_spec": "1.0.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, @@ -67,4 +60,4 @@ }, "types": "lib/exec.d.ts", "version": "1.0.3" -} +} \ No newline at end of file diff --git a/node_modules/@actions/http-client/README.md b/node_modules/@actions/http-client/README.md index 9ef52c2..be61eb3 100644 --- a/node_modules/@actions/http-client/README.md +++ b/node_modules/@actions/http-client/README.md @@ -18,6 +18,8 @@ A lightweight HTTP client optimized for use with actions, TypeScript with generi - Basic, Bearer and PAT Support out of the box. Extensible handlers for others. - Redirects supported +Features and releases [here](./RELEASES.md) + ## Install ``` @@ -49,7 +51,11 @@ export NODE_DEBUG=http ## Node support -The http-client is built using the latest LTS version of Node 12. We also support the latest LTS for Node 6, 8 and Node 10. +The http-client is built using the latest LTS version of Node 12. It may work on previous node LTS versions but it's tested and officially supported on Node12+. + +## Support and Versioning + +We follow semver and will hold compatibility between major versions and increment the minor version with new features and capabilities (while holding compat). ## Contributing diff --git a/node_modules/@actions/http-client/RELEASES.md b/node_modules/@actions/http-client/RELEASES.md new file mode 100644 index 0000000..c8040ed --- /dev/null +++ b/node_modules/@actions/http-client/RELEASES.md @@ -0,0 +1,13 @@ +## Releases + +## 1.0.6 +Automatically sends Content-Type and Accept application/json headers for \Json() helper methods if not set in the client or parameters. + +## 1.0.5 +Adds \Json() helper methods for json over http scenarios. + +## 1.0.4 +Started to add \Json() helper methods. Do not use this release for that. Use >= 1.0.5 since there was an issue with types. + +## 1.0.1 to 1.0.3 +Adds proxy support. \ No newline at end of file diff --git a/node_modules/@actions/http-client/index.d.ts b/node_modules/@actions/http-client/index.d.ts index ea3454d..2bbcc6a 100644 --- a/node_modules/@actions/http-client/index.d.ts +++ b/node_modules/@actions/http-client/index.d.ts @@ -29,6 +29,13 @@ export declare enum HttpCodes { ServiceUnavailable = 503, GatewayTimeout = 504 } +export declare enum Headers { + Accept = "accept", + ContentType = "content-type" +} +export declare enum MediaTypes { + ApplicationJson = "application/json" +} /** * Returns the proxy URL, depending upon the supplied url and proxy environment variables. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com @@ -64,6 +71,14 @@ export declare class HttpClient { put(requestUrl: string, data: string, additionalHeaders?: ifm.IHeaders): Promise; head(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: ifm.IHeaders): Promise; + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise>; + postJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + putJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + patchJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; /** * Makes a raw http request. * All other methods such as get, post, patch, and request ultimately call this. @@ -95,6 +110,9 @@ export declare class HttpClient { getAgent(serverUrl: string): http.Agent; private _prepareRequest; private _mergeHeaders; + private _getExistingOrDefaultHeader; private _getAgent; private _performExponentialBackoff; + private static dateTimeDeserializer; + private _processResponse; } diff --git a/node_modules/@actions/http-client/index.js b/node_modules/@actions/http-client/index.js index 631e16f..7e553a6 100644 --- a/node_modules/@actions/http-client/index.js +++ b/node_modules/@actions/http-client/index.js @@ -34,6 +34,15 @@ var HttpCodes; HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; })(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers = exports.Headers || (exports.Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); /** * Returns the proxy URL, depending upon the supplied url and proxy environment variables. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com @@ -132,6 +141,36 @@ class HttpClient { sendStream(verb, requestUrl, stream, additionalHeaders) { return this.request(verb, requestUrl, stream, additionalHeaders); } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + async getJson(requestUrl, additionalHeaders = {}) { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + let res = await this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async postJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async putJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async patchJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } /** * Makes a raw http request. * All other methods such as get, post, patch, and request ultimately call this. @@ -315,6 +354,14 @@ class HttpClient { } return lowercaseKeys(headers || {}); } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => (c[k.toLowerCase()] = obj[k], c), {}); + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } _getAgent(parsedUrl) { let agent; let proxyUrl = pm.getProxyUrl(parsedUrl); @@ -382,5 +429,72 @@ class HttpClient { const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); return new Promise(resolve => setTimeout(() => resolve(), ms)); } + static dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + let a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + async _processResponse(res, options) { + return new Promise(async (resolve, reject) => { + const statusCode = res.message.statusCode; + const response = { + statusCode: statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode == HttpCodes.NotFound) { + resolve(response); + } + let obj; + let contents; + // get the result from the body + try { + contents = await res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = "Failed request: (" + statusCode + ")"; + } + let err = new Error(msg); + // attach statusCode and body obj (if available) to the error object + err['statusCode'] = statusCode; + if (response.result) { + err['result'] = response.result; + } + reject(err); + } + else { + resolve(response); + } + }); + } } exports.HttpClient = HttpClient; diff --git a/node_modules/@actions/http-client/interfaces.d.ts b/node_modules/@actions/http-client/interfaces.d.ts index 2e8822a..7e3fc3f 100644 --- a/node_modules/@actions/http-client/interfaces.d.ts +++ b/node_modules/@actions/http-client/interfaces.d.ts @@ -39,6 +39,12 @@ export interface IRequestOptions { maxRedirects?: number; maxSockets?: number; keepAlive?: boolean; + deserializeDates?: boolean; allowRetries?: boolean; maxRetries?: number; } +export interface ITypedResponse { + statusCode: number; + result: T | null; + headers: Object; +} diff --git a/node_modules/@actions/http-client/node_modules/tunnel/CHANGELOG.md b/node_modules/@actions/http-client/node_modules/tunnel/CHANGELOG.md deleted file mode 100644 index baf6b18..0000000 --- a/node_modules/@actions/http-client/node_modules/tunnel/CHANGELOG.md +++ /dev/null @@ -1,22 +0,0 @@ -# Changelog - - - 0.0.6 (2018/09/11) - - Fix `localAddress` not working (#25) - - Fix `Host:` header for CONNECT method by @tmurakam (#29, #30) - - Fix default port for https (#32) - - Fix error handling when the proxy send illegal response body (#33) - - - 0.0.5 (2017/06/12) - - Fix socket leak. - - - 0.0.4 (2016/01/23) - - supported Node v0.12 or later. - - - 0.0.3 (2014/01/20) - - fixed package.json - - - 0.0.1 (2012/02/18) - - supported Node v0.6.x (0.6.11 or later). - - - 0.0.0 (2012/02/11) - - first release. diff --git a/node_modules/@actions/http-client/node_modules/tunnel/README.md b/node_modules/@actions/http-client/node_modules/tunnel/README.md deleted file mode 100644 index f54bca5..0000000 --- a/node_modules/@actions/http-client/node_modules/tunnel/README.md +++ /dev/null @@ -1,185 +0,0 @@ -# node-tunnel - HTTP/HTTPS Agents for tunneling proxies - -[![Build Status](https://img.shields.io/travis/koichik/node-tunnel.svg?style=flat)](https://travis-ci.org/koichik/node-tunnel) -[![Dependency Status](http://img.shields.io/david/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=dependencies) -[![DevDependency Status](http://img.shields.io/david/dev/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=devDependencies) - -## Example - -```javascript -var tunnel = require('tunnel'); - -var tunnelingAgent = tunnel.httpsOverHttp({ - proxy: { - host: 'localhost', - port: 3128 - } -}); - -var req = https.request({ - host: 'example.com', - port: 443, - agent: tunnelingAgent -}); -``` - -## Installation - - $ npm install tunnel - -## Usages - -### HTTP over HTTP tunneling - -```javascript -var tunnelingAgent = tunnel.httpOverHttp({ - maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets - - proxy: { // Proxy settings - host: proxyHost, // Defaults to 'localhost' - port: proxyPort, // Defaults to 80 - localAddress: localAddress, // Local interface if necessary - - // Basic authorization for proxy server if necessary - proxyAuth: 'user:password', - - // Header fields for proxy server if necessary - headers: { - 'User-Agent': 'Node' - } - } -}); - -var req = http.request({ - host: 'example.com', - port: 80, - agent: tunnelingAgent -}); -``` - -### HTTPS over HTTP tunneling - -```javascript -var tunnelingAgent = tunnel.httpsOverHttp({ - maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets - - // CA for origin server if necessary - ca: [ fs.readFileSync('origin-server-ca.pem')], - - // Client certification for origin server if necessary - key: fs.readFileSync('origin-server-key.pem'), - cert: fs.readFileSync('origin-server-cert.pem'), - - proxy: { // Proxy settings - host: proxyHost, // Defaults to 'localhost' - port: proxyPort, // Defaults to 80 - localAddress: localAddress, // Local interface if necessary - - // Basic authorization for proxy server if necessary - proxyAuth: 'user:password', - - // Header fields for proxy server if necessary - headers: { - 'User-Agent': 'Node' - }, - } -}); - -var req = https.request({ - host: 'example.com', - port: 443, - agent: tunnelingAgent -}); -``` - -### HTTP over HTTPS tunneling - -```javascript -var tunnelingAgent = tunnel.httpOverHttps({ - maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets - - proxy: { // Proxy settings - host: proxyHost, // Defaults to 'localhost' - port: proxyPort, // Defaults to 443 - localAddress: localAddress, // Local interface if necessary - - // Basic authorization for proxy server if necessary - proxyAuth: 'user:password', - - // Header fields for proxy server if necessary - headers: { - 'User-Agent': 'Node' - }, - - // CA for proxy server if necessary - ca: [ fs.readFileSync('origin-server-ca.pem')], - - // Server name for verification if necessary - servername: 'example.com', - - // Client certification for proxy server if necessary - key: fs.readFileSync('origin-server-key.pem'), - cert: fs.readFileSync('origin-server-cert.pem'), - } -}); - -var req = http.request({ - host: 'example.com', - port: 80, - agent: tunnelingAgent -}); -``` - -### HTTPS over HTTPS tunneling - -```javascript -var tunnelingAgent = tunnel.httpsOverHttps({ - maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets - - // CA for origin server if necessary - ca: [ fs.readFileSync('origin-server-ca.pem')], - - // Client certification for origin server if necessary - key: fs.readFileSync('origin-server-key.pem'), - cert: fs.readFileSync('origin-server-cert.pem'), - - proxy: { // Proxy settings - host: proxyHost, // Defaults to 'localhost' - port: proxyPort, // Defaults to 443 - localAddress: localAddress, // Local interface if necessary - - // Basic authorization for proxy server if necessary - proxyAuth: 'user:password', - - // Header fields for proxy server if necessary - headers: { - 'User-Agent': 'Node' - } - - // CA for proxy server if necessary - ca: [ fs.readFileSync('origin-server-ca.pem')], - - // Server name for verification if necessary - servername: 'example.com', - - // Client certification for proxy server if necessary - key: fs.readFileSync('origin-server-key.pem'), - cert: fs.readFileSync('origin-server-cert.pem'), - } -}); - -var req = https.request({ - host: 'example.com', - port: 443, - agent: tunnelingAgent -}); -``` - -## CONTRIBUTORS -* [Aleksis Brezas (abresas)](https://github.com/abresas) -* [Jackson Tian (JacksonTian)](https://github.com/JacksonTian) -* [Dmitry Sorin (1999)](https://github.com/1999) - -## License - -Licensed under the [MIT](https://github.com/koichik/node-tunnel/blob/master/LICENSE) license. diff --git a/node_modules/@actions/http-client/node_modules/tunnel/index.js b/node_modules/@actions/http-client/node_modules/tunnel/index.js deleted file mode 100644 index 2947757..0000000 --- a/node_modules/@actions/http-client/node_modules/tunnel/index.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./lib/tunnel'); diff --git a/node_modules/@actions/http-client/node_modules/tunnel/lib/tunnel.js b/node_modules/@actions/http-client/node_modules/tunnel/lib/tunnel.js deleted file mode 100644 index 10cc382..0000000 --- a/node_modules/@actions/http-client/node_modules/tunnel/lib/tunnel.js +++ /dev/null @@ -1,264 +0,0 @@ -'use strict'; - -var net = require('net'); -var tls = require('tls'); -var http = require('http'); -var https = require('https'); -var events = require('events'); -var assert = require('assert'); -var util = require('util'); - - -exports.httpOverHttp = httpOverHttp; -exports.httpsOverHttp = httpsOverHttp; -exports.httpOverHttps = httpOverHttps; -exports.httpsOverHttps = httpsOverHttps; - - -function httpOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - return agent; -} - -function httpsOverHttp(options) { - var agent = new TunnelingAgent(options); - agent.request = http.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - -function httpOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - return agent; -} - -function httpsOverHttps(options) { - var agent = new TunnelingAgent(options); - agent.request = https.request; - agent.createSocket = createSecureSocket; - agent.defaultPort = 443; - return agent; -} - - -function TunnelingAgent(options) { - var self = this; - self.options = options || {}; - self.proxyOptions = self.options.proxy || {}; - self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; - self.requests = []; - self.sockets = []; - - self.on('free', function onFree(socket, host, port, localAddress) { - var options = toOptions(host, port, localAddress); - for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i]; - if (pending.host === options.host && pending.port === options.port) { - // Detect the request to connect same origin server, - // reuse the connection. - self.requests.splice(i, 1); - pending.request.onSocket(socket); - return; - } - } - socket.destroy(); - self.removeSocket(socket); - }); -} -util.inherits(TunnelingAgent, events.EventEmitter); - -TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { - var self = this; - var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); - - if (self.sockets.length >= this.maxSockets) { - // We are over limit so we'll add it to the queue. - self.requests.push(options); - return; - } - - // If we are under maxSockets create a new one. - self.createSocket(options, function(socket) { - socket.on('free', onFree); - socket.on('close', onCloseOrRemove); - socket.on('agentRemove', onCloseOrRemove); - req.onSocket(socket); - - function onFree() { - self.emit('free', socket, options); - } - - function onCloseOrRemove(err) { - self.removeSocket(socket); - socket.removeListener('free', onFree); - socket.removeListener('close', onCloseOrRemove); - socket.removeListener('agentRemove', onCloseOrRemove); - } - }); -}; - -TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self = this; - var placeholder = {}; - self.sockets.push(placeholder); - - var connectOptions = mergeOptions({}, self.proxyOptions, { - method: 'CONNECT', - path: options.host + ':' + options.port, - agent: false, - headers: { - host: options.host + ':' + options.port - } - }); - if (options.localAddress) { - connectOptions.localAddress = options.localAddress; - } - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {}; - connectOptions.headers['Proxy-Authorization'] = 'Basic ' + - new Buffer(connectOptions.proxyAuth).toString('base64'); - } - - debug('making CONNECT request'); - var connectReq = self.request(connectOptions); - connectReq.useChunkedEncodingByDefault = false; // for v0.6 - connectReq.once('response', onResponse); // for v0.6 - connectReq.once('upgrade', onUpgrade); // for v0.6 - connectReq.once('connect', onConnect); // for v0.7 or later - connectReq.once('error', onError); - connectReq.end(); - - function onResponse(res) { - // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true; - } - - function onUpgrade(res, socket, head) { - // Hacky. - process.nextTick(function() { - onConnect(res, socket, head); - }); - } - - function onConnect(res, socket, head) { - connectReq.removeAllListeners(); - socket.removeAllListeners(); - - if (res.statusCode !== 200) { - debug('tunneling socket could not be established, statusCode=%d', - res.statusCode); - socket.destroy(); - var error = new Error('tunneling socket could not be established, ' + - 'statusCode=' + res.statusCode); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - if (head.length > 0) { - debug('got illegal response body from proxy'); - socket.destroy(); - var error = new Error('got illegal response body from proxy'); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - return; - } - debug('tunneling connection has established'); - self.sockets[self.sockets.indexOf(placeholder)] = socket; - return cb(socket); - } - - function onError(cause) { - connectReq.removeAllListeners(); - - debug('tunneling socket could not be established, cause=%s\n', - cause.message, cause.stack); - var error = new Error('tunneling socket could not be established, ' + - 'cause=' + cause.message); - error.code = 'ECONNRESET'; - options.request.emit('error', error); - self.removeSocket(placeholder); - } -}; - -TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) - if (pos === -1) { - return; - } - this.sockets.splice(pos, 1); - - var pending = this.requests.shift(); - if (pending) { - // If we have pending requests and a socket gets closed a new one - // needs to be created to take over in the pool for the one that closed. - this.createSocket(pending, function(socket) { - pending.request.onSocket(socket); - }); - } -}; - -function createSecureSocket(options, cb) { - var self = this; - TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { - var hostHeader = options.request.getHeader('host'); - var tlsOptions = mergeOptions({}, self.options, { - socket: socket, - servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host - }); - - // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, tlsOptions); - self.sockets[self.sockets.indexOf(socket)] = secureSocket; - cb(secureSocket); - }); -} - - -function toOptions(host, port, localAddress) { - if (typeof host === 'string') { // since v0.10 - return { - host: host, - port: port, - localAddress: localAddress - }; - } - return host; // for v0.11 or later -} - -function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i]; - if (typeof overrides === 'object') { - var keys = Object.keys(overrides); - for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j]; - if (overrides[k] !== undefined) { - target[k] = overrides[k]; - } - } - } - } - return target; -} - - -var debug; -if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments); - if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0]; - } else { - args.unshift('TUNNEL:'); - } - console.error.apply(console, args); - } -} else { - debug = function() {}; -} -exports.debug = debug; // for test diff --git a/node_modules/@actions/http-client/node_modules/tunnel/package.json b/node_modules/@actions/http-client/node_modules/tunnel/package.json deleted file mode 100644 index 9809309..0000000 --- a/node_modules/@actions/http-client/node_modules/tunnel/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "_args": [ - [ - "tunnel@0.0.6", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "tunnel@0.0.6", - "_id": "tunnel@0.0.6", - "_inBundle": false, - "_integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", - "_location": "/@actions/http-client/tunnel", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "tunnel@0.0.6", - "name": "tunnel", - "escapedName": "tunnel", - "rawSpec": "0.0.6", - "saveSpec": null, - "fetchSpec": "0.0.6" - }, - "_requiredBy": [ - "/@actions/http-client" - ], - "_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", - "_spec": "0.0.6", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Koichi Kobayashi", - "email": "koichik@improvement.jp" - }, - "bugs": { - "url": "https://github.com/koichik/node-tunnel/issues" - }, - "description": "Node HTTP/HTTPS Agents for tunneling proxies", - "devDependencies": { - "mocha": "^5.2.0", - "should": "^13.2.3" - }, - "directories": { - "lib": "./lib" - }, - "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" - }, - "homepage": "https://github.com/koichik/node-tunnel/", - "keywords": [ - "http", - "https", - "agent", - "proxy", - "tunnel" - ], - "license": "MIT", - "main": "./index.js", - "name": "tunnel", - "repository": { - "type": "git", - "url": "git+https://github.com/koichik/node-tunnel.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "0.0.6" -} diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json index 6e82a48..cf1549c 100644 --- a/node_modules/@actions/http-client/package.json +++ b/node_modules/@actions/http-client/package.json @@ -1,33 +1,26 @@ { - "_args": [ - [ - "@actions/http-client@1.0.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "@actions/http-client@1.0.3", - "_id": "@actions/http-client@1.0.3", + "_from": "@actions/http-client@1.0.6", + "_id": "@actions/http-client@1.0.6", "_inBundle": false, - "_integrity": "sha512-wFwh1U4adB/Zsk4cc9kVqaBOHoknhp/pJQk+aWTocbAZWpIl4Zx/At83WFRLXvxB+5HVTWOACM6qjULMZfQSfw==", + "_integrity": "sha512-LGmio4w98UyGX33b/W6V6Nx/sQHRXZ859YlMkn36wPsXPB82u8xTVlA/Dq2DXrm6lEq9RVmisRJa1c+HETAIJA==", "_location": "/@actions/http-client", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@actions/http-client@1.0.3", + "raw": "@actions/http-client@1.0.6", "name": "@actions/http-client", "escapedName": "@actions%2fhttp-client", "scope": "@actions", - "rawSpec": "1.0.3", + "rawSpec": "1.0.6", "saveSpec": null, - "fetchSpec": "1.0.3" + "fetchSpec": "1.0.6" }, "_requiredBy": [ "/@actions/tool-cache" ], - "_resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.3.tgz", - "_spec": "1.0.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.6.tgz", + "_spec": "1.0.6", "author": { "name": "GitHub, Inc." }, @@ -62,5 +55,5 @@ "build": "rm -Rf ./_out && tsc && cp package*.json ./_out && cp *.md ./_out && cp LICENSE ./_out && cp actions.png ./_out", "test": "jest" }, - "version": "1.0.3" -} + "version": "1.0.6" +} \ No newline at end of file diff --git a/node_modules/@actions/io/package.json b/node_modules/@actions/io/package.json index 33bde9e..51c1489 100644 --- a/node_modules/@actions/io/package.json +++ b/node_modules/@actions/io/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "@actions/io@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "@actions/io@1.0.1", "_id": "@actions/io@1.0.1", "_inBundle": false, @@ -28,7 +22,6 @@ ], "_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, @@ -62,4 +55,4 @@ "tsc": "tsc" }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/README.md b/node_modules/@actions/tool-cache/README.md index 335f34b..f45cedd 100644 --- a/node_modules/@actions/tool-cache/README.md +++ b/node_modules/@actions/tool-cache/README.md @@ -22,11 +22,11 @@ These can then be extracted in platform specific ways: const tc = require('@actions/tool-cache'); if (process.platform === 'win32') { - const node12Path = tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.zip'); + const node12Path = await tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.zip'); const node12ExtractedFolder = await tc.extractZip(node12Path, 'path/to/extract/to'); // Or alternately - const node12Path = tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.7z'); + const node12Path = await tc.downloadTool('https://nodejs.org/dist/v12.7.0/node-v12.7.0-win-x64.7z'); const node12ExtractedFolder = await tc.extract7z(node12Path, 'path/to/extract/to'); } else { @@ -37,7 +37,7 @@ else { #### Cache -Finally, you can cache these directories in our tool-cache. This is useful if you want to switch back and forth between versions of a tool, or save a tool between runs for private runners (private runners are still in development but are on the roadmap). +Finally, you can cache these directories in our tool-cache. This is useful if you want to switch back and forth between versions of a tool, or save a tool between runs for self-hosted runners. You'll often want to add it to the path as part of this step: diff --git a/node_modules/@actions/tool-cache/lib/retry-helper.d.ts b/node_modules/@actions/tool-cache/lib/retry-helper.d.ts new file mode 100644 index 0000000..4707a07 --- /dev/null +++ b/node_modules/@actions/tool-cache/lib/retry-helper.d.ts @@ -0,0 +1,12 @@ +/** + * Internal class for retries + */ +export declare class RetryHelper { + private maxAttempts; + private minSeconds; + private maxSeconds; + constructor(maxAttempts: number, minSeconds: number, maxSeconds: number); + execute(action: () => Promise, isRetryable?: (e: Error) => boolean): Promise; + private getSleepAmount; + private sleep; +} diff --git a/node_modules/@actions/tool-cache/lib/retry-helper.js b/node_modules/@actions/tool-cache/lib/retry-helper.js new file mode 100644 index 0000000..4f040d6 --- /dev/null +++ b/node_modules/@actions/tool-cache/lib/retry-helper.js @@ -0,0 +1,70 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const core = __importStar(require("@actions/core")); +/** + * Internal class for retries + */ +class RetryHelper { + constructor(maxAttempts, minSeconds, maxSeconds) { + if (maxAttempts < 1) { + throw new Error('max attempts should be greater than or equal to 1'); + } + this.maxAttempts = maxAttempts; + this.minSeconds = Math.floor(minSeconds); + this.maxSeconds = Math.floor(maxSeconds); + if (this.minSeconds > this.maxSeconds) { + throw new Error('min seconds should be less than or equal to max seconds'); + } + } + execute(action, isRetryable) { + return __awaiter(this, void 0, void 0, function* () { + let attempt = 1; + while (attempt < this.maxAttempts) { + // Try + try { + return yield action(); + } + catch (err) { + if (isRetryable && !isRetryable(err)) { + throw err; + } + core.info(err.message); + } + // Sleep + const seconds = this.getSleepAmount(); + core.info(`Waiting ${seconds} seconds before trying again`); + yield this.sleep(seconds); + attempt++; + } + // Last attempt + return yield action(); + }); + } + getSleepAmount() { + return (Math.floor(Math.random() * (this.maxSeconds - this.minSeconds + 1)) + + this.minSeconds); + } + sleep(seconds) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise(resolve => setTimeout(resolve, seconds * 1000)); + }); + } +} +exports.RetryHelper = RetryHelper; +//# sourceMappingURL=retry-helper.js.map \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/lib/retry-helper.js.map b/node_modules/@actions/tool-cache/lib/retry-helper.js.map new file mode 100644 index 0000000..7607d6b --- /dev/null +++ b/node_modules/@actions/tool-cache/lib/retry-helper.js.map @@ -0,0 +1 @@ +{"version":3,"file":"retry-helper.js","sourceRoot":"","sources":["../src/retry-helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oDAAqC;AAErC;;GAEG;AACH,MAAa,WAAW;IAKtB,YAAY,WAAmB,EAAE,UAAkB,EAAE,UAAkB;QACrE,IAAI,WAAW,GAAG,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;SACrE;QAED,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;QAC9B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QACxC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QACxC,IAAI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAA;SAC3E;IACH,CAAC;IAEK,OAAO,CACX,MAAwB,EACxB,WAAmC;;YAEnC,IAAI,OAAO,GAAG,CAAC,CAAA;YACf,OAAO,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE;gBACjC,MAAM;gBACN,IAAI;oBACF,OAAO,MAAM,MAAM,EAAE,CAAA;iBACtB;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAI,WAAW,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE;wBACpC,MAAM,GAAG,CAAA;qBACV;oBAED,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;iBACvB;gBAED,QAAQ;gBACR,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,CAAA;gBACrC,IAAI,CAAC,IAAI,CAAC,WAAW,OAAO,8BAA8B,CAAC,CAAA;gBAC3D,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;gBACzB,OAAO,EAAE,CAAA;aACV;YAED,eAAe;YACf,OAAO,MAAM,MAAM,EAAE,CAAA;QACvB,CAAC;KAAA;IAEO,cAAc;QACpB,OAAO,CACL,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;YACnE,IAAI,CAAC,UAAU,CAChB,CAAA;IACH,CAAC;IAEa,KAAK,CAAC,OAAe;;YACjC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC,CAAC,CAAA;QACpE,CAAC;KAAA;CACF;AAxDD,kCAwDC"} \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/lib/tool-cache.js b/node_modules/@actions/tool-cache/lib/tool-cache.js index 08ea713..0a4191a 100644 --- a/node_modules/@actions/tool-cache/lib/tool-cache.js +++ b/node_modules/@actions/tool-cache/lib/tool-cache.js @@ -26,9 +26,12 @@ const os = __importStar(require("os")); const path = __importStar(require("path")); const httpm = __importStar(require("@actions/http-client")); const semver = __importStar(require("semver")); +const stream = __importStar(require("stream")); +const util = __importStar(require("util")); const v4_1 = __importDefault(require("uuid/v4")); const exec_1 = require("@actions/exec/lib/exec"); const assert_1 = require("assert"); +const retry_helper_1 = require("./retry-helper"); class HTTPError extends Error { constructor(httpStatusCode) { super(`Unexpected HTTP response: ${httpStatusCode}`); @@ -39,31 +42,6 @@ class HTTPError extends Error { exports.HTTPError = HTTPError; const IS_WINDOWS = process.platform === 'win32'; const userAgent = 'actions/tool-cache'; -// On load grab temp directory and cache directory and remove them from env (currently don't want to expose this) -let tempDirectory = process.env['RUNNER_TEMP'] || ''; -let cacheRoot = process.env['RUNNER_TOOL_CACHE'] || ''; -// If directories not found, place them in common temp locations -if (!tempDirectory || !cacheRoot) { - let baseLocation; - if (IS_WINDOWS) { - // On windows use the USERPROFILE env variable - baseLocation = process.env['USERPROFILE'] || 'C:\\'; - } - else { - if (process.platform === 'darwin') { - baseLocation = '/Users'; - } - else { - baseLocation = '/home'; - } - } - if (!tempDirectory) { - tempDirectory = path.join(baseLocation, 'actions', 'temp'); - } - if (!cacheRoot) { - cacheRoot = path.join(baseLocation, 'actions', 'cache'); - } -} /** * Download a tool from an url and stream it into a file * @@ -73,52 +51,71 @@ if (!tempDirectory || !cacheRoot) { */ function downloadTool(url, dest) { return __awaiter(this, void 0, void 0, function* () { - // Wrap in a promise so that we can resolve from within stream callbacks - return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { - try { - const http = new httpm.HttpClient(userAgent, [], { - allowRetries: true, - maxRetries: 3 - }); - dest = dest || path.join(tempDirectory, v4_1.default()); - yield io.mkdirP(path.dirname(dest)); - core.debug(`Downloading ${url}`); - core.debug(`Downloading ${dest}`); - if (fs.existsSync(dest)) { - throw new Error(`Destination file path ${dest} already exists`); - } - const response = yield http.get(url); - if (response.message.statusCode !== 200) { - const err = new HTTPError(response.message.statusCode); - core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); - throw err; + dest = dest || path.join(_getTempDirectory(), v4_1.default()); + yield io.mkdirP(path.dirname(dest)); + core.debug(`Downloading ${url}`); + core.debug(`Destination ${dest}`); + const maxAttempts = 3; + const minSeconds = _getGlobal('TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS', 10); + const maxSeconds = _getGlobal('TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS', 20); + const retryHelper = new retry_helper_1.RetryHelper(maxAttempts, minSeconds, maxSeconds); + return yield retryHelper.execute(() => __awaiter(this, void 0, void 0, function* () { + return yield downloadToolAttempt(url, dest || ''); + }), (err) => { + if (err instanceof HTTPError && err.httpStatusCode) { + // Don't retry anything less than 500, except 408 Request Timeout and 429 Too Many Requests + if (err.httpStatusCode < 500 && + err.httpStatusCode !== 408 && + err.httpStatusCode !== 429) { + return false; } - const file = fs.createWriteStream(dest); - file.on('open', () => __awaiter(this, void 0, void 0, function* () { - try { - const stream = response.message.pipe(file); - stream.on('close', () => { - core.debug('download complete'); - resolve(dest); - }); - } - catch (err) { - core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); - reject(err); - } - })); - file.on('error', err => { - file.end(); - reject(err); - }); } - catch (err) { - reject(err); - } - })); + // Otherwise retry + return true; + }); }); } exports.downloadTool = downloadTool; +function downloadToolAttempt(url, dest) { + return __awaiter(this, void 0, void 0, function* () { + if (fs.existsSync(dest)) { + throw new Error(`Destination file path ${dest} already exists`); + } + // Get the response headers + const http = new httpm.HttpClient(userAgent, [], { + allowRetries: false + }); + const response = yield http.get(url); + if (response.message.statusCode !== 200) { + const err = new HTTPError(response.message.statusCode); + core.debug(`Failed to download from "${url}". Code(${response.message.statusCode}) Message(${response.message.statusMessage})`); + throw err; + } + // Download the response body + const pipeline = util.promisify(stream.pipeline); + const responseMessageFactory = _getGlobal('TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY', () => response.message); + const readStream = responseMessageFactory(); + let succeeded = false; + try { + yield pipeline(readStream, fs.createWriteStream(dest)); + core.debug('download complete'); + succeeded = true; + return dest; + } + finally { + // Error, delete dest before retry + if (!succeeded) { + core.debug('download failed'); + try { + yield io.rmRF(dest); + } + catch (err) { + core.debug(`Failed to delete '${dest}'. ${err.message}`); + } + } + } + }); +} /** * Extract a .7z file * @@ -208,14 +205,17 @@ function extractTar(file, dest, flags = 'xz') { // Create dest dest = yield _createExtractFolder(dest); // Determine whether GNU tar + core.debug('Checking tar --version'); let versionOutput = ''; yield exec_1.exec('tar --version', [], { ignoreReturnCode: true, + silent: true, listeners: { stdout: (data) => (versionOutput += data.toString()), stderr: (data) => (versionOutput += data.toString()) } }); + core.debug(versionOutput.trim()); const isGnuTar = versionOutput.toUpperCase().includes('GNU TAR'); // Initialize args const args = [flags]; @@ -376,7 +376,7 @@ function find(toolName, versionSpec, arch) { let toolPath = ''; if (versionSpec) { versionSpec = semver.clean(versionSpec) || ''; - const cachePath = path.join(cacheRoot, toolName, versionSpec, arch); + const cachePath = path.join(_getCacheDirectory(), toolName, versionSpec, arch); core.debug(`checking cache: ${cachePath}`); if (fs.existsSync(cachePath) && fs.existsSync(`${cachePath}.complete`)) { core.debug(`Found tool in cache ${toolName} ${versionSpec} ${arch}`); @@ -398,7 +398,7 @@ exports.find = find; function findAllVersions(toolName, arch) { const versions = []; arch = arch || os.arch(); - const toolPath = path.join(cacheRoot, toolName); + const toolPath = path.join(_getCacheDirectory(), toolName); if (fs.existsSync(toolPath)) { const children = fs.readdirSync(toolPath); for (const child of children) { @@ -417,7 +417,7 @@ function _createExtractFolder(dest) { return __awaiter(this, void 0, void 0, function* () { if (!dest) { // create a temp dir - dest = path.join(tempDirectory, v4_1.default()); + dest = path.join(_getTempDirectory(), v4_1.default()); } yield io.mkdirP(dest); return dest; @@ -425,7 +425,7 @@ function _createExtractFolder(dest) { } function _createToolPath(tool, version, arch) { return __awaiter(this, void 0, void 0, function* () { - const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || ''); + const folderPath = path.join(_getCacheDirectory(), tool, semver.clean(version) || version, arch || ''); core.debug(`destination ${folderPath}`); const markerPath = `${folderPath}.complete`; yield io.rmRF(folderPath); @@ -435,7 +435,7 @@ function _createToolPath(tool, version, arch) { }); } function _completeToolPath(tool, version, arch) { - const folderPath = path.join(cacheRoot, tool, semver.clean(version) || version, arch || ''); + const folderPath = path.join(_getCacheDirectory(), tool, semver.clean(version) || version, arch || ''); const markerPath = `${folderPath}.complete`; fs.writeFileSync(markerPath, ''); core.debug('finished caching tool'); @@ -472,4 +472,29 @@ function _evaluateVersions(versions, versionSpec) { } return version; } +/** + * Gets RUNNER_TOOL_CACHE + */ +function _getCacheDirectory() { + const cacheDirectory = process.env['RUNNER_TOOL_CACHE'] || ''; + assert_1.ok(cacheDirectory, 'Expected RUNNER_TOOL_CACHE to be defined'); + return cacheDirectory; +} +/** + * Gets RUNNER_TEMP + */ +function _getTempDirectory() { + const tempDirectory = process.env['RUNNER_TEMP'] || ''; + assert_1.ok(tempDirectory, 'Expected RUNNER_TEMP to be defined'); + return tempDirectory; +} +/** + * Gets a global variable + */ +function _getGlobal(key, defaultValue) { + /* eslint-disable @typescript-eslint/no-explicit-any */ + const value = global[key]; + /* eslint-enable @typescript-eslint/no-explicit-any */ + return value !== undefined ? value : defaultValue; +} //# sourceMappingURL=tool-cache.js.map \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/lib/tool-cache.js.map b/node_modules/@actions/tool-cache/lib/tool-cache.js.map index fda7f75..079a339 100644 --- a/node_modules/@actions/tool-cache/lib/tool-cache.js.map +++ b/node_modules/@actions/tool-cache/lib/tool-cache.js.map @@ -1 +1 @@ -{"version":3,"file":"tool-cache.js","sourceRoot":"","sources":["../src/tool-cache.ts"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"tool-cache.js","sourceRoot":"","sources":["../src/tool-cache.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/package.json b/node_modules/@actions/tool-cache/package.json index e449880..dd2058b 100644 --- a/node_modules/@actions/tool-cache/package.json +++ b/node_modules/@actions/tool-cache/package.json @@ -1,33 +1,26 @@ { - "_args": [ - [ - "@actions/tool-cache@1.3.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "@actions/tool-cache@1.3.1", - "_id": "@actions/tool-cache@1.3.1", + "_from": "@actions/tool-cache@1.3.3", + "_id": "@actions/tool-cache@1.3.3", "_inBundle": false, - "_integrity": "sha512-sKoEJv0/c7WzjPEq2PO12Sc8QdEp58XIBHMm3c4lUn/iZWgLz9HBeCuFGpLQjDvXJNfLZ4g+WD+rMjgOmpH4Ag==", + "_integrity": "sha512-AFVyTLcIxusDVI1gMhbZW8m/On7YNJG+xYaxorV+qic+f7lO7h37aT2mfzxqAq7mwHxtP1YlVFNrXe9QDf/bPg==", "_location": "/@actions/tool-cache", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "@actions/tool-cache@1.3.1", + "raw": "@actions/tool-cache@1.3.3", "name": "@actions/tool-cache", "escapedName": "@actions%2ftool-cache", "scope": "@actions", - "rawSpec": "1.3.1", + "rawSpec": "1.3.3", "saveSpec": null, - "fetchSpec": "1.3.1" + "fetchSpec": "1.3.3" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.3.1.tgz", - "_spec": "1.3.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.3.3.tgz", + "_spec": "1.3.3", "bugs": { "url": "https://github.com/actions/toolkit/issues" }, @@ -77,5 +70,5 @@ "tsc": "tsc" }, "types": "lib/tool-cache.d.ts", - "version": "1.3.1" -} + "version": "1.3.3" +} \ No newline at end of file diff --git a/node_modules/@sindresorhus/is/package.json b/node_modules/@sindresorhus/is/package.json index 5473a43..bbf0ba5 100644 --- a/node_modules/@sindresorhus/is/package.json +++ b/node_modules/@sindresorhus/is/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "@sindresorhus/is@0.7.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "@sindresorhus/is@0.7.0", "_id": "@sindresorhus/is@0.7.0", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", "_spec": "0.7.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -95,4 +88,4 @@ }, "types": "dist/index.d.ts", "version": "0.7.0" -} +} \ No newline at end of file diff --git a/node_modules/archive-type/node_modules/file-type/package.json b/node_modules/archive-type/node_modules/file-type/package.json index f660879..d34fbb7 100644 --- a/node_modules/archive-type/node_modules/file-type/package.json +++ b/node_modules/archive-type/node_modules/file-type/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "file-type@4.4.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "file-type@4.4.0", "_id": "file-type@4.4.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/file-type/-/file-type-4.4.0.tgz", "_spec": "4.4.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -139,4 +132,4 @@ "test": "xo && ava" }, "version": "4.4.0" -} +} \ No newline at end of file diff --git a/node_modules/archive-type/package.json b/node_modules/archive-type/package.json index 1e6d603..377e0ea 100644 --- a/node_modules/archive-type/package.json +++ b/node_modules/archive-type/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "archive-type@4.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "archive-type@4.0.0", "_id": "archive-type@4.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/archive-type/-/archive-type-4.0.0.tgz", "_spec": "4.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -77,4 +70,4 @@ "test": "xo && ava" }, "version": "4.0.0" -} +} \ No newline at end of file diff --git a/node_modules/base64-js/package.json b/node_modules/base64-js/package.json index 32ce051..d8bc9e4 100644 --- a/node_modules/base64-js/package.json +++ b/node_modules/base64-js/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "base64-js@1.3.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "base64-js@1.3.1", "_id": "base64-js@1.3.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.1.tgz", "_spec": "1.3.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "T. Jameson Little", "email": "t.jameson.little@gmail.com" @@ -60,4 +53,4 @@ "unit": "tape test/*.js" }, "version": "1.3.1" -} +} \ No newline at end of file diff --git a/node_modules/bl/package.json b/node_modules/bl/package.json index 9fb25c8..9ed0167 100644 --- a/node_modules/bl/package.json +++ b/node_modules/bl/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "bl@1.2.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "bl@1.2.2", "_id": "bl@1.2.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", "_spec": "1.2.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "authors": [ "Rod Vagg (https://github.com/rvagg)", "Matteo Collina (https://github.com/mcollina)", @@ -63,4 +56,4 @@ "test": "node test/test.js | faucet" }, "version": "1.2.2" -} +} \ No newline at end of file diff --git a/node_modules/buffer-alloc-unsafe/package.json b/node_modules/buffer-alloc-unsafe/package.json index 373c321..f6de5eb 100644 --- a/node_modules/buffer-alloc-unsafe/package.json +++ b/node_modules/buffer-alloc-unsafe/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "buffer-alloc-unsafe@1.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "buffer-alloc-unsafe@1.1.0", "_id": "buffer-alloc-unsafe@1.1.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", "_spec": "1.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bugs": { "url": "https://github.com/LinusU/buffer-alloc-unsafe/issues" }, @@ -57,4 +50,4 @@ "test": "standard && node test" }, "version": "1.1.0" -} +} \ No newline at end of file diff --git a/node_modules/buffer-alloc/package.json b/node_modules/buffer-alloc/package.json index d8207a8..619ad1b 100644 --- a/node_modules/buffer-alloc/package.json +++ b/node_modules/buffer-alloc/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "buffer-alloc@1.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "buffer-alloc@1.2.0", "_id": "buffer-alloc@1.2.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", "_spec": "1.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bugs": { "url": "https://github.com/LinusU/buffer-alloc/issues" }, @@ -59,4 +52,4 @@ "test": "standard && node test" }, "version": "1.2.0" -} +} \ No newline at end of file diff --git a/node_modules/buffer-crc32/package.json b/node_modules/buffer-crc32/package.json index bd991e0..42d3bf1 100644 --- a/node_modules/buffer-crc32/package.json +++ b/node_modules/buffer-crc32/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "buffer-crc32@0.2.13", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "buffer-crc32@0.2.13", "_id": "buffer-crc32@0.2.13", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", "_spec": "0.2.13", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Brian J. Brennan", "email": "brianloveswords@gmail.com" @@ -69,4 +62,4 @@ "test": "tap tests/*.test.js" }, "version": "0.2.13" -} +} \ No newline at end of file diff --git a/node_modules/buffer-fill/package.json b/node_modules/buffer-fill/package.json index b99d323..38da3e7 100644 --- a/node_modules/buffer-fill/package.json +++ b/node_modules/buffer-fill/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "buffer-fill@1.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "buffer-fill@1.0.0", "_id": "buffer-fill@1.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", "_spec": "1.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bugs": { "url": "https://github.com/LinusU/buffer-fill/issues" }, @@ -49,4 +42,4 @@ "test": "standard && node test" }, "version": "1.0.0" -} +} \ No newline at end of file diff --git a/node_modules/buffer/AUTHORS.md b/node_modules/buffer/AUTHORS.md index 1bb05f7..396b45f 100644 --- a/node_modules/buffer/AUTHORS.md +++ b/node_modules/buffer/AUTHORS.md @@ -56,5 +56,7 @@ - kumavis (aaron@kumavis.me) - Sergey Ukustov (sergey.ukustov@machinomy.com) - Fei Liu (liu.feiwood@gmail.com) +- Blaine Bublitz (blaine.bublitz@gmail.com) +- Niklas Mischkulnig (mischnic@users.noreply.github.com) #### Generated by bin/update-authors.sh. diff --git a/node_modules/buffer/README.md b/node_modules/buffer/README.md index d5bfe6e..2aab37d 100644 --- a/node_modules/buffer/README.md +++ b/node_modules/buffer/README.md @@ -34,6 +34,11 @@ instance methods, and class methods that are supported. - Does not modify any browser prototypes or put anything on `window` - Comprehensive test suite (including all buffer tests from node.js core) +## `buffer` for enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of `buffer` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-buffer?utm_source=npm-buffer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) ## install @@ -43,8 +48,6 @@ To use this module directly (without browserify), install it: npm install buffer ``` -[Get supported buffer with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-buffer?utm_source=npm-buffer&utm_medium=referral&utm_campaign=readme) - This module was previously called **native-buffer-browserify**, but please use **buffer** from now on. diff --git a/node_modules/buffer/index.js b/node_modules/buffer/index.js index 19b0468..4ec5595 100644 --- a/node_modules/buffer/index.js +++ b/node_modules/buffer/index.js @@ -142,6 +142,12 @@ function from (value, encodingOrOffset, length) { return fromArrayBuffer(value, encodingOrOffset, length) } + if (typeof SharedArrayBuffer !== 'undefined' && + (isInstance(value, SharedArrayBuffer) || + (value && isInstance(value.buffer, SharedArrayBuffer)))) { + return fromArrayBuffer(value, encodingOrOffset, length) + } + if (typeof value === 'number') { throw new TypeError( 'The "value" argument must not be of type number. Received type number' diff --git a/node_modules/buffer/package.json b/node_modules/buffer/package.json index a6fe11d..4bb24ab 100644 --- a/node_modules/buffer/package.json +++ b/node_modules/buffer/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "buffer@5.4.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "buffer@5.4.3", - "_id": "buffer@5.4.3", + "_from": "buffer@5.5.0", + "_id": "buffer@5.5.0", "_inBundle": false, - "_integrity": "sha512-zvj65TkFeIt3i6aj5bIvJDzjjQQGs4o/sNoezg1F1kYap9Nu2jcUdpwzRSJTHMMzG0H7bZkn4rNQpImhuxWX2A==", + "_integrity": "sha512-9FTEDjLjwoAkEwyMGDjYJQN2gfRgOKBKRfiglhvibGbpeeU/pQn1bJxQqm32OD/AIeEuHxU9roxXxg34Byp/Ww==", "_location": "/buffer", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "buffer@5.4.3", + "raw": "buffer@5.5.0", "name": "buffer", "escapedName": "buffer", - "rawSpec": "5.4.3", + "rawSpec": "5.5.0", "saveSpec": null, - "fetchSpec": "5.4.3" + "fetchSpec": "5.5.0" }, "_requiredBy": [ "/unbzip2-stream" ], - "_resolved": "https://registry.npmjs.org/buffer/-/buffer-5.4.3.tgz", - "_spec": "5.4.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/buffer/-/buffer-5.5.0.tgz", + "_spec": "5.5.0", "author": { "name": "Feross Aboukhadijeh", "email": "feross@feross.org", @@ -51,7 +44,7 @@ }, "description": "Node.js Buffer API, for the browser", "devDependencies": { - "airtap": "^2.0.3", + "airtap": "^3.0.0", "benchmark": "^2.0.0", "browserify": "^16.1.0", "concat-stream": "^2.0.0", @@ -106,8 +99,11 @@ "test/common.js", "test/_polyfill.js", "perf/**/*.js" + ], + "globals": [ + "SharedArrayBuffer" ] }, "types": "index.d.ts", - "version": "5.4.3" -} + "version": "5.5.0" +} \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/get-stream/buffer-stream.js b/node_modules/cacheable-request/node_modules/get-stream/buffer-stream.js new file mode 100644 index 0000000..ae45d3d --- /dev/null +++ b/node_modules/cacheable-request/node_modules/get-stream/buffer-stream.js @@ -0,0 +1,51 @@ +'use strict'; +const PassThrough = require('stream').PassThrough; + +module.exports = opts => { + opts = Object.assign({}, opts); + + const array = opts.array; + let encoding = opts.encoding; + const buffer = encoding === 'buffer'; + let objectMode = false; + + if (array) { + objectMode = !(encoding || buffer); + } else { + encoding = encoding || 'utf8'; + } + + if (buffer) { + encoding = null; + } + + let len = 0; + const ret = []; + const stream = new PassThrough({objectMode}); + + if (encoding) { + stream.setEncoding(encoding); + } + + stream.on('data', chunk => { + ret.push(chunk); + + if (objectMode) { + len = ret.length; + } else { + len += chunk.length; + } + }); + + stream.getBufferedValue = () => { + if (array) { + return ret; + } + + return buffer ? Buffer.concat(ret, len) : ret.join(''); + }; + + stream.getBufferedLength = () => len; + + return stream; +}; diff --git a/node_modules/cacheable-request/node_modules/get-stream/index.js b/node_modules/cacheable-request/node_modules/get-stream/index.js new file mode 100644 index 0000000..2dc5ee9 --- /dev/null +++ b/node_modules/cacheable-request/node_modules/get-stream/index.js @@ -0,0 +1,51 @@ +'use strict'; +const bufferStream = require('./buffer-stream'); + +function getStream(inputStream, opts) { + if (!inputStream) { + return Promise.reject(new Error('Expected a stream')); + } + + opts = Object.assign({maxBuffer: Infinity}, opts); + + const maxBuffer = opts.maxBuffer; + let stream; + let clean; + + const p = new Promise((resolve, reject) => { + const error = err => { + if (err) { // null check + err.bufferedData = stream.getBufferedValue(); + } + + reject(err); + }; + + stream = bufferStream(opts); + inputStream.once('error', error); + inputStream.pipe(stream); + + stream.on('data', () => { + if (stream.getBufferedLength() > maxBuffer) { + reject(new Error('maxBuffer exceeded')); + } + }); + stream.once('error', error); + stream.on('end', resolve); + + clean = () => { + // some streams doesn't implement the `stream.Readable` interface correctly + if (inputStream.unpipe) { + inputStream.unpipe(stream); + } + }; + }); + + p.then(clean, clean); + + return p.then(() => stream.getBufferedValue()); +} + +module.exports = getStream; +module.exports.buffer = (stream, opts) => getStream(stream, Object.assign({}, opts, {encoding: 'buffer'})); +module.exports.array = (stream, opts) => getStream(stream, Object.assign({}, opts, {array: true})); diff --git a/node_modules/cacheable-request/node_modules/get-stream/license b/node_modules/cacheable-request/node_modules/get-stream/license new file mode 100644 index 0000000..654d0bf --- /dev/null +++ b/node_modules/cacheable-request/node_modules/get-stream/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/cacheable-request/node_modules/get-stream/package.json b/node_modules/cacheable-request/node_modules/get-stream/package.json new file mode 100644 index 0000000..4eb415d --- /dev/null +++ b/node_modules/cacheable-request/node_modules/get-stream/package.json @@ -0,0 +1,76 @@ +{ + "_from": "get-stream@3.0.0", + "_id": "get-stream@3.0.0", + "_inBundle": false, + "_integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "_location": "/cacheable-request/get-stream", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "get-stream@3.0.0", + "name": "get-stream", + "escapedName": "get-stream", + "rawSpec": "3.0.0", + "saveSpec": null, + "fetchSpec": "3.0.0" + }, + "_requiredBy": [ + "/cacheable-request" + ], + "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "_spec": "3.0.0", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/get-stream/issues" + }, + "description": "Get a stream as a string, buffer, or array", + "devDependencies": { + "ava": "*", + "into-stream": "^3.0.0", + "xo": "*" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js", + "buffer-stream.js" + ], + "homepage": "https://github.com/sindresorhus/get-stream#readme", + "keywords": [ + "get", + "stream", + "promise", + "concat", + "string", + "str", + "text", + "buffer", + "read", + "data", + "consume", + "readable", + "readablestream", + "array", + "object", + "obj" + ], + "license": "MIT", + "name": "get-stream", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/get-stream.git" + }, + "scripts": { + "test": "xo && ava" + }, + "version": "3.0.0", + "xo": { + "esnext": true + } +} \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/get-stream/readme.md b/node_modules/cacheable-request/node_modules/get-stream/readme.md new file mode 100644 index 0000000..73b188f --- /dev/null +++ b/node_modules/cacheable-request/node_modules/get-stream/readme.md @@ -0,0 +1,117 @@ +# get-stream [![Build Status](https://travis-ci.org/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stream) + +> Get a stream as a string, buffer, or array + + +## Install + +``` +$ npm install --save get-stream +``` + + +## Usage + +```js +const fs = require('fs'); +const getStream = require('get-stream'); +const stream = fs.createReadStream('unicorn.txt'); + +getStream(stream).then(str => { + console.log(str); + /* + ,,))))))));, + __)))))))))))))), + \|/ -\(((((''''((((((((. + -*-==//////(('' . `)))))), + /|\ ))| o ;-. '((((( ,(, + ( `| / ) ;))))' ,_))^;(~ + | | | ,))((((_ _____------~~~-. %,;(;(>';'~ + o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~ + ; ''''```` `: `:::|\,__,%% );`'; ~ + | _ ) / `:|`----' `-' + ______/\/~ | / / + /~;;.____/;;' / ___--,-( `;;;/ + / // _;______;'------~~~~~ /;;/\ / + // | | / ; \;;,\ + (<_ | ; /',/-----' _> + \_| ||_ //~;~~~~~~~~~ + `\_| (,~~ + \~\ + ~~ + */ +}); +``` + + +## API + +The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode. + +### getStream(stream, [options]) + +Get the `stream` as a string. + +#### options + +##### encoding + +Type: `string`
+Default: `utf8` + +[Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream. + +##### maxBuffer + +Type: `number`
+Default: `Infinity` + +Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected. + +### getStream.buffer(stream, [options]) + +Get the `stream` as a buffer. + +It honors the `maxBuffer` option as above, but it refers to byte length rather than string length. + +### getStream.array(stream, [options]) + +Get the `stream` as an array of values. + +It honors both the `maxBuffer` and `encoding` options. The behavior changes slightly based on the encoding chosen: + +- When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/) and collects values emitted from `stream` unmodified. In this case `maxBuffer` refers to the number of items in the array (not the sum of their sizes). + +- When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array. + +- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array. + + +## Errors + +If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error. + +```js +getStream(streamThatErrorsAtTheEnd('unicorn')) + .catch(err => { + console.log(err.bufferedData); + //=> 'unicorn' + }); +``` + + +## FAQ + +### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)? + +This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package. + + +## Related + +- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json index 4fc648d..9a77621 100644 --- a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json +++ b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "lowercase-keys@1.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "lowercase-keys@1.0.0", "_id": "lowercase-keys@1.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", "_spec": "1.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -67,4 +60,4 @@ "test": "node test.js" }, "version": "1.0.0" -} +} \ No newline at end of file diff --git a/node_modules/cacheable-request/package.json b/node_modules/cacheable-request/package.json index 2f00731..a2d932e 100644 --- a/node_modules/cacheable-request/package.json +++ b/node_modules/cacheable-request/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "cacheable-request@2.1.4", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "cacheable-request@2.1.4", "_id": "cacheable-request@2.1.4", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", "_spec": "2.1.4", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Luke Childs", "email": "lukechilds123@gmail.com", @@ -86,4 +79,4 @@ "xo": { "extends": "xo-lukechilds" } -} +} \ No newline at end of file diff --git a/node_modules/caw/index.js b/node_modules/caw/index.js deleted file mode 100644 index 69e7f55..0000000 --- a/node_modules/caw/index.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; -const url = require('url'); -const getProxy = require('get-proxy'); -const isurl = require('isurl'); -const tunnelAgent = require('tunnel-agent'); -const urlToOptions = require('url-to-options'); - -module.exports = (proxy, opts) => { - proxy = proxy || getProxy(); - opts = Object.assign({}, opts); - - if (typeof proxy === 'object') { - opts = proxy; - proxy = getProxy(); - } - - if (!proxy) { - return null; - } - - proxy = isurl.lenient(proxy) ? urlToOptions(proxy) : url.parse(proxy); - - const uriProtocol = opts.protocol === 'https' ? 'https' : 'http'; - const proxyProtocol = proxy.protocol === 'https:' ? 'Https' : 'Http'; - const port = proxy.port || (proxyProtocol === 'Https' ? 443 : 80); - const method = `${uriProtocol}Over${proxyProtocol}`; - - delete opts.protocol; - - return tunnelAgent[method](Object.assign({ - proxy: { - port, - host: proxy.hostname, - proxyAuth: proxy.auth - } - }, opts)); -}; diff --git a/node_modules/caw/package.json b/node_modules/caw/package.json deleted file mode 100644 index 1acc9f6..0000000 --- a/node_modules/caw/package.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "_args": [ - [ - "caw@2.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "caw@2.0.1", - "_id": "caw@2.0.1", - "_inBundle": false, - "_integrity": "sha512-Cg8/ZSBEa8ZVY9HspcGUYaK63d/bN7rqS3CYCzEGUxuYv6UlmcjzDUz2fCFFHyTvUW5Pk0I+3hkA3iXlIj6guA==", - "_location": "/caw", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "caw@2.0.1", - "name": "caw", - "escapedName": "caw", - "rawSpec": "2.0.1", - "saveSpec": null, - "fetchSpec": "2.0.1" - }, - "_requiredBy": [ - "/download" - ], - "_resolved": "https://registry.npmjs.org/caw/-/caw-2.0.1.tgz", - "_spec": "2.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "bugs": { - "url": "https://github.com/kevva/caw/issues" - }, - "dependencies": { - "get-proxy": "^2.0.0", - "isurl": "^1.0.0-alpha5", - "tunnel-agent": "^0.6.0", - "url-to-options": "^1.0.1" - }, - "description": "Construct HTTP/HTTPS agents for tunneling proxies", - "devDependencies": { - "ava": "*", - "create-cert": "^1.0.4", - "get-port": "^3.1.0", - "got": "^7.0.0", - "pify": "^3.0.0", - "proxyquire": "^1.7.9", - "sinon": "^2.3.1", - "universal-url": "1.0.0-alpha", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/kevva/caw#readme", - "keywords": [ - "http", - "https", - "proxy", - "tunnel" - ], - "license": "MIT", - "name": "caw", - "repository": { - "type": "git", - "url": "git+https://github.com/kevva/caw.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.0.1", - "xo": { - "rules": { - "ava/no-skip-test": 0 - } - } -} diff --git a/node_modules/caw/readme.md b/node_modules/caw/readme.md deleted file mode 100644 index 447191f..0000000 --- a/node_modules/caw/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# caw [![Build Status](https://travis-ci.org/kevva/caw.svg?branch=master)](https://travis-ci.org/kevva/caw) - -> Construct HTTP/HTTPS agents for tunneling proxies - - -## Install - -``` -$ npm install caw -``` - - -## Usage - -```js -const caw = require('caw'); -const got = require('got'); - -got('todomvc.com', { - agent: caw() -}, () => {}); -``` - - -## API - -### caw([proxy], [options]) - -#### proxy - -Type: `string` - -Proxy URL. If not set, it'll try getting it using [`get-proxy`](https://github.com/kevva/get-proxy). - -#### options - -Type: `Object` - -Besides the options below, you can pass in options allowed in [tunnel-agent](https://github.com/request/tunnel-agent). - -##### protocol - -Type: `string`
-Default: `http` - -Endpoint protocol. - - -## License - -MIT © [Kevin Mårtensson](https://github.com/kevva) diff --git a/node_modules/clone-response/package.json b/node_modules/clone-response/package.json index c7612c3..31bf77f 100644 --- a/node_modules/clone-response/package.json +++ b/node_modules/clone-response/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "clone-response@1.0.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "clone-response@1.0.2", "_id": "clone-response@1.0.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", "_spec": "1.0.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Luke Childs", "email": "lukechilds123@gmail.com", @@ -73,4 +66,4 @@ "xo": { "extends": "xo-lukechilds" } -} +} \ No newline at end of file diff --git a/node_modules/commander/package.json b/node_modules/commander/package.json index 060d21f..76820d9 100644 --- a/node_modules/commander/package.json +++ b/node_modules/commander/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "commander@2.8.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "commander@2.8.1", "_id": "commander@2.8.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", "_spec": "2.8.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" @@ -65,4 +58,4 @@ "test": "make test" }, "version": "2.8.1" -} +} \ No newline at end of file diff --git a/node_modules/config-chain/LICENCE b/node_modules/config-chain/LICENCE deleted file mode 100644 index 171dd97..0000000 --- a/node_modules/config-chain/LICENCE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2011 Dominic Tarr - -Permission is hereby granted, free of charge, -to any person obtaining a copy of this software and -associated documentation files (the "Software"), to -deal in the Software without restriction, including -without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom -the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/config-chain/index.js b/node_modules/config-chain/index.js deleted file mode 100644 index 0ef3a91..0000000 --- a/node_modules/config-chain/index.js +++ /dev/null @@ -1,282 +0,0 @@ -var ProtoList = require('proto-list') - , path = require('path') - , fs = require('fs') - , ini = require('ini') - , EE = require('events').EventEmitter - , url = require('url') - , http = require('http') - -var exports = module.exports = function () { - var args = [].slice.call(arguments) - , conf = new ConfigChain() - - while(args.length) { - var a = args.shift() - if(a) conf.push - ( 'string' === typeof a - ? json(a) - : a ) - } - - return conf -} - -//recursively find a file... - -var find = exports.find = function () { - var rel = path.join.apply(null, [].slice.call(arguments)) - - function find(start, rel) { - var file = path.join(start, rel) - try { - fs.statSync(file) - return file - } catch (err) { - if(path.dirname(start) !== start) // root - return find(path.dirname(start), rel) - } - } - return find(__dirname, rel) -} - -var parse = exports.parse = function (content, file, type) { - content = '' + content - // if we don't know what it is, try json and fall back to ini - // if we know what it is, then it must be that. - if (!type) { - try { return JSON.parse(content) } - catch (er) { return ini.parse(content) } - } else if (type === 'json') { - if (this.emit) { - try { return JSON.parse(content) } - catch (er) { this.emit('error', er) } - } else { - return JSON.parse(content) - } - } else { - return ini.parse(content) - } -} - -var json = exports.json = function () { - var args = [].slice.call(arguments).filter(function (arg) { return arg != null }) - var file = path.join.apply(null, args) - var content - try { - content = fs.readFileSync(file,'utf-8') - } catch (err) { - return - } - return parse(content, file, 'json') -} - -var env = exports.env = function (prefix, env) { - env = env || process.env - var obj = {} - var l = prefix.length - for(var k in env) { - if(k.indexOf(prefix) === 0) - obj[k.substring(l)] = env[k] - } - - return obj -} - -exports.ConfigChain = ConfigChain -function ConfigChain () { - EE.apply(this) - ProtoList.apply(this, arguments) - this._awaiting = 0 - this._saving = 0 - this.sources = {} -} - -// multi-inheritance-ish -var extras = { - constructor: { value: ConfigChain } -} -Object.keys(EE.prototype).forEach(function (k) { - extras[k] = Object.getOwnPropertyDescriptor(EE.prototype, k) -}) -ConfigChain.prototype = Object.create(ProtoList.prototype, extras) - -ConfigChain.prototype.del = function (key, where) { - // if not specified where, then delete from the whole chain, scorched - // earth style - if (where) { - var target = this.sources[where] - target = target && target.data - if (!target) { - return this.emit('error', new Error('not found '+where)) - } - delete target[key] - } else { - for (var i = 0, l = this.list.length; i < l; i ++) { - delete this.list[i][key] - } - } - return this -} - -ConfigChain.prototype.set = function (key, value, where) { - var target - - if (where) { - target = this.sources[where] - target = target && target.data - if (!target) { - return this.emit('error', new Error('not found '+where)) - } - } else { - target = this.list[0] - if (!target) { - return this.emit('error', new Error('cannot set, no confs!')) - } - } - target[key] = value - return this -} - -ConfigChain.prototype.get = function (key, where) { - if (where) { - where = this.sources[where] - if (where) where = where.data - if (where && Object.hasOwnProperty.call(where, key)) return where[key] - return undefined - } - return this.list[0][key] -} - -ConfigChain.prototype.save = function (where, type, cb) { - if (typeof type === 'function') cb = type, type = null - var target = this.sources[where] - if (!target || !(target.path || target.source) || !target.data) { - // TODO: maybe save() to a url target could be a PUT or something? - // would be easy to swap out with a reddis type thing, too - return this.emit('error', new Error('bad save target: '+where)) - } - - if (target.source) { - var pref = target.prefix || '' - Object.keys(target.data).forEach(function (k) { - target.source[pref + k] = target.data[k] - }) - return this - } - - var type = type || target.type - var data = target.data - if (target.type === 'json') { - data = JSON.stringify(data) - } else { - data = ini.stringify(data) - } - - this._saving ++ - fs.writeFile(target.path, data, 'utf8', function (er) { - this._saving -- - if (er) { - if (cb) return cb(er) - else return this.emit('error', er) - } - if (this._saving === 0) { - if (cb) cb() - this.emit('save') - } - }.bind(this)) - return this -} - -ConfigChain.prototype.addFile = function (file, type, name) { - name = name || file - var marker = {__source__:name} - this.sources[name] = { path: file, type: type } - this.push(marker) - this._await() - fs.readFile(file, 'utf8', function (er, data) { - if (er) this.emit('error', er) - this.addString(data, file, type, marker) - }.bind(this)) - return this -} - -ConfigChain.prototype.addEnv = function (prefix, env, name) { - name = name || 'env' - var data = exports.env(prefix, env) - this.sources[name] = { data: data, source: env, prefix: prefix } - return this.add(data, name) -} - -ConfigChain.prototype.addUrl = function (req, type, name) { - this._await() - var href = url.format(req) - name = name || href - var marker = {__source__:name} - this.sources[name] = { href: href, type: type } - this.push(marker) - http.request(req, function (res) { - var c = [] - var ct = res.headers['content-type'] - if (!type) { - type = ct.indexOf('json') !== -1 ? 'json' - : ct.indexOf('ini') !== -1 ? 'ini' - : href.match(/\.json$/) ? 'json' - : href.match(/\.ini$/) ? 'ini' - : null - marker.type = type - } - - res.on('data', c.push.bind(c)) - .on('end', function () { - this.addString(Buffer.concat(c), href, type, marker) - }.bind(this)) - .on('error', this.emit.bind(this, 'error')) - - }.bind(this)) - .on('error', this.emit.bind(this, 'error')) - .end() - - return this -} - -ConfigChain.prototype.addString = function (data, file, type, marker) { - data = this.parse(data, file, type) - this.add(data, marker) - return this -} - -ConfigChain.prototype.add = function (data, marker) { - if (marker && typeof marker === 'object') { - var i = this.list.indexOf(marker) - if (i === -1) { - return this.emit('error', new Error('bad marker')) - } - this.splice(i, 1, data) - marker = marker.__source__ - this.sources[marker] = this.sources[marker] || {} - this.sources[marker].data = data - // we were waiting for this. maybe emit 'load' - this._resolve() - } else { - if (typeof marker === 'string') { - this.sources[marker] = this.sources[marker] || {} - this.sources[marker].data = data - } - // trigger the load event if nothing was already going to do so. - this._await() - this.push(data) - process.nextTick(this._resolve.bind(this)) - } - return this -} - -ConfigChain.prototype.parse = exports.parse - -ConfigChain.prototype._await = function () { - this._awaiting++ -} - -ConfigChain.prototype._resolve = function () { - this._awaiting-- - if (this._awaiting === 0) this.emit('load', this) -} diff --git a/node_modules/config-chain/package.json b/node_modules/config-chain/package.json deleted file mode 100644 index 8029310..0000000 --- a/node_modules/config-chain/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "_args": [ - [ - "config-chain@1.1.12", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "config-chain@1.1.12", - "_id": "config-chain@1.1.12", - "_inBundle": false, - "_integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==", - "_location": "/config-chain", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "config-chain@1.1.12", - "name": "config-chain", - "escapedName": "config-chain", - "rawSpec": "1.1.12", - "saveSpec": null, - "fetchSpec": "1.1.12" - }, - "_requiredBy": [ - "/npm-conf" - ], - "_resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", - "_spec": "1.1.12", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Dominic Tarr", - "email": "dominic.tarr@gmail.com", - "url": "http://dominictarr.com" - }, - "bugs": { - "url": "https://github.com/dominictarr/config-chain/issues" - }, - "dependencies": { - "ini": "^1.3.4", - "proto-list": "~1.2.1" - }, - "description": "HANDLE CONFIGURATION ONCE AND FOR ALL", - "devDependencies": { - "tap": "0.3.0" - }, - "files": [ - "index.js" - ], - "homepage": "http://github.com/dominictarr/config-chain", - "licenses": [ - { - "type": "MIT", - "url": "https://raw.githubusercontent.com/dominictarr/config-chain/master/LICENCE" - } - ], - "name": "config-chain", - "repository": { - "type": "git", - "url": "git+https://github.com/dominictarr/config-chain.git" - }, - "scripts": { - "test": "tap test/*" - }, - "version": "1.1.12" -} diff --git a/node_modules/config-chain/readme.markdown b/node_modules/config-chain/readme.markdown deleted file mode 100644 index 47f894c..0000000 --- a/node_modules/config-chain/readme.markdown +++ /dev/null @@ -1,257 +0,0 @@ -# config-chain - -A module for loading custom configurations - -## NOTE: Feature Freeze - -[![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges) - -This module is frozen. - -In general, we recommend using [rc](https://github.com/dominictarr/rc) instead, -but as [npm](https://github.com/npmjs/npm) depends on this, it cannot be changed. - - -## Install - -```sh -yarn add config-chain - -# npm users -npm install --save config-chain -``` - -## Usage - -```js -const cc = require('config-chain'); - -console.log(cc.env('TERM_', process.env)); -/* -{ SESSION_ID: 'w1:5F38', - PROGRAM_VERSION: '3.1.2', - PROGRAM: 'iTerm.app' } -*/ -``` - -The `.env` function gets all the keys on the provided object which are -prefixed by the specified prefix, removes the prefix, and puts the values on a new object. - -
- -## Full Usage - -``` js - - // npm install config-chain - - var cc = require('config-chain') - , opts = require('optimist').argv //ALWAYS USE OPTIMIST FOR COMMAND LINE OPTIONS. - , env = opts.env || process.env.YOUR_APP_ENV || 'dev' //SET YOUR ENV LIKE THIS. - - // EACH ARG TO CONFIGURATOR IS LOADED INTO CONFIGURATION CHAIN - // EARLIER ITEMS OVERIDE LATER ITEMS - // PUTS COMMAND LINE OPTS FIRST, AND DEFAULTS LAST! - - //strings are interpereted as filenames. - //will be loaded synchronously - - var conf = - cc( - //OVERRIDE SETTINGS WITH COMMAND LINE OPTS - opts, - - //ENV VARS IF PREFIXED WITH 'myApp_' - - cc.env('myApp_'), //myApp_foo = 'like this' - - //FILE NAMED BY ENV - path.join(__dirname, 'config.' + env + '.json'), - - //IF `env` is PRODUCTION - env === 'prod' - ? path.join(__dirname, 'special.json') //load a special file - : null //NULL IS IGNORED! - - //SUBDIR FOR ENV CONFIG - path.join(__dirname, 'config', env, 'config.json'), - - //SEARCH PARENT DIRECTORIES FROM CURRENT DIR FOR FILE - cc.find('config.json'), - - //PUT DEFAULTS LAST - { - host: 'localhost' - port: 8000 - }) - - var host = conf.get('host') - - // or - - var host = conf.store.host - -``` - -Finally, flexible configurations! 👌 - -## Custom Configuations - -```javascript -var cc = require('config-chain') - -// all the stuff you did before -var config = cc({ - some: 'object' - }, - cc.find('config.json'), - cc.env('myApp_') - ) - // CONFIGS AS A SERVICE, aka "CaaS", aka EVERY DEVOPS DREAM OMG! - .addUrl('http://configurator:1234/my-configs') - // ASYNC FTW! - .addFile('/path/to/file.json') - - // OBJECTS ARE OK TOO, they're SYNC but they still ORDER RIGHT - // BECAUSE PROMISES ARE USED BUT NO, NOT *THOSE* PROMISES, JUST - // ACTUAL PROMISES LIKE YOU MAKE TO YOUR MOM, KEPT OUT OF LOVE - .add({ another: 'object' }) - - // DIE A THOUSAND DEATHS IF THIS EVER HAPPENS!! - .on('error', function (er) { - // IF ONLY THERE WAS SOMETHIGN HARDER THAN THROW - // MY SORROW COULD BE ADEQUATELY EXPRESSED. /o\ - throw er - }) - - // THROW A PARTY IN YOUR FACE WHEN ITS ALL LOADED!! - .on('load', function (config) { - console.awesome('HOLY SHIT!') - }) -``` - -# API Docs - -## cc(...args) - -MAKE A CHAIN AND ADD ALL THE ARGS. - -If the arg is a STRING, then it shall be a JSON FILENAME. - -RETURN THE CHAIN! - -## cc.json(...args) - -Join the args into a JSON filename! - -SYNC I/O! - -## cc.find(relativePath) - -SEEK the RELATIVE PATH by climbing the TREE OF DIRECTORIES. - -RETURN THE FOUND PATH! - -SYNC I/O! - -## cc.parse(content, file, type) - -Parse the content string, and guess the type from either the -specified type or the filename. - -RETURN THE RESULTING OBJECT! - -NO I/O! - -## cc.env(prefix, env=process.env) - -Get all the keys on the provided object which are -prefixed by the specified prefix, removes the prefix, and puts the values on a new object. - -RETURN THE RESULTING OBJECT! - -NO I/O! - -## cc.ConfigChain() - -The ConfigChain class for CRAY CRAY JQUERY STYLE METHOD CHAINING! - -One of these is returned by the main exported function, as well. - -It inherits (prototypically) from -[ProtoList](https://github.com/isaacs/proto-list/), and also inherits -(parasitically) from -[EventEmitter](http://nodejs.org/api/events.html#events_class_events_eventemitter) - -It has all the methods from both, and except where noted, they are -unchanged. - -### LET IT BE KNOWN THAT chain IS AN INSTANCE OF ConfigChain. - -## chain.sources - -A list of all the places where it got stuff. The keys are the names -passed to addFile or addUrl etc, and the value is an object with some -info about the data source. - -## chain.addFile(filename, type, [name=filename]) - -Filename is the name of the file. Name is an arbitrary string to be -used later if you desire. Type is either 'ini' or 'json', and will -try to guess intelligently if omitted. - -Loaded files can be saved later. - -## chain.addUrl(url, type, [name=url]) - -Same as the filename thing, but with a url. - -Can't be saved later. - -## chain.addEnv(prefix, env, [name='env']) - -Add all the keys from the env object that start with the prefix. - -## chain.addString(data, file, type, [name]) - -Parse the string and add it to the set. (Mainly used internally.) - -## chain.add(object, [name]) - -Add the object to the set. - -## chain.root {Object} - -The root from which all the other config objects in the set descend -prototypically. - -Put your defaults here. - -## chain.set(key, value, name) - -Set the key to the value on the named config object. If name is -unset, then set it on the first config object in the set. (That is, -the one with the highest priority, which was added first.) - -## chain.get(key, [name]) - -Get the key from the named config object explicitly, or from the -resolved configs if not specified. - -## chain.save(name, type) - -Write the named config object back to its origin. - -Currently only supported for env and file config types. - -For files, encode the data according to the type. - -## chain.on('save', function () {}) - -When one or more files are saved, emits `save` event when they're all -saved. - -## chain.on('load', function (chain) {}) - -When the config chain has loaded all the specified files and urls and -such, the 'load' event fires. diff --git a/node_modules/content-disposition/node_modules/safe-buffer/package.json b/node_modules/content-disposition/node_modules/safe-buffer/package.json index 47e9d9c..2129ac3 100644 --- a/node_modules/content-disposition/node_modules/safe-buffer/package.json +++ b/node_modules/content-disposition/node_modules/safe-buffer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "safe-buffer@5.1.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "safe-buffer@5.1.2", "_id": "safe-buffer@5.1.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "_spec": "5.1.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Feross Aboukhadijeh", "email": "feross@feross.org", @@ -62,4 +55,4 @@ }, "types": "index.d.ts", "version": "5.1.2" -} +} \ No newline at end of file diff --git a/node_modules/content-disposition/package.json b/node_modules/content-disposition/package.json index ad7e69c..152d127 100644 --- a/node_modules/content-disposition/package.json +++ b/node_modules/content-disposition/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "content-disposition@0.5.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "content-disposition@0.5.3", "_id": "content-disposition@0.5.3", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", "_spec": "0.5.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Douglas Christopher Wilson", "email": "doug@somethingdoug.com" @@ -79,4 +72,4 @@ "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" }, "version": "0.5.3" -} +} \ No newline at end of file diff --git a/node_modules/core-util-is/package.json b/node_modules/core-util-is/package.json index 0d9b87c..05338e2 100644 --- a/node_modules/core-util-is/package.json +++ b/node_modules/core-util-is/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "core-util-is@1.0.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "core-util-is@1.0.2", "_id": "core-util-is@1.0.2", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "_spec": "1.0.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -63,4 +56,4 @@ "test": "tap test.js" }, "version": "1.0.2" -} +} \ No newline at end of file diff --git a/node_modules/decode-uri-component/package.json b/node_modules/decode-uri-component/package.json index 82813f1..e7e932d 100644 --- a/node_modules/decode-uri-component/package.json +++ b/node_modules/decode-uri-component/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "decode-uri-component@0.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "decode-uri-component@0.2.0", "_id": "decode-uri-component@0.2.0", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", "_spec": "0.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sam Verschueren", "email": "sam.verschueren@gmail.com", @@ -70,4 +63,4 @@ "test": "xo && nyc ava" }, "version": "0.2.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress-response/package.json b/node_modules/decompress-response/package.json index a8885ba..35d9d4b 100644 --- a/node_modules/decompress-response/package.json +++ b/node_modules/decompress-response/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "decompress-response@3.3.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "decompress-response@3.3.0", "_id": "decompress-response@3.3.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", "_spec": "3.3.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bugs": { "url": "https://github.com/sindresorhus/decompress-response/issues" }, @@ -85,4 +78,4 @@ "test": "xo && ava" }, "version": "3.3.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress-tar/node_modules/file-type/package.json b/node_modules/decompress-tar/node_modules/file-type/package.json index 0454e81..8b07d35 100644 --- a/node_modules/decompress-tar/node_modules/file-type/package.json +++ b/node_modules/decompress-tar/node_modules/file-type/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "file-type@5.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "file-type@5.2.0", "_id": "file-type@5.2.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", "_spec": "5.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -141,4 +134,4 @@ "test": "xo && ava" }, "version": "5.2.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress-tar/package.json b/node_modules/decompress-tar/package.json index 9f09b98..c4c0f6f 100644 --- a/node_modules/decompress-tar/package.json +++ b/node_modules/decompress-tar/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "decompress-tar@4.1.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "decompress-tar@4.1.1", "_id": "decompress-tar@4.1.1", "_inBundle": false, @@ -28,7 +22,6 @@ ], "_resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", "_spec": "4.1.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -72,4 +65,4 @@ "test": "xo && ava" }, "version": "4.1.1" -} +} \ No newline at end of file diff --git a/node_modules/decompress-tarbz2/node_modules/file-type/package.json b/node_modules/decompress-tarbz2/node_modules/file-type/package.json index 2831988..9a0c552 100644 --- a/node_modules/decompress-tarbz2/node_modules/file-type/package.json +++ b/node_modules/decompress-tarbz2/node_modules/file-type/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "file-type@6.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "file-type@6.2.0", "_id": "file-type@6.2.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", "_spec": "6.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -142,4 +135,4 @@ "test": "xo && ava" }, "version": "6.2.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress-tarbz2/package.json b/node_modules/decompress-tarbz2/package.json index e463bc7..043c135 100644 --- a/node_modules/decompress-tarbz2/package.json +++ b/node_modules/decompress-tarbz2/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "decompress-tarbz2@4.1.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "decompress-tarbz2@4.1.1", "_id": "decompress-tarbz2@4.1.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", "_spec": "4.1.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -74,4 +67,4 @@ "test": "xo && ava" }, "version": "4.1.1" -} +} \ No newline at end of file diff --git a/node_modules/decompress-targz/node_modules/file-type/package.json b/node_modules/decompress-targz/node_modules/file-type/package.json index d7ac726..c0b635e 100644 --- a/node_modules/decompress-targz/node_modules/file-type/package.json +++ b/node_modules/decompress-targz/node_modules/file-type/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "file-type@5.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "file-type@5.2.0", "_id": "file-type@5.2.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", "_spec": "5.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -141,4 +134,4 @@ "test": "xo && ava" }, "version": "5.2.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress-targz/package.json b/node_modules/decompress-targz/package.json index e23d2eb..2b481f7 100644 --- a/node_modules/decompress-targz/package.json +++ b/node_modules/decompress-targz/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "decompress-targz@4.1.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "decompress-targz@4.1.1", "_id": "decompress-targz@4.1.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", "_spec": "4.1.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -71,4 +64,4 @@ "test": "xo && ava" }, "version": "4.1.1" -} +} \ No newline at end of file diff --git a/node_modules/decompress-unzip/node_modules/file-type/package.json b/node_modules/decompress-unzip/node_modules/file-type/package.json index 5470457..a836818 100644 --- a/node_modules/decompress-unzip/node_modules/file-type/package.json +++ b/node_modules/decompress-unzip/node_modules/file-type/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "file-type@3.9.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "file-type@3.9.0", "_id": "file-type@3.9.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", "_spec": "3.9.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -135,4 +128,4 @@ "test": "xo && ava" }, "version": "3.9.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress-unzip/node_modules/get-stream/package.json b/node_modules/decompress-unzip/node_modules/get-stream/package.json index 2cf8805..5b2f193 100644 --- a/node_modules/decompress-unzip/node_modules/get-stream/package.json +++ b/node_modules/decompress-unzip/node_modules/get-stream/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "get-stream@2.3.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "get-stream@2.3.1", "_id": "get-stream@2.3.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", "_spec": "2.3.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -81,4 +74,4 @@ "test": "xo && ava" }, "version": "2.3.1" -} +} \ No newline at end of file diff --git a/node_modules/decompress-unzip/node_modules/pify/package.json b/node_modules/decompress-unzip/node_modules/pify/package.json index c7dbbaf..d799218 100644 --- a/node_modules/decompress-unzip/node_modules/pify/package.json +++ b/node_modules/decompress-unzip/node_modules/pify/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "pify@2.3.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "pify@2.3.0", "_id": "pify@2.3.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "_spec": "2.3.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -80,4 +73,4 @@ "test": "xo && ava && npm run optimization-test" }, "version": "2.3.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress-unzip/package.json b/node_modules/decompress-unzip/package.json index 405c7e9..c56788a 100644 --- a/node_modules/decompress-unzip/package.json +++ b/node_modules/decompress-unzip/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "decompress-unzip@4.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "decompress-unzip@4.0.1", "_id": "decompress-unzip@4.0.1", "_inBundle": false, @@ -29,7 +23,6 @@ ], "_resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", "_spec": "4.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -76,4 +69,4 @@ "xo": { "esnext": true } -} +} \ No newline at end of file diff --git a/node_modules/decompress/index.js b/node_modules/decompress/index.js index 9193ebd..6aa67ca 100644 --- a/node_modules/decompress/index.js +++ b/node_modules/decompress/index.js @@ -19,6 +19,38 @@ const runPlugins = (input, opts) => { return Promise.all(opts.plugins.map(x => x(input, opts))).then(files => files.reduce((a, b) => a.concat(b))); }; +const safeMakeDir = (dir, realOutputPath) => { + return fsP.realpath(dir) + .catch(_ => { + const parent = path.dirname(dir); + return safeMakeDir(parent, realOutputPath); + }) + .then(realParentPath => { + if (realParentPath.indexOf(realOutputPath) !== 0) { + throw (new Error('Refusing to create a directory outside the output path.')); + } + + return makeDir(dir).then(fsP.realpath); + }); +}; + +const preventWritingThroughSymlink = (destination, realOutputPath) => { + return fsP.readlink(destination) + .catch(_ => { + // Either no file exists, or it's not a symlink. In either case, this is + // not an escape we need to worry about in this phase. + return null; + }) + .then(symlinkPointsTo => { + if (symlinkPointsTo) { + throw new Error('Refusing to write into a symlink'); + } + + // No symlink exists at `destination`, so we can continue + return realOutputPath; + }); +}; + const extractFile = (input, output, opts) => runPlugins(input, opts).then(files => { if (opts.strip > 0) { files = files @@ -47,12 +79,35 @@ const extractFile = (input, output, opts) => runPlugins(input, opts).then(files const now = new Date(); if (x.type === 'directory') { - return makeDir(dest) + return makeDir(output) + .then(outputPath => fsP.realpath(outputPath)) + .then(realOutputPath => safeMakeDir(dest, realOutputPath)) .then(() => fsP.utimes(dest, now, x.mtime)) .then(() => x); } - return makeDir(path.dirname(dest)) + return makeDir(output) + .then(outputPath => fsP.realpath(outputPath)) + .then(realOutputPath => { + // Attempt to ensure parent directory exists (failing if it's outside the output dir) + return safeMakeDir(path.dirname(dest), realOutputPath) + .then(() => realOutputPath); + }) + .then(realOutputPath => { + if (x.type === 'file') { + return preventWritingThroughSymlink(dest, realOutputPath); + } + + return realOutputPath; + }) + .then(realOutputPath => { + return fsP.realpath(path.dirname(dest)) + .then(realDestinationDir => { + if (realDestinationDir.indexOf(realOutputPath) !== 0) { + throw (new Error('Refusing to write outside output directory: ' + realDestinationDir)); + } + }); + }) .then(() => { if (x.type === 'link') { return fsP.link(x.linkname, dest); diff --git a/node_modules/decompress/license b/node_modules/decompress/license index a8ecbbe..db6bc32 100644 --- a/node_modules/decompress/license +++ b/node_modules/decompress/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License -Copyright (c) Kevin Mårtensson +Copyright (c) Kevin Mårtensson (github.com/kevva) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/decompress/node_modules/make-dir/index.js b/node_modules/decompress/node_modules/make-dir/index.js new file mode 100644 index 0000000..1843955 --- /dev/null +++ b/node_modules/decompress/node_modules/make-dir/index.js @@ -0,0 +1,85 @@ +'use strict'; +const fs = require('fs'); +const path = require('path'); +const pify = require('pify'); + +const defaults = { + mode: 0o777 & (~process.umask()), + fs +}; + +// https://github.com/nodejs/node/issues/8987 +// https://github.com/libuv/libuv/pull/1088 +const checkPath = pth => { + if (process.platform === 'win32') { + const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')); + + if (pathHasInvalidWinCharacters) { + const err = new Error(`Path contains invalid characters: ${pth}`); + err.code = 'EINVAL'; + throw err; + } + } +}; + +module.exports = (input, opts) => Promise.resolve().then(() => { + checkPath(input); + opts = Object.assign({}, defaults, opts); + + const mkdir = pify(opts.fs.mkdir); + const stat = pify(opts.fs.stat); + + const make = pth => { + return mkdir(pth, opts.mode) + .then(() => pth) + .catch(err => { + if (err.code === 'ENOENT') { + if (err.message.includes('null bytes') || path.dirname(pth) === pth) { + throw err; + } + + return make(path.dirname(pth)).then(() => make(pth)); + } + + return stat(pth) + .then(stats => stats.isDirectory() ? pth : Promise.reject()) + .catch(() => { + throw err; + }); + }); + }; + + return make(path.resolve(input)); +}); + +module.exports.sync = (input, opts) => { + checkPath(input); + opts = Object.assign({}, defaults, opts); + + const make = pth => { + try { + opts.fs.mkdirSync(pth, opts.mode); + } catch (err) { + if (err.code === 'ENOENT') { + if (err.message.includes('null bytes') || path.dirname(pth) === pth) { + throw err; + } + + make(path.dirname(pth)); + return make(pth); + } + + try { + if (!opts.fs.statSync(pth).isDirectory()) { + throw new Error('The path is not a directory'); + } + } catch (_) { + throw err; + } + } + + return pth; + }; + + return make(path.resolve(input)); +}; diff --git a/node_modules/npm-conf/license b/node_modules/decompress/node_modules/make-dir/license similarity index 92% rename from node_modules/npm-conf/license rename to node_modules/decompress/node_modules/make-dir/license index db6bc32..e7af2f7 100644 --- a/node_modules/npm-conf/license +++ b/node_modules/decompress/node_modules/make-dir/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Kevin Mårtensson (github.com/kevva) +Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/node_modules/decompress/node_modules/make-dir/node_modules/pify/index.js b/node_modules/decompress/node_modules/make-dir/node_modules/pify/index.js new file mode 100644 index 0000000..1dee43a --- /dev/null +++ b/node_modules/decompress/node_modules/make-dir/node_modules/pify/index.js @@ -0,0 +1,84 @@ +'use strict'; + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; diff --git a/node_modules/get-proxy/license b/node_modules/decompress/node_modules/make-dir/node_modules/pify/license similarity index 92% rename from node_modules/get-proxy/license rename to node_modules/decompress/node_modules/make-dir/node_modules/pify/license index db6bc32..e7af2f7 100644 --- a/node_modules/get-proxy/license +++ b/node_modules/decompress/node_modules/make-dir/node_modules/pify/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Kevin Mårtensson (github.com/kevva) +Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/node_modules/decompress/node_modules/make-dir/node_modules/pify/package.json b/node_modules/decompress/node_modules/make-dir/node_modules/pify/package.json new file mode 100644 index 0000000..6423dbd --- /dev/null +++ b/node_modules/decompress/node_modules/make-dir/node_modules/pify/package.json @@ -0,0 +1,79 @@ +{ + "_from": "pify@3.0.0", + "_id": "pify@3.0.0", + "_inBundle": false, + "_integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "_location": "/decompress/make-dir/pify", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "pify@3.0.0", + "name": "pify", + "escapedName": "pify", + "rawSpec": "3.0.0", + "saveSpec": null, + "fetchSpec": "3.0.0" + }, + "_requiredBy": [ + "/decompress/make-dir" + ], + "_resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "_spec": "3.0.0", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/pify/issues" + }, + "description": "Promisify a callback-style function", + "devDependencies": { + "ava": "*", + "pinkie-promise": "^2.0.0", + "v8-natives": "^1.0.0", + "xo": "*" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/pify#readme", + "keywords": [ + "promise", + "promises", + "promisify", + "all", + "denodify", + "denodeify", + "callback", + "cb", + "node", + "then", + "thenify", + "convert", + "transform", + "wrap", + "wrapper", + "bind", + "to", + "async", + "await", + "es2015", + "bluebird" + ], + "license": "MIT", + "name": "pify", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/pify.git" + }, + "scripts": { + "optimization-test": "node --allow-natives-syntax optimization-test.js", + "test": "xo && ava && npm run optimization-test" + }, + "version": "3.0.0" +} \ No newline at end of file diff --git a/node_modules/decompress/node_modules/make-dir/node_modules/pify/readme.md b/node_modules/decompress/node_modules/make-dir/node_modules/pify/readme.md new file mode 100644 index 0000000..376ca4e --- /dev/null +++ b/node_modules/decompress/node_modules/make-dir/node_modules/pify/readme.md @@ -0,0 +1,131 @@ +# pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify) + +> Promisify a callback-style function + + +## Install + +``` +$ npm install --save pify +``` + + +## Usage + +```js +const fs = require('fs'); +const pify = require('pify'); + +// Promisify a single function +pify(fs.readFile)('package.json', 'utf8').then(data => { + console.log(JSON.parse(data).name); + //=> 'pify' +}); + +// Promisify all methods in a module +pify(fs).readFile('package.json', 'utf8').then(data => { + console.log(JSON.parse(data).name); + //=> 'pify' +}); +``` + + +## API + +### pify(input, [options]) + +Returns a `Promise` wrapped version of the supplied function or module. + +#### input + +Type: `Function` `Object` + +Callback-style function or module whose methods you want to promisify. + +#### options + +##### multiArgs + +Type: `boolean`
+Default: `false` + +By default, the promisified function will only return the second argument from the callback, which works fine for most APIs. This option can be useful for modules like `request` that return multiple arguments. Turning this on will make it return an array of all arguments from the callback, excluding the error argument, instead of just the second argument. This also applies to rejections, where it returns an array of all the callback arguments, including the error. + +```js +const request = require('request'); +const pify = require('pify'); + +pify(request, {multiArgs: true})('https://sindresorhus.com').then(result => { + const [httpResponse, body] = result; +}); +``` + +##### include + +Type: `string[]` `RegExp[]` + +Methods in a module to promisify. Remaining methods will be left untouched. + +##### exclude + +Type: `string[]` `RegExp[]`
+Default: `[/.+(Sync|Stream)$/]` + +Methods in a module **not** to promisify. Methods with names ending with `'Sync'` are excluded by default. + +##### excludeMain + +Type: `boolean`
+Default: `false` + +If given module is a function itself, it will be promisified. Turn this option on if you want to promisify only methods of the module. + +```js +const pify = require('pify'); + +function fn() { + return true; +} + +fn.method = (data, callback) => { + setImmediate(() => { + callback(null, data); + }); +}; + +// Promisify methods but not `fn()` +const promiseFn = pify(fn, {excludeMain: true}); + +if (promiseFn()) { + promiseFn.method('hi').then(data => { + console.log(data); + }); +} +``` + +##### errorFirst + +Type: `boolean`
+Default: `true` + +Whether the callback has an error as the first argument. You'll want to set this to `false` if you're dealing with an API that doesn't have an error as the first argument, like `fs.exists()`, some browser APIs, Chrome Extension APIs, etc. + +##### promiseModule + +Type: `Function` + +Custom promise module to use instead of the native one. + +Check out [`pinkie-promise`](https://github.com/floatdrop/pinkie-promise) if you need a tiny promise polyfill. + + +## Related + +- [p-event](https://github.com/sindresorhus/p-event) - Promisify an event by waiting for it to be emitted +- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently +- [More…](https://github.com/sindresorhus/promise-fun) + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/decompress/node_modules/make-dir/package.json b/node_modules/decompress/node_modules/make-dir/package.json new file mode 100644 index 0000000..670d775 --- /dev/null +++ b/node_modules/decompress/node_modules/make-dir/package.json @@ -0,0 +1,82 @@ +{ + "_from": "make-dir@1.3.0", + "_id": "make-dir@1.3.0", + "_inBundle": false, + "_integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "_location": "/decompress/make-dir", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "make-dir@1.3.0", + "name": "make-dir", + "escapedName": "make-dir", + "rawSpec": "1.3.0", + "saveSpec": null, + "fetchSpec": "1.3.0" + }, + "_requiredBy": [ + "/decompress" + ], + "_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "_spec": "1.3.0", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/make-dir/issues" + }, + "dependencies": { + "pify": "^3.0.0" + }, + "description": "Make a directory and its parents if needed - Think `mkdir -p`", + "devDependencies": { + "ava": "*", + "codecov": "^3.0.0", + "graceful-fs": "^4.1.11", + "nyc": "^11.3.0", + "path-type": "^3.0.0", + "tempy": "^0.2.1", + "xo": "^0.20.0" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/make-dir#readme", + "keywords": [ + "mkdir", + "mkdirp", + "make", + "directories", + "dir", + "dirs", + "folders", + "directory", + "folder", + "path", + "parent", + "parents", + "intermediate", + "recursively", + "recursive", + "create", + "fs", + "filesystem", + "file-system" + ], + "license": "MIT", + "name": "make-dir", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/make-dir.git" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "version": "1.3.0" +} \ No newline at end of file diff --git a/node_modules/decompress/node_modules/make-dir/readme.md b/node_modules/decompress/node_modules/make-dir/readme.md new file mode 100644 index 0000000..8a32bf4 --- /dev/null +++ b/node_modules/decompress/node_modules/make-dir/readme.md @@ -0,0 +1,116 @@ +# make-dir [![Build Status: macOS & Linux](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/e0vtt8y600w91gcs/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/make-dir/branch/master) [![codecov](https://codecov.io/gh/sindresorhus/make-dir/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/make-dir) + +> Make a directory and its parents if needed - Think `mkdir -p` + + +## Advantages over [`mkdirp`](https://github.com/substack/node-mkdirp) + +- Promise API *(Async/await ready!)* +- Fixes many `mkdirp` issues: [#96](https://github.com/substack/node-mkdirp/pull/96) [#70](https://github.com/substack/node-mkdirp/issues/70) [#66](https://github.com/substack/node-mkdirp/issues/66) +- 100% test coverage +- CI-tested on macOS, Linux, and Windows +- Actively maintained +- Doesn't bundle a CLI + + +## Install + +``` +$ npm install make-dir +``` + + +## Usage + +``` +$ pwd +/Users/sindresorhus/fun +$ tree +. +``` + +```js +const makeDir = require('make-dir'); + +makeDir('unicorn/rainbow/cake').then(path => { + console.log(path); + //=> '/Users/sindresorhus/fun/unicorn/rainbow/cake' +}); +``` + +``` +$ tree +. +└── unicorn + └── rainbow + └── cake +``` + +Multiple directories: + +```js +const makeDir = require('make-dir'); + +Promise.all([ + makeDir('unicorn/rainbow') + makeDir('foo/bar') +]).then(paths => { + console.log(paths); + /* + [ + '/Users/sindresorhus/fun/unicorn/rainbow', + '/Users/sindresorhus/fun/foo/bar' + ] + */ +}); +``` + + +## API + +### makeDir(path, [options]) + +Returns a `Promise` for the path to the created directory. + +### makeDir.sync(path, [options]) + +Returns the path to the created directory. + +#### path + +Type: `string` + +Directory to create. + +#### options + +Type: `Object` + +##### mode + +Type: `integer`
+Default: `0o777 & (~process.umask())` + +Directory [permissions](https://x-team.com/blog/file-system-permissions-umask-node-js/). + +##### fs + +Type: `Object`
+Default: `require('fs')` + +Use a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). + + +## Related + +- [make-dir-cli](https://github.com/sindresorhus/make-dir-cli) - CLI for this module +- [del](https://github.com/sindresorhus/del) - Delete files and directories +- [globby](https://github.com/sindresorhus/globby) - User-friendly glob matching +- [cpy](https://github.com/sindresorhus/cpy) - Copy files +- [cpy-cli](https://github.com/sindresorhus/cpy-cli) - Copy files on the command-line +- [move-file](https://github.com/sindresorhus/move-file) - Move a file + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/decompress/node_modules/pify/package.json b/node_modules/decompress/node_modules/pify/package.json index a53c53d..c898026 100644 --- a/node_modules/decompress/node_modules/pify/package.json +++ b/node_modules/decompress/node_modules/pify/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "pify@2.3.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "pify@2.3.0", "_id": "pify@2.3.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "_spec": "2.3.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -80,4 +73,4 @@ "test": "xo && ava && npm run optimization-test" }, "version": "2.3.0" -} +} \ No newline at end of file diff --git a/node_modules/decompress/package.json b/node_modules/decompress/package.json index a316cec..fc86f63 100644 --- a/node_modules/decompress/package.json +++ b/node_modules/decompress/package.json @@ -1,37 +1,35 @@ { - "_args": [ - [ - "decompress@4.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "decompress@4.2.0", - "_id": "decompress@4.2.0", + "_from": "decompress@4.2.1", + "_id": "decompress@4.2.1", "_inBundle": false, - "_integrity": "sha1-eu3YVCflqS2s/lVnSnxQXpbQH50=", + "_integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", "_location": "/decompress", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "decompress@4.2.0", + "raw": "decompress@4.2.1", "name": "decompress", "escapedName": "decompress", - "rawSpec": "4.2.0", + "rawSpec": "4.2.1", "saveSpec": null, - "fetchSpec": "4.2.0" + "fetchSpec": "4.2.1" }, "_requiredBy": [ "/download" ], - "_resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.0.tgz", - "_spec": "4.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", + "_spec": "4.2.1", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", "url": "github.com/kevva" }, + "ava": { + "require": [ + "esm" + ] + }, "bugs": { "url": "https://github.com/kevva/decompress/issues" }, @@ -48,9 +46,11 @@ "description": "Extracting archives made easy", "devDependencies": { "ava": "*", + "esm": "^3.2.25", "is-jpg": "^1.0.0", "path-exists": "^3.0.0", "pify": "^2.3.0", + "rimraf": "^3.0.2", "xo": "*" }, "engines": { @@ -80,5 +80,10 @@ "scripts": { "test": "xo && ava" }, - "version": "4.2.0" -} + "version": "4.2.1", + "xo": { + "rules": { + "promise/prefer-await-to-then": "off" + } + } +} \ No newline at end of file diff --git a/node_modules/decompress/readme.md b/node_modules/decompress/readme.md index 3855419..fd23f91 100644 --- a/node_modules/decompress/readme.md +++ b/node_modules/decompress/readme.md @@ -7,7 +7,7 @@ ## Install ``` -$ npm install --save decompress +$ npm install decompress ``` @@ -66,6 +66,8 @@ decompress('unicorn.zip', 'dist', { }); ``` +*Note that in the current implementation, **`filter` is only applied after fully reading all files from the archive in memory**. Do not rely on this option to limit the amount of memory used by `decompress` to the size of the files included by `filter`. `decompress` will read the entire compressed file into memory regardless.* + ##### map Type: `Function` diff --git a/node_modules/download/index.js b/node_modules/download/index.js index 342ff47..e8dbda5 100644 --- a/node_modules/download/index.js +++ b/node_modules/download/index.js @@ -1,8 +1,7 @@ 'use strict'; const fs = require('fs'); const path = require('path'); -const url = require('url'); -const caw = require('caw'); +const {URL} = require('url'); const contentDisposition = require('content-disposition'); const archiveType = require('archive-type'); const decompress = require('decompress'); @@ -16,7 +15,7 @@ const fileType = require('file-type'); const extName = require('ext-name'); const fsP = pify(fs); -const filenameFromPath = res => path.basename(url.parse(res.requestUrl).pathname); +const filenameFromPath = res => path.basename(new URL(res.requestUrl).pathname); const getExtFromMime = res => { const header = res.headers['content-type']; @@ -58,37 +57,18 @@ const getFilename = (res, data) => { return filename; }; -const getProtocolFromUri = uri => { - let {protocol} = url.parse(uri); - - if (protocol) { - protocol = protocol.slice(0, -1); - } - - return protocol; -}; - module.exports = (uri, output, opts) => { if (typeof output === 'object') { opts = output; output = null; } - const protocol = getProtocolFromUri(uri); - opts = Object.assign({ encoding: null, rejectUnauthorized: process.env.npm_config_strict_ssl !== 'false' }, opts); - const agent = caw(opts.proxy, {protocol}); - const stream = got.stream(uri, Object.assign({agent}, opts)) - .on('redirect', (response, nextOptions) => { - const redirectProtocol = getProtocolFromUri(nextOptions.href); - if (redirectProtocol && redirectProtocol !== protocol) { - nextOptions.agent = caw(opts.proxy, {protocol: redirectProtocol}); - } - }); + const stream = got.stream(uri, opts); const promise = pEvent(stream, 'response').then(res => { const encoding = opts.encoding === null ? 'buffer' : opts.encoding; diff --git a/node_modules/download/package.json b/node_modules/download/package.json index 02e4f23..5bdc955 100644 --- a/node_modules/download/package.json +++ b/node_modules/download/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "download@7.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "download@7.1.0", - "_id": "download@7.1.0", + "_from": "download@8.0.0", + "_id": "download@8.0.0", "_inBundle": false, - "_integrity": "sha512-xqnBTVd/E+GxJVrX5/eUJiLYjCGPwMpdL+jGhGU57BvtcA7wwhtHVbXBeUk51kOpW3S7Jn3BQbN9Q1R1Km2qDQ==", + "_integrity": "sha512-ASRY5QhDk7FK+XrQtQyvhpDKanLluEEQtWl/J7Lxuf/b+i8RYh997QeXvL85xitrmRKVlx9c7eTrcRdq2GS4eA==", "_location": "/download", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "download@7.1.0", + "raw": "download@8.0.0", "name": "download", "escapedName": "download", - "rawSpec": "7.1.0", + "rawSpec": "8.0.0", "saveSpec": null, - "fetchSpec": "7.1.0" + "fetchSpec": "8.0.0" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/download/-/download-7.1.0.tgz", - "_spec": "7.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/download/-/download-8.0.0.tgz", + "_spec": "8.0.0", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -37,30 +30,29 @@ }, "dependencies": { "archive-type": "^4.0.0", - "caw": "^2.0.1", "content-disposition": "^0.5.2", - "decompress": "^4.2.0", + "decompress": "^4.2.1", "ext-name": "^5.0.0", - "file-type": "^8.1.0", - "filenamify": "^2.0.0", - "get-stream": "^3.0.0", + "file-type": "^11.1.0", + "filenamify": "^3.0.0", + "get-stream": "^4.1.0", "got": "^8.3.1", - "make-dir": "^1.2.0", + "make-dir": "^2.1.0", "p-event": "^2.1.0", - "pify": "^3.0.0" + "pify": "^4.0.1" }, "description": "Download and extract files", "devDependencies": { - "ava": "*", + "ava": "^1.4.1", "is-zip": "^1.0.0", - "nock": "^9.2.5", + "nock": "^10.0.6", "path-exists": "^3.0.0", "random-buffer": "^0.1.0", - "rimraf": "^2.6.2", - "xo": "*" + "rimraf": "^3.0.0", + "xo": "^0.24.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "files": [ "index.js" @@ -82,5 +74,5 @@ "scripts": { "test": "xo && ava" }, - "version": "7.1.0" -} + "version": "8.0.0" +} \ No newline at end of file diff --git a/node_modules/download/readme.md b/node_modules/download/readme.md index dfb3fcf..892470f 100644 --- a/node_modules/download/readme.md +++ b/node_modules/download/readme.md @@ -18,28 +18,28 @@ $ npm install download const fs = require('fs'); const download = require('download'); -download('http://unicorn.com/foo.jpg', 'dist').then(() => { - console.log('done!'); -}); - -download('http://unicorn.com/foo.jpg').then(data => { - fs.writeFileSync('dist/foo.jpg', data); -}); - -download('unicorn.com/foo.jpg').pipe(fs.createWriteStream('dist/foo.jpg')); - -Promise.all([ - 'unicorn.com/foo.jpg', - 'cats.com/dancing.gif' -].map(x => download(x, 'dist'))).then(() => { - console.log('files downloaded!'); -}); +(async () => { + await download('http://unicorn.com/foo.jpg', 'dist'); + + fs.writeFileSync('dist/foo.jpg', await download('http://unicorn.com/foo.jpg')); + + download('unicorn.com/foo.jpg').pipe(fs.createWriteStream('dist/foo.jpg')); + + await Promise.all([ + 'unicorn.com/foo.jpg', + 'cats.com/dancing.gif' + ].map(url => download(url, 'dist'))); +})(); ``` +### Proxies + +To work with proxies, read the [`got documentation`](https://github.com/sindresorhus/got#proxies). + ## API -### download(url, [destination], [options]) +### download(url, destination?, options?) Returns both a `Promise` and a [Duplex stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex) with [additional events](https://github.com/sindresorhus/got#streams-1). @@ -73,14 +73,3 @@ If set to `true`, try extracting the file using [`decompress`](https://github.co Type: `string` Name of the saved file. - -##### proxy - -Type: `string` - -Proxy endpoint. - - -## License - -MIT © [Kevin Mårtensson](https://github.com/kevva) diff --git a/node_modules/duplexer3/package.json b/node_modules/duplexer3/package.json index 1b52cd3..b432c65 100644 --- a/node_modules/duplexer3/package.json +++ b/node_modules/duplexer3/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "duplexer3@0.1.4", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "duplexer3@0.1.4", "_id": "duplexer3@0.1.4", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", "_spec": "0.1.4", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Conrad Pankoff", "email": "deoxxa@fknsrs.biz", @@ -64,4 +57,4 @@ "test": "mocha -R tap" }, "version": "0.1.4" -} +} \ No newline at end of file diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json index d95253d..f151968 100644 --- a/node_modules/end-of-stream/package.json +++ b/node_modules/end-of-stream/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "end-of-stream@1.4.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "end-of-stream@1.4.1", "_id": "end-of-stream@1.4.1", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", "_spec": "1.4.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Mathias Buus", "email": "mathiasbuus@gmail.com" @@ -63,4 +56,4 @@ "test": "node test.js" }, "version": "1.4.1" -} +} \ No newline at end of file diff --git a/node_modules/escape-string-regexp/package.json b/node_modules/escape-string-regexp/package.json index a6aab24..954509e 100644 --- a/node_modules/escape-string-regexp/package.json +++ b/node_modules/escape-string-regexp/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "escape-string-regexp@1.0.5", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "escape-string-regexp@1.0.5", "_id": "escape-string-regexp@1.0.5", "_inBundle": false, @@ -30,7 +24,6 @@ ], "_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "_spec": "1.0.5", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -85,4 +78,4 @@ "test": "xo && ava" }, "version": "1.0.5" -} +} \ No newline at end of file diff --git a/node_modules/ext-list/package.json b/node_modules/ext-list/package.json index 9ee90a8..9058dc5 100644 --- a/node_modules/ext-list/package.json +++ b/node_modules/ext-list/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "ext-list@2.2.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "ext-list@2.2.2", "_id": "ext-list@2.2.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", "_spec": "2.2.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -64,4 +57,4 @@ "test": "xo && ava" }, "version": "2.2.2" -} +} \ No newline at end of file diff --git a/node_modules/ext-name/package.json b/node_modules/ext-name/package.json index b7cf593..38d34e5 100644 --- a/node_modules/ext-name/package.json +++ b/node_modules/ext-name/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "ext-name@5.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "ext-name@5.0.0", "_id": "ext-name@5.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", "_spec": "5.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -66,4 +59,4 @@ "test": "xo && ava" }, "version": "5.0.0" -} +} \ No newline at end of file diff --git a/node_modules/fd-slicer/package.json b/node_modules/fd-slicer/package.json index cc38eae..fe9f18e 100644 --- a/node_modules/fd-slicer/package.json +++ b/node_modules/fd-slicer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "fd-slicer@1.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "fd-slicer@1.1.0", "_id": "fd-slicer@1.1.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", "_spec": "1.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Andrew Kelley", "email": "superjoe30@gmail.com" @@ -65,4 +58,4 @@ "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --timeout 10000 --reporter spec --check-leaks test/test.js" }, "version": "1.1.0" -} +} \ No newline at end of file diff --git a/node_modules/file-type/index.d.ts b/node_modules/file-type/index.d.ts new file mode 100644 index 0000000..9810aa9 --- /dev/null +++ b/node_modules/file-type/index.d.ts @@ -0,0 +1,205 @@ +/// +import {Readable as ReadableStream} from 'stream'; + +declare namespace fileType { + type FileType = + | 'jpg' + | 'png' + | 'gif' + | 'webp' + | 'flif' + | 'cr2' + | 'orf' + | 'arw' + | 'dng' + | 'nef' + | 'tif' + | 'bmp' + | 'jxr' + | 'psd' + | 'zip' + | 'tar' + | 'rar' + | 'gz' + | 'bz2' + | '7z' + | 'dmg' + | 'mp4' + | 'mid' + | 'mkv' + | 'webm' + | 'mov' + | 'avi' + | 'wmv' + | 'mpg' + | 'mp2' + | 'mp3' + | 'm4a' + | 'ogg' + | 'opus' + | 'flac' + | 'wav' + | 'qcp' + | 'amr' + | 'pdf' + | 'epub' + | 'mobi' + | 'exe' + | 'swf' + | 'rtf' + | 'woff' + | 'woff2' + | 'eot' + | 'ttf' + | 'otf' + | 'ico' + | 'flv' + | 'ps' + | 'xz' + | 'sqlite' + | 'nes' + | 'crx' + | 'xpi' + | 'cab' + | 'deb' + | 'ar' + | 'rpm' + | 'Z' + | 'lz' + | 'msi' + | 'mxf' + | 'mts' + | 'wasm' + | 'blend' + | 'bpg' + | 'docx' + | 'pptx' + | 'xlsx' + | '3gp' + | '3g2' + | 'jp2' + | 'jpm' + | 'jpx' + | 'mj2' + | 'aif' + | 'odt' + | 'ods' + | 'odp' + | 'xml' + | 'heic' + | 'cur' + | 'ktx' + | 'ape' + | 'wv' + | 'asf' + | 'wma' + | 'wmv' + | 'dcm' + | 'mpc' + | 'ics' + | 'glb' + | 'pcap' + | 'dsf' + | 'lnk' + | 'alias' + | 'voc' + | 'ac3' + | 'm4a' + | 'm4b' + | 'm4p' + | 'm4v' + | 'f4a' + | 'f4b' + | 'f4p' + | 'f4v'; + + interface FileTypeResult { + /** + One of the supported [file types](https://github.com/sindresorhus/file-type#supported-file-types). + */ + ext: FileType; + + /** + The detected [MIME type](https://en.wikipedia.org/wiki/Internet_media_type). + */ + mime: string; + } + + type ReadableStreamWithFileType = ReadableStream & { + readonly fileType?: FileTypeResult; + }; +} + +declare const fileType: { + /** + Detect the file type of a `Buffer`/`Uint8Array`/`ArrayBuffer`. The file type is detected by checking the [magic number](https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the buffer. + + @param buffer - It only needs the first `.minimumBytes` bytes. The exception is detection of `docx`, `pptx`, and `xlsx` which potentially requires reading the whole file. + @returns The detected file type and MIME type or `undefined` when there was no match. + + @example + ``` + import readChunk = require('read-chunk'); + import fileType = require('file-type'); + + const buffer = readChunk.sync('unicorn.png', 0, fileType.minimumBytes); + + fileType(buffer); + //=> {ext: 'png', mime: 'image/png'} + + + // Or from a remote location: + + import * as http from 'http'; + + const url = 'https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif'; + + http.get(url, response => { + response.on('readable', () => { + const chunk = response.read(fileType.minimumBytes); + response.destroy(); + console.log(fileType(chunk)); + //=> {ext: 'gif', mime: 'image/gif'} + }); + }); + ``` + */ + (buffer: Buffer | Uint8Array | ArrayBuffer): fileType.FileTypeResult | undefined; + + /** + The minimum amount of bytes needed to detect a file type. Currently, it's 4100 bytes, but it can change, so don't hard-code it. + */ + readonly minimumBytes: number; + + /** + Detect the file type of a readable stream. + + @param readableStream - A readable stream containing a file to examine, see: [`stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable). + @returns A `Promise` which resolves to the original readable stream argument, but with an added `fileType` property, which is an object like the one returned from `fileType()`. + + @example + ``` + import * as fs from 'fs'; + import * as crypto from 'crypto'; + import fileType = require('file-type'); + + (async () => { + const read = fs.createReadStream('encrypted.enc'); + const decipher = crypto.createDecipheriv(alg, key, iv); + + const stream = await fileType.stream(read.pipe(decipher)); + + console.log(stream.fileType); + //=> {ext: 'mov', mime: 'video/quicktime'} + + const write = fs.createWriteStream(`decrypted.${stream.fileType.ext}`); + stream.pipe(write); + })(); + ``` + */ + readonly stream: ( + readableStream: ReadableStream + ) => Promise; +}; + +export = fileType; diff --git a/node_modules/file-type/index.js b/node_modules/file-type/index.js index 669fb55..a519ec8 100644 --- a/node_modules/file-type/index.js +++ b/node_modules/file-type/index.js @@ -1,14 +1,19 @@ 'use strict'; -const toBytes = s => [...s].map(c => c.charCodeAt(0)); -const xpiZipFilename = toBytes('META-INF/mozilla.rsa'); -const oxmlContentTypes = toBytes('[Content_Types].xml'); -const oxmlRels = toBytes('_rels/.rels'); +const {stringToBytes, readUInt64LE, tarHeaderChecksumMatches, uint8ArrayUtf8ByteString} = require('./util'); -module.exports = input => { - const buf = input instanceof Uint8Array ? input : new Uint8Array(input); +const xpiZipFilename = stringToBytes('META-INF/mozilla.rsa'); +const oxmlContentTypes = stringToBytes('[Content_Types].xml'); +const oxmlRels = stringToBytes('_rels/.rels'); - if (!(buf && buf.length > 1)) { - return null; +const fileType = input => { + if (!(input instanceof Uint8Array || input instanceof ArrayBuffer || Buffer.isBuffer(input))) { + throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof input}\``); + } + + const buffer = input instanceof Uint8Array ? input : new Uint8Array(input); + + if (!(buffer && buffer.length > 1)) { + return; } const check = (header, options) => { @@ -20,10 +25,10 @@ module.exports = input => { // If a bitmask is set if (options.mask) { // If header doesn't equal `buf` with bits masked off - if (header[i] !== (options.mask[i] & buf[i + options.offset])) { + if (header[i] !== (options.mask[i] & buffer[i + options.offset])) { return false; } - } else if (header[i] !== buf[i + options.offset]) { + } else if (header[i] !== buffer[i + options.offset]) { return false; } } @@ -31,7 +36,7 @@ module.exports = input => { return true; }; - const checkString = (header, options) => check(toBytes(header), options); + const checkString = (header, options) => check(stringToBytes(header), options); if (check([0xFF, 0xD8, 0xFF])) { return { @@ -68,7 +73,7 @@ module.exports = input => { }; } - // Needs to be before `tif` check + // `cr2`, `orf`, and `arw` need to be before `tif` check if ( (check([0x49, 0x49, 0x2A, 0x0]) || check([0x4D, 0x4D, 0x0, 0x2A])) && check([0x43, 0x52], {offset: 8}) @@ -79,6 +84,34 @@ module.exports = input => { }; } + if (check([0x49, 0x49, 0x52, 0x4F, 0x08, 0x00, 0x00, 0x00, 0x18])) { + return { + ext: 'orf', + mime: 'image/x-olympus-orf' + }; + } + + if (check([0x49, 0x49, 0x2A, 0x00, 0x10, 0xFB, 0x86, 0x01])) { + return { + ext: 'arw', + mime: 'image/x-sony-arw' + }; + } + + if (check([0x49, 0x49, 0x2A, 0x00, 0x08, 0x00, 0x00, 0x00, 0x2D])) { + return { + ext: 'dng', + mime: 'image/x-adobe-dng' + }; + } + + if (check([0x49, 0x49, 0x2A, 0x00, 0x30, 0x3D, 0x72, 0x01, 0x1C])) { + return { + ext: 'nef', + mime: 'image/x-nikon-nef' + }; + } + if ( check([0x49, 0x49, 0x2A, 0x0]) || check([0x4D, 0x4D, 0x0, 0x2A]) @@ -151,48 +184,61 @@ module.exports = input => { }; } - // https://github.com/file/file/blob/master/magic/Magdir/msooxml - if (check(oxmlContentTypes, {offset: 30}) || check(oxmlRels, {offset: 30})) { - const sliced = buf.subarray(4, 4 + 2000); - const nextZipHeaderIndex = arr => arr.findIndex((el, i, arr) => arr[i] === 0x50 && arr[i + 1] === 0x4B && arr[i + 2] === 0x3 && arr[i + 3] === 0x4); - const header2Pos = nextZipHeaderIndex(sliced); - - if (header2Pos !== -1) { - const slicedAgain = buf.subarray(header2Pos + 8, header2Pos + 8 + 1000); - const header3Pos = nextZipHeaderIndex(slicedAgain); + // The docx, xlsx and pptx file types extend the Office Open XML file format: + // https://en.wikipedia.org/wiki/Office_Open_XML_file_formats + // We look for: + // - one entry named '[Content_Types].xml' or '_rels/.rels', + // - one entry indicating specific type of file. + // MS Office, OpenOffice and LibreOffice may put the parts in different order, so the check should not rely on it. + const findNextZipHeaderIndex = (arr, startAt = 0) => arr.findIndex((el, i, arr) => i >= startAt && arr[i] === 0x50 && arr[i + 1] === 0x4B && arr[i + 2] === 0x3 && arr[i + 3] === 0x4); - if (header3Pos !== -1) { - const offset = 8 + header2Pos + header3Pos + 30; + let zipHeaderIndex = 0; // The first zip header was already found at index 0 + let oxmlFound = false; + let type; - if (checkString('word/', {offset})) { - return { - ext: 'docx', - mime: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' - }; - } + do { + const offset = zipHeaderIndex + 30; - if (checkString('ppt/', {offset})) { - return { - ext: 'pptx', - mime: 'application/vnd.openxmlformats-officedocument.presentationml.presentation' - }; - } + if (!oxmlFound) { + oxmlFound = (check(oxmlContentTypes, {offset}) || check(oxmlRels, {offset})); + } - if (checkString('xl/', {offset})) { - return { - ext: 'xlsx', - mime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' - }; - } + if (!type) { + if (checkString('word/', {offset})) { + type = { + ext: 'docx', + mime: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' + }; + } else if (checkString('ppt/', {offset})) { + type = { + ext: 'pptx', + mime: 'application/vnd.openxmlformats-officedocument.presentationml.presentation' + }; + } else if (checkString('xl/', {offset})) { + type = { + ext: 'xlsx', + mime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + }; } } + + if (oxmlFound && type) { + return type; + } + + zipHeaderIndex = findNextZipHeaderIndex(buffer, offset); + } while (zipHeaderIndex >= 0); + + // No more zip parts available in the buffer, but maybe we are almost certain about the type? + if (type) { + return type; } } if ( check([0x50, 0x4B]) && - (buf[2] === 0x3 || buf[2] === 0x5 || buf[2] === 0x7) && - (buf[3] === 0x4 || buf[3] === 0x6 || buf[3] === 0x8) + (buffer[2] === 0x3 || buffer[2] === 0x5 || buffer[2] === 0x7) && + (buffer[3] === 0x4 || buffer[3] === 0x6 || buffer[3] === 0x8) ) { return { ext: 'zip', @@ -200,7 +246,10 @@ module.exports = input => { }; } - if (check([0x75, 0x73, 0x74, 0x61, 0x72], {offset: 257})) { + if ( + check([0x30, 0x30, 0x30, 0x30, 0x30, 0x30], {offset: 148, mask: [0xF8, 0xF8, 0xF8, 0xF8, 0xF8, 0xF8]}) && // Valid tar checksum + tarHeaderChecksumMatches(buffer) + ) { return { ext: 'tar', mime: 'application/x-tar' @@ -209,7 +258,7 @@ module.exports = input => { if ( check([0x52, 0x61, 0x72, 0x21, 0x1A, 0x7]) && - (buf[6] === 0x0 || buf[6] === 0x1) + (buffer[6] === 0x0 || buffer[6] === 0x1) ) { return { ext: 'rar', @@ -245,25 +294,70 @@ module.exports = input => { }; } - if (check([0x33, 0x67, 0x70, 0x35]) || // 3gp5 - ( - check([0x0, 0x0, 0x0]) && check([0x66, 0x74, 0x79, 0x70], {offset: 4}) && - ( - check([0x6D, 0x70, 0x34, 0x31], {offset: 8}) || // MP41 - check([0x6D, 0x70, 0x34, 0x32], {offset: 8}) || // MP42 - check([0x69, 0x73, 0x6F, 0x6D], {offset: 8}) || // ISOM - check([0x69, 0x73, 0x6F, 0x32], {offset: 8}) || // ISO2 - check([0x6D, 0x6D, 0x70, 0x34], {offset: 8}) || // MMP4 - check([0x4D, 0x34, 0x56], {offset: 8}) || // M4V - check([0x64, 0x61, 0x73, 0x68], {offset: 8}) // DASH - ) - )) { + // `mov` format variants + if ( + check([0x66, 0x72, 0x65, 0x65], {offset: 4}) || // `free` + check([0x6D, 0x64, 0x61, 0x74], {offset: 4}) || // `mdat` MJPEG + check([0x6D, 0x6F, 0x6F, 0x76], {offset: 4}) || // `moov` + check([0x77, 0x69, 0x64, 0x65], {offset: 4}) // `wide` + ) { return { - ext: 'mp4', - mime: 'video/mp4' + ext: 'mov', + mime: 'video/quicktime' }; } + // File Type Box (https://en.wikipedia.org/wiki/ISO_base_media_file_format) + // It's not required to be first, but it's recommended to be. Almost all ISO base media files start with `ftyp` box. + // `ftyp` box must contain a brand major identifier, which must consist of ISO 8859-1 printable characters. + // Here we check for 8859-1 printable characters (for simplicity, it's a mask which also catches one non-printable character). + if ( + check([0x66, 0x74, 0x79, 0x70], {offset: 4}) && // `ftyp` + (buffer[8] & 0x60) !== 0x00 && (buffer[9] & 0x60) !== 0x00 && (buffer[10] & 0x60) !== 0x00 && (buffer[11] & 0x60) !== 0x00 // Brand major + ) { + // They all can have MIME `video/mp4` except `application/mp4` special-case which is hard to detect. + // For some cases, we're specific, everything else falls to `video/mp4` with `mp4` extension. + const brandMajor = uint8ArrayUtf8ByteString(buffer, 8, 12); + switch (brandMajor) { + case 'mif1': + return {ext: 'heic', mime: 'image/heif'}; + case 'msf1': + return {ext: 'heic', mime: 'image/heif-sequence'}; + case 'heic': case 'heix': + return {ext: 'heic', mime: 'image/heic'}; + case 'hevc': case 'hevx': + return {ext: 'heic', mime: 'image/heic-sequence'}; + case 'qt ': + return {ext: 'mov', mime: 'video/quicktime'}; + case 'M4V ': case 'M4VH': case 'M4VP': + return {ext: 'm4v', mime: 'video/x-m4v'}; + case 'M4P ': + return {ext: 'm4p', mime: 'video/mp4'}; + case 'M4B ': + return {ext: 'm4b', mime: 'audio/mp4'}; + case 'M4A ': + return {ext: 'm4a', mime: 'audio/x-m4a'}; + case 'F4V ': + return {ext: 'f4v', mime: 'video/mp4'}; + case 'F4P ': + return {ext: 'f4p', mime: 'video/mp4'}; + case 'F4A ': + return {ext: 'f4a', mime: 'audio/mp4'}; + case 'F4B ': + return {ext: 'f4b', mime: 'audio/mp4'}; + default: + if (brandMajor.startsWith('3g')) { + if (brandMajor.startsWith('3g2')) { + return {ext: '3g2', mime: 'video/3gpp2'}; + } + + return {ext: '3gp', mime: 'video/3gpp'}; + } + + return {ext: 'mp4', mime: 'video/mp4'}; + } + } + if (check([0x4D, 0x54, 0x68, 0x64])) { return { ext: 'mid', @@ -273,7 +367,7 @@ module.exports = input => { // https://github.com/threatstack/libmagic/blob/master/magic/Magdir/matroska if (check([0x1A, 0x45, 0xDF, 0xA3])) { - const sliced = buf.subarray(4, 4 + 4096); + const sliced = buffer.subarray(4, 4 + 4096); const idPos = sliced.findIndex((el, i, arr) => arr[i] === 0x42 && arr[i + 1] === 0x82); if (idPos !== -1) { @@ -296,31 +390,22 @@ module.exports = input => { } } - if (check([0x0, 0x0, 0x0, 0x14, 0x66, 0x74, 0x79, 0x70, 0x71, 0x74, 0x20, 0x20]) || - check([0x66, 0x72, 0x65, 0x65], {offset: 4}) || - check([0x66, 0x74, 0x79, 0x70, 0x71, 0x74, 0x20, 0x20], {offset: 4}) || - check([0x6D, 0x64, 0x61, 0x74], {offset: 4}) || // MJPEG - check([0x77, 0x69, 0x64, 0x65], {offset: 4})) { - return { - ext: 'mov', - mime: 'video/quicktime' - }; - } - // RIFF file format which might be AVI, WAV, QCP, etc if (check([0x52, 0x49, 0x46, 0x46])) { if (check([0x41, 0x56, 0x49], {offset: 8})) { return { ext: 'avi', - mime: 'video/x-msvideo' + mime: 'video/vnd.avi' }; } + if (check([0x57, 0x41, 0x56, 0x45], {offset: 8})) { return { ext: 'wav', - mime: 'audio/x-wav' + mime: 'audio/vnd.wave' }; } + // QLCM, QCP file if (check([0x51, 0x4C, 0x43, 0x4D], {offset: 8})) { return { @@ -330,10 +415,41 @@ module.exports = input => { } } + // ASF_Header_Object first 80 bytes if (check([0x30, 0x26, 0xB2, 0x75, 0x8E, 0x66, 0xCF, 0x11, 0xA6, 0xD9])) { + // Search for header should be in first 1KB of file. + + let offset = 30; + do { + const objectSize = readUInt64LE(buffer, offset + 16); + if (check([0x91, 0x07, 0xDC, 0xB7, 0xB7, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65], {offset})) { + // Sync on Stream-Properties-Object (B7DC0791-A9B7-11CF-8EE6-00C00C205365) + if (check([0x40, 0x9E, 0x69, 0xF8, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B], {offset: offset + 24})) { + // Found audio: + return { + ext: 'wma', + mime: 'audio/x-ms-wma' + }; + } + + if (check([0xC0, 0xEF, 0x19, 0xBC, 0x4D, 0x5B, 0xCF, 0x11, 0xA8, 0xFD, 0x00, 0x80, 0x5F, 0x5C, 0x44, 0x2B], {offset: offset + 24})) { + // Found video: + return { + ext: 'wmv', + mime: 'video/x-ms-asf' + }; + } + + break; + } + + offset += objectSize; + } while (offset + 24 <= buffer.length); + + // Default to ASF generic extension return { - ext: 'wmv', - mime: 'video/x-ms-wmv' + ext: 'asf', + mime: 'application/vnd.ms-asf' }; } @@ -347,18 +463,11 @@ module.exports = input => { }; } - if (check([0x66, 0x74, 0x79, 0x70, 0x33, 0x67], {offset: 4})) { - return { - ext: '3gp', - mime: 'video/3gpp' - }; - } - // Check for MPEG header at different starting offsets - for (let start = 0; start < 2 && start < (buf.length - 16); start++) { + for (let start = 0; start < 2 && start < (buffer.length - 16); start++) { if ( check([0x49, 0x44, 0x33], {offset: start}) || // ID3 header - check([0xFF, 0xE2], {offset: start, mask: [0xFF, 0xE2]}) // MPEG 1 or 2 Layer 3 header + check([0xFF, 0xE2], {offset: start, mask: [0xFF, 0xE6]}) // MPEG 1 or 2 Layer 3 header ) { return { ext: 'mp3', @@ -367,7 +476,7 @@ module.exports = input => { } if ( - check([0xFF, 0xE4], {offset: start, mask: [0xFF, 0xE4]}) // MPEG 1 or 2 Layer 2 header + check([0xFF, 0xE4], {offset: start, mask: [0xFF, 0xE6]}) // MPEG 1 or 2 Layer 2 header ) { return { ext: 'mp2', @@ -394,16 +503,6 @@ module.exports = input => { } } - if ( - check([0x66, 0x74, 0x79, 0x70, 0x4D, 0x34, 0x41], {offset: 4}) || - check([0x4D, 0x34, 0x41, 0x20]) - ) { - return { - ext: 'm4a', - mime: 'audio/m4a' - }; - } - // Needs to be before `ogg` check if (check([0x4F, 0x70, 0x75, 0x73, 0x48, 0x65, 0x61, 0x64], {offset: 28})) { return { @@ -423,6 +522,7 @@ module.exports = input => { mime: 'video/ogg' }; } + // If '\x01video' in header. if (check([0x01, 0x76, 0x69, 0x64, 0x65, 0x6F, 0x00], {offset: 28})) { return { @@ -430,6 +530,7 @@ module.exports = input => { mime: 'video/ogg' }; } + // If ' FLAC' in header https://xiph.org/flac/faq.html if (check([0x7F, 0x46, 0x4C, 0x41, 0x43], {offset: 28})) { return { @@ -468,13 +569,20 @@ module.exports = input => { }; } - if (check([0x4D, 0x41, 0x43, 0x20])) { + if (check([0x4D, 0x41, 0x43, 0x20])) { // 'MAC ' return { ext: 'ape', mime: 'audio/ape' }; } + if (check([0x77, 0x76, 0x70, 0x6B])) { // 'wvpk' + return { + ext: 'wv', + mime: 'audio/wavpack' + }; + } + if (check([0x23, 0x21, 0x41, 0x4D, 0x52, 0x0A])) { return { ext: 'amr', @@ -497,7 +605,7 @@ module.exports = input => { } if ( - (buf[0] === 0x43 || buf[0] === 0x46) && + (buffer[0] === 0x43 || buffer[0] === 0x46) && check([0x57, 0x53], {offset: 1}) ) { return { @@ -556,7 +664,7 @@ module.exports = input => { ) { return { ext: 'eot', - mime: 'application/octet-stream' + mime: 'application/vnd.ms-fontobject' }; } @@ -746,7 +854,7 @@ module.exports = input => { } } - if (check([0x46, 0x4F, 0x52, 0x4D, 0x00])) { + if (check([0x46, 0x4F, 0x52, 0x4D])) { return { ext: 'aif', mime: 'audio/aiff' @@ -767,43 +875,117 @@ module.exports = input => { }; } - // File Type Box (https://en.wikipedia.org/wiki/ISO_base_media_file_format) - if (check([0x66, 0x74, 0x79, 0x70], {offset: 4})) { - if (check([0x6D, 0x69, 0x66, 0x31], {offset: 8})) { - return { - ext: 'heic', - mime: 'image/heif' - }; - } + if (check([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A])) { + return { + ext: 'ktx', + mime: 'image/ktx' + }; + } - if (check([0x6D, 0x73, 0x66, 0x31], {offset: 8})) { - return { - ext: 'heic', - mime: 'image/heif-sequence' - }; - } + if (check([0x44, 0x49, 0x43, 0x4D], {offset: 128})) { + return { + ext: 'dcm', + mime: 'application/dicom' + }; + } - if (check([0x68, 0x65, 0x69, 0x63], {offset: 8}) || check([0x68, 0x65, 0x69, 0x78], {offset: 8})) { - return { - ext: 'heic', - mime: 'image/heic' - }; - } + // Musepack, SV7 + if (check([0x4D, 0x50, 0x2B])) { + return { + ext: 'mpc', + mime: 'audio/x-musepack' + }; + } - if (check([0x68, 0x65, 0x76, 0x63], {offset: 8}) || check([0x68, 0x65, 0x76, 0x78], {offset: 8})) { - return { - ext: 'heic', - mime: 'image/heic-sequence' - }; - } + // Musepack, SV8 + if (check([0x4D, 0x50, 0x43, 0x4B])) { + return { + ext: 'mpc', + mime: 'audio/x-musepack' + }; } - if (check([0xAB, 0x4B, 0x54, 0x58, 0x20, 0x31, 0x31, 0xBB, 0x0D, 0x0A, 0x1A, 0x0A])) { + if (check([0x42, 0x45, 0x47, 0x49, 0x4E, 0x3A])) { return { - ext: 'ktx', - mime: 'image/ktx' + ext: 'ics', + mime: 'text/calendar' }; } - return null; + if (check([0x67, 0x6C, 0x54, 0x46, 0x02, 0x00, 0x00, 0x00])) { + return { + ext: 'glb', + mime: 'model/gltf-binary' + }; + } + + if (check([0xD4, 0xC3, 0xB2, 0xA1]) || check([0xA1, 0xB2, 0xC3, 0xD4])) { + return { + ext: 'pcap', + mime: 'application/vnd.tcpdump.pcap' + }; + } + + // Sony DSD Stream File (DSF) + if (check([0x44, 0x53, 0x44, 0x20])) { + return { + ext: 'dsf', + mime: 'audio/x-dsf' // Non-standard + }; + } + + if (check([0x4C, 0x00, 0x00, 0x00, 0x01, 0x14, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46])) { + return { + ext: 'lnk', + mime: 'application/x.ms.shortcut' // Invented by us + }; + } + + if (check([0x62, 0x6F, 0x6F, 0x6B, 0x00, 0x00, 0x00, 0x00, 0x6D, 0x61, 0x72, 0x6B, 0x00, 0x00, 0x00, 0x00])) { + return { + ext: 'alias', + mime: 'application/x.apple.alias' // Invented by us + }; + } + + if (checkString('Creative Voice File')) { + return { + ext: 'voc', + mime: 'audio/x-voc' + }; + } + + if (check([0x0B, 0x77])) { + return { + ext: 'ac3', + mime: 'audio/vnd.dolby.dd-raw' + }; + } }; + +module.exports = fileType; + +Object.defineProperty(fileType, 'minimumBytes', {value: 4100}); + +fileType.stream = readableStream => new Promise((resolve, reject) => { + // Using `eval` to work around issues when bundling with Webpack + const stream = eval('require')('stream'); // eslint-disable-line no-eval + + readableStream.once('readable', () => { + const pass = new stream.PassThrough(); + const chunk = readableStream.read(module.exports.minimumBytes) || readableStream.read(); + try { + pass.fileType = fileType(chunk); + } catch (error) { + reject(error); + } + + readableStream.unshift(chunk); + + if (stream.pipeline) { + resolve(stream.pipeline(readableStream, pass, () => {})); + } else { + resolve(readableStream.pipe(pass)); + } + }); +}); diff --git a/node_modules/file-type/package.json b/node_modules/file-type/package.json index 1f4f82c..c3895a9 100644 --- a/node_modules/file-type/package.json +++ b/node_modules/file-type/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "file-type@8.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "file-type@8.1.0", - "_id": "file-type@8.1.0", + "_from": "file-type@11.1.0", + "_id": "file-type@11.1.0", "_inBundle": false, - "_integrity": "sha512-qyQ0pzAy78gVoJsmYeNgl8uH8yKhr1lVhW7JbzJmnlRi0I4R2eEDEJZVKG8agpDnLpacwNbDhLNG/LMdxHD2YQ==", + "_integrity": "sha512-rM0UO7Qm9K7TWTtA6AShI/t7H5BPjDeGVDaNyg9BjHAj3PysKy7+8C8D137R88jnR3rFJZQB/tFgydl5sN5m7g==", "_location": "/file-type", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "file-type@8.1.0", + "raw": "file-type@11.1.0", "name": "file-type", "escapedName": "file-type", - "rawSpec": "8.1.0", + "rawSpec": "11.1.0", "saveSpec": null, - "fetchSpec": "8.1.0" + "fetchSpec": "11.1.0" }, "_requiredBy": [ "/download" ], - "_resolved": "https://registry.npmjs.org/file-type/-/file-type-8.1.0.tgz", - "_spec": "8.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/file-type/-/file-type-11.1.0.tgz", + "_spec": "11.1.0", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -35,17 +28,22 @@ "bugs": { "url": "https://github.com/sindresorhus/file-type/issues" }, - "description": "Detect the file type of a Buffer/Uint8Array", + "description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer", "devDependencies": { - "ava": "*", - "read-chunk": "^2.0.0", - "xo": "*" + "@types/node": "^11.12.2", + "ava": "^1.4.1", + "pify": "^4.0.1", + "read-chunk": "^3.2.0", + "tsd": "^0.7.1", + "xo": "^0.24.0" }, "engines": { "node": ">=6" }, "files": [ - "index.js" + "index.js", + "index.d.ts", + "util.js" ], "homepage": "https://github.com/sindresorhus/file-type#readme", "keywords": [ @@ -74,6 +72,10 @@ "webp", "flif", "cr2", + "orf", + "arw", + "dng", + "nef", "tif", "bmp", "jxr", @@ -86,7 +88,6 @@ "7z", "dmg", "mp4", - "m4v", "mid", "mkv", "webm", @@ -143,7 +144,25 @@ "ods", "odp", "xml", - "heic" + "heic", + "wma", + "ics", + "glb", + "pcap", + "dsf", + "lnk", + "alias", + "voc", + "ac3", + "3g2", + "m4a", + "m4b", + "m4p", + "m4v", + "f4a", + "f4b", + "f4p", + "f4v" ], "license": "MIT", "name": "file-type", @@ -152,7 +171,7 @@ "url": "git+https://github.com/sindresorhus/file-type.git" }, "scripts": { - "test": "xo && ava" + "test": "xo && ava && tsd" }, - "version": "8.1.0" -} + "version": "11.1.0" +} \ No newline at end of file diff --git a/node_modules/file-type/readme.md b/node_modules/file-type/readme.md index bd04b8d..e29d5a7 100644 --- a/node_modules/file-type/readme.md +++ b/node_modules/file-type/readme.md @@ -1,8 +1,8 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) -> Detect the file type of a Buffer/Uint8Array +> Detect the file type of a Buffer/Uint8Array/ArrayBuffer -The file type is detected by checking the [magic number](http://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the buffer. +The file type is detected by checking the [magic number](https://en.wikipedia.org/wiki/Magic_number_(programming)#Magic_numbers_in_files) of the buffer. ## Install @@ -23,7 +23,8 @@ $ npm install file-type ```js const readChunk = require('read-chunk'); const fileType = require('file-type'); -const buffer = readChunk.sync('unicorn.png', 0, 4100); + +const buffer = readChunk.sync('unicorn.png', 0, fileType.minimumBytes); fileType(buffer); //=> {ext: 'png', mime: 'image/png'} @@ -34,17 +35,41 @@ Or from a remote location: ```js const http = require('http'); const fileType = require('file-type'); -const url = 'http://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif'; -http.get(url, res => { - res.once('data', chunk => { - res.destroy(); +const url = 'https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif'; + +http.get(url, response => { + response.on('readable', () => { + const chunk = response.read(fileType.minimumBytes); + response.destroy(); console.log(fileType(chunk)); //=> {ext: 'gif', mime: 'image/gif'} }); }); ``` +Or from a stream: + +```js +const fs = require('fs'); +const crypto = require('crypto'); +const fileType = require('file-type'); + +(async () => { + const read = fs.createReadStream('encrypted.enc'); + const decipher = crypto.createDecipheriv(alg, key, iv); + + const stream = await fileType.stream(read.pipe(decipher)); + + console.log(stream.fileType); + //=> {ext: 'mov', mime: 'video/quicktime'} + + const write = fs.createWriteStream(`decrypted.${stream.fileType.ext}`); + stream.pipe(write); +})(); +``` + + ##### Browser ```js @@ -68,15 +93,33 @@ xhr.send(); Returns an `Object` with: - `ext` - One of the [supported file types](#supported-file-types) -- `mime` - The [MIME type](http://en.wikipedia.org/wiki/Internet_media_type) +- `mime` - The [MIME type](https://en.wikipedia.org/wiki/Internet_media_type) -Or `null` when no match. +Or `undefined` when there is no match. #### input -Type: `Buffer` `Uint8Array` +Type: `Buffer | Uint8Array | ArrayBuffer` + +It only needs the first `.minimumBytes` bytes. The exception is detection of `docx`, `pptx`, and `xlsx` which potentially requires reading the whole file. + +### fileType.minimumBytes + +Type: `number` + +The minimum amount of bytes needed to detect a file type. Currently, it's 4100 bytes, but it can change, so don't hardcode it. + +### fileType.stream(readableStream) + +Detect the file type of a readable stream. + +Returns a `Promise` which resolves to the original readable stream argument, but with an added `fileType` property, which is an object like the one returned from `fileType()`. + +*Note:* This method is only for Node.js. + +#### readableStream -It only needs the first 4100 bytes. +Type: [`stream.Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable) ## Supported file types @@ -86,7 +129,11 @@ It only needs the first 4100 bytes. - [`gif`](https://en.wikipedia.org/wiki/GIF) - [`webp`](https://en.wikipedia.org/wiki/WebP) - [`flif`](https://en.wikipedia.org/wiki/Free_Lossless_Image_Format) -- [`cr2`](http://fileinfo.com/extension/cr2) +- [`cr2`](https://fileinfo.com/extension/cr2) - Canon Raw image file (v2) +- [`orf`](https://en.wikipedia.org/wiki/ORF_format) - Olympus Raw image file +- [`arw`](https://en.wikipedia.org/wiki/Raw_image_format#ARW) - Sony Alpha Raw image file +- [`dng`](https://en.wikipedia.org/wiki/Digital_Negative) - Adobe Digital Negative image file +- [`nef`](https://www.nikonusa.com/en/learn-and-explore/a/products-and-innovation/nikon-electronic-format-nef.html) - Nikon Electronic Format image file - [`tif`](https://en.wikipedia.org/wiki/Tagged_Image_File_Format) - [`bmp`](https://en.wikipedia.org/wiki/BMP_file_format) - [`jxr`](https://en.wikipedia.org/wiki/JPEG_XR) @@ -99,7 +146,6 @@ It only needs the first 4100 bytes. - [`7z`](https://en.wikipedia.org/wiki/7z) - [`dmg`](https://en.wikipedia.org/wiki/Apple_Disk_Image) - [`mp4`](https://en.wikipedia.org/wiki/MPEG-4_Part_14#Filename_extensions) -- [`m4v`](https://en.wikipedia.org/wiki/M4V) - [`mid`](https://en.wikipedia.org/wiki/MIDI) - [`mkv`](https://en.wikipedia.org/wiki/Matroska) - [`webm`](https://en.wikipedia.org/wiki/WebM) @@ -132,14 +178,14 @@ It only needs the first 4100 bytes. - [`ps`](https://en.wikipedia.org/wiki/Postscript) - [`xz`](https://en.wikipedia.org/wiki/Xz) - [`sqlite`](https://www.sqlite.org/fileformat2.html) -- [`nes`](http://fileinfo.com/extension/nes) +- [`nes`](https://fileinfo.com/extension/nes) - [`crx`](https://developer.chrome.com/extensions/crx) - [`xpi`](https://en.wikipedia.org/wiki/XPInstall) - [`cab`](https://en.wikipedia.org/wiki/Cabinet_(file_format)) - [`deb`](https://en.wikipedia.org/wiki/Deb_(file_format)) - [`ar`](https://en.wikipedia.org/wiki/Ar_(Unix)) -- [`rpm`](http://fileinfo.com/extension/rpm) -- [`Z`](http://fileinfo.com/extension/z) +- [`rpm`](https://fileinfo.com/extension/rpm) +- [`Z`](https://fileinfo.com/extension/z) - [`lz`](https://en.wikipedia.org/wiki/Lzip) - [`msi`](https://en.wikipedia.org/wiki/Windows_Installer) - [`mxf`](https://en.wikipedia.org/wiki/Material_Exchange_Format) @@ -150,7 +196,6 @@ It only needs the first 4100 bytes. - [`docx`](https://en.wikipedia.org/wiki/Office_Open_XML) - [`pptx`](https://en.wikipedia.org/wiki/Office_Open_XML) - [`xlsx`](https://en.wikipedia.org/wiki/Office_Open_XML) -- [`3gp`](https://en.wikipedia.org/wiki/3GP_and_3G2) - [`jp2`](https://en.wikipedia.org/wiki/JPEG_2000) - JPEG 2000 - [`jpm`](https://en.wikipedia.org/wiki/JPEG_2000) - JPEG 2000 - [`jpx`](https://en.wikipedia.org/wiki/JPEG_2000) - JPEG 2000 @@ -160,14 +205,38 @@ It only needs the first 4100 bytes. - [`ods`](https://en.wikipedia.org/wiki/OpenDocument) - OpenDocument for spreadsheets - [`odp`](https://en.wikipedia.org/wiki/OpenDocument) - OpenDocument for presentations - [`xml`](https://en.wikipedia.org/wiki/XML) -- [`heic`](http://nokiatech.github.io/heif/technical.html) +- [`heic`](https://nokiatech.github.io/heif/technical.html) - [`cur`](https://en.wikipedia.org/wiki/ICO_(file_format)) - [`ktx`](https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/) - [`ape`](https://en.wikipedia.org/wiki/Monkey%27s_Audio) - Monkey's Audio +- [`wv`](https://en.wikipedia.org/wiki/WavPack) - WavPack +- [`asf`](https://en.wikipedia.org/wiki/Advanced_Systems_Format) - Advanced Systems Format +- [`wma`](https://en.wikipedia.org/wiki/Windows_Media_Audio) - Windows Media Audio +- [`wmv`](https://en.wikipedia.org/wiki/Windows_Media_Video) - Windows Media Video +- [`dcm`](https://en.wikipedia.org/wiki/DICOM#Data_format) - DICOM Image File +- [`mpc`](https://en.wikipedia.org/wiki/Musepack) - Musepack (SV7 & SV8) +- [`ics`](https://en.wikipedia.org/wiki/ICalendar#Data_format) - iCalendar +- [`glb`](https://github.com/KhronosGroup/glTF) - GL Transmission Format +- [`pcap`](https://wiki.wireshark.org/Development/LibpcapFileFormat) - Libpcap File Format +- [`dsf`](https://dsd-guide.com/sites/default/files/white-papers/DSFFileFormatSpec_E.pdf) - Sony DSD Stream File (DSF) +- [`lnk`](https://en.wikipedia.org/wiki/Shortcut_%28computing%29#Microsoft_Windows) - Microsoft Windows file shortcut +- [`alias`](https://en.wikipedia.org/wiki/Alias_%28Mac_OS%29) - macOS Alias file +- [`voc`](https://wiki.multimedia.cx/index.php/Creative_Voice) - Creative Voice File +- [`ac3`](https://www.atsc.org/standard/a522012-digital-audio-compression-ac-3-e-ac-3-standard-12172012/) - ATSC A/52 Audio File +- [`3gp`](https://en.wikipedia.org/wiki/3GP_and_3G2#3GP) - Multimedia container format defined by the Third Generation Partnership Project (3GPP) for 3G UMTS multimedia services +- [`3g2`](https://en.wikipedia.org/wiki/3GP_and_3G2#3G2) - Multimedia container format defined by the 3GPP2 for 3G CDMA2000 multimedia services +- [`m4v`](https://en.wikipedia.org/wiki/M4V) - MPEG-4 Visual bitstreams +- [`m4p`](https://en.wikipedia.org/wiki/MPEG-4_Part_14#Filename_extensions) - MPEG-4 files with audio streams encrypted by FairPlay Digital Rights Management as were sold through the iTunes Store +- [`m4a`](https://en.wikipedia.org/wiki/M4A) - Audio-only MPEG-4 files +- [`m4b`](https://en.wikipedia.org/wiki/M4B) - Audiobook and podcast MPEG-4 files, which also contain metadata including chapter markers, images, and hyperlinks +- [`f4v`](https://en.wikipedia.org/wiki/Flash_Video) - ISO base media file format used by Adobe Flash Player +- [`f4p`](https://en.wikipedia.org/wiki/Flash_Video) - ISO base media file format protected by Adobe Access DRM used by Adobe Flash Player +- [`f4a`](https://en.wikipedia.org/wiki/Flash_Video) - Audio-only ISO base media file format used by Adobe Flash Player +- [`f4b`](https://en.wikipedia.org/wiki/Flash_Video) - Audiobook and podcast ISO base media file format used by Adobe Flash Player *SVG isn't included as it requires the whole file to be read, but you can get it [here](https://github.com/sindresorhus/is-svg).* -*Pull request welcome for additional commonly used file types.* +*Pull requests are welcome for additional commonly used file types.* ## Related diff --git a/node_modules/file-type/util.js b/node_modules/file-type/util.js new file mode 100644 index 0000000..b0f67a3 --- /dev/null +++ b/node_modules/file-type/util.js @@ -0,0 +1,58 @@ +'use strict'; + +exports.stringToBytes = string => [...string].map(character => character.charCodeAt(0)); + +const uint8ArrayUtf8ByteString = (array, start, end) => { + return String.fromCharCode(...array.slice(start, end)); +}; + +exports.readUInt64LE = (buffer, offset = 0) => { + let n = buffer[offset]; + let mul = 1; + let i = 0; + + while (++i < 8) { + mul *= 0x100; + n += buffer[offset + i] * mul; + } + + return n; +}; + +exports.tarHeaderChecksumMatches = buffer => { // Does not check if checksum field characters are valid + if (buffer.length < 512) { // `tar` header size, cannot compute checksum without it + return false; + } + + const MASK_8TH_BIT = 0x80; + + let sum = 256; // Intitalize sum, with 256 as sum of 8 spaces in checksum field + let signedBitSum = 0; // Initialize signed bit sum + + for (let i = 0; i < 148; i++) { + const byte = buffer[i]; + sum += byte; + signedBitSum += byte & MASK_8TH_BIT; // Add signed bit to signed bit sum + } + + // Skip checksum field + + for (let i = 156; i < 512; i++) { + const byte = buffer[i]; + sum += byte; + signedBitSum += byte & MASK_8TH_BIT; // Add signed bit to signed bit sum + } + + const readSum = parseInt(uint8ArrayUtf8ByteString(buffer, 148, 154), 8); // Read sum in header + + // Some implementations compute checksum incorrectly using signed bytes + return ( + // Checksum in header equals the sum we calculated + readSum === sum || + + // Checksum in header equals sum we calculated plus signed-to-unsigned delta + readSum === (sum - (signedBitSum << 1)) + ); +}; + +exports.uint8ArrayUtf8ByteString = uint8ArrayUtf8ByteString; diff --git a/node_modules/filename-reserved-regex/package.json b/node_modules/filename-reserved-regex/package.json index a2037c6..e4708f2 100644 --- a/node_modules/filename-reserved-regex/package.json +++ b/node_modules/filename-reserved-regex/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "filename-reserved-regex@2.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "filename-reserved-regex@2.0.0", "_id": "filename-reserved-regex@2.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", "_spec": "2.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -68,4 +61,4 @@ "xo": { "esnext": true } -} +} \ No newline at end of file diff --git a/node_modules/filenamify/index.d.ts b/node_modules/filenamify/index.d.ts new file mode 100644 index 0000000..9f6ce0a --- /dev/null +++ b/node_modules/filenamify/index.d.ts @@ -0,0 +1,30 @@ +export interface Options { + /** + * String to use as replacement for reserved filename characters. + * + * Cannot contain: `<` `>` `:` `"` `/` `\` `|` `?` `*` + * + * @default '!' + */ + readonly replacement?: string; +} + +/** + * Accepts a filename and returns a valid filename. + * + * @param input - A string to convert to a valid filename. + */ +export interface Filenamify { + (input: string, options?: Options): string; + + /** + * Accepts a path and returns the path with a valid filename. + * + * @param input - A string to convert to a valid path with a filename. + */ + path(input: string, options?: Options): string; +} + +declare const filenamify: Filenamify; + +export default filenamify; diff --git a/node_modules/filenamify/index.js b/node_modules/filenamify/index.js index 0f7bbd6..7993d46 100644 --- a/node_modules/filenamify/index.js +++ b/node_modules/filenamify/index.js @@ -10,13 +10,11 @@ const MAX_FILENAME_LENGTH = 100; const reControlChars = /[\u0000-\u001f\u0080-\u009f]/g; // eslint-disable-line no-control-regex const reRelativePath = /^\.+/; -const fn = (string, options) => { +const filenamify = (string, options = {}) => { if (typeof string !== 'string') { throw new TypeError('Expected a string'); } - options = options || {}; - const replacement = options.replacement === undefined ? '!' : options.replacement; if (filenameReservedRegex().test(replacement) && reControlChars.test(replacement)) { @@ -38,9 +36,10 @@ const fn = (string, options) => { return string; }; -fn.path = (pth, options) => { - pth = path.resolve(pth); - return path.join(path.dirname(pth), fn(path.basename(pth), options)); +filenamify.path = (filePath, options) => { + filePath = path.resolve(filePath); + return path.join(path.dirname(filePath), filenamify(path.basename(filePath), options)); }; -module.exports = fn; +module.exports = filenamify; +module.exports.default = filenamify; diff --git a/node_modules/filenamify/package.json b/node_modules/filenamify/package.json index 22ed971..3a8fff5 100644 --- a/node_modules/filenamify/package.json +++ b/node_modules/filenamify/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "filenamify@2.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "filenamify@2.1.0", - "_id": "filenamify@2.1.0", + "_from": "filenamify@3.0.0", + "_id": "filenamify@3.0.0", "_inBundle": false, - "_integrity": "sha512-ICw7NTT6RsDp2rnYKVd8Fu4cr6ITzGy3+u4vUujPkabyaz+03F24NWEX7fs5fp+kBonlaqPH8fAO2NM+SXt/JA==", + "_integrity": "sha512-5EFZ//MsvJgXjBAFJ+Bh2YaCTRF/VP1YOmGrgt+KJ4SFRLjI87EIdwLLuT6wQX0I4F9W41xutobzczjsOKlI/g==", "_location": "/filenamify", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "filenamify@2.1.0", + "raw": "filenamify@3.0.0", "name": "filenamify", "escapedName": "filenamify", - "rawSpec": "2.1.0", + "rawSpec": "3.0.0", "saveSpec": null, - "fetchSpec": "2.1.0" + "fetchSpec": "3.0.0" }, "_requiredBy": [ "/download" ], - "_resolved": "https://registry.npmjs.org/filenamify/-/filenamify-2.1.0.tgz", - "_spec": "2.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/filenamify/-/filenamify-3.0.0.tgz", + "_spec": "3.0.0", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -42,14 +35,16 @@ }, "description": "Convert a string to a valid safe filename", "devDependencies": { - "ava": "*", - "xo": "*" + "ava": "^1.3.1", + "tsd-check": "^0.3.0", + "xo": "^0.24.0" }, "engines": { - "node": ">=4" + "node": ">=6" }, "files": [ - "index.js" + "index.js", + "index.d.ts" ], "homepage": "https://github.com/sindresorhus/filenamify#readme", "keywords": [ @@ -72,7 +67,7 @@ "url": "git+https://github.com/sindresorhus/filenamify.git" }, "scripts": { - "test": "xo && ava" + "test": "xo && ava && tsd-check" }, - "version": "2.1.0" -} + "version": "3.0.0" +} \ No newline at end of file diff --git a/node_modules/filenamify/readme.md b/node_modules/filenamify/readme.md index abeef64..b0365e6 100644 --- a/node_modules/filenamify/readme.md +++ b/node_modules/filenamify/readme.md @@ -39,8 +39,12 @@ Accepts a path and returns the path with a valid filename. Type: `string` +A string to convert to a valid filename. + #### options +Type: `Object` + ##### replacement Type: `string`
@@ -53,6 +57,7 @@ Cannot contain: `<` `>` `:` `"` `/` `\` `|` `?` `*` ## Related +- [filenamify-cli](https://github.com/sindresorhus/filenamify-cli) - CLI for this module - [filenamify-url](https://github.com/sindresorhus/filenamify-url) - Convert a URL to a valid filename - [valid-filename](https://github.com/sindresorhus/valid-filename) - Check if a string is a valid filename - [unused-filename](https://github.com/sindresorhus/unused-filename) - Get a unused filename by appending a number if it exists diff --git a/node_modules/from2/package.json b/node_modules/from2/package.json index 78eca1f..3ea0598 100644 --- a/node_modules/from2/package.json +++ b/node_modules/from2/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "from2@2.3.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "from2@2.3.0", "_id": "from2@2.3.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", "_spec": "2.3.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Hugh Kennedy", "email": "hughskennedy@gmail.com", @@ -69,4 +62,4 @@ "test": "node test" }, "version": "2.3.0" -} +} \ No newline at end of file diff --git a/node_modules/fs-constants/package.json b/node_modules/fs-constants/package.json index 1f0333a..4872768 100644 --- a/node_modules/fs-constants/package.json +++ b/node_modules/fs-constants/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "fs-constants@1.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "fs-constants@1.0.0", "_id": "fs-constants@1.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", "_spec": "1.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Mathias Buus", "url": "@mafintosh" @@ -47,4 +40,4 @@ "url": "git+https://github.com/mafintosh/fs-constants.git" }, "version": "1.0.0" -} +} \ No newline at end of file diff --git a/node_modules/get-proxy/index.js b/node_modules/get-proxy/index.js deleted file mode 100644 index 0bc8169..0000000 --- a/node_modules/get-proxy/index.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; -const npmConf = require('npm-conf')(); - -module.exports = () => { - return process.env.HTTPS_PROXY || - process.env.https_proxy || - process.env.HTTP_PROXY || - process.env.http_proxy || - npmConf.get('https-proxy') || - npmConf.get('http-proxy') || - npmConf.get('proxy') || - null; -}; diff --git a/node_modules/get-proxy/package.json b/node_modules/get-proxy/package.json deleted file mode 100644 index c91bc42..0000000 --- a/node_modules/get-proxy/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "_args": [ - [ - "get-proxy@2.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "get-proxy@2.1.0", - "_id": "get-proxy@2.1.0", - "_inBundle": false, - "_integrity": "sha512-zmZIaQTWnNQb4R4fJUEp/FC51eZsc6EkErspy3xtIYStaq8EB/hDIWipxsal+E8rz0qD7f2sL/NA9Xee4RInJw==", - "_location": "/get-proxy", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "get-proxy@2.1.0", - "name": "get-proxy", - "escapedName": "get-proxy", - "rawSpec": "2.1.0", - "saveSpec": null, - "fetchSpec": "2.1.0" - }, - "_requiredBy": [ - "/caw" - ], - "_resolved": "https://registry.npmjs.org/get-proxy/-/get-proxy-2.1.0.tgz", - "_spec": "2.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "https://github.com/kevva" - }, - "bugs": { - "url": "https://github.com/kevva/get-proxy/issues" - }, - "dependencies": { - "npm-conf": "^1.1.0" - }, - "description": "Get configured proxy", - "devDependencies": { - "ava": "*", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/kevva/get-proxy#readme", - "keywords": [ - "env", - "get", - "proxy" - ], - "license": "MIT", - "name": "get-proxy", - "repository": { - "type": "git", - "url": "git+https://github.com/kevva/get-proxy.git" - }, - "scripts": { - "test": "xo && ava" - }, - "version": "2.1.0" -} diff --git a/node_modules/get-proxy/readme.md b/node_modules/get-proxy/readme.md deleted file mode 100644 index 927f005..0000000 --- a/node_modules/get-proxy/readme.md +++ /dev/null @@ -1,25 +0,0 @@ -# get-proxy [![Build Status](https://travis-ci.org/kevva/get-proxy.svg?branch=master)](http://travis-ci.org/kevva/get-proxy) - -> Get configured proxy - - -## Install - -``` -$ npm install get-proxy -``` - - -## Usage - -```js -const getProxy = require('get-proxy'); - -getProxy(); -//=> 'http://192.168.0.1:8080' -``` - - -## License - -MIT © [Kevin Mårtensson](https://github.com/kevva) diff --git a/node_modules/get-stream/buffer-stream.js b/node_modules/get-stream/buffer-stream.js index ae45d3d..4121c8e 100644 --- a/node_modules/get-stream/buffer-stream.js +++ b/node_modules/get-stream/buffer-stream.js @@ -1,11 +1,11 @@ 'use strict'; -const PassThrough = require('stream').PassThrough; +const {PassThrough} = require('stream'); -module.exports = opts => { - opts = Object.assign({}, opts); +module.exports = options => { + options = Object.assign({}, options); - const array = opts.array; - let encoding = opts.encoding; + const {array} = options; + let {encoding} = options; const buffer = encoding === 'buffer'; let objectMode = false; diff --git a/node_modules/get-stream/index.js b/node_modules/get-stream/index.js index 2dc5ee9..7e5584a 100644 --- a/node_modules/get-stream/index.js +++ b/node_modules/get-stream/index.js @@ -1,51 +1,50 @@ 'use strict'; +const pump = require('pump'); const bufferStream = require('./buffer-stream'); -function getStream(inputStream, opts) { +class MaxBufferError extends Error { + constructor() { + super('maxBuffer exceeded'); + this.name = 'MaxBufferError'; + } +} + +function getStream(inputStream, options) { if (!inputStream) { return Promise.reject(new Error('Expected a stream')); } - opts = Object.assign({maxBuffer: Infinity}, opts); + options = Object.assign({maxBuffer: Infinity}, options); - const maxBuffer = opts.maxBuffer; - let stream; - let clean; + const {maxBuffer} = options; - const p = new Promise((resolve, reject) => { - const error = err => { - if (err) { // null check - err.bufferedData = stream.getBufferedValue(); + let stream; + return new Promise((resolve, reject) => { + const rejectPromise = error => { + if (error) { // A null check + error.bufferedData = stream.getBufferedValue(); } - - reject(err); + reject(error); }; - stream = bufferStream(opts); - inputStream.once('error', error); - inputStream.pipe(stream); + stream = pump(inputStream, bufferStream(options), error => { + if (error) { + rejectPromise(error); + return; + } + + resolve(); + }); stream.on('data', () => { if (stream.getBufferedLength() > maxBuffer) { - reject(new Error('maxBuffer exceeded')); + rejectPromise(new MaxBufferError()); } }); - stream.once('error', error); - stream.on('end', resolve); - - clean = () => { - // some streams doesn't implement the `stream.Readable` interface correctly - if (inputStream.unpipe) { - inputStream.unpipe(stream); - } - }; - }); - - p.then(clean, clean); - - return p.then(() => stream.getBufferedValue()); + }).then(() => stream.getBufferedValue()); } module.exports = getStream; -module.exports.buffer = (stream, opts) => getStream(stream, Object.assign({}, opts, {encoding: 'buffer'})); -module.exports.array = (stream, opts) => getStream(stream, Object.assign({}, opts, {array: true})); +module.exports.buffer = (stream, options) => getStream(stream, Object.assign({}, options, {encoding: 'buffer'})); +module.exports.array = (stream, options) => getStream(stream, Object.assign({}, options, {array: true})); +module.exports.MaxBufferError = MaxBufferError; diff --git a/node_modules/get-stream/license b/node_modules/get-stream/license index 654d0bf..e7af2f7 100644 --- a/node_modules/get-stream/license +++ b/node_modules/get-stream/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License Copyright (c) Sindre Sorhus (sindresorhus.com) -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/get-stream/package.json b/node_modules/get-stream/package.json index cd88d55..c7b42a7 100644 --- a/node_modules/get-stream/package.json +++ b/node_modules/get-stream/package.json @@ -1,34 +1,25 @@ { - "_args": [ - [ - "get-stream@3.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "get-stream@3.0.0", - "_id": "get-stream@3.0.0", + "_from": "get-stream@4.1.0", + "_id": "get-stream@4.1.0", "_inBundle": false, - "_integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "_integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", "_location": "/get-stream", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "get-stream@3.0.0", + "raw": "get-stream@4.1.0", "name": "get-stream", "escapedName": "get-stream", - "rawSpec": "3.0.0", + "rawSpec": "4.1.0", "saveSpec": null, - "fetchSpec": "3.0.0" + "fetchSpec": "4.1.0" }, "_requiredBy": [ - "/cacheable-request", - "/download", - "/got" + "/download" ], - "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "_spec": "3.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "_spec": "4.1.0", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -37,6 +28,9 @@ "bugs": { "url": "https://github.com/sindresorhus/get-stream/issues" }, + "dependencies": { + "pump": "^3.0.0" + }, "description": "Get a stream as a string, buffer, or array", "devDependencies": { "ava": "*", @@ -44,7 +38,7 @@ "xo": "*" }, "engines": { - "node": ">=4" + "node": ">=6" }, "files": [ "index.js", @@ -57,7 +51,6 @@ "promise", "concat", "string", - "str", "text", "buffer", "read", @@ -66,8 +59,7 @@ "readable", "readablestream", "array", - "object", - "obj" + "object" ], "license": "MIT", "name": "get-stream", @@ -78,8 +70,5 @@ "scripts": { "test": "xo && ava" }, - "version": "3.0.0", - "xo": { - "esnext": true - } -} + "version": "4.1.0" +} \ No newline at end of file diff --git a/node_modules/get-stream/readme.md b/node_modules/get-stream/readme.md index 73b188f..b87a4d3 100644 --- a/node_modules/get-stream/readme.md +++ b/node_modules/get-stream/readme.md @@ -6,7 +6,7 @@ ## Install ``` -$ npm install --save get-stream +$ npm install get-stream ``` @@ -15,10 +15,11 @@ $ npm install --save get-stream ```js const fs = require('fs'); const getStream = require('get-stream'); -const stream = fs.createReadStream('unicorn.txt'); -getStream(stream).then(str => { - console.log(str); +(async () => { + const stream = fs.createReadStream('unicorn.txt'); + + console.log(await getStream(stream)); /* ,,))))))));, __)))))))))))))), @@ -40,7 +41,7 @@ getStream(stream).then(str => { \~\ ~~ */ -}); +})(); ``` @@ -54,6 +55,8 @@ Get the `stream` as a string. #### options +Type: `Object` + ##### encoding Type: `string`
@@ -66,7 +69,7 @@ Default: `utf8` Type: `number`
Default: `Infinity` -Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected. +Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected with a `getStream.MaxBufferError` error. ### getStream.buffer(stream, [options]) @@ -92,11 +95,14 @@ It honors both the `maxBuffer` and `encoding` options. The behavior changes slig If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error. ```js -getStream(streamThatErrorsAtTheEnd('unicorn')) - .catch(err => { - console.log(err.bufferedData); +(async () => { + try { + await getStream(streamThatErrorsAtTheEnd('unicorn')); + } catch (error) { + console.log(error.bufferedData); //=> 'unicorn' - }); + } +})() ``` diff --git a/node_modules/got/node_modules/get-stream/buffer-stream.js b/node_modules/got/node_modules/get-stream/buffer-stream.js new file mode 100644 index 0000000..ae45d3d --- /dev/null +++ b/node_modules/got/node_modules/get-stream/buffer-stream.js @@ -0,0 +1,51 @@ +'use strict'; +const PassThrough = require('stream').PassThrough; + +module.exports = opts => { + opts = Object.assign({}, opts); + + const array = opts.array; + let encoding = opts.encoding; + const buffer = encoding === 'buffer'; + let objectMode = false; + + if (array) { + objectMode = !(encoding || buffer); + } else { + encoding = encoding || 'utf8'; + } + + if (buffer) { + encoding = null; + } + + let len = 0; + const ret = []; + const stream = new PassThrough({objectMode}); + + if (encoding) { + stream.setEncoding(encoding); + } + + stream.on('data', chunk => { + ret.push(chunk); + + if (objectMode) { + len = ret.length; + } else { + len += chunk.length; + } + }); + + stream.getBufferedValue = () => { + if (array) { + return ret; + } + + return buffer ? Buffer.concat(ret, len) : ret.join(''); + }; + + stream.getBufferedLength = () => len; + + return stream; +}; diff --git a/node_modules/got/node_modules/get-stream/index.js b/node_modules/got/node_modules/get-stream/index.js new file mode 100644 index 0000000..2dc5ee9 --- /dev/null +++ b/node_modules/got/node_modules/get-stream/index.js @@ -0,0 +1,51 @@ +'use strict'; +const bufferStream = require('./buffer-stream'); + +function getStream(inputStream, opts) { + if (!inputStream) { + return Promise.reject(new Error('Expected a stream')); + } + + opts = Object.assign({maxBuffer: Infinity}, opts); + + const maxBuffer = opts.maxBuffer; + let stream; + let clean; + + const p = new Promise((resolve, reject) => { + const error = err => { + if (err) { // null check + err.bufferedData = stream.getBufferedValue(); + } + + reject(err); + }; + + stream = bufferStream(opts); + inputStream.once('error', error); + inputStream.pipe(stream); + + stream.on('data', () => { + if (stream.getBufferedLength() > maxBuffer) { + reject(new Error('maxBuffer exceeded')); + } + }); + stream.once('error', error); + stream.on('end', resolve); + + clean = () => { + // some streams doesn't implement the `stream.Readable` interface correctly + if (inputStream.unpipe) { + inputStream.unpipe(stream); + } + }; + }); + + p.then(clean, clean); + + return p.then(() => stream.getBufferedValue()); +} + +module.exports = getStream; +module.exports.buffer = (stream, opts) => getStream(stream, Object.assign({}, opts, {encoding: 'buffer'})); +module.exports.array = (stream, opts) => getStream(stream, Object.assign({}, opts, {array: true})); diff --git a/node_modules/got/node_modules/get-stream/license b/node_modules/got/node_modules/get-stream/license new file mode 100644 index 0000000..654d0bf --- /dev/null +++ b/node_modules/got/node_modules/get-stream/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/got/node_modules/get-stream/package.json b/node_modules/got/node_modules/get-stream/package.json new file mode 100644 index 0000000..702d389 --- /dev/null +++ b/node_modules/got/node_modules/get-stream/package.json @@ -0,0 +1,76 @@ +{ + "_from": "get-stream@3.0.0", + "_id": "get-stream@3.0.0", + "_inBundle": false, + "_integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "_location": "/got/get-stream", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "get-stream@3.0.0", + "name": "get-stream", + "escapedName": "get-stream", + "rawSpec": "3.0.0", + "saveSpec": null, + "fetchSpec": "3.0.0" + }, + "_requiredBy": [ + "/got" + ], + "_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "_spec": "3.0.0", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/get-stream/issues" + }, + "description": "Get a stream as a string, buffer, or array", + "devDependencies": { + "ava": "*", + "into-stream": "^3.0.0", + "xo": "*" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js", + "buffer-stream.js" + ], + "homepage": "https://github.com/sindresorhus/get-stream#readme", + "keywords": [ + "get", + "stream", + "promise", + "concat", + "string", + "str", + "text", + "buffer", + "read", + "data", + "consume", + "readable", + "readablestream", + "array", + "object", + "obj" + ], + "license": "MIT", + "name": "get-stream", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/get-stream.git" + }, + "scripts": { + "test": "xo && ava" + }, + "version": "3.0.0", + "xo": { + "esnext": true + } +} \ No newline at end of file diff --git a/node_modules/got/node_modules/get-stream/readme.md b/node_modules/got/node_modules/get-stream/readme.md new file mode 100644 index 0000000..73b188f --- /dev/null +++ b/node_modules/got/node_modules/get-stream/readme.md @@ -0,0 +1,117 @@ +# get-stream [![Build Status](https://travis-ci.org/sindresorhus/get-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/get-stream) + +> Get a stream as a string, buffer, or array + + +## Install + +``` +$ npm install --save get-stream +``` + + +## Usage + +```js +const fs = require('fs'); +const getStream = require('get-stream'); +const stream = fs.createReadStream('unicorn.txt'); + +getStream(stream).then(str => { + console.log(str); + /* + ,,))))))));, + __)))))))))))))), + \|/ -\(((((''''((((((((. + -*-==//////(('' . `)))))), + /|\ ))| o ;-. '((((( ,(, + ( `| / ) ;))))' ,_))^;(~ + | | | ,))((((_ _____------~~~-. %,;(;(>';'~ + o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~ + ; ''''```` `: `:::|\,__,%% );`'; ~ + | _ ) / `:|`----' `-' + ______/\/~ | / / + /~;;.____/;;' / ___--,-( `;;;/ + / // _;______;'------~~~~~ /;;/\ / + // | | / ; \;;,\ + (<_ | ; /',/-----' _> + \_| ||_ //~;~~~~~~~~~ + `\_| (,~~ + \~\ + ~~ + */ +}); +``` + + +## API + +The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode. + +### getStream(stream, [options]) + +Get the `stream` as a string. + +#### options + +##### encoding + +Type: `string`
+Default: `utf8` + +[Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream. + +##### maxBuffer + +Type: `number`
+Default: `Infinity` + +Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected. + +### getStream.buffer(stream, [options]) + +Get the `stream` as a buffer. + +It honors the `maxBuffer` option as above, but it refers to byte length rather than string length. + +### getStream.array(stream, [options]) + +Get the `stream` as an array of values. + +It honors both the `maxBuffer` and `encoding` options. The behavior changes slightly based on the encoding chosen: + +- When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/) and collects values emitted from `stream` unmodified. In this case `maxBuffer` refers to the number of items in the array (not the sum of their sizes). + +- When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array. + +- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array. + + +## Errors + +If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error. + +```js +getStream(streamThatErrorsAtTheEnd('unicorn')) + .catch(err => { + console.log(err.bufferedData); + //=> 'unicorn' + }); +``` + + +## FAQ + +### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)? + +This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package. + + +## Related + +- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/got/node_modules/pify/index.js b/node_modules/got/node_modules/pify/index.js new file mode 100644 index 0000000..1dee43a --- /dev/null +++ b/node_modules/got/node_modules/pify/index.js @@ -0,0 +1,84 @@ +'use strict'; + +const processFn = (fn, opts) => function () { + const P = opts.promiseModule; + const args = new Array(arguments.length); + + for (let i = 0; i < arguments.length; i++) { + args[i] = arguments[i]; + } + + return new P((resolve, reject) => { + if (opts.errorFirst) { + args.push(function (err, result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 1; i < arguments.length; i++) { + results[i - 1] = arguments[i]; + } + + if (err) { + results.unshift(err); + reject(results); + } else { + resolve(results); + } + } else if (err) { + reject(err); + } else { + resolve(result); + } + }); + } else { + args.push(function (result) { + if (opts.multiArgs) { + const results = new Array(arguments.length - 1); + + for (let i = 0; i < arguments.length; i++) { + results[i] = arguments[i]; + } + + resolve(results); + } else { + resolve(result); + } + }); + } + + fn.apply(this, args); + }); +}; + +module.exports = (obj, opts) => { + opts = Object.assign({ + exclude: [/.+(Sync|Stream)$/], + errorFirst: true, + promiseModule: Promise + }, opts); + + const filter = key => { + const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); + return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + }; + + let ret; + if (typeof obj === 'function') { + ret = function () { + if (opts.excludeMain) { + return obj.apply(this, arguments); + } + + return processFn(obj, opts).apply(this, arguments); + }; + } else { + ret = Object.create(Object.getPrototypeOf(obj)); + } + + for (const key in obj) { // eslint-disable-line guard-for-in + const x = obj[key]; + ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + } + + return ret; +}; diff --git a/node_modules/caw/license b/node_modules/got/node_modules/pify/license similarity index 92% rename from node_modules/caw/license rename to node_modules/got/node_modules/pify/license index db6bc32..e7af2f7 100644 --- a/node_modules/caw/license +++ b/node_modules/got/node_modules/pify/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Kevin Mårtensson (github.com/kevva) +Copyright (c) Sindre Sorhus (sindresorhus.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/node_modules/got/node_modules/pify/package.json b/node_modules/got/node_modules/pify/package.json new file mode 100644 index 0000000..bf03fdf --- /dev/null +++ b/node_modules/got/node_modules/pify/package.json @@ -0,0 +1,79 @@ +{ + "_from": "pify@3.0.0", + "_id": "pify@3.0.0", + "_inBundle": false, + "_integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "_location": "/got/pify", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "pify@3.0.0", + "name": "pify", + "escapedName": "pify", + "rawSpec": "3.0.0", + "saveSpec": null, + "fetchSpec": "3.0.0" + }, + "_requiredBy": [ + "/got" + ], + "_resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "_spec": "3.0.0", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bugs": { + "url": "https://github.com/sindresorhus/pify/issues" + }, + "description": "Promisify a callback-style function", + "devDependencies": { + "ava": "*", + "pinkie-promise": "^2.0.0", + "v8-natives": "^1.0.0", + "xo": "*" + }, + "engines": { + "node": ">=4" + }, + "files": [ + "index.js" + ], + "homepage": "https://github.com/sindresorhus/pify#readme", + "keywords": [ + "promise", + "promises", + "promisify", + "all", + "denodify", + "denodeify", + "callback", + "cb", + "node", + "then", + "thenify", + "convert", + "transform", + "wrap", + "wrapper", + "bind", + "to", + "async", + "await", + "es2015", + "bluebird" + ], + "license": "MIT", + "name": "pify", + "repository": { + "type": "git", + "url": "git+https://github.com/sindresorhus/pify.git" + }, + "scripts": { + "optimization-test": "node --allow-natives-syntax optimization-test.js", + "test": "xo && ava && npm run optimization-test" + }, + "version": "3.0.0" +} \ No newline at end of file diff --git a/node_modules/got/node_modules/pify/readme.md b/node_modules/got/node_modules/pify/readme.md new file mode 100644 index 0000000..376ca4e --- /dev/null +++ b/node_modules/got/node_modules/pify/readme.md @@ -0,0 +1,131 @@ +# pify [![Build Status](https://travis-ci.org/sindresorhus/pify.svg?branch=master)](https://travis-ci.org/sindresorhus/pify) + +> Promisify a callback-style function + + +## Install + +``` +$ npm install --save pify +``` + + +## Usage + +```js +const fs = require('fs'); +const pify = require('pify'); + +// Promisify a single function +pify(fs.readFile)('package.json', 'utf8').then(data => { + console.log(JSON.parse(data).name); + //=> 'pify' +}); + +// Promisify all methods in a module +pify(fs).readFile('package.json', 'utf8').then(data => { + console.log(JSON.parse(data).name); + //=> 'pify' +}); +``` + + +## API + +### pify(input, [options]) + +Returns a `Promise` wrapped version of the supplied function or module. + +#### input + +Type: `Function` `Object` + +Callback-style function or module whose methods you want to promisify. + +#### options + +##### multiArgs + +Type: `boolean`
+Default: `false` + +By default, the promisified function will only return the second argument from the callback, which works fine for most APIs. This option can be useful for modules like `request` that return multiple arguments. Turning this on will make it return an array of all arguments from the callback, excluding the error argument, instead of just the second argument. This also applies to rejections, where it returns an array of all the callback arguments, including the error. + +```js +const request = require('request'); +const pify = require('pify'); + +pify(request, {multiArgs: true})('https://sindresorhus.com').then(result => { + const [httpResponse, body] = result; +}); +``` + +##### include + +Type: `string[]` `RegExp[]` + +Methods in a module to promisify. Remaining methods will be left untouched. + +##### exclude + +Type: `string[]` `RegExp[]`
+Default: `[/.+(Sync|Stream)$/]` + +Methods in a module **not** to promisify. Methods with names ending with `'Sync'` are excluded by default. + +##### excludeMain + +Type: `boolean`
+Default: `false` + +If given module is a function itself, it will be promisified. Turn this option on if you want to promisify only methods of the module. + +```js +const pify = require('pify'); + +function fn() { + return true; +} + +fn.method = (data, callback) => { + setImmediate(() => { + callback(null, data); + }); +}; + +// Promisify methods but not `fn()` +const promiseFn = pify(fn, {excludeMain: true}); + +if (promiseFn()) { + promiseFn.method('hi').then(data => { + console.log(data); + }); +} +``` + +##### errorFirst + +Type: `boolean`
+Default: `true` + +Whether the callback has an error as the first argument. You'll want to set this to `false` if you're dealing with an API that doesn't have an error as the first argument, like `fs.exists()`, some browser APIs, Chrome Extension APIs, etc. + +##### promiseModule + +Type: `Function` + +Custom promise module to use instead of the native one. + +Check out [`pinkie-promise`](https://github.com/floatdrop/pinkie-promise) if you need a tiny promise polyfill. + + +## Related + +- [p-event](https://github.com/sindresorhus/p-event) - Promisify an event by waiting for it to be emitted +- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently +- [More…](https://github.com/sindresorhus/promise-fun) + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/got/package.json b/node_modules/got/package.json index 885cc3c..0a64059 100644 --- a/node_modules/got/package.json +++ b/node_modules/got/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "got@8.3.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "got@8.3.2", "_id": "got@8.3.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/got/-/got-8.3.2.tgz", "_spec": "8.3.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "ava": { "concurrency": 4 }, @@ -127,4 +120,4 @@ "test": "xo && nyc ava" }, "version": "8.3.2" -} +} \ No newline at end of file diff --git a/node_modules/graceful-fs/graceful-fs.js b/node_modules/graceful-fs/graceful-fs.js index 3e1a9eb..8c75ee2 100644 --- a/node_modules/graceful-fs/graceful-fs.js +++ b/node_modules/graceful-fs/graceful-fs.js @@ -234,22 +234,24 @@ function patch (fs) { }) // legacy names + var FileReadStream = ReadStream Object.defineProperty(fs, 'FileReadStream', { get: function () { - return ReadStream + return FileReadStream }, set: function (val) { - ReadStream = val + FileReadStream = val }, enumerable: true, configurable: true }) + var FileWriteStream = WriteStream Object.defineProperty(fs, 'FileWriteStream', { get: function () { - return WriteStream + return FileWriteStream }, set: function (val) { - WriteStream = val + FileWriteStream = val }, enumerable: true, configurable: true diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json index 5fc30ef..8667683 100644 --- a/node_modules/graceful-fs/package.json +++ b/node_modules/graceful-fs/package.json @@ -1,32 +1,30 @@ { - "_args": [ - [ - "graceful-fs@4.2.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "graceful-fs@4.2.2", - "_id": "graceful-fs@4.2.2", + "_from": "graceful-fs@4.2.3", + "_id": "graceful-fs@4.2.3", "_inBundle": false, - "_integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", + "_integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", "_location": "/graceful-fs", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "graceful-fs@4.2.2", + "raw": "graceful-fs@4.2.3", "name": "graceful-fs", "escapedName": "graceful-fs", - "rawSpec": "4.2.2", + "rawSpec": "4.2.3", "saveSpec": null, - "fetchSpec": "4.2.2" + "fetchSpec": "4.2.3" }, "_requiredBy": [ - "/decompress" + "/@jest/core", + "/@jest/transform", + "/decompress", + "/jest-haste-map", + "/jest-runner", + "/jest-runtime" ], - "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.2.tgz", - "_spec": "4.2.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", + "_spec": "4.2.3", "bugs": { "url": "https://github.com/isaacs/node-graceful-fs/issues" }, @@ -78,5 +76,5 @@ "preversion": "npm test", "test": "node test.js | tap -" }, - "version": "4.2.2" -} + "version": "4.2.3" +} \ No newline at end of file diff --git a/node_modules/graceful-readlink/package.json b/node_modules/graceful-readlink/package.json index 898de5f..bc20eb0 100644 --- a/node_modules/graceful-readlink/package.json +++ b/node_modules/graceful-readlink/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "graceful-readlink@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "graceful-readlink@1.0.1", "_id": "graceful-readlink@1.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "zhiyelee" }, @@ -50,4 +43,4 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/has-symbol-support-x/package.json b/node_modules/has-symbol-support-x/package.json index c835c9a..4e0bae9 100644 --- a/node_modules/has-symbol-support-x/package.json +++ b/node_modules/has-symbol-support-x/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "has-symbol-support-x@1.4.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "has-symbol-support-x@1.4.2", "_id": "has-symbol-support-x@1.4.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", "_spec": "1.4.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Graham Fairweather", "email": "xotic750@gmail.com" @@ -111,4 +104,4 @@ "uglify": "uglifyjs lib/has-symbol-support-x.js -o lib/has-symbol-support-x.min.js --config-file .uglifyjsrc.json" }, "version": "1.4.2" -} +} \ No newline at end of file diff --git a/node_modules/has-to-string-tag-x/package.json b/node_modules/has-to-string-tag-x/package.json index 0f3846e..43dc179 100644 --- a/node_modules/has-to-string-tag-x/package.json +++ b/node_modules/has-to-string-tag-x/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "has-to-string-tag-x@1.4.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "has-to-string-tag-x@1.4.1", "_id": "has-to-string-tag-x@1.4.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", "_spec": "1.4.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Graham Fairweather", "email": "xotic750@gmail.com" @@ -112,4 +105,4 @@ "uglify": "uglifyjs lib/has-to-string-tag-x.js -o lib/has-to-string-tag-x.min.js --config-file .uglifyjsrc.json" }, "version": "1.4.1" -} +} \ No newline at end of file diff --git a/node_modules/http-cache-semantics/package.json b/node_modules/http-cache-semantics/package.json index d95d72f..ae74cc8 100644 --- a/node_modules/http-cache-semantics/package.json +++ b/node_modules/http-cache-semantics/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "http-cache-semantics@3.8.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "http-cache-semantics@3.8.1", "_id": "http-cache-semantics@3.8.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", "_spec": "3.8.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kornel Lesiński", "email": "kornel@geekhood.net", @@ -58,4 +51,4 @@ "test": "npm run compile; mocha node4/test" }, "version": "3.8.1" -} +} \ No newline at end of file diff --git a/node_modules/ieee754/package.json b/node_modules/ieee754/package.json index 62184a9..a1e7fdf 100644 --- a/node_modules/ieee754/package.json +++ b/node_modules/ieee754/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "ieee754@1.1.13", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "ieee754@1.1.13", "_id": "ieee754@1.1.13", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", "_spec": "1.1.13", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Feross Aboukhadijeh", "email": "feross@feross.org", @@ -69,4 +62,4 @@ "test-node": "tape test/*.js" }, "version": "1.1.13" -} +} \ No newline at end of file diff --git a/node_modules/inherits/package.json b/node_modules/inherits/package.json index d2acdf1..3868ee7 100644 --- a/node_modules/inherits/package.json +++ b/node_modules/inherits/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "inherits@2.0.4", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "inherits@2.0.4", "_id": "inherits@2.0.4", "_inBundle": false, @@ -28,7 +22,6 @@ ], "_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "_spec": "2.0.4", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "browser": "./inherits_browser.js", "bugs": { "url": "https://github.com/isaacs/inherits/issues" @@ -63,4 +56,4 @@ "test": "tap" }, "version": "2.0.4" -} +} \ No newline at end of file diff --git a/node_modules/ini/README.md b/node_modules/ini/README.md deleted file mode 100644 index 33df258..0000000 --- a/node_modules/ini/README.md +++ /dev/null @@ -1,102 +0,0 @@ -An ini format parser and serializer for node. - -Sections are treated as nested objects. Items before the first -heading are saved on the object directly. - -## Usage - -Consider an ini-file `config.ini` that looks like this: - - ; this comment is being ignored - scope = global - - [database] - user = dbuser - password = dbpassword - database = use_this_database - - [paths.default] - datadir = /var/lib/data - array[] = first value - array[] = second value - array[] = third value - -You can read, manipulate and write the ini-file like so: - - var fs = require('fs') - , ini = require('ini') - - var config = ini.parse(fs.readFileSync('./config.ini', 'utf-8')) - - config.scope = 'local' - config.database.database = 'use_another_database' - config.paths.default.tmpdir = '/tmp' - delete config.paths.default.datadir - config.paths.default.array.push('fourth value') - - fs.writeFileSync('./config_modified.ini', ini.stringify(config, { section: 'section' })) - -This will result in a file called `config_modified.ini` being written -to the filesystem with the following content: - - [section] - scope=local - [section.database] - user=dbuser - password=dbpassword - database=use_another_database - [section.paths.default] - tmpdir=/tmp - array[]=first value - array[]=second value - array[]=third value - array[]=fourth value - - -## API - -### decode(inistring) - -Decode the ini-style formatted `inistring` into a nested object. - -### parse(inistring) - -Alias for `decode(inistring)` - -### encode(object, [options]) - -Encode the object `object` into an ini-style formatted string. If the -optional parameter `section` is given, then all top-level properties -of the object are put into this section and the `section`-string is -prepended to all sub-sections, see the usage example above. - -The `options` object may contain the following: - -* `section` A string which will be the first `section` in the encoded - ini data. Defaults to none. -* `whitespace` Boolean to specify whether to put whitespace around the - `=` character. By default, whitespace is omitted, to be friendly to - some persnickety old parsers that don't tolerate it well. But some - find that it's more human-readable and pretty with the whitespace. - -For backwards compatibility reasons, if a `string` options is passed -in, then it is assumed to be the `section` value. - -### stringify(object, [options]) - -Alias for `encode(object, [options])` - -### safe(val) - -Escapes the string `val` such that it is safe to be used as a key or -value in an ini-file. Basically escapes quotes. For example - - ini.safe('"unsafe string"') - -would result in - - "\"unsafe string\"" - -### unsafe(val) - -Unescapes the string `val` diff --git a/node_modules/ini/ini.js b/node_modules/ini/ini.js deleted file mode 100644 index 590195d..0000000 --- a/node_modules/ini/ini.js +++ /dev/null @@ -1,194 +0,0 @@ -exports.parse = exports.decode = decode - -exports.stringify = exports.encode = encode - -exports.safe = safe -exports.unsafe = unsafe - -var eol = typeof process !== 'undefined' && - process.platform === 'win32' ? '\r\n' : '\n' - -function encode (obj, opt) { - var children = [] - var out = '' - - if (typeof opt === 'string') { - opt = { - section: opt, - whitespace: false - } - } else { - opt = opt || {} - opt.whitespace = opt.whitespace === true - } - - var separator = opt.whitespace ? ' = ' : '=' - - Object.keys(obj).forEach(function (k, _, __) { - var val = obj[k] - if (val && Array.isArray(val)) { - val.forEach(function (item) { - out += safe(k + '[]') + separator + safe(item) + '\n' - }) - } else if (val && typeof val === 'object') { - children.push(k) - } else { - out += safe(k) + separator + safe(val) + eol - } - }) - - if (opt.section && out.length) { - out = '[' + safe(opt.section) + ']' + eol + out - } - - children.forEach(function (k, _, __) { - var nk = dotSplit(k).join('\\.') - var section = (opt.section ? opt.section + '.' : '') + nk - var child = encode(obj[k], { - section: section, - whitespace: opt.whitespace - }) - if (out.length && child.length) { - out += eol - } - out += child - }) - - return out -} - -function dotSplit (str) { - return str.replace(/\1/g, '\u0002LITERAL\\1LITERAL\u0002') - .replace(/\\\./g, '\u0001') - .split(/\./).map(function (part) { - return part.replace(/\1/g, '\\.') - .replace(/\2LITERAL\\1LITERAL\2/g, '\u0001') - }) -} - -function decode (str) { - var out = {} - var p = out - var section = null - // section |key = value - var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i - var lines = str.split(/[\r\n]+/g) - - lines.forEach(function (line, _, __) { - if (!line || line.match(/^\s*[;#]/)) return - var match = line.match(re) - if (!match) return - if (match[1] !== undefined) { - section = unsafe(match[1]) - p = out[section] = out[section] || {} - return - } - var key = unsafe(match[2]) - var value = match[3] ? unsafe(match[4]) : true - switch (value) { - case 'true': - case 'false': - case 'null': value = JSON.parse(value) - } - - // Convert keys with '[]' suffix to an array - if (key.length > 2 && key.slice(-2) === '[]') { - key = key.substring(0, key.length - 2) - if (!p[key]) { - p[key] = [] - } else if (!Array.isArray(p[key])) { - p[key] = [p[key]] - } - } - - // safeguard against resetting a previously defined - // array by accidentally forgetting the brackets - if (Array.isArray(p[key])) { - p[key].push(value) - } else { - p[key] = value - } - }) - - // {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}} - // use a filter to return the keys that have to be deleted. - Object.keys(out).filter(function (k, _, __) { - if (!out[k] || - typeof out[k] !== 'object' || - Array.isArray(out[k])) { - return false - } - // see if the parent section is also an object. - // if so, add it to that, and mark this one for deletion - var parts = dotSplit(k) - var p = out - var l = parts.pop() - var nl = l.replace(/\\\./g, '.') - parts.forEach(function (part, _, __) { - if (!p[part] || typeof p[part] !== 'object') p[part] = {} - p = p[part] - }) - if (p === out && nl === l) { - return false - } - p[nl] = out[k] - return true - }).forEach(function (del, _, __) { - delete out[del] - }) - - return out -} - -function isQuoted (val) { - return (val.charAt(0) === '"' && val.slice(-1) === '"') || - (val.charAt(0) === "'" && val.slice(-1) === "'") -} - -function safe (val) { - return (typeof val !== 'string' || - val.match(/[=\r\n]/) || - val.match(/^\[/) || - (val.length > 1 && - isQuoted(val)) || - val !== val.trim()) - ? JSON.stringify(val) - : val.replace(/;/g, '\\;').replace(/#/g, '\\#') -} - -function unsafe (val, doUnesc) { - val = (val || '').trim() - if (isQuoted(val)) { - // remove the single quotes before calling JSON.parse - if (val.charAt(0) === "'") { - val = val.substr(1, val.length - 2) - } - try { val = JSON.parse(val) } catch (_) {} - } else { - // walk the val to find the first not-escaped ; character - var esc = false - var unesc = '' - for (var i = 0, l = val.length; i < l; i++) { - var c = val.charAt(i) - if (esc) { - if ('\\;#'.indexOf(c) !== -1) { - unesc += c - } else { - unesc += '\\' + c - } - esc = false - } else if (';#'.indexOf(c) !== -1) { - break - } else if (c === '\\') { - esc = true - } else { - unesc += c - } - } - if (esc) { - unesc += '\\' - } - return unesc.trim() - } - return val -} diff --git a/node_modules/ini/package.json b/node_modules/ini/package.json deleted file mode 100644 index 95dbf13..0000000 --- a/node_modules/ini/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_args": [ - [ - "ini@1.3.5", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "ini@1.3.5", - "_id": "ini@1.3.5", - "_inBundle": false, - "_integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "_location": "/ini", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "ini@1.3.5", - "name": "ini", - "escapedName": "ini", - "rawSpec": "1.3.5", - "saveSpec": null, - "fetchSpec": "1.3.5" - }, - "_requiredBy": [ - "/config-chain" - ], - "_resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "_spec": "1.3.5", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/ini/issues" - }, - "dependencies": {}, - "description": "An ini encoder/decoder for node", - "devDependencies": { - "standard": "^10.0.3", - "tap": "^10.7.3 || 11" - }, - "engines": { - "node": "*" - }, - "files": [ - "ini.js" - ], - "homepage": "https://github.com/isaacs/ini#readme", - "license": "ISC", - "main": "ini.js", - "name": "ini", - "repository": { - "type": "git", - "url": "git://github.com/isaacs/ini.git" - }, - "scripts": { - "postpublish": "git push origin --all; git push origin --tags", - "postversion": "npm publish", - "pretest": "standard ini.js", - "preversion": "npm test", - "test": "tap test/*.js --100 -J" - }, - "version": "1.3.5" -} diff --git a/node_modules/into-stream/package.json b/node_modules/into-stream/package.json index 488d77d..1ef2fd9 100644 --- a/node_modules/into-stream/package.json +++ b/node_modules/into-stream/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "into-stream@3.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "into-stream@3.1.0", "_id": "into-stream@3.1.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", "_spec": "3.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -82,4 +75,4 @@ "test": "xo && ava" }, "version": "3.1.0" -} +} \ No newline at end of file diff --git a/node_modules/is-natural-number/package.json b/node_modules/is-natural-number/package.json index 8baf5c0..f32c1dc 100644 --- a/node_modules/is-natural-number/package.json +++ b/node_modules/is-natural-number/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "is-natural-number@4.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "is-natural-number@4.0.1", "_id": "is-natural-number@4.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", "_spec": "4.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Shinnosuke Watanabe", "url": "https://github.com/shinnn" @@ -74,4 +67,4 @@ "test": "node --strong_mode --throw-deprecation --track-heap-objects test.js | tap-dot" }, "version": "4.0.1" -} +} \ No newline at end of file diff --git a/node_modules/is-object/package.json b/node_modules/is-object/package.json index e5c9f7b..1e20dda 100644 --- a/node_modules/is-object/package.json +++ b/node_modules/is-object/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "is-object@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "is-object@1.0.1", "_id": "is-object@1.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Raynos", "email": "raynos2@gmail.com" @@ -90,4 +83,4 @@ ] }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/is-plain-obj/package.json b/node_modules/is-plain-obj/package.json index 600f642..4360c76 100644 --- a/node_modules/is-plain-obj/package.json +++ b/node_modules/is-plain-obj/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "is-plain-obj@1.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "is-plain-obj@1.1.0", "_id": "is-plain-obj@1.1.0", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", "_spec": "1.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -69,4 +62,4 @@ "test": "node test.js" }, "version": "1.1.0" -} +} \ No newline at end of file diff --git a/node_modules/is-retry-allowed/package.json b/node_modules/is-retry-allowed/package.json index e8a297b..4d57c7d 100644 --- a/node_modules/is-retry-allowed/package.json +++ b/node_modules/is-retry-allowed/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "is-retry-allowed@1.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "is-retry-allowed@1.2.0", "_id": "is-retry-allowed@1.2.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz", "_spec": "1.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Vsevolod Strukchinsky", "email": "floatdrop@gmail.com", @@ -59,4 +52,4 @@ "test": "xo && ava" }, "version": "1.2.0" -} +} \ No newline at end of file diff --git a/node_modules/is-stream/package.json b/node_modules/is-stream/package.json index 09ecac6..8b4d752 100644 --- a/node_modules/is-stream/package.json +++ b/node_modules/is-stream/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "is-stream@1.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "is-stream@1.1.0", "_id": "is-stream@1.1.0", "_inBundle": false, @@ -29,7 +23,6 @@ ], "_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "_spec": "1.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -73,4 +66,4 @@ "test": "xo && ava" }, "version": "1.1.0" -} +} \ No newline at end of file diff --git a/node_modules/isarray/package.json b/node_modules/isarray/package.json index e49269b..be36b48 100644 --- a/node_modules/isarray/package.json +++ b/node_modules/isarray/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "isarray@1.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "isarray@1.0.0", "_id": "isarray@1.0.0", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "_spec": "1.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Julian Gruber", "email": "mail@juliangruber.com", @@ -74,4 +67,4 @@ ] }, "version": "1.0.0" -} +} \ No newline at end of file diff --git a/node_modules/isurl/package.json b/node_modules/isurl/package.json index 70654a4..22cffaa 100644 --- a/node_modules/isurl/package.json +++ b/node_modules/isurl/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "isurl@1.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "isurl@1.0.0", "_id": "isurl@1.0.0", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", "_spec": "1.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Steven Vachon", "email": "contact@svachon.com", @@ -69,4 +62,4 @@ "test": "mocha test --check-leaks --bail" }, "version": "1.0.0" -} +} \ No newline at end of file diff --git a/node_modules/json-buffer/package.json b/node_modules/json-buffer/package.json index c58e903..bacdc35 100644 --- a/node_modules/json-buffer/package.json +++ b/node_modules/json-buffer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "json-buffer@3.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "json-buffer@3.0.0", "_id": "json-buffer@3.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", "_spec": "3.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Dominic Tarr", "email": "dominic.tarr@gmail.com", @@ -66,4 +59,4 @@ ] }, "version": "3.0.0" -} +} \ No newline at end of file diff --git a/node_modules/keyv/package.json b/node_modules/keyv/package.json index 157a909..8ab0c58 100644 --- a/node_modules/keyv/package.json +++ b/node_modules/keyv/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "keyv@3.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "keyv@3.0.0", "_id": "keyv@3.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", "_spec": "3.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Luke Childs", "email": "lukechilds123@gmail.com", @@ -78,4 +71,4 @@ "xo": { "extends": "xo-lukechilds" } -} +} \ No newline at end of file diff --git a/node_modules/lowercase-keys/package.json b/node_modules/lowercase-keys/package.json index 33830b9..372f9f5 100644 --- a/node_modules/lowercase-keys/package.json +++ b/node_modules/lowercase-keys/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "lowercase-keys@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "lowercase-keys@1.0.1", "_id": "lowercase-keys@1.0.1", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -68,4 +61,4 @@ "test": "ava" }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/make-dir/index.d.ts b/node_modules/make-dir/index.d.ts new file mode 100644 index 0000000..3e1529c --- /dev/null +++ b/node_modules/make-dir/index.d.ts @@ -0,0 +1,39 @@ +/// +import * as fs from 'fs'; + +export interface Options { + /** + * Directory [permissions](https://x-team.com/blog/file-system-permissions-umask-node-js/). + * + * @default 0o777 & (~process.umask()) + */ + readonly mode?: number; + + /** + * Use a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). + * + * Using a custom `fs` implementation will block the use of the native `recursive` option if `fs.mkdir` or `fs.mkdirSync` is not the native function. + * + * @default require('fs') + */ + readonly fs?: typeof fs; +} + +/** + * Make a directory and its parents if needed - Think `mkdir -p`. + * + * @param path - Directory to create. + * @returns A `Promise` for the path to the created directory. + */ +export default function makeDir( + path: string, + options?: Options +): Promise; + +/** + * Synchronously make a directory and its parents if needed - Think `mkdir -p`. + * + * @param path - Directory to create. + * @returns The path to the created directory. + */ +export function sync(path: string, options?: Options): string; diff --git a/node_modules/make-dir/index.js b/node_modules/make-dir/index.js index 1843955..4d95c91 100644 --- a/node_modules/make-dir/index.js +++ b/node_modules/make-dir/index.js @@ -2,12 +2,15 @@ const fs = require('fs'); const path = require('path'); const pify = require('pify'); +const semver = require('semver'); const defaults = { mode: 0o777 & (~process.umask()), fs }; +const useNativeRecursiveOption = semver.satisfies(process.version, '>=10.12.0'); + // https://github.com/nodejs/node/issues/8987 // https://github.com/libuv/libuv/pull/1088 const checkPath = pth => { @@ -15,27 +18,56 @@ const checkPath = pth => { const pathHasInvalidWinCharacters = /[<>:"|?*]/.test(pth.replace(path.parse(pth).root, '')); if (pathHasInvalidWinCharacters) { - const err = new Error(`Path contains invalid characters: ${pth}`); - err.code = 'EINVAL'; - throw err; + const error = new Error(`Path contains invalid characters: ${pth}`); + error.code = 'EINVAL'; + throw error; } } }; -module.exports = (input, opts) => Promise.resolve().then(() => { +const permissionError = pth => { + // This replicates the exception of `fs.mkdir` with native the + // `recusive` option when run on an invalid drive under Windows. + const error = new Error(`operation not permitted, mkdir '${pth}'`); + error.code = 'EPERM'; + error.errno = -4048; + error.path = pth; + error.syscall = 'mkdir'; + return error; +}; + +const makeDir = (input, options) => Promise.resolve().then(() => { checkPath(input); - opts = Object.assign({}, defaults, opts); + options = Object.assign({}, defaults, options); + + // TODO: Use util.promisify when targeting Node.js 8 + const mkdir = pify(options.fs.mkdir); + const stat = pify(options.fs.stat); + + if (useNativeRecursiveOption && options.fs.mkdir === fs.mkdir) { + const pth = path.resolve(input); - const mkdir = pify(opts.fs.mkdir); - const stat = pify(opts.fs.stat); + return mkdir(pth, { + mode: options.mode, + recursive: true + }).then(() => pth); + } const make = pth => { - return mkdir(pth, opts.mode) + return mkdir(pth, options.mode) .then(() => pth) - .catch(err => { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; + .catch(error => { + if (error.code === 'EPERM') { + throw error; + } + + if (error.code === 'ENOENT') { + if (path.dirname(pth) === pth) { + throw permissionError(pth); + } + + if (error.message.includes('null bytes')) { + throw error; } return make(path.dirname(pth)).then(() => make(pth)); @@ -44,7 +76,7 @@ module.exports = (input, opts) => Promise.resolve().then(() => { return stat(pth) .then(stats => stats.isDirectory() ? pth : Promise.reject()) .catch(() => { - throw err; + throw error; }); }); }; @@ -52,17 +84,39 @@ module.exports = (input, opts) => Promise.resolve().then(() => { return make(path.resolve(input)); }); -module.exports.sync = (input, opts) => { +module.exports = makeDir; +module.exports.default = makeDir; + +module.exports.sync = (input, options) => { checkPath(input); - opts = Object.assign({}, defaults, opts); + options = Object.assign({}, defaults, options); + + if (useNativeRecursiveOption && options.fs.mkdirSync === fs.mkdirSync) { + const pth = path.resolve(input); + + fs.mkdirSync(pth, { + mode: options.mode, + recursive: true + }); + + return pth; + } const make = pth => { try { - opts.fs.mkdirSync(pth, opts.mode); - } catch (err) { - if (err.code === 'ENOENT') { - if (err.message.includes('null bytes') || path.dirname(pth) === pth) { - throw err; + options.fs.mkdirSync(pth, options.mode); + } catch (error) { + if (error.code === 'EPERM') { + throw error; + } + + if (error.code === 'ENOENT') { + if (path.dirname(pth) === pth) { + throw permissionError(pth); + } + + if (error.message.includes('null bytes')) { + throw error; } make(path.dirname(pth)); @@ -70,11 +124,11 @@ module.exports.sync = (input, opts) => { } try { - if (!opts.fs.statSync(pth).isDirectory()) { + if (!options.fs.statSync(pth).isDirectory()) { throw new Error('The path is not a directory'); } } catch (_) { - throw err; + throw error; } } diff --git a/node_modules/make-dir/node_modules/.bin/semver b/node_modules/make-dir/node_modules/.bin/semver new file mode 100644 index 0000000..d592e69 --- /dev/null +++ b/node_modules/make-dir/node_modules/.bin/semver @@ -0,0 +1,15 @@ +#!/bin/sh +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") + +case `uname` in + *CYGWIN*) basedir=`cygpath -w "$basedir"`;; +esac + +if [ -x "$basedir/node" ]; then + "$basedir/node" "$basedir/../semver/bin/semver" "$@" + ret=$? +else + node "$basedir/../semver/bin/semver" "$@" + ret=$? +fi +exit $ret diff --git a/node_modules/make-dir/node_modules/.bin/semver.cmd b/node_modules/make-dir/node_modules/.bin/semver.cmd new file mode 100644 index 0000000..eabc737 --- /dev/null +++ b/node_modules/make-dir/node_modules/.bin/semver.cmd @@ -0,0 +1,7 @@ +@IF EXIST "%~dp0\node.exe" ( + "%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %* +) ELSE ( + @SETLOCAL + @SET PATHEXT=%PATHEXT:;.JS;=;% + node "%~dp0\..\semver\bin\semver" %* +) \ No newline at end of file diff --git a/node_modules/make-dir/node_modules/semver/CHANGELOG.md b/node_modules/make-dir/node_modules/semver/CHANGELOG.md new file mode 100644 index 0000000..66304fd --- /dev/null +++ b/node_modules/make-dir/node_modules/semver/CHANGELOG.md @@ -0,0 +1,39 @@ +# changes log + +## 5.7 + +* Add `minVersion` method + +## 5.6 + +* Move boolean `loose` param to an options object, with + backwards-compatibility protection. +* Add ability to opt out of special prerelease version handling with + the `includePrerelease` option flag. + +## 5.5 + +* Add version coercion capabilities + +## 5.4 + +* Add intersection checking + +## 5.3 + +* Add `minSatisfying` method + +## 5.2 + +* Add `prerelease(v)` that returns prerelease components + +## 5.1 + +* Add Backus-Naur for ranges +* Remove excessively cute inspection methods + +## 5.0 + +* Remove AMD/Browserified build artifacts +* Fix ltr and gtr when using the `*` range +* Fix for range `*` with a prerelease identifier diff --git a/node_modules/ini/LICENSE b/node_modules/make-dir/node_modules/semver/LICENSE similarity index 100% rename from node_modules/ini/LICENSE rename to node_modules/make-dir/node_modules/semver/LICENSE diff --git a/node_modules/make-dir/node_modules/semver/README.md b/node_modules/make-dir/node_modules/semver/README.md new file mode 100644 index 0000000..f8dfa5a --- /dev/null +++ b/node_modules/make-dir/node_modules/semver/README.md @@ -0,0 +1,412 @@ +semver(1) -- The semantic versioner for npm +=========================================== + +## Install + +```bash +npm install --save semver +```` + +## Usage + +As a node module: + +```js +const semver = require('semver') + +semver.valid('1.2.3') // '1.2.3' +semver.valid('a.b.c') // null +semver.clean(' =v1.2.3 ') // '1.2.3' +semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true +semver.gt('1.2.3', '9.8.7') // false +semver.lt('1.2.3', '9.8.7') // true +semver.minVersion('>=1.0.0') // '1.0.0' +semver.valid(semver.coerce('v2')) // '2.0.0' +semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7' +``` + +As a command-line utility: + +``` +$ semver -h + +A JavaScript implementation of the https://semver.org/ specification +Copyright Isaac Z. Schlueter + +Usage: semver [options] [ [...]] +Prints valid versions sorted by SemVer precedence + +Options: +-r --range + Print versions that match the specified range. + +-i --increment [] + Increment a version by the specified level. Level can + be one of: major, minor, patch, premajor, preminor, + prepatch, or prerelease. Default level is 'patch'. + Only one version may be specified. + +--preid + Identifier to be used to prefix premajor, preminor, + prepatch or prerelease version increments. + +-l --loose + Interpret versions and ranges loosely + +-p --include-prerelease + Always include prerelease versions in range matching + +-c --coerce + Coerce a string into SemVer if possible + (does not imply --loose) + +Program exits successfully if any valid version satisfies +all supplied ranges, and prints all satisfying versions. + +If no satisfying versions are found, then exits failure. + +Versions are printed in ascending order, so supplying +multiple versions to the utility will just sort them. +``` + +## Versions + +A "version" is described by the `v2.0.0` specification found at +. + +A leading `"="` or `"v"` character is stripped off and ignored. + +## Ranges + +A `version range` is a set of `comparators` which specify versions +that satisfy the range. + +A `comparator` is composed of an `operator` and a `version`. The set +of primitive `operators` is: + +* `<` Less than +* `<=` Less than or equal to +* `>` Greater than +* `>=` Greater than or equal to +* `=` Equal. If no operator is specified, then equality is assumed, + so this operator is optional, but MAY be included. + +For example, the comparator `>=1.2.7` would match the versions +`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6` +or `1.1.0`. + +Comparators can be joined by whitespace to form a `comparator set`, +which is satisfied by the **intersection** of all of the comparators +it includes. + +A range is composed of one or more comparator sets, joined by `||`. A +version matches a range if and only if every comparator in at least +one of the `||`-separated comparator sets is satisfied by the version. + +For example, the range `>=1.2.7 <1.3.0` would match the versions +`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`, +or `1.1.0`. + +The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`, +`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`. + +### Prerelease Tags + +If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then +it will only be allowed to satisfy comparator sets if at least one +comparator with the same `[major, minor, patch]` tuple also has a +prerelease tag. + +For example, the range `>1.2.3-alpha.3` would be allowed to match the +version `1.2.3-alpha.7`, but it would *not* be satisfied by +`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater +than" `1.2.3-alpha.3` according to the SemVer sort rules. The version +range only accepts prerelease tags on the `1.2.3` version. The +version `3.4.5` *would* satisfy the range, because it does not have a +prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`. + +The purpose for this behavior is twofold. First, prerelease versions +frequently are updated very quickly, and contain many breaking changes +that are (by the author's design) not yet fit for public consumption. +Therefore, by default, they are excluded from range matching +semantics. + +Second, a user who has opted into using a prerelease version has +clearly indicated the intent to use *that specific* set of +alpha/beta/rc versions. By including a prerelease tag in the range, +the user is indicating that they are aware of the risk. However, it +is still not appropriate to assume that they have opted into taking a +similar risk on the *next* set of prerelease versions. + +Note that this behavior can be suppressed (treating all prerelease +versions as if they were normal versions, for the purpose of range +matching) by setting the `includePrerelease` flag on the options +object to any +[functions](https://github.com/npm/node-semver#functions) that do +range matching. + +#### Prerelease Identifiers + +The method `.inc` takes an additional `identifier` string argument that +will append the value of the string as a prerelease identifier: + +```javascript +semver.inc('1.2.3', 'prerelease', 'beta') +// '1.2.4-beta.0' +``` + +command-line example: + +```bash +$ semver 1.2.3 -i prerelease --preid beta +1.2.4-beta.0 +``` + +Which then can be used to increment further: + +```bash +$ semver 1.2.4-beta.0 -i prerelease +1.2.4-beta.1 +``` + +### Advanced Range Syntax + +Advanced range syntax desugars to primitive comparators in +deterministic ways. + +Advanced ranges may be combined in the same way as primitive +comparators using white space or `||`. + +#### Hyphen Ranges `X.Y.Z - A.B.C` + +Specifies an inclusive set. + +* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4` + +If a partial version is provided as the first version in the inclusive +range, then the missing pieces are replaced with zeroes. + +* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4` + +If a partial version is provided as the second version in the +inclusive range, then all versions that start with the supplied parts +of the tuple are accepted, but nothing that would be greater than the +provided tuple parts. + +* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0` +* `1.2.3 - 2` := `>=1.2.3 <3.0.0` + +#### X-Ranges `1.2.x` `1.X` `1.2.*` `*` + +Any of `X`, `x`, or `*` may be used to "stand in" for one of the +numeric values in the `[major, minor, patch]` tuple. + +* `*` := `>=0.0.0` (Any version satisfies) +* `1.x` := `>=1.0.0 <2.0.0` (Matching major version) +* `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions) + +A partial version range is treated as an X-Range, so the special +character is in fact optional. + +* `""` (empty string) := `*` := `>=0.0.0` +* `1` := `1.x.x` := `>=1.0.0 <2.0.0` +* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0` + +#### Tilde Ranges `~1.2.3` `~1.2` `~1` + +Allows patch-level changes if a minor version is specified on the +comparator. Allows minor-level changes if not. + +* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0` +* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`) +* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`) +* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0` +* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`) +* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`) +* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in + the `1.2.3` version will be allowed, if they are greater than or + equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but + `1.2.4-beta.2` would not, because it is a prerelease of a + different `[major, minor, patch]` tuple. + +#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4` + +Allows changes that do not modify the left-most non-zero digit in the +`[major, minor, patch]` tuple. In other words, this allows patch and +minor updates for versions `1.0.0` and above, patch updates for +versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`. + +Many authors treat a `0.x` version as if the `x` were the major +"breaking-change" indicator. + +Caret ranges are ideal when an author may make breaking changes +between `0.2.4` and `0.3.0` releases, which is a common practice. +However, it presumes that there will *not* be breaking changes between +`0.2.4` and `0.2.5`. It allows for changes that are presumed to be +additive (but non-breaking), according to commonly observed practices. + +* `^1.2.3` := `>=1.2.3 <2.0.0` +* `^0.2.3` := `>=0.2.3 <0.3.0` +* `^0.0.3` := `>=0.0.3 <0.0.4` +* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in + the `1.2.3` version will be allowed, if they are greater than or + equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but + `1.2.4-beta.2` would not, because it is a prerelease of a + different `[major, minor, patch]` tuple. +* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the + `0.0.3` version *only* will be allowed, if they are greater than or + equal to `beta`. So, `0.0.3-pr.2` would be allowed. + +When parsing caret ranges, a missing `patch` value desugars to the +number `0`, but will allow flexibility within that value, even if the +major and minor versions are both `0`. + +* `^1.2.x` := `>=1.2.0 <2.0.0` +* `^0.0.x` := `>=0.0.0 <0.1.0` +* `^0.0` := `>=0.0.0 <0.1.0` + +A missing `minor` and `patch` values will desugar to zero, but also +allow flexibility within those values, even if the major version is +zero. + +* `^1.x` := `>=1.0.0 <2.0.0` +* `^0.x` := `>=0.0.0 <1.0.0` + +### Range Grammar + +Putting all this together, here is a Backus-Naur grammar for ranges, +for the benefit of parser authors: + +```bnf +range-set ::= range ( logical-or range ) * +logical-or ::= ( ' ' ) * '||' ( ' ' ) * +range ::= hyphen | simple ( ' ' simple ) * | '' +hyphen ::= partial ' - ' partial +simple ::= primitive | partial | tilde | caret +primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial +partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? +xr ::= 'x' | 'X' | '*' | nr +nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) * +tilde ::= '~' partial +caret ::= '^' partial +qualifier ::= ( '-' pre )? ( '+' build )? +pre ::= parts +build ::= parts +parts ::= part ( '.' part ) * +part ::= nr | [-0-9A-Za-z]+ +``` + +## Functions + +All methods and classes take a final `options` object argument. All +options in this object are `false` by default. The options supported +are: + +- `loose` Be more forgiving about not-quite-valid semver strings. + (Any resulting output will always be 100% strict compliant, of + course.) For backwards compatibility reasons, if the `options` + argument is a boolean value instead of an object, it is interpreted + to be the `loose` param. +- `includePrerelease` Set to suppress the [default + behavior](https://github.com/npm/node-semver#prerelease-tags) of + excluding prerelease tagged versions from ranges unless they are + explicitly opted into. + +Strict-mode Comparators and Ranges will be strict about the SemVer +strings that they parse. + +* `valid(v)`: Return the parsed version, or null if it's not valid. +* `inc(v, release)`: Return the version incremented by the release + type (`major`, `premajor`, `minor`, `preminor`, `patch`, + `prepatch`, or `prerelease`), or null if it's not valid + * `premajor` in one call will bump the version up to the next major + version and down to a prerelease of that major version. + `preminor`, and `prepatch` work the same way. + * If called from a non-prerelease version, the `prerelease` will work the + same as `prepatch`. It increments the patch version, then makes a + prerelease. If the input version is already a prerelease it simply + increments it. +* `prerelease(v)`: Returns an array of prerelease components, or null + if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]` +* `major(v)`: Return the major version number. +* `minor(v)`: Return the minor version number. +* `patch(v)`: Return the patch version number. +* `intersects(r1, r2, loose)`: Return true if the two supplied ranges + or comparators intersect. +* `parse(v)`: Attempt to parse a string as a semantic version, returning either + a `SemVer` object or `null`. + +### Comparison + +* `gt(v1, v2)`: `v1 > v2` +* `gte(v1, v2)`: `v1 >= v2` +* `lt(v1, v2)`: `v1 < v2` +* `lte(v1, v2)`: `v1 <= v2` +* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent, + even if they're not the exact same string. You already know how to + compare strings. +* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`. +* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call + the corresponding function above. `"==="` and `"!=="` do simple + string comparison, but are included for completeness. Throws if an + invalid comparison string is provided. +* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if + `v2` is greater. Sorts in ascending order if passed to `Array.sort()`. +* `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions + in descending order when passed to `Array.sort()`. +* `diff(v1, v2)`: Returns difference between two versions by the release type + (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`), + or null if the versions are the same. + +### Comparators + +* `intersects(comparator)`: Return true if the comparators intersect + +### Ranges + +* `validRange(range)`: Return the valid range or null if it's not valid +* `satisfies(version, range)`: Return true if the version satisfies the + range. +* `maxSatisfying(versions, range)`: Return the highest version in the list + that satisfies the range, or `null` if none of them do. +* `minSatisfying(versions, range)`: Return the lowest version in the list + that satisfies the range, or `null` if none of them do. +* `minVersion(range)`: Return the lowest version that can possibly match + the given range. +* `gtr(version, range)`: Return `true` if version is greater than all the + versions possible in the range. +* `ltr(version, range)`: Return `true` if version is less than all the + versions possible in the range. +* `outside(version, range, hilo)`: Return true if the version is outside + the bounds of the range in either the high or low direction. The + `hilo` argument must be either the string `'>'` or `'<'`. (This is + the function called by `gtr` and `ltr`.) +* `intersects(range)`: Return true if any of the ranges comparators intersect + +Note that, since ranges may be non-contiguous, a version might not be +greater than a range, less than a range, *or* satisfy a range! For +example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9` +until `2.0.0`, so the version `1.2.10` would not be greater than the +range (because `2.0.1` satisfies, which is higher), nor less than the +range (since `1.2.8` satisfies, which is lower), and it also does not +satisfy the range. + +If you want to know if a version satisfies or does not satisfy a +range, use the `satisfies(version, range)` function. + +### Coercion + +* `coerce(version)`: Coerces a string to semver if possible + +This aims to provide a very forgiving translation of a non-semver string to +semver. It looks for the first digit in a string, and consumes all +remaining characters which satisfy at least a partial semver (e.g., `1`, +`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer +versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All +surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes +`3.4.0`). Only text which lacks digits will fail coercion (`version one` +is not valid). The maximum length for any semver component considered for +coercion is 16 characters; longer components will be ignored +(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any +semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value +components are invalid (`9999999999999999.4.7.4` is likely invalid). diff --git a/node_modules/make-dir/node_modules/semver/bin/semver b/node_modules/make-dir/node_modules/semver/bin/semver new file mode 100644 index 0000000..801e77f --- /dev/null +++ b/node_modules/make-dir/node_modules/semver/bin/semver @@ -0,0 +1,160 @@ +#!/usr/bin/env node +// Standalone semver comparison program. +// Exits successfully and prints matching version(s) if +// any supplied version is valid and passes all tests. + +var argv = process.argv.slice(2) + +var versions = [] + +var range = [] + +var inc = null + +var version = require('../package.json').version + +var loose = false + +var includePrerelease = false + +var coerce = false + +var identifier + +var semver = require('../semver') + +var reverse = false + +var options = {} + +main() + +function main () { + if (!argv.length) return help() + while (argv.length) { + var a = argv.shift() + var indexOfEqualSign = a.indexOf('=') + if (indexOfEqualSign !== -1) { + a = a.slice(0, indexOfEqualSign) + argv.unshift(a.slice(indexOfEqualSign + 1)) + } + switch (a) { + case '-rv': case '-rev': case '--rev': case '--reverse': + reverse = true + break + case '-l': case '--loose': + loose = true + break + case '-p': case '--include-prerelease': + includePrerelease = true + break + case '-v': case '--version': + versions.push(argv.shift()) + break + case '-i': case '--inc': case '--increment': + switch (argv[0]) { + case 'major': case 'minor': case 'patch': case 'prerelease': + case 'premajor': case 'preminor': case 'prepatch': + inc = argv.shift() + break + default: + inc = 'patch' + break + } + break + case '--preid': + identifier = argv.shift() + break + case '-r': case '--range': + range.push(argv.shift()) + break + case '-c': case '--coerce': + coerce = true + break + case '-h': case '--help': case '-?': + return help() + default: + versions.push(a) + break + } + } + + var options = { loose: loose, includePrerelease: includePrerelease } + + versions = versions.map(function (v) { + return coerce ? (semver.coerce(v) || { version: v }).version : v + }).filter(function (v) { + return semver.valid(v) + }) + if (!versions.length) return fail() + if (inc && (versions.length !== 1 || range.length)) { return failInc() } + + for (var i = 0, l = range.length; i < l; i++) { + versions = versions.filter(function (v) { + return semver.satisfies(v, range[i], options) + }) + if (!versions.length) return fail() + } + return success(versions) +} + +function failInc () { + console.error('--inc can only be used on a single version with no range') + fail() +} + +function fail () { process.exit(1) } + +function success () { + var compare = reverse ? 'rcompare' : 'compare' + versions.sort(function (a, b) { + return semver[compare](a, b, options) + }).map(function (v) { + return semver.clean(v, options) + }).map(function (v) { + return inc ? semver.inc(v, inc, options, identifier) : v + }).forEach(function (v, i, _) { console.log(v) }) +} + +function help () { + console.log(['SemVer ' + version, + '', + 'A JavaScript implementation of the https://semver.org/ specification', + 'Copyright Isaac Z. Schlueter', + '', + 'Usage: semver [options] [ [...]]', + 'Prints valid versions sorted by SemVer precedence', + '', + 'Options:', + '-r --range ', + ' Print versions that match the specified range.', + '', + '-i --increment []', + ' Increment a version by the specified level. Level can', + ' be one of: major, minor, patch, premajor, preminor,', + " prepatch, or prerelease. Default level is 'patch'.", + ' Only one version may be specified.', + '', + '--preid ', + ' Identifier to be used to prefix premajor, preminor,', + ' prepatch or prerelease version increments.', + '', + '-l --loose', + ' Interpret versions and ranges loosely', + '', + '-p --include-prerelease', + ' Always include prerelease versions in range matching', + '', + '-c --coerce', + ' Coerce a string into SemVer if possible', + ' (does not imply --loose)', + '', + 'Program exits successfully if any valid version satisfies', + 'all supplied ranges, and prints all satisfying versions.', + '', + 'If no satisfying versions are found, then exits failure.', + '', + 'Versions are printed in ascending order, so supplying', + 'multiple versions to the utility will just sort them.' + ].join('\n')) +} diff --git a/node_modules/make-dir/node_modules/semver/package.json b/node_modules/make-dir/node_modules/semver/package.json new file mode 100644 index 0000000..aa9ee28 --- /dev/null +++ b/node_modules/make-dir/node_modules/semver/package.json @@ -0,0 +1,56 @@ +{ + "_from": "semver@5.7.1", + "_id": "semver@5.7.1", + "_inBundle": false, + "_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "_location": "/make-dir/semver", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "semver@5.7.1", + "name": "semver", + "escapedName": "semver", + "rawSpec": "5.7.1", + "saveSpec": null, + "fetchSpec": "5.7.1" + }, + "_requiredBy": [ + "/make-dir" + ], + "_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "_spec": "5.7.1", + "bin": { + "semver": "./bin/semver" + }, + "bugs": { + "url": "https://github.com/npm/node-semver/issues" + }, + "description": "The semantic version parser used by npm.", + "devDependencies": { + "tap": "^13.0.0-rc.18" + }, + "files": [ + "bin", + "range.bnf", + "semver.js" + ], + "homepage": "https://github.com/npm/node-semver#readme", + "license": "ISC", + "main": "semver.js", + "name": "semver", + "repository": { + "type": "git", + "url": "git+https://github.com/npm/node-semver.git" + }, + "scripts": { + "postpublish": "git push origin --all; git push origin --tags", + "postversion": "npm publish", + "preversion": "npm test", + "test": "tap" + }, + "tap": { + "check-coverage": true + }, + "version": "5.7.1" +} \ No newline at end of file diff --git a/node_modules/make-dir/node_modules/semver/range.bnf b/node_modules/make-dir/node_modules/semver/range.bnf new file mode 100644 index 0000000..d4c6ae0 --- /dev/null +++ b/node_modules/make-dir/node_modules/semver/range.bnf @@ -0,0 +1,16 @@ +range-set ::= range ( logical-or range ) * +logical-or ::= ( ' ' ) * '||' ( ' ' ) * +range ::= hyphen | simple ( ' ' simple ) * | '' +hyphen ::= partial ' - ' partial +simple ::= primitive | partial | tilde | caret +primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial +partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? +xr ::= 'x' | 'X' | '*' | nr +nr ::= '0' | [1-9] ( [0-9] ) * +tilde ::= '~' partial +caret ::= '^' partial +qualifier ::= ( '-' pre )? ( '+' build )? +pre ::= parts +build ::= parts +parts ::= part ( '.' part ) * +part ::= nr | [-0-9A-Za-z]+ diff --git a/node_modules/make-dir/node_modules/semver/semver.js b/node_modules/make-dir/node_modules/semver/semver.js new file mode 100644 index 0000000..d315d5d --- /dev/null +++ b/node_modules/make-dir/node_modules/semver/semver.js @@ -0,0 +1,1483 @@ +exports = module.exports = SemVer + +var debug +/* istanbul ignore next */ +if (typeof process === 'object' && + process.env && + process.env.NODE_DEBUG && + /\bsemver\b/i.test(process.env.NODE_DEBUG)) { + debug = function () { + var args = Array.prototype.slice.call(arguments, 0) + args.unshift('SEMVER') + console.log.apply(console, args) + } +} else { + debug = function () {} +} + +// Note: this is the semver.org version of the spec that it implements +// Not necessarily the package version of this code. +exports.SEMVER_SPEC_VERSION = '2.0.0' + +var MAX_LENGTH = 256 +var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || + /* istanbul ignore next */ 9007199254740991 + +// Max safe segment length for coercion. +var MAX_SAFE_COMPONENT_LENGTH = 16 + +// The actual regexps go on exports.re +var re = exports.re = [] +var src = exports.src = [] +var R = 0 + +// The following Regular Expressions can be used for tokenizing, +// validating, and parsing SemVer version strings. + +// ## Numeric Identifier +// A single `0`, or a non-zero digit followed by zero or more digits. + +var NUMERICIDENTIFIER = R++ +src[NUMERICIDENTIFIER] = '0|[1-9]\\d*' +var NUMERICIDENTIFIERLOOSE = R++ +src[NUMERICIDENTIFIERLOOSE] = '[0-9]+' + +// ## Non-numeric Identifier +// Zero or more digits, followed by a letter or hyphen, and then zero or +// more letters, digits, or hyphens. + +var NONNUMERICIDENTIFIER = R++ +src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*' + +// ## Main Version +// Three dot-separated numeric identifiers. + +var MAINVERSION = R++ +src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + ')\\.' + + '(' + src[NUMERICIDENTIFIER] + ')\\.' + + '(' + src[NUMERICIDENTIFIER] + ')' + +var MAINVERSIONLOOSE = R++ +src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[NUMERICIDENTIFIERLOOSE] + ')\\.' + + '(' + src[NUMERICIDENTIFIERLOOSE] + ')' + +// ## Pre-release Version Identifier +// A numeric identifier, or a non-numeric identifier. + +var PRERELEASEIDENTIFIER = R++ +src[PRERELEASEIDENTIFIER] = '(?:' + src[NUMERICIDENTIFIER] + + '|' + src[NONNUMERICIDENTIFIER] + ')' + +var PRERELEASEIDENTIFIERLOOSE = R++ +src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + + '|' + src[NONNUMERICIDENTIFIER] + ')' + +// ## Pre-release Version +// Hyphen, followed by one or more dot-separated pre-release version +// identifiers. + +var PRERELEASE = R++ +src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + + '(?:\\.' + src[PRERELEASEIDENTIFIER] + ')*))' + +var PRERELEASELOOSE = R++ +src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + + '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + ')*))' + +// ## Build Metadata Identifier +// Any combination of digits, letters, or hyphens. + +var BUILDIDENTIFIER = R++ +src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+' + +// ## Build Metadata +// Plus sign, followed by one or more period-separated build metadata +// identifiers. + +var BUILD = R++ +src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + + '(?:\\.' + src[BUILDIDENTIFIER] + ')*))' + +// ## Full Version String +// A main version, followed optionally by a pre-release version and +// build metadata. + +// Note that the only major, minor, patch, and pre-release sections of +// the version string are capturing groups. The build metadata is not a +// capturing group, because it should not ever be used in version +// comparison. + +var FULL = R++ +var FULLPLAIN = 'v?' + src[MAINVERSION] + + src[PRERELEASE] + '?' + + src[BUILD] + '?' + +src[FULL] = '^' + FULLPLAIN + '$' + +// like full, but allows v1.2.3 and =1.2.3, which people do sometimes. +// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty +// common in the npm registry. +var LOOSEPLAIN = '[v=\\s]*' + src[MAINVERSIONLOOSE] + + src[PRERELEASELOOSE] + '?' + + src[BUILD] + '?' + +var LOOSE = R++ +src[LOOSE] = '^' + LOOSEPLAIN + '$' + +var GTLT = R++ +src[GTLT] = '((?:<|>)?=?)' + +// Something like "2.*" or "1.2.x". +// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Only the first item is strictly required. +var XRANGEIDENTIFIERLOOSE = R++ +src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' +var XRANGEIDENTIFIER = R++ +src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*' + +var XRANGEPLAIN = R++ +src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIER] + ')' + + '(?:' + src[PRERELEASE] + ')?' + + src[BUILD] + '?' + + ')?)?' + +var XRANGEPLAINLOOSE = R++ +src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:\\.(' + src[XRANGEIDENTIFIERLOOSE] + ')' + + '(?:' + src[PRERELEASELOOSE] + ')?' + + src[BUILD] + '?' + + ')?)?' + +var XRANGE = R++ +src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$' +var XRANGELOOSE = R++ +src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$' + +// Coercion. +// Extract anything that could conceivably be a part of a valid semver +var COERCE = R++ +src[COERCE] = '(?:^|[^\\d])' + + '(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '})' + + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + + '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + + '(?:$|[^\\d])' + +// Tilde ranges. +// Meaning is "reasonably at or greater than" +var LONETILDE = R++ +src[LONETILDE] = '(?:~>?)' + +var TILDETRIM = R++ +src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+' +re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g') +var tildeTrimReplace = '$1~' + +var TILDE = R++ +src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$' +var TILDELOOSE = R++ +src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$' + +// Caret ranges. +// Meaning is "at least and backwards compatible with" +var LONECARET = R++ +src[LONECARET] = '(?:\\^)' + +var CARETTRIM = R++ +src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+' +re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g') +var caretTrimReplace = '$1^' + +var CARET = R++ +src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$' +var CARETLOOSE = R++ +src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$' + +// A simple gt/lt/eq thing, or just "" to indicate "any version" +var COMPARATORLOOSE = R++ +src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$' +var COMPARATOR = R++ +src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$' + +// An expression to strip any whitespace between the gtlt and the thing +// it modifies, so that `> 1.2.3` ==> `>1.2.3` +var COMPARATORTRIM = R++ +src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + + '\\s*(' + LOOSEPLAIN + '|' + src[XRANGEPLAIN] + ')' + +// this one has to use the /g flag +re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g') +var comparatorTrimReplace = '$1$2$3' + +// Something like `1.2.3 - 1.2.4` +// Note that these all use the loose form, because they'll be +// checked against either the strict or loose comparator form +// later. +var HYPHENRANGE = R++ +src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + ')' + + '\\s+-\\s+' + + '(' + src[XRANGEPLAIN] + ')' + + '\\s*$' + +var HYPHENRANGELOOSE = R++ +src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + ')' + + '\\s+-\\s+' + + '(' + src[XRANGEPLAINLOOSE] + ')' + + '\\s*$' + +// Star ranges basically just allow anything at all. +var STAR = R++ +src[STAR] = '(<|>)?=?\\s*\\*' + +// Compile to actual regexp objects. +// All are flag-free, unless they were created above with a flag. +for (var i = 0; i < R; i++) { + debug(i, src[i]) + if (!re[i]) { + re[i] = new RegExp(src[i]) + } +} + +exports.parse = parse +function parse (version, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + if (version instanceof SemVer) { + return version + } + + if (typeof version !== 'string') { + return null + } + + if (version.length > MAX_LENGTH) { + return null + } + + var r = options.loose ? re[LOOSE] : re[FULL] + if (!r.test(version)) { + return null + } + + try { + return new SemVer(version, options) + } catch (er) { + return null + } +} + +exports.valid = valid +function valid (version, options) { + var v = parse(version, options) + return v ? v.version : null +} + +exports.clean = clean +function clean (version, options) { + var s = parse(version.trim().replace(/^[=v]+/, ''), options) + return s ? s.version : null +} + +exports.SemVer = SemVer + +function SemVer (version, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + if (version instanceof SemVer) { + if (version.loose === options.loose) { + return version + } else { + version = version.version + } + } else if (typeof version !== 'string') { + throw new TypeError('Invalid Version: ' + version) + } + + if (version.length > MAX_LENGTH) { + throw new TypeError('version is longer than ' + MAX_LENGTH + ' characters') + } + + if (!(this instanceof SemVer)) { + return new SemVer(version, options) + } + + debug('SemVer', version, options) + this.options = options + this.loose = !!options.loose + + var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL]) + + if (!m) { + throw new TypeError('Invalid Version: ' + version) + } + + this.raw = version + + // these are actually numbers + this.major = +m[1] + this.minor = +m[2] + this.patch = +m[3] + + if (this.major > MAX_SAFE_INTEGER || this.major < 0) { + throw new TypeError('Invalid major version') + } + + if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { + throw new TypeError('Invalid minor version') + } + + if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { + throw new TypeError('Invalid patch version') + } + + // numberify any prerelease numeric ids + if (!m[4]) { + this.prerelease = [] + } else { + this.prerelease = m[4].split('.').map(function (id) { + if (/^[0-9]+$/.test(id)) { + var num = +id + if (num >= 0 && num < MAX_SAFE_INTEGER) { + return num + } + } + return id + }) + } + + this.build = m[5] ? m[5].split('.') : [] + this.format() +} + +SemVer.prototype.format = function () { + this.version = this.major + '.' + this.minor + '.' + this.patch + if (this.prerelease.length) { + this.version += '-' + this.prerelease.join('.') + } + return this.version +} + +SemVer.prototype.toString = function () { + return this.version +} + +SemVer.prototype.compare = function (other) { + debug('SemVer.compare', this.version, this.options, other) + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + return this.compareMain(other) || this.comparePre(other) +} + +SemVer.prototype.compareMain = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + return compareIdentifiers(this.major, other.major) || + compareIdentifiers(this.minor, other.minor) || + compareIdentifiers(this.patch, other.patch) +} + +SemVer.prototype.comparePre = function (other) { + if (!(other instanceof SemVer)) { + other = new SemVer(other, this.options) + } + + // NOT having a prerelease is > having one + if (this.prerelease.length && !other.prerelease.length) { + return -1 + } else if (!this.prerelease.length && other.prerelease.length) { + return 1 + } else if (!this.prerelease.length && !other.prerelease.length) { + return 0 + } + + var i = 0 + do { + var a = this.prerelease[i] + var b = other.prerelease[i] + debug('prerelease compare', i, a, b) + if (a === undefined && b === undefined) { + return 0 + } else if (b === undefined) { + return 1 + } else if (a === undefined) { + return -1 + } else if (a === b) { + continue + } else { + return compareIdentifiers(a, b) + } + } while (++i) +} + +// preminor will bump the version up to the next minor release, and immediately +// down to pre-release. premajor and prepatch work the same way. +SemVer.prototype.inc = function (release, identifier) { + switch (release) { + case 'premajor': + this.prerelease.length = 0 + this.patch = 0 + this.minor = 0 + this.major++ + this.inc('pre', identifier) + break + case 'preminor': + this.prerelease.length = 0 + this.patch = 0 + this.minor++ + this.inc('pre', identifier) + break + case 'prepatch': + // If this is already a prerelease, it will bump to the next version + // drop any prereleases that might already exist, since they are not + // relevant at this point. + this.prerelease.length = 0 + this.inc('patch', identifier) + this.inc('pre', identifier) + break + // If the input is a non-prerelease version, this acts the same as + // prepatch. + case 'prerelease': + if (this.prerelease.length === 0) { + this.inc('patch', identifier) + } + this.inc('pre', identifier) + break + + case 'major': + // If this is a pre-major version, bump up to the same major version. + // Otherwise increment major. + // 1.0.0-5 bumps to 1.0.0 + // 1.1.0 bumps to 2.0.0 + if (this.minor !== 0 || + this.patch !== 0 || + this.prerelease.length === 0) { + this.major++ + } + this.minor = 0 + this.patch = 0 + this.prerelease = [] + break + case 'minor': + // If this is a pre-minor version, bump up to the same minor version. + // Otherwise increment minor. + // 1.2.0-5 bumps to 1.2.0 + // 1.2.1 bumps to 1.3.0 + if (this.patch !== 0 || this.prerelease.length === 0) { + this.minor++ + } + this.patch = 0 + this.prerelease = [] + break + case 'patch': + // If this is not a pre-release version, it will increment the patch. + // If it is a pre-release it will bump up to the same patch version. + // 1.2.0-5 patches to 1.2.0 + // 1.2.0 patches to 1.2.1 + if (this.prerelease.length === 0) { + this.patch++ + } + this.prerelease = [] + break + // This probably shouldn't be used publicly. + // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. + case 'pre': + if (this.prerelease.length === 0) { + this.prerelease = [0] + } else { + var i = this.prerelease.length + while (--i >= 0) { + if (typeof this.prerelease[i] === 'number') { + this.prerelease[i]++ + i = -2 + } + } + if (i === -1) { + // didn't increment anything + this.prerelease.push(0) + } + } + if (identifier) { + // 1.2.0-beta.1 bumps to 1.2.0-beta.2, + // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 + if (this.prerelease[0] === identifier) { + if (isNaN(this.prerelease[1])) { + this.prerelease = [identifier, 0] + } + } else { + this.prerelease = [identifier, 0] + } + } + break + + default: + throw new Error('invalid increment argument: ' + release) + } + this.format() + this.raw = this.version + return this +} + +exports.inc = inc +function inc (version, release, loose, identifier) { + if (typeof (loose) === 'string') { + identifier = loose + loose = undefined + } + + try { + return new SemVer(version, loose).inc(release, identifier).version + } catch (er) { + return null + } +} + +exports.diff = diff +function diff (version1, version2) { + if (eq(version1, version2)) { + return null + } else { + var v1 = parse(version1) + var v2 = parse(version2) + var prefix = '' + if (v1.prerelease.length || v2.prerelease.length) { + prefix = 'pre' + var defaultResult = 'prerelease' + } + for (var key in v1) { + if (key === 'major' || key === 'minor' || key === 'patch') { + if (v1[key] !== v2[key]) { + return prefix + key + } + } + } + return defaultResult // may be undefined + } +} + +exports.compareIdentifiers = compareIdentifiers + +var numeric = /^[0-9]+$/ +function compareIdentifiers (a, b) { + var anum = numeric.test(a) + var bnum = numeric.test(b) + + if (anum && bnum) { + a = +a + b = +b + } + + return a === b ? 0 + : (anum && !bnum) ? -1 + : (bnum && !anum) ? 1 + : a < b ? -1 + : 1 +} + +exports.rcompareIdentifiers = rcompareIdentifiers +function rcompareIdentifiers (a, b) { + return compareIdentifiers(b, a) +} + +exports.major = major +function major (a, loose) { + return new SemVer(a, loose).major +} + +exports.minor = minor +function minor (a, loose) { + return new SemVer(a, loose).minor +} + +exports.patch = patch +function patch (a, loose) { + return new SemVer(a, loose).patch +} + +exports.compare = compare +function compare (a, b, loose) { + return new SemVer(a, loose).compare(new SemVer(b, loose)) +} + +exports.compareLoose = compareLoose +function compareLoose (a, b) { + return compare(a, b, true) +} + +exports.rcompare = rcompare +function rcompare (a, b, loose) { + return compare(b, a, loose) +} + +exports.sort = sort +function sort (list, loose) { + return list.sort(function (a, b) { + return exports.compare(a, b, loose) + }) +} + +exports.rsort = rsort +function rsort (list, loose) { + return list.sort(function (a, b) { + return exports.rcompare(a, b, loose) + }) +} + +exports.gt = gt +function gt (a, b, loose) { + return compare(a, b, loose) > 0 +} + +exports.lt = lt +function lt (a, b, loose) { + return compare(a, b, loose) < 0 +} + +exports.eq = eq +function eq (a, b, loose) { + return compare(a, b, loose) === 0 +} + +exports.neq = neq +function neq (a, b, loose) { + return compare(a, b, loose) !== 0 +} + +exports.gte = gte +function gte (a, b, loose) { + return compare(a, b, loose) >= 0 +} + +exports.lte = lte +function lte (a, b, loose) { + return compare(a, b, loose) <= 0 +} + +exports.cmp = cmp +function cmp (a, op, b, loose) { + switch (op) { + case '===': + if (typeof a === 'object') + a = a.version + if (typeof b === 'object') + b = b.version + return a === b + + case '!==': + if (typeof a === 'object') + a = a.version + if (typeof b === 'object') + b = b.version + return a !== b + + case '': + case '=': + case '==': + return eq(a, b, loose) + + case '!=': + return neq(a, b, loose) + + case '>': + return gt(a, b, loose) + + case '>=': + return gte(a, b, loose) + + case '<': + return lt(a, b, loose) + + case '<=': + return lte(a, b, loose) + + default: + throw new TypeError('Invalid operator: ' + op) + } +} + +exports.Comparator = Comparator +function Comparator (comp, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + if (comp instanceof Comparator) { + if (comp.loose === !!options.loose) { + return comp + } else { + comp = comp.value + } + } + + if (!(this instanceof Comparator)) { + return new Comparator(comp, options) + } + + debug('comparator', comp, options) + this.options = options + this.loose = !!options.loose + this.parse(comp) + + if (this.semver === ANY) { + this.value = '' + } else { + this.value = this.operator + this.semver.version + } + + debug('comp', this) +} + +var ANY = {} +Comparator.prototype.parse = function (comp) { + var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR] + var m = comp.match(r) + + if (!m) { + throw new TypeError('Invalid comparator: ' + comp) + } + + this.operator = m[1] + if (this.operator === '=') { + this.operator = '' + } + + // if it literally is just '>' or '' then allow anything. + if (!m[2]) { + this.semver = ANY + } else { + this.semver = new SemVer(m[2], this.options.loose) + } +} + +Comparator.prototype.toString = function () { + return this.value +} + +Comparator.prototype.test = function (version) { + debug('Comparator.test', version, this.options.loose) + + if (this.semver === ANY) { + return true + } + + if (typeof version === 'string') { + version = new SemVer(version, this.options) + } + + return cmp(version, this.operator, this.semver, this.options) +} + +Comparator.prototype.intersects = function (comp, options) { + if (!(comp instanceof Comparator)) { + throw new TypeError('a Comparator is required') + } + + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + var rangeTmp + + if (this.operator === '') { + rangeTmp = new Range(comp.value, options) + return satisfies(this.value, rangeTmp, options) + } else if (comp.operator === '') { + rangeTmp = new Range(this.value, options) + return satisfies(comp.semver, rangeTmp, options) + } + + var sameDirectionIncreasing = + (this.operator === '>=' || this.operator === '>') && + (comp.operator === '>=' || comp.operator === '>') + var sameDirectionDecreasing = + (this.operator === '<=' || this.operator === '<') && + (comp.operator === '<=' || comp.operator === '<') + var sameSemVer = this.semver.version === comp.semver.version + var differentDirectionsInclusive = + (this.operator === '>=' || this.operator === '<=') && + (comp.operator === '>=' || comp.operator === '<=') + var oppositeDirectionsLessThan = + cmp(this.semver, '<', comp.semver, options) && + ((this.operator === '>=' || this.operator === '>') && + (comp.operator === '<=' || comp.operator === '<')) + var oppositeDirectionsGreaterThan = + cmp(this.semver, '>', comp.semver, options) && + ((this.operator === '<=' || this.operator === '<') && + (comp.operator === '>=' || comp.operator === '>')) + + return sameDirectionIncreasing || sameDirectionDecreasing || + (sameSemVer && differentDirectionsInclusive) || + oppositeDirectionsLessThan || oppositeDirectionsGreaterThan +} + +exports.Range = Range +function Range (range, options) { + if (!options || typeof options !== 'object') { + options = { + loose: !!options, + includePrerelease: false + } + } + + if (range instanceof Range) { + if (range.loose === !!options.loose && + range.includePrerelease === !!options.includePrerelease) { + return range + } else { + return new Range(range.raw, options) + } + } + + if (range instanceof Comparator) { + return new Range(range.value, options) + } + + if (!(this instanceof Range)) { + return new Range(range, options) + } + + this.options = options + this.loose = !!options.loose + this.includePrerelease = !!options.includePrerelease + + // First, split based on boolean or || + this.raw = range + this.set = range.split(/\s*\|\|\s*/).map(function (range) { + return this.parseRange(range.trim()) + }, this).filter(function (c) { + // throw out any that are not relevant for whatever reason + return c.length + }) + + if (!this.set.length) { + throw new TypeError('Invalid SemVer Range: ' + range) + } + + this.format() +} + +Range.prototype.format = function () { + this.range = this.set.map(function (comps) { + return comps.join(' ').trim() + }).join('||').trim() + return this.range +} + +Range.prototype.toString = function () { + return this.range +} + +Range.prototype.parseRange = function (range) { + var loose = this.options.loose + range = range.trim() + // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` + var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE] + range = range.replace(hr, hyphenReplace) + debug('hyphen replace', range) + // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` + range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace) + debug('comparator trim', range, re[COMPARATORTRIM]) + + // `~ 1.2.3` => `~1.2.3` + range = range.replace(re[TILDETRIM], tildeTrimReplace) + + // `^ 1.2.3` => `^1.2.3` + range = range.replace(re[CARETTRIM], caretTrimReplace) + + // normalize spaces + range = range.split(/\s+/).join(' ') + + // At this point, the range is completely trimmed and + // ready to be split into comparators. + + var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR] + var set = range.split(' ').map(function (comp) { + return parseComparator(comp, this.options) + }, this).join(' ').split(/\s+/) + if (this.options.loose) { + // in loose mode, throw out any that are not valid comparators + set = set.filter(function (comp) { + return !!comp.match(compRe) + }) + } + set = set.map(function (comp) { + return new Comparator(comp, this.options) + }, this) + + return set +} + +Range.prototype.intersects = function (range, options) { + if (!(range instanceof Range)) { + throw new TypeError('a Range is required') + } + + return this.set.some(function (thisComparators) { + return thisComparators.every(function (thisComparator) { + return range.set.some(function (rangeComparators) { + return rangeComparators.every(function (rangeComparator) { + return thisComparator.intersects(rangeComparator, options) + }) + }) + }) + }) +} + +// Mostly just for testing and legacy API reasons +exports.toComparators = toComparators +function toComparators (range, options) { + return new Range(range, options).set.map(function (comp) { + return comp.map(function (c) { + return c.value + }).join(' ').trim().split(' ') + }) +} + +// comprised of xranges, tildes, stars, and gtlt's at this point. +// already replaced the hyphen ranges +// turn into a set of JUST comparators. +function parseComparator (comp, options) { + debug('comp', comp, options) + comp = replaceCarets(comp, options) + debug('caret', comp) + comp = replaceTildes(comp, options) + debug('tildes', comp) + comp = replaceXRanges(comp, options) + debug('xrange', comp) + comp = replaceStars(comp, options) + debug('stars', comp) + return comp +} + +function isX (id) { + return !id || id.toLowerCase() === 'x' || id === '*' +} + +// ~, ~> --> * (any, kinda silly) +// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0 +// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0 +// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0 +// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0 +// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0 +function replaceTildes (comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceTilde(comp, options) + }).join(' ') +} + +function replaceTilde (comp, options) { + var r = options.loose ? re[TILDELOOSE] : re[TILDE] + return comp.replace(r, function (_, M, m, p, pr) { + debug('tilde', comp, _, M, m, p, pr) + var ret + + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (isX(p)) { + // ~1.2 == >=1.2.0 <1.3.0 + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } else if (pr) { + debug('replaceTilde pr', pr) + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + (+m + 1) + '.0' + } else { + // ~1.2.3 == >=1.2.3 <1.3.0 + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + (+m + 1) + '.0' + } + + debug('tilde return', ret) + return ret + }) +} + +// ^ --> * (any, kinda silly) +// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0 +// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0 +// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0 +// ^1.2.3 --> >=1.2.3 <2.0.0 +// ^1.2.0 --> >=1.2.0 <2.0.0 +function replaceCarets (comp, options) { + return comp.trim().split(/\s+/).map(function (comp) { + return replaceCaret(comp, options) + }).join(' ') +} + +function replaceCaret (comp, options) { + debug('caret', comp, options) + var r = options.loose ? re[CARETLOOSE] : re[CARET] + return comp.replace(r, function (_, M, m, p, pr) { + debug('caret', comp, _, M, m, p, pr) + var ret + + if (isX(M)) { + ret = '' + } else if (isX(m)) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (isX(p)) { + if (M === '0') { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } else { + ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' + } + } else if (pr) { + debug('replaceCaret pr', pr) + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + m + '.' + (+p + 1) + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + M + '.' + (+m + 1) + '.0' + } + } else { + ret = '>=' + M + '.' + m + '.' + p + '-' + pr + + ' <' + (+M + 1) + '.0.0' + } + } else { + debug('no pr') + if (M === '0') { + if (m === '0') { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + m + '.' + (+p + 1) + } else { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + M + '.' + (+m + 1) + '.0' + } + } else { + ret = '>=' + M + '.' + m + '.' + p + + ' <' + (+M + 1) + '.0.0' + } + } + + debug('caret return', ret) + return ret + }) +} + +function replaceXRanges (comp, options) { + debug('replaceXRanges', comp, options) + return comp.split(/\s+/).map(function (comp) { + return replaceXRange(comp, options) + }).join(' ') +} + +function replaceXRange (comp, options) { + comp = comp.trim() + var r = options.loose ? re[XRANGELOOSE] : re[XRANGE] + return comp.replace(r, function (ret, gtlt, M, m, p, pr) { + debug('xRange', comp, ret, gtlt, M, m, p, pr) + var xM = isX(M) + var xm = xM || isX(m) + var xp = xm || isX(p) + var anyX = xp + + if (gtlt === '=' && anyX) { + gtlt = '' + } + + if (xM) { + if (gtlt === '>' || gtlt === '<') { + // nothing is allowed + ret = '<0.0.0' + } else { + // nothing is forbidden + ret = '*' + } + } else if (gtlt && anyX) { + // we know patch is an x, because we have any x at all. + // replace X with 0 + if (xm) { + m = 0 + } + p = 0 + + if (gtlt === '>') { + // >1 => >=2.0.0 + // >1.2 => >=1.3.0 + // >1.2.3 => >= 1.2.4 + gtlt = '>=' + if (xm) { + M = +M + 1 + m = 0 + p = 0 + } else { + m = +m + 1 + p = 0 + } + } else if (gtlt === '<=') { + // <=0.7.x is actually <0.8.0, since any 0.7.x should + // pass. Similarly, <=7.x is actually <8.0.0, etc. + gtlt = '<' + if (xm) { + M = +M + 1 + } else { + m = +m + 1 + } + } + + ret = gtlt + M + '.' + m + '.' + p + } else if (xm) { + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + } else if (xp) { + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + } + + debug('xRange return', ret) + + return ret + }) +} + +// Because * is AND-ed with everything else in the comparator, +// and '' means "any version", just remove the *s entirely. +function replaceStars (comp, options) { + debug('replaceStars', comp, options) + // Looseness is ignored here. star is always as loose as it gets! + return comp.trim().replace(re[STAR], '') +} + +// This function is passed to string.replace(re[HYPHENRANGE]) +// M, m, patch, prerelease, build +// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5 +// 1.2.3 - 3.4 => >=1.2.0 <3.5.0 Any 3.4.x will do +// 1.2 - 3.4 => >=1.2.0 <3.5.0 +function hyphenReplace ($0, + from, fM, fm, fp, fpr, fb, + to, tM, tm, tp, tpr, tb) { + if (isX(fM)) { + from = '' + } else if (isX(fm)) { + from = '>=' + fM + '.0.0' + } else if (isX(fp)) { + from = '>=' + fM + '.' + fm + '.0' + } else { + from = '>=' + from + } + + if (isX(tM)) { + to = '' + } else if (isX(tm)) { + to = '<' + (+tM + 1) + '.0.0' + } else if (isX(tp)) { + to = '<' + tM + '.' + (+tm + 1) + '.0' + } else if (tpr) { + to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr + } else { + to = '<=' + to + } + + return (from + ' ' + to).trim() +} + +// if ANY of the sets match ALL of its comparators, then pass +Range.prototype.test = function (version) { + if (!version) { + return false + } + + if (typeof version === 'string') { + version = new SemVer(version, this.options) + } + + for (var i = 0; i < this.set.length; i++) { + if (testSet(this.set[i], version, this.options)) { + return true + } + } + return false +} + +function testSet (set, version, options) { + for (var i = 0; i < set.length; i++) { + if (!set[i].test(version)) { + return false + } + } + + if (version.prerelease.length && !options.includePrerelease) { + // Find the set of versions that are allowed to have prereleases + // For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0 + // That should allow `1.2.3-pr.2` to pass. + // However, `1.2.4-alpha.notready` should NOT be allowed, + // even though it's within the range set by the comparators. + for (i = 0; i < set.length; i++) { + debug(set[i].semver) + if (set[i].semver === ANY) { + continue + } + + if (set[i].semver.prerelease.length > 0) { + var allowed = set[i].semver + if (allowed.major === version.major && + allowed.minor === version.minor && + allowed.patch === version.patch) { + return true + } + } + } + + // Version has a -pre, but it's not one of the ones we like. + return false + } + + return true +} + +exports.satisfies = satisfies +function satisfies (version, range, options) { + try { + range = new Range(range, options) + } catch (er) { + return false + } + return range.test(version) +} + +exports.maxSatisfying = maxSatisfying +function maxSatisfying (versions, range, options) { + var max = null + var maxSV = null + try { + var rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!max || maxSV.compare(v) === -1) { + // compare(max, v, true) + max = v + maxSV = new SemVer(max, options) + } + } + }) + return max +} + +exports.minSatisfying = minSatisfying +function minSatisfying (versions, range, options) { + var min = null + var minSV = null + try { + var rangeObj = new Range(range, options) + } catch (er) { + return null + } + versions.forEach(function (v) { + if (rangeObj.test(v)) { + // satisfies(v, range, options) + if (!min || minSV.compare(v) === 1) { + // compare(min, v, true) + min = v + minSV = new SemVer(min, options) + } + } + }) + return min +} + +exports.minVersion = minVersion +function minVersion (range, loose) { + range = new Range(range, loose) + + var minver = new SemVer('0.0.0') + if (range.test(minver)) { + return minver + } + + minver = new SemVer('0.0.0-0') + if (range.test(minver)) { + return minver + } + + minver = null + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i] + + comparators.forEach(function (comparator) { + // Clone to avoid manipulating the comparator's semver object. + var compver = new SemVer(comparator.semver.version) + switch (comparator.operator) { + case '>': + if (compver.prerelease.length === 0) { + compver.patch++ + } else { + compver.prerelease.push(0) + } + compver.raw = compver.format() + /* fallthrough */ + case '': + case '>=': + if (!minver || gt(minver, compver)) { + minver = compver + } + break + case '<': + case '<=': + /* Ignore maximum versions */ + break + /* istanbul ignore next */ + default: + throw new Error('Unexpected operation: ' + comparator.operator) + } + }) + } + + if (minver && range.test(minver)) { + return minver + } + + return null +} + +exports.validRange = validRange +function validRange (range, options) { + try { + // Return '*' instead of '' so that truthiness works. + // This will throw if it's invalid anyway + return new Range(range, options).range || '*' + } catch (er) { + return null + } +} + +// Determine if version is less than all the versions possible in the range +exports.ltr = ltr +function ltr (version, range, options) { + return outside(version, range, '<', options) +} + +// Determine if version is greater than all the versions possible in the range. +exports.gtr = gtr +function gtr (version, range, options) { + return outside(version, range, '>', options) +} + +exports.outside = outside +function outside (version, range, hilo, options) { + version = new SemVer(version, options) + range = new Range(range, options) + + var gtfn, ltefn, ltfn, comp, ecomp + switch (hilo) { + case '>': + gtfn = gt + ltefn = lte + ltfn = lt + comp = '>' + ecomp = '>=' + break + case '<': + gtfn = lt + ltefn = gte + ltfn = gt + comp = '<' + ecomp = '<=' + break + default: + throw new TypeError('Must provide a hilo val of "<" or ">"') + } + + // If it satisifes the range it is not outside + if (satisfies(version, range, options)) { + return false + } + + // From now on, variable terms are as if we're in "gtr" mode. + // but note that everything is flipped for the "ltr" function. + + for (var i = 0; i < range.set.length; ++i) { + var comparators = range.set[i] + + var high = null + var low = null + + comparators.forEach(function (comparator) { + if (comparator.semver === ANY) { + comparator = new Comparator('>=0.0.0') + } + high = high || comparator + low = low || comparator + if (gtfn(comparator.semver, high.semver, options)) { + high = comparator + } else if (ltfn(comparator.semver, low.semver, options)) { + low = comparator + } + }) + + // If the edge version comparator has a operator then our version + // isn't outside it + if (high.operator === comp || high.operator === ecomp) { + return false + } + + // If the lowest version comparator has an operator and our version + // is less than it then it isn't higher than the range + if ((!low.operator || low.operator === comp) && + ltefn(version, low.semver)) { + return false + } else if (low.operator === ecomp && ltfn(version, low.semver)) { + return false + } + } + return true +} + +exports.prerelease = prerelease +function prerelease (version, options) { + var parsed = parse(version, options) + return (parsed && parsed.prerelease.length) ? parsed.prerelease : null +} + +exports.intersects = intersects +function intersects (r1, r2, options) { + r1 = new Range(r1, options) + r2 = new Range(r2, options) + return r1.intersects(r2) +} + +exports.coerce = coerce +function coerce (version) { + if (version instanceof SemVer) { + return version + } + + if (typeof version !== 'string') { + return null + } + + var match = version.match(re[COERCE]) + + if (match == null) { + return null + } + + return parse(match[1] + + '.' + (match[2] || '0') + + '.' + (match[3] || '0')) +} diff --git a/node_modules/make-dir/package.json b/node_modules/make-dir/package.json index 1231db0..f2edff6 100644 --- a/node_modules/make-dir/package.json +++ b/node_modules/make-dir/package.json @@ -1,33 +1,25 @@ { - "_args": [ - [ - "make-dir@1.3.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "make-dir@1.3.0", - "_id": "make-dir@1.3.0", + "_from": "make-dir@2.1.0", + "_id": "make-dir@2.1.0", "_inBundle": false, - "_integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "_integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", "_location": "/make-dir", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "make-dir@1.3.0", + "raw": "make-dir@2.1.0", "name": "make-dir", "escapedName": "make-dir", - "rawSpec": "1.3.0", + "rawSpec": "2.1.0", "saveSpec": null, - "fetchSpec": "1.3.0" + "fetchSpec": "2.1.0" }, "_requiredBy": [ - "/decompress", "/download" ], - "_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "_spec": "1.3.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "_spec": "2.1.0", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -37,23 +29,28 @@ "url": "https://github.com/sindresorhus/make-dir/issues" }, "dependencies": { - "pify": "^3.0.0" + "pify": "^4.0.1", + "semver": "^5.6.0" }, "description": "Make a directory and its parents if needed - Think `mkdir -p`", "devDependencies": { - "ava": "*", + "@types/graceful-fs": "^4.1.3", + "@types/node": "^11.10.4", + "ava": "^1.2.0", "codecov": "^3.0.0", "graceful-fs": "^4.1.11", - "nyc": "^11.3.0", + "nyc": "^13.1.0", "path-type": "^3.0.0", "tempy": "^0.2.1", - "xo": "^0.20.0" + "tsd-check": "^0.3.0", + "xo": "^0.24.0" }, "engines": { - "node": ">=4" + "node": ">=6" }, "files": [ - "index.js" + "index.js", + "index.d.ts" ], "homepage": "https://github.com/sindresorhus/make-dir#readme", "keywords": [ @@ -84,7 +81,7 @@ "url": "git+https://github.com/sindresorhus/make-dir.git" }, "scripts": { - "test": "xo && nyc ava" + "test": "xo && nyc ava && tsd-check" }, - "version": "1.3.0" -} + "version": "2.1.0" +} \ No newline at end of file diff --git a/node_modules/make-dir/readme.md b/node_modules/make-dir/readme.md index 8a32bf4..8c225c1 100644 --- a/node_modules/make-dir/readme.md +++ b/node_modules/make-dir/readme.md @@ -1,4 +1,4 @@ -# make-dir [![Build Status: macOS & Linux](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/e0vtt8y600w91gcs/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/make-dir/branch/master) [![codecov](https://codecov.io/gh/sindresorhus/make-dir/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/make-dir) +# make-dir [![Build Status](https://travis-ci.org/sindresorhus/make-dir.svg?branch=master)](https://travis-ci.org/sindresorhus/make-dir) [![codecov](https://codecov.io/gh/sindresorhus/make-dir/branch/master/graph/badge.svg)](https://codecov.io/gh/sindresorhus/make-dir) > Make a directory and its parents if needed - Think `mkdir -p` @@ -11,6 +11,7 @@ - CI-tested on macOS, Linux, and Windows - Actively maintained - Doesn't bundle a CLI +- Uses native the `fs.mkdir/mkdirSync` [`recursive` option](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_mkdir_path_options_callback) in Node.js >=10.12.0 unless [overridden](#fs) ## Install @@ -32,10 +33,12 @@ $ tree ```js const makeDir = require('make-dir'); -makeDir('unicorn/rainbow/cake').then(path => { +(async () => { + const path = await makeDir('unicorn/rainbow/cake'); + console.log(path); //=> '/Users/sindresorhus/fun/unicorn/rainbow/cake' -}); +})(); ``` ``` @@ -51,10 +54,12 @@ Multiple directories: ```js const makeDir = require('make-dir'); -Promise.all([ - makeDir('unicorn/rainbow') - makeDir('foo/bar') -]).then(paths => { +(async () => { + const paths = await Promise.all([ + makeDir('unicorn/rainbow'), + makeDir('foo/bar') + ]); + console.log(paths); /* [ @@ -62,7 +67,7 @@ Promise.all([ '/Users/sindresorhus/fun/foo/bar' ] */ -}); +})(); ``` @@ -100,6 +105,8 @@ Default: `require('fs')` Use a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs). +Using a custom `fs` implementation will block the use of the native `recursive` option if `fs.mkdir` or `fs.mkdirSync` is not the native function. + ## Related diff --git a/node_modules/mime-db/HISTORY.md b/node_modules/mime-db/HISTORY.md index 6233527..8afff37 100644 --- a/node_modules/mime-db/HISTORY.md +++ b/node_modules/mime-db/HISTORY.md @@ -1,3 +1,18 @@ +1.43.0 / 2020-01-05 +=================== + + * Add `application/x-keepass2` with extension `.kdbx` + * Add extension `.mxmf` to `audio/mobile-xmf` + * Add extensions from IANA for `application/*+xml` types + * Add new upstream MIME types + +1.42.0 / 2019-09-25 +=================== + + * Add `image/vnd.ms-dds` with extension `.dds` + * Add new upstream MIME types + * Remove compressible from `multipart/mixed` + 1.41.0 / 2019-08-30 =================== diff --git a/node_modules/mime-db/README.md b/node_modules/mime-db/README.md index dcc9d09..68e3a1a 100644 --- a/node_modules/mime-db/README.md +++ b/node_modules/mime-db/README.md @@ -76,13 +76,19 @@ and the values being an object with the following keys: To update the build, run `npm run build`. -## Adding Custom Media Types +### Adding Custom Media Types The best way to get new media types included in this library is to register them with the IANA. The community registration procedure is outlined in [RFC 6838 section 5](http://tools.ietf.org/html/rfc6838#section-5). Types registered with the IANA are automatically pulled into this library. +If that is not possible / feasible, they can be added directly here as a +"custom" type. To do this, it is required to have a primary source that +definitively lists the media type. If an extension is going to be listed as +associateed with this media type, the source must definitively link the +media type and extension as well. + [coveralls-image]: https://badgen.net/coveralls/c/github/jshttp/mime-db/master [coveralls-url]: https://coveralls.io/r/jshttp/mime-db?branch=master [node-image]: https://badgen.net/npm/node/mime-db diff --git a/node_modules/mime-db/db.json b/node_modules/mime-db/db.json index 22d1495..cfa3c63 100644 --- a/node_modules/mime-db/db.json +++ b/node_modules/mime-db/db.json @@ -92,7 +92,8 @@ }, "application/atomdeleted+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["atomdeleted"] }, "application/atomicmail": { "source": "iana" @@ -104,15 +105,22 @@ }, "application/atsc-dwd+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["dwd"] }, "application/atsc-held+xml": { + "source": "iana", + "compressible": true, + "extensions": ["held"] + }, + "application/atsc-rdt+json": { "source": "iana", "compressible": true }, "application/atsc-rsat+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["rsat"] }, "application/atxml": { "source": "iana" @@ -142,7 +150,8 @@ }, "application/calendar+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xcs"] }, "application/call-completion": { "source": "iana" @@ -153,6 +162,9 @@ "application/cbor": { "source": "iana" }, + "application/cbor-seq": { + "source": "iana" + }, "application/cccex": { "source": "iana" }, @@ -167,7 +179,8 @@ }, "application/cdfx+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["cdfx"] }, "application/cdmi-capability": { "source": "iana", @@ -206,6 +219,10 @@ "application/cfw": { "source": "iana" }, + "application/clue+xml": { + "source": "iana", + "compressible": true + }, "application/clue_info+xml": { "source": "iana", "compressible": true @@ -403,7 +420,8 @@ }, "application/emotionml+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["emotionml"] }, "application/encaprtp": { "source": "iana" @@ -436,7 +454,8 @@ }, "application/fdt+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["fdt"] }, "application/fhir+json": { "source": "iana", @@ -577,7 +596,8 @@ }, "application/its+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["its"] }, "application/java-archive": { "source": "apache", @@ -662,7 +682,8 @@ }, "application/lgr+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["lgr"] }, "application/link-format": { "source": "iana" @@ -821,11 +842,13 @@ }, "application/mmt-aei+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["maei"] }, "application/mmt-usd+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["musd"] }, "application/mods+xml": { "source": "iana", @@ -863,11 +886,13 @@ }, "application/mrb-consumer+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xdf"] }, "application/mrb-publish+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xdf"] }, "application/msc-ivr+xml": { "source": "iana", @@ -886,6 +911,9 @@ "source": "iana", "compressible": true }, + "application/multipart-core": { + "source": "iana" + }, "application/mxf": { "source": "iana", "extensions": ["mxf"] @@ -970,7 +998,8 @@ }, "application/p2p-overlay+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["relo"] }, "application/parityfec": { "source": "iana" @@ -1088,7 +1117,8 @@ }, "application/provenance+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["provx"] }, "application/prs.alvestrand.titrax-sheet": { "source": "iana" @@ -1182,15 +1212,18 @@ }, "application/route-apd+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["rapd"] }, "application/route-s-tsid+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["sls"] }, "application/route-usd+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["rusd"] }, "application/rpki-ghostbusters": { "source": "iana", @@ -1284,7 +1317,8 @@ }, "application/senml+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["senmlx"] }, "application/senml-exi": { "source": "iana" @@ -1298,7 +1332,8 @@ }, "application/sensml+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["sensmlx"] }, "application/sensml-exi": { "source": "iana" @@ -1420,6 +1455,11 @@ "source": "iana", "compressible": true }, + "application/swid+xml": { + "source": "iana", + "compressible": true, + "extensions": ["swidtag"] + }, "application/tamp-apex-update": { "source": "iana" }, @@ -1505,7 +1545,8 @@ }, "application/ttml+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["ttml"] }, "application/tve-trigger": { "source": "iana" @@ -1525,7 +1566,8 @@ }, "application/urc-ressheet+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["rsheet"] }, "application/urc-targetdesc+xml": { "source": "iana", @@ -1551,7 +1593,8 @@ }, "application/vnd.1000minds.decision-model+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["1km"] }, "application/vnd.3gpp-prose+xml": { "source": "iana", @@ -1788,9 +1831,36 @@ "application/vnd.afpc.afplinedata": { "source": "iana" }, + "application/vnd.afpc.afplinedata-pagedef": { + "source": "iana" + }, + "application/vnd.afpc.foca-charset": { + "source": "iana" + }, + "application/vnd.afpc.foca-codedfont": { + "source": "iana" + }, + "application/vnd.afpc.foca-codepage": { + "source": "iana" + }, "application/vnd.afpc.modca": { "source": "iana" }, + "application/vnd.afpc.modca-formdef": { + "source": "iana" + }, + "application/vnd.afpc.modca-mediummap": { + "source": "iana" + }, + "application/vnd.afpc.modca-objectcontainer": { + "source": "iana" + }, + "application/vnd.afpc.modca-overlay": { + "source": "iana" + }, + "application/vnd.afpc.modca-pagesegment": { + "source": "iana" + }, "application/vnd.ah-barcode": { "source": "iana" }, @@ -1865,6 +1935,10 @@ "source": "iana", "compressible": true }, + "application/vnd.aplextor.warrp+json": { + "source": "iana", + "compressible": true + }, "application/vnd.apothekende.reservation+json": { "source": "iana", "compressible": true @@ -1929,7 +2003,8 @@ }, "application/vnd.balsamiq.bmml+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["bmml"] }, "application/vnd.balsamiq.bmpr": { "source": "iana" @@ -2579,6 +2654,10 @@ "application/vnd.ffsns": { "source": "iana" }, + "application/vnd.ficlab.flb+zip": { + "source": "iana", + "compressible": false + }, "application/vnd.filmit.zfc": { "source": "iana" }, @@ -2677,6 +2756,10 @@ "source": "iana", "extensions": ["txd"] }, + "application/vnd.gentics.grd+json": { + "source": "iana", + "compressible": true + }, "application/vnd.geo+json": { "source": "iana", "compressible": true @@ -3643,7 +3726,8 @@ }, "application/vnd.nokia.n-gage.ac+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["ac"] }, "application/vnd.nokia.n-gage.data": { "source": "iana", @@ -3997,7 +4081,8 @@ }, "application/vnd.openblox.game+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["obgx"] }, "application/vnd.openblox.game-binary": { "source": "iana" @@ -4011,7 +4096,8 @@ }, "application/vnd.openstreetmap.data+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["osm"] }, "application/vnd.openxmlformats-officedocument.custom-properties+xml": { "source": "iana", @@ -4690,7 +4776,8 @@ }, "application/vnd.software602.filler.form+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["fo"] }, "application/vnd.software602.filler.form-xml-zip": { "source": "iana" @@ -4837,7 +4924,8 @@ }, "application/vnd.syncml.dmddf+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["ddf"] }, "application/vnd.syncml.dmtnds+wbxml": { "source": "iana" @@ -5474,6 +5562,9 @@ "application/x-javascript": { "compressible": true }, + "application/x-keepass2": { + "extensions": ["kdbx"] + }, "application/x-latex": { "source": "apache", "compressible": false, @@ -5786,11 +5877,13 @@ }, "application/xcap-att+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xav"] }, "application/xcap-caps+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xca"] }, "application/xcap-diff+xml": { "source": "iana", @@ -5799,15 +5892,18 @@ }, "application/xcap-el+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xel"] }, "application/xcap-error+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xer"] }, "application/xcap-ns+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xns"] }, "application/xcon-conference-info+xml": { "source": "iana", @@ -5833,7 +5929,8 @@ }, "application/xliff+xml": { "source": "iana", - "compressible": true + "compressible": true, + "extensions": ["xlf"] }, "application/xml": { "source": "iana", @@ -6153,7 +6250,8 @@ "extensions": ["mid","midi","kar","rmi"] }, "audio/mobile-xmf": { - "source": "iana" + "source": "iana", + "extensions": ["mxmf"] }, "audio/mp3": { "compressible": false, @@ -6670,6 +6768,14 @@ "source": "iana", "extensions": ["jxrs"] }, + "image/jxs": { + "source": "iana", + "extensions": ["jxs"] + }, + "image/jxsc": { + "source": "iana", + "extensions": ["jxsc"] + }, "image/jxsi": { "source": "iana", "extensions": ["jxsi"] @@ -6791,6 +6897,9 @@ "image/vnd.mozilla.apng": { "source": "iana" }, + "image/vnd.ms-dds": { + "extensions": ["dds"] + }, "image/vnd.ms-modi": { "source": "iana", "extensions": ["mdi"] @@ -7143,8 +7252,7 @@ "source": "iana" }, "multipart/mixed": { - "source": "iana", - "compressible": false + "source": "iana" }, "multipart/multilingual": { "source": "iana" @@ -7411,6 +7519,9 @@ "text/vnd.esmertec.theme-descriptor": { "source": "iana" }, + "text/vnd.ficlab.flt": { + "source": "iana" + }, "text/vnd.fly": { "source": "iana", "extensions": ["fly"] @@ -7489,6 +7600,7 @@ "extensions": ["wmls"] }, "text/vtt": { + "source": "iana", "charset": "UTF-8", "compressible": true, "extensions": ["vtt"] diff --git a/node_modules/mime-db/package.json b/node_modules/mime-db/package.json index 3ffe8a5..e0cf8ae 100644 --- a/node_modules/mime-db/package.json +++ b/node_modules/mime-db/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "mime-db@1.41.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "mime-db@1.41.0", - "_id": "mime-db@1.41.0", + "_from": "mime-db@1.43.0", + "_id": "mime-db@1.43.0", "_inBundle": false, - "_integrity": "sha512-B5gxBI+2K431XW8C2rcc/lhppbuji67nf9v39eH8pkWoZDxnAL0PxdpH32KYRScniF8qDHBDlI+ipgg5WrCUYw==", + "_integrity": "sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ==", "_location": "/mime-db", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "mime-db@1.41.0", + "raw": "mime-db@1.43.0", "name": "mime-db", "escapedName": "mime-db", - "rawSpec": "1.41.0", + "rawSpec": "1.43.0", "saveSpec": null, - "fetchSpec": "1.41.0" + "fetchSpec": "1.43.0" }, "_requiredBy": [ "/ext-list" ], - "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.41.0.tgz", - "_spec": "1.41.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.43.0.tgz", + "_spec": "1.43.0", "bugs": { "url": "https://github.com/jshttp/mime-db/issues" }, @@ -48,19 +41,19 @@ ], "description": "Media Type Database", "devDependencies": { - "bluebird": "3.5.5", + "bluebird": "3.7.2", "co": "4.6.0", "cogent": "1.0.1", - "csv-parse": "4.4.5", - "eslint": "6.2.2", + "csv-parse": "4.8.3", + "eslint": "6.8.0", "eslint-config-standard": "14.1.0", - "eslint-plugin-import": "2.18.2", - "eslint-plugin-node": "9.2.0", + "eslint-plugin-import": "2.19.1", + "eslint-plugin-node": "11.0.0", "eslint-plugin-promise": "4.2.1", "eslint-plugin-standard": "4.0.1", "gnode": "0.1.2", - "mocha": "6.2.0", - "nyc": "14.1.1", + "mocha": "7.0.0", + "nyc": "15.0.0", "raw-body": "2.4.1", "stream-to-array": "2.3.0" }, @@ -100,5 +93,5 @@ "update": "npm run fetch && npm run build", "version": "node scripts/version-history.js && git add HISTORY.md" }, - "version": "1.41.0" -} + "version": "1.43.0" +} \ No newline at end of file diff --git a/node_modules/mimic-response/package.json b/node_modules/mimic-response/package.json index 3ba491b..f4ea1e7 100644 --- a/node_modules/mimic-response/package.json +++ b/node_modules/mimic-response/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "mimic-response@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "mimic-response@1.0.1", "_id": "mimic-response@1.0.1", "_inBundle": false, @@ -28,7 +22,6 @@ ], "_resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -71,4 +64,4 @@ "test": "xo && ava" }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/normalize-url/node_modules/sort-keys/package.json b/node_modules/normalize-url/node_modules/sort-keys/package.json index d52b5fa..d486eb6 100644 --- a/node_modules/normalize-url/node_modules/sort-keys/package.json +++ b/node_modules/normalize-url/node_modules/sort-keys/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "sort-keys@2.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "sort-keys@2.0.0", "_id": "sort-keys@2.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", "_spec": "2.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -72,4 +65,4 @@ "test": "xo && ava" }, "version": "2.0.0" -} +} \ No newline at end of file diff --git a/node_modules/normalize-url/package.json b/node_modules/normalize-url/package.json index 5070d7b..afb5610 100644 --- a/node_modules/normalize-url/package.json +++ b/node_modules/normalize-url/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "normalize-url@2.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "normalize-url@2.0.1", "_id": "normalize-url@2.0.1", "_inBundle": false, @@ -28,7 +22,6 @@ ], "_resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", "_spec": "2.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -80,4 +73,4 @@ "test": "xo && ava" }, "version": "2.0.1" -} +} \ No newline at end of file diff --git a/node_modules/npm-conf/index.js b/node_modules/npm-conf/index.js deleted file mode 100644 index ee735e1..0000000 --- a/node_modules/npm-conf/index.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; -const path = require('path'); -const Conf = require('./lib/conf'); -const defaults = require('./lib/defaults'); - -// https://github.com/npm/npm/blob/latest/lib/config/core.js#L101-L200 -module.exports = opts => { - const conf = new Conf(Object.assign({}, defaults.defaults)); - - conf.add(Object.assign({}, opts), 'cli'); - conf.addEnv(); - conf.loadPrefix(); - - const projectConf = path.resolve(conf.localPrefix, '.npmrc'); - const userConf = conf.get('userconfig'); - - if (!conf.get('global') && projectConf !== userConf) { - conf.addFile(projectConf, 'project'); - } else { - conf.add({}, 'project'); - } - - conf.addFile(conf.get('userconfig'), 'user'); - - if (conf.get('prefix')) { - const etc = path.resolve(conf.get('prefix'), 'etc'); - conf.root.globalconfig = path.resolve(etc, 'npmrc'); - conf.root.globalignorefile = path.resolve(etc, 'npmignore'); - } - - conf.addFile(conf.get('globalconfig'), 'global'); - conf.loadUser(); - - const caFile = conf.get('cafile'); - - if (caFile) { - conf.loadCAFile(caFile); - } - - return conf; -}; - -module.exports.defaults = Object.assign({}, defaults.defaults); diff --git a/node_modules/npm-conf/lib/conf.js b/node_modules/npm-conf/lib/conf.js deleted file mode 100644 index b2a8f0a..0000000 --- a/node_modules/npm-conf/lib/conf.js +++ /dev/null @@ -1,174 +0,0 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const ConfigChain = require('config-chain').ConfigChain; -const util = require('./util'); - -class Conf extends ConfigChain { - // https://github.com/npm/npm/blob/latest/lib/config/core.js#L208-L222 - constructor(base) { - super(base); - this.root = base; - } - - // https://github.com/npm/npm/blob/latest/lib/config/core.js#L332-L342 - add(data, marker) { - try { - for (const x of Object.keys(data)) { - data[x] = util.parseField(data[x], x); - } - } catch (err) { - throw err; - } - - return super.add(data, marker); - } - - // https://github.com/npm/npm/blob/latest/lib/config/core.js#L312-L325 - addFile(file, name) { - name = name || file; - - const marker = {__source__: name}; - - this.sources[name] = {path: file, type: 'ini'}; - this.push(marker); - this._await(); - - try { - const contents = fs.readFileSync(file, 'utf8'); - this.addString(contents, file, 'ini', marker); - } catch (err) { - this.add({}, marker); - } - - return this; - } - - // https://github.com/npm/npm/blob/latest/lib/config/core.js#L344-L360 - addEnv(env) { - env = env || process.env; - - const conf = {}; - - Object.keys(env) - .filter(x => /^npm_config_/i.test(x)) - .forEach(x => { - if (!env[x]) { - return; - } - - const p = x.toLowerCase() - .replace(/^npm_config_/, '') - .replace(/(?!^)_/g, '-'); - - conf[p] = env[x]; - }); - - return super.addEnv('', conf, 'env'); - } - - // https://github.com/npm/npm/blob/latest/lib/config/load-prefix.js - loadPrefix() { - const cli = this.list[0]; - - Object.defineProperty(this, 'prefix', { - enumerable: true, - set: prefix => { - const g = this.get('global'); - this[g ? 'globalPrefix' : 'localPrefix'] = prefix; - }, - get: () => { - const g = this.get('global'); - return g ? this.globalPrefix : this.localPrefix; - } - }); - - Object.defineProperty(this, 'globalPrefix', { - enumerable: true, - set: prefix => { - this.set('prefix', prefix); - }, - get: () => { - return path.resolve(this.get('prefix')); - } - }); - - let p; - - Object.defineProperty(this, 'localPrefix', { - enumerable: true, - set: prefix => { - p = prefix; - }, - get: () => { - return p; - } - }); - - if (Object.prototype.hasOwnProperty.call(cli, 'prefix')) { - p = path.resolve(cli.prefix); - } else { - try { - const prefix = util.findPrefix(process.cwd()); - p = prefix; - } catch (err) { - throw err; - } - } - - return p; - } - - // https://github.com/npm/npm/blob/latest/lib/config/load-cafile.js - loadCAFile(file) { - if (!file) { - return; - } - - try { - const contents = fs.readFileSync(file, 'utf8'); - const delim = '-----END CERTIFICATE-----'; - const output = contents - .split(delim) - .filter(x => Boolean(x.trim())) - .map(x => x.trimLeft() + delim); - - this.set('ca', output); - } catch (err) { - if (err.code === 'ENOENT') { - return; - } - - throw err; - } - } - - // https://github.com/npm/npm/blob/latest/lib/config/set-user.js - loadUser() { - const defConf = this.root; - - if (this.get('global')) { - return; - } - - if (process.env.SUDO_UID) { - defConf.user = Number(process.env.SUDO_UID); - return; - } - - const prefix = path.resolve(this.get('prefix')); - - try { - const stats = fs.statSync(prefix); - defConf.user = stats.uid; - } catch (err) { - if (err.code === 'ENOENT') { - return; - } - - throw err; - } - } -} - -module.exports = Conf; diff --git a/node_modules/npm-conf/lib/defaults.js b/node_modules/npm-conf/lib/defaults.js deleted file mode 100644 index 6c0db4a..0000000 --- a/node_modules/npm-conf/lib/defaults.js +++ /dev/null @@ -1,169 +0,0 @@ - - // Generated with `lib/make.js` - 'use strict'; - const os = require('os'); - const path = require('path'); - - const temp = os.tmpdir(); - const uidOrPid = process.getuid ? process.getuid() : process.pid; - const hasUnicode = () => true; - const isWindows = process.platform === 'win32'; - - const osenv = { - editor: () => process.env.EDITOR || process.env.VISUAL || (isWindows ? 'notepad.exe' : 'vi'), - shell: () => isWindows ? (process.env.COMSPEC || 'cmd.exe') : (process.env.SHELL || '/bin/bash') - }; - - const umask = { - fromString: () => process.umask() - }; - - let home = os.homedir(); - - if (home) { - process.env.HOME = home; - } else { - home = path.resolve(temp, 'npm-' + uidOrPid); - } - - const cacheExtra = process.platform === 'win32' ? 'npm-cache' : '.npm'; - const cacheRoot = process.platform === 'win32' ? process.env.APPDATA : home; - const cache = path.resolve(cacheRoot, cacheExtra); - - let defaults; - let globalPrefix; - - Object.defineProperty(exports, 'defaults', { - get: function () { - if (defaults) return defaults; - - if (process.env.PREFIX) { - globalPrefix = process.env.PREFIX; - } else if (process.platform === 'win32') { - // c:\node\node.exe --> prefix=c:\node\ - globalPrefix = path.dirname(process.execPath); - } else { - // /usr/local/bin/node --> prefix=/usr/local - globalPrefix = path.dirname(path.dirname(process.execPath)); // destdir only is respected on Unix - - if (process.env.DESTDIR) { - globalPrefix = path.join(process.env.DESTDIR, globalPrefix); - } - } - - defaults = { - access: null, - 'allow-same-version': false, - 'always-auth': false, - also: null, - 'auth-type': 'legacy', - 'bin-links': true, - browser: null, - ca: null, - cafile: null, - cache: cache, - 'cache-lock-stale': 60000, - 'cache-lock-retries': 10, - 'cache-lock-wait': 10000, - 'cache-max': Infinity, - 'cache-min': 10, - cert: null, - color: true, - depth: Infinity, - description: true, - dev: false, - 'dry-run': false, - editor: osenv.editor(), - 'engine-strict': false, - force: false, - 'fetch-retries': 2, - 'fetch-retry-factor': 10, - 'fetch-retry-mintimeout': 10000, - 'fetch-retry-maxtimeout': 60000, - git: 'git', - 'git-tag-version': true, - global: false, - globalconfig: path.resolve(globalPrefix, 'etc', 'npmrc'), - 'global-style': false, - group: process.platform === 'win32' ? 0 : process.env.SUDO_GID || process.getgid && process.getgid(), - 'ham-it-up': false, - heading: 'npm', - 'if-present': false, - 'ignore-prepublish': false, - 'ignore-scripts': false, - 'init-module': path.resolve(home, '.npm-init.js'), - 'init-author-name': '', - 'init-author-email': '', - 'init-author-url': '', - 'init-version': '1.0.0', - 'init-license': 'ISC', - json: false, - key: null, - 'legacy-bundling': false, - link: false, - 'local-address': undefined, - loglevel: 'notice', - logstream: process.stderr, - 'logs-max': 10, - long: false, - maxsockets: 50, - message: '%s', - 'metrics-registry': null, - 'node-version': process.version, - 'offline': false, - 'onload-script': false, - only: null, - optional: true, - 'package-lock': true, - parseable: false, - 'prefer-offline': false, - 'prefer-online': false, - prefix: globalPrefix, - production: process.env.NODE_ENV === 'production', - 'progress': !process.env.TRAVIS && !process.env.CI, - 'proprietary-attribs': true, - proxy: null, - 'https-proxy': null, - 'user-agent': 'npm/{npm-version} ' + 'node/{node-version} ' + '{platform} ' + '{arch}', - 'rebuild-bundle': true, - registry: 'https://registry.npmjs.org/', - rollback: true, - save: true, - 'save-bundle': false, - 'save-dev': false, - 'save-exact': false, - 'save-optional': false, - 'save-prefix': '^', - 'save-prod': false, - scope: '', - 'script-shell': null, - 'scripts-prepend-node-path': 'warn-only', - searchopts: '', - searchexclude: null, - searchlimit: 20, - searchstaleness: 15 * 60, - 'send-metrics': false, - shell: osenv.shell(), - shrinkwrap: true, - 'sign-git-tag': false, - 'sso-poll-frequency': 500, - 'sso-type': 'oauth', - 'strict-ssl': true, - tag: 'latest', - 'tag-version-prefix': 'v', - timing: false, - tmp: temp, - unicode: hasUnicode(), - 'unsafe-perm': process.platform === 'win32' || process.platform === 'cygwin' || !(process.getuid && process.setuid && process.getgid && process.setgid) || process.getuid() !== 0, - usage: false, - user: process.platform === 'win32' ? 0 : 'nobody', - userconfig: path.resolve(home, '.npmrc'), - umask: process.umask ? process.umask() : umask.fromString('022'), - version: false, - versions: false, - viewer: process.platform === 'win32' ? 'browser' : 'man', - _exit: true - }; - return defaults; - } -}) diff --git a/node_modules/npm-conf/lib/make.js b/node_modules/npm-conf/lib/make.js deleted file mode 100644 index fb79d6c..0000000 --- a/node_modules/npm-conf/lib/make.js +++ /dev/null @@ -1,91 +0,0 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const babylon = require('babylon'); -const generate = require('babel-generator').default; -const traverse = require('babel-traverse').default; - -const defaultsTemplate = body => ` - // Generated with \`lib/make.js\` - 'use strict'; - const os = require('os'); - const path = require('path'); - - const temp = os.tmpdir(); - const uidOrPid = process.getuid ? process.getuid() : process.pid; - const hasUnicode = () => true; - const isWindows = process.platform === 'win32'; - - const osenv = { - editor: () => process.env.EDITOR || process.env.VISUAL || (isWindows ? 'notepad.exe' : 'vi'), - shell: () => isWindows ? (process.env.COMSPEC || 'cmd.exe') : (process.env.SHELL || '/bin/bash') - }; - - const umask = { - fromString: () => process.umask() - }; - - let home = os.homedir(); - - if (home) { - process.env.HOME = home; - } else { - home = path.resolve(temp, 'npm-' + uidOrPid); - } - - const cacheExtra = process.platform === 'win32' ? 'npm-cache' : '.npm'; - const cacheRoot = process.platform === 'win32' ? process.env.APPDATA : home; - const cache = path.resolve(cacheRoot, cacheExtra); - - let defaults; - let globalPrefix; - - ${body} -`; - -const typesTemplate = body => ` - // Generated with \`lib/make.js\` - 'use strict'; - const path = require('path'); - const Stream = require('stream').Stream; - const url = require('url'); - - const Umask = () => {}; - const getLocalAddresses = () => []; - const semver = () => {}; - - ${body} -`; - -const defaults = require.resolve('npm/lib/config/defaults'); -const ast = babylon.parse(fs.readFileSync(defaults, 'utf8')); - -const isDefaults = node => - node.callee.type === 'MemberExpression' && - node.callee.object.name === 'Object' && - node.callee.property.name === 'defineProperty' && - node.arguments.some(x => x.name === 'exports'); - -const isTypes = node => - node.type === 'MemberExpression' && - node.object.name === 'exports' && - node.property.name === 'types'; - -let defs; -let types; - -traverse(ast, { - CallExpression(path) { - if (isDefaults(path.node)) { - defs = path.node; - } - }, - AssignmentExpression(path) { - if (path.node.left && isTypes(path.node.left)) { - types = path.node; - } - } -}); - -fs.writeFileSync(path.join(__dirname, 'defaults.js'), defaultsTemplate(generate(defs, {}, ast).code)); -fs.writeFileSync(path.join(__dirname, 'types.js'), typesTemplate(generate(types, {}, ast).code)); diff --git a/node_modules/npm-conf/lib/types.js b/node_modules/npm-conf/lib/types.js deleted file mode 100644 index ae82bc5..0000000 --- a/node_modules/npm-conf/lib/types.js +++ /dev/null @@ -1,127 +0,0 @@ - - // Generated with `lib/make.js` - 'use strict'; - const path = require('path'); - const Stream = require('stream').Stream; - const url = require('url'); - - const Umask = () => {}; - const getLocalAddresses = () => []; - const semver = () => {}; - - exports.types = { - access: [null, 'restricted', 'public'], - 'allow-same-version': Boolean, - 'always-auth': Boolean, - also: [null, 'dev', 'development'], - 'auth-type': ['legacy', 'sso', 'saml', 'oauth'], - 'bin-links': Boolean, - browser: [null, String], - ca: [null, String, Array], - cafile: path, - cache: path, - 'cache-lock-stale': Number, - 'cache-lock-retries': Number, - 'cache-lock-wait': Number, - 'cache-max': Number, - 'cache-min': Number, - cert: [null, String], - color: ['always', Boolean], - depth: Number, - description: Boolean, - dev: Boolean, - 'dry-run': Boolean, - editor: String, - 'engine-strict': Boolean, - force: Boolean, - 'fetch-retries': Number, - 'fetch-retry-factor': Number, - 'fetch-retry-mintimeout': Number, - 'fetch-retry-maxtimeout': Number, - git: String, - 'git-tag-version': Boolean, - global: Boolean, - globalconfig: path, - 'global-style': Boolean, - group: [Number, String], - 'https-proxy': [null, url], - 'user-agent': String, - 'ham-it-up': Boolean, - 'heading': String, - 'if-present': Boolean, - 'ignore-prepublish': Boolean, - 'ignore-scripts': Boolean, - 'init-module': path, - 'init-author-name': String, - 'init-author-email': String, - 'init-author-url': ['', url], - 'init-license': String, - 'init-version': semver, - json: Boolean, - key: [null, String], - 'legacy-bundling': Boolean, - link: Boolean, - // local-address must be listed as an IP for a local network interface - // must be IPv4 due to node bug - 'local-address': getLocalAddresses(), - loglevel: ['silent', 'error', 'warn', 'notice', 'http', 'timing', 'info', 'verbose', 'silly'], - logstream: Stream, - 'logs-max': Number, - long: Boolean, - maxsockets: Number, - message: String, - 'metrics-registry': [null, String], - 'node-version': [null, semver], - offline: Boolean, - 'onload-script': [null, String], - only: [null, 'dev', 'development', 'prod', 'production'], - optional: Boolean, - 'package-lock': Boolean, - parseable: Boolean, - 'prefer-offline': Boolean, - 'prefer-online': Boolean, - prefix: path, - production: Boolean, - progress: Boolean, - 'proprietary-attribs': Boolean, - proxy: [null, false, url], - // allow proxy to be disabled explicitly - 'rebuild-bundle': Boolean, - registry: [null, url], - rollback: Boolean, - save: Boolean, - 'save-bundle': Boolean, - 'save-dev': Boolean, - 'save-exact': Boolean, - 'save-optional': Boolean, - 'save-prefix': String, - 'save-prod': Boolean, - scope: String, - 'script-shell': [null, String], - 'scripts-prepend-node-path': [false, true, 'auto', 'warn-only'], - searchopts: String, - searchexclude: [null, String], - searchlimit: Number, - searchstaleness: Number, - 'send-metrics': Boolean, - shell: String, - shrinkwrap: Boolean, - 'sign-git-tag': Boolean, - 'sso-poll-frequency': Number, - 'sso-type': [null, 'oauth', 'saml'], - 'strict-ssl': Boolean, - tag: String, - timing: Boolean, - tmp: path, - unicode: Boolean, - 'unsafe-perm': Boolean, - usage: Boolean, - user: [Number, String], - userconfig: path, - umask: Umask, - version: Boolean, - 'tag-version-prefix': String, - versions: Boolean, - viewer: String, - _exit: Boolean -} diff --git a/node_modules/npm-conf/lib/util.js b/node_modules/npm-conf/lib/util.js deleted file mode 100644 index 5cde7bc..0000000 --- a/node_modules/npm-conf/lib/util.js +++ /dev/null @@ -1,147 +0,0 @@ -'use strict'; -const fs = require('fs'); -const path = require('path'); -const types = require('./types'); - -// https://github.com/npm/npm/blob/latest/lib/config/core.js#L409-L423 -const envReplace = str => { - if (typeof str !== 'string' || !str) { - return str; - } - - // Replace any ${ENV} values with the appropriate environment - const regex = /(\\*)\$\{([^}]+)\}/g; - - return str.replace(regex, (orig, esc, name) => { - esc = esc.length > 0 && esc.length % 2; - - if (esc) { - return orig; - } - - if (process.env[name] === undefined) { - throw new Error(`Failed to replace env in config: ${orig}`); - } - - return process.env[name]; - }); -}; - -// https://github.com/npm/npm/blob/latest/lib/config/core.js#L362-L407 -const parseField = (field, key) => { - if (typeof field !== 'string') { - return field; - } - - const typeList = [].concat(types[key]); - const isPath = typeList.indexOf(path) !== -1; - const isBool = typeList.indexOf(Boolean) !== -1; - const isString = typeList.indexOf(String) !== -1; - const isNumber = typeList.indexOf(Number) !== -1; - - field = `${field}`.trim(); - - if (/^".*"$/.test(field)) { - try { - field = JSON.parse(field); - } catch (err) { - throw new Error(`Failed parsing JSON config key ${key}: ${field}`); - } - } - - if (isBool && !isString && field === '') { - return true; - } - - switch (field) { // eslint-disable-line default-case - case 'true': { - return true; - } - - case 'false': { - return false; - } - - case 'null': { - return null; - } - - case 'undefined': { - return undefined; - } - } - - field = envReplace(field); - - if (isPath) { - const regex = process.platform === 'win32' ? /^~(\/|\\)/ : /^~\//; - - if (regex.test(field) && process.env.HOME) { - field = path.resolve(process.env.HOME, field.substr(2)); - } - - field = path.resolve(field); - } - - if (isNumber && !field.isNan()) { - field = Number(field); - } - - return field; -}; - -// https://github.com/npm/npm/blob/latest/lib/config/find-prefix.js -const findPrefix = name => { - name = path.resolve(name); - - let walkedUp = false; - - while (path.basename(name) === 'node_modules') { - name = path.dirname(name); - walkedUp = true; - } - - if (walkedUp) { - return name; - } - - const find = (name, original) => { - const regex = /^[a-zA-Z]:(\\|\/)?$/; - - if (name === '/' || (process.platform === 'win32' && regex.test(name))) { - return original; - } - - try { - const files = fs.readdirSync(name); - - if (files.indexOf('node_modules') !== -1 || files.indexOf('package.json') !== -1) { - return name; - } - - const dirname = path.dirname(name); - - if (dirname === name) { - return original; - } - - return find(dirname, original); - } catch (err) { - if (name === original) { - if (err.code === 'ENOENT') { - return original; - } - - throw err; - } - - return original; - } - }; - - return find(name, name); -}; - -exports.envReplace = envReplace; -exports.findPrefix = findPrefix; -exports.parseField = parseField; diff --git a/node_modules/npm-conf/package.json b/node_modules/npm-conf/package.json deleted file mode 100644 index d4d93a7..0000000 --- a/node_modules/npm-conf/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "_args": [ - [ - "npm-conf@1.1.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "npm-conf@1.1.3", - "_id": "npm-conf@1.1.3", - "_inBundle": false, - "_integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==", - "_location": "/npm-conf", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "npm-conf@1.1.3", - "name": "npm-conf", - "escapedName": "npm-conf", - "rawSpec": "1.1.3", - "saveSpec": null, - "fetchSpec": "1.1.3" - }, - "_requiredBy": [ - "/get-proxy" - ], - "_resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz", - "_spec": "1.1.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Kevin Martensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "bugs": { - "url": "https://github.com/kevva/npm-conf/issues" - }, - "dependencies": { - "config-chain": "^1.1.11", - "pify": "^3.0.0" - }, - "description": "Get the npm config", - "devDependencies": { - "ava": "*", - "babel-generator": "^6.24.1", - "babel-traverse": "^6.24.1", - "babylon": "^6.17.1", - "npm": "^5.0.4", - "xo": "*" - }, - "engines": { - "node": ">=4" - }, - "files": [ - "index.js", - "lib" - ], - "homepage": "https://github.com/kevva/npm-conf#readme", - "keywords": [ - "conf", - "config", - "global", - "npm", - "path", - "prefix", - "rc" - ], - "license": "MIT", - "name": "npm-conf", - "repository": { - "type": "git", - "url": "git+https://github.com/kevva/npm-conf.git" - }, - "scripts": { - "prepublish": "node lib/make.js", - "test": "xo && ava" - }, - "version": "1.1.3", - "xo": { - "ignores": [ - "lib/defaults.js", - "lib/types.js" - ] - } -} diff --git a/node_modules/npm-conf/readme.md b/node_modules/npm-conf/readme.md deleted file mode 100644 index d346d3e..0000000 --- a/node_modules/npm-conf/readme.md +++ /dev/null @@ -1,47 +0,0 @@ -# npm-conf [![Build Status](https://travis-ci.org/kevva/npm-conf.svg?branch=master)](https://travis-ci.org/kevva/npm-conf) - -> Get the npm config - - -## Install - -``` -$ npm install npm-conf -``` - - -## Usage - -```js -const npmConf = require('npm-conf'); - -const conf = npmConf(); - -conf.get('prefix') -//=> //=> /Users/unicorn/.npm-packages - -conf.get('registry') -//=> https://registry.npmjs.org/ -``` - -To get a list of all available `npm` config options: - -```bash -$ npm config list --long -``` - - -## API - -### npmConf() - -Returns the `npm` config. - -### npmConf.defaults - -Returns the default `npm` config. - - -## License - -MIT © [Kevin Mårtensson](https://github.com/kevva) diff --git a/node_modules/object-assign/package.json b/node_modules/object-assign/package.json index 72d5c93..13254f1 100644 --- a/node_modules/object-assign/package.json +++ b/node_modules/object-assign/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "object-assign@4.1.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "object-assign@4.1.1", "_id": "object-assign@4.1.1", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "_spec": "4.1.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -75,4 +68,4 @@ "test": "xo && ava" }, "version": "4.1.1" -} +} \ No newline at end of file diff --git a/node_modules/once/package.json b/node_modules/once/package.json index a523168..8039b68 100644 --- a/node_modules/once/package.json +++ b/node_modules/once/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "once@1.4.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "once@1.4.0", "_id": "once@1.4.0", "_inBundle": false, @@ -29,7 +23,6 @@ ], "_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "_spec": "1.4.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -69,4 +62,4 @@ "test": "tap test/*.js" }, "version": "1.4.0" -} +} \ No newline at end of file diff --git a/node_modules/p-cancelable/package.json b/node_modules/p-cancelable/package.json index 938b52a..4774405 100644 --- a/node_modules/p-cancelable/package.json +++ b/node_modules/p-cancelable/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "p-cancelable@0.4.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "p-cancelable@0.4.1", "_id": "p-cancelable@0.4.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", "_spec": "0.4.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -79,4 +72,4 @@ "test": "xo && ava" }, "version": "0.4.1" -} +} \ No newline at end of file diff --git a/node_modules/p-event/package.json b/node_modules/p-event/package.json index 58be6be..fe12799 100644 --- a/node_modules/p-event/package.json +++ b/node_modules/p-event/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "p-event@2.3.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "p-event@2.3.1", "_id": "p-event@2.3.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/p-event/-/p-event-2.3.1.tgz", "_spec": "2.3.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -84,4 +77,4 @@ "test": "xo && ava" }, "version": "2.3.1" -} +} \ No newline at end of file diff --git a/node_modules/p-finally/package.json b/node_modules/p-finally/package.json index 1284e92..f519218 100644 --- a/node_modules/p-finally/package.json +++ b/node_modules/p-finally/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "p-finally@1.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "p-finally@1.0.0", "_id": "p-finally@1.0.0", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", "_spec": "1.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -75,4 +68,4 @@ "xo": { "esnext": true } -} +} \ No newline at end of file diff --git a/node_modules/p-is-promise/package.json b/node_modules/p-is-promise/package.json index 916d09e..590fbcc 100644 --- a/node_modules/p-is-promise/package.json +++ b/node_modules/p-is-promise/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "p-is-promise@1.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "p-is-promise@1.1.0", "_id": "p-is-promise@1.1.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", "_spec": "1.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -75,4 +68,4 @@ "xo": { "esnext": true } -} +} \ No newline at end of file diff --git a/node_modules/p-timeout/package.json b/node_modules/p-timeout/package.json index 99ad73f..abcc6eb 100644 --- a/node_modules/p-timeout/package.json +++ b/node_modules/p-timeout/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "p-timeout@2.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "p-timeout@2.0.1", "_id": "p-timeout@2.0.1", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", "_spec": "2.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -76,4 +69,4 @@ "test": "xo && ava" }, "version": "2.0.1" -} +} \ No newline at end of file diff --git a/node_modules/pend/package.json b/node_modules/pend/package.json index 69bbbc4..5d4694a 100644 --- a/node_modules/pend/package.json +++ b/node_modules/pend/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "pend@1.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "pend@1.2.0", "_id": "pend@1.2.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", "_spec": "1.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Andrew Kelley", "email": "superjoe30@gmail.com" @@ -47,4 +40,4 @@ "test": "node test.js" }, "version": "1.2.0" -} +} \ No newline at end of file diff --git a/node_modules/pify/index.js b/node_modules/pify/index.js index 1dee43a..df56221 100644 --- a/node_modules/pify/index.js +++ b/node_modules/pify/index.js @@ -1,83 +1,67 @@ 'use strict'; -const processFn = (fn, opts) => function () { - const P = opts.promiseModule; - const args = new Array(arguments.length); - - for (let i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } +const processFn = (fn, options) => function (...args) { + const P = options.promiseModule; return new P((resolve, reject) => { - if (opts.errorFirst) { - args.push(function (err, result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - - for (let i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - - if (err) { - results.unshift(err); - reject(results); + if (options.multiArgs) { + args.push((...result) => { + if (options.errorFirst) { + if (result[0]) { + reject(result); } else { - resolve(results); + result.shift(); + resolve(result); } - } else if (err) { - reject(err); } else { resolve(result); } }); - } else { - args.push(function (result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - - for (let i = 0; i < arguments.length; i++) { - results[i] = arguments[i]; - } - - resolve(results); + } else if (options.errorFirst) { + args.push((error, result) => { + if (error) { + reject(error); } else { resolve(result); } }); + } else { + args.push(resolve); } fn.apply(this, args); }); }; -module.exports = (obj, opts) => { - opts = Object.assign({ +module.exports = (input, options) => { + options = Object.assign({ exclude: [/.+(Sync|Stream)$/], errorFirst: true, promiseModule: Promise - }, opts); + }, options); + + const objType = typeof input; + if (!(input !== null && (objType === 'object' || objType === 'function'))) { + throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${input === null ? 'null' : objType}\``); + } const filter = key => { const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key); - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); + return options.include ? options.include.some(match) : !options.exclude.some(match); }; let ret; - if (typeof obj === 'function') { - ret = function () { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - - return processFn(obj, opts).apply(this, arguments); + if (objType === 'function') { + ret = function (...args) { + return options.excludeMain ? input(...args) : processFn(input, options).apply(this, args); }; } else { - ret = Object.create(Object.getPrototypeOf(obj)); + ret = Object.create(Object.getPrototypeOf(input)); } - for (const key in obj) { // eslint-disable-line guard-for-in - const x = obj[key]; - ret[key] = typeof x === 'function' && filter(key) ? processFn(x, opts) : x; + for (const key in input) { // eslint-disable-line guard-for-in + const property = input[key]; + ret[key] = typeof property === 'function' && filter(key) ? processFn(property, options) : property; } return ret; diff --git a/node_modules/pify/package.json b/node_modules/pify/package.json index 6e19aed..1446d77 100644 --- a/node_modules/pify/package.json +++ b/node_modules/pify/package.json @@ -1,35 +1,26 @@ { - "_args": [ - [ - "pify@3.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "pify@3.0.0", - "_id": "pify@3.0.0", + "_from": "pify@4.0.1", + "_id": "pify@4.0.1", "_inBundle": false, - "_integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "_integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "_location": "/pify", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "pify@3.0.0", + "raw": "pify@4.0.1", "name": "pify", "escapedName": "pify", - "rawSpec": "3.0.0", + "rawSpec": "4.0.1", "saveSpec": null, - "fetchSpec": "3.0.0" + "fetchSpec": "4.0.1" }, "_requiredBy": [ "/download", - "/got", - "/make-dir", - "/npm-conf" + "/make-dir" ], - "_resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "_spec": "3.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "_spec": "4.0.1", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -40,13 +31,13 @@ }, "description": "Promisify a callback-style function", "devDependencies": { - "ava": "*", + "ava": "^0.25.0", "pinkie-promise": "^2.0.0", - "v8-natives": "^1.0.0", - "xo": "*" + "v8-natives": "^1.1.0", + "xo": "^0.23.0" }, "engines": { - "node": ">=4" + "node": ">=6" }, "files": [ "index.js" @@ -83,7 +74,7 @@ }, "scripts": { "optimization-test": "node --allow-natives-syntax optimization-test.js", - "test": "xo && ava && npm run optimization-test" + "test": "xo && ava" }, - "version": "3.0.0" -} + "version": "4.0.1" +} \ No newline at end of file diff --git a/node_modules/pify/readme.md b/node_modules/pify/readme.md index 376ca4e..7ae3f1c 100644 --- a/node_modules/pify/readme.md +++ b/node_modules/pify/readme.md @@ -2,11 +2,25 @@ > Promisify a callback-style function +--- + +
+ + Get professional support for 'pify' with a Tidelift subscription + +
+ + Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. +
+
+ +--- + ## Install ``` -$ npm install --save pify +$ npm install pify ``` diff --git a/node_modules/pinkie-promise/package.json b/node_modules/pinkie-promise/package.json index ed07e1f..41ccdbf 100644 --- a/node_modules/pinkie-promise/package.json +++ b/node_modules/pinkie-promise/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "pinkie-promise@2.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "pinkie-promise@2.0.1", "_id": "pinkie-promise@2.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", "_spec": "2.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Vsevolod Strukchinsky", "email": "floatdrop@gmail.com", @@ -67,4 +60,4 @@ "test": "mocha" }, "version": "2.0.1" -} +} \ No newline at end of file diff --git a/node_modules/pinkie/package.json b/node_modules/pinkie/package.json index dd5e40b..acf6b21 100644 --- a/node_modules/pinkie/package.json +++ b/node_modules/pinkie/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "pinkie@2.0.4", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "pinkie@2.0.4", "_id": "pinkie@2.0.4", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", "_spec": "2.0.4", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Vsevolod Strukchinsky", "email": "floatdrop@gmail.com", @@ -68,4 +61,4 @@ "test": "xo && nyc mocha" }, "version": "2.0.4" -} +} \ No newline at end of file diff --git a/node_modules/prepend-http/package.json b/node_modules/prepend-http/package.json index 1102ddd..1b4c5e8 100644 --- a/node_modules/prepend-http/package.json +++ b/node_modules/prepend-http/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "prepend-http@2.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "prepend-http@2.0.0", "_id": "prepend-http@2.0.0", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", "_spec": "2.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -68,4 +61,4 @@ "test": "xo && ava" }, "version": "2.0.0" -} +} \ No newline at end of file diff --git a/node_modules/process-nextick-args/package.json b/node_modules/process-nextick-args/package.json index 97c22ec..dd6dccc 100644 --- a/node_modules/process-nextick-args/package.json +++ b/node_modules/process-nextick-args/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "process-nextick-args@2.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "process-nextick-args@2.0.1", "_id": "process-nextick-args@2.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "_spec": "2.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": "", "bugs": { "url": "https://github.com/calvinmetcalf/process-nextick-args/issues" @@ -50,4 +43,4 @@ "test": "node test.js" }, "version": "2.0.1" -} +} \ No newline at end of file diff --git a/node_modules/proto-list/LICENSE b/node_modules/proto-list/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/node_modules/proto-list/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/proto-list/README.md b/node_modules/proto-list/README.md deleted file mode 100644 index 43cfa35..0000000 --- a/node_modules/proto-list/README.md +++ /dev/null @@ -1,3 +0,0 @@ -A list of objects, bound by their prototype chain. - -Used in npm's config stuff. diff --git a/node_modules/proto-list/package.json b/node_modules/proto-list/package.json deleted file mode 100644 index 552960c..0000000 --- a/node_modules/proto-list/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "_args": [ - [ - "proto-list@1.2.4", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "proto-list@1.2.4", - "_id": "proto-list@1.2.4", - "_inBundle": false, - "_integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", - "_location": "/proto-list", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "proto-list@1.2.4", - "name": "proto-list", - "escapedName": "proto-list", - "rawSpec": "1.2.4", - "saveSpec": null, - "fetchSpec": "1.2.4" - }, - "_requiredBy": [ - "/config-chain" - ], - "_resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", - "_spec": "1.2.4", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Isaac Z. Schlueter", - "email": "i@izs.me", - "url": "http://blog.izs.me/" - }, - "bugs": { - "url": "https://github.com/isaacs/proto-list/issues" - }, - "description": "A utility for managing a prototype chain", - "devDependencies": { - "tap": "0" - }, - "homepage": "https://github.com/isaacs/proto-list#readme", - "license": "ISC", - "main": "./proto-list.js", - "name": "proto-list", - "repository": { - "type": "git", - "url": "git+https://github.com/isaacs/proto-list.git" - }, - "scripts": { - "test": "tap test/*.js" - }, - "version": "1.2.4" -} diff --git a/node_modules/proto-list/proto-list.js b/node_modules/proto-list/proto-list.js deleted file mode 100644 index b55c25c..0000000 --- a/node_modules/proto-list/proto-list.js +++ /dev/null @@ -1,88 +0,0 @@ - -module.exports = ProtoList - -function setProto(obj, proto) { - if (typeof Object.setPrototypeOf === "function") - return Object.setPrototypeOf(obj, proto) - else - obj.__proto__ = proto -} - -function ProtoList () { - this.list = [] - var root = null - Object.defineProperty(this, 'root', { - get: function () { return root }, - set: function (r) { - root = r - if (this.list.length) { - setProto(this.list[this.list.length - 1], r) - } - }, - enumerable: true, - configurable: true - }) -} - -ProtoList.prototype = - { get length () { return this.list.length } - , get keys () { - var k = [] - for (var i in this.list[0]) k.push(i) - return k - } - , get snapshot () { - var o = {} - this.keys.forEach(function (k) { o[k] = this.get(k) }, this) - return o - } - , get store () { - return this.list[0] - } - , push : function (obj) { - if (typeof obj !== "object") obj = {valueOf:obj} - if (this.list.length >= 1) { - setProto(this.list[this.list.length - 1], obj) - } - setProto(obj, this.root) - return this.list.push(obj) - } - , pop : function () { - if (this.list.length >= 2) { - setProto(this.list[this.list.length - 2], this.root) - } - return this.list.pop() - } - , unshift : function (obj) { - setProto(obj, this.list[0] || this.root) - return this.list.unshift(obj) - } - , shift : function () { - if (this.list.length === 1) { - setProto(this.list[0], this.root) - } - return this.list.shift() - } - , get : function (key) { - return this.list[0][key] - } - , set : function (key, val, save) { - if (!this.length) this.push({}) - if (save && this.list[0].hasOwnProperty(key)) this.push({}) - return this.list[0][key] = val - } - , forEach : function (fn, thisp) { - for (var key in this.list[0]) fn.call(thisp, key, this.list[0][key]) - } - , slice : function () { - return this.list.slice.apply(this.list, arguments) - } - , splice : function () { - // handle injections - var ret = this.list.splice.apply(this.list, arguments) - for (var i = 0, l = this.list.length; i < l; i++) { - setProto(this.list[i], this.list[i + 1] || this.root) - } - return ret - } - } diff --git a/node_modules/proto-list/test/basic.js b/node_modules/proto-list/test/basic.js deleted file mode 100644 index 5cd66be..0000000 --- a/node_modules/proto-list/test/basic.js +++ /dev/null @@ -1,61 +0,0 @@ -var tap = require("tap") - , test = tap.test - , ProtoList = require("../proto-list.js") - -tap.plan(1) - -tap.test("protoList tests", function (t) { - var p = new ProtoList - p.push({foo:"bar"}) - p.push({}) - p.set("foo", "baz") - t.equal(p.get("foo"), "baz") - - var p = new ProtoList - p.push({foo:"bar"}) - p.set("foo", "baz") - t.equal(p.get("foo"), "baz") - t.equal(p.length, 1) - p.pop() - t.equal(p.length, 0) - p.set("foo", "asdf") - t.equal(p.length, 1) - t.equal(p.get("foo"), "asdf") - p.push({bar:"baz"}) - t.equal(p.length, 2) - t.equal(p.get("foo"), "asdf") - p.shift() - t.equal(p.length, 1) - t.equal(p.get("foo"), undefined) - - - p.unshift({foo:"blo", bar:"rab"}) - p.unshift({foo:"boo"}) - t.equal(p.length, 3) - t.equal(p.get("foo"), "boo") - t.equal(p.get("bar"), "rab") - - var ret = p.splice(1, 1, {bar:"bar"}) - t.same(ret, [{foo:"blo", bar:"rab"}]) - t.equal(p.get("bar"), "bar") - - // should not inherit default object properties - t.equal(p.get('hasOwnProperty'), undefined) - - // unless we give it those. - p.root = {} - t.equal(p.get('hasOwnProperty'), {}.hasOwnProperty) - - p.root = {default:'monkey'} - t.equal(p.get('default'), 'monkey') - - p.push({red:'blue'}) - p.push({red:'blue'}) - p.push({red:'blue'}) - while (p.length) { - t.equal(p.get('default'), 'monkey') - p.shift() - } - - t.end() -}) diff --git a/node_modules/pump/.travis.yml b/node_modules/pump/.travis.yml new file mode 100644 index 0000000..17f9433 --- /dev/null +++ b/node_modules/pump/.travis.yml @@ -0,0 +1,5 @@ +language: node_js +node_js: + - "0.10" + +script: "npm test" diff --git a/node_modules/@actions/http-client/node_modules/tunnel/LICENSE b/node_modules/pump/LICENSE similarity index 95% rename from node_modules/@actions/http-client/node_modules/tunnel/LICENSE rename to node_modules/pump/LICENSE index 8b8a895..757562e 100644 --- a/node_modules/@actions/http-client/node_modules/tunnel/LICENSE +++ b/node_modules/pump/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2012 Koichi Kobayashi +Copyright (c) 2014 Mathias Buus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/pump/README.md b/node_modules/pump/README.md new file mode 100644 index 0000000..4c81471 --- /dev/null +++ b/node_modules/pump/README.md @@ -0,0 +1,65 @@ +# pump + +pump is a small node module that pipes streams together and destroys all of them if one of them closes. + +``` +npm install pump +``` + +[![build status](http://img.shields.io/travis/mafintosh/pump.svg?style=flat)](http://travis-ci.org/mafintosh/pump) + +## What problem does it solve? + +When using standard `source.pipe(dest)` source will _not_ be destroyed if dest emits close or an error. +You are also not able to provide a callback to tell when then pipe has finished. + +pump does these two things for you + +## Usage + +Simply pass the streams you want to pipe together to pump and add an optional callback + +``` js +var pump = require('pump') +var fs = require('fs') + +var source = fs.createReadStream('/dev/random') +var dest = fs.createWriteStream('/dev/null') + +pump(source, dest, function(err) { + console.log('pipe finished', err) +}) + +setTimeout(function() { + dest.destroy() // when dest is closed pump will destroy source +}, 1000) +``` + +You can use pump to pipe more than two streams together as well + +``` js +var transform = someTransformStream() + +pump(source, transform, anotherTransform, dest, function(err) { + console.log('pipe finished', err) +}) +``` + +If `source`, `transform`, `anotherTransform` or `dest` closes all of them will be destroyed. + +Similarly to `stream.pipe()`, `pump()` returns the last stream passed in, so you can do: + +``` +return pump(s1, s2) // returns s2 +``` + +If you want to return a stream that combines *both* s1 and s2 to a single stream use +[pumpify](https://github.com/mafintosh/pumpify) instead. + +## License + +MIT + +## Related + +`pump` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one. diff --git a/node_modules/pump/index.js b/node_modules/pump/index.js new file mode 100644 index 0000000..c15059f --- /dev/null +++ b/node_modules/pump/index.js @@ -0,0 +1,82 @@ +var once = require('once') +var eos = require('end-of-stream') +var fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes + +var noop = function () {} +var ancient = /^v?\.0/.test(process.version) + +var isFn = function (fn) { + return typeof fn === 'function' +} + +var isFS = function (stream) { + if (!ancient) return false // newer node version do not need to care about fs is a special way + if (!fs) return false // browser + return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close) +} + +var isRequest = function (stream) { + return stream.setHeader && isFn(stream.abort) +} + +var destroyer = function (stream, reading, writing, callback) { + callback = once(callback) + + var closed = false + stream.on('close', function () { + closed = true + }) + + eos(stream, {readable: reading, writable: writing}, function (err) { + if (err) return callback(err) + closed = true + callback() + }) + + var destroyed = false + return function (err) { + if (closed) return + if (destroyed) return + destroyed = true + + if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks + if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want + + if (isFn(stream.destroy)) return stream.destroy() + + callback(err || new Error('stream was destroyed')) + } +} + +var call = function (fn) { + fn() +} + +var pipe = function (from, to) { + return from.pipe(to) +} + +var pump = function () { + var streams = Array.prototype.slice.call(arguments) + var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop + + if (Array.isArray(streams[0])) streams = streams[0] + if (streams.length < 2) throw new Error('pump requires two streams per minimum') + + var error + var destroys = streams.map(function (stream, i) { + var reading = i < streams.length - 1 + var writing = i > 0 + return destroyer(stream, reading, writing, function (err) { + if (!error) error = err + if (err) destroys.forEach(call) + if (reading) return + destroys.forEach(call) + callback(error) + }) + }) + + return streams.reduce(pipe) +} + +module.exports = pump diff --git a/node_modules/pump/package.json b/node_modules/pump/package.json new file mode 100644 index 0000000..9bce498 --- /dev/null +++ b/node_modules/pump/package.json @@ -0,0 +1,57 @@ +{ + "_from": "pump@3.0.0", + "_id": "pump@3.0.0", + "_inBundle": false, + "_integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "_location": "/pump", + "_phantomChildren": {}, + "_requested": { + "type": "version", + "registry": true, + "raw": "pump@3.0.0", + "name": "pump", + "escapedName": "pump", + "rawSpec": "3.0.0", + "saveSpec": null, + "fetchSpec": "3.0.0" + }, + "_requiredBy": [ + "/execa/get-stream", + "/get-stream", + "/jest-changed-files/get-stream" + ], + "_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "_spec": "3.0.0", + "author": { + "name": "Mathias Buus Madsen", + "email": "mathiasbuus@gmail.com" + }, + "browser": { + "fs": false + }, + "bugs": { + "url": "https://github.com/mafintosh/pump/issues" + }, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + }, + "description": "pipe streams together and close all of them if one of them closes", + "homepage": "https://github.com/mafintosh/pump#readme", + "keywords": [ + "streams", + "pipe", + "destroy", + "callback" + ], + "license": "MIT", + "name": "pump", + "repository": { + "type": "git", + "url": "git://github.com/mafintosh/pump.git" + }, + "scripts": { + "test": "node test-browser.js && node test-node.js" + }, + "version": "3.0.0" +} \ No newline at end of file diff --git a/node_modules/pump/test-browser.js b/node_modules/pump/test-browser.js new file mode 100644 index 0000000..9a06c8a --- /dev/null +++ b/node_modules/pump/test-browser.js @@ -0,0 +1,66 @@ +var stream = require('stream') +var pump = require('./index') + +var rs = new stream.Readable() +var ws = new stream.Writable() + +rs._read = function (size) { + this.push(Buffer(size).fill('abc')) +} + +ws._write = function (chunk, encoding, cb) { + setTimeout(function () { + cb() + }, 100) +} + +var toHex = function () { + var reverse = new (require('stream').Transform)() + + reverse._transform = function (chunk, enc, callback) { + reverse.push(chunk.toString('hex')) + callback() + } + + return reverse +} + +var wsClosed = false +var rsClosed = false +var callbackCalled = false + +var check = function () { + if (wsClosed && rsClosed && callbackCalled) { + console.log('test-browser.js passes') + clearTimeout(timeout) + } +} + +ws.on('finish', function () { + wsClosed = true + check() +}) + +rs.on('end', function () { + rsClosed = true + check() +}) + +var res = pump(rs, toHex(), toHex(), toHex(), ws, function () { + callbackCalled = true + check() +}) + +if (res !== ws) { + throw new Error('should return last stream') +} + +setTimeout(function () { + rs.push(null) + rs.emit('close') +}, 1000) + +var timeout = setTimeout(function () { + check() + throw new Error('timeout') +}, 5000) diff --git a/node_modules/pump/test-node.js b/node_modules/pump/test-node.js new file mode 100644 index 0000000..561251a --- /dev/null +++ b/node_modules/pump/test-node.js @@ -0,0 +1,53 @@ +var pump = require('./index') + +var rs = require('fs').createReadStream('/dev/random') +var ws = require('fs').createWriteStream('/dev/null') + +var toHex = function () { + var reverse = new (require('stream').Transform)() + + reverse._transform = function (chunk, enc, callback) { + reverse.push(chunk.toString('hex')) + callback() + } + + return reverse +} + +var wsClosed = false +var rsClosed = false +var callbackCalled = false + +var check = function () { + if (wsClosed && rsClosed && callbackCalled) { + console.log('test-node.js passes') + clearTimeout(timeout) + } +} + +ws.on('close', function () { + wsClosed = true + check() +}) + +rs.on('close', function () { + rsClosed = true + check() +}) + +var res = pump(rs, toHex(), toHex(), toHex(), ws, function () { + callbackCalled = true + check() +}) + +if (res !== ws) { + throw new Error('should return last stream') +} + +setTimeout(function () { + rs.destroy() +}, 1000) + +var timeout = setTimeout(function () { + throw new Error('timeout') +}, 5000) diff --git a/node_modules/query-string/package.json b/node_modules/query-string/package.json index f16f67c..b506b71 100644 --- a/node_modules/query-string/package.json +++ b/node_modules/query-string/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "query-string@5.1.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "query-string@5.1.1", "_id": "query-string@5.1.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", "_spec": "5.1.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -77,4 +70,4 @@ "test": "xo && ava" }, "version": "5.1.1" -} +} \ No newline at end of file diff --git a/node_modules/readable-stream/.travis.yml b/node_modules/readable-stream/.travis.yml index 4099255..f62cdac 100644 --- a/node_modules/readable-stream/.travis.yml +++ b/node_modules/readable-stream/.travis.yml @@ -1,54 +1,33 @@ sudo: false language: node_js before_install: - - npm install -g npm@2 - - test $NPM_LEGACY && npm install -g npm@latest-3 || npm install npm -g + - (test $NPM_LEGACY && npm install -g npm@2 && npm install -g npm@3) || true notifications: email: false matrix: fast_finish: true include: - node_js: '0.8' - env: - - TASK=test - - NPM_LEGACY=true + env: NPM_LEGACY=true - node_js: '0.10' - env: - - TASK=test - - NPM_LEGACY=true + env: NPM_LEGACY=true - node_js: '0.11' - env: - - TASK=test - - NPM_LEGACY=true + env: NPM_LEGACY=true - node_js: '0.12' - env: - - TASK=test - - NPM_LEGACY=true + env: NPM_LEGACY=true - node_js: 1 - env: - - TASK=test - - NPM_LEGACY=true + env: NPM_LEGACY=true - node_js: 2 - env: - - TASK=test - - NPM_LEGACY=true + env: NPM_LEGACY=true - node_js: 3 - env: - - TASK=test - - NPM_LEGACY=true + env: NPM_LEGACY=true - node_js: 4 - env: TASK=test - node_js: 5 - env: TASK=test - node_js: 6 - env: TASK=test - node_js: 7 - env: TASK=test - node_js: 8 - env: TASK=test - node_js: 9 - env: TASK=test -script: "npm run $TASK" +script: "npm run test" env: global: - secure: rE2Vvo7vnjabYNULNyLFxOyt98BoJexDqsiOnfiD6kLYYsiQGfr/sbZkPMOFm9qfQG7pjqx+zZWZjGSswhTt+626C0t/njXqug7Yps4c3dFblzGfreQHp7wNX5TFsvrxd6dAowVasMp61sJcRnB2w8cUzoe3RAYUDHyiHktwqMc= diff --git a/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/readable-stream/lib/_stream_duplex.js index a1ca813..57003c3 100644 --- a/node_modules/readable-stream/lib/_stream_duplex.js +++ b/node_modules/readable-stream/lib/_stream_duplex.js @@ -43,7 +43,7 @@ var objectKeys = Object.keys || function (obj) { module.exports = Duplex; /**/ -var util = require('core-util-is'); +var util = Object.create(require('core-util-is')); util.inherits = require('inherits'); /**/ diff --git a/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/readable-stream/lib/_stream_passthrough.js index a9c8358..612edb4 100644 --- a/node_modules/readable-stream/lib/_stream_passthrough.js +++ b/node_modules/readable-stream/lib/_stream_passthrough.js @@ -30,7 +30,7 @@ module.exports = PassThrough; var Transform = require('./_stream_transform'); /**/ -var util = require('core-util-is'); +var util = Object.create(require('core-util-is')); util.inherits = require('inherits'); /**/ diff --git a/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/readable-stream/lib/_stream_readable.js index bf34ac6..0f80764 100644 --- a/node_modules/readable-stream/lib/_stream_readable.js +++ b/node_modules/readable-stream/lib/_stream_readable.js @@ -64,7 +64,7 @@ function _isUint8Array(obj) { /**/ /**/ -var util = require('core-util-is'); +var util = Object.create(require('core-util-is')); util.inherits = require('inherits'); /**/ diff --git a/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/readable-stream/lib/_stream_transform.js index 5d1f8b8..fcfc105 100644 --- a/node_modules/readable-stream/lib/_stream_transform.js +++ b/node_modules/readable-stream/lib/_stream_transform.js @@ -68,7 +68,7 @@ module.exports = Transform; var Duplex = require('./_stream_duplex'); /**/ -var util = require('core-util-is'); +var util = Object.create(require('core-util-is')); util.inherits = require('inherits'); /**/ diff --git a/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/readable-stream/lib/_stream_writable.js index b3f4e85..b0b0220 100644 --- a/node_modules/readable-stream/lib/_stream_writable.js +++ b/node_modules/readable-stream/lib/_stream_writable.js @@ -64,7 +64,7 @@ var Duplex; Writable.WritableState = WritableState; /**/ -var util = require('core-util-is'); +var util = Object.create(require('core-util-is')); util.inherits = require('inherits'); /**/ diff --git a/node_modules/readable-stream/node_modules/safe-buffer/package.json b/node_modules/readable-stream/node_modules/safe-buffer/package.json index b1e1605..c290bc0 100644 --- a/node_modules/readable-stream/node_modules/safe-buffer/package.json +++ b/node_modules/readable-stream/node_modules/safe-buffer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "safe-buffer@5.1.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "safe-buffer@5.1.2", "_id": "safe-buffer@5.1.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "_spec": "5.1.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Feross Aboukhadijeh", "email": "feross@feross.org", @@ -62,4 +55,4 @@ }, "types": "index.d.ts", "version": "5.1.2" -} +} \ No newline at end of file diff --git a/node_modules/readable-stream/package.json b/node_modules/readable-stream/package.json index c5edeef..8a1aa53 100644 --- a/node_modules/readable-stream/package.json +++ b/node_modules/readable-stream/package.json @@ -1,34 +1,27 @@ { - "_args": [ - [ - "readable-stream@2.3.6", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "readable-stream@2.3.6", - "_id": "readable-stream@2.3.6", + "_from": "readable-stream@2.3.7", + "_id": "readable-stream@2.3.7", "_inBundle": false, - "_integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "_integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "_location": "/readable-stream", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "readable-stream@2.3.6", + "raw": "readable-stream@2.3.7", "name": "readable-stream", "escapedName": "readable-stream", - "rawSpec": "2.3.6", + "rawSpec": "2.3.7", "saveSpec": null, - "fetchSpec": "2.3.6" + "fetchSpec": "2.3.7" }, "_requiredBy": [ "/bl", "/from2", "/tar-stream" ], - "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "_spec": "2.3.6", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "_spec": "2.3.7", "browser": { "util": false, "./readable.js": "./readable-browser.js", @@ -82,5 +75,5 @@ "report": "nyc report --reporter=lcov", "test": "tap test/parallel/*.js test/ours/*.js && node test/verify-dependencies.js" }, - "version": "2.3.6" -} + "version": "2.3.7" +} \ No newline at end of file diff --git a/node_modules/responselike/package.json b/node_modules/responselike/package.json index 6d34276..aadcebf 100644 --- a/node_modules/responselike/package.json +++ b/node_modules/responselike/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "responselike@1.0.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "responselike@1.0.2", "_id": "responselike@1.0.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", "_spec": "1.0.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "lukechilds" }, @@ -69,4 +62,4 @@ "xo": { "extends": "xo-lukechilds" } -} +} \ No newline at end of file diff --git a/node_modules/safe-buffer/package.json b/node_modules/safe-buffer/package.json index c2be663..80f76de 100644 --- a/node_modules/safe-buffer/package.json +++ b/node_modules/safe-buffer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "safe-buffer@5.2.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "safe-buffer@5.2.0", "_id": "safe-buffer@5.2.0", "_inBundle": false, @@ -29,7 +23,6 @@ ], "_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", "_spec": "5.2.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Feross Aboukhadijeh", "email": "feross@feross.org", @@ -65,4 +58,4 @@ }, "types": "index.d.ts", "version": "5.2.0" -} +} \ No newline at end of file diff --git a/node_modules/seek-bzip/package.json b/node_modules/seek-bzip/package.json index 0094a36..d4eb3da 100644 --- a/node_modules/seek-bzip/package.json +++ b/node_modules/seek-bzip/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "seek-bzip@1.0.5", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "seek-bzip@1.0.5", "_id": "seek-bzip@1.0.5", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz", "_spec": "1.0.5", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bin": { "seek-bunzip": "./bin/seek-bunzip", "seek-table": "./bin/seek-bzip-table" @@ -73,4 +66,4 @@ "test": "mocha" }, "version": "1.0.5" -} +} \ No newline at end of file diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json index 25b99ad..3a9317c 100644 --- a/node_modules/semver/package.json +++ b/node_modules/semver/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "semver@6.3.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "semver@6.3.0", "_id": "semver@6.3.0", "_inBundle": false, @@ -31,7 +25,6 @@ ], "_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "_spec": "6.3.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bin": { "semver": "./bin/semver.js" }, @@ -65,4 +58,4 @@ "check-coverage": true }, "version": "6.3.0" -} +} \ No newline at end of file diff --git a/node_modules/sort-keys-length/package.json b/node_modules/sort-keys-length/package.json index 63eaa29..94552e9 100644 --- a/node_modules/sort-keys-length/package.json +++ b/node_modules/sort-keys-length/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "sort-keys-length@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "sort-keys-length@1.0.1", "_id": "sort-keys-length@1.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -64,4 +57,4 @@ "test": "node test.js" }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/sort-keys/package.json b/node_modules/sort-keys/package.json index fd8927c..a6a1e45 100644 --- a/node_modules/sort-keys/package.json +++ b/node_modules/sort-keys/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "sort-keys@1.1.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "sort-keys@1.1.2", "_id": "sort-keys@1.1.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", "_spec": "1.1.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -72,4 +65,4 @@ "test": "xo && mocha" }, "version": "1.1.2" -} +} \ No newline at end of file diff --git a/node_modules/strict-uri-encode/package.json b/node_modules/strict-uri-encode/package.json index c2dcf47..e618c41 100644 --- a/node_modules/strict-uri-encode/package.json +++ b/node_modules/strict-uri-encode/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "strict-uri-encode@1.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "strict-uri-encode@1.1.0", "_id": "strict-uri-encode@1.1.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", "_spec": "1.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Kevin Mårtensson", "email": "kevinmartensson@gmail.com", @@ -62,4 +55,4 @@ "test": "node test.js" }, "version": "1.1.0" -} +} \ No newline at end of file diff --git a/node_modules/string_decoder/node_modules/safe-buffer/package.json b/node_modules/string_decoder/node_modules/safe-buffer/package.json index 9ed18e5..a6f85a6 100644 --- a/node_modules/string_decoder/node_modules/safe-buffer/package.json +++ b/node_modules/string_decoder/node_modules/safe-buffer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "safe-buffer@5.1.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "safe-buffer@5.1.2", "_id": "safe-buffer@5.1.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "_spec": "5.1.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Feross Aboukhadijeh", "email": "feross@feross.org", @@ -62,4 +55,4 @@ }, "types": "index.d.ts", "version": "5.1.2" -} +} \ No newline at end of file diff --git a/node_modules/string_decoder/package.json b/node_modules/string_decoder/package.json index 08e2a07..3095515 100644 --- a/node_modules/string_decoder/package.json +++ b/node_modules/string_decoder/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "string_decoder@1.1.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "string_decoder@1.1.1", "_id": "string_decoder@1.1.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "_spec": "1.1.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bugs": { "url": "https://github.com/nodejs/string_decoder/issues" }, @@ -59,4 +52,4 @@ "test": "tap test/parallel/*.js && node test/verify-dependencies" }, "version": "1.1.1" -} +} \ No newline at end of file diff --git a/node_modules/strip-dirs/package.json b/node_modules/strip-dirs/package.json index 93ce0d4..fe14214 100644 --- a/node_modules/strip-dirs/package.json +++ b/node_modules/strip-dirs/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "strip-dirs@2.1.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "strip-dirs@2.1.0", "_id": "strip-dirs@2.1.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", "_spec": "2.1.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Shinnosuke Watanabe", "url": "https://github.com/shinnn" @@ -74,4 +67,4 @@ "test": "node --throw-deprecation --track-heap-objects test.js | tap-spec" }, "version": "2.1.0" -} +} \ No newline at end of file diff --git a/node_modules/strip-outer/package.json b/node_modules/strip-outer/package.json index b5e0ffb..762607f 100644 --- a/node_modules/strip-outer/package.json +++ b/node_modules/strip-outer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "strip-outer@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "strip-outer@1.0.1", "_id": "strip-outer@1.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -76,4 +69,4 @@ "test": "xo && ava" }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/tar-stream/package.json b/node_modules/tar-stream/package.json index 84621fd..ab963ae 100644 --- a/node_modules/tar-stream/package.json +++ b/node_modules/tar-stream/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "tar-stream@1.6.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "tar-stream@1.6.2", "_id": "tar-stream@1.6.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", "_spec": "1.6.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Mathias Buus", "email": "mathiasbuus@gmail.com" @@ -88,4 +81,4 @@ "test-all": "standard && tape test/*.js" }, "version": "1.6.2" -} +} \ No newline at end of file diff --git a/node_modules/through/package.json b/node_modules/through/package.json index 3c804f7..9f1a996 100644 --- a/node_modules/through/package.json +++ b/node_modules/through/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "through@2.3.8", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "through@2.3.8", "_id": "through@2.3.8", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "_spec": "2.3.8", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Dominic Tarr", "email": "dominic.tarr@gmail.com", @@ -68,4 +61,4 @@ "files": "test/*.js" }, "version": "2.3.8" -} +} \ No newline at end of file diff --git a/node_modules/timed-out/package.json b/node_modules/timed-out/package.json index 058d8d4..301b033 100644 --- a/node_modules/timed-out/package.json +++ b/node_modules/timed-out/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "timed-out@4.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "timed-out@4.0.1", "_id": "timed-out@4.0.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", "_spec": "4.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Vsevolod Strukchinsky", "email": "floatdrop@gmail.com" @@ -68,4 +61,4 @@ "test": "xo && mocha" }, "version": "4.0.1" -} +} \ No newline at end of file diff --git a/node_modules/to-buffer/package.json b/node_modules/to-buffer/package.json index afb8c15..61e00ff 100644 --- a/node_modules/to-buffer/package.json +++ b/node_modules/to-buffer/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "to-buffer@1.1.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "to-buffer@1.1.1", "_id": "to-buffer@1.1.1", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", "_spec": "1.1.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Mathias Buus", "url": "@mafintosh" @@ -52,4 +45,4 @@ "test": "standard && tape test.js" }, "version": "1.1.1" -} +} \ No newline at end of file diff --git a/node_modules/trim-repeated/package.json b/node_modules/trim-repeated/package.json index b635ed1..b3fe10d 100644 --- a/node_modules/trim-repeated/package.json +++ b/node_modules/trim-repeated/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "trim-repeated@1.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "trim-repeated@1.0.0", "_id": "trim-repeated@1.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", "_spec": "1.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -73,4 +66,4 @@ "test": "node test.js" }, "version": "1.0.0" -} +} \ No newline at end of file diff --git a/node_modules/tunnel-agent/LICENSE b/node_modules/tunnel-agent/LICENSE deleted file mode 100644 index a4a9aee..0000000 --- a/node_modules/tunnel-agent/LICENSE +++ /dev/null @@ -1,55 +0,0 @@ -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and - -You must cause any modified files to carry prominent notices stating that You changed the files; and - -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/node_modules/tunnel-agent/README.md b/node_modules/tunnel-agent/README.md deleted file mode 100644 index bb533d5..0000000 --- a/node_modules/tunnel-agent/README.md +++ /dev/null @@ -1,4 +0,0 @@ -tunnel-agent -============ - -HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module. diff --git a/node_modules/tunnel-agent/index.js b/node_modules/tunnel-agent/index.js deleted file mode 100644 index 3ee9abc..0000000 --- a/node_modules/tunnel-agent/index.js +++ /dev/null @@ -1,244 +0,0 @@ -'use strict' - -var net = require('net') - , tls = require('tls') - , http = require('http') - , https = require('https') - , events = require('events') - , assert = require('assert') - , util = require('util') - , Buffer = require('safe-buffer').Buffer - ; - -exports.httpOverHttp = httpOverHttp -exports.httpsOverHttp = httpsOverHttp -exports.httpOverHttps = httpOverHttps -exports.httpsOverHttps = httpsOverHttps - - -function httpOverHttp(options) { - var agent = new TunnelingAgent(options) - agent.request = http.request - return agent -} - -function httpsOverHttp(options) { - var agent = new TunnelingAgent(options) - agent.request = http.request - agent.createSocket = createSecureSocket - agent.defaultPort = 443 - return agent -} - -function httpOverHttps(options) { - var agent = new TunnelingAgent(options) - agent.request = https.request - return agent -} - -function httpsOverHttps(options) { - var agent = new TunnelingAgent(options) - agent.request = https.request - agent.createSocket = createSecureSocket - agent.defaultPort = 443 - return agent -} - - -function TunnelingAgent(options) { - var self = this - self.options = options || {} - self.proxyOptions = self.options.proxy || {} - self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets - self.requests = [] - self.sockets = [] - - self.on('free', function onFree(socket, host, port) { - for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i] - if (pending.host === host && pending.port === port) { - // Detect the request to connect same origin server, - // reuse the connection. - self.requests.splice(i, 1) - pending.request.onSocket(socket) - return - } - } - socket.destroy() - self.removeSocket(socket) - }) -} -util.inherits(TunnelingAgent, events.EventEmitter) - -TunnelingAgent.prototype.addRequest = function addRequest(req, options) { - var self = this - - // Legacy API: addRequest(req, host, port, path) - if (typeof options === 'string') { - options = { - host: options, - port: arguments[2], - path: arguments[3] - }; - } - - if (self.sockets.length >= this.maxSockets) { - // We are over limit so we'll add it to the queue. - self.requests.push({host: options.host, port: options.port, request: req}) - return - } - - // If we are under maxSockets create a new one. - self.createConnection({host: options.host, port: options.port, request: req}) -} - -TunnelingAgent.prototype.createConnection = function createConnection(pending) { - var self = this - - self.createSocket(pending, function(socket) { - socket.on('free', onFree) - socket.on('close', onCloseOrRemove) - socket.on('agentRemove', onCloseOrRemove) - pending.request.onSocket(socket) - - function onFree() { - self.emit('free', socket, pending.host, pending.port) - } - - function onCloseOrRemove(err) { - self.removeSocket(socket) - socket.removeListener('free', onFree) - socket.removeListener('close', onCloseOrRemove) - socket.removeListener('agentRemove', onCloseOrRemove) - } - }) -} - -TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { - var self = this - var placeholder = {} - self.sockets.push(placeholder) - - var connectOptions = mergeOptions({}, self.proxyOptions, - { method: 'CONNECT' - , path: options.host + ':' + options.port - , agent: false - } - ) - if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {} - connectOptions.headers['Proxy-Authorization'] = 'Basic ' + - Buffer.from(connectOptions.proxyAuth).toString('base64') - } - - debug('making CONNECT request') - var connectReq = self.request(connectOptions) - connectReq.useChunkedEncodingByDefault = false // for v0.6 - connectReq.once('response', onResponse) // for v0.6 - connectReq.once('upgrade', onUpgrade) // for v0.6 - connectReq.once('connect', onConnect) // for v0.7 or later - connectReq.once('error', onError) - connectReq.end() - - function onResponse(res) { - // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true - } - - function onUpgrade(res, socket, head) { - // Hacky. - process.nextTick(function() { - onConnect(res, socket, head) - }) - } - - function onConnect(res, socket, head) { - connectReq.removeAllListeners() - socket.removeAllListeners() - - if (res.statusCode === 200) { - assert.equal(head.length, 0) - debug('tunneling connection has established') - self.sockets[self.sockets.indexOf(placeholder)] = socket - cb(socket) - } else { - debug('tunneling socket could not be established, statusCode=%d', res.statusCode) - var error = new Error('tunneling socket could not be established, ' + 'statusCode=' + res.statusCode) - error.code = 'ECONNRESET' - options.request.emit('error', error) - self.removeSocket(placeholder) - } - } - - function onError(cause) { - connectReq.removeAllListeners() - - debug('tunneling socket could not be established, cause=%s\n', cause.message, cause.stack) - var error = new Error('tunneling socket could not be established, ' + 'cause=' + cause.message) - error.code = 'ECONNRESET' - options.request.emit('error', error) - self.removeSocket(placeholder) - } -} - -TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) - if (pos === -1) return - - this.sockets.splice(pos, 1) - - var pending = this.requests.shift() - if (pending) { - // If we have pending requests and a socket gets closed a new one - // needs to be created to take over in the pool for the one that closed. - this.createConnection(pending) - } -} - -function createSecureSocket(options, cb) { - var self = this - TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { - // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, mergeOptions({}, self.options, - { servername: options.host - , socket: socket - } - )) - self.sockets[self.sockets.indexOf(socket)] = secureSocket - cb(secureSocket) - }) -} - - -function mergeOptions(target) { - for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i] - if (typeof overrides === 'object') { - var keys = Object.keys(overrides) - for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j] - if (overrides[k] !== undefined) { - target[k] = overrides[k] - } - } - } - } - return target -} - - -var debug -if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { - debug = function() { - var args = Array.prototype.slice.call(arguments) - if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0] - } else { - args.unshift('TUNNEL:') - } - console.error.apply(console, args) - } -} else { - debug = function() {} -} -exports.debug = debug // for test diff --git a/node_modules/tunnel-agent/package.json b/node_modules/tunnel-agent/package.json deleted file mode 100644 index 12f7739..0000000 --- a/node_modules/tunnel-agent/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "_args": [ - [ - "tunnel-agent@0.6.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "tunnel-agent@0.6.0", - "_id": "tunnel-agent@0.6.0", - "_inBundle": false, - "_integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "_location": "/tunnel-agent", - "_phantomChildren": {}, - "_requested": { - "type": "version", - "registry": true, - "raw": "tunnel-agent@0.6.0", - "name": "tunnel-agent", - "escapedName": "tunnel-agent", - "rawSpec": "0.6.0", - "saveSpec": null, - "fetchSpec": "0.6.0" - }, - "_requiredBy": [ - "/caw", - "/request" - ], - "_resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "_spec": "0.6.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", - "author": { - "name": "Mikeal Rogers", - "email": "mikeal.rogers@gmail.com", - "url": "http://www.futurealoof.com" - }, - "bugs": { - "url": "https://github.com/mikeal/tunnel-agent/issues" - }, - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "description": "HTTP proxy tunneling agent. Formerly part of mikeal/request, now a standalone module.", - "devDependencies": {}, - "engines": { - "node": "*" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/mikeal/tunnel-agent#readme", - "license": "Apache-2.0", - "main": "index.js", - "name": "tunnel-agent", - "optionalDependencies": {}, - "repository": { - "url": "git+https://github.com/mikeal/tunnel-agent.git" - }, - "version": "0.6.0" -} diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/encodings.xml b/node_modules/tunnel/.idea/encodings.xml similarity index 100% rename from node_modules/@actions/http-client/node_modules/tunnel/.idea/encodings.xml rename to node_modules/tunnel/.idea/encodings.xml diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/modules.xml b/node_modules/tunnel/.idea/modules.xml similarity index 100% rename from node_modules/@actions/http-client/node_modules/tunnel/.idea/modules.xml rename to node_modules/tunnel/.idea/modules.xml diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/node-tunnel.iml b/node_modules/tunnel/.idea/node-tunnel.iml similarity index 100% rename from node_modules/@actions/http-client/node_modules/tunnel/.idea/node-tunnel.iml rename to node_modules/tunnel/.idea/node-tunnel.iml diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/vcs.xml b/node_modules/tunnel/.idea/vcs.xml similarity index 100% rename from node_modules/@actions/http-client/node_modules/tunnel/.idea/vcs.xml rename to node_modules/tunnel/.idea/vcs.xml diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.idea/workspace.xml b/node_modules/tunnel/.idea/workspace.xml similarity index 100% rename from node_modules/@actions/http-client/node_modules/tunnel/.idea/workspace.xml rename to node_modules/tunnel/.idea/workspace.xml diff --git a/node_modules/tunnel/.npmignore b/node_modules/tunnel/.npmignore deleted file mode 100644 index 6684c76..0000000 --- a/node_modules/tunnel/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -/.idea -/node_modules diff --git a/node_modules/@actions/http-client/node_modules/tunnel/.travis.yml b/node_modules/tunnel/.travis.yml similarity index 100% rename from node_modules/@actions/http-client/node_modules/tunnel/.travis.yml rename to node_modules/tunnel/.travis.yml diff --git a/node_modules/tunnel/CHANGELOG.md b/node_modules/tunnel/CHANGELOG.md index 70bdbd7..baf6b18 100644 --- a/node_modules/tunnel/CHANGELOG.md +++ b/node_modules/tunnel/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog + - 0.0.6 (2018/09/11) + - Fix `localAddress` not working (#25) + - Fix `Host:` header for CONNECT method by @tmurakam (#29, #30) + - Fix default port for https (#32) + - Fix error handling when the proxy send illegal response body (#33) + + - 0.0.5 (2017/06/12) + - Fix socket leak. + - 0.0.4 (2016/01/23) - supported Node v0.12 or later. diff --git a/node_modules/tunnel/README.md b/node_modules/tunnel/README.md index b196162..f54bca5 100644 --- a/node_modules/tunnel/README.md +++ b/node_modules/tunnel/README.md @@ -1,5 +1,9 @@ # node-tunnel - HTTP/HTTPS Agents for tunneling proxies +[![Build Status](https://img.shields.io/travis/koichik/node-tunnel.svg?style=flat)](https://travis-ci.org/koichik/node-tunnel) +[![Dependency Status](http://img.shields.io/david/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=dependencies) +[![DevDependency Status](http://img.shields.io/david/dev/koichik/node-tunnel.svg?style=flat)](https://david-dm.org/koichik/node-tunnel#info=devDependencies) + ## Example ```javascript @@ -29,7 +33,7 @@ var req = https.request({ ```javascript var tunnelingAgent = tunnel.httpOverHttp({ - maxSockets: poolSize, // Defaults to 5 + maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets proxy: { // Proxy settings host: proxyHost, // Defaults to 'localhost' @@ -57,7 +61,7 @@ var req = http.request({ ```javascript var tunnelingAgent = tunnel.httpsOverHttp({ - maxSockets: poolSize, // Defaults to 5 + maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets // CA for origin server if necessary ca: [ fs.readFileSync('origin-server-ca.pem')], @@ -92,7 +96,7 @@ var req = https.request({ ```javascript var tunnelingAgent = tunnel.httpOverHttps({ - maxSockets: poolSize, // Defaults to 5 + maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets proxy: { // Proxy settings host: proxyHost, // Defaults to 'localhost' @@ -130,7 +134,7 @@ var req = http.request({ ```javascript var tunnelingAgent = tunnel.httpsOverHttps({ - maxSockets: poolSize, // Defaults to 5 + maxSockets: poolSize, // Defaults to http.Agent.defaultMaxSockets // CA for origin server if necessary ca: [ fs.readFileSync('origin-server-ca.pem')], @@ -173,6 +177,8 @@ var req = https.request({ ## CONTRIBUTORS * [Aleksis Brezas (abresas)](https://github.com/abresas) +* [Jackson Tian (JacksonTian)](https://github.com/JacksonTian) +* [Dmitry Sorin (1999)](https://github.com/1999) ## License diff --git a/node_modules/tunnel/lib/tunnel.js b/node_modules/tunnel/lib/tunnel.js index c42b039..10cc382 100644 --- a/node_modules/tunnel/lib/tunnel.js +++ b/node_modules/tunnel/lib/tunnel.js @@ -25,6 +25,7 @@ function httpsOverHttp(options) { var agent = new TunnelingAgent(options); agent.request = http.request; agent.createSocket = createSecureSocket; + agent.defaultPort = 443; return agent; } @@ -38,6 +39,7 @@ function httpsOverHttps(options) { var agent = new TunnelingAgent(options); agent.request = https.request; agent.createSocket = createSecureSocket; + agent.defaultPort = 443; return agent; } @@ -106,8 +108,14 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { var connectOptions = mergeOptions({}, self.proxyOptions, { method: 'CONNECT', path: options.host + ':' + options.port, - agent: false + agent: false, + headers: { + host: options.host + ':' + options.port + } }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; + } if (connectOptions.proxyAuth) { connectOptions.headers = connectOptions.headers || {}; connectOptions.headers['Proxy-Authorization'] = 'Basic ' + @@ -139,20 +147,29 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { connectReq.removeAllListeners(); socket.removeAllListeners(); - if (res.statusCode === 200) { - assert.equal(head.length, 0); - debug('tunneling connection has established'); - self.sockets[self.sockets.indexOf(placeholder)] = socket; - cb(socket); - } else { + if (res.statusCode !== 200) { debug('tunneling socket could not be established, statusCode=%d', - res.statusCode); + res.statusCode); + socket.destroy(); var error = new Error('tunneling socket could not be established, ' + - 'statusCode=' + res.statusCode); + 'statusCode=' + res.statusCode); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug('got illegal response body from proxy'); + socket.destroy(); + var error = new Error('got illegal response body from proxy'); error.code = 'ECONNRESET'; options.request.emit('error', error); self.removeSocket(placeholder); + return; } + debug('tunneling connection has established'); + self.sockets[self.sockets.indexOf(placeholder)] = socket; + return cb(socket); } function onError(cause) { diff --git a/node_modules/tunnel/package.json b/node_modules/tunnel/package.json index 8a86c13..2df07e6 100644 --- a/node_modules/tunnel/package.json +++ b/node_modules/tunnel/package.json @@ -1,32 +1,26 @@ { - "_args": [ - [ - "tunnel@0.0.4", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "tunnel@0.0.4", - "_id": "tunnel@0.0.4", + "_from": "tunnel@0.0.6", + "_id": "tunnel@0.0.6", "_inBundle": false, - "_integrity": "sha1-LTeFoVjBdMmhbcLARuxfxfF0IhM=", + "_integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", "_location": "/tunnel", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "tunnel@0.0.4", + "raw": "tunnel@0.0.6", "name": "tunnel", "escapedName": "tunnel", - "rawSpec": "0.0.4", + "rawSpec": "0.0.6", "saveSpec": null, - "fetchSpec": "0.0.4" + "fetchSpec": "0.0.6" }, "_requiredBy": [ + "/@actions/http-client", "/typed-rest-client" ], - "_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.4.tgz", - "_spec": "0.0.4", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "_spec": "0.0.6", "author": { "name": "Koichi Kobayashi", "email": "koichik@improvement.jp" @@ -36,8 +30,8 @@ }, "description": "Node HTTP/HTTPS Agents for tunneling proxies", "devDependencies": { - "mocha": "*", - "should": "*" + "mocha": "^5.2.0", + "should": "^13.2.3" }, "directories": { "lib": "./lib" @@ -61,7 +55,7 @@ "url": "git+https://github.com/koichik/node-tunnel.git" }, "scripts": { - "test": "./node_modules/mocha/bin/mocha" + "test": "mocha" }, - "version": "0.0.4" -} + "version": "0.0.6" +} \ No newline at end of file diff --git a/node_modules/tunnel/test/http-over-http.js b/node_modules/tunnel/test/http-over-http.js deleted file mode 100644 index 73d17a2..0000000 --- a/node_modules/tunnel/test/http-over-http.js +++ /dev/null @@ -1,108 +0,0 @@ -var http = require('http'); -var net = require('net'); -var should = require('should'); -var tunnel = require('../index'); - -describe('HTTP over HTTP', function() { - it('should finish without error', function(done) { - var serverPort = 3000; - var proxyPort = 3001; - var poolSize = 3; - var N = 10; - var serverConnect = 0; - var proxyConnect = 0; - var clientConnect = 0; - var server; - var proxy; - var agent; - - server = http.createServer(function(req, res) { - tunnel.debug('SERVER: got request'); - ++serverConnect; - res.writeHead(200); - res.end('Hello' + req.url); - tunnel.debug('SERVER: sending response'); - }); - server.listen(serverPort, setupProxy); - - function setupProxy() { - proxy = http.createServer(function(req, res) { - should.fail(); - }); - proxy.on('upgrade', onConnect); // for v0.6 - proxy.on('connect', onConnect); // for v0.7 or later - - function onConnect(req, clientSocket, head) { - tunnel.debug('PROXY: got CONNECT request'); - - req.method.should.equal('CONNECT'); - req.url.should.equal('localhost:' + serverPort); - req.headers.should.not.have.property('transfer-encoding'); - req.headers.should.have.property('proxy-authorization', - 'Basic ' + new Buffer('user:password').toString('base64')); - ++proxyConnect; - - tunnel.debug('PROXY: creating a tunnel'); - var serverSocket = net.connect(serverPort, function() { - tunnel.debug('PROXY: replying to client CONNECT request'); - clientSocket.write('HTTP/1.1 200 Connection established\r\n\r\n'); - clientSocket.pipe(serverSocket); - serverSocket.write(head); - serverSocket.pipe(clientSocket); - // workaround, see joyent/node#2524 - serverSocket.on('end', function() { - clientSocket.end(); - }); - }); - } - proxy.listen(proxyPort, setupClient); - } - - function setupClient() { - agent = tunnel.httpOverHttp({ - maxSockets: poolSize, - proxy: { - port: proxyPort, - proxyAuth: 'user:password' - } - }); - - for (var i = 0; i < N; ++i) { - doClientRequest(i); - } - - function doClientRequest(i) { - tunnel.debug('CLIENT: Making HTTP request (%d)', i); - var req = http.get({ - port: serverPort, - path: '/' + i, - agent: agent - }, function(res) { - tunnel.debug('CLIENT: got HTTP response (%d)', i); - res.setEncoding('utf8'); - res.on('data', function(data) { - data.should.equal('Hello/' + i); - }); - res.on('end', function() { - ++clientConnect; - if (clientConnect === N) { - proxy.close(); - server.close(); - } - }); - }); - } - } - - server.on('close', function() { - serverConnect.should.equal(N); - proxyConnect.should.equal(poolSize); - clientConnect.should.equal(N); - - agent.sockets.should.be.empty; - agent.requests.should.be.empty; - - done(); - }); - }); -}); diff --git a/node_modules/tunnel/test/http-over-https.js b/node_modules/tunnel/test/http-over-https.js deleted file mode 100644 index c3a92fd..0000000 --- a/node_modules/tunnel/test/http-over-https.js +++ /dev/null @@ -1,130 +0,0 @@ -var http = require('http'); -var https = require('https'); -var net = require('net'); -var fs = require('fs'); -var path = require('path'); -var should = require('should'); -var tunnel = require('../index'); - -function readPem(file) { - return fs.readFileSync(path.join('test/keys', file + '.pem')); -} - -var proxyKey = readPem('proxy1-key'); -var proxyCert = readPem('proxy1-cert'); -var proxyCA = readPem('ca2-cert'); -var clientKey = readPem('client1-key'); -var clientCert = readPem('client1-cert'); -var clientCA = readPem('ca3-cert'); - -describe('HTTP over HTTPS', function() { - it('should finish without error', function(done) { - var serverPort = 3004; - var proxyPort = 3005; - var poolSize = 3; - var N = 10; - var serverConnect = 0; - var proxyConnect = 0; - var clientConnect = 0; - var server; - var proxy; - var agent; - - server = http.createServer(function(req, res) { - tunnel.debug('SERVER: got request'); - ++serverConnect; - res.writeHead(200); - res.end('Hello' + req.url); - tunnel.debug('SERVER: sending response'); - }); - server.listen(serverPort, setupProxy); - - function setupProxy() { - proxy = https.createServer({ - key: proxyKey, - cert: proxyCert, - ca: [clientCA], - requestCert: true, - rejectUnauthorized: true - }, function(req, res) { - should.fail(); - }); - proxy.on('upgrade', onConnect); // for v0.6 - proxy.on('connect', onConnect); // for v0.7 or later - - function onConnect(req, clientSocket, head) { - tunnel.debug('PROXY: got CONNECT request'); - - req.method.should.equal('CONNECT'); - req.url.should.equal('localhost:' + serverPort); - req.headers.should.not.have.property('transfer-encoding'); - ++proxyConnect; - - tunnel.debug('PROXY: creating a tunnel'); - var serverSocket = net.connect(serverPort, function() { - tunnel.debug('PROXY: replying to client CONNECT request'); - clientSocket.write('HTTP/1.1 200 Connection established\r\n\r\n'); - clientSocket.pipe(serverSocket); - serverSocket.write(head); - serverSocket.pipe(clientSocket); - // workaround, see joyent/node#2524 - serverSocket.on('end', function() { - clientSocket.end(); - }); - }); - } - proxy.listen(proxyPort, setupClient); - } - - function setupClient() { - agent = tunnel.httpOverHttps({ - maxSockets: poolSize, - proxy: { - port: proxyPort, - key: clientKey, - cert: clientCert, - ca: [proxyCA], - rejectUnauthorized: true - } - }); - - for (var i = 0; i < N; ++i) { - doClientRequest(i); - } - - function doClientRequest(i) { - tunnel.debug('CLIENT: Making HTTP request (%d)', i); - var req = http.get({ - port: serverPort, - path: '/' + i, - agent: agent - }, function(res) { - tunnel.debug('CLIENT: got HTTP response (%d)', i); - res.setEncoding('utf8'); - res.on('data', function(data) { - data.should.equal('Hello/' + i); - }); - res.on('end', function() { - ++clientConnect; - if (clientConnect === N) { - proxy.close(); - server.close(); - } - }); - }); - } - } - - server.on('close', function() { - serverConnect.should.equal(N); - proxyConnect.should.equal(poolSize); - clientConnect.should.equal(N); - - var name = 'localhost:' + serverPort; - agent.sockets.should.be.empty; - agent.requests.should.be.empty; - - done(); - }); - }); -}); diff --git a/node_modules/tunnel/test/https-over-http.js b/node_modules/tunnel/test/https-over-http.js deleted file mode 100644 index 82c4772..0000000 --- a/node_modules/tunnel/test/https-over-http.js +++ /dev/null @@ -1,130 +0,0 @@ -var http = require('http'); -var https = require('https'); -var net = require('net'); -var fs = require('fs'); -var path = require('path'); -var should = require('should'); -var tunnel = require('../index'); - -function readPem(file) { - return fs.readFileSync(path.join('test/keys', file + '.pem')); -} - -var serverKey = readPem('server1-key'); -var serverCert = readPem('server1-cert'); -var serverCA = readPem('ca1-cert'); -var clientKey = readPem('client1-key'); -var clientCert = readPem('client1-cert'); -var clientCA = readPem('ca3-cert'); - - -describe('HTTPS over HTTP', function() { - it('should finish without error', function(done) { - var serverPort = 3002; - var proxyPort = 3003; - var poolSize = 3; - var N = 10; - var serverConnect = 0; - var proxyConnect = 0; - var clientConnect = 0; - var server; - var proxy; - var agent; - - server = https.createServer({ - key: serverKey, - cert: serverCert, - ca: [clientCA], - requestCert: true, - rejectUnauthorized: true - }, function(req, res) { - tunnel.debug('SERVER: got request'); - ++serverConnect; - res.writeHead(200); - res.end('Hello' + req.url); - tunnel.debug('SERVER: sending response'); - }); - server.listen(serverPort, setupProxy); - - function setupProxy() { - proxy = http.createServer(function(req, res) { - should.fail(); - }); - proxy.on('upgrade', onConnect); // for v0.6 - proxy.on('connect', onConnect); // for v0.7 or later - - function onConnect(req, clientSocket, head) { - tunnel.debug('PROXY: got CONNECT request'); - - req.method.should.equal('CONNECT'); - req.url.should.equal('localhost:' + serverPort); - req.headers.should.not.have.property('transfer-encoding'); - ++proxyConnect; - - var serverSocket = net.connect(serverPort, function() { - tunnel.debug('PROXY: replying to client CONNECT request'); - clientSocket.write('HTTP/1.1 200 Connection established\r\n\r\n'); - clientSocket.pipe(serverSocket); - serverSocket.write(head); - serverSocket.pipe(clientSocket); - // workaround, see joyent/node#2524 - serverSocket.on('end', function() { - clientSocket.end(); - }); - }); - } - proxy.listen(proxyPort, setupClient); - } - - function setupClient() { - agent = tunnel.httpsOverHttp({ - maxSockets: poolSize, - key: clientKey, - cert: clientCert, - ca: [serverCA], - rejectUnauthorized: true, - proxy: { - port: proxyPort - } - }); - - for (var i = 0; i < N; ++i) { - doClientRequest(i); - } - - function doClientRequest(i) { - tunnel.debug('CLIENT: Making HTTPS request (%d)', i); - var req = https.get({ - port: serverPort, - path: '/' + i, - agent: agent - }, function(res) { - tunnel.debug('CLIENT: got HTTPS response (%d)', i); - res.setEncoding('utf8'); - res.on('data', function(data) { - data.should.equal('Hello/' + i); - }); - res.on('end', function() { - ++clientConnect; - if (clientConnect === N) { - proxy.close(); - server.close(); - } - }); - }); - } - } - - server.on('close', function() { - serverConnect.should.equal(N); - proxyConnect.should.equal(poolSize); - clientConnect.should.equal(N); - - var name = 'localhost:' + serverPort; - agent.sockets.should.be.empty; - agent.requests.should.be.empty; - - done(); - }); - }); -}); diff --git a/node_modules/tunnel/test/https-over-https-error.js b/node_modules/tunnel/test/https-over-https-error.js deleted file mode 100644 index c74094d..0000000 --- a/node_modules/tunnel/test/https-over-https-error.js +++ /dev/null @@ -1,261 +0,0 @@ -var http = require('http'); -var https = require('https'); -var net = require('net'); -var fs = require('fs'); -var path = require('path'); -var should = require('should'); -var tunnel = require('../index'); - -function readPem(file) { - return fs.readFileSync(path.join('test/keys', file + '.pem')); -} - -var serverKey = readPem('server2-key'); -var serverCert = readPem('server2-cert'); -var serverCA = readPem('ca1-cert'); -var proxyKey = readPem('proxy2-key'); -var proxyCert = readPem('proxy2-cert'); -var proxyCA = readPem('ca2-cert'); -var client1Key = readPem('client1-key'); -var client1Cert = readPem('client1-cert'); -var client1CA = readPem('ca3-cert'); -var client2Key = readPem('client2-key'); -var client2Cert = readPem('client2-cert'); -var client2CA = readPem('ca4-cert'); - -describe('HTTPS over HTTPS authentication failed', function() { - it('should finish without error', function(done) { - var serverPort = 3008; - var proxyPort = 3009; - var serverConnect = 0; - var proxyConnect = 0; - var clientRequest = 0; - var clientConnect = 0; - var clientError = 0; - var server; - var proxy; - - server = https.createServer({ - key: serverKey, - cert: serverCert, - ca: [client1CA], - requestCert: true, - rejectUnauthorized: true - }, function(req, res) { - tunnel.debug('SERVER: got request', req.url); - ++serverConnect; - req.on('data', function(data) { - }); - req.on('end', function() { - res.writeHead(200); - res.end('Hello, ' + serverConnect); - tunnel.debug('SERVER: sending response'); - }); - req.resume(); - }); - //server.addContext('server2', { - // key: serverKey, - // cert: serverCert, - // ca: [client1CA], - //}); - server.listen(serverPort, setupProxy); - - function setupProxy() { - proxy = https.createServer({ - key: proxyKey, - cert: proxyCert, - ca: [client2CA], - requestCert: true, - rejectUnauthorized: true - }, function(req, res) { - should.fail(); - }); - //proxy.addContext('proxy2', { - // key: proxyKey, - // cert: proxyCert, - // ca: [client2CA], - //}); - proxy.on('upgrade', onConnect); // for v0.6 - proxy.on('connect', onConnect); // for v0.7 or later - - function onConnect(req, clientSocket, head) { - req.method.should.equal('CONNECT'); - req.url.should.equal('localhost:' + serverPort); - req.headers.should.not.have.property('transfer-encoding'); - ++proxyConnect; - - var serverSocket = net.connect(serverPort, function() { - tunnel.debug('PROXY: replying to client CONNECT request'); - clientSocket.write('HTTP/1.1 200 Connection established\r\n\r\n'); - clientSocket.pipe(serverSocket); - serverSocket.write(head); - serverSocket.pipe(clientSocket); - // workaround, see #2524 - serverSocket.on('end', function() { - clientSocket.end(); - }); - }); - } - proxy.listen(proxyPort, setupClient); - } - - function setupClient() { - function doRequest(name, options, host) { - tunnel.debug('CLIENT: Making HTTPS request (%s)', name); - ++clientRequest; - var agent = tunnel.httpsOverHttps(options); - var req = https.get({ - host: 'localhost', - port: serverPort, - path: '/' + encodeURIComponent(name), - headers: { - host: host ? host : 'localhost', - }, - rejectUnauthorized: true, - agent: agent - }, function(res) { - tunnel.debug('CLIENT: got HTTPS response (%s)', name); - ++clientConnect; - res.on('data', function(data) { - }); - res.on('end', function() { - req.emit('finish'); - }); - res.resume(); - }); - req.on('error', function(err) { - tunnel.debug('CLIENT: failed HTTP response (%s)', name, err); - ++clientError; - req.emit('finish'); - }); - req.on('finish', function() { - if (clientConnect + clientError === clientRequest) { - proxy.close(); - server.close(); - } - }); - } - - doRequest('no cert origin nor proxy', { // invalid - maxSockets: 1, - ca: [serverCA], - rejectUnauthorized: true, - // no certificate for origin server - proxy: { - port: proxyPort, - ca: [proxyCA], - rejectUnauthorized: true, - headers: { - host: 'proxy2' - } - // no certificate for proxy - } - }, 'server2'); - - doRequest('no cert proxy', { // invalid - maxSockets: 1, - ca: [serverCA], - rejectUnauthorized: true, - // client certification for origin server - key: client1Key, - cert: client1Cert, - proxy: { - port: proxyPort, - ca: [proxyCA], - rejectUnauthorized: true, - headers: { - host: 'proxy2' - } - // no certificate for proxy - } - }, 'server2'); - - doRequest('no cert origin', { // invalid - maxSockets: 1, - ca: [serverCA], - rejectUnauthorized: true, - // no certificate for origin server - proxy: { - port: proxyPort, - servername: 'proxy2', - ca: [proxyCA], - rejectUnauthorized: true, - headers: { - host: 'proxy2' - }, - // client certification for proxy - key: client2Key, - cert: client2Cert - } - }, 'server2'); - - doRequest('invalid proxy server name', { // invalid - maxSockets: 1, - ca: [serverCA], - rejectUnauthorized: true, - // client certification for origin server - key: client1Key, - cert: client1Cert, - proxy: { - port: proxyPort, - ca: [proxyCA], - rejectUnauthorized: true, - // client certification for proxy - key: client2Key, - cert: client2Cert, - } - }, 'server2'); - - doRequest('invalid origin server name', { // invalid - maxSockets: 1, - ca: [serverCA], - rejectUnauthorized: true, - // client certification for origin server - key: client1Key, - cert: client1Cert, - proxy: { - port: proxyPort, - servername: 'proxy2', - ca: [proxyCA], - rejectUnauthorized: true, - headers: { - host: 'proxy2' - }, - // client certification for proxy - key: client2Key, - cert: client2Cert - } - }); - - doRequest('valid', { // valid - maxSockets: 1, - ca: [serverCA], - rejectUnauthorized: true, - // client certification for origin server - key: client1Key, - cert: client1Cert, - proxy: { - port: proxyPort, - servername: 'proxy2', - ca: [proxyCA], - rejectUnauthorized: true, - headers: { - host: 'proxy2' - }, - // client certification for proxy - key: client2Key, - cert: client2Cert - } - }, 'server2'); - } - - server.on('close', function() { - serverConnect.should.equal(1); - proxyConnect.should.equal(3); - clientConnect.should.equal(1); - clientError.should.equal(5); - - done(); - }); - }); -}); diff --git a/node_modules/tunnel/test/https-over-https.js b/node_modules/tunnel/test/https-over-https.js deleted file mode 100644 index a9f81c8..0000000 --- a/node_modules/tunnel/test/https-over-https.js +++ /dev/null @@ -1,146 +0,0 @@ -var http = require('http'); -var https = require('https'); -var net = require('net'); -var fs = require('fs'); -var path = require('path'); -var should = require('should'); -var tunnel = require('../index.js'); - -function readPem(file) { - return fs.readFileSync(path.join('test/keys', file + '.pem')); -} - -var serverKey = readPem('server1-key'); -var serverCert = readPem('server1-cert'); -var serverCA = readPem('ca1-cert'); -var proxyKey = readPem('proxy1-key'); -var proxyCert = readPem('proxy1-cert'); -var proxyCA = readPem('ca2-cert'); -var client1Key = readPem('client1-key'); -var client1Cert = readPem('client1-cert'); -var client1CA = readPem('ca3-cert'); -var client2Key = readPem('client2-key'); -var client2Cert = readPem('client2-cert'); -var client2CA = readPem('ca4-cert'); - -describe('HTTPS over HTTPS', function() { - it('should finish without error', function(done) { - var serverPort = 3006; - var proxyPort = 3007; - var poolSize = 3; - var N = 5; - var serverConnect = 0; - var proxyConnect = 0; - var clientConnect = 0; - var server; - var proxy; - var agent; - - server = https.createServer({ - key: serverKey, - cert: serverCert, - ca: [client1CA], - requestCert: true, - rejectUnauthorized: true - }, function(req, res) { - tunnel.debug('SERVER: got request'); - ++serverConnect; - res.writeHead(200); - res.end('Hello' + req.url); - tunnel.debug('SERVER: sending response'); - }); - server.listen(serverPort, setupProxy); - - function setupProxy() { - proxy = https.createServer({ - key: proxyKey, - cert: proxyCert, - ca: [client2CA], - requestCert: true, - rejectUnauthorized: true - }, function(req, res) { - should.fail(); - }); - proxy.on('upgrade', onConnect); // for v0.6 - proxy.on('connect', onConnect); // for v0.7 or later - - function onConnect(req, clientSocket, head) { - tunnel.debug('PROXY: got CONNECT request'); - req.method.should.equal('CONNECT'); - req.url.should.equal('localhost:' + serverPort); - req.headers.should.not.have.property('transfer-encoding'); - ++proxyConnect; - - var serverSocket = net.connect(serverPort, function() { - tunnel.debug('PROXY: replying to client CONNECT request'); - clientSocket.write('HTTP/1.1 200 Connection established\r\n\r\n'); - clientSocket.pipe(serverSocket); - serverSocket.write(head); - serverSocket.pipe(clientSocket); - // workaround, see joyent/node#2524 - serverSocket.on('end', function() { - clientSocket.end(); - }); - }); - } - proxy.listen(proxyPort, setupClient); - } - - function setupClient() { - agent = tunnel.httpsOverHttps({ - maxSockets: poolSize, - // client certification for origin server - key: client1Key, - cert: client1Cert, - ca: [serverCA], - rejectUnauthroized: true, - proxy: { - port: proxyPort, - // client certification for proxy - key: client2Key, - cert: client2Cert, - ca: [proxyCA], - rejectUnauthroized: true - } - }); - - for (var i = 0; i < N; ++i) { - doClientRequest(i); - } - - function doClientRequest(i) { - tunnel.debug('CLIENT: Making HTTPS request (%d)', i); - var req = https.get({ - port: serverPort, - path: '/' + i, - agent: agent - }, function(res) { - tunnel.debug('CLIENT: got HTTPS response (%d)', i); - res.setEncoding('utf8'); - res.on('data', function(data) { - data.should.equal('Hello/' + i); - }); - res.on('end', function() { - ++clientConnect; - if (clientConnect === N) { - proxy.close(); - server.close(); - } - }); - }); - } - } - - server.on('close', function() { - serverConnect.should.equal(N); - proxyConnect.should.equal(poolSize); - clientConnect.should.equal(N); - - var name = 'localhost:' + serverPort; - agent.sockets.should.be.empty; - agent.requests.should.be.empty; - - done(); - }); - }); -}); diff --git a/node_modules/tunnel/test/keys/Makefile b/node_modules/tunnel/test/keys/Makefile deleted file mode 100644 index 6b4745b..0000000 --- a/node_modules/tunnel/test/keys/Makefile +++ /dev/null @@ -1,157 +0,0 @@ -all: server1-cert.pem server2-cert.pem proxy1-cert.pem proxy2-cert.pem client1-cert.pem client2-cert.pem - - -# -# Create Certificate Authority: ca1 -# ('password' is used for the CA password.) -# -ca1-cert.pem: ca1.cnf - openssl req -new -x509 -days 9999 -config ca1.cnf -keyout ca1-key.pem -out ca1-cert.pem - -# -# Create Certificate Authority: ca2 -# ('password' is used for the CA password.) -# -ca2-cert.pem: ca2.cnf - openssl req -new -x509 -days 9999 -config ca2.cnf -keyout ca2-key.pem -out ca2-cert.pem - -# -# Create Certificate Authority: ca3 -# ('password' is used for the CA password.) -# -ca3-cert.pem: ca3.cnf - openssl req -new -x509 -days 9999 -config ca3.cnf -keyout ca3-key.pem -out ca3-cert.pem - -# -# Create Certificate Authority: ca4 -# ('password' is used for the CA password.) -# -ca4-cert.pem: ca4.cnf - openssl req -new -x509 -days 9999 -config ca4.cnf -keyout ca4-key.pem -out ca4-cert.pem - - -# -# server1 is signed by ca1. -# -server1-key.pem: - openssl genrsa -out server1-key.pem 1024 - -server1-csr.pem: server1.cnf server1-key.pem - openssl req -new -config server1.cnf -key server1-key.pem -out server1-csr.pem - -server1-cert.pem: server1-csr.pem ca1-cert.pem ca1-key.pem - openssl x509 -req \ - -days 9999 \ - -passin "pass:password" \ - -in server1-csr.pem \ - -CA ca1-cert.pem \ - -CAkey ca1-key.pem \ - -CAcreateserial \ - -out server1-cert.pem - -# -# server2 is signed by ca1. -# -server2-key.pem: - openssl genrsa -out server2-key.pem 1024 - -server2-csr.pem: server2.cnf server2-key.pem - openssl req -new -config server2.cnf -key server2-key.pem -out server2-csr.pem - -server2-cert.pem: server2-csr.pem ca1-cert.pem ca1-key.pem - openssl x509 -req \ - -days 9999 \ - -passin "pass:password" \ - -in server2-csr.pem \ - -CA ca1-cert.pem \ - -CAkey ca1-key.pem \ - -CAcreateserial \ - -out server2-cert.pem - -server2-verify: server2-cert.pem ca1-cert.pem - openssl verify -CAfile ca1-cert.pem server2-cert.pem - -# -# proxy1 is signed by ca2. -# -proxy1-key.pem: - openssl genrsa -out proxy1-key.pem 1024 - -proxy1-csr.pem: proxy1.cnf proxy1-key.pem - openssl req -new -config proxy1.cnf -key proxy1-key.pem -out proxy1-csr.pem - -proxy1-cert.pem: proxy1-csr.pem ca2-cert.pem ca2-key.pem - openssl x509 -req \ - -days 9999 \ - -passin "pass:password" \ - -in proxy1-csr.pem \ - -CA ca2-cert.pem \ - -CAkey ca2-key.pem \ - -CAcreateserial \ - -out proxy1-cert.pem - -# -# proxy2 is signed by ca2. -# -proxy2-key.pem: - openssl genrsa -out proxy2-key.pem 1024 - -proxy2-csr.pem: proxy2.cnf proxy2-key.pem - openssl req -new -config proxy2.cnf -key proxy2-key.pem -out proxy2-csr.pem - -proxy2-cert.pem: proxy2-csr.pem ca2-cert.pem ca2-key.pem - openssl x509 -req \ - -days 9999 \ - -passin "pass:password" \ - -in proxy2-csr.pem \ - -CA ca2-cert.pem \ - -CAkey ca2-key.pem \ - -CAcreateserial \ - -out proxy2-cert.pem - -proxy2-verify: proxy2-cert.pem ca2-cert.pem - openssl verify -CAfile ca2-cert.pem proxy2-cert.pem - -# -# client1 is signed by ca3. -# -client1-key.pem: - openssl genrsa -out client1-key.pem 1024 - -client1-csr.pem: client1.cnf client1-key.pem - openssl req -new -config client1.cnf -key client1-key.pem -out client1-csr.pem - -client1-cert.pem: client1-csr.pem ca3-cert.pem ca3-key.pem - openssl x509 -req \ - -days 9999 \ - -passin "pass:password" \ - -in client1-csr.pem \ - -CA ca3-cert.pem \ - -CAkey ca3-key.pem \ - -CAcreateserial \ - -out client1-cert.pem - -# -# client2 is signed by ca4. -# -client2-key.pem: - openssl genrsa -out client2-key.pem 1024 - -client2-csr.pem: client2.cnf client2-key.pem - openssl req -new -config client2.cnf -key client2-key.pem -out client2-csr.pem - -client2-cert.pem: client2-csr.pem ca4-cert.pem ca4-key.pem - openssl x509 -req \ - -days 9999 \ - -passin "pass:password" \ - -in client2-csr.pem \ - -CA ca4-cert.pem \ - -CAkey ca4-key.pem \ - -CAcreateserial \ - -out client2-cert.pem - - -clean: - rm -f *.pem *.srl - -test: client-verify server2-verify proxy1-verify proxy2-verify client-verify diff --git a/node_modules/tunnel/test/keys/agent1-cert.pem b/node_modules/tunnel/test/keys/agent1-cert.pem deleted file mode 100644 index 816f6fb..0000000 --- a/node_modules/tunnel/test/keys/agent1-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICKjCCAZMCCQDQ8o4kHKdCPDANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQGEwJV -UzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQKEwZKb3llbnQxEDAO -BgNVBAsTB05vZGUuanMxDDAKBgNVBAMTA2NhMTEgMB4GCSqGSIb3DQEJARYRcnlA -dGlueWNsb3Vkcy5vcmcwHhcNMTEwMzE0MTgyOTEyWhcNMzgwNzI5MTgyOTEyWjB9 -MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQK -EwZKb3llbnQxEDAOBgNVBAsTB05vZGUuanMxDzANBgNVBAMTBmFnZW50MTEgMB4G -CSqGSIb3DQEJARYRcnlAdGlueWNsb3Vkcy5vcmcwXDANBgkqhkiG9w0BAQEFAANL -ADBIAkEAnzpAqcoXZxWJz/WFK7BXwD23jlREyG11x7gkydteHvn6PrVBbB5yfu6c -bk8w3/Ar608AcyMQ9vHjkLQKH7cjEQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAKha -HqjCfTIut+m/idKy3AoFh48tBHo3p9Nl5uBjQJmahKdZAaiksL24Pl+NzPQ8LIU+ -FyDHFp6OeJKN6HzZ72Bh9wpBVu6Uj1hwhZhincyTXT80wtSI/BoUAW8Ls2kwPdus -64LsJhhxqj2m4vPKNRbHB2QxnNrGi30CUf3kt3Ia ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/agent1-csr.pem b/node_modules/tunnel/test/keys/agent1-csr.pem deleted file mode 100644 index 748fd00..0000000 --- a/node_modules/tunnel/test/keys/agent1-csr.pem +++ /dev/null @@ -1,10 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBXTCCAQcCAQAwfTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQswCQYDVQQH -EwJTRjEPMA0GA1UEChMGSm95ZW50MRAwDgYDVQQLEwdOb2RlLmpzMQ8wDQYDVQQD -EwZhZ2VudDExIDAeBgkqhkiG9w0BCQEWEXJ5QHRpbnljbG91ZHMub3JnMFwwDQYJ -KoZIhvcNAQEBBQADSwAwSAJBAJ86QKnKF2cVic/1hSuwV8A9t45URMhtdce4JMnb -Xh75+j61QWwecn7unG5PMN/wK+tPAHMjEPbx45C0Ch+3IxECAwEAAaAlMCMGCSqG -SIb3DQEJBzEWExRBIGNoYWxsZW5nZSBwYXNzd29yZDANBgkqhkiG9w0BAQUFAANB -AF+AfG64hNyYHum46m6i7RgnUBrJSOynGjs23TekV4he3QdMSAAPPqbll8W14+y3 -vOo7/yQ2v2uTqxCjakUNPPs= ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/agent1-key.pem b/node_modules/tunnel/test/keys/agent1-key.pem deleted file mode 100644 index 5dae7eb..0000000 --- a/node_modules/tunnel/test/keys/agent1-key.pem +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIBOwIBAAJBAJ86QKnKF2cVic/1hSuwV8A9t45URMhtdce4JMnbXh75+j61QWwe -cn7unG5PMN/wK+tPAHMjEPbx45C0Ch+3IxECAwEAAQJBAI2cU1IuR+4IO87WPyAB -76kruoo87AeNQkjjvuQ/00+b/6IS45mcEP5Kw0NukbqBhIw2di9uQ9J51DJ/ZfQr -+YECIQDUHaN3ZjIdJ7/w8Yq9Zzz+3kY2F/xEz6e4ftOFW8bY2QIhAMAref+WYckC -oECgOLAvAxB1lI4j7oCbAaawfxKdnPj5AiEAi95rXx09aGpAsBGmSdScrPdG1v6j -83/2ebrvoZ1uFqkCIB0AssnrRVjUB6GZTNTyU3ERfdkx/RX1zvr8WkFR/lXpAiB7 -cUZ1i8ZkZrPrdVgw2cb28UJM7qZHQnXcMHTXFFvxeQ== ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/agent1.cnf b/node_modules/tunnel/test/keys/agent1.cnf deleted file mode 100644 index 81d2f09..0000000 --- a/node_modules/tunnel/test/keys/agent1.cnf +++ /dev/null @@ -1,19 +0,0 @@ -[ req ] -default_bits = 1024 -days = 999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = US -ST = CA -L = SF -O = Joyent -OU = Node.js -CN = agent1 -emailAddress = ry@tinyclouds.org - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/agent2-cert.pem b/node_modules/tunnel/test/keys/agent2-cert.pem deleted file mode 100644 index 8e4354d..0000000 --- a/node_modules/tunnel/test/keys/agent2-cert.pem +++ /dev/null @@ -1,13 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIB7DCCAZYCCQC7gs0MDNn6MTANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJV -UzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQKEwZKb3llbnQxEDAO -BgNVBAsTB05vZGUuanMxDzANBgNVBAMTBmFnZW50MjEgMB4GCSqGSIb3DQEJARYR -cnlAdGlueWNsb3Vkcy5vcmcwHhcNMTEwMzE0MTgyOTEyWhcNMzgwNzI5MTgyOTEy -WjB9MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYD -VQQKEwZKb3llbnQxEDAOBgNVBAsTB05vZGUuanMxDzANBgNVBAMTBmFnZW50MjEg -MB4GCSqGSIb3DQEJARYRcnlAdGlueWNsb3Vkcy5vcmcwXDANBgkqhkiG9w0BAQEF -AANLADBIAkEAyXb8FrRdKbhrKLgLSsn61i1C7w7fVVVd7OQsmV/7p9WB2lWFiDlC -WKGU9SiIz/A6wNZDUAuc2E+VwtpCT561AQIDAQABMA0GCSqGSIb3DQEBBQUAA0EA -C8HzpuNhFLCI3A5KkBS5zHAQax6TFUOhbpBCR0aTDbJ6F1liDTK1lmU/BjvPoj+9 -1LHwrmh29rK8kBPEjmymCQ== ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/agent2-csr.pem b/node_modules/tunnel/test/keys/agent2-csr.pem deleted file mode 100644 index a670c4c..0000000 --- a/node_modules/tunnel/test/keys/agent2-csr.pem +++ /dev/null @@ -1,10 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBXTCCAQcCAQAwfTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQswCQYDVQQH -EwJTRjEPMA0GA1UEChMGSm95ZW50MRAwDgYDVQQLEwdOb2RlLmpzMQ8wDQYDVQQD -EwZhZ2VudDIxIDAeBgkqhkiG9w0BCQEWEXJ5QHRpbnljbG91ZHMub3JnMFwwDQYJ -KoZIhvcNAQEBBQADSwAwSAJBAMl2/Ba0XSm4ayi4C0rJ+tYtQu8O31VVXezkLJlf -+6fVgdpVhYg5QlihlPUoiM/wOsDWQ1ALnNhPlcLaQk+etQECAwEAAaAlMCMGCSqG -SIb3DQEJBzEWExRBIGNoYWxsZW5nZSBwYXNzd29yZDANBgkqhkiG9w0BAQUFAANB -AJnll2pt5l0pzskQSpjjLVTlFDFmJr/AZ3UK8v0WxBjYjCe5Jx4YehkChpxIyDUm -U3J9q9MDUf0+Y2+EGkssFfk= ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/agent2-key.pem b/node_modules/tunnel/test/keys/agent2-key.pem deleted file mode 100644 index 522903c..0000000 --- a/node_modules/tunnel/test/keys/agent2-key.pem +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIBOgIBAAJBAMl2/Ba0XSm4ayi4C0rJ+tYtQu8O31VVXezkLJlf+6fVgdpVhYg5 -QlihlPUoiM/wOsDWQ1ALnNhPlcLaQk+etQECAwEAAQJBAMT6Bf34+UHKY1ObpsbH -9u2jsVblFq1rWvs8GPMY6oertzvwm3DpuSUp7PTgOB1nLTLYtCERbQ4ovtN8tn3p -OHUCIQDzIEGsoCr5vlxXvy2zJwu+fxYuhTZWMVuo1397L0VyhwIhANQh+yzqUgaf -WRtSB4T2W7ADtJI35ET61jKBty3CqJY3AiAIwju7dVW3A5WeD6Qc1SZGKZvp9yCb -AFI2BfVwwaY11wIgXF3PeGcvACMyMWsuSv7aPXHfliswAbkWuzcwA4TW01ECIGWa -cgsDvVFxmfM5NPSuT/UDTa6R5BFISB5ea0N0AR3I ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/agent2.cnf b/node_modules/tunnel/test/keys/agent2.cnf deleted file mode 100644 index 0a9f2c7..0000000 --- a/node_modules/tunnel/test/keys/agent2.cnf +++ /dev/null @@ -1,19 +0,0 @@ -[ req ] -default_bits = 1024 -days = 999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = US -ST = CA -L = SF -O = Joyent -OU = Node.js -CN = agent2 -emailAddress = ry@tinyclouds.org - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/agent3-cert.pem b/node_modules/tunnel/test/keys/agent3-cert.pem deleted file mode 100644 index e4a2350..0000000 --- a/node_modules/tunnel/test/keys/agent3-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICKjCCAZMCCQCDBr594bsJmTANBgkqhkiG9w0BAQUFADB6MQswCQYDVQQGEwJV -UzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQKEwZKb3llbnQxEDAO -BgNVBAsTB05vZGUuanMxDDAKBgNVBAMTA2NhMjEgMB4GCSqGSIb3DQEJARYRcnlA -dGlueWNsb3Vkcy5vcmcwHhcNMTEwMzE0MTgyOTEyWhcNMzgwNzI5MTgyOTEyWjB9 -MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQK -EwZKb3llbnQxEDAOBgNVBAsTB05vZGUuanMxDzANBgNVBAMTBmFnZW50MzEgMB4G -CSqGSIb3DQEJARYRcnlAdGlueWNsb3Vkcy5vcmcwXDANBgkqhkiG9w0BAQEFAANL -ADBIAkEAtlNDZ+bHeBI0B2gD/IWqA7Aq1hwsnS4+XpnLesjTQcL2JwFFpkR0oWrw -yjrYhCogi7c5gjKrLZF1d2JD5JgHgQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAJoK -bXwsImk7vJz9649yrmsXwnuGbEKVYMvqcGyjaZNP9lYEG41y5CeRzxhWy2rlYdhE -f2nqE2lg75oJP7LQqfQY7aCqwahM3q/GQbsfKVCGjF7TVyq9TQzd8iW+FEJIQzSE -3aN85hR67+3VAXeSzmkGSVBO2m1SJIug4qftIkc2 ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/agent3-csr.pem b/node_modules/tunnel/test/keys/agent3-csr.pem deleted file mode 100644 index e6c0c74..0000000 --- a/node_modules/tunnel/test/keys/agent3-csr.pem +++ /dev/null @@ -1,10 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBXTCCAQcCAQAwfTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQswCQYDVQQH -EwJTRjEPMA0GA1UEChMGSm95ZW50MRAwDgYDVQQLEwdOb2RlLmpzMQ8wDQYDVQQD -EwZhZ2VudDMxIDAeBgkqhkiG9w0BCQEWEXJ5QHRpbnljbG91ZHMub3JnMFwwDQYJ -KoZIhvcNAQEBBQADSwAwSAJBALZTQ2fmx3gSNAdoA/yFqgOwKtYcLJ0uPl6Zy3rI -00HC9icBRaZEdKFq8Mo62IQqIIu3OYIyqy2RdXdiQ+SYB4ECAwEAAaAlMCMGCSqG -SIb3DQEJBzEWExRBIGNoYWxsZW5nZSBwYXNzd29yZDANBgkqhkiG9w0BAQUFAANB -AEGo76iH+a8pnE+RWQT+wg9/BL+iIuqrcFXLs0rbGonqderrwXAe15ODwql/Bfu3 -zgMt8ooTsgMPcMX9EgmubEM= ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/agent3-key.pem b/node_modules/tunnel/test/keys/agent3-key.pem deleted file mode 100644 index d72f071..0000000 --- a/node_modules/tunnel/test/keys/agent3-key.pem +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIBOwIBAAJBALZTQ2fmx3gSNAdoA/yFqgOwKtYcLJ0uPl6Zy3rI00HC9icBRaZE -dKFq8Mo62IQqIIu3OYIyqy2RdXdiQ+SYB4ECAwEAAQJAIk+G9s2SKgFa8y3a2jGZ -LfqABSzmJGooaIsOpLuYLd6eCC31XUDlT4rPVGRhysKQCQ4+NMjgdnj9ZqNnvXY/ -RQIhAOgbdltr3Ey2hy7RuDW5rmOeJTuVqCrZ7QI8ifyCEbYTAiEAyRfvWSvvASeP -kZTMUhATRUpuyDQW+058NE0oJSinTpsCIQCR/FPhBGI3TcaQyA9Ym0T4GwvIAkUX -TqInefRAAX8qSQIgZVJPAdIWGbHSL9sWW97HpukLCorcbYEtKbkamiZyrjMCIQCX -lX76ttkeId5OsJGQcF67eFMMr2UGZ1WMf6M39lCYHQ== ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/agent3.cnf b/node_modules/tunnel/test/keys/agent3.cnf deleted file mode 100644 index 26db5ba..0000000 --- a/node_modules/tunnel/test/keys/agent3.cnf +++ /dev/null @@ -1,19 +0,0 @@ -[ req ] -default_bits = 1024 -days = 999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = US -ST = CA -L = SF -O = Joyent -OU = Node.js -CN = agent3 -emailAddress = ry@tinyclouds.org - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/agent4-cert.pem b/node_modules/tunnel/test/keys/agent4-cert.pem deleted file mode 100644 index 07157b9..0000000 --- a/node_modules/tunnel/test/keys/agent4-cert.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICSDCCAbGgAwIBAgIJAIMGvn3huwmaMA0GCSqGSIb3DQEBBQUAMHoxCzAJBgNV -BAYTAlVTMQswCQYDVQQIEwJDQTELMAkGA1UEBxMCU0YxDzANBgNVBAoTBkpveWVu -dDEQMA4GA1UECxMHTm9kZS5qczEMMAoGA1UEAxMDY2EyMSAwHgYJKoZIhvcNAQkB -FhFyeUB0aW55Y2xvdWRzLm9yZzAeFw0xMTAzMTQxODI5MTJaFw0zODA3MjkxODI5 -MTJaMH0xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTELMAkGA1UEBxMCU0YxDzAN -BgNVBAoTBkpveWVudDEQMA4GA1UECxMHTm9kZS5qczEPMA0GA1UEAxMGYWdlbnQ0 -MSAwHgYJKoZIhvcNAQkBFhFyeUB0aW55Y2xvdWRzLm9yZzBcMA0GCSqGSIb3DQEB -AQUAA0sAMEgCQQDN/yMfmQ8zdvmjlGk7b3Mn6wY2FjaMb4c5ENJX15vyYhKS1zhx -6n0kQIn2vf6yqG7tO5Okz2IJiD9Sa06mK6GrAgMBAAGjFzAVMBMGA1UdJQQMMAoG -CCsGAQUFBwMCMA0GCSqGSIb3DQEBBQUAA4GBAA8FXpRmdrHBdlofNvxa14zLvv0N -WnUGUmxVklFLKXvpVWTanOhVgI2TDCMrT5WvCRTD25iT1EUKWxjDhFJrklQJ+IfC -KC6fsgO7AynuxWSfSkc8/acGiAH+20vW9QxR53HYiIDMXEV/wnE0KVcr3t/d70lr -ImanTrunagV+3O4O ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/agent4-csr.pem b/node_modules/tunnel/test/keys/agent4-csr.pem deleted file mode 100644 index 97e115d..0000000 --- a/node_modules/tunnel/test/keys/agent4-csr.pem +++ /dev/null @@ -1,10 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBXTCCAQcCAQAwfTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMQswCQYDVQQH -EwJTRjEPMA0GA1UEChMGSm95ZW50MRAwDgYDVQQLEwdOb2RlLmpzMQ8wDQYDVQQD -EwZhZ2VudDQxIDAeBgkqhkiG9w0BCQEWEXJ5QHRpbnljbG91ZHMub3JnMFwwDQYJ -KoZIhvcNAQEBBQADSwAwSAJBAM3/Ix+ZDzN2+aOUaTtvcyfrBjYWNoxvhzkQ0lfX -m/JiEpLXOHHqfSRAifa9/rKobu07k6TPYgmIP1JrTqYroasCAwEAAaAlMCMGCSqG -SIb3DQEJBzEWExRBIGNoYWxsZW5nZSBwYXNzd29yZDANBgkqhkiG9w0BAQUFAANB -AMzo7GUOBtGm5MSck1rrEE2C1bU3qoVvXVuiN3A/57zXeNeq24FZMLnkDeL9U+/b -Kj646XFou04gla982Xp74p0= ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/agent4-key.pem b/node_modules/tunnel/test/keys/agent4-key.pem deleted file mode 100644 index b770b01..0000000 --- a/node_modules/tunnel/test/keys/agent4-key.pem +++ /dev/null @@ -1,9 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIBOQIBAAJBAM3/Ix+ZDzN2+aOUaTtvcyfrBjYWNoxvhzkQ0lfXm/JiEpLXOHHq -fSRAifa9/rKobu07k6TPYgmIP1JrTqYroasCAwEAAQJAN8RQb+dx1A7rejtdWbfM -Rww7PD07Oz2eL/a72wgFsdIabRuVypIoHunqV0sAegYtNJt9yu+VhREw0R5tx/qz -EQIhAPY+nmzp0b4iFRk7mtGUmCTr9iwwzoqzITwphE7FpQnFAiEA1ihUHFT9YPHO -f85skM6qZv77NEgXHO8NJmQZ5GX1ZK8CICzle+Mluo0tD6W7HV4q9pZ8wzSJbY8S -W/PpKetm09F1AiAWTw8sAGKAtc/IGo3Oq+iuYAN1F8lolzJsfGMCGujsOwIgAJKP -t3eXilwX3ZlsDWSklWNZ7iYcfYrvAc3JqU6gFCE= ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/agent4.cnf b/node_modules/tunnel/test/keys/agent4.cnf deleted file mode 100644 index 5e583eb..0000000 --- a/node_modules/tunnel/test/keys/agent4.cnf +++ /dev/null @@ -1,21 +0,0 @@ -[ req ] -default_bits = 1024 -days = 999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = US -ST = CA -L = SF -O = Joyent -OU = Node.js -CN = agent4 -emailAddress = ry@tinyclouds.org - -[ req_attributes ] -challengePassword = A challenge password - -[ ext_key_usage ] -extendedKeyUsage = clientAuth diff --git a/node_modules/tunnel/test/keys/ca1-cert.pem b/node_modules/tunnel/test/keys/ca1-cert.pem deleted file mode 100644 index 640c084..0000000 --- a/node_modules/tunnel/test/keys/ca1-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICIzCCAYwCCQC4ONZJx5BOwjANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTExJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBWMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMQww -CgYDVQQDEwNjYTExJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQu -anAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOJMS1ug8jUu0wwEfD4h9/Mg -w0fvs7JbpMxtwpdcFpg/6ECd8YzGUvljLzeHPe2AhF26MiWIUN3YTxZRiQQ2tv93 -afRVWchdPypytmuxv2aYGjhZ66Tv4vNRizM71OE+66+KS30gEQW2k4MTr0ZVlRPR -OVey+zRSLdVaKciB/XaBAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEApfbly4b+Ry1q -bGIgGrlTvNFvF+j2RuHqSpuTB4nKyw1tbNreKmEEb6SBEfkjcTONx5rKECZ5RRPX -z4R/o1G6Dn21ouf1pWQO0BC/HnLN30KvvsoZRoxBn/fqBlJA+j/Kpj3RQgFj6l2I -AKI5fD+ucPqRGhjmmTsNyc+Ln4UfAq8= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/ca1-cert.srl b/node_modules/tunnel/test/keys/ca1-cert.srl deleted file mode 100644 index d7f4b79..0000000 --- a/node_modules/tunnel/test/keys/ca1-cert.srl +++ /dev/null @@ -1 +0,0 @@ -B111C9CEF0257692 diff --git a/node_modules/tunnel/test/keys/ca1-key.pem b/node_modules/tunnel/test/keys/ca1-key.pem deleted file mode 100644 index aaa58ae..0000000 --- a/node_modules/tunnel/test/keys/ca1-key.pem +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN ENCRYPTED PRIVATE KEY----- -MIICxjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIbo5wvG42IY0CAggA -MBQGCCqGSIb3DQMHBAgf8SPuz4biYASCAoAR4r8MVikusOAEt4Xp6nB7whrMX4iG -G792Qpf21nHZPMV73w3cdkfimbAfUn8F50tSJwdrAa8U9BjjpL9Kt0loIyXt/r8c -6PWAQ4WZuLPgTFUTJUNAXrunBHI0iFWYEN4YzJYmT1qN3J4u0diy0MkKz6eJPfZ3 -3v97+nF7dR2H86ZgLKsuE4pO5IRb60XW85d7CYaY6rU6l6mXMF0g9sIccHTlFoet -Xm6cA7NAm1XSI1ciYcoc8oaVE9dXoOALaTnBEZ2MJGpsYQ0Hr7kB4VKAO9wsOta5 -L9nXPv79Nzo1MZMChkrORFnwOzH4ffsUwVQ70jUzkt5DEyzCM1oSxFNRQESxnFrr -7c1jLg2gxAVwnqYo8njsKJ23BZqZUxHsBgB2Mg1L/iPT6zhclD0u3RZx9MR4ezB2 -IqoCF19Z5bblkReAeVRAE9Ol4hKVaCEIIPUspcw7eGVGONalHDCSXpIFnJoZLeXJ -OZjLmYlA6KkJw52eNE5IwIb8l/tha2fwNpRvlMoXp65yH9wKyJk8zPSM6WAk4dKD -nLrTCK4KtM6aIbG14Mff6WEf3uaLPM0cLwxmuypfieCZfkIzgytNdFZoBgaYUpon -zazvUMoy3gqDBorcU08SaosdRoL+s+QVkRhA29shf42lqOM4zbh0dTul4QDlLG0U -VBNeMJ3HnrqATfBU28j3bUqtuF2RffgcN/3ivlBjcyzF/iPt0TWmm6Zz5v4K8+b6 -lOm6gofIz+ffg2cXfPzrqZ2/xhFkcerRuN0Xp5eAhlI2vGJVGuEc4X+tT7VtQgLV -iovqzlLhp+ph/gsfCcsYZ9iso3ozw+Cx1HfJ8XT7yWUgXxblkt4uszEo ------END ENCRYPTED PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/ca1.cnf b/node_modules/tunnel/test/keys/ca1.cnf deleted file mode 100644 index dcb0637..0000000 --- a/node_modules/tunnel/test/keys/ca1.cnf +++ /dev/null @@ -1,17 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no -output_password = password - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = ca1 -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/ca2-cert.pem b/node_modules/tunnel/test/keys/ca2-cert.pem deleted file mode 100644 index 4c29c87..0000000 --- a/node_modules/tunnel/test/keys/ca2-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICIzCCAYwCCQCxIhZSDET+8DANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTIxJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBWMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMQww -CgYDVQQDEwNjYTIxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQu -anAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMaaLMMe7K5eYABH3NnJoimG -LvY4S5tdGF6YRwfkn1bgGa+kEw1zNqa/Y0jSzs4h7bApt3+bKTalR4+Zk+0UmWgZ -Gvlq8+mdqDXtBKoWE3vYDPBmeNyKsgxf9UIhFOpsxVUeYP8t66qJyUk/FlFJcDqc -WPawikl1bUFSZXBKu4PxAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAwh3sXPIkA5kn -fpg7fV5haS4EpFr9ia61dzWbhXDZtasAx+nWdWqgG4T+HIYSLlMNZbGJ998uhFZf -DEHlbY/WuSBukZ0w+xqKBtPyjLIQKVvNiaTx5YMzQes62R1iklOXzBzyHbYIxFOG -dqLfIjEe/mVVoR23LN2tr8Wa6+rmd+w= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/ca2-cert.srl b/node_modules/tunnel/test/keys/ca2-cert.srl deleted file mode 100644 index 2749952..0000000 --- a/node_modules/tunnel/test/keys/ca2-cert.srl +++ /dev/null @@ -1 +0,0 @@ -9BF2D4B2E00EDF16 diff --git a/node_modules/tunnel/test/keys/ca2-crl.pem b/node_modules/tunnel/test/keys/ca2-crl.pem deleted file mode 100644 index 166df74..0000000 --- a/node_modules/tunnel/test/keys/ca2-crl.pem +++ /dev/null @@ -1,10 +0,0 @@ ------BEGIN X509 CRL----- -MIIBXTCBxzANBgkqhkiG9w0BAQQFADB6MQswCQYDVQQGEwJVUzELMAkGA1UECBMC -Q0ExCzAJBgNVBAcTAlNGMQ8wDQYDVQQKEwZKb3llbnQxEDAOBgNVBAsTB05vZGUu -anMxDDAKBgNVBAMTA2NhMjEgMB4GCSqGSIb3DQEJARYRcnlAdGlueWNsb3Vkcy5v -cmcXDTExMDMxNDE4MjkxNloXDTEzMTIwNzE4MjkxNlowHDAaAgkAgwa+feG7CZoX -DTExMDMxNDE4MjkxNFowDQYJKoZIhvcNAQEEBQADgYEArRKuEkOla61fm4zlZtHe -LTXFV0Hgo21PScHAp6JqPol4rN5R9+EmUkv7gPCVVBJ9VjIgxSosHiLsDiz3zR+u -txHemhzbdIVANAIiChnFct8sEqH2eL4N6XNUIlMIR06NjNl7NbN8w8haqiearnuT -wmnaL4TThPmpbpKAF7N7JqQ= ------END X509 CRL----- diff --git a/node_modules/tunnel/test/keys/ca2-database.txt b/node_modules/tunnel/test/keys/ca2-database.txt deleted file mode 100644 index a0966d2..0000000 --- a/node_modules/tunnel/test/keys/ca2-database.txt +++ /dev/null @@ -1 +0,0 @@ -R 380729182912Z 110314182914Z 8306BE7DE1BB099A unknown /C=US/ST=CA/L=SF/O=Joyent/OU=Node.js/CN=agent4/emailAddress=ry@tinyclouds.org diff --git a/node_modules/tunnel/test/keys/ca2-key.pem b/node_modules/tunnel/test/keys/ca2-key.pem deleted file mode 100644 index 9cea659..0000000 --- a/node_modules/tunnel/test/keys/ca2-key.pem +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN ENCRYPTED PRIVATE KEY----- -MIICxjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI3aq9fKZIOF0CAggA -MBQGCCqGSIb3DQMHBAjyunMfVve0OwSCAoAdMsrRFlQUSILw+bq3cSVIIbFjwcs0 -B1Uz2rc9SB+1qjsazjv4zvPQSXTrsx2EOSJf9PSPz7r+c0NzO9vfWLorpXof/lwL -C1tRN7/1OqEW/mTK+1wlv0M5C4cmf44BBXmI+y+RWrQ/qc+CWEMvfHwv9zWr2K+i -cLlZv55727GvZYCMMVLiqYd/Ejj98loBsE5dhN4JJ5MPaN3UHhFTCpD453GIIzCi -FRuYhOOtX4qYoEuP2db4S2qu26723ZJnYBEHkK2YZiRrgvoZHugyGIr4f/RRoSUI -fPgycgQfL3Ow+Y1G533PiZ+CYgh9cViUzhZImEPiZpSuUntAD1loOYkJuV9Ai9XZ -+t6+7tfkM3aAo1bkaU8KcfINxxNWfAhCbUQw+tGJl2A+73OM5AGjGSfzjQQL/FOa -5omfEvdfEX2XyRRlqnQ2VucvSTL9ZdzbIJGg/euJTpM44Fwc7yAZv2aprbPoPixu -yyf0LoTjlGGSBZvHkunpWx82lYEXvHhcnCxV5MDFw8wehvDrvcSuzb8//HzLOiOB -gzUr3DOQk4U1UD6xixZjAKC+NUwTVZoHg68KtmQfkq+eGUWf5oJP4xUigi3ui/Wy -OCBDdlRBkFtgLGL51KJqtq1ixx3Q9HMl0y6edr5Ls0unDIo0LtUWUUcAtr6wl+kK -zSztxFMi2zTtbhbkwoVpucNstFQNfV1k22vtnlcux2FV2DdZiJQwYpIbr8Gj6gpK -gtV5l9RFe21oZBcKPt/chrF8ayiClfGMpF3D2p2GqGCe0HuH5uM/JAFf60rbnriA -Nu1bWiXsXLRUXcLIQ/uEPR3Mvvo9k1h4Q6it1Rp67eQiXCX6h2uFq+sB ------END ENCRYPTED PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/ca2-serial b/node_modules/tunnel/test/keys/ca2-serial deleted file mode 100644 index 8a0f05e..0000000 --- a/node_modules/tunnel/test/keys/ca2-serial +++ /dev/null @@ -1 +0,0 @@ -01 diff --git a/node_modules/tunnel/test/keys/ca2.cnf b/node_modules/tunnel/test/keys/ca2.cnf deleted file mode 100644 index 46e8274..0000000 --- a/node_modules/tunnel/test/keys/ca2.cnf +++ /dev/null @@ -1,17 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no -output_password = password - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = ca2 -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/ca3-cert.pem b/node_modules/tunnel/test/keys/ca3-cert.pem deleted file mode 100644 index 02b3f7a..0000000 --- a/node_modules/tunnel/test/keys/ca3-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICIzCCAYwCCQCudHFhEWiUHDANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTMxJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBWMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMQww -CgYDVQQDEwNjYTMxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQu -anAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJPRJMhCNtxX6dQ3rLdrzVCl -XJMSRIICpbsc7arOzSJcrsIYeYC4d29dGwxYNLnAkKSmHujFT9SmFgh88CoYETLp -gE9zCk9hVCwUlWelM/UaIrzeLT4SC3VBptnLmMtk2mqFniLcaFdMycAcX8OIhAgG -fbqyT5Wxwz7UMegip2ZjAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEADpu8a/W+NPnS -mhyIOxXn8O//2oH9ELlBYFLIgTid0xmS05x/MgkXtWqiBEEZFoOfoJBJxM3vTFs0 -PiZvcVjv0IIjDF4s54yRVH+4WI2p7cil1fgzAVRTuOIuR+VyN7ct8s26a/7GFDq6 -NJMByyjsJHyxwwri5hVv+jbLCxmnDjI= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/ca3-cert.srl b/node_modules/tunnel/test/keys/ca3-cert.srl deleted file mode 100644 index cfd39e1..0000000 --- a/node_modules/tunnel/test/keys/ca3-cert.srl +++ /dev/null @@ -1 +0,0 @@ -EF7B2CF0FA61DF41 diff --git a/node_modules/tunnel/test/keys/ca3-key.pem b/node_modules/tunnel/test/keys/ca3-key.pem deleted file mode 100644 index 8931132..0000000 --- a/node_modules/tunnel/test/keys/ca3-key.pem +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN ENCRYPTED PRIVATE KEY----- -MIICxjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIwAta+L4c9soCAggA -MBQGCCqGSIb3DQMHBAgqRud2p3SvogSCAoDXoDJOJDkvgFpQ6rxeV5r0fLX4SrGJ -quv4yt02QxSDUPN2ZLtBt6bLzg4Zv2pIggufYJcZ2IOUnX82T7FlvBP8hbW1q3Bs -jAso7z8kJlFrZjNudjuP2l/X8tjrVyr3I0PoRoomtcHnCcSDdyne8Dqqj1enuikF -8b7FZUqocNLfu8LmNGxMmMwjw3UqhtpP5DjqV60B8ytQFPoz/gFh6aNGvsrD/avU -Dj8EJkQZP6Q32vmCzAvSiLjk7FA7RFmBtaurE9hJYNlc5v1eo69EUwPkeVlTpglJ -5sZAHxlhQCgc72ST6uFQKiMO3ng/JJA5N9EvacYSHQvI1TQIo43V2A//zUh/5hGL -sDv4pRuFq9miX8iiQpwo1LDfRzdwg7+tiLm8/mDyeLUSzDNc6GIX/tC9R4Ukq4ge -1Cfq0gtKSRxZhM8HqpGBC9rDs5mpdUqTRsoHLFn5T6/gMiAtrLCJxgD8JsZBa8rM -KZ09QEdZXTvpyvZ8bSakP5PF6Yz3QYO32CakL7LDPpCng0QDNHG10YaZbTOgJIzQ -NJ5o87DkgDx0Bb3L8FoREIBkjpYFbQi2fvPthoepZ3D5VamVsOwOiZ2sR1WF2J8l -X9c8GdG38byO+SQIPNZ8eT5JvUcNeSlIZiVSwvaEk496d2KzhmMMfoBLFVeHXG90 -CIZPleVfkTmgNQgXPWcFngqTZdDEGsHjEDDhbEAijB3EeOxyiiEDJPMy5zqkdy5D -cZ/Y77EDbln7omcyL+cGvCgBhhYpTbtbuBtzW4CiCvcfEB5N4EtJKOTRJXIpL/d3 -oVnZruqRRKidKwFMEZU2NZJX5FneAWFSeCv0IrY2vAUIc3El+n84CFFK ------END ENCRYPTED PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/ca3.cnf b/node_modules/tunnel/test/keys/ca3.cnf deleted file mode 100644 index 7b2378a..0000000 --- a/node_modules/tunnel/test/keys/ca3.cnf +++ /dev/null @@ -1,17 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no -output_password = password - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = ca3 -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/ca4-cert.pem b/node_modules/tunnel/test/keys/ca4-cert.pem deleted file mode 100644 index ed0686a..0000000 --- a/node_modules/tunnel/test/keys/ca4-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICIzCCAYwCCQDUGh2r7lOpITANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTQxJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBWMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMQww -CgYDVQQDEwNjYTQxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQu -anAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOOC+SPC8XzkjIHfKPMzzNV6 -O/LpqQWdzJtEvFNW0oQ9g8gSV4iKqwUFrLNnSlwSGigvqKqGmYtG8S17ANWInoxI -c3sQlrS2cGbgLUBNKu4hZ7s+11EPOjbnn0QUE5w9GN8fy8CDx7ID/8URYKoxcoRv -0w7EJ2agfd68KS1ayxUXAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAumPFeR63Dyki -SWQtRAe2QWkIFlSRAR2PvSDdsDMLwMeXF5wD3Hv51yfTu9Gkg0QJB86deYfQ5vfV -4QsOQ35icesa12boyYpTE0/OoEX1f/s1sLlszpRvtAki3J4bkcGWAzM5yO1fKqpQ -MbtPzLn+DA7ymxuJa6EQAEb+kaJEBuU= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/ca4-cert.srl b/node_modules/tunnel/test/keys/ca4-cert.srl deleted file mode 100644 index 5c11314..0000000 --- a/node_modules/tunnel/test/keys/ca4-cert.srl +++ /dev/null @@ -1 +0,0 @@ -B01FE0416A2EDCF5 diff --git a/node_modules/tunnel/test/keys/ca4-key.pem b/node_modules/tunnel/test/keys/ca4-key.pem deleted file mode 100644 index fa7aca1..0000000 --- a/node_modules/tunnel/test/keys/ca4-key.pem +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN ENCRYPTED PRIVATE KEY----- -MIICxjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIWE/ri/feeikCAggA -MBQGCCqGSIb3DQMHBAiu6hUzoFnsVASCAoC53ZQ4gxLcFnb5yAcdCl4DdKOJ5m4G -CHosR87pJpZlO68DsCKwORUp9tTmb1/Q4Wm9n2kRf6VQNyVVm6REwzEPAgIJEgy2 -FqLmfqpTElbRsQako8UDXjDjaMO30e+Qhy8HOTrHMJZ6LgrU90xnOCPPeN9fYmIu -YBkX4qewUfu+wFzk/unUbFLChvJsEN4fdrlDwTJMHRzKwbdvg3mHlCnspWwjA2Mc -q27QPeb3mwRUajmqL0dT9y7wVYeAN2zV59VoWm6zV+dWFgyMlVrVCRYkqQC3xOsy -ZlKrGldrY8nNdv5s6+Sc7YavTJiJxHgIB7sm6QFIsdqjxTBEGD4/YhEI52SUw/xO -VJmOTWdWUz4FdWNi7286nfhZ0+mdv6fUoG54Qv6ahnUMJvEsp60LkR1gHXLzQu/m -+yDZFqY/IIg2QA7M3gL0Md5GrWydDlD2uBPoXcC4A5gfOHswzHWDKurDCpoMqdpn -CUQ/ZVl2rwF8Pnty61MjY1xCN1r8xQjFBCgcfBWw5v6sNRbr/vef3TfQIBzVm+hx -akDb1nckBsIjMT9EfeT6hXub2n0oehEHewF1COifbcOjnxToLSswPLrtb0behB+o -zTgftn+4XrkY0sFY69TzYtQVMLAsiWTpZFvAi+D++2pXlQ/bnxKJiBBc6kZuAGpN -z+cJ4kUuFE4S9v5C5vK89nIgcuJT06u8wYTy0N0j/DnIjSaVgGr0Y0841mXtU1VV -wUZjuyYrVwVT/g5r6uzEFldTcjmYkbMaxo+MYnEZZgqYJvu2QlK87YxJOwo+D1NX -4gl1s/bmlPlGw/t9TxutI3S9PEr3JM3013e9UPE+evlTG9IIrZaUPzyj ------END ENCRYPTED PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/ca4.cnf b/node_modules/tunnel/test/keys/ca4.cnf deleted file mode 100644 index ceac8f3..0000000 --- a/node_modules/tunnel/test/keys/ca4.cnf +++ /dev/null @@ -1,17 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no -output_password = password - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = ca4 -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/client.cnf b/node_modules/tunnel/test/keys/client.cnf deleted file mode 100644 index e3db741..0000000 --- a/node_modules/tunnel/test/keys/client.cnf +++ /dev/null @@ -1,16 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = localhost -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/client1-cert.pem b/node_modules/tunnel/test/keys/client1-cert.pem deleted file mode 100644 index 24ea1db..0000000 --- a/node_modules/tunnel/test/keys/client1-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICKTCCAZICCQDveyzw+mHfQTANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTMxJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBcMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMRIw -EAYDVQQDEwlsb2NhbGhvc3QxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92 -ZW1lbnQuanAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMYUuKyuxT93zvrS -mL8IMI8xu8dP3iRZDUYu6dmq6Dntgb7intfzxtEFVmfNCDGwJwg7UKx/FzftGxFb -9LksuvAQuW2FLhCrOmXUVU938OZkQRSflISD80kd4i9JEoKKYPX1imjaMugIQ0ta -Bq2orY6sna8JAUVDW6WO3wVEJ4mBAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAAbaH -bc/6dIFC9TPIDrgsLtsOtycdBJqKbFT1wThhyKncXF/iyaI+8N4UA+hXMjk8ODUl -BVmmgaN6ufMLwnx/Gdl9FLmmDq4FQ4zspClTJo42QPzg5zKoPSw5liy73LM7z+nG -g6IeM8RFlEbs109YxqvQnbHfTgeLdIsdvtNXU80= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/client1-csr.pem b/node_modules/tunnel/test/keys/client1-csr.pem deleted file mode 100644 index c33a135..0000000 --- a/node_modules/tunnel/test/keys/client1-csr.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBwTCCASoCAQAwXDELMAkGA1UEBhMCSlAxEjAQBgNVBAsUCW5vZGVqc19qcDES -MBAGA1UEAxMJbG9jYWxob3N0MSUwIwYJKoZIhvcNAQkBFhZrb2ljaGlrQGltcHJv -dmVtZW50LmpwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDGFLisrsU/d876 -0pi/CDCPMbvHT94kWQ1GLunZqug57YG+4p7X88bRBVZnzQgxsCcIO1Csfxc37RsR -W/S5LLrwELlthS4Qqzpl1FVPd/DmZEEUn5SEg/NJHeIvSRKCimD19Ypo2jLoCENL -WgatqK2OrJ2vCQFFQ1uljt8FRCeJgQIDAQABoCUwIwYJKoZIhvcNAQkHMRYTFEEg -Y2hhbGxlbmdlIHBhc3N3b3JkMA0GCSqGSIb3DQEBBQUAA4GBAB5NvNSHX+WDlF5R -LNr7SI2NzIy5OWEAgTxLkvS0NS75zlDLScaqwgs1uNfB2AnH0Fpw9+pePEijlb+L -3VRLNpV8hRn5TKztlS3O0Z4PPb7hlDHitXukTOQYrq0juQacodVSgWqNbac+O2yK -qf4Y3A7kQO1qmDOfN6QJFYVIpPiP ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/client1-key.pem b/node_modules/tunnel/test/keys/client1-key.pem deleted file mode 100644 index 52aff97..0000000 --- a/node_modules/tunnel/test/keys/client1-key.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICXAIBAAKBgQDGFLisrsU/d8760pi/CDCPMbvHT94kWQ1GLunZqug57YG+4p7X -88bRBVZnzQgxsCcIO1Csfxc37RsRW/S5LLrwELlthS4Qqzpl1FVPd/DmZEEUn5SE -g/NJHeIvSRKCimD19Ypo2jLoCENLWgatqK2OrJ2vCQFFQ1uljt8FRCeJgQIDAQAB -AoGAbfcM+xjfejeqGYcWs175jlVe2OyW93jUrLTYsDV4TMh08iLfaiX0pw+eg2vI -88TGNoSvacP4gNzJ3R4+wxp5AFlRKZ876yL7D0VKavMFwbyRk21+D/tLGvW6gqOC -4qi4IWSkfgBh5RK+o4jZcl5tzRPQyuxR3pJGBS33q5K2dEECQQDhV4NuKZcGDnKt -1AhmtzqsJ4wrp2a3ysZYDTWyA692NGXi2Vnpnc6Aw9JchJhT3cueFLcOTFrb/ttu -ZC/iA67pAkEA4Qe7LvcPvHlwNAmzqzOg2lYAqq+aJY2ghfJMqr3dPCJqbHJnLN6p -GXsqGngwVlnvso0O/n5g30UmzvkRMFZW2QJAbOMQy0alh3OrzntKo/eeDln9zYpS -hDUjqqCXdbF6M7AWG4vTeqOaiXYWTEZ2JPBj17tCyVH0BaIc/jbDPH9zIQJBALei -YH0l/oB2tTqyBB2cpxIlhqvDW05z8d/859WZ1PVivGg9P7cdCO+TU7uAAyokgHe7 -ptXFefYZb18NX5qLipkCQHjIo4BknrO1oisfsusWcCC700aRIYIDk0QyEEIAY3+9 -7ar/Oo1EbqWA/qN7zByPuTKrjrb91/D+IMFUFgb4RWc= ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/client1.cnf b/node_modules/tunnel/test/keys/client1.cnf deleted file mode 100644 index e3db741..0000000 --- a/node_modules/tunnel/test/keys/client1.cnf +++ /dev/null @@ -1,16 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = localhost -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/client2-cert.pem b/node_modules/tunnel/test/keys/client2-cert.pem deleted file mode 100644 index f0de53c..0000000 --- a/node_modules/tunnel/test/keys/client2-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICKTCCAZICCQCwH+BBai7c9TANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTQxJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBcMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMRIw -EAYDVQQDEwlsb2NhbGhvc3QxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92 -ZW1lbnQuanAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMJQGt34PZX5pQmi -3bNp3dryr7qPO3oGhTeShLCeZ6PPCdnmVl0PnT0n8/DFBlaijbvXGU9AjcFZ7gg7 -hcSAFLGmPEb2pug021yzl7u0qUD2fnVaEzfJ04ZU4lUCFqGKsfFVQuIkDHFwadbE -AO+8EqOmDynUMkKfHPWQK6O9jt5ZAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEA143M -QIygJGDv2GFKlVgV05/CYZo6ouX9I6vPRekJnGeL98lmVH83Ogb7Xmc2SbJ18qFq -naBYnUEmHPUAZ2Ms2KuV3OOvscUSCsEJ4utJYznOT8PsemxVWrgG1Ba+zpnPkdII -p+PanKCsclNUKwBlSkJ8XfGi9CAZJBykwws3O1c= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/client2-csr.pem b/node_modules/tunnel/test/keys/client2-csr.pem deleted file mode 100644 index b7507f4..0000000 --- a/node_modules/tunnel/test/keys/client2-csr.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBwTCCASoCAQAwXDELMAkGA1UEBhMCSlAxEjAQBgNVBAsUCW5vZGVqc19qcDES -MBAGA1UEAxMJbG9jYWxob3N0MSUwIwYJKoZIhvcNAQkBFhZrb2ljaGlrQGltcHJv -dmVtZW50LmpwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDCUBrd+D2V+aUJ -ot2zad3a8q+6jzt6BoU3koSwnmejzwnZ5lZdD509J/PwxQZWoo271xlPQI3BWe4I -O4XEgBSxpjxG9qboNNtcs5e7tKlA9n51WhM3ydOGVOJVAhahirHxVULiJAxxcGnW -xADvvBKjpg8p1DJCnxz1kCujvY7eWQIDAQABoCUwIwYJKoZIhvcNAQkHMRYTFEEg -Y2hhbGxlbmdlIHBhc3N3b3JkMA0GCSqGSIb3DQEBBQUAA4GBAA//UPKPpVEpflDj -DBboWewa6yw8FEOnMvh6eeg/a8KbXfIYnkZRtxbmH06ygywBy/RUBCbM5EzyElkJ -bTVKorzCHnxuTfSnKQ68ZD+vI2SNjiWqQFXW6oOCPzLbtaTJVKw5D6ylBp8Zsu6n -BzQ/4Y42aX/HW4nfJeDydxNFYVJJ ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/client2-key.pem b/node_modules/tunnel/test/keys/client2-key.pem deleted file mode 100644 index ecb616e..0000000 --- a/node_modules/tunnel/test/keys/client2-key.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICWwIBAAKBgQDCUBrd+D2V+aUJot2zad3a8q+6jzt6BoU3koSwnmejzwnZ5lZd -D509J/PwxQZWoo271xlPQI3BWe4IO4XEgBSxpjxG9qboNNtcs5e7tKlA9n51WhM3 -ydOGVOJVAhahirHxVULiJAxxcGnWxADvvBKjpg8p1DJCnxz1kCujvY7eWQIDAQAB -AoGAbiT0JdCaMFIzb/PnEdU30e1xGSIpx7C8gNTH7EnOW7d3URHU8KlyKwFjsJ4u -SpuYFdsG2Lqx3+D3IamD2O/1SgODmtdFas1C/hQ2zx42SgyBQolVJU1MHJxHqmCb -nm2Wo8aHmvFXpQ8OF4YJLPxLOSdvmq0PC17evDyjz5PciWUCQQD5yzaBpJ7yzGwd -b6nreWj6pt+jfi11YsA3gAdvTJcFzMGyNNC+U9OExjQqHsyaHyxGhHKQ6y+ybZkR -BggkudPfAkEAxyQC/hmcvWegdGI4xOJNbm0kv8UyxyeqhtgzEW2hWgEQs4k3fflZ -iNpvxyIBIp/7zZo02YqeQfZlDYuxKypUxwJAa6jQBzRCZXcBqfY0kA611kIR5U8+ -nHdBTSpbCfdCp/dGDF6DEWTjpzgdx4GawVpqJMJ09kzHM+nUrOeinuGQlQJAMAsV -Gb6OHPfaMxnbPkymh6SXQBjQNlHwhxWzxFmhmrg1EkthcufsXOLuIqmmgnb8Zc71 -PyJ9KcbK/GieNp7A0wJAIz3Mm3Up9Rlk25TH9k5e3ELjC6fkd93u94Uo145oTgDm -HSbCbjifP5eVl66PztxZppG2GBXiXT0hA/RMruTQMg== ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/client2.cnf b/node_modules/tunnel/test/keys/client2.cnf deleted file mode 100644 index e3db741..0000000 --- a/node_modules/tunnel/test/keys/client2.cnf +++ /dev/null @@ -1,16 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = localhost -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/proxy1-cert.pem b/node_modules/tunnel/test/keys/proxy1-cert.pem deleted file mode 100644 index 30851fe..0000000 --- a/node_modules/tunnel/test/keys/proxy1-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICKTCCAZICCQCb8tSy4A7fFTANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTIxJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBcMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMRIw -EAYDVQQDEwlsb2NhbGhvc3QxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92 -ZW1lbnQuanAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALiUyeosVxtJK8G4 -sAqU2DBLx5sMuZpV/YcW/YxUuJv3t/9TpVxcWAs6VRPzi5fqKe8TER8qxi1/I8zV -Qks1gWyZ01reU6Wpdt1MZguF036W2qKOxlJXvnqnRDWu9IFf6KMjSJjFZb6nqhQv -aiL/80hqc2qXVfuJbSYlGrKWFFINAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEABPIn -+vQoDpJx7lVNJNOe7DE+ShCXCK6jkQY8+GQXB1sz5K0OWdZxUWOOp/fcjNJua0NM -hgnylWu/pmjPh7c9xHdZhuh6LPD3F0k4QqK+I2rg45gdBPZT2IxEvxNYpGIfayvY -ofOgbienn69tMzGCMF/lUmEJu7Bn08EbL+OyNBg= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/proxy1-csr.pem b/node_modules/tunnel/test/keys/proxy1-csr.pem deleted file mode 100644 index 78ad220..0000000 --- a/node_modules/tunnel/test/keys/proxy1-csr.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBwTCCASoCAQAwXDELMAkGA1UEBhMCSlAxEjAQBgNVBAsUCW5vZGVqc19qcDES -MBAGA1UEAxMJbG9jYWxob3N0MSUwIwYJKoZIhvcNAQkBFhZrb2ljaGlrQGltcHJv -dmVtZW50LmpwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC4lMnqLFcbSSvB -uLAKlNgwS8ebDLmaVf2HFv2MVLib97f/U6VcXFgLOlUT84uX6invExEfKsYtfyPM -1UJLNYFsmdNa3lOlqXbdTGYLhdN+ltqijsZSV756p0Q1rvSBX+ijI0iYxWW+p6oU -L2oi//NIanNql1X7iW0mJRqylhRSDQIDAQABoCUwIwYJKoZIhvcNAQkHMRYTFEEg -Y2hhbGxlbmdlIHBhc3N3b3JkMA0GCSqGSIb3DQEBBQUAA4GBAFhZc2cvYGf8mCg/ -5nPWmnjNIqgy7uJnOGfE3AP4rW48yiVHCJK9ZmPogbH7gBMOBrrX8fLX3ThK9Sbj -uJlBlZD/19zjM+kvJ14DcievJ15S3KehVQ6Ipmgbz/vnAaL1D+ZiOnjQad2/Fzg4 -0MFXQaZFEUcI8fKnv/zmYi1aivej ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/proxy1-key.pem b/node_modules/tunnel/test/keys/proxy1-key.pem deleted file mode 100644 index d06fddd..0000000 --- a/node_modules/tunnel/test/keys/proxy1-key.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICXQIBAAKBgQC4lMnqLFcbSSvBuLAKlNgwS8ebDLmaVf2HFv2MVLib97f/U6Vc -XFgLOlUT84uX6invExEfKsYtfyPM1UJLNYFsmdNa3lOlqXbdTGYLhdN+ltqijsZS -V756p0Q1rvSBX+ijI0iYxWW+p6oUL2oi//NIanNql1X7iW0mJRqylhRSDQIDAQAB -AoGADPSkl4M1Of0QzTAhaxy3b+xhvkhOXr7aZLkAYvEvZAMnLwy39puksmUNw7C8 -g5U0DEvST9W4w0jBQodVd+Hxi4dUS4BLDVVStaLMa1Fjai/4uBPxbsrvdHzDu7if -BI6t12vWNNRtTxbfCJ1Fs3nHvDG0ueBZX3fYWBIPPM4bRQECQQDjmCrxbkfFrN5z -JXHfmzoNovV7KzgwRLKOLF17dYnhaG3G77JYjhEjIg5VXmQ8XJrwS45C/io5feFA -qrsy/0v1AkEAz55QK8CLue+sn0J8Yw//yLjJT6BK4pCFFKDxyAvP/3r4t7+1TgDj -KAfUMWb5Hcn9iT3sEykUeOe0ghU0h5X2uQJBAKES2qGPuP/vvmejwpnMVCO+hxmq -ltOiavQv9eEgaHq826SFk6UUtpA01AwbB7momIckEgTbuKqDql2H94C6KdkCQQC7 -PfrtyoP5V8dmBk8qBEbZ3pVn45dFx7LNzOzhTo3yyhO/m/zGcZRsCMt9FnI7RG0M -tjTPfvAArm8kFj2+vie5AkASvVx478N8so+02QWKme4T3ZDX+HDBXgFH1+SMD91m -9tS6x2dtTNvvwBA2KFI1fUg3B/wDoKJQRrqwdl8jpoGP ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/proxy1.cnf b/node_modules/tunnel/test/keys/proxy1.cnf deleted file mode 100644 index e3db741..0000000 --- a/node_modules/tunnel/test/keys/proxy1.cnf +++ /dev/null @@ -1,16 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = localhost -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/proxy2-cert.pem b/node_modules/tunnel/test/keys/proxy2-cert.pem deleted file mode 100644 index dfe9d8e..0000000 --- a/node_modules/tunnel/test/keys/proxy2-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICJjCCAY8CCQCb8tSy4A7fFjANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTIxJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBZMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMQ8w -DQYDVQQDEwZwcm94eTIxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92ZW1l -bnQuanAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALZ3oNCmB2P4Q9DoUVFq -Z1ByASLm63jTPEumv2kX81GF5QMLRl59HBM6Te1rRR7wFHL0iBQUYuEzNPmedXpU -cds0uWl5teoO63ZSKFL1QLU3PMFo56AeWeznxOhy6vwWv3M8C391X6lYsiBow3K9 -d37p//GLIR+jl6Q4xYD41zaxAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEADUQgtmot -8zqsRQInjWAypcntkxX8hdUOEudN2/zjX/YtMZbr8rRvsZzBsUDdgK+E2EmEb/N3 -9ARZ0T2zWFFphJapkZOM1o1+LawN5ON5HfTPqr6d9qlHuRdGCBpXMUERO2V43Z+S -Zwm+iw1yZEs4buTmiw6zu6Nq0fhBlTiAweE= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/proxy2-csr.pem b/node_modules/tunnel/test/keys/proxy2-csr.pem deleted file mode 100644 index 5510e7f..0000000 --- a/node_modules/tunnel/test/keys/proxy2-csr.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBvjCCAScCAQAwWTELMAkGA1UEBhMCSlAxEjAQBgNVBAsUCW5vZGVqc19qcDEP -MA0GA1UEAxMGcHJveHkyMSUwIwYJKoZIhvcNAQkBFhZrb2ljaGlrQGltcHJvdmVt -ZW50LmpwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2d6DQpgdj+EPQ6FFR -amdQcgEi5ut40zxLpr9pF/NRheUDC0ZefRwTOk3ta0Ue8BRy9IgUFGLhMzT5nnV6 -VHHbNLlpebXqDut2UihS9UC1NzzBaOegHlns58Tocur8Fr9zPAt/dV+pWLIgaMNy -vXd+6f/xiyEfo5ekOMWA+Nc2sQIDAQABoCUwIwYJKoZIhvcNAQkHMRYTFEEgY2hh -bGxlbmdlIHBhc3N3b3JkMA0GCSqGSIb3DQEBBQUAA4GBADC4dh/+gQnJcPMQ0riJ -CBVLygcCWxkNvwM3ARboyihuNbzFX1f2g23Zr5iLphiuEFCPDOyd26hHieQ8Xo1y -FPuDXpWMx9X9MLjCWg8kdtada7HsYffbUvpjjL9TxFh+rX0cmr6Ixc5kV7AV4I6V -3h8BYJebX+XfuYrI1UwEqjqI ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/proxy2-key.pem b/node_modules/tunnel/test/keys/proxy2-key.pem deleted file mode 100644 index 29eed2c..0000000 --- a/node_modules/tunnel/test/keys/proxy2-key.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICXQIBAAKBgQC2d6DQpgdj+EPQ6FFRamdQcgEi5ut40zxLpr9pF/NRheUDC0Ze -fRwTOk3ta0Ue8BRy9IgUFGLhMzT5nnV6VHHbNLlpebXqDut2UihS9UC1NzzBaOeg -Hlns58Tocur8Fr9zPAt/dV+pWLIgaMNyvXd+6f/xiyEfo5ekOMWA+Nc2sQIDAQAB -AoGBALPH0o9Bxu5c4pSnEdgh+oFskmoNE90MY9A2D0pA6uBcCHSjW0YmBs97FuTi -WExPSBarkJgYLgStK3j3A9Dv+uzRRT0gSr34vKFh5ozI+nJZOMNJyHDOCFiT9sm7 -urDW0gSq9OW/H8NbAkxkBZw0PaB9oW5nljuieVIFDYXNAeMBAkEA6NfBHjzp3GS0 -RbtaBkxn3CRlEoUUPVd3sJ6lW2XBu5AWrgNHRSlh0oBupXgd3cxWIB69xPOg6QjU -XmvcLjBlCQJBAMidTIw4s89m4+14eY/KuXaEgxW/awLEbQP2JDCjY1wT3Ya3Ggac -HIFuGdTbd2faJPxNJjoljZnatSdwY5aXFmkCQBQZM5FBnsooYys1vdKXW8uz1Imh -tRqKZ0l2mD1obi2bhWml3MwKg2ghL+vWj3VqwvBo1uaeRQB4g6RW2R2fjckCQQCf -FnZ0oCafa2WGlMo5qDbI8K6PGXv/9srIoHH0jC0oAKzkvuEJqtTEIw6jCOM43PoF -hhyxccRH5PNRckPXULs5AkACxKEL1dN+Bx72zE8jSU4DB5arpQdGOvuVsqXgVM/5 -QLneJEHGPCqNFS1OkWUYLtX0S28X5GmHMEpLRLpgE9JY ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/proxy2.cnf b/node_modules/tunnel/test/keys/proxy2.cnf deleted file mode 100644 index e62c90a..0000000 --- a/node_modules/tunnel/test/keys/proxy2.cnf +++ /dev/null @@ -1,16 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = proxy2 -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/server1-cert.pem b/node_modules/tunnel/test/keys/server1-cert.pem deleted file mode 100644 index d0b6430..0000000 --- a/node_modules/tunnel/test/keys/server1-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICKTCCAZICCQCxEcnO8CV2kTANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTExJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBcMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMRIw -EAYDVQQDEwlsb2NhbGhvc3QxJTAjBgkqhkiG9w0BCQEWFmtvaWNoaWtAaW1wcm92 -ZW1lbnQuanAwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALYb3z6TVgD8VmV2 -i0IHoes/HNVz+/UgXxRoA7gTUXp4Q69HBymWwm4fG61YMn7XAjy0gyC2CX/C0S74 -ZzHkhq1DCXCtlXCDx5oZhSRPpa902MVdDSRR+naLA4PPFkV2pI53hsFW37M5Dhge -+taFbih/dbjpOnhLD+SbkSKNTw/dAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAjDNi -mdmMM8Of/8iCYISqkqCG+7fz747Ntkg5fVMPufkwrBfkD9UjYVbfIpEOkZ3L0If9 -0/wNi0uZobIJnd/9B/e0cHKYnx0gkhUpMylaRvIV4odKe2vq3+mjwMb9syYXYDx3 -hw2qDMIIPr0S5ICeoIKXhbsYtODVxKSdJq+FjAI= ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/server1-csr.pem b/node_modules/tunnel/test/keys/server1-csr.pem deleted file mode 100644 index 9d9ff1b..0000000 --- a/node_modules/tunnel/test/keys/server1-csr.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBwTCCASoCAQAwXDELMAkGA1UEBhMCSlAxEjAQBgNVBAsUCW5vZGVqc19qcDES -MBAGA1UEAxMJbG9jYWxob3N0MSUwIwYJKoZIhvcNAQkBFhZrb2ljaGlrQGltcHJv -dmVtZW50LmpwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC2G98+k1YA/FZl -dotCB6HrPxzVc/v1IF8UaAO4E1F6eEOvRwcplsJuHxutWDJ+1wI8tIMgtgl/wtEu -+Gcx5IatQwlwrZVwg8eaGYUkT6WvdNjFXQ0kUfp2iwODzxZFdqSOd4bBVt+zOQ4Y -HvrWhW4of3W46Tp4Sw/km5EijU8P3QIDAQABoCUwIwYJKoZIhvcNAQkHMRYTFEEg -Y2hhbGxlbmdlIHBhc3N3b3JkMA0GCSqGSIb3DQEBBQUAA4GBAJLLYClTc1BZbQi4 -2GrGEimzJoheXXD1vepECS6TaeYJFSQldMGdkn5D8TMXWW115V4hw7a1pCwvRBPH -dVEeh3u3ktI1e4pS5ozvpbpYanILrHCNOQ4PvKi9rzG9Km8CprPcrJCZlWf2QUBK -gVNgqZJeqyEcBu80/ajjc6xrZsSP ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/server1-key.pem b/node_modules/tunnel/test/keys/server1-key.pem deleted file mode 100644 index d24acc8..0000000 --- a/node_modules/tunnel/test/keys/server1-key.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICXQIBAAKBgQC2G98+k1YA/FZldotCB6HrPxzVc/v1IF8UaAO4E1F6eEOvRwcp -lsJuHxutWDJ+1wI8tIMgtgl/wtEu+Gcx5IatQwlwrZVwg8eaGYUkT6WvdNjFXQ0k -Ufp2iwODzxZFdqSOd4bBVt+zOQ4YHvrWhW4of3W46Tp4Sw/km5EijU8P3QIDAQAB -AoGAcDioz+T3gM//ZbMxidUuQMu5twgsYhg6v1aBxDOTaEcoXqEElupikn31DlNl -eqiApmwOyl+jZunlAm7tGN/c5WjmZtW6watv1D7HjDIFJQBdiOv2jLeV5gsoArMP -f8Y13MS68nJ7/ZkqisovjBlD7ZInbyUiJj0FH/cazauflIECQQDwHgQ0J46eL5EG -3smQQG9/8b/Wsnf8s9Vz6X/KptsbL3c7mCBY9/+cGw0xVxoUOyO7KGPzpRhtz4Y0 -oP+JwISxAkEAwieUtl+SuUAn6er1tZzPPiAM2w6XGOAod+HuPjTAKVhLKHYIEJbU -jhPdjOGtZr10ED9g0m7M4n3JKMMM00W47QJBAOVkp7tztwpkgva/TG0lQeBHgnCI -G50t6NRN1Koz8crs88nZMb4NXwMxzM7AWcfOH/qjQan4pXfy9FG/JaHibGECQH8i -L+zj1E3dxsUTh+VuUv5ZOlHO0f4F+jnWBY1SOWpZWI2cDFfgjDqko3R26nbWI8Pn -3FyvFRZSS4CXiDRn+VkCQQCKPBl60QAifkZITqL0dCs+wB2hhmlWwqlpq1ZgeCby -zwmZY1auUK1BYBX1aPB85+Bm2Zhp5jnkwRcO7iSYy8+C ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/server1.cnf b/node_modules/tunnel/test/keys/server1.cnf deleted file mode 100644 index e3db741..0000000 --- a/node_modules/tunnel/test/keys/server1.cnf +++ /dev/null @@ -1,16 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = localhost -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/server2-cert.pem b/node_modules/tunnel/test/keys/server2-cert.pem deleted file mode 100644 index ba92620..0000000 --- a/node_modules/tunnel/test/keys/server2-cert.pem +++ /dev/null @@ -1,14 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICJzCCAZACCQCxEcnO8CV2kjANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJK -UDESMBAGA1UECxQJbm9kZWpzX2pwMQwwCgYDVQQDEwNjYTExJTAjBgkqhkiG9w0B -CQEWFmtvaWNoaWtAaW1wcm92ZW1lbnQuanAwHhcNMTMxMjI0MTEyMzIxWhcNNDEw -NTEwMTEyMzIxWjBaMQswCQYDVQQGEwJKUDESMBAGA1UECxQJbm9kZWpzX2pwMRAw -DgYDVQQDEwdzZXJ2ZXIyMSUwIwYJKoZIhvcNAQkBFhZrb2ljaGlrQGltcHJvdmVt -ZW50LmpwMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEkKr9SHG6jtf5UNfL -u66wNi8jrbAW5keYy7ECWRGRFDE7ay4N8LDMmOO3/1eH2WpY0QM5JFxq78hoVQED -ogvoeVTw+Ni33yqY6VL2WRv84FN2BmCrDGJQ83EYdsJqPUnxuXvbmq7Viw3l/BEu -hvsp722KcToIrqt8mHKMc/nPRwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBALbdQz32 -CN0hJfJ6BtGyqee3zRSpufPY1KFV8OHSDG4qL55OfpjB5e5wsldp3VChTWzm2KM+ -xg9WSWurMINM5KLgUqCZ69ttg1gJ/SnZNolXhH0I3SG/DY4DGTHo9oJPoSrgrWbX -3ZmCoO6rrDoSuVRJ8dKMWJmt8O1pZ6ZRW2iM ------END CERTIFICATE----- diff --git a/node_modules/tunnel/test/keys/server2-csr.pem b/node_modules/tunnel/test/keys/server2-csr.pem deleted file mode 100644 index f89c510..0000000 --- a/node_modules/tunnel/test/keys/server2-csr.pem +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIIBvzCCASgCAQAwWjELMAkGA1UEBhMCSlAxEjAQBgNVBAsUCW5vZGVqc19qcDEQ -MA4GA1UEAxMHc2VydmVyMjElMCMGCSqGSIb3DQEJARYWa29pY2hpa0BpbXByb3Zl -bWVudC5qcDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxJCq/Uhxuo7X+VDX -y7uusDYvI62wFuZHmMuxAlkRkRQxO2suDfCwzJjjt/9Xh9lqWNEDOSRcau/IaFUB -A6IL6HlU8PjYt98qmOlS9lkb/OBTdgZgqwxiUPNxGHbCaj1J8bl725qu1YsN5fwR -Lob7Ke9tinE6CK6rfJhyjHP5z0cCAwEAAaAlMCMGCSqGSIb3DQEJBzEWExRBIGNo -YWxsZW5nZSBwYXNzd29yZDANBgkqhkiG9w0BAQUFAAOBgQB3rCGCErgshGKEI5j9 -togUBwD3ul91yRFSBoV2hVGXsTOalWa0XCI+9+5QQEOBlj1pUT8eDU8ve55mX1UX -AZEx+cbUQa9DNeiDAMX83GqHMD8fF2zqsY1mkg5zFKG3nhoIYSG15qXcpqAhxRpX -NUQnZ4yzt2pE0aiFfkXa3PM42Q== ------END CERTIFICATE REQUEST----- diff --git a/node_modules/tunnel/test/keys/server2-key.pem b/node_modules/tunnel/test/keys/server2-key.pem deleted file mode 100644 index 9f72b5c..0000000 --- a/node_modules/tunnel/test/keys/server2-key.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIICXQIBAAKBgQDEkKr9SHG6jtf5UNfLu66wNi8jrbAW5keYy7ECWRGRFDE7ay4N -8LDMmOO3/1eH2WpY0QM5JFxq78hoVQEDogvoeVTw+Ni33yqY6VL2WRv84FN2BmCr -DGJQ83EYdsJqPUnxuXvbmq7Viw3l/BEuhvsp722KcToIrqt8mHKMc/nPRwIDAQAB -AoGAQ/bRaGoYCK1DN80gEC2ApSTW/7saW5CbyNUFCw7I6CTXMPhKID/MobFraz86 -gJpIDxWVy7gqzD7ESG67vwnUm52ITojQiY3JH7NCNhq/39/aYZOz2d7rBv2mvhk3 -w7gxUsmtPVUz3s2/h1KYaGpM3b68TwMS9nIiwwHDJS1aR8ECQQDu/kOy+Z/0EVKC -APgiEzbxewAiy7BVzNppd8CR/5m1KxlsIoMr8OdLqVwiJ/13m3eZGkPNx5pLJ9Xv -sXER0ZcPAkEA0o19xA1AJ/v5qsRaWJaA+ftgQ8ZanqsWXhM9abAvkPdFLPKYWTfO -r9f8eUDH0+O9mA2eZ2mlsEcsmIHDTY6ESQJAO2lyIvfzT5VO0Yq0JKRqMDXHnt7M -A0hds4JVmPXVnDgOpdcejLniheigQs12MVmwrZrd6DYKoUxR3rhZx3g2+QJBAK/2 -5fuaI1sHP+HSlbrhlUrWJd6egA+I5nma1MFmKGqb7Kki2eX+OPNGq87eL+LKuyG/ -h/nfFkTbRs7x67n+eFkCQQCPgy381Vpa7lmoNUfEVeMSNe74FNL05IlPDs/BHcci -1GX9XzsFEqHLtJ5t1aWbGv39gb2WmPP3LJBsRPzLa2iQ ------END RSA PRIVATE KEY----- diff --git a/node_modules/tunnel/test/keys/server2.cnf b/node_modules/tunnel/test/keys/server2.cnf deleted file mode 100644 index bfaa48b..0000000 --- a/node_modules/tunnel/test/keys/server2.cnf +++ /dev/null @@ -1,16 +0,0 @@ -[ req ] -default_bits = 1024 -days = 9999 -distinguished_name = req_distinguished_name -attributes = req_attributes -prompt = no - -[ req_distinguished_name ] -C = JP -OU = nodejs_jp -CN = server2 -emailAddress = koichik@improvement.jp - -[ req_attributes ] -challengePassword = A challenge password - diff --git a/node_modules/tunnel/test/keys/test.js b/node_modules/tunnel/test/keys/test.js deleted file mode 100644 index d828422..0000000 --- a/node_modules/tunnel/test/keys/test.js +++ /dev/null @@ -1,43 +0,0 @@ -var fs = require('fs'); -var tls = require('tls'); - -var server1Key = fs.readFileSync(__dirname + '/server1-key.pem'); -var server1Cert = fs.readFileSync(__dirname + '/server1-cert.pem'); -var clientKey = fs.readFileSync(__dirname + '/client-key.pem'); -var clientCert = fs.readFileSync(__dirname + '/client-cert.pem'); -var ca1Cert = fs.readFileSync(__dirname + '/ca1-cert.pem'); -var ca3Cert = fs.readFileSync(__dirname + '/ca3-cert.pem'); - -var server = tls.createServer({ - key: server1Key, - cert: server1Cert, - ca: [ca3Cert], - requestCert: true, - rejectUnauthorized: true, -}, function(s) { - console.log('connected on server'); - s.on('data', function(chunk) { - console.log('S:' + chunk); - s.write(chunk); - }); - s.setEncoding('utf8'); -}).listen(3000, function() { - var c = tls.connect({ - host: 'localhost', - port: 3000, - key: clientKey, - cert: clientCert, - ca: [ca1Cert], - rejectUnauthorized: true - }, function() { - console.log('connected on client'); - c.on('data', function(chunk) { - console.log('C:' + chunk); - }); - c.setEncoding('utf8'); - c.write('Hello'); - }); - c.on('error', function(err) { - console.log(err); - }); -}); diff --git a/node_modules/typed-rest-client/HttpClient.js b/node_modules/typed-rest-client/HttpClient.js index 48763bb..f2c2e34 100644 --- a/node_modules/typed-rest-client/HttpClient.js +++ b/node_modules/typed-rest-client/HttpClient.js @@ -72,7 +72,9 @@ class HttpClientResponse { const gunzippedBody = yield util.decompressGzippedContent(buffer, encodingCharset); resolve(gunzippedBody); } - resolve(buffer.toString(encodingCharset)); + else { + resolve(buffer.toString(encodingCharset)); + } }); }).on('error', function (err) { reject(err); @@ -286,7 +288,6 @@ class HttpClient { */ requestRawWithCallback(info, data, onResult) { let socket; - let isDataString = typeof (data) === 'string'; if (typeof (data) === 'string') { info.options.headers["Content-Length"] = Buffer.byteLength(data, 'utf8'); } @@ -307,7 +308,7 @@ class HttpClient { // If we ever get disconnected, we want the socket to timeout eventually req.setTimeout(this._socketTimeout || 3 * 60000, () => { if (socket) { - socket.end(); + socket.destroy(); } handleResult(new Error('Request timeout: ' + info.options.path), null); }); diff --git a/node_modules/typed-rest-client/LICENSE b/node_modules/typed-rest-client/LICENSE index d4b626b..0f14def 100644 --- a/node_modules/typed-rest-client/LICENSE +++ b/node_modules/typed-rest-client/LICENSE @@ -19,3 +19,21 @@ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE A NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +/* Node-SMB/ntlm + * https://github.com/Node-SMB/ntlm + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Copyright (C) 2012 Joshua M. Clulow + */ diff --git a/node_modules/typed-rest-client/RestClient.d.ts b/node_modules/typed-rest-client/RestClient.d.ts index 9feb7a8..446706c 100644 --- a/node_modules/typed-rest-client/RestClient.d.ts +++ b/node_modules/typed-rest-client/RestClient.d.ts @@ -24,7 +24,7 @@ export declare class RestClient { * @param {ifm.IRequestHandler[]} handlers - handlers are typically auth handlers (basic, bearer, ntlm supplied) * @param {ifm.IRequestOptions} requestOptions - options for each http requests (http proxy setting, socket timeout) */ - constructor(userAgent: string, baseUrl?: string, handlers?: ifm.IRequestHandler[], requestOptions?: ifm.IRequestOptions); + constructor(userAgent: string | null | undefined, baseUrl?: string, handlers?: ifm.IRequestHandler[], requestOptions?: ifm.IRequestOptions); private _baseUrl; /** * Gets a resource from an endpoint @@ -74,5 +74,5 @@ export declare class RestClient { uploadStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, options?: IRequestOptions): Promise>; private _headersFromOptions; private static dateTimeDeserializer; - private _processResponse; + protected processResponse(res: httpm.HttpClientResponse, options: IRequestOptions): Promise>; } diff --git a/node_modules/typed-rest-client/RestClient.js b/node_modules/typed-rest-client/RestClient.js index 128f84d..88445db 100644 --- a/node_modules/typed-rest-client/RestClient.js +++ b/node_modules/typed-rest-client/RestClient.js @@ -37,7 +37,7 @@ class RestClient { return __awaiter(this, void 0, void 0, function* () { let url = util.getUrl(requestUrl, this._baseUrl); let res = yield this.client.options(url, this._headersFromOptions(options)); - return this._processResponse(res, options); + return this.processResponse(res, options); }); } /** @@ -50,7 +50,7 @@ class RestClient { return __awaiter(this, void 0, void 0, function* () { let url = util.getUrl(resource, this._baseUrl, (options || {}).queryParameters); let res = yield this.client.get(url, this._headersFromOptions(options)); - return this._processResponse(res, options); + return this.processResponse(res, options); }); } /** @@ -63,7 +63,7 @@ class RestClient { return __awaiter(this, void 0, void 0, function* () { let url = util.getUrl(resource, this._baseUrl); let res = yield this.client.del(url, this._headersFromOptions(options)); - return this._processResponse(res, options); + return this.processResponse(res, options); }); } /** @@ -79,7 +79,7 @@ class RestClient { let headers = this._headersFromOptions(options, true); let data = JSON.stringify(resources, null, 2); let res = yield this.client.post(url, data, headers); - return this._processResponse(res, options); + return this.processResponse(res, options); }); } /** @@ -95,7 +95,7 @@ class RestClient { let headers = this._headersFromOptions(options, true); let data = JSON.stringify(resources, null, 2); let res = yield this.client.patch(url, data, headers); - return this._processResponse(res, options); + return this.processResponse(res, options); }); } /** @@ -111,7 +111,7 @@ class RestClient { let headers = this._headersFromOptions(options, true); let data = JSON.stringify(resources, null, 2); let res = yield this.client.put(url, data, headers); - return this._processResponse(res, options); + return this.processResponse(res, options); }); } uploadStream(verb, requestUrl, stream, options) { @@ -119,7 +119,7 @@ class RestClient { let url = util.getUrl(requestUrl, this._baseUrl); let headers = this._headersFromOptions(options, true); let res = yield this.client.sendStream(verb, url, stream, headers); - return this._processResponse(res, options); + return this.processResponse(res, options); }); } _headersFromOptions(options, contentType) { @@ -148,7 +148,7 @@ class RestClient { } return value; } - _processResponse(res, options) { + processResponse(res, options) { return __awaiter(this, void 0, void 0, function* () { return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { const statusCode = res.message.statusCode; diff --git a/node_modules/typed-rest-client/Util.js b/node_modules/typed-rest-client/Util.js index a94594d..855bc7f 100644 --- a/node_modules/typed-rest-client/Util.js +++ b/node_modules/typed-rest-client/Util.js @@ -111,8 +111,9 @@ function obtainContentCharset(response) { // |__ matches would be ['charset=utf-8', 'utf-8', index: 18, input: 'application/json; charset=utf-8'] // |_____ matches[1] would have the charset :tada: , in our example it's utf-8 // However, if the matches Array was empty or no charset found, 'utf-8' would be returned by default. + const nodeSupportedEncodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex']; const contentType = response.message.headers['content-type'] || ''; const matches = contentType.match(/charset=([^;,\r\n]+)/i); - return (matches && matches[1]) ? matches[1] : 'utf-8'; + return (matches && matches[1] && nodeSupportedEncodings.indexOf(matches[1]) != -1) ? matches[1] : 'utf-8'; } exports.obtainContentCharset = obtainContentCharset; diff --git a/node_modules/typed-rest-client/handlers/basiccreds.js b/node_modules/typed-rest-client/handlers/basiccreds.js index 3e4acf9..26a5085 100644 --- a/node_modules/typed-rest-client/handlers/basiccreds.js +++ b/node_modules/typed-rest-client/handlers/basiccreds.js @@ -10,7 +10,7 @@ class BasicCredentialHandler { // currently implements pre-authorization // TODO: support preAuth = false where it hooks on 401 prepareRequest(options) { - options.headers['Authorization'] = 'Basic ' + new Buffer(this.username + ':' + this.password).toString('base64'); + options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; options.headers['X-TFS-FedAuthRedirect'] = 'Suppress'; } // This handler cannot handle 401 diff --git a/node_modules/typed-rest-client/handlers/bearertoken.js b/node_modules/typed-rest-client/handlers/bearertoken.js index f9718f6..3b6d267 100644 --- a/node_modules/typed-rest-client/handlers/bearertoken.js +++ b/node_modules/typed-rest-client/handlers/bearertoken.js @@ -9,7 +9,7 @@ class BearerCredentialHandler { // currently implements pre-authorization // TODO: support preAuth = false where it hooks on 401 prepareRequest(options) { - options.headers['Authorization'] = 'Bearer ' + this.token; + options.headers['Authorization'] = `Bearer ${this.token}`; options.headers['X-TFS-FedAuthRedirect'] = 'Suppress'; } // This handler cannot handle 401 diff --git a/node_modules/typed-rest-client/handlers/ntlm.js b/node_modules/typed-rest-client/handlers/ntlm.js index 6b69bb0..69bec4a 100644 --- a/node_modules/typed-rest-client/handlers/ntlm.js +++ b/node_modules/typed-rest-client/handlers/ntlm.js @@ -5,24 +5,14 @@ Object.defineProperty(exports, "__esModule", { value: true }); const http = require("http"); const https = require("https"); const _ = require("underscore"); -const ntlm = require("../opensource/node-http-ntlm/ntlm"); +const ntlm = require("../opensource/Node-SMB/lib/ntlm"); class NtlmCredentialHandler { constructor(username, password, workstation, domain) { this._ntlmOptions = {}; this._ntlmOptions.username = username; this._ntlmOptions.password = password; - if (domain !== undefined) { - this._ntlmOptions.domain = domain; - } - else { - this._ntlmOptions.domain = ''; - } - if (workstation !== undefined) { - this._ntlmOptions.workstation = workstation; - } - else { - this._ntlmOptions.workstation = ''; - } + this._ntlmOptions.domain = domain || ''; + this._ntlmOptions.workstation = workstation || ''; } prepareRequest(options) { // No headers or options need to be set. We keep the credentials on the handler itself. @@ -36,13 +26,7 @@ class NtlmCredentialHandler { // Ensure that we're talking NTLM here // Once we have the www-authenticate header, split it so we can ensure we can talk NTLM const wwwAuthenticate = response.message.headers['www-authenticate']; - if (wwwAuthenticate) { - const mechanisms = wwwAuthenticate.split(', '); - const index = mechanisms.indexOf("NTLM"); - if (index >= 0) { - return true; - } - } + return wwwAuthenticate && (wwwAuthenticate.split(', ').indexOf("NTLM") >= 0); } return false; } @@ -68,12 +52,9 @@ class NtlmCredentialHandler { domain: this._ntlmOptions.domain, workstation: this._ntlmOptions.workstation }); - if (httpClient.isSsl === true) { - requestInfo.options.agent = new https.Agent({ keepAlive: true }); - } - else { - requestInfo.options.agent = new http.Agent({ keepAlive: true }); - } + requestInfo.options.agent = httpClient.isSsl ? + new https.Agent({ keepAlive: true }) : + new http.Agent({ keepAlive: true }); let self = this; // The following pattern of sending the type1 message following immediately (in a setImmediate) is // critical for the NTLM exchange to happen. If we removed setImmediate (or call in a different manner) @@ -86,7 +67,7 @@ class NtlmCredentialHandler { res.readBody().then(() => { // It is critical that we have setImmediate here due to how connection requests are queued. // If setImmediate is removed then the NTLM handshake will not work. - // setImmediate allows us to queue a second request on the same connection. If this second + // setImmediate allows us to queue a second request on the same connection. If this second // request is not queued on the connection when the first request finishes then node closes // the connection. NTLM requires both requests to be on the same connection so we need this. setImmediate(function () { @@ -97,7 +78,8 @@ class NtlmCredentialHandler { } // The following method is an adaptation of code found at https://github.com/SamDecrock/node-http-ntlm/blob/master/httpntlm.js sendType1Message(httpClient, requestInfo, objs, finalCallback) { - const type1msg = ntlm.createType1Message(this._ntlmOptions); + const type1HexBuffer = ntlm.encodeType1(this._ntlmOptions.workstation, this._ntlmOptions.domain); + const type1msg = `NTLM ${type1HexBuffer.toString('base64')}`; const type1options = { headers: { 'Connection': 'keep-alive', @@ -117,11 +99,29 @@ class NtlmCredentialHandler { if (!res.message.headers && !res.message.headers['www-authenticate']) { throw new Error('www-authenticate not found on response of second request'); } - const type2msg = ntlm.parseType2Message(res.message.headers['www-authenticate']); - const type3msg = ntlm.createType3Message(type2msg, this._ntlmOptions); + /** + * Server will respond with challenge/nonce + * assigned to response's "WWW-AUTHENTICATE" header + * and should adhere to RegExp /^NTLM\s+(.+?)(,|\s+|$)/ + */ + const serverNonceRegex = /^NTLM\s+(.+?)(,|\s+|$)/; + const serverNonce = Buffer.from((res.message.headers['www-authenticate'].match(serverNonceRegex) || [])[1], 'base64'); + let type2msg; + /** + * Wrap decoding the Server's challenge/nonce in + * try-catch block to throw more comprehensive + * Error with clear message to consumer + */ + try { + type2msg = ntlm.decodeType2(serverNonce); + } + catch (error) { + throw new Error(`Decoding Server's Challenge to Obtain Type2Message failed with error: ${error.message}`); + } + const type3msg = ntlm.encodeType3(this._ntlmOptions.username, this._ntlmOptions.workstation, this._ntlmOptions.domain, type2msg, this._ntlmOptions.password).toString('base64'); const type3options = { headers: { - 'Authorization': type3msg, + 'Authorization': `NTLM ${type3msg}`, 'Connection': 'Close' }, agent: requestInfo.httpModule, diff --git a/node_modules/typed-rest-client/handlers/personalaccesstoken.js b/node_modules/typed-rest-client/handlers/personalaccesstoken.js index 7f74bea..7ce8355 100644 --- a/node_modules/typed-rest-client/handlers/personalaccesstoken.js +++ b/node_modules/typed-rest-client/handlers/personalaccesstoken.js @@ -9,7 +9,7 @@ class PersonalAccessTokenCredentialHandler { // currently implements pre-authorization // TODO: support preAuth = false where it hooks on 401 prepareRequest(options) { - options.headers['Authorization'] = 'Basic ' + new Buffer('PAT:' + this.token).toString('base64'); + options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; options.headers['X-TFS-FedAuthRedirect'] = 'Suppress'; } // This handler cannot handle 401 diff --git a/node_modules/typed-rest-client/node_modules/qs/.github/workflows/rebase.yml b/node_modules/typed-rest-client/node_modules/qs/.github/workflows/rebase.yml new file mode 100644 index 0000000..436cb79 --- /dev/null +++ b/node_modules/typed-rest-client/node_modules/qs/.github/workflows/rebase.yml @@ -0,0 +1,15 @@ +name: Automatic Rebase + +on: [pull_request] + +jobs: + _: + name: "Automatic Rebase" + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: ljharb/rebase@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/node_modules/typed-rest-client/node_modules/qs/CHANGELOG.md b/node_modules/typed-rest-client/node_modules/qs/CHANGELOG.md index 5591d20..f09f694 100644 --- a/node_modules/typed-rest-client/node_modules/qs/CHANGELOG.md +++ b/node_modules/typed-rest-client/node_modules/qs/CHANGELOG.md @@ -1,3 +1,16 @@ +## **6.9.3** +- [Fix] proper comma parsing of URL-encoded commas (#361) +- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) + +## **6.9.2** +- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) +- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) +- [meta] ignore eclint transitive audit warning +- [meta] fix indentation in package.json +- [meta] add tidelift marketing copy +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `object-inspect`, `has-symbols`, `tape`, `mkdirp`, `iconv-lite` +- [actions] add automatic rebasing / merge commit blocking + ## **6.9.1** - [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) - [Fix] `parse`: with comma true, do not split non-string values (#334) @@ -13,6 +26,23 @@ - [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v8.16` - [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray +## **6.8.2** +- [Fix] proper comma parsing of URL-encoded commas (#361) +- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) + +## **6.8.1** +- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) +- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) +- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) +- [fix] `parse`: with comma true, do not split non-string values (#334) +- [meta] add tidelift marketing copy +- [meta] add `funding` field +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `has-symbols`, `iconv-lite`, `mkdirp`, `object-inspect` +- [Tests] `parse`: add passing `arrayFormat` tests +- [Tests] use shared travis-ci configs +- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray +- [actions] add automatic rebasing / merge commit blocking + ## **6.8.0** - [New] add `depth=false` to preserve the original key; [Fix] `depth=0` should preserve the original key (#326) - [New] [Fix] stringify symbols and bigints @@ -27,6 +57,30 @@ - [meta] add FUNDING.yml - [meta] Clean up license text so it’s properly detected as BSD-3-Clause +## **6.7.2** +- [Fix] proper comma parsing of URL-encoded commas (#361) +- [Fix] parses comma delimited array while having percent-encoded comma treated as normal text (#336) + +## **6.7.1** +- [Fix] `parse`: Fix parsing array from object with `comma` true (#359) +- [Fix] `parse`: with comma true, handle field that holds an array of arrays (#335) +- [fix] `parse`: with comma true, do not split non-string values (#334) +- [Fix] `parse`: throw a TypeError instead of an Error for bad charset (#349) +- [Fix] fix for an impossible situation: when the formatter is called with a non-string value +- [Refactor] `formats`: tiny bit of cleanup. +- readme: add security note +- [meta] add tidelift marketing copy +- [meta] add `funding` field +- [meta] add FUNDING.yml +- [meta] Clean up license text so it’s properly detected as BSD-3-Clause +- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape`, `safe-publish-latest`, `evalmd`, `iconv-lite`, `mkdirp`, `object-inspect`, `browserify` +- [Tests] `parse`: add passing `arrayFormat` tests +- [Tests] use shared travis-ci configs +- [Tests] `Buffer.from` in node v5.0-v5.9 and v4.0-v4.4 requires a TypedArray +- [Tests] add tests for `depth=0` and `depth=false` behavior, both current and intuitive/intended +- [Tests] use `eclint` instead of `editorconfig-tools` +- [actions] add automatic rebasing / merge commit blocking + ## **6.7.0** - [New] `stringify`/`parse`: add `comma` as an `arrayFormat` option (#276, #219) - [Fix] correctly parse nested arrays (#212) diff --git a/node_modules/typed-rest-client/node_modules/qs/README.md b/node_modules/typed-rest-client/node_modules/qs/README.md index 8592a4c..84f2534 100644 --- a/node_modules/typed-rest-client/node_modules/qs/README.md +++ b/node_modules/typed-rest-client/node_modules/qs/README.md @@ -581,6 +581,12 @@ assert.equal(qs.stringify({ a: 'b c' }, { format : 'RFC1738' }), 'a=b+c'); Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report. +## qs for enterprise + +Available as part of the Tidelift Subscription + +The maintainers of qs and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-qs?utm_source=npm-qs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + [1]: https://npmjs.org/package/qs [2]: http://versionbadg.es/ljharb/qs.svg [3]: https://api.travis-ci.org/ljharb/qs.svg diff --git a/node_modules/typed-rest-client/node_modules/qs/dist/qs.js b/node_modules/typed-rest-client/node_modules/qs/dist/qs.js index 602c3a6..752629d 100644 --- a/node_modules/typed-rest-client/node_modules/qs/dist/qs.js +++ b/node_modules/typed-rest-client/node_modules/qs/dist/qs.js @@ -71,6 +71,25 @@ var interpretNumericEntities = function (str) { }); }; +var parseArrayValue = function (val, options) { + if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { + return val.split(','); + } + + return val; +}; + +var maybeMap = function maybeMap(val, fn) { + if (isArray(val)) { + var mapped = []; + for (var i = 0; i < val.length; i += 1) { + mapped.push(fn(val[i])); + } + return mapped; + } + return fn(val); +}; + // This is what browsers will submit when the ✓ character occurs in an // application/x-www-form-urlencoded body and the encoding of the page containing // the form is iso-8859-1, or when the submitted form has an accept-charset @@ -119,17 +138,18 @@ var parseValues = function parseQueryStringValues(str, options) { val = options.strictNullHandling ? null : ''; } else { key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = options.decoder(part.slice(pos + 1), defaults.decoder, charset, 'value'); + val = maybeMap( + parseArrayValue(part.slice(pos + 1), options), + function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + } + ); } if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { val = interpretNumericEntities(val); } - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - val = val.split(','); - } - if (part.indexOf('[]=') > -1) { val = isArray(val) ? [val] : val; } @@ -144,8 +164,8 @@ var parseValues = function parseQueryStringValues(str, options) { return obj; }; -var parseObject = function (chain, val, options) { - var leaf = val; +var parseObject = function (chain, val, options, valuesParsed) { + var leaf = valuesParsed ? val : parseArrayValue(val, options); for (var i = chain.length - 1; i >= 0; --i) { var obj; @@ -173,13 +193,13 @@ var parseObject = function (chain, val, options) { } } - leaf = obj; + leaf = obj; // eslint-disable-line no-param-reassign } return leaf; }; -var parseKeys = function parseQueryStringKeys(givenKey, val, options) { +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { if (!givenKey) { return; } @@ -230,7 +250,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) { keys.push('[' + key.slice(segment.index) + ']'); } - return parseObject(keys, val, options); + return parseObject(keys, val, options, valuesParsed); }; var normalizeParseOptions = function normalizeParseOptions(opts) { @@ -243,7 +263,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) { } if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined'); + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); } var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; @@ -282,7 +302,7 @@ module.exports = function (str, opts) { var keys = Object.keys(tempObj); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options); + var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); obj = utils.merge(obj, newObj, options); } diff --git a/node_modules/typed-rest-client/node_modules/qs/lib/parse.js b/node_modules/typed-rest-client/node_modules/qs/lib/parse.js index 7cca884..49d5c04 100644 --- a/node_modules/typed-rest-client/node_modules/qs/lib/parse.js +++ b/node_modules/typed-rest-client/node_modules/qs/lib/parse.js @@ -29,6 +29,25 @@ var interpretNumericEntities = function (str) { }); }; +var parseArrayValue = function (val, options) { + if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { + return val.split(','); + } + + return val; +}; + +var maybeMap = function maybeMap(val, fn) { + if (isArray(val)) { + var mapped = []; + for (var i = 0; i < val.length; i += 1) { + mapped.push(fn(val[i])); + } + return mapped; + } + return fn(val); +}; + // This is what browsers will submit when the ✓ character occurs in an // application/x-www-form-urlencoded body and the encoding of the page containing // the form is iso-8859-1, or when the submitted form has an accept-charset @@ -77,17 +96,18 @@ var parseValues = function parseQueryStringValues(str, options) { val = options.strictNullHandling ? null : ''; } else { key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); - val = options.decoder(part.slice(pos + 1), defaults.decoder, charset, 'value'); + val = maybeMap( + parseArrayValue(part.slice(pos + 1), options), + function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + } + ); } if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { val = interpretNumericEntities(val); } - if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { - val = val.split(','); - } - if (part.indexOf('[]=') > -1) { val = isArray(val) ? [val] : val; } @@ -102,8 +122,8 @@ var parseValues = function parseQueryStringValues(str, options) { return obj; }; -var parseObject = function (chain, val, options) { - var leaf = val; +var parseObject = function (chain, val, options, valuesParsed) { + var leaf = valuesParsed ? val : parseArrayValue(val, options); for (var i = chain.length - 1; i >= 0; --i) { var obj; @@ -131,13 +151,13 @@ var parseObject = function (chain, val, options) { } } - leaf = obj; + leaf = obj; // eslint-disable-line no-param-reassign } return leaf; }; -var parseKeys = function parseQueryStringKeys(givenKey, val, options) { +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { if (!givenKey) { return; } @@ -188,7 +208,7 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options) { keys.push('[' + key.slice(segment.index) + ']'); } - return parseObject(keys, val, options); + return parseObject(keys, val, options, valuesParsed); }; var normalizeParseOptions = function normalizeParseOptions(opts) { @@ -201,7 +221,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) { } if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { - throw new Error('The charset option must be either utf-8, iso-8859-1, or undefined'); + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); } var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; @@ -240,7 +260,7 @@ module.exports = function (str, opts) { var keys = Object.keys(tempObj); for (var i = 0; i < keys.length; ++i) { var key = keys[i]; - var newObj = parseKeys(key, tempObj[key], options); + var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); obj = utils.merge(obj, newObj, options); } diff --git a/node_modules/typed-rest-client/node_modules/qs/package.json b/node_modules/typed-rest-client/node_modules/qs/package.json index 50fc1dd..7717837 100644 --- a/node_modules/typed-rest-client/node_modules/qs/package.json +++ b/node_modules/typed-rest-client/node_modules/qs/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "qs@6.9.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "qs@6.9.1", - "_id": "qs@6.9.1", + "_from": "qs@6.9.3", + "_id": "qs@6.9.3", "_inBundle": false, - "_integrity": "sha512-Cxm7/SS/y/Z3MHWSxXb8lIFqgqBowP5JMlTUFyJN88y0SGQhVmZnqFK/PeuMX9LzUyWsqqhNxIyg0jlzq946yA==", + "_integrity": "sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw==", "_location": "/typed-rest-client/qs", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "qs@6.9.1", + "raw": "qs@6.9.3", "name": "qs", "escapedName": "qs", - "rawSpec": "6.9.1", + "rawSpec": "6.9.3", "saveSpec": null, - "fetchSpec": "6.9.1" + "fetchSpec": "6.9.3" }, "_requiredBy": [ "/typed-rest-client" ], - "_resolved": "https://registry.npmjs.org/qs/-/qs-6.9.1.tgz", - "_spec": "6.9.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/qs/-/qs-6.9.3.tgz", + "_spec": "6.9.3", "bugs": { "url": "https://github.com/ljharb/qs/issues" }, @@ -40,21 +33,21 @@ "dependencies": {}, "description": "A querystring parser that supports nesting and arrays, with a depth limit", "devDependencies": { - "@ljharb/eslint-config": "^15.0.0", + "@ljharb/eslint-config": "^16.0.0", "browserify": "^16.5.0", "covert": "^1.1.1", "eclint": "^2.8.1", - "eslint": "^6.6.0", + "eslint": "^6.8.0", "evalmd": "^0.0.19", "for-each": "^0.3.3", - "has-symbols": "^1.0.0", - "iconv-lite": "^0.4.24", - "mkdirp": "^0.5.1", - "object-inspect": "^1.6.0", + "has-symbols": "^1.0.1", + "iconv-lite": "^0.5.1", + "mkdirp": "^0.5.4", + "object-inspect": "^1.7.0", "qs-iconv": "^1.0.4", - "safe-publish-latest": "^1.1.3", + "safe-publish-latest": "^1.1.4", "safer-buffer": "^2.1.2", - "tape": "^4.11.0" + "tape": "^5.0.0-next.5" }, "engines": { "node": ">=0.6" @@ -62,6 +55,12 @@ "funding": { "url": "https://github.com/sponsors/ljharb" }, + "greenkeeper": { + "ignore": [ + "iconv-lite", + "mkdirp" + ] + }, "homepage": "https://github.com/ljharb/qs", "keywords": [ "querystring", @@ -83,12 +82,12 @@ "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js", "lint": "eslint lib/*.js test/*.js", "postlint": "eclint check * lib/* test/*", - "posttest": "npx aud", + "posttest": "npx aud --production", "prepublish": "safe-publish-latest && npm run dist", "pretest": "npm run --silent readme && npm run --silent lint", "readme": "evalmd README.md", "test": "npm run --silent coverage", "tests-only": "node test" }, - "version": "6.9.1" -} + "version": "6.9.3" +} \ No newline at end of file diff --git a/node_modules/typed-rest-client/node_modules/qs/test/parse.js b/node_modules/typed-rest-client/node_modules/qs/test/parse.js index be10400..b6ec1b7 100644 --- a/node_modules/typed-rest-client/node_modules/qs/test/parse.js +++ b/node_modules/typed-rest-client/node_modules/qs/test/parse.js @@ -400,6 +400,12 @@ test('parse()', function (t) { st.end(); }); + t.test('parses values with comma as array divider', function (st) { + st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: false }), { foo: 'bar,tee' }); + st.deepEqual(qs.parse({ foo: 'bar,tee' }, { comma: true }), { foo: ['bar', 'tee'] }); + st.end(); + }); + t.test('use number decoder, parses string that has one number with comma option enabled', function (st) { var decoder = function (str, defaultDecoder, charset, type) { if (!isNaN(Number(str))) { @@ -423,6 +429,14 @@ test('parse()', function (t) { st.end(); }); + t.test('parses comma delimited array while having percent-encoded comma treated as normal text', function (st) { + st.deepEqual(qs.parse('foo=a%2Cb', { comma: true }), { foo: 'a,b' }); + st.deepEqual(qs.parse('foo=a%2C%20b,d', { comma: true }), { foo: ['a, b', 'd'] }); + st.deepEqual(qs.parse('foo=a%2C%20b,c%2C%20d', { comma: true }), { foo: ['a, b', 'c, d'] }); + + st.end(); + }); + t.test('parses an object in dot notation', function (st) { var input = { 'user.name': { 'pop[bob]': 3 }, @@ -599,7 +613,7 @@ test('parse()', function (t) { st.deepEqual( qs.parse('a[b]=c&a=toString', { plainObjects: true }), - { a: { b: 'c', toString: true } }, + { __proto__: null, a: { __proto__: null, b: 'c', toString: true } }, 'can overwrite prototype with plainObjects true' ); diff --git a/node_modules/typed-rest-client/opensource/Node-SMB/README.md b/node_modules/typed-rest-client/opensource/Node-SMB/README.md new file mode 100644 index 0000000..c713c11 --- /dev/null +++ b/node_modules/typed-rest-client/opensource/Node-SMB/README.md @@ -0,0 +1,5 @@ +### Reference: +The modules (common.js, ntlm.js and smbhash.js) were copied from a file of the same name at https://github.com/Node-SMB/ntlm. + +The modules has been used for the purpose of encoding and decoding the headers used during NTLM HTTP Authentication and as of this writing, it is a part of the typed-rest-client module produced by Microsoft. + diff --git a/node_modules/typed-rest-client/opensource/Node-SMB/lib/common.js b/node_modules/typed-rest-client/opensource/Node-SMB/lib/common.js new file mode 100644 index 0000000..9c77fea --- /dev/null +++ b/node_modules/typed-rest-client/opensource/Node-SMB/lib/common.js @@ -0,0 +1,61 @@ +var crypto = require('crypto'); + +function zeroextend(str, len) +{ + while (str.length < len) + str = '0' + str; + return (str); +} + +/* + * Fix (odd) parity bits in a 64-bit DES key. + */ +function oddpar(buf) +{ + for (var j = 0; j < buf.length; j++) { + var par = 1; + for (var i = 1; i < 8; i++) { + par = (par + ((buf[j] >> i) & 1)) % 2; + } + buf[j] |= par & 1; + } + return buf; +} + +/* + * Expand a 56-bit key buffer to the full 64-bits for DES. + * + * Based on code sample in: + * http://www.innovation.ch/personal/ronald/ntlm.html + */ +function expandkey(key56) +{ + var key64 = new Buffer(8); + + key64[0] = key56[0] & 0xFE; + key64[1] = ((key56[0] << 7) & 0xFF) | (key56[1] >> 1); + key64[2] = ((key56[1] << 6) & 0xFF) | (key56[2] >> 2); + key64[3] = ((key56[2] << 5) & 0xFF) | (key56[3] >> 3); + key64[4] = ((key56[3] << 4) & 0xFF) | (key56[4] >> 4); + key64[5] = ((key56[4] << 3) & 0xFF) | (key56[5] >> 5); + key64[6] = ((key56[5] << 2) & 0xFF) | (key56[6] >> 6); + key64[7] = (key56[6] << 1) & 0xFF; + + return key64; +} + +/* + * Convert a binary string to a hex string + */ +function bintohex(bin) +{ + var buf = (Buffer.isBuffer(buf) ? buf : new Buffer(bin, 'binary')); + var str = buf.toString('hex').toUpperCase(); + return zeroextend(str, 32); +} + + +module.exports.zeroextend = zeroextend; +module.exports.oddpar = oddpar; +module.exports.expandkey = expandkey; +module.exports.bintohex = bintohex; diff --git a/node_modules/typed-rest-client/opensource/Node-SMB/lib/ntlm.js b/node_modules/typed-rest-client/opensource/Node-SMB/lib/ntlm.js new file mode 100644 index 0000000..3723bdd --- /dev/null +++ b/node_modules/typed-rest-client/opensource/Node-SMB/lib/ntlm.js @@ -0,0 +1,220 @@ +var log = console.log; +var crypto = require('crypto'); +var $ = require('./common'); +var lmhashbuf = require('./smbhash').lmhashbuf; +var nthashbuf = require('./smbhash').nthashbuf; + + +function encodeType1(hostname, ntdomain) { + hostname = hostname.toUpperCase(); + ntdomain = ntdomain.toUpperCase(); + var hostnamelen = Buffer.byteLength(hostname, 'ascii'); + var ntdomainlen = Buffer.byteLength(ntdomain, 'ascii'); + + var pos = 0; + var buf = new Buffer(32 + hostnamelen + ntdomainlen); + + buf.write('NTLMSSP', pos, 7, 'ascii'); // byte protocol[8]; + pos += 7; + buf.writeUInt8(0, pos); + pos++; + + buf.writeUInt8(0x01, pos); // byte type; + pos++; + + buf.fill(0x00, pos, pos + 3); // byte zero[3]; + pos += 3; + + buf.writeUInt16LE(0xb203, pos); // short flags; + pos += 2; + + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.writeUInt16LE(ntdomainlen, pos); // short dom_len; + pos += 2; + buf.writeUInt16LE(ntdomainlen, pos); // short dom_len; + pos += 2; + + var ntdomainoff = 0x20 + hostnamelen; + buf.writeUInt16LE(ntdomainoff, pos); // short dom_off; + pos += 2; + + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.writeUInt16LE(hostnamelen, pos); // short host_len; + pos += 2; + buf.writeUInt16LE(hostnamelen, pos); // short host_len; + pos += 2; + + buf.writeUInt16LE(0x20, pos); // short host_off; + pos += 2; + + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.write(hostname, 0x20, hostnamelen, 'ascii'); + buf.write(ntdomain, ntdomainoff, ntdomainlen, 'ascii'); + + return buf; +} + + +/* + * + */ +function decodeType2(buf) +{ + var proto = buf.toString('ascii', 0, 7); + if (buf[7] !== 0x00 || proto !== 'NTLMSSP') + throw new Error('magic was not NTLMSSP'); + + var type = buf.readUInt8(8); + if (type !== 0x02) + throw new Error('message was not NTLMSSP type 0x02'); + + //var msg_len = buf.readUInt16LE(16); + + //var flags = buf.readUInt16LE(20); + + var nonce = buf.slice(24, 32); + return nonce; +} + +function encodeType3(username, hostname, ntdomain, nonce, password) { + hostname = hostname.toUpperCase(); + ntdomain = ntdomain.toUpperCase(); + + var lmh = new Buffer(21); + lmhashbuf(password).copy(lmh); + lmh.fill(0x00, 16); // null pad to 21 bytes + var nth = new Buffer(21); + nthashbuf(password).copy(nth); + nth.fill(0x00, 16); // null pad to 21 bytes + + var lmr = makeResponse(lmh, nonce); + var ntr = makeResponse(nth, nonce); + + var usernamelen = Buffer.byteLength(username, 'ucs2'); + var hostnamelen = Buffer.byteLength(hostname, 'ucs2'); + var ntdomainlen = Buffer.byteLength(ntdomain, 'ucs2'); + var lmrlen = 0x18; + var ntrlen = 0x18; + + var ntdomainoff = 0x40; + var usernameoff = ntdomainoff + ntdomainlen; + var hostnameoff = usernameoff + usernamelen; + var lmroff = hostnameoff + hostnamelen; + var ntroff = lmroff + lmrlen; + + var pos = 0; + var msg_len = 64 + ntdomainlen + usernamelen + hostnamelen + lmrlen + ntrlen; + var buf = new Buffer(msg_len); + + buf.write('NTLMSSP', pos, 7, 'ascii'); // byte protocol[8]; + pos += 7; + buf.writeUInt8(0, pos); + pos++; + + buf.writeUInt8(0x03, pos); // byte type; + pos++; + + buf.fill(0x00, pos, pos + 3); // byte zero[3]; + pos += 3; + + buf.writeUInt16LE(lmrlen, pos); // short lm_resp_len; + pos += 2; + buf.writeUInt16LE(lmrlen, pos); // short lm_resp_len; + pos += 2; + buf.writeUInt16LE(lmroff, pos); // short lm_resp_off; + pos += 2; + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.writeUInt16LE(ntrlen, pos); // short nt_resp_len; + pos += 2; + buf.writeUInt16LE(ntrlen, pos); // short nt_resp_len; + pos += 2; + buf.writeUInt16LE(ntroff, pos); // short nt_resp_off; + pos += 2; + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.writeUInt16LE(ntdomainlen, pos); // short dom_len; + pos += 2; + buf.writeUInt16LE(ntdomainlen, pos); // short dom_len; + pos += 2; + buf.writeUInt16LE(ntdomainoff, pos); // short dom_off; + pos += 2; + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.writeUInt16LE(usernamelen, pos); // short user_len; + pos += 2; + buf.writeUInt16LE(usernamelen, pos); // short user_len; + pos += 2; + buf.writeUInt16LE(usernameoff, pos); // short user_off; + pos += 2; + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.writeUInt16LE(hostnamelen, pos); // short host_len; + pos += 2; + buf.writeUInt16LE(hostnamelen, pos); // short host_len; + pos += 2; + buf.writeUInt16LE(hostnameoff, pos); // short host_off; + pos += 2; + buf.fill(0x00, pos, pos + 6); // byte zero[6]; + pos += 6; + + buf.writeUInt16LE(msg_len, pos); // short msg_len; + pos += 2; + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.writeUInt16LE(0x8201, pos); // short flags; + pos += 2; + buf.fill(0x00, pos, pos + 2); // byte zero[2]; + pos += 2; + + buf.write(ntdomain, ntdomainoff, ntdomainlen, 'ucs2'); + buf.write(username, usernameoff, usernamelen, 'ucs2'); + buf.write(hostname, hostnameoff, hostnamelen, 'ucs2'); + lmr.copy(buf, lmroff, 0, lmrlen); + ntr.copy(buf, ntroff, 0, ntrlen); + + return buf; +} + +function makeResponse(hash, nonce) +{ + var out = new Buffer(24); + for (var i = 0; i < 3; i++) { + var keybuf = $.oddpar($.expandkey(hash.slice(i * 7, i * 7 + 7))); + var des = crypto.createCipheriv('DES-ECB', keybuf, ''); + var str = des.update(nonce.toString('binary'), 'binary', 'binary'); + out.write(str, i * 8, i * 8 + 8, 'binary'); + } + return out; +} + +exports.encodeType1 = encodeType1; +exports.decodeType2 = decodeType2; +exports.encodeType3 = encodeType3; + +// Convenience methods. + +exports.challengeHeader = function (hostname, domain) { + return 'NTLM ' + exports.encodeType1(hostname, domain).toString('base64'); +}; + +exports.responseHeader = function (res, url, domain, username, password) { + var serverNonce = new Buffer((res.headers['www-authenticate'].match(/^NTLM\s+(.+?)(,|\s+|$)/) || [])[1], 'base64'); + var hostname = require('url').parse(url).hostname; + return 'NTLM ' + exports.encodeType3(username, hostname, domain, exports.decodeType2(serverNonce), password).toString('base64') +}; + +// Import smbhash module. + +exports.smbhash = require('./smbhash'); diff --git a/node_modules/typed-rest-client/opensource/Node-SMB/lib/smbhash.js b/node_modules/typed-rest-client/opensource/Node-SMB/lib/smbhash.js new file mode 100644 index 0000000..d597639 --- /dev/null +++ b/node_modules/typed-rest-client/opensource/Node-SMB/lib/smbhash.js @@ -0,0 +1,64 @@ +var crypto = require('crypto'); +var $ = require('./common'); + +/* + * Generate the LM Hash + */ +function lmhashbuf(inputstr) +{ + /* ASCII --> uppercase */ + var x = inputstr.substring(0, 14).toUpperCase(); + var xl = Buffer.byteLength(x, 'ascii'); + + /* null pad to 14 bytes */ + var y = new Buffer(14); + y.write(x, 0, xl, 'ascii'); + y.fill(0, xl); + + /* insert odd parity bits in key */ + var halves = [ + $.oddpar($.expandkey(y.slice(0, 7))), + $.oddpar($.expandkey(y.slice(7, 14))) + ]; + + /* DES encrypt magic number "KGS!@#$%" to two + * 8-byte ciphertexts, (ECB, no padding) + */ + var buf = new Buffer(16); + var pos = 0; + var cts = halves.forEach(function(z) { + var des = crypto.createCipheriv('DES-ECB', z, ''); + var str = des.update('KGS!@#$%', 'binary', 'binary'); + buf.write(str, pos, pos + 8, 'binary'); + pos += 8; + }); + + /* concat the two ciphertexts to form 16byte value, + * the LM hash */ + return buf; +} + +function nthashbuf(str) +{ + /* take MD4 hash of UCS-2 encoded password */ + var ucs2 = new Buffer(str, 'ucs2'); + var md4 = crypto.createHash('md4'); + md4.update(ucs2); + return new Buffer(md4.digest('binary'), 'binary'); +} + +function lmhash(is) +{ + return $.bintohex(lmhashbuf(is)); +} + +function nthash(is) +{ + return $.bintohex(nthashbuf(is)); +} + +module.exports.nthashbuf = nthashbuf; +module.exports.lmhashbuf = lmhashbuf; + +module.exports.nthash = nthash; +module.exports.lmhash = lmhash; diff --git a/node_modules/typed-rest-client/opensource/node-http-ntlm/ntlm.js b/node_modules/typed-rest-client/opensource/node-http-ntlm/ntlm.js deleted file mode 100644 index 6c8114d..0000000 --- a/node_modules/typed-rest-client/opensource/node-http-ntlm/ntlm.js +++ /dev/null @@ -1,389 +0,0 @@ -var crypto = require('crypto'); - -var flags = { - NTLM_NegotiateUnicode : 0x00000001, - NTLM_NegotiateOEM : 0x00000002, - NTLM_RequestTarget : 0x00000004, - NTLM_Unknown9 : 0x00000008, - NTLM_NegotiateSign : 0x00000010, - NTLM_NegotiateSeal : 0x00000020, - NTLM_NegotiateDatagram : 0x00000040, - NTLM_NegotiateLanManagerKey : 0x00000080, - NTLM_Unknown8 : 0x00000100, - NTLM_NegotiateNTLM : 0x00000200, - NTLM_NegotiateNTOnly : 0x00000400, - NTLM_Anonymous : 0x00000800, - NTLM_NegotiateOemDomainSupplied : 0x00001000, - NTLM_NegotiateOemWorkstationSupplied : 0x00002000, - NTLM_Unknown6 : 0x00004000, - NTLM_NegotiateAlwaysSign : 0x00008000, - NTLM_TargetTypeDomain : 0x00010000, - NTLM_TargetTypeServer : 0x00020000, - NTLM_TargetTypeShare : 0x00040000, - NTLM_NegotiateExtendedSecurity : 0x00080000, - NTLM_NegotiateIdentify : 0x00100000, - NTLM_Unknown5 : 0x00200000, - NTLM_RequestNonNTSessionKey : 0x00400000, - NTLM_NegotiateTargetInfo : 0x00800000, - NTLM_Unknown4 : 0x01000000, - NTLM_NegotiateVersion : 0x02000000, - NTLM_Unknown3 : 0x04000000, - NTLM_Unknown2 : 0x08000000, - NTLM_Unknown1 : 0x10000000, - NTLM_Negotiate128 : 0x20000000, - NTLM_NegotiateKeyExchange : 0x40000000, - NTLM_Negotiate56 : 0x80000000 -}; -var typeflags = { - NTLM_TYPE1_FLAGS : flags.NTLM_NegotiateUnicode - + flags.NTLM_NegotiateOEM - + flags.NTLM_RequestTarget - + flags.NTLM_NegotiateNTLM - + flags.NTLM_NegotiateOemDomainSupplied - + flags.NTLM_NegotiateOemWorkstationSupplied - + flags.NTLM_NegotiateAlwaysSign - + flags.NTLM_NegotiateExtendedSecurity - + flags.NTLM_NegotiateVersion - + flags.NTLM_Negotiate128 - + flags.NTLM_Negotiate56, - - NTLM_TYPE2_FLAGS : flags.NTLM_NegotiateUnicode - + flags.NTLM_RequestTarget - + flags.NTLM_NegotiateNTLM - + flags.NTLM_NegotiateAlwaysSign - + flags.NTLM_NegotiateExtendedSecurity - + flags.NTLM_NegotiateTargetInfo - + flags.NTLM_NegotiateVersion - + flags.NTLM_Negotiate128 - + flags.NTLM_Negotiate56 -}; - -function createType1Message(options){ - var domain = escape(options.domain.toUpperCase()); - var workstation = escape(options.workstation.toUpperCase()); - var protocol = 'NTLMSSP\0'; - - var BODY_LENGTH = 40; - - var type1flags = typeflags.NTLM_TYPE1_FLAGS; - if(!domain || domain === '') - type1flags = type1flags - flags.NTLM_NegotiateOemDomainSupplied; - - var pos = 0; - var buf = new Buffer(BODY_LENGTH + domain.length + workstation.length); - - - buf.write(protocol, pos, protocol.length); pos += protocol.length; // protocol - buf.writeUInt32LE(1, pos); pos += 4; // type 1 - buf.writeUInt32LE(type1flags, pos); pos += 4; // TYPE1 flag - - buf.writeUInt16LE(domain.length, pos); pos += 2; // domain length - buf.writeUInt16LE(domain.length, pos); pos += 2; // domain max length - buf.writeUInt32LE(BODY_LENGTH + workstation.length, pos); pos += 4; // domain buffer offset - - buf.writeUInt16LE(workstation.length, pos); pos += 2; // workstation length - buf.writeUInt16LE(workstation.length, pos); pos += 2; // workstation max length - buf.writeUInt32LE(BODY_LENGTH, pos); pos += 4; // workstation buffer offset - - buf.writeUInt8(5, pos); pos += 1; //ProductMajorVersion - buf.writeUInt8(1, pos); pos += 1; //ProductMinorVersion - buf.writeUInt16LE(2600, pos); pos += 2; //ProductBuild - - buf.writeUInt8(0 , pos); pos += 1; //VersionReserved1 - buf.writeUInt8(0 , pos); pos += 1; //VersionReserved2 - buf.writeUInt8(0 , pos); pos += 1; //VersionReserved3 - buf.writeUInt8(15, pos); pos += 1; //NTLMRevisionCurrent - - buf.write(workstation, pos, workstation.length, 'ascii'); pos += workstation.length; // workstation string - buf.write(domain , pos, domain.length , 'ascii'); pos += domain.length; - - return 'NTLM ' + buf.toString('base64'); -} - -function parseType2Message(rawmsg, callback){ - var match = rawmsg.match(/NTLM (.+)?/); - if(!match || !match[1]) - return callback(new Error("Couldn't find NTLM in the message type2 comming from the server")); - - var buf = new Buffer(match[1], 'base64'); - - var msg = {}; - - msg.signature = buf.slice(0, 8); - msg.type = buf.readInt16LE(8); - - if(msg.type != 2) - return callback(new Error("Server didn't return a type 2 message")); - - msg.targetNameLen = buf.readInt16LE(12); - msg.targetNameMaxLen = buf.readInt16LE(14); - msg.targetNameOffset = buf.readInt32LE(16); - msg.targetName = buf.slice(msg.targetNameOffset, msg.targetNameOffset + msg.targetNameMaxLen); - - msg.negotiateFlags = buf.readInt32LE(20); - msg.serverChallenge = buf.slice(24, 32); - msg.reserved = buf.slice(32, 40); - - if(msg.negotiateFlags & flags.NTLM_NegotiateTargetInfo){ - msg.targetInfoLen = buf.readInt16LE(40); - msg.targetInfoMaxLen = buf.readInt16LE(42); - msg.targetInfoOffset = buf.readInt32LE(44); - msg.targetInfo = buf.slice(msg.targetInfoOffset, msg.targetInfoOffset + msg.targetInfoLen); - } - return msg; -} - -function createType3Message(msg2, options){ - var nonce = msg2.serverChallenge; - var username = options.username; - var password = options.password; - var negotiateFlags = msg2.negotiateFlags; - - var isUnicode = negotiateFlags & flags.NTLM_NegotiateUnicode; - var isNegotiateExtendedSecurity = negotiateFlags & flags.NTLM_NegotiateExtendedSecurity; - - var BODY_LENGTH = 72; - - var domainName = escape(options.domain.toUpperCase()); - var workstation = escape(options.workstation.toUpperCase()); - - var workstationBytes, domainNameBytes, usernameBytes, encryptedRandomSessionKeyBytes; - - var encryptedRandomSessionKey = ""; - if(isUnicode){ - workstationBytes = new Buffer(workstation, 'utf16le'); - domainNameBytes = new Buffer(domainName, 'utf16le'); - usernameBytes = new Buffer(username, 'utf16le'); - encryptedRandomSessionKeyBytes = new Buffer(encryptedRandomSessionKey, 'utf16le'); - }else{ - workstationBytes = new Buffer(workstation, 'ascii'); - domainNameBytes = new Buffer(domainName, 'ascii'); - usernameBytes = new Buffer(username, 'ascii'); - encryptedRandomSessionKeyBytes = new Buffer(encryptedRandomSessionKey, 'ascii'); - } - - var lmChallengeResponse = calc_resp(create_LM_hashed_password_v1(password), nonce); - var ntChallengeResponse = calc_resp(create_NT_hashed_password_v1(password), nonce); - - if(isNegotiateExtendedSecurity){ - var pwhash = create_NT_hashed_password_v1(password); - var clientChallenge = ""; - for(var i=0; i < 8; i++){ - clientChallenge += String.fromCharCode( Math.floor(Math.random()*256) ); - } - var clientChallengeBytes = new Buffer(clientChallenge, 'ascii'); - var challenges = ntlm2sr_calc_resp(pwhash, nonce, clientChallengeBytes); - lmChallengeResponse = challenges.lmChallengeResponse; - ntChallengeResponse = challenges.ntChallengeResponse; - } - - var signature = 'NTLMSSP\0'; - - var pos = 0; - var buf = new Buffer(BODY_LENGTH + domainNameBytes.length + usernameBytes.length + workstationBytes.length + lmChallengeResponse.length + ntChallengeResponse.length + encryptedRandomSessionKeyBytes.length); - - buf.write(signature, pos, signature.length); pos += signature.length; - buf.writeUInt32LE(3, pos); pos += 4; // type 1 - - buf.writeUInt16LE(lmChallengeResponse.length, pos); pos += 2; // LmChallengeResponseLen - buf.writeUInt16LE(lmChallengeResponse.length, pos); pos += 2; // LmChallengeResponseMaxLen - buf.writeUInt32LE(BODY_LENGTH + domainNameBytes.length + usernameBytes.length + workstationBytes.length, pos); pos += 4; // LmChallengeResponseOffset - - buf.writeUInt16LE(ntChallengeResponse.length, pos); pos += 2; // NtChallengeResponseLen - buf.writeUInt16LE(ntChallengeResponse.length, pos); pos += 2; // NtChallengeResponseMaxLen - buf.writeUInt32LE(BODY_LENGTH + domainNameBytes.length + usernameBytes.length + workstationBytes.length + lmChallengeResponse.length, pos); pos += 4; // NtChallengeResponseOffset - - buf.writeUInt16LE(domainNameBytes.length, pos); pos += 2; // DomainNameLen - buf.writeUInt16LE(domainNameBytes.length, pos); pos += 2; // DomainNameMaxLen - buf.writeUInt32LE(BODY_LENGTH, pos); pos += 4; // DomainNameOffset - - buf.writeUInt16LE(usernameBytes.length, pos); pos += 2; // UserNameLen - buf.writeUInt16LE(usernameBytes.length, pos); pos += 2; // UserNameMaxLen - buf.writeUInt32LE(BODY_LENGTH + domainNameBytes.length, pos); pos += 4; // UserNameOffset - - buf.writeUInt16LE(workstationBytes.length, pos); pos += 2; // WorkstationLen - buf.writeUInt16LE(workstationBytes.length, pos); pos += 2; // WorkstationMaxLen - buf.writeUInt32LE(BODY_LENGTH + domainNameBytes.length + usernameBytes.length, pos); pos += 4; // WorkstationOffset - - buf.writeUInt16LE(encryptedRandomSessionKeyBytes.length, pos); pos += 2; // EncryptedRandomSessionKeyLen - buf.writeUInt16LE(encryptedRandomSessionKeyBytes.length, pos); pos += 2; // EncryptedRandomSessionKeyMaxLen - buf.writeUInt32LE(BODY_LENGTH + domainNameBytes.length + usernameBytes.length + workstationBytes.length + lmChallengeResponse.length + ntChallengeResponse.length, pos); pos += 4; // EncryptedRandomSessionKeyOffset - - buf.writeUInt32LE(typeflags.NTLM_TYPE2_FLAGS, pos); pos += 4; // NegotiateFlags - - buf.writeUInt8(5, pos); pos++; // ProductMajorVersion - buf.writeUInt8(1, pos); pos++; // ProductMinorVersion - buf.writeUInt16LE(2600, pos); pos += 2; // ProductBuild - buf.writeUInt8(0, pos); pos++; // VersionReserved1 - buf.writeUInt8(0, pos); pos++; // VersionReserved2 - buf.writeUInt8(0, pos); pos++; // VersionReserved3 - buf.writeUInt8(15, pos); pos++; // NTLMRevisionCurrent - - domainNameBytes.copy(buf, pos); pos += domainNameBytes.length; - usernameBytes.copy(buf, pos); pos += usernameBytes.length; - workstationBytes.copy(buf, pos); pos += workstationBytes.length; - lmChallengeResponse.copy(buf, pos); pos += lmChallengeResponse.length; - ntChallengeResponse.copy(buf, pos); pos += ntChallengeResponse.length; - encryptedRandomSessionKeyBytes.copy(buf, pos); pos += encryptedRandomSessionKeyBytes.length; - - return 'NTLM ' + buf.toString('base64'); -} - -function create_LM_hashed_password_v1(password){ - // fix the password length to 14 bytes - password = password.toUpperCase(); - var passwordBytes = new Buffer(password, 'ascii'); - - var passwordBytesPadded = new Buffer(14); - passwordBytesPadded.fill("\0"); - var sourceEnd = 14; - if(passwordBytes.length < 14) sourceEnd = passwordBytes.length; - passwordBytes.copy(passwordBytesPadded, 0, 0, sourceEnd); - - // split into 2 parts of 7 bytes: - var firstPart = passwordBytesPadded.slice(0,7); - var secondPart = passwordBytesPadded.slice(7); - - function encrypt(buf){ - var key = insertZerosEvery7Bits(buf); - var des = crypto.createCipheriv('DES-ECB', key, ''); - return des.update("KGS!@#$%"); // page 57 in [MS-NLMP]); - } - - var firstPartEncrypted = encrypt(firstPart); - var secondPartEncrypted = encrypt(secondPart); - - return Buffer.concat([firstPartEncrypted, secondPartEncrypted]); -} - -function insertZerosEvery7Bits(buf){ - var binaryArray = bytes2binaryArray(buf); - var newBinaryArray = []; - for(var i=0; i array.length) - break; - - var binString1 = '' + array[i] + '' + array[i+1] + '' + array[i+2] + '' + array[i+3]; - var binString2 = '' + array[i+4] + '' + array[i+5] + '' + array[i+6] + '' + array[i+7]; - var hexchar1 = binary2hex[binString1]; - var hexchar2 = binary2hex[binString2]; - - var buf = new Buffer(hexchar1 + '' + hexchar2, 'hex'); - bufArray.push(buf); - } - - return Buffer.concat(bufArray); -} - -function create_NT_hashed_password_v1(password){ - var buf = new Buffer(password, 'utf16le'); - var md4 = crypto.createHash('md4'); - md4.update(buf); - return new Buffer(md4.digest()); -} - -function calc_resp(password_hash, server_challenge){ - // padding with zeros to make the hash 21 bytes long - var passHashPadded = new Buffer(21); - passHashPadded.fill("\0"); - password_hash.copy(passHashPadded, 0, 0, password_hash.length); - - var resArray = []; - - var des = crypto.createCipheriv('DES-ECB', insertZerosEvery7Bits(passHashPadded.slice(0,7)), ''); - resArray.push( des.update(server_challenge.slice(0,8)) ); - - des = crypto.createCipheriv('DES-ECB', insertZerosEvery7Bits(passHashPadded.slice(7,14)), ''); - resArray.push( des.update(server_challenge.slice(0,8)) ); - - des = crypto.createCipheriv('DES-ECB', insertZerosEvery7Bits(passHashPadded.slice(14,21)), ''); - resArray.push( des.update(server_challenge.slice(0,8)) ); - - return Buffer.concat(resArray); -} - -function ntlm2sr_calc_resp(responseKeyNT, serverChallenge, clientChallenge){ - // padding with zeros to make the hash 16 bytes longer - var lmChallengeResponse = new Buffer(clientChallenge.length + 16); - lmChallengeResponse.fill("\0"); - clientChallenge.copy(lmChallengeResponse, 0, 0, clientChallenge.length); - - var buf = Buffer.concat([serverChallenge, clientChallenge]); - var md5 = crypto.createHash('md5'); - md5.update(buf); - var sess = md5.digest(); - var ntChallengeResponse = calc_resp(responseKeyNT, sess.slice(0,8)); - - return { - lmChallengeResponse: lmChallengeResponse, - ntChallengeResponse: ntChallengeResponse - }; -} - -exports.createType1Message = createType1Message; -exports.parseType2Message = parseType2Message; -exports.createType3Message = createType3Message; - - - diff --git a/node_modules/typed-rest-client/opensource/node-http-ntlm/readme.txt b/node_modules/typed-rest-client/opensource/node-http-ntlm/readme.txt deleted file mode 100644 index 39765da..0000000 --- a/node_modules/typed-rest-client/opensource/node-http-ntlm/readme.txt +++ /dev/null @@ -1,6 +0,0 @@ -// This software (ntlm.js) was copied from a file of the same name at https://github.com/SamDecrock/node-http-ntlm/blob/master/ntlm.js. -// -// As of this writing, it is a part of the node-http-ntlm module produced by SamDecrock. -// -// It is used as a part of the NTLM support provided by the vso-node-api library. -// diff --git a/node_modules/typed-rest-client/package.json b/node_modules/typed-rest-client/package.json index 6a9148f..db3e829 100644 --- a/node_modules/typed-rest-client/package.json +++ b/node_modules/typed-rest-client/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "typed-rest-client@1.7.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "typed-rest-client@1.7.1", - "_id": "typed-rest-client@1.7.1", + "_from": "typed-rest-client@1.7.3", + "_id": "typed-rest-client@1.7.3", "_inBundle": false, - "_integrity": "sha512-fZRDWFtUp3J2E0jOiCJYZ9LDrYZHpjY95su//ekqXERS7C1qojP6movh7M4JGURJnBuTVsO0g2N4vEoW5o3Djw==", + "_integrity": "sha512-CwTpx/TkRHGZoHkJhBcp4X8K3/WtlzSHVQR0OIFnt10j4tgy4ypgq/SrrgVpA1s6tAL49Q6J3R5C0Cgfh2ddqA==", "_location": "/typed-rest-client", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "typed-rest-client@1.7.1", + "raw": "typed-rest-client@1.7.3", "name": "typed-rest-client", "escapedName": "typed-rest-client", - "rawSpec": "1.7.1", + "rawSpec": "1.7.3", "saveSpec": null, - "fetchSpec": "1.7.1" + "fetchSpec": "1.7.3" }, "_requiredBy": [ "/" ], - "_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.7.1.tgz", - "_spec": "1.7.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.7.3.tgz", + "_spec": "1.7.3", "author": { "name": "Microsoft Corporation" }, @@ -35,7 +28,7 @@ }, "dependencies": { "qs": "^6.9.1", - "tunnel": "0.0.4", + "tunnel": "0.0.6", "underscore": "1.8.3" }, "description": "Node Rest and Http Clients for use with TypeScript", @@ -73,5 +66,5 @@ "units": "node make.js units", "validate": "node make.js validate" }, - "version": "1.7.1" -} + "version": "1.7.3" +} \ No newline at end of file diff --git a/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js b/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js deleted file mode 100644 index aacd41e..0000000 --- a/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.unbzip2Stream=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i=(25e3+1e5*blockSize||4)){decompressAndQueue(this)}},function end(x){while(!broken&&hasBytes>bitReader.bytesRead){decompressAndQueue(this)}if(!broken){if(streamCRC!==null)stream.emit("error",new Error("input stream ended prematurely"));this.queue(null)}})}}).call(this,require("buffer").Buffer)},{"./lib/bit_iterator":2,"./lib/bzip2":3,buffer:6,through:31}],2:[function(require,module,exports){var BITMASK=[0,1,3,7,15,31,63,127,255];module.exports=function bitIterator(nextBuffer){var bit=0,byte=0;var bytes=nextBuffer();var f=function(n){if(n===null&&bit!=0){bit=0;byte++;return}var result=0;while(n>0){if(byte>=bytes.length){byte=0;bytes=nextBuffer()}var left=8-bit;if(bit===0&&n>0)f.bytesRead++;if(n>=left){result<<=left;result|=BITMASK[left]&bytes[byte++];bit=0;n-=left}else{result<<=n;result|=(bytes[byte]&BITMASK[n]<<8-n-bit)>>8-n-bit;bit+=n;n=0}}return result};f.bytesRead=0;return f}},{}],3:[function(require,module,exports){function Bzip2Error(message){this.name="Bzip2Error";this.message=message;this.stack=(new Error).stack}Bzip2Error.prototype=new Error;var message={Error:function(message){throw new Bzip2Error(message)}};var bzip2={};bzip2.Bzip2Error=Bzip2Error;bzip2.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];bzip2.array=function(bytes){var bit=0,byte=0;var BITMASK=[0,1,3,7,15,31,63,127,255];return function(n){var result=0;while(n>0){var left=8-bit;if(n>=left){result<<=left;result|=BITMASK[left]&bytes[byte++];bit=0;n-=left}else{result<<=n;result|=(bytes[byte]&BITMASK[n]<<8-n-bit)>>8-n-bit;bit+=n;n=0}}return result}};bzip2.simple=function(srcbuffer,stream){var bits=bzip2.array(srcbuffer);var size=bzip2.header(bits);var ret=false;var bufsize=1e5*size;var buf=new Int32Array(bufsize);do{ret=bzip2.decompress(bits,stream,buf,bufsize)}while(!ret)};bzip2.header=function(bits){this.byteCount=new Int32Array(256);this.symToByte=new Uint8Array(256);this.mtfSymbol=new Int32Array(256);this.selectors=new Uint8Array(32768);if(bits(8*3)!=4348520)message.Error("No magic number found");var i=bits(8)-48;if(i<1||i>9)message.Error("Not a BZIP archive");return i};bzip2.decompress=function(bits,stream,buf,bufsize,streamCRC){var MAX_HUFCODE_BITS=20;var MAX_SYMBOLS=258;var SYMBOL_RUNA=0;var SYMBOL_RUNB=1;var GROUP_SIZE=50;var crc=0^-1;for(var h="",i=0;i<6;i++)h+=bits(8).toString(16);if(h=="177245385090"){var finalCRC=bits(32)|0;if(finalCRC!==streamCRC)message.Error("Error in bzip2: crc32 do not match");bits(null);return null}if(h!="314159265359")message.Error("eek not valid bzip data");var crcblock=bits(32)|0;if(bits(1))message.Error("unsupported obsolete version");var origPtr=bits(24);if(origPtr>bufsize)message.Error("Initial position larger than buffer size");var t=bits(16);var symTotal=0;for(i=0;i<16;i++){if(t&1<<15-i){var k=bits(16);for(j=0;j<16;j++){if(k&1<<15-j){this.symToByte[symTotal++]=16*i+j}}}}var groupCount=bits(3);if(groupCount<2||groupCount>6)message.Error("another error");var nSelectors=bits(15);if(nSelectors==0)message.Error("meh");for(var i=0;i=groupCount)message.Error("whoops another error");var uc=this.mtfSymbol[j];for(var k=j-1;k>=0;k--){this.mtfSymbol[k+1]=this.mtfSymbol[k]}this.mtfSymbol[0]=uc;this.selectors[i]=uc}var symCount=symTotal+2;var groups=[];var length=new Uint8Array(MAX_SYMBOLS),temp=new Uint16Array(MAX_HUFCODE_BITS+1);var hufGroup;for(var j=0;jMAX_HUFCODE_BITS)message.Error("I gave up a while ago on writing error messages");if(!bits(1))break;if(!bits(1))t++;else t--}length[i]=t}var minLen,maxLen;minLen=maxLen=length[0];for(var i=1;imaxLen)maxLen=length[i];else if(length[i]=nSelectors)message.Error("meow i'm a kitty, that's an error");hufGroup=groups[this.selectors[selector++]];base=hufGroup.base.subarray(1);limit=hufGroup.limit.subarray(1)}i=hufGroup.minLen;j=bits(i);while(true){if(i>hufGroup.maxLen)message.Error("rawr i'm a dinosaur");if(j<=limit[i])break;i++;j=j<<1|bits(1)}j-=base[i];if(j<0||j>=MAX_SYMBOLS)message.Error("moo i'm a cow");var nextSym=hufGroup.permute[j];if(nextSym==SYMBOL_RUNA||nextSym==SYMBOL_RUNB){if(!runPos){runPos=1;t=0}if(nextSym==SYMBOL_RUNA)t+=runPos;else t+=2*runPos;runPos<<=1;continue}if(runPos){runPos=0;if(count+t>bufsize)message.Error("Boom.");uc=this.symToByte[this.mtfSymbol[0]];this.byteCount[uc]+=t;while(t--)buf[count++]=uc}if(nextSym>symTotal)break;if(count>=bufsize)message.Error("I can't think of anything. Error");i=nextSym-1;uc=this.mtfSymbol[i];for(var k=i-1;k>=0;k--){this.mtfSymbol[k+1]=this.mtfSymbol[k]}this.mtfSymbol[0]=uc;uc=this.symToByte[uc];this.byteCount[uc]++;buf[count++]=uc}if(origPtr<0||origPtr>=count)message.Error("I'm a monkey and I'm throwing something at someone, namely you");var j=0;for(var i=0;i<256;i++){k=j+this.byteCount[i];this.byteCount[i]=j;j=k}for(var i=0;i>=8;run=-1}count=count;var copies,previous,outbyte;while(count){count--;previous=current;pos=buf[pos];current=pos&255;pos>>=8;if(run++==3){copies=current;outbyte=previous;current=-1}else{copies=1;outbyte=current}while(copies--){crc=(crc<<8^this.crcTable[(crc>>24^outbyte)&255])&4294967295;stream(outbyte)}if(current!=previous)run=0}crc=(crc^-1)>>>0;if((crc|0)!=(crcblock|0))message.Error("Error in bzip2: crc32 do not match");if(streamCRC===null)streamCRC=0;streamCRC=(crc^(streamCRC<<1|streamCRC>>>31))&4294967295;return streamCRC};module.exports=bzip2},{}],4:[function(require,module,exports){},{}],5:[function(require,module,exports){"use strict";exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0){throw new Error("Invalid string. Length must be a multiple of 4")}var validLen=b64.indexOf("=");if(validLen===-1)validLen=len;var placeHoldersLen=validLen===len?0:4-validLen%4;return[validLen,placeHoldersLen]}function byteLength(b64){var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function _byteLength(b64,validLen,placeHoldersLen){return(validLen+placeHoldersLen)*3/4-placeHoldersLen}function toByteArray(b64){var tmp;var lens=getLens(b64);var validLen=lens[0];var placeHoldersLen=lens[1];var arr=new Arr(_byteLength(b64,validLen,placeHoldersLen));var curByte=0;var len=placeHoldersLen>0?validLen-4:validLen;for(var i=0;i>16&255;arr[curByte++]=tmp>>8&255;arr[curByte++]=tmp&255}if(placeHoldersLen===2){tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4;arr[curByte++]=tmp&255}if(placeHoldersLen===1){tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2;arr[curByte++]=tmp>>8&255;arr[curByte++]=tmp&255}return arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}function encodeChunk(uint8,start,end){var tmp;var output=[];for(var i=start;ilen2?len2:i+maxChunkLength))}if(extraBytes===1){tmp=uint8[len-1];parts.push(lookup[tmp>>2]+lookup[tmp<<4&63]+"==")}else if(extraBytes===2){tmp=(uint8[len-2]<<8)+uint8[len-1];parts.push(lookup[tmp>>10]+lookup[tmp>>4&63]+lookup[tmp<<2&63]+"=")}return parts.join("")}},{}],6:[function(require,module,exports){"use strict";var base64=require("base64-js");var ieee754=require("ieee754");exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=2147483647;exports.kMaxLength=K_MAX_LENGTH;Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport();if(!Buffer.TYPED_ARRAY_SUPPORT&&typeof console!=="undefined"&&typeof console.error==="function"){console.error("This browser lacks typed array (Uint8Array) support which is required by "+"`buffer` v5.x. Use `buffer` v4.x if you require old browser support.")}function typedArraySupport(){try{var arr=new Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return arr.foo()===42}catch(e){return false}}Object.defineProperty(Buffer.prototype,"parent",{enumerable:true,get:function(){if(!Buffer.isBuffer(this))return undefined;return this.buffer}});Object.defineProperty(Buffer.prototype,"offset",{enumerable:true,get:function(){if(!Buffer.isBuffer(this))return undefined;return this.byteOffset}});function createBuffer(length){if(length>K_MAX_LENGTH){throw new RangeError('The value "'+length+'" is invalid for option "size"')}var buf=new Uint8Array(length);buf.__proto__=Buffer.prototype;return buf}function Buffer(arg,encodingOrOffset,length){if(typeof arg==="number"){if(typeof encodingOrOffset==="string"){throw new TypeError('The "string" argument must be of type string. Received type number')}return allocUnsafe(arg)}return from(arg,encodingOrOffset,length)}if(typeof Symbol!=="undefined"&&Symbol.species!=null&&Buffer[Symbol.species]===Buffer){Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:true,enumerable:false,writable:false})}Buffer.poolSize=8192;function from(value,encodingOrOffset,length){if(typeof value==="string"){return fromString(value,encodingOrOffset)}if(ArrayBuffer.isView(value)){return fromArrayLike(value)}if(value==null){throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof value)}if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)){return fromArrayBuffer(value,encodingOrOffset,length)}if(typeof value==="number"){throw new TypeError('The "value" argument must not be of type number. Received type number')}var valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value){return Buffer.from(valueOf,encodingOrOffset,length)}var b=fromObject(value);if(b)return b;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]==="function"){return Buffer.from(value[Symbol.toPrimitive]("string"),encodingOrOffset,length)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof value)}Buffer.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length)};Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;function assertSize(size){if(typeof size!=="number"){throw new TypeError('"size" argument must be of type number')}else if(size<0){throw new RangeError('The value "'+size+'" is invalid for option "size"')}}function alloc(size,fill,encoding){assertSize(size);if(size<=0){return createBuffer(size)}if(fill!==undefined){return typeof encoding==="string"?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill)}return createBuffer(size)}Buffer.alloc=function(size,fill,encoding){return alloc(size,fill,encoding)};function allocUnsafe(size){assertSize(size);return createBuffer(size<0?0:checked(size)|0)}Buffer.allocUnsafe=function(size){return allocUnsafe(size)};Buffer.allocUnsafeSlow=function(size){return allocUnsafe(size)};function fromString(string,encoding){if(typeof encoding!=="string"||encoding===""){encoding="utf8"}if(!Buffer.isEncoding(encoding)){throw new TypeError("Unknown encoding: "+encoding)}var length=byteLength(string,encoding)|0;var buf=createBuffer(length);var actual=buf.write(string,encoding);if(actual!==length){buf=buf.slice(0,actual)}return buf}function fromArrayLike(array){var length=array.length<0?0:checked(array.length)|0;var buf=createBuffer(length);for(var i=0;i=K_MAX_LENGTH){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+K_MAX_LENGTH.toString(16)+" bytes")}return length|0}function SlowBuffer(length){if(+length!=length){length=0}return Buffer.alloc(+length)}Buffer.isBuffer=function isBuffer(b){return b!=null&&b._isBuffer===true&&b!==Buffer.prototype};Buffer.compare=function compare(a,b){if(isInstance(a,Uint8Array))a=Buffer.from(a,a.offset,a.byteLength);if(isInstance(b,Uint8Array))b=Buffer.from(b,b.offset,b.byteLength);if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b)){throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array')}if(a===b)return 0;var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i2&&arguments[2]===true;if(!mustMatch&&len===0)return 0;var loweredCase=false;for(;;){switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase){return mustMatch?-1:utf8ToBytes(string).length}encoding=(""+encoding).toLowerCase();loweredCase=true}}}Buffer.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=false;if(start===undefined||start<0){start=0}if(start>this.length){return""}if(end===undefined||end>this.length){end=this.length}if(end<=0){return""}end>>>=0;start>>>=0;if(end<=start){return""}if(!encoding)encoding="utf8";while(true){switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=true}}}Buffer.prototype._isBuffer=true;function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i}Buffer.prototype.swap16=function swap16(){var len=this.length;if(len%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var i=0;imax)str+=" ... ";return""};Buffer.prototype.compare=function compare(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)){target=Buffer.from(target,target.offset,target.byteLength)}if(!Buffer.isBuffer(target)){throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. '+"Received type "+typeof target)}if(start===undefined){start=0}if(end===undefined){end=target?target.length:0}if(thisStart===undefined){thisStart=0}if(thisEnd===undefined){thisEnd=this.length}if(start<0||end>target.length||thisStart<0||thisEnd>this.length){throw new RangeError("out of range index")}if(thisStart>=thisEnd&&start>=end){return 0}if(thisStart>=thisEnd){return-1}if(start>=end){return 1}start>>>=0;end>>>=0;thisStart>>>=0;thisEnd>>>=0;if(this===target)return 0;var x=thisEnd-thisStart;var y=end-start;var len=Math.min(x,y);var thisCopy=this.slice(thisStart,thisEnd);var targetCopy=target.slice(start,end);for(var i=0;i2147483647){byteOffset=2147483647}else if(byteOffset<-2147483648){byteOffset=-2147483648}byteOffset=+byteOffset;if(numberIsNaN(byteOffset)){byteOffset=dir?0:buffer.length-1}if(byteOffset<0)byteOffset=buffer.length+byteOffset;if(byteOffset>=buffer.length){if(dir)return-1;else byteOffset=buffer.length-1}else if(byteOffset<0){if(dir)byteOffset=0;else return-1}if(typeof val==="string"){val=Buffer.from(val,encoding)}if(Buffer.isBuffer(val)){if(val.length===0){return-1}return arrayIndexOf(buffer,val,byteOffset,encoding,dir)}else if(typeof val==="number"){val=val&255;if(typeof Uint8Array.prototype.indexOf==="function"){if(dir){return Uint8Array.prototype.indexOf.call(buffer,val,byteOffset)}else{return Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset)}}return arrayIndexOf(buffer,[val],byteOffset,encoding,dir)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1;var arrLength=arr.length;var valLength=val.length;if(encoding!==undefined){encoding=String(encoding).toLowerCase();if(encoding==="ucs2"||encoding==="ucs-2"||encoding==="utf16le"||encoding==="utf-16le"){if(arr.length<2||val.length<2){return-1}indexSize=2;arrLength/=2;valLength/=2;byteOffset/=2}}function read(buf,i){if(indexSize===1){return buf[i]}else{return buf.readUInt16BE(i*indexSize)}}var i;if(dir){var foundIndex=-1;for(i=byteOffset;iarrLength)byteOffset=arrLength-valLength;for(i=byteOffset;i>=0;i--){var found=true;for(var j=0;jremaining){length=remaining}}var strLen=string.length;if(length>strLen/2){length=strLen/2}for(var i=0;i>>0;if(isFinite(length)){length=length>>>0;if(encoding===undefined)encoding="utf8"}else{encoding=length;length=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var remaining=this.length-offset;if(length===undefined||length>remaining)length=remaining;if(string.length>0&&(length<0||offset<0)||offset>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!encoding)encoding="utf8";var loweredCase=false;for(;;){switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"latin1":case"binary":return latin1Write(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase();loweredCase=true}}};Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf)}else{return base64.fromByteArray(buf.slice(start,end))}}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);var res=[];var i=start;while(i239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<128){codePoint=firstByte}break;case 2:secondByte=buf[i+1];if((secondByte&192)===128){tempCodePoint=(firstByte&31)<<6|secondByte&63;if(tempCodePoint>127){codePoint=tempCodePoint}}break;case 3:secondByte=buf[i+1];thirdByte=buf[i+2];if((secondByte&192)===128&&(thirdByte&192)===128){tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63;if(tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)){codePoint=tempCodePoint}}break;case 4:secondByte=buf[i+1];thirdByte=buf[i+2];fourthByte=buf[i+3];if((secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128){tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63;if(tempCodePoint>65535&&tempCodePoint<1114112){codePoint=tempCodePoint}}}}if(codePoint===null){codePoint=65533;bytesPerSequence=1}else if(codePoint>65535){codePoint-=65536;res.push(codePoint>>>10&1023|55296);codePoint=56320|codePoint&1023}res.push(codePoint);i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints)}var res="";var i=0;while(ilen)end=len;var out="";for(var i=start;ilen){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(endlength)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i>>0;byteLength=byteLength>>>0;if(!noAssert){checkOffset(offset,byteLength,this.length)}var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=256)){val+=this[offset+--byteLength]*mul}return val};Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*16777216};Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256)){val+=this[offset+--i]*mul}mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readInt8=function readInt8(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&128))return this[offset];return(255-this[offset]+1)*-1};Buffer.prototype.readInt16LE=function readInt16LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt16BE=function readInt16BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&32768?val|4294901760:val};Buffer.prototype.readInt32LE=function readInt32LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function readInt32BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function readFloatLE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4)};Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4)};Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8)};Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8)};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||valuebuf.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var mul=1;var i=0;this[offset]=value&255;while(++i>>0;byteLength=byteLength>>>0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var i=byteLength-1;var mul=1;this[offset+i]=value&255;while(--i>=0&&(mul*=256)){this[offset+i]=value/mul&255}return offset+byteLength};Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,255,0);this[offset]=value&255;return offset+1};Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);this[offset]=value&255;this[offset+1]=value>>>8;return offset+2};Buffer.prototype.writeUInt16BE=function writeUInt16BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,65535,0);this[offset]=value>>>8;this[offset+1]=value&255;return offset+2};Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value&255;return offset+4};Buffer.prototype.writeUInt32BE=function writeUInt32BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&255;return offset+4};Buffer.prototype.writeIntLE=function writeIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=0;var mul=1;var sub=0;this[offset]=value&255;while(++i>0)-sub&255}return offset+byteLength};Buffer.prototype.writeIntBE=function writeIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit)}var i=byteLength-1;var mul=1;var sub=0;this[offset+i]=value&255;while(--i>=0&&(mul*=256)){if(value<0&&sub===0&&this[offset+i+1]!==0){sub=1}this[offset+i]=(value/mul>>0)-sub&255}return offset+byteLength};Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(value<0)value=255+value+1;this[offset]=value&255;return offset+1};Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);this[offset]=value&255;this[offset+1]=value>>>8;return offset+2};Buffer.prototype.writeInt16BE=function writeInt16BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);this[offset]=value>>>8;this[offset+1]=value&255;return offset+2};Buffer.prototype.writeInt32LE=function writeInt32LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);this[offset]=value&255;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24;return offset+4};Buffer.prototype.writeInt32BE=function writeInt32BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,2147483647,-2147483648);if(value<0)value=4294967295+value+1;this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&255;return offset+4};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkIEEE754(buf,value,offset,4,34028234663852886e22,-34028234663852886e22)}ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}Buffer.prototype.writeFloatLE=function writeFloatLE(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert)};Buffer.prototype.writeFloatBE=function writeFloatBE(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert)};function writeDouble(buf,value,offset,littleEndian,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkIEEE754(buf,value,offset,8,17976931348623157e292,-17976931348623157e292)}ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}Buffer.prototype.writeDoubleLE=function writeDoubleLE(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert)};Buffer.prototype.writeDoubleBE=function writeDoubleBE(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.copy=function copy(target,targetStart,start,end){if(!Buffer.isBuffer(target))throw new TypeError("argument should be a Buffer");if(!start)start=0;if(!end&&end!==0)end=this.length;if(targetStart>=target.length)targetStart=target.length;if(!targetStart)targetStart=0;if(end>0&&end=this.length)throw new RangeError("Index out of range");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-targetStart=0;--i){target[i+targetStart]=this[i+start]}}else{Uint8Array.prototype.set.call(target,this.subarray(start,end),targetStart)}return len};Buffer.prototype.fill=function fill(val,start,end,encoding){if(typeof val==="string"){if(typeof start==="string"){encoding=start;start=0;end=this.length}else if(typeof end==="string"){encoding=end;end=this.length}if(encoding!==undefined&&typeof encoding!=="string"){throw new TypeError("encoding must be a string")}if(typeof encoding==="string"&&!Buffer.isEncoding(encoding)){throw new TypeError("Unknown encoding: "+encoding)}if(val.length===1){var code=val.charCodeAt(0);if(encoding==="utf8"&&code<128||encoding==="latin1"){val=code}}}else if(typeof val==="number"){val=val&255}if(start<0||this.length>>0;end=end===undefined?this.length:end>>>0;if(!val)val=0;var i;if(typeof val==="number"){for(i=start;i55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189)}leadSurrogate=null;if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point")}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i>8;lo=c%256;byteArray.push(lo);byteArray.push(hi)}return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name}function numberIsNaN(obj){return obj!==obj}},{"base64-js":5,ieee754:9}],7:[function(require,module,exports){(function(Buffer){function isArray(arg){if(Array.isArray){return Array.isArray(arg)}return objectToString(arg)==="[object Array]"}exports.isArray=isArray;function isBoolean(arg){return typeof arg==="boolean"}exports.isBoolean=isBoolean;function isNull(arg){return arg===null}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==="number"}exports.isNumber=isNumber;function isString(arg){return typeof arg==="string"}exports.isString=isString;function isSymbol(arg){return typeof arg==="symbol"}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0}exports.isUndefined=isUndefined;function isRegExp(re){return objectToString(re)==="[object RegExp]"}exports.isRegExp=isRegExp;function isObject(arg){return typeof arg==="object"&&arg!==null}exports.isObject=isObject;function isDate(d){return objectToString(d)==="[object Date]"}exports.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}exports.isError=isError;function isFunction(arg){return typeof arg==="function"}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==="boolean"||typeof arg==="number"||typeof arg==="string"||typeof arg==="symbol"||typeof arg==="undefined"}exports.isPrimitive=isPrimitive;exports.isBuffer=Buffer.isBuffer;function objectToString(o){return Object.prototype.toString.call(o)}}).call(this,{isBuffer:require("../../is-buffer/index.js")})},{"../../is-buffer/index.js":11}],8:[function(require,module,exports){var objectCreate=Object.create||objectCreatePolyfill;var objectKeys=Object.keys||objectKeysPolyfill;var bind=Function.prototype.bind||functionBindPolyfill;function EventEmitter(){if(!this._events||!Object.prototype.hasOwnProperty.call(this,"_events")){this._events=objectCreate(null);this._eventsCount=0}this._maxListeners=this._maxListeners||undefined}module.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._maxListeners=undefined;var defaultMaxListeners=10;var hasDefineProperty;try{var o={};if(Object.defineProperty)Object.defineProperty(o,"x",{value:0});hasDefineProperty=o.x===0}catch(err){hasDefineProperty=false}if(hasDefineProperty){Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:true,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!=="number"||arg<0||arg!==arg)throw new TypeError('"defaultMaxListeners" must be a positive number');defaultMaxListeners=arg}})}else{EventEmitter.defaultMaxListeners=defaultMaxListeners}EventEmitter.prototype.setMaxListeners=function setMaxListeners(n){if(typeof n!=="number"||n<0||isNaN(n))throw new TypeError('"n" argument must be a positive number');this._maxListeners=n;return this};function $getMaxListeners(that){if(that._maxListeners===undefined)return EventEmitter.defaultMaxListeners;return that._maxListeners}EventEmitter.prototype.getMaxListeners=function getMaxListeners(){return $getMaxListeners(this)};function emitNone(handler,isFn,self){if(isFn)handler.call(self);else{var len=handler.length;var listeners=arrayClone(handler,len);for(var i=0;i1)er=arguments[1];if(er instanceof Error){throw er}else{var err=new Error('Unhandled "error" event. ('+er+")");err.context=er;throw err}return false}handler=events[type];if(!handler)return false;var isFn=typeof handler==="function";len=arguments.length;switch(len){case 1:emitNone(handler,isFn,this);break;case 2:emitOne(handler,isFn,this,arguments[1]);break;case 3:emitTwo(handler,isFn,this,arguments[1],arguments[2]);break;case 4:emitThree(handler,isFn,this,arguments[1],arguments[2],arguments[3]);break;default:args=new Array(len-1);for(i=1;i0&&existing.length>m){existing.warned=true;var w=new Error("Possible EventEmitter memory leak detected. "+existing.length+' "'+String(type)+'" listeners '+"added. Use emitter.setMaxListeners() to "+"increase limit.");w.name="MaxListenersExceededWarning";w.emitter=target;w.type=type;w.count=existing.length;if(typeof console==="object"&&console.warn){console.warn("%s: %s",w.name,w.message)}}}}return target}EventEmitter.prototype.addListener=function addListener(type,listener){return _addListener(this,type,listener,false)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function prependListener(type,listener){return _addListener(this,type,listener,true)};function onceWrapper(){if(!this.fired){this.target.removeListener(this.type,this.wrapFn);this.fired=true;switch(arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:var args=new Array(arguments.length);for(var i=0;i=0;i--){if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener;position=i;break}}if(position<0)return this;if(position===0)list.shift();else spliceOne(list,position);if(list.length===1)events[type]=list[0];if(events.removeListener)this.emit("removeListener",type,originalListener||listener)}return this};EventEmitter.prototype.removeAllListeners=function removeAllListeners(type){var listeners,events,i;events=this._events;if(!events)return this;if(!events.removeListener){if(arguments.length===0){this._events=objectCreate(null);this._eventsCount=0}else if(events[type]){if(--this._eventsCount===0)this._events=objectCreate(null);else delete events[type]}return this}if(arguments.length===0){var keys=objectKeys(events);var key;for(i=0;i=0;i--){this.removeListener(type,listeners[i])}}return this};function _listeners(target,type,unwrap){var events=target._events;if(!events)return[];var evlistener=events[type];if(!evlistener)return[];if(typeof evlistener==="function")return unwrap?[evlistener.listener||evlistener]:[evlistener];return unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter.prototype.listeners=function listeners(type){return _listeners(this,type,true)};EventEmitter.prototype.rawListeners=function rawListeners(type){return _listeners(this,type,false)};EventEmitter.listenerCount=function(emitter,type){if(typeof emitter.listenerCount==="function"){return emitter.listenerCount(type)}else{return listenerCount.call(emitter,type)}};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(type){var events=this._events;if(events){var evlistener=events[type];if(typeof evlistener==="function"){return 1}else if(evlistener){return evlistener.length}}return 0}EventEmitter.prototype.eventNames=function eventNames(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function spliceOne(list,index){for(var i=index,k=i+1,n=list.length;k>1;var nBits=-7;var i=isLE?nBytes-1:0;var d=isLE?-1:1;var s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){}m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){}if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<>1;var rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i=isLE?0:nBytes-1;var d=isLE?1:-1;var s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8){}e=e<0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8){}buffer[offset+i-d]|=s*128}},{}],10:[function(require,module,exports){if(typeof Object.create==="function"){module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})}}else{module.exports=function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},{}],11:[function(require,module,exports){module.exports=function(obj){return obj!=null&&(isBuffer(obj)||isSlowBuffer(obj)||!!obj._isBuffer)};function isBuffer(obj){return!!obj.constructor&&typeof obj.constructor.isBuffer==="function"&&obj.constructor.isBuffer(obj)}function isSlowBuffer(obj){return typeof obj.readFloatLE==="function"&&typeof obj.slice==="function"&&isBuffer(obj.slice(0,0))}},{}],12:[function(require,module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return toString.call(arr)=="[object Array]"}},{}],13:[function(require,module,exports){(function(process){"use strict";if(!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){module.exports={nextTick:nextTick}}else{module.exports=process}function nextTick(fn,arg1,arg2,arg3){if(typeof fn!=="function"){throw new TypeError('"callback" argument must be a function')}var len=arguments.length;var args,i;switch(len){case 0:case 1:return process.nextTick(fn);case 2:return process.nextTick(function afterTickOne(){fn.call(null,arg1)});case 3:return process.nextTick(function afterTickTwo(){fn.call(null,arg1,arg2)});case 4:return process.nextTick(function afterTickThree(){fn.call(null,arg1,arg2,arg3)});default:args=new Array(len-1);i=0;while(i1){for(var i=1;i0){if(typeof chunk!=="string"&&!state.objectMode&&Object.getPrototypeOf(chunk)!==Buffer.prototype){chunk=_uint8ArrayToBuffer(chunk)}if(addToFront){if(state.endEmitted)stream.emit("error",new Error("stream.unshift() after end event"));else addChunk(stream,state,chunk,true)}else if(state.ended){stream.emit("error",new Error("stream.push() after EOF"))}else{state.reading=false;if(state.decoder&&!encoding){chunk=state.decoder.write(chunk);if(state.objectMode||chunk.length!==0)addChunk(stream,state,chunk,false);else maybeReadMore(stream,state)}else{addChunk(stream,state,chunk,false)}}}else if(!addToFront){state.reading=false}}return needMoreData(state)}function addChunk(stream,state,chunk,addToFront){if(state.flowing&&state.length===0&&!state.sync){stream.emit("data",chunk);stream.read(0)}else{state.length+=state.objectMode?1:chunk.length;if(addToFront)state.buffer.unshift(chunk);else state.buffer.push(chunk);if(state.needReadable)emitReadable(stream)}maybeReadMore(stream,state)}function chunkInvalid(state,chunk){var er;if(!_isUint8Array(chunk)&&typeof chunk!=="string"&&chunk!==undefined&&!state.objectMode){er=new TypeError("Invalid non-string/buffer chunk")}return er}function needMoreData(state){return!state.ended&&(state.needReadable||state.length=MAX_HWM){n=MAX_HWM}else{n--;n|=n>>>1;n|=n>>>2;n|=n>>>4;n|=n>>>8;n|=n>>>16;n++}return n}function howMuchToRead(n,state){if(n<=0||state.length===0&&state.ended)return 0;if(state.objectMode)return 1;if(n!==n){if(state.flowing&&state.length)return state.buffer.head.data.length;else return state.length}if(n>state.highWaterMark)state.highWaterMark=computeNewHighWaterMark(n);if(n<=state.length)return n;if(!state.ended){state.needReadable=true;return 0}return state.length}Readable.prototype.read=function(n){debug("read",n);n=parseInt(n,10);var state=this._readableState;var nOrig=n;if(n!==0)state.emittedReadable=false;if(n===0&&state.needReadable&&(state.length>=state.highWaterMark||state.ended)){debug("read: emitReadable",state.length,state.ended);if(state.length===0&&state.ended)endReadable(this);else emitReadable(this);return null}n=howMuchToRead(n,state);if(n===0&&state.ended){if(state.length===0)endReadable(this);return null}var doRead=state.needReadable;debug("need readable",doRead);if(state.length===0||state.length-n0)ret=fromList(n,state);else ret=null;if(ret===null){state.needReadable=true;n=0}else{state.length-=n}if(state.length===0){if(!state.ended)state.needReadable=true;if(nOrig!==n&&state.ended)endReadable(this)}if(ret!==null)this.emit("data",ret);return ret};function onEofChunk(stream,state){if(state.ended)return;if(state.decoder){var chunk=state.decoder.end();if(chunk&&chunk.length){state.buffer.push(chunk);state.length+=state.objectMode?1:chunk.length}}state.ended=true;emitReadable(stream)}function emitReadable(stream){var state=stream._readableState;state.needReadable=false;if(!state.emittedReadable){debug("emitReadable",state.flowing);state.emittedReadable=true;if(state.sync)pna.nextTick(emitReadable_,stream);else emitReadable_(stream)}}function emitReadable_(stream){debug("emit readable");stream.emit("readable");flow(stream)}function maybeReadMore(stream,state){if(!state.readingMore){state.readingMore=true;pna.nextTick(maybeReadMore_,stream,state)}}function maybeReadMore_(stream,state){var len=state.length;while(!state.reading&&!state.flowing&&!state.ended&&state.length1&&indexOf(state.pipes,dest)!==-1)&&!cleanedUp){debug("false write response, pause",src._readableState.awaitDrain);src._readableState.awaitDrain++;increasedAwaitDrain=true}src.pause()}}function onerror(er){debug("onerror",er);unpipe();dest.removeListener("error",onerror);if(EElistenerCount(dest,"error")===0)dest.emit("error",er)}prependListener(dest,"error",onerror);function onclose(){dest.removeListener("finish",onfinish);unpipe()}dest.once("close",onclose);function onfinish(){debug("onfinish");dest.removeListener("close",onclose);unpipe()}dest.once("finish",onfinish);function unpipe(){debug("unpipe");src.unpipe(dest)}dest.emit("pipe",src);if(!state.flowing){debug("pipe resume");src.resume()}return dest};function pipeOnDrain(src){return function(){var state=src._readableState;debug("pipeOnDrain",state.awaitDrain);if(state.awaitDrain)state.awaitDrain--;if(state.awaitDrain===0&&EElistenerCount(src,"data")){state.flowing=true;flow(src)}}}Readable.prototype.unpipe=function(dest){var state=this._readableState;var unpipeInfo={hasUnpiped:false};if(state.pipesCount===0)return this;if(state.pipesCount===1){if(dest&&dest!==state.pipes)return this;if(!dest)dest=state.pipes;state.pipes=null;state.pipesCount=0;state.flowing=false;if(dest)dest.emit("unpipe",this,unpipeInfo);return this}if(!dest){var dests=state.pipes;var len=state.pipesCount;state.pipes=null;state.pipesCount=0;state.flowing=false;for(var i=0;i=state.length){if(state.decoder)ret=state.buffer.join("");else if(state.buffer.length===1)ret=state.buffer.head.data;else ret=state.buffer.concat(state.length);state.buffer.clear()}else{ret=fromListPartial(n,state.buffer,state.decoder)}return ret}function fromListPartial(n,list,hasStrings){var ret;if(nstr.length?str.length:n;if(nb===str.length)ret+=str;else ret+=str.slice(0,n);n-=nb;if(n===0){if(nb===str.length){++c;if(p.next)list.head=p.next;else list.head=list.tail=null}else{list.head=p;p.data=str.slice(nb)}break}++c}list.length-=c;return ret}function copyFromBuffer(n,list){var ret=Buffer.allocUnsafe(n);var p=list.head;var c=1;p.data.copy(ret);n-=p.data.length;while(p=p.next){var buf=p.data;var nb=n>buf.length?buf.length:n;buf.copy(ret,ret.length-n,0,nb);n-=nb;if(n===0){if(nb===buf.length){++c;if(p.next)list.head=p.next;else list.head=list.tail=null}else{list.head=p;p.data=buf.slice(nb)}break}++c}list.length-=c;return ret}function endReadable(stream){var state=stream._readableState;if(state.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!state.endEmitted){state.ended=true;pna.nextTick(endReadableNT,state,stream)}}function endReadableNT(state,stream){if(!state.endEmitted&&state.length===0){state.endEmitted=true;stream.readable=false;stream.emit("end")}}function indexOf(xs,x){for(var i=0,l=xs.length;i-1?setImmediate:pna.nextTick;var Duplex;Writable.WritableState=WritableState;var util=require("core-util-is");util.inherits=require("inherits");var internalUtil={deprecate:require("util-deprecate")};var Stream=require("./internal/streams/stream");var Buffer=require("safe-buffer").Buffer;var OurUint8Array=global.Uint8Array||function(){};function _uint8ArrayToBuffer(chunk){return Buffer.from(chunk)}function _isUint8Array(obj){return Buffer.isBuffer(obj)||obj instanceof OurUint8Array}var destroyImpl=require("./internal/streams/destroy");util.inherits(Writable,Stream);function nop(){}function WritableState(options,stream){Duplex=Duplex||require("./_stream_duplex");options=options||{};var isDuplex=stream instanceof Duplex;this.objectMode=!!options.objectMode;if(isDuplex)this.objectMode=this.objectMode||!!options.writableObjectMode;var hwm=options.highWaterMark;var writableHwm=options.writableHighWaterMark;var defaultHwm=this.objectMode?16:16*1024;if(hwm||hwm===0)this.highWaterMark=hwm;else if(isDuplex&&(writableHwm||writableHwm===0))this.highWaterMark=writableHwm;else this.highWaterMark=defaultHwm;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var noDecode=options.decodeStrings===false;this.decodeStrings=!noDecode;this.defaultEncoding=options.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(er){onwrite(stream,er)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var current=this.bufferedRequest;var out=[];while(current){out.push(current);current=current.next}return out};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(_){}})();var realHasInstance;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){realHasInstance=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(object){if(realHasInstance.call(this,object))return true;if(this!==Writable)return false;return object&&object._writableState instanceof WritableState}})}else{realHasInstance=function(object){return object instanceof this}}function Writable(options){Duplex=Duplex||require("./_stream_duplex");if(!realHasInstance.call(Writable,this)&&!(this instanceof Duplex)){return new Writable(options)}this._writableState=new WritableState(options,this);this.writable=true;if(options){if(typeof options.write==="function")this._write=options.write;if(typeof options.writev==="function")this._writev=options.writev;if(typeof options.destroy==="function")this._destroy=options.destroy;if(typeof options.final==="function")this._final=options.final}Stream.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(stream,cb){var er=new Error("write after end");stream.emit("error",er);pna.nextTick(cb,er)}function validChunk(stream,state,chunk,cb){var valid=true;var er=false;if(chunk===null){er=new TypeError("May not write null values to stream")}else if(typeof chunk!=="string"&&chunk!==undefined&&!state.objectMode){er=new TypeError("Invalid non-string/buffer chunk")}if(er){stream.emit("error",er);pna.nextTick(cb,er);valid=false}return valid}Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState;var ret=false;var isBuf=!state.objectMode&&_isUint8Array(chunk);if(isBuf&&!Buffer.isBuffer(chunk)){chunk=_uint8ArrayToBuffer(chunk)}if(typeof encoding==="function"){cb=encoding;encoding=null}if(isBuf)encoding="buffer";else if(!encoding)encoding=state.defaultEncoding;if(typeof cb!=="function")cb=nop;if(state.ended)writeAfterEnd(this,cb);else if(isBuf||validChunk(this,state,chunk,cb)){state.pendingcb++;ret=writeOrBuffer(this,state,isBuf,chunk,encoding,cb)}return ret};Writable.prototype.cork=function(){var state=this._writableState;state.corked++};Writable.prototype.uncork=function(){var state=this._writableState;if(state.corked){state.corked--;if(!state.writing&&!state.corked&&!state.finished&&!state.bufferProcessing&&state.bufferedRequest)clearBuffer(this,state)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(encoding){if(typeof encoding==="string")encoding=encoding.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((encoding+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding;return this};function decodeChunk(state,chunk,encoding){if(!state.objectMode&&state.decodeStrings!==false&&typeof chunk==="string"){chunk=Buffer.from(chunk,encoding)}return chunk}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(stream,state,isBuf,chunk,encoding,cb){if(!isBuf){var newChunk=decodeChunk(state,chunk,encoding);if(chunk!==newChunk){isBuf=true;encoding="buffer";chunk=newChunk}}var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length0)this.tail.next=entry;else this.head=entry;this.tail=entry;++this.length};BufferList.prototype.unshift=function unshift(v){var entry={data:v,next:this.head};if(this.length===0)this.tail=entry;this.head=entry;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var ret=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return ret};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(s){if(this.length===0)return"";var p=this.head;var ret=""+p.data;while(p=p.next){ret+=s+p.data}return ret};BufferList.prototype.concat=function concat(n){if(this.length===0)return Buffer.alloc(0);if(this.length===1)return this.head.data;var ret=Buffer.allocUnsafe(n>>>0);var p=this.head;var i=0;while(p){copyBuffer(p.data,ret,i);i+=p.data.length;p=p.next}return ret};return BufferList}();if(util&&util.inspect&&util.inspect.custom){module.exports.prototype[util.inspect.custom]=function(){var obj=util.inspect({length:this.length});return this.constructor.name+" "+obj}}},{"safe-buffer":15,util:4}],24:[function(require,module,exports){"use strict";var pna=require("process-nextick-args");function destroy(err,cb){var _this=this;var readableDestroyed=this._readableState&&this._readableState.destroyed;var writableDestroyed=this._writableState&&this._writableState.destroyed;if(readableDestroyed||writableDestroyed){if(cb){cb(err)}else if(err&&(!this._writableState||!this._writableState.errorEmitted)){pna.nextTick(emitErrorNT,this,err)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(err||null,function(err){if(!cb&&err){pna.nextTick(emitErrorNT,_this,err);if(_this._writableState){_this._writableState.errorEmitted=true}}else if(cb){cb(err)}});return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(self,err){self.emit("error",err)}module.exports={destroy:destroy,undestroy:undestroy}},{"process-nextick-args":13}],25:[function(require,module,exports){module.exports=require("events").EventEmitter},{events:8}],26:[function(require,module,exports){module.exports=require("./readable").PassThrough},{"./readable":27}],27:[function(require,module,exports){exports=module.exports=require("./lib/_stream_readable.js");exports.Stream=exports;exports.Readable=exports;exports.Writable=require("./lib/_stream_writable.js");exports.Duplex=require("./lib/_stream_duplex.js");exports.Transform=require("./lib/_stream_transform.js");exports.PassThrough=require("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":18,"./lib/_stream_passthrough.js":19,"./lib/_stream_readable.js":20,"./lib/_stream_transform.js":21,"./lib/_stream_writable.js":22}],28:[function(require,module,exports){module.exports=require("./readable").Transform},{"./readable":27}],29:[function(require,module,exports){module.exports=require("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":22}],30:[function(require,module,exports){"use strict";var Buffer=require("safe-buffer").Buffer;var isEncoding=Buffer.isEncoding||function(encoding){encoding=""+encoding;switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(enc){if(!enc)return"utf8";var retried;while(true){switch(enc){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase();retried=true}}}function normalizeEncoding(enc){var nenc=_normalizeEncoding(enc);if(typeof nenc!=="string"&&(Buffer.isEncoding===isEncoding||!isEncoding(enc)))throw new Error("Unknown encoding: "+enc);return nenc||enc}exports.StringDecoder=StringDecoder;function StringDecoder(encoding){this.encoding=normalizeEncoding(encoding);var nb;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;nb=4;break;case"utf8":this.fillLast=utf8FillLast;nb=4;break;case"base64":this.text=base64Text;this.end=base64End;nb=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=Buffer.allocUnsafe(nb)}StringDecoder.prototype.write=function(buf){if(buf.length===0)return"";var r;var i;if(this.lastNeed){r=this.fillLast(buf);if(r===undefined)return"";i=this.lastNeed;this.lastNeed=0}else{i=0}if(i>5===6)return 2;else if(byte>>4===14)return 3;else if(byte>>3===30)return 4;return byte>>6===2?-1:-2}function utf8CheckIncomplete(self,buf,i){var j=buf.length-1;if(j=0){if(nb>0)self.lastNeed=nb-1;return nb}if(--j=0){if(nb>0)self.lastNeed=nb-2;return nb}if(--j=0){if(nb>0){if(nb===2)nb=0;else self.lastNeed=nb-3}return nb}return 0}function utf8CheckExtraBytes(self,buf,p){if((buf[0]&192)!==128){self.lastNeed=0;return"�"}if(self.lastNeed>1&&buf.length>1){if((buf[1]&192)!==128){self.lastNeed=1;return"�"}if(self.lastNeed>2&&buf.length>2){if((buf[2]&192)!==128){self.lastNeed=2;return"�"}}}}function utf8FillLast(buf){var p=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,buf,p);if(r!==undefined)return r;if(this.lastNeed<=buf.length){buf.copy(this.lastChar,p,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}buf.copy(this.lastChar,p,0,buf.length);this.lastNeed-=buf.length}function utf8Text(buf,i){var total=utf8CheckIncomplete(this,buf,i);if(!this.lastNeed)return buf.toString("utf8",i);this.lastTotal=total;var end=buf.length-(total-this.lastNeed);buf.copy(this.lastChar,0,end);return buf.toString("utf8",i,end)}function utf8End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed)return r+"�";return r}function utf16Text(buf,i){if((buf.length-i)%2===0){var r=buf.toString("utf16le",i);if(r){var c=r.charCodeAt(r.length-1);if(c>=55296&&c<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=buf[buf.length-1];return buf.toString("utf16le",i,buf.length-1)}function utf16End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed){var end=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,end)}return r}function base64Text(buf,i){var n=(buf.length-i)%3;if(n===0)return buf.toString("base64",i);this.lastNeed=3-n;this.lastTotal=3;if(n===1){this.lastChar[0]=buf[buf.length-1]}else{this.lastChar[0]=buf[buf.length-2];this.lastChar[1]=buf[buf.length-1]}return buf.toString("base64",i,buf.length-n)}function base64End(buf){var r=buf&&buf.length?this.write(buf):"";if(this.lastNeed)return r+this.lastChar.toString("base64",0,3-this.lastNeed);return r}function simpleWrite(buf){return buf.toString(this.encoding)}function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}},{"safe-buffer":15}],31:[function(require,module,exports){(function(process){var Stream=require("stream");exports=module.exports=through;through.through=through;function through(write,end,opts){write=write||function(data){this.queue(data)};end=end||function(){this.queue(null)};var ended=false,destroyed=false,buffer=[],_ended=false;var stream=new Stream;stream.readable=stream.writable=true;stream.paused=false;stream.autoDestroy=!(opts&&opts.autoDestroy===false);stream.write=function(data){write.call(this,data);return!stream.paused};function drain(){while(buffer.length&&!stream.paused){var data=buffer.shift();if(null===data)return stream.emit("end");else stream.emit("data",data)}}stream.queue=stream.push=function(data){if(_ended)return stream;if(data===null)_ended=true;buffer.push(data);drain();return stream};stream.on("end",function(){stream.readable=false;if(!stream.writable&&stream.autoDestroy)process.nextTick(function(){stream.destroy()})});function _end(){stream.writable=false;end.call(stream);if(!stream.readable&&stream.autoDestroy)stream.destroy()}stream.end=function(data){if(ended)return;ended=true;if(arguments.length)stream.write(data);_end();return stream};stream.destroy=function(){if(destroyed)return;destroyed=true;ended=true;buffer.length=0;stream.writable=stream.readable=false;stream.emit("close");return stream};stream.pause=function(){if(stream.paused)return;stream.paused=true;return stream};stream.resume=function(){if(stream.paused){stream.paused=false;stream.emit("resume")}drain();if(!stream.paused)stream.emit("drain");return stream};return stream}}).call(this,require("_process"))},{_process:14,stream:16}],32:[function(require,module,exports){(function(setImmediate,clearImmediate){var nextTick=require("process/browser.js").nextTick;var apply=Function.prototype.apply;var slice=Array.prototype.slice;var immediateIds={};var nextImmediateId=0;exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,window,arguments),clearTimeout)};exports.setInterval=function(){return new Timeout(apply.call(setInterval,window,arguments),clearInterval)};exports.clearTimeout=exports.clearInterval=function(timeout){timeout.close()};function Timeout(id,clearFn){this._id=id;this._clearFn=clearFn}Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(window,this._id)};exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId);item._idleTimeout=msecs};exports.unenroll=function(item){clearTimeout(item._idleTimeoutId);item._idleTimeout=-1};exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;if(msecs>=0){item._idleTimeoutId=setTimeout(function onTimeout(){if(item._onTimeout)item._onTimeout()},msecs)}};exports.setImmediate=typeof setImmediate==="function"?setImmediate:function(fn){var id=nextImmediateId++;var args=arguments.length<2?false:slice.call(arguments,1);immediateIds[id]=true;nextTick(function onNextTick(){if(immediateIds[id]){if(args){fn.apply(null,args)}else{fn.call(null)}exports.clearImmediate(id)}});return id};exports.clearImmediate=typeof clearImmediate==="function"?clearImmediate:function(id){delete immediateIds[id]}}).call(this,require("timers").setImmediate,require("timers").clearImmediate)},{"process/browser.js":14,timers:32}],33:[function(require,module,exports){(function(global){module.exports=deprecate;function deprecate(fn,msg){if(config("noDeprecation")){return fn}var warned=false;function deprecated(){if(!warned){if(config("throwDeprecation")){throw new Error(msg)}else if(config("traceDeprecation")){console.trace(msg)}else{console.warn(msg)}warned=true}return fn.apply(this,arguments)}return deprecated}function config(name){try{if(!global.localStorage)return false}catch(_){return false}var val=global.localStorage[name];if(null==val)return false;return String(val).toLowerCase()==="true"}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}]},{},[1])(1)}); diff --git a/node_modules/unbzip2-stream/index.js b/node_modules/unbzip2-stream/index.js index 217d11f..4333963 100644 --- a/node_modules/unbzip2-stream/index.js +++ b/node_modules/unbzip2-stream/index.js @@ -17,6 +17,7 @@ function unbzip2Stream() { if(!blockSize){ blockSize = bz2.header(bitReader); //console.error("got header of", blockSize); + streamCRC = 0; return true; }else{ var bufsize = 100000 * blockSize; @@ -78,12 +79,12 @@ function unbzip2Stream() { }, function end(x) { //console.error(x,'last compressing with', hasBytes, 'bytes in buffer'); - while (!broken && hasBytes > bitReader.bytesRead){ + while (!broken && bitReader && hasBytes > bitReader.bytesRead){ decompressAndQueue(this); } if (!broken) { if (streamCRC !== null) - stream.emit('error', new Error("input stream ended prematurely")); + this.emit('error', new Error("input stream ended prematurely")); this.queue(null); } } diff --git a/node_modules/unbzip2-stream/lib/bzip2.js b/node_modules/unbzip2-stream/lib/bzip2.js index 6968e23..6d51074 100644 --- a/node_modules/unbzip2-stream/lib/bzip2.js +++ b/node_modules/unbzip2-stream/lib/bzip2.js @@ -358,8 +358,6 @@ bzip2.decompress = function(bits, stream, buf, bufsize, streamCRC) { crc = (crc ^ (-1)) >>> 0; if ((crc|0) != (crcblock|0)) message.Error("Error in bzip2: crc32 do not match"); - if (streamCRC === null) - streamCRC = 0; streamCRC = (crc ^ ((streamCRC << 1) | (streamCRC >>> 31))) & 0xFFFFFFFF; return streamCRC; } diff --git a/node_modules/unbzip2-stream/package.json b/node_modules/unbzip2-stream/package.json index e11bbbd..e8e20a1 100644 --- a/node_modules/unbzip2-stream/package.json +++ b/node_modules/unbzip2-stream/package.json @@ -1,32 +1,25 @@ { - "_args": [ - [ - "unbzip2-stream@1.3.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], - "_from": "unbzip2-stream@1.3.3", - "_id": "unbzip2-stream@1.3.3", + "_from": "unbzip2-stream@1.4.0", + "_id": "unbzip2-stream@1.4.0", "_inBundle": false, - "_integrity": "sha512-fUlAF7U9Ah1Q6EieQ4x4zLNejrRvDWUYmxXUpN3uziFYCHapjWFaCAnreY9bGgxzaMCFAPPpYNng57CypwJVhg==", + "_integrity": "sha512-kVx7CDAsdBSWVf404Mw7oI9i09w5/mTT/Ruk+RWa64PLYKvsAucLLFHvQtnvjeADM4ZizxrvG5SHnF4Te4T2Cg==", "_location": "/unbzip2-stream", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "unbzip2-stream@1.3.3", + "raw": "unbzip2-stream@1.4.0", "name": "unbzip2-stream", "escapedName": "unbzip2-stream", - "rawSpec": "1.3.3", + "rawSpec": "1.4.0", "saveSpec": null, - "fetchSpec": "1.3.3" + "fetchSpec": "1.4.0" }, "_requiredBy": [ "/decompress-tarbz2" ], - "_resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.3.3.tgz", - "_spec": "1.3.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", + "_resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.0.tgz", + "_spec": "1.4.0", "author": { "name": "Jan Bölsche", "email": "jan@lagomorph.de" @@ -79,5 +72,5 @@ "prepare-long-test": "head -c 104857600 < /dev/urandom | tee test/fixtures/vmlinux.bin | bzip2 > test/fixtures/vmlinux.bin.bz2", "test": "tape test/*.js" }, - "version": "1.3.3" -} + "version": "1.4.0" +} \ No newline at end of file diff --git a/node_modules/underscore/package.json b/node_modules/underscore/package.json index dff6483..9fb8520 100644 --- a/node_modules/underscore/package.json +++ b/node_modules/underscore/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "underscore@1.8.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "underscore@1.8.3", "_id": "underscore@1.8.3", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", "_spec": "1.8.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Jeremy Ashkenas", "email": "jeremy@documentcloud.org" @@ -73,4 +66,4 @@ "test-node": "qunit-cli test/*.js" }, "version": "1.8.3" -} +} \ No newline at end of file diff --git a/node_modules/url-parse-lax/package.json b/node_modules/url-parse-lax/package.json index 8a81461..9b21ecf 100644 --- a/node_modules/url-parse-lax/package.json +++ b/node_modules/url-parse-lax/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "url-parse-lax@3.0.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "url-parse-lax@3.0.0", "_id": "url-parse-lax@3.0.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", "_spec": "3.0.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", @@ -74,4 +67,4 @@ "test": "xo && ava" }, "version": "3.0.0" -} +} \ No newline at end of file diff --git a/node_modules/url-to-options/package.json b/node_modules/url-to-options/package.json index 0371b48..8c61f66 100644 --- a/node_modules/url-to-options/package.json +++ b/node_modules/url-to-options/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "url-to-options@1.0.1", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "url-to-options@1.0.1", "_id": "url-to-options@1.0.1", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", "_spec": "1.0.1", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Steven Vachon", "email": "contact@svachon.com", @@ -63,4 +56,4 @@ "test": "node test.js" }, "version": "1.0.1" -} +} \ No newline at end of file diff --git a/node_modules/util-deprecate/package.json b/node_modules/util-deprecate/package.json index 77d221c..5694a3c 100644 --- a/node_modules/util-deprecate/package.json +++ b/node_modules/util-deprecate/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "util-deprecate@1.0.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "util-deprecate@1.0.2", "_id": "util-deprecate@1.0.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "_spec": "1.0.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Nathan Rajlich", "email": "nathan@tootallnate.net", @@ -56,4 +49,4 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "version": "1.0.2" -} +} \ No newline at end of file diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json index 39d10b1..f0cc4a7 100644 --- a/node_modules/uuid/package.json +++ b/node_modules/uuid/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "uuid@3.3.3", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "uuid@3.3.3", "_id": "uuid@3.3.3", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", "_spec": "3.3.3", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "bin": { "uuid": "./bin/uuid" }, @@ -96,4 +89,4 @@ "test": "mocha test/test.js" }, "version": "3.3.3" -} +} \ No newline at end of file diff --git a/node_modules/wrappy/package.json b/node_modules/wrappy/package.json index 678ed57..a6df87d 100644 --- a/node_modules/wrappy/package.json +++ b/node_modules/wrappy/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "wrappy@1.0.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "wrappy@1.0.2", "_id": "wrappy@1.0.2", "_inBundle": false, @@ -27,7 +21,6 @@ ], "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "_spec": "1.0.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -59,4 +52,4 @@ "test": "tap --coverage test/*.js" }, "version": "1.0.2" -} +} \ No newline at end of file diff --git a/node_modules/xtend/package.json b/node_modules/xtend/package.json index 8a184d1..8dc448c 100644 --- a/node_modules/xtend/package.json +++ b/node_modules/xtend/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "xtend@4.0.2", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "xtend@4.0.2", "_id": "xtend@4.0.2", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "_spec": "4.0.2", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Raynos", "email": "raynos2@gmail.com" @@ -86,4 +79,4 @@ ] }, "version": "4.0.2" -} +} \ No newline at end of file diff --git a/node_modules/yauzl/package.json b/node_modules/yauzl/package.json index c9a39e3..e2af8e0 100644 --- a/node_modules/yauzl/package.json +++ b/node_modules/yauzl/package.json @@ -1,10 +1,4 @@ { - "_args": [ - [ - "yauzl@2.10.0", - "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action" - ] - ], "_from": "yauzl@2.10.0", "_id": "yauzl@2.10.0", "_inBundle": false, @@ -26,7 +20,6 @@ ], "_resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", "_spec": "2.10.0", - "_where": "X:\\dev\\neard\\www\\github\\goreleaser\\goreleaser-action", "author": { "name": "Josh Wolfe", "email": "thejoshwolfe@gmail.com" @@ -68,4 +61,4 @@ "test-travis": "istanbul cover --report lcovonly test/test.js" }, "version": "2.10.0" -} +} \ No newline at end of file diff --git a/package.json b/package.json index 932fc28..404fd2d 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,6 @@ "directories": { "lib": "lib" }, - "scripts": { - "build": "tsc", - "test": "jest", - "format": "prettier --write **/*.ts", - "prune": "npm prune --production" - }, "repository": { "type": "git", "url": "git+https://github.com/goreleaser/goreleaser-action.git" @@ -41,5 +35,13 @@ "ts-jest": "^25.3.1", "typescript": "^3.8.3", "typescript-formatter": "^7.2.2" + }, + "scripts": { + "build-dep": "npm install -g removeNPMAbsolutePaths", + "build": "tsc", + "test": "jest", + "format": "prettier --write **/*.ts", + "format-check": "prettier --check **/*.ts", + "prune": "npm prune --production && removeNPMAbsolutePaths \"./\" --force --fields _where _args" } -} +} \ No newline at end of file