├── .idea
├── cloud-pay.iml
├── encodings.xml
├── misc.xml
├── modules.xml
└── vcs.xml
├── README.md
├── app.js
├── app.json
├── app.wxss
├── cloud
└── pay
│ ├── index.js
│ ├── node_modules
│ ├── .bin
│ │ ├── escodegen
│ │ ├── esgenerate
│ │ ├── esparse
│ │ ├── esvalidate
│ │ ├── mime
│ │ ├── mkdirp
│ │ ├── os-name
│ │ ├── osx-release
│ │ └── semver
│ ├── @types
│ │ └── node
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── base.d.ts
│ │ │ ├── index.d.ts
│ │ │ ├── inspector.d.ts
│ │ │ ├── package.json
│ │ │ └── ts3.2
│ │ │ └── index.d.ts
│ ├── address
│ │ ├── History.md
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── address.d.ts
│ │ │ └── address.js
│ │ └── package.json
│ ├── agent-base
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── patch-core.js
│ │ └── test
│ │ │ ├── ssl-cert-snakeoil.key
│ │ │ ├── ssl-cert-snakeoil.pem
│ │ │ └── test.js
│ ├── any-promise
│ │ ├── .jshintrc
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── implementation.d.ts
│ │ ├── implementation.js
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── loader.js
│ │ ├── optional.js
│ │ ├── package.json
│ │ ├── register-shim.js
│ │ ├── register.d.ts
│ │ ├── register.js
│ │ └── register
│ │ │ ├── bluebird.d.ts
│ │ │ ├── bluebird.js
│ │ │ ├── es6-promise.d.ts
│ │ │ ├── es6-promise.js
│ │ │ ├── lie.d.ts
│ │ │ ├── lie.js
│ │ │ ├── native-promise-only.d.ts
│ │ │ ├── native-promise-only.js
│ │ │ ├── pinkie.d.ts
│ │ │ ├── pinkie.js
│ │ │ ├── promise.d.ts
│ │ │ ├── promise.js
│ │ │ ├── q.d.ts
│ │ │ ├── q.js
│ │ │ ├── rsvp.d.ts
│ │ │ ├── rsvp.js
│ │ │ ├── vow.d.ts
│ │ │ ├── vow.js
│ │ │ ├── when.d.ts
│ │ │ └── when.js
│ ├── ast-types
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── def
│ │ │ ├── babel-core.d.ts
│ │ │ ├── babel-core.js
│ │ │ ├── babel.d.ts
│ │ │ ├── babel.js
│ │ │ ├── core.d.ts
│ │ │ ├── core.js
│ │ │ ├── es-proposals.d.ts
│ │ │ ├── es-proposals.js
│ │ │ ├── es6.d.ts
│ │ │ ├── es6.js
│ │ │ ├── es7.d.ts
│ │ │ ├── es7.js
│ │ │ ├── esprima.d.ts
│ │ │ ├── esprima.js
│ │ │ ├── flow.d.ts
│ │ │ ├── flow.js
│ │ │ ├── jsx.d.ts
│ │ │ ├── jsx.js
│ │ │ ├── type-annotations.d.ts
│ │ │ ├── type-annotations.js
│ │ │ ├── typescript.d.ts
│ │ │ └── typescript.js
│ │ ├── fork.d.ts
│ │ ├── fork.js
│ │ ├── gen
│ │ │ ├── builders.d.ts
│ │ │ ├── builders.js
│ │ │ ├── kinds.d.ts
│ │ │ ├── kinds.js
│ │ │ ├── namedTypes.d.ts
│ │ │ ├── namedTypes.js
│ │ │ ├── nodes.d.ts
│ │ │ ├── nodes.js
│ │ │ ├── visitor.d.ts
│ │ │ └── visitor.js
│ │ ├── lib
│ │ │ ├── equiv.d.ts
│ │ │ ├── equiv.js
│ │ │ ├── node-path.d.ts
│ │ │ ├── node-path.js
│ │ │ ├── path-visitor.d.ts
│ │ │ ├── path-visitor.js
│ │ │ ├── path.d.ts
│ │ │ ├── path.js
│ │ │ ├── scope.d.ts
│ │ │ ├── scope.js
│ │ │ ├── shared.d.ts
│ │ │ ├── shared.js
│ │ │ ├── types.d.ts
│ │ │ └── types.js
│ │ ├── main.d.ts
│ │ ├── main.js
│ │ ├── package.json
│ │ ├── tsconfig.json
│ │ ├── types.d.ts
│ │ └── types.js
│ ├── bytes
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── co
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── content-type
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── copy-to
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── core-util-is
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── float.patch
│ │ ├── lib
│ │ │ └── util.js
│ │ ├── package.json
│ │ └── test.js
│ ├── data-uri-to-buffer
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── test.js
│ ├── debug
│ │ ├── .coveralls.yml
│ │ ├── .eslintrc
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── Makefile
│ │ ├── README.md
│ │ ├── component.json
│ │ ├── karma.conf.js
│ │ ├── node.js
│ │ ├── package.json
│ │ └── src
│ │ │ ├── browser.js
│ │ │ ├── debug.js
│ │ │ ├── index.js
│ │ │ ├── inspector-log.js
│ │ │ └── node.js
│ ├── deep-is
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.markdown
│ │ ├── example
│ │ │ └── cmp.js
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── NaN.js
│ │ │ ├── cmp.js
│ │ │ └── neg-vs-pos-0.js
│ ├── default-user-agent
│ │ ├── History.md
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── degenerator
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── CHANGELOG.md
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── basic.expected.js
│ │ │ ├── basic.js
│ │ │ ├── get-example.expected.js
│ │ │ ├── get-example.js
│ │ │ ├── multiple.expected.js
│ │ │ ├── multiple.js
│ │ │ ├── pac-resolver-gh-16.expected.js
│ │ │ ├── pac-resolver-gh-16.js
│ │ │ ├── pac-resolver-gh-3.expected.js
│ │ │ ├── pac-resolver-gh-3.js
│ │ │ └── test.js
│ ├── depd
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ ├── lib
│ │ │ ├── browser
│ │ │ │ └── index.js
│ │ │ └── compat
│ │ │ │ ├── callsite-tostring.js
│ │ │ │ ├── event-listener-count.js
│ │ │ │ └── index.js
│ │ └── package.json
│ ├── destroy
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── digest-header
│ │ ├── .npmignore
│ │ ├── AUTHORS
│ │ ├── History.md
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ └── utility
│ │ │ │ ├── .npmignore
│ │ │ │ ├── AUTHORS
│ │ │ │ ├── History.md
│ │ │ │ ├── LICENSE.txt
│ │ │ │ ├── README.md
│ │ │ │ ├── benchmark
│ │ │ │ ├── date_YYYYMMDD.js
│ │ │ │ ├── date_format.js
│ │ │ │ ├── get_paramnames.js
│ │ │ │ └── md5.js
│ │ │ │ ├── index.js
│ │ │ │ ├── lib
│ │ │ │ └── utility.js
│ │ │ │ └── package.json
│ │ └── package.json
│ ├── ee-first
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── end-of-stream
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── es6-promise
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── auto.js
│ │ ├── dist
│ │ │ ├── es6-promise.auto.js
│ │ │ ├── es6-promise.auto.map
│ │ │ ├── es6-promise.auto.min.js
│ │ │ ├── es6-promise.auto.min.map
│ │ │ ├── es6-promise.js
│ │ │ ├── es6-promise.map
│ │ │ ├── es6-promise.min.js
│ │ │ └── es6-promise.min.map
│ │ ├── es6-promise.d.ts
│ │ ├── lib
│ │ │ ├── es6-promise.auto.js
│ │ │ ├── es6-promise.js
│ │ │ └── es6-promise
│ │ │ │ ├── -internal.js
│ │ │ │ ├── asap.js
│ │ │ │ ├── enumerator.js
│ │ │ │ ├── polyfill.js
│ │ │ │ ├── promise.js
│ │ │ │ ├── promise
│ │ │ │ ├── all.js
│ │ │ │ ├── race.js
│ │ │ │ ├── reject.js
│ │ │ │ └── resolve.js
│ │ │ │ ├── then.js
│ │ │ │ └── utils.js
│ │ └── package.json
│ ├── es6-promisify
│ │ ├── README.md
│ │ ├── dist
│ │ │ ├── promise.js
│ │ │ └── promisify.js
│ │ └── package.json
│ ├── escape-html
│ │ ├── LICENSE
│ │ ├── Readme.md
│ │ ├── index.js
│ │ └── package.json
│ ├── escodegen
│ │ ├── LICENSE.BSD
│ │ ├── README.md
│ │ ├── bin
│ │ │ ├── escodegen.js
│ │ │ └── esgenerate.js
│ │ ├── escodegen.js
│ │ └── package.json
│ ├── esprima
│ │ ├── ChangeLog
│ │ ├── LICENSE.BSD
│ │ ├── README.md
│ │ ├── bin
│ │ │ ├── esparse.js
│ │ │ └── esvalidate.js
│ │ ├── dist
│ │ │ └── esprima.js
│ │ └── package.json
│ ├── estraverse
│ │ ├── .babelrc
│ │ ├── .jshintrc
│ │ ├── LICENSE.BSD
│ │ ├── estraverse.js
│ │ ├── gulpfile.js
│ │ └── package.json
│ ├── esutils
│ │ ├── LICENSE.BSD
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── ast.js
│ │ │ ├── code.js
│ │ │ ├── keyword.js
│ │ │ └── utils.js
│ │ └── package.json
│ ├── extend-shallow
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── extend
│ │ ├── .editorconfig
│ │ ├── .eslintrc
│ │ ├── .jscs.json
│ │ ├── .travis.yml
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── component.json
│ │ ├── index.js
│ │ └── package.json
│ ├── fast-levenshtein
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── levenshtein.js
│ │ └── package.json
│ ├── file-uri-to-path
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── test.js
│ │ │ └── tests.json
│ ├── formstream
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── lib
│ │ │ └── formstream.js
│ │ └── package.json
│ ├── ftp
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── TODO
│ │ ├── lib
│ │ │ ├── connection.js
│ │ │ └── parser.js
│ │ ├── node_modules
│ │ │ └── readable-stream
│ │ │ │ ├── .npmignore
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── duplex.js
│ │ │ │ ├── float.patch
│ │ │ │ ├── lib
│ │ │ │ ├── _stream_duplex.js
│ │ │ │ ├── _stream_passthrough.js
│ │ │ │ ├── _stream_readable.js
│ │ │ │ ├── _stream_transform.js
│ │ │ │ └── _stream_writable.js
│ │ │ │ ├── package.json
│ │ │ │ ├── passthrough.js
│ │ │ │ ├── readable.js
│ │ │ │ ├── transform.js
│ │ │ │ └── writable.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── test-parser.js
│ │ │ └── test.js
│ ├── get-uri
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── data.js
│ │ ├── file.js
│ │ ├── ftp.js
│ │ ├── http.js
│ │ ├── https.js
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ ├── debug
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── dist
│ │ │ │ │ └── debug.js
│ │ │ │ ├── package.json
│ │ │ │ └── src
│ │ │ │ │ ├── browser.js
│ │ │ │ │ ├── common.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── node.js
│ │ │ └── ms
│ │ │ │ ├── index.js
│ │ │ │ ├── license.md
│ │ │ │ ├── package.json
│ │ │ │ └── readme.md
│ │ ├── notfound.js
│ │ ├── notmodified.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── data.js
│ │ │ ├── file.js
│ │ │ ├── ftp.js
│ │ │ ├── http.js
│ │ │ ├── https.js
│ │ │ ├── redirect.js
│ │ │ ├── server.crt
│ │ │ ├── server.key
│ │ │ └── test.js
│ ├── http-errors
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── http-proxy-agent
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ └── debug
│ │ │ │ ├── .coveralls.yml
│ │ │ │ ├── .eslintrc
│ │ │ │ ├── .npmignore
│ │ │ │ ├── .travis.yml
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── Makefile
│ │ │ │ ├── README.md
│ │ │ │ ├── karma.conf.js
│ │ │ │ ├── node.js
│ │ │ │ ├── package.json
│ │ │ │ └── src
│ │ │ │ ├── browser.js
│ │ │ │ ├── debug.js
│ │ │ │ ├── index.js
│ │ │ │ └── node.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── ssl-cert-snakeoil.key
│ │ │ ├── ssl-cert-snakeoil.pem
│ │ │ └── test.js
│ ├── https-proxy-agent
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ ├── debug
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── dist
│ │ │ │ │ └── debug.js
│ │ │ │ ├── node.js
│ │ │ │ ├── package.json
│ │ │ │ └── src
│ │ │ │ │ ├── browser.js
│ │ │ │ │ ├── common.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── node.js
│ │ │ └── ms
│ │ │ │ ├── index.js
│ │ │ │ ├── license.md
│ │ │ │ ├── package.json
│ │ │ │ └── readme.md
│ │ └── package.json
│ ├── humanize-ms
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── iconv-lite
│ │ ├── Changelog.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── encodings
│ │ │ ├── dbcs-codec.js
│ │ │ ├── dbcs-data.js
│ │ │ ├── index.js
│ │ │ ├── internal.js
│ │ │ ├── sbcs-codec.js
│ │ │ ├── sbcs-data-generated.js
│ │ │ ├── sbcs-data.js
│ │ │ ├── tables
│ │ │ │ ├── big5-added.json
│ │ │ │ ├── cp936.json
│ │ │ │ ├── cp949.json
│ │ │ │ ├── cp950.json
│ │ │ │ ├── eucjp.json
│ │ │ │ ├── gb18030-ranges.json
│ │ │ │ ├── gbk-added.json
│ │ │ │ └── shiftjis.json
│ │ │ ├── utf16.js
│ │ │ └── utf7.js
│ │ ├── lib
│ │ │ ├── bom-handling.js
│ │ │ ├── extend-node.js
│ │ │ ├── index.d.ts
│ │ │ ├── index.js
│ │ │ └── streams.js
│ │ └── package.json
│ ├── inherits
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── inherits.js
│ │ ├── inherits_browser.js
│ │ └── package.json
│ ├── ip
│ │ ├── .jscsrc
│ │ ├── .jshintrc
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── README.md
│ │ ├── lib
│ │ │ └── ip.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── api-test.js
│ ├── is-extendable
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── isarray
│ │ ├── README.md
│ │ ├── build
│ │ │ └── build.js
│ │ ├── component.json
│ │ ├── index.js
│ │ └── package.json
│ ├── levn
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── cast.js
│ │ │ ├── coerce.js
│ │ │ ├── index.js
│ │ │ ├── parse-string.js
│ │ │ └── parse.js
│ │ └── package.json
│ ├── lru-cache
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── mime
│ │ ├── .npmignore
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── cli.js
│ │ ├── mime.js
│ │ ├── package.json
│ │ ├── src
│ │ │ ├── build.js
│ │ │ └── test.js
│ │ └── types.json
│ ├── minimist
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── example
│ │ │ └── parse.js
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ └── test
│ │ │ ├── all_bool.js
│ │ │ ├── bool.js
│ │ │ ├── dash.js
│ │ │ ├── default_bool.js
│ │ │ ├── dotted.js
│ │ │ ├── kv_short.js
│ │ │ ├── long.js
│ │ │ ├── num.js
│ │ │ ├── parse.js
│ │ │ ├── parse_modified.js
│ │ │ ├── short.js
│ │ │ ├── stop_early.js
│ │ │ ├── unknown.js
│ │ │ └── whitespace.js
│ ├── mkdirp
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── bin
│ │ │ ├── cmd.js
│ │ │ └── usage.txt
│ │ ├── examples
│ │ │ └── pow.js
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ └── minimist
│ │ │ │ ├── .travis.yml
│ │ │ │ ├── LICENSE
│ │ │ │ ├── example
│ │ │ │ └── parse.js
│ │ │ │ ├── index.js
│ │ │ │ ├── package.json
│ │ │ │ ├── readme.markdown
│ │ │ │ └── test
│ │ │ │ ├── dash.js
│ │ │ │ ├── default_bool.js
│ │ │ │ ├── dotted.js
│ │ │ │ ├── long.js
│ │ │ │ ├── parse.js
│ │ │ │ ├── parse_modified.js
│ │ │ │ ├── short.js
│ │ │ │ └── whitespace.js
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ └── test
│ │ │ ├── chmod.js
│ │ │ ├── clobber.js
│ │ │ ├── mkdirp.js
│ │ │ ├── opts_fs.js
│ │ │ ├── opts_fs_sync.js
│ │ │ ├── perm.js
│ │ │ ├── perm_sync.js
│ │ │ ├── race.js
│ │ │ ├── rel.js
│ │ │ ├── return.js
│ │ │ ├── return_sync.js
│ │ │ ├── root.js
│ │ │ ├── sync.js
│ │ │ ├── umask.js
│ │ │ └── umask_sync.js
│ ├── ms
│ │ ├── index.js
│ │ ├── license.md
│ │ ├── package.json
│ │ └── readme.md
│ ├── mz
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── child_process.js
│ │ ├── crypto.js
│ │ ├── dns.js
│ │ ├── fs.js
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── readline.js
│ │ └── zlib.js
│ ├── netmask
│ │ ├── .npmignore
│ │ ├── README.md
│ │ ├── example
│ │ │ └── ipcalc.coffee
│ │ ├── lib
│ │ │ ├── netmask.coffee
│ │ │ └── netmask.js
│ │ ├── package.json
│ │ ├── test
│ │ │ ├── badnets.coffee
│ │ │ └── netmasks.coffee
│ │ └── tests
│ │ │ └── netmask.js
│ ├── object-assign
│ │ ├── index.js
│ │ ├── license
│ │ ├── package.json
│ │ └── readme.md
│ ├── once
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── once.js
│ │ └── package.json
│ ├── optionator
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── help.js
│ │ │ ├── index.js
│ │ │ └── util.js
│ │ └── package.json
│ ├── os-name
│ │ ├── cli.js
│ │ ├── index.js
│ │ ├── package.json
│ │ └── readme.md
│ ├── osx-release
│ │ ├── cli.js
│ │ ├── index.js
│ │ ├── license
│ │ ├── package.json
│ │ └── readme.md
│ ├── pac-proxy-agent
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ ├── debug
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── dist
│ │ │ │ │ └── debug.js
│ │ │ │ ├── node.js
│ │ │ │ ├── package.json
│ │ │ │ └── src
│ │ │ │ │ ├── browser.js
│ │ │ │ │ ├── common.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── node.js
│ │ │ └── ms
│ │ │ │ ├── index.js
│ │ │ │ ├── license.md
│ │ │ │ ├── package.json
│ │ │ │ └── readme.md
│ │ ├── package.json
│ │ └── test
│ │ │ ├── ssl-cert-snakeoil.key
│ │ │ ├── ssl-cert-snakeoil.pem
│ │ │ └── test.js
│ ├── pac-resolver
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── CHANGELOG.md
│ │ ├── README.md
│ │ ├── dateRange.js
│ │ ├── dnsDomainIs.js
│ │ ├── dnsDomainLevels.js
│ │ ├── dnsResolve.js
│ │ ├── index.js
│ │ ├── isInNet.js
│ │ ├── isPlainHostName.js
│ │ ├── isResolvable.js
│ │ ├── localHostOrDomainIs.js
│ │ ├── myIpAddress.js
│ │ ├── package.json
│ │ ├── shExpMatch.js
│ │ ├── test
│ │ │ ├── dnsDomainIs.js
│ │ │ ├── dnsDomainLevels.js
│ │ │ ├── dnsResolve.js
│ │ │ ├── isInNet.js
│ │ │ ├── isPlainHostName.js
│ │ │ ├── isResolvable.js
│ │ │ ├── localHostOrDomainIs.js
│ │ │ ├── myIpAddress.js
│ │ │ ├── shExpMatch.js
│ │ │ ├── test.js
│ │ │ ├── timeRange.js
│ │ │ └── weekdayRange.js
│ │ ├── timeRange.js
│ │ └── weekdayRange.js
│ ├── pause-stream
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ └── test
│ │ │ ├── index.js
│ │ │ └── pause-end.js
│ ├── prelude-ls
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── Func.js
│ │ │ ├── List.js
│ │ │ ├── Num.js
│ │ │ ├── Obj.js
│ │ │ ├── Str.js
│ │ │ └── index.js
│ │ └── package.json
│ ├── proxy-agent
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ ├── debug
│ │ │ │ ├── CHANGELOG.md
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── dist
│ │ │ │ │ └── debug.js
│ │ │ │ ├── node.js
│ │ │ │ ├── package.json
│ │ │ │ └── src
│ │ │ │ │ ├── browser.js
│ │ │ │ │ ├── common.js
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── node.js
│ │ │ └── ms
│ │ │ │ ├── index.js
│ │ │ │ ├── license.md
│ │ │ │ ├── package.json
│ │ │ │ └── readme.md
│ │ ├── package.json
│ │ └── test
│ │ │ ├── ssl-cert-snakeoil.key
│ │ │ ├── ssl-cert-snakeoil.pem
│ │ │ └── test.js
│ ├── proxy-from-env
│ │ ├── .jscsrc
│ │ ├── .jshintrc
│ │ ├── .npmignore
│ │ ├── .travis.yml
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test.js
│ ├── pseudomap
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── map.js
│ │ ├── package.json
│ │ ├── pseudomap.js
│ │ └── test
│ │ │ └── basic.js
│ ├── pump
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── test-browser.js
│ │ └── test-node.js
│ ├── qs
│ │ ├── .editorconfig
│ │ ├── .eslintignore
│ │ ├── .eslintrc
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── dist
│ │ │ └── qs.js
│ │ ├── lib
│ │ │ ├── formats.js
│ │ │ ├── index.js
│ │ │ ├── parse.js
│ │ │ ├── stringify.js
│ │ │ └── utils.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── .eslintrc
│ │ │ ├── index.js
│ │ │ ├── parse.js
│ │ │ ├── stringify.js
│ │ │ └── utils.js
│ ├── raw-body
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── package.json
│ ├── readable-stream
│ │ ├── CONTRIBUTING.md
│ │ ├── GOVERNANCE.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── errors-browser.js
│ │ ├── errors.js
│ │ ├── experimentalWarning.js
│ │ ├── lib
│ │ │ ├── _stream_duplex.js
│ │ │ ├── _stream_passthrough.js
│ │ │ ├── _stream_readable.js
│ │ │ ├── _stream_transform.js
│ │ │ ├── _stream_writable.js
│ │ │ └── internal
│ │ │ │ └── streams
│ │ │ │ ├── async_iterator.js
│ │ │ │ ├── buffer_list.js
│ │ │ │ ├── destroy.js
│ │ │ │ ├── end-of-stream.js
│ │ │ │ ├── pipeline.js
│ │ │ │ ├── state.js
│ │ │ │ ├── stream-browser.js
│ │ │ │ └── stream.js
│ │ ├── node_modules
│ │ │ └── string_decoder
│ │ │ │ ├── LICENSE
│ │ │ │ ├── README.md
│ │ │ │ ├── lib
│ │ │ │ └── string_decoder.js
│ │ │ │ └── package.json
│ │ ├── package.json
│ │ ├── readable-browser.js
│ │ └── readable.js
│ ├── safe-buffer
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ └── package.json
│ ├── safer-buffer
│ │ ├── LICENSE
│ │ ├── Porting-Buffer.md
│ │ ├── Readme.md
│ │ ├── dangerous.js
│ │ ├── package.json
│ │ ├── safer.js
│ │ └── tests.js
│ ├── sax
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ └── sax.js
│ │ └── package.json
│ ├── semver
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── bin
│ │ │ └── semver
│ │ ├── package.json
│ │ ├── range.bnf
│ │ └── semver.js
│ ├── setprototypeof
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── index.js
│ ├── smart-buffer
│ │ ├── .prettierrc.yaml
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── build
│ │ │ ├── smartbuffer.js
│ │ │ ├── smartbuffer.js.map
│ │ │ ├── utils.js
│ │ │ └── utils.js.map
│ │ ├── docs
│ │ │ ├── CHANGELOG.md
│ │ │ ├── README_v3.md
│ │ │ └── ROADMAP.md
│ │ ├── package.json
│ │ ├── typings
│ │ │ ├── smartbuffer.d.ts
│ │ │ └── utils.d.ts
│ │ └── yarn.lock
│ ├── socks-proxy-agent
│ │ ├── .travis.yml
│ │ ├── History.md
│ │ ├── README.md
│ │ ├── index.js
│ │ ├── node_modules
│ │ │ └── agent-base
│ │ │ │ ├── .travis.yml
│ │ │ │ ├── History.md
│ │ │ │ ├── README.md
│ │ │ │ ├── index.js
│ │ │ │ ├── package.json
│ │ │ │ ├── patch-core.js
│ │ │ │ └── test
│ │ │ │ ├── ssl-cert-snakeoil.key
│ │ │ │ ├── ssl-cert-snakeoil.pem
│ │ │ │ └── test.js
│ │ ├── package.json
│ │ ├── test
│ │ │ ├── ssl-cert-snakeoil.key
│ │ │ ├── ssl-cert-snakeoil.pem
│ │ │ └── test.js
│ │ └── yarn.lock
│ ├── socks
│ │ ├── .prettierrc.yaml
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── build
│ │ │ ├── client
│ │ │ │ ├── socksclient.js
│ │ │ │ └── socksclient.js.map
│ │ │ ├── common
│ │ │ │ ├── constants.js
│ │ │ │ ├── constants.js.map
│ │ │ │ ├── helpers.js
│ │ │ │ ├── helpers.js.map
│ │ │ │ ├── receivebuffer.js
│ │ │ │ ├── receivebuffer.js.map
│ │ │ │ ├── util.js
│ │ │ │ └── util.js.map
│ │ │ ├── index.js
│ │ │ └── index.js.map
│ │ ├── docs
│ │ │ ├── examples
│ │ │ │ ├── index.md
│ │ │ │ ├── javascript
│ │ │ │ │ ├── associateExample.md
│ │ │ │ │ ├── bindExample.md
│ │ │ │ │ └── connectExample.md
│ │ │ │ └── typescript
│ │ │ │ │ ├── associateExample.md
│ │ │ │ │ ├── bindExample.md
│ │ │ │ │ └── connectExample.md
│ │ │ ├── index.md
│ │ │ └── migratingFromV1.md
│ │ ├── package.json
│ │ ├── typings
│ │ │ ├── client
│ │ │ │ └── socksclient.d.ts
│ │ │ ├── common
│ │ │ │ ├── constants.d.ts
│ │ │ │ ├── helpers.d.ts
│ │ │ │ ├── receiveBuffer.d.ts
│ │ │ │ └── util.d.ts
│ │ │ └── index.d.ts
│ │ └── yarn.lock
│ ├── source-map
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── dist
│ │ │ ├── source-map.debug.js
│ │ │ ├── source-map.js
│ │ │ ├── source-map.min.js
│ │ │ └── source-map.min.js.map
│ │ ├── lib
│ │ │ ├── array-set.js
│ │ │ ├── base64-vlq.js
│ │ │ ├── base64.js
│ │ │ ├── binary-search.js
│ │ │ ├── mapping-list.js
│ │ │ ├── quick-sort.js
│ │ │ ├── source-map-consumer.js
│ │ │ ├── source-map-generator.js
│ │ │ ├── source-node.js
│ │ │ └── util.js
│ │ ├── package.json
│ │ ├── source-map.d.ts
│ │ └── source-map.js
│ ├── statuses
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── codes.json
│ │ ├── index.js
│ │ └── package.json
│ ├── string_decoder
│ │ ├── .npmignore
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── tenpay
│ │ ├── .editorconfig
│ │ ├── .eslintrc.yml
│ │ ├── .travis.yml
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── index.js
│ │ │ └── util.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── index.js
│ ├── thenify-all
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── thenify
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── through
│ │ ├── .travis.yml
│ │ ├── LICENSE.APACHE2
│ │ ├── LICENSE.MIT
│ │ ├── index.js
│ │ ├── package.json
│ │ ├── readme.markdown
│ │ └── test
│ │ │ ├── async.js
│ │ │ ├── auto-destroy.js
│ │ │ ├── buffering.js
│ │ │ ├── end.js
│ │ │ └── index.js
│ ├── thunkify
│ │ ├── .npmignore
│ │ ├── History.md
│ │ ├── Makefile
│ │ ├── Readme.md
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ └── index.js
│ ├── toidentifier
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── type-check
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── check.js
│ │ │ ├── index.js
│ │ │ └── parse-type.js
│ │ └── package.json
│ ├── unescape
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── unpipe
│ │ ├── HISTORY.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── index.js
│ │ └── package.json
│ ├── urllib
│ │ ├── History.md
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── detect_proxy_agent.js
│ │ │ ├── get_proxy_from_uri.js
│ │ │ ├── httpclient.js
│ │ │ ├── httpclient2.js
│ │ │ ├── index.d.ts
│ │ │ ├── index.js
│ │ │ └── urllib.js
│ │ └── package.json
│ ├── util-deprecate
│ │ ├── History.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── browser.js
│ │ ├── node.js
│ │ └── package.json
│ ├── utility
│ │ ├── History.md
│ │ ├── LICENSE.txt
│ │ ├── README.md
│ │ ├── index.d.ts
│ │ ├── lib
│ │ │ ├── array.js
│ │ │ ├── crypto.js
│ │ │ ├── date.js
│ │ │ ├── function.js
│ │ │ ├── json.js
│ │ │ ├── number.js
│ │ │ ├── object.js
│ │ │ ├── optimize.js
│ │ │ ├── polyfill.js
│ │ │ ├── string.js
│ │ │ ├── utility.js
│ │ │ └── web.js
│ │ └── package.json
│ ├── win-release
│ │ ├── index.js
│ │ ├── license
│ │ ├── package.json
│ │ └── readme.md
│ ├── wordwrap
│ │ ├── LICENSE
│ │ ├── README.markdown
│ │ ├── example
│ │ │ ├── center.js
│ │ │ └── meat.js
│ │ ├── index.js
│ │ ├── package.json
│ │ └── test
│ │ │ ├── break.js
│ │ │ ├── idleness.txt
│ │ │ └── wrap.js
│ ├── wrappy
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── package.json
│ │ └── wrappy.js
│ ├── xml2js
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── bom.js
│ │ │ ├── builder.js
│ │ │ ├── defaults.js
│ │ │ ├── parser.js
│ │ │ ├── processors.js
│ │ │ └── xml2js.js
│ │ └── package.json
│ ├── xmlbuilder
│ │ ├── .npmignore
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── lib
│ │ │ ├── Utility.js
│ │ │ ├── XMLAttribute.js
│ │ │ ├── XMLCData.js
│ │ │ ├── XMLComment.js
│ │ │ ├── XMLDTDAttList.js
│ │ │ ├── XMLDTDElement.js
│ │ │ ├── XMLDTDEntity.js
│ │ │ ├── XMLDTDNotation.js
│ │ │ ├── XMLDeclaration.js
│ │ │ ├── XMLDocType.js
│ │ │ ├── XMLDocument.js
│ │ │ ├── XMLDocumentCB.js
│ │ │ ├── XMLElement.js
│ │ │ ├── XMLNode.js
│ │ │ ├── XMLProcessingInstruction.js
│ │ │ ├── XMLRaw.js
│ │ │ ├── XMLStreamWriter.js
│ │ │ ├── XMLStringWriter.js
│ │ │ ├── XMLStringifier.js
│ │ │ ├── XMLText.js
│ │ │ ├── XMLWriterBase.js
│ │ │ └── index.js
│ │ └── package.json
│ ├── xregexp
│ │ ├── .npmignore
│ │ ├── MIT-LICENSE.txt
│ │ ├── README.md
│ │ ├── package.json
│ │ ├── tests
│ │ │ ├── node-qunit.js
│ │ │ └── tests.js
│ │ └── xregexp-all.js
│ └── yallist
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── iterator.js
│ │ ├── package.json
│ │ └── yallist.js
│ ├── package-lock.json
│ └── package.json
├── pages
└── pay
│ ├── pay.js
│ ├── pay.json
│ ├── pay.wxml
│ └── pay.wxss
├── project.config.json
└── sitemap.json
/.idea/cloud-pay.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/encodings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/app.js:
--------------------------------------------------------------------------------
1 | //app.js
2 | App({
3 | onLaunch: function () {
4 | wx.cloud.init({
5 | env:"prod-ayrkn"
6 | })
7 | }
8 | })
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/pay/pay"
4 | ],
5 | "window": {
6 | "backgroundTextStyle": "light",
7 | "navigationBarBackgroundColor": "#fff",
8 | "navigationBarTitleText": "WeChat",
9 | "navigationBarTextStyle": "black"
10 | },
11 | "sitemapLocation": "sitemap.json"
12 | }
--------------------------------------------------------------------------------
/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | .container {
3 | height: 100%;
4 | display: flex;
5 | flex-direction: column;
6 | align-items: center;
7 | justify-content: space-between;
8 | padding: 200rpx 0;
9 | box-sizing: border-box;
10 | }
11 |
--------------------------------------------------------------------------------
/cloud/pay/index.js:
--------------------------------------------------------------------------------
1 | //云开发实现支付
2 | const cloud = require('wx-server-sdk')
3 | cloud.init();
4 |
5 | //1,引入支付的三方依赖
6 | const tenpay = require('tenpay');
7 | //2,配置支付信息
8 | const config = {
9 | appid: '你的小程序appid', //
10 | mchid: '你的微信商户号', //
11 | partnerKey: '你的微信支付安全密钥', //
12 | notify_url: 'https://mp.weixin.qq.com', //支付回调网址,这里可以先随意填一个网址
13 | spbill_create_ip: '127.0.0.1'
14 | };
15 |
16 | exports.main = async(event, context) => {
17 | const wxContext = cloud.getWXContext()
18 | let {
19 | orderid,
20 | money
21 | } = event;
22 | //3,初始化支付
23 | const api = tenpay.init(config);
24 |
25 | let result = await api.getPayParams({
26 | out_trade_no: orderid,
27 | body: '商品简单描述',
28 | total_fee: money, //订单金额(分),
29 | openid: wxContext.OPENID //付款用户的openid
30 | });
31 | return result;
32 | }
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/escodegen:
--------------------------------------------------------------------------------
1 | ../escodegen/bin/escodegen.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/esgenerate:
--------------------------------------------------------------------------------
1 | ../escodegen/bin/esgenerate.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/esparse:
--------------------------------------------------------------------------------
1 | ../esprima/bin/esparse.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/esvalidate:
--------------------------------------------------------------------------------
1 | ../esprima/bin/esvalidate.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/mime:
--------------------------------------------------------------------------------
1 | ../mime/cli.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/mkdirp:
--------------------------------------------------------------------------------
1 | ../mkdirp/bin/cmd.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/os-name:
--------------------------------------------------------------------------------
1 | ../os-name/cli.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/osx-release:
--------------------------------------------------------------------------------
1 | ../osx-release/cli.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/.bin/semver:
--------------------------------------------------------------------------------
1 | ../semver/bin/semver
--------------------------------------------------------------------------------
/cloud/pay/node_modules/@types/node/ts3.2/index.d.ts:
--------------------------------------------------------------------------------
1 | // NOTE: These definitions support NodeJS and TypeScript 3.2.
2 |
3 | // NOTE: TypeScript version-specific augmentations can be found in the following paths:
4 | // - ~/base.d.ts - Shared definitions common to all TypeScript versions
5 | // - ~/index.d.ts - Definitions specific to TypeScript 2.1
6 | // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2
7 |
8 | // Reference required types from the default lib:
9 | ///
10 |
11 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
12 | // tslint:disable-next-line:no-bad-reference
13 | ///
14 |
15 | // TypeScript 3.2-specific augmentations:
16 | declare module "util" {
17 | namespace inspect {
18 | const custom: unique symbol;
19 | }
20 | namespace promisify {
21 | const custom: unique symbol;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/address/lib/address.d.ts:
--------------------------------------------------------------------------------
1 | namespace address {
2 | function ip(interfaceName?: string): string
3 |
4 | function ipv6(interfaceName?: string): string
5 |
6 | function mac(callback: (err: Error, addr: string) => void): void
7 | function mac(interfaceName: string, callback: (err: Error, addr: string) => void): void
8 |
9 | function dns(callback: (err: Error, servers: string[]) => void): void
10 | function dns(filePath: string, callback: (err: Error, servers: string[]) => void): void
11 | }
12 |
13 | function address(callback: (err: Error, addr: { ip: string, ipv6: string, mac: string }) => void): void
14 | function address(interfaceName: string, callback: (err: Error, addr: { ip: string, ipv6: string, mac: string }) => void): void
15 |
16 | export = address
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/agent-base/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "4"
7 | - "5"
8 | - "6"
9 | - "7"
10 | - "8"
11 | - "9"
12 | - "10"
13 |
14 | install:
15 | - PATH="`npm bin`:`npm bin -g`:$PATH"
16 | # Install dependencies and build
17 | - npm install
18 |
19 | script:
20 | # Output useful info for debugging
21 | - node --version
22 | - npm --version
23 | # Run tests
24 | - npm test
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/agent-base/test/ssl-cert-snakeoil.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICWwIBAAKBgQCzURxIqzer0ACAbX/lHdsn4Gd9PLKrf7EeDYfIdV0HZKPD8WDr
3 | bBx2/fBu0OW2sjnzv/SVZbJ0DAuPE/p0+eT0qb2qC10iz9iTD7ribd7gxhirVb8y
4 | b3fBjXsxc8V8p4Ny1LcvNSqCjwUbJqdRogfoJeTiqPM58z5sNzuv5iq7iwIDAQAB
5 | AoGAPMQy4olrP0UotlzlJ36bowLP70ffgHCwU+/f4NWs5fF78c3du0oSx1w820Dd
6 | Z7E0JF8bgnlJJTxjumPZz0RUCugrEHBKJmzEz3cxF5E3+7NvteZcjKn9D67RrM5x
7 | 1/uSZ9cqKE9cYvY4fSuHx18diyZ4axR/wB1Pea2utjjDM+ECQQDb9ZbmmaWMiRpQ
8 | 5Up+loxP7BZNPsEVsm+DVJmEFbaFgGfncWBqSIqnPNjMwTwj0OigTwCAEGPkfRVW
9 | T0pbYWCxAkEA0LK7SCTwzyDmhASUalk0x+3uCAA6ryFdwJf/wd8TRAvVOmkTEldX
10 | uJ7ldLvfrONYO3v56uKTU/SoNdZYzKtO+wJAX2KM4ctXYy5BXztPpr2acz4qHa1N
11 | Bh+vBAC34fOYhyQ76r3b1btHhWZ5jbFuZwm9F2erC94Ps5IaoqcX07DSwQJAPKGw
12 | h2U0EPkd/3zVIZCJJQya+vgWFIs9EZcXVtvYXQyTBkVApTN66MhBIYjzkub5205J
13 | bVQmOV37AKklY1DhwQJAA1wos0cYxro02edzatxd0DIR2r4qqOqLkw6BhYHhq6HJ
14 | ZvIcQkHqdSXzdETFc01I1znDGGIrJHcnvKWgBPoEUg==
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/agent-base/test/ssl-cert-snakeoil.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIB1TCCAT4CCQDV5mPlzm9+izANBgkqhkiG9w0BAQUFADAvMS0wKwYDVQQDEyQ3
3 | NTI3YmQ3Ny1hYjNlLTQ3NGItYWNlNy1lZWQ2MDUzOTMxZTcwHhcNMTUwNzA2MjI0
4 | NTA3WhcNMjUwNzAzMjI0NTA3WjAvMS0wKwYDVQQDEyQ3NTI3YmQ3Ny1hYjNlLTQ3
5 | NGItYWNlNy1lZWQ2MDUzOTMxZTcwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
6 | ALNRHEirN6vQAIBtf+Ud2yfgZ308sqt/sR4Nh8h1XQdko8PxYOtsHHb98G7Q5bay
7 | OfO/9JVlsnQMC48T+nT55PSpvaoLXSLP2JMPuuJt3uDGGKtVvzJvd8GNezFzxXyn
8 | g3LUty81KoKPBRsmp1GiB+gl5OKo8znzPmw3O6/mKruLAgMBAAEwDQYJKoZIhvcN
9 | AQEFBQADgYEACzoHUF8UV2Z6541Q2wKEA0UFUzmUjf/E1XwBO+1P15ZZ64uw34B4
10 | 1RwMPtAo9RY/PmICTWtNxWGxkzwb2JtDWtnxVER/lF8k2XcXPE76fxTHJF/BKk9J
11 | QU8OTD1dd9gHCBviQB9TqntRZ5X7axjtuWjb2umY+owBYzAHZkp1HKI=
12 | -----END CERTIFICATE-----
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "node":true,
3 | "strict":true
4 | }
5 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/.npmignore:
--------------------------------------------------------------------------------
1 | .git*
2 | test/
3 | test-browser/
4 | build/
5 | .travis.yml
6 | *.swp
7 | Makefile
8 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (C) 2014-2016 Kevin Beaty
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/implementation.d.ts:
--------------------------------------------------------------------------------
1 | declare var implementation: string;
2 |
3 | export = implementation;
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/implementation.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./register')().implementation
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./register')().Promise
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/optional.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | try {
3 | module.exports = require('./register')().Promise || null
4 | } catch(e) {
5 | module.exports = null
6 | }
7 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register-shim.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | module.exports = require('./loader')(window, loadImplementation)
3 |
4 | /**
5 | * Browser specific loadImplementation. Always uses `window.Promise`
6 | *
7 | * To register a custom implementation, must register with `Promise` option.
8 | */
9 | function loadImplementation(){
10 | if(typeof window.Promise === 'undefined'){
11 | throw new Error("any-promise browser requires a polyfill or explicit registration"+
12 | " e.g: require('any-promise/register/bluebird')")
13 | }
14 | return {
15 | Promise: window.Promise,
16 | implementation: 'window.Promise'
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register.d.ts:
--------------------------------------------------------------------------------
1 | import Promise = require('./index');
2 |
3 | declare function register (module?: string, options?: register.Options): register.Register;
4 |
5 | declare namespace register {
6 | export interface Register {
7 | Promise: typeof Promise;
8 | implementation: string;
9 | }
10 |
11 | export interface Options {
12 | Promise?: typeof Promise;
13 | global?: boolean
14 | }
15 | }
16 |
17 | export = register;
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/bluebird.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/bluebird.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('bluebird', {Promise: require('bluebird')})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/es6-promise.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/es6-promise.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('es6-promise', {Promise: require('es6-promise').Promise})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/lie.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/lie.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('lie', {Promise: require('lie')})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/native-promise-only.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/native-promise-only.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('native-promise-only', {Promise: require('native-promise-only')})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/pinkie.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/pinkie.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('pinkie', {Promise: require('pinkie')})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/promise.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/promise.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('promise', {Promise: require('promise')})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/q.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/q.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('q', {Promise: require('q').Promise})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/rsvp.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/rsvp.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('rsvp', {Promise: require('rsvp').Promise})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/vow.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/vow.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('vow', {Promise: require('vow').Promise})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/when.d.ts:
--------------------------------------------------------------------------------
1 | export {}
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/any-promise/register/when.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | require('../register')('when', {Promise: require('when').Promise})
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "12"
4 | - "11"
5 | - "10"
6 | - "9"
7 | - "8"
8 | - "7"
9 | - "6"
10 |
11 | sudo: false
12 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/babel-core.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/babel.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/babel.js:
--------------------------------------------------------------------------------
1 | "use strict";;
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
4 | };
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | var babel_core_1 = __importDefault(require("./babel-core"));
7 | var flow_1 = __importDefault(require("./flow"));
8 | function default_1(fork) {
9 | fork.use(babel_core_1.default);
10 | fork.use(flow_1.default);
11 | }
12 | exports.default = default_1;
13 | module.exports = exports["default"];
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/core.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/es-proposals.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/es6.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/es7.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/esprima.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/flow.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/jsx.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/type-annotations.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Type annotation defs shared between Flow and TypeScript.
3 | * These defs could not be defined in ./flow.ts or ./typescript.ts directly
4 | * because they use the same name.
5 | */
6 | import { Fork } from "../types";
7 | export default function (fork: Fork): void;
8 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/def/typescript.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): void;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/gen/builders.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/gen/kinds.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/gen/namedTypes.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | var namedTypes;
4 | (function (namedTypes) {
5 | })(namedTypes = exports.namedTypes || (exports.namedTypes = {}));
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/gen/nodes.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/gen/visitor.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/lib/equiv.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): {
3 | (a: any, b: any, problemPath?: any): boolean;
4 | assert(a: any, b: any): void;
5 | };
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/lib/node-path.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | import { ASTNode } from "./types";
3 | import { Path } from "./path";
4 | import { Scope } from "./scope";
5 | export interface NodePath extends Path {
6 | node: N;
7 | parent: any;
8 | scope: any;
9 | replace: Path['replace'];
10 | prune(...args: any[]): any;
11 | _computeNode(): any;
12 | _computeParent(): any;
13 | _computeScope(): Scope | null;
14 | getValueProperty(name: any): any;
15 | needsParens(assumeExpressionContext?: boolean): boolean;
16 | canBeFirstInStatement(): boolean;
17 | firstInStatement(): boolean;
18 | }
19 | export interface NodePathConstructor {
20 | new (value: any, parentPath?: any, name?: any): NodePath;
21 | }
22 | export default function nodePathPlugin(fork: Fork): NodePathConstructor;
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/lib/path.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | import { ASTNode } from "./types";
3 | export interface Path {
4 | value: V;
5 | parentPath: any;
6 | name: any;
7 | __childCache: object | null;
8 | getValueProperty(name: any): any;
9 | get(...names: any[]): any;
10 | each(callback: any, context: any): any;
11 | map(callback: any, context: any): any;
12 | filter(callback: any, context: any): any;
13 | shift(): any;
14 | unshift(...args: any[]): any;
15 | push(...args: any[]): any;
16 | pop(): any;
17 | insertAt(index: number, ...args: any[]): any;
18 | insertBefore(...args: any[]): any;
19 | insertAfter(...args: any[]): any;
20 | replace(replacement?: ASTNode, ...args: ASTNode[]): any;
21 | }
22 | export interface PathConstructor {
23 | new (value: any, parentPath?: any, name?: any): Path;
24 | }
25 | export default function pathPlugin(fork: Fork): PathConstructor;
26 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/lib/scope.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export interface Scope {
3 | path: any;
4 | node: any;
5 | isGlobal: boolean;
6 | depth: number;
7 | parent: any;
8 | bindings: any;
9 | types: any;
10 | didScan: boolean;
11 | declares(name: any): any;
12 | declaresType(name: any): any;
13 | declareTemporary(prefix?: any): any;
14 | injectTemporary(identifier: any, init: any): any;
15 | scan(force?: any): any;
16 | getBindings(): any;
17 | getTypes(): any;
18 | lookup(name: any): any;
19 | lookupType(name: any): any;
20 | getGlobalScope(): Scope;
21 | }
22 | export interface ScopeConstructor {
23 | new (path: any, parentScope: any): Scope;
24 | isEstablishedBy(node: any): any;
25 | }
26 | export default function scopePlugin(fork: Fork): ScopeConstructor;
27 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/lib/shared.d.ts:
--------------------------------------------------------------------------------
1 | import { Fork } from "../types";
2 | export default function (fork: Fork): {
3 | geq: (than: any) => import("./types").Type<{}>;
4 | defaults: {
5 | "null": () => null;
6 | "emptyArray": () => never[];
7 | "false": () => boolean;
8 | "true": () => boolean;
9 | "undefined": () => void;
10 | "use strict": () => string;
11 | };
12 | isPrimitive: import("./types").Type<{}>;
13 | };
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "module": "commonjs",
5 | "declaration": true,
6 | "rootDir": ".",
7 | "strict": true,
8 | "noUnusedLocals": true,
9 | "noUnusedParameters": true,
10 | "noImplicitReturns": true,
11 | "moduleResolution": "node",
12 | "esModuleInterop": true,
13 | "stripInternal": true,
14 | "lib": ["es2015"]
15 | },
16 | "exclude": [
17 | "node_modules",
18 | "test/data"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/types.d.ts:
--------------------------------------------------------------------------------
1 | export declare type Fork = {
2 | use(plugin: Plugin): T;
3 | };
4 | export declare type Plugin = (fork: Fork) => T;
5 | export declare type Def = Plugin;
6 | export declare type Omit = Pick>;
7 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ast-types/types.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/content-type/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.4 / 2017-09-11
2 | ==================
3 |
4 | * perf: skip parameter parsing when no parameters
5 |
6 | 1.0.3 / 2017-09-10
7 | ==================
8 |
9 | * perf: remove argument reassignment
10 |
11 | 1.0.2 / 2016-05-09
12 | ==================
13 |
14 | * perf: enable strict mode
15 |
16 | 1.0.1 / 2015-02-13
17 | ==================
18 |
19 | * Improve missing `Content-Type` header error message
20 |
21 | 1.0.0 / 2015-02-01
22 | ==================
23 |
24 | * Initial implementation, derived from `media-typer@0.3.0`
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/core-util-is/README.md:
--------------------------------------------------------------------------------
1 | # core-util-is
2 |
3 | The `util.is*` functions introduced in Node v0.12.
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/data-uri-to-buffer/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "1"
7 | - "2"
8 | - "3"
9 | - "4"
10 | - "5"
11 | - "6"
12 | - "7"
13 | - "8"
14 |
15 | install:
16 | - PATH="`npm bin`:`npm bin -g`:$PATH"
17 | # Install dependencies and build
18 | - npm install
19 |
20 | script:
21 | # Output useful info for debugging
22 | - node --version
23 | - npm --version
24 | # Run tests
25 | - npm test
26 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/data-uri-to-buffer/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
3 | class MimeBuffer extends Buffer {
4 | type: string;
5 | typeFull: string;
6 | charset: string;
7 | }
8 |
9 | declare function dataUriToBuffer(uri: string): MimeBuffer;
10 | export = dataUriToBuffer;
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "browser": true,
4 | "node": true
5 | },
6 | "rules": {
7 | "no-console": 0,
8 | "no-empty": [1, { "allowEmptyCatch": true }]
9 | },
10 | "extends": "eslint:recommended"
11 | }
12 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 | coverage
9 | bower.json
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/.travis.yml:
--------------------------------------------------------------------------------
1 |
2 | language: node_js
3 | node_js:
4 | - "6"
5 | - "5"
6 | - "4"
7 |
8 | install:
9 | - make node_modules
10 |
11 | script:
12 | - make lint
13 | - make test
14 | - make coveralls
15 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "debug",
3 | "repo": "visionmedia/debug",
4 | "description": "small debugging utility",
5 | "version": "2.6.9",
6 | "keywords": [
7 | "debug",
8 | "log",
9 | "debugger"
10 | ],
11 | "main": "src/browser.js",
12 | "scripts": [
13 | "src/browser.js",
14 | "src/debug.js"
15 | ],
16 | "dependencies": {
17 | "rauchg/ms.js": "0.7.1"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process !== 'undefined' && process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/debug/src/inspector-log.js:
--------------------------------------------------------------------------------
1 | module.exports = inspectorLog;
2 |
3 | // black hole
4 | const nullStream = new (require('stream').Writable)();
5 | nullStream._write = () => {};
6 |
7 | /**
8 | * Outputs a `console.log()` to the Node.js Inspector console *only*.
9 | */
10 | function inspectorLog() {
11 | const stdout = console._stdout;
12 | console._stdout = nullStream;
13 | console.log.apply(console, arguments);
14 | console._stdout = stdout;
15 | }
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/deep-is/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/deep-is/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.4
4 | - 0.6
5 | - 0.8
6 | - 0.10
7 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/deep-is/example/cmp.js:
--------------------------------------------------------------------------------
1 | var equal = require('../');
2 | console.dir([
3 | equal(
4 | { a : [ 2, 3 ], b : [ 4 ] },
5 | { a : [ 2, 3 ], b : [ 4 ] }
6 | ),
7 | equal(
8 | { x : 5, y : [6] },
9 | { x : 5, y : 6 }
10 | )
11 | ]);
12 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/deep-is/test/NaN.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var equal = require('../');
3 |
4 | test('NaN and 0 values', function (t) {
5 | t.ok(equal(NaN, NaN));
6 | t.notOk(equal(0, NaN));
7 | t.ok(equal(0, 0));
8 | t.notOk(equal(0, 1));
9 | t.end();
10 | });
11 |
12 |
13 | test('nested NaN values', function (t) {
14 | t.ok(equal([ NaN, 1, NaN ], [ NaN, 1, NaN ]));
15 | t.end();
16 | });
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/deep-is/test/cmp.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var equal = require('../');
3 |
4 | test('equal', function (t) {
5 | t.ok(equal(
6 | { a : [ 2, 3 ], b : [ 4 ] },
7 | { a : [ 2, 3 ], b : [ 4 ] }
8 | ));
9 | t.end();
10 | });
11 |
12 | test('not equal', function (t) {
13 | t.notOk(equal(
14 | { x : 5, y : [6] },
15 | { x : 5, y : 6 }
16 | ));
17 | t.end();
18 | });
19 |
20 | test('nested nulls', function (t) {
21 | t.ok(equal([ null, null, null ], [ null, null, null ]));
22 | t.end();
23 | });
24 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/deep-is/test/neg-vs-pos-0.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var equal = require('../');
3 |
4 | test('0 values', function (t) {
5 | t.ok(equal( 0, 0), ' 0 === 0');
6 | t.ok(equal( 0, +0), ' 0 === +0');
7 | t.ok(equal(+0, +0), '+0 === +0');
8 | t.ok(equal(-0, -0), '-0 === -0');
9 |
10 | t.notOk(equal(-0, 0), '-0 !== 0');
11 | t.notOk(equal(-0, +0), '-0 !== +0');
12 |
13 | t.end();
14 | });
15 |
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/default-user-agent/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.0 / 2015-08-06
3 | ==================
4 |
5 | * use npm scripts
6 | * added os-name package
7 |
8 | 0.0.1 / 2014-03-13
9 | ==================
10 |
11 | * first commit
12 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/default-user-agent/index.js:
--------------------------------------------------------------------------------
1 | /**!
2 | * default-user-agent - index.js
3 | *
4 | * Copyright(c) fengmk2 and other contributors.
5 | * MIT Licensed
6 | *
7 | * Authors:
8 | * fengmk2 (http://fengmk2.com)
9 | */
10 |
11 | 'use strict';
12 |
13 | /**
14 | * Module dependencies.
15 | */
16 |
17 | var osName = require('os-name');
18 |
19 | var USER_AGENT = 'Node.js/' + process.version.slice(1)
20 | + ' (' + osName() + '; ' + process.arch + ')';
21 |
22 | module.exports = function ua(name, version) {
23 | if (arguments.length !== 2) {
24 | return USER_AGENT;
25 | }
26 | return name + '/' + version + ' ' + USER_AGENT;
27 | };
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/.npmignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 | /?.js
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "0.8"
7 | - "0.10"
8 | - "0.12"
9 | - "1"
10 | - "2"
11 | - "3.2"
12 | - "4"
13 | - "5"
14 | - "6"
15 | - "7"
16 |
17 | install:
18 | - PATH="`npm bin`:`npm bin -g`:$PATH"
19 | # Node 0.8 comes with a too obsolete npm
20 | - if [[ "`node --version`" =~ ^v0\.8\. ]]; then npm install -g npm@1.4.28 ; fi
21 | # Install dependencies and build
22 | - npm install
23 |
24 | script:
25 | # Output useful info for debugging
26 | - node --version
27 | - npm --version
28 | # Run tests
29 | - npm test
30 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/basic.expected.js:
--------------------------------------------------------------------------------
1 | function* foo() {
2 | return (yield a('bar')) || (yield b());
3 | }
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/basic.js:
--------------------------------------------------------------------------------
1 | function foo () {
2 | return a('bar') || b();
3 | }
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/get-example.expected.js:
--------------------------------------------------------------------------------
1 | function* myFn() {
2 | var one = yield get('https://google.com');
3 | var two = yield get('http://nodejs.org');
4 | var three = JSON.parse(yield get('http://jsonip.org'));
5 | return [
6 | one,
7 | two,
8 | three
9 | ];
10 | }
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/get-example.js:
--------------------------------------------------------------------------------
1 | // get
2 | function myFn () {
3 | var one = get('https://google.com');
4 | var two = get('http://nodejs.org');
5 | var three = JSON.parse(get('http://jsonip.org'));
6 | return [one, two, three];
7 | }
8 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/multiple.expected.js:
--------------------------------------------------------------------------------
1 | function* foo() {
2 | return yield baz();
3 | }
4 | function* bar() {
5 | return yield foo(baz);
6 | }
7 | function* baz() {
8 | return yield bar();
9 | }
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/multiple.js:
--------------------------------------------------------------------------------
1 | // foo
2 | function foo () {
3 | return baz();
4 | }
5 |
6 | function bar () {
7 | return foo(baz);
8 | }
9 |
10 | function baz () {
11 | return bar();
12 | }
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/pac-resolver-gh-16.expected.js:
--------------------------------------------------------------------------------
1 | var FindProxyForURL = function (init, profiles) {
2 | return function (url, host) {
3 | 'use strict';
4 | var result = init, scheme = url.substr(0, url.indexOf(':'));
5 | do {
6 | result = profiles[result];
7 | if (typeof result === 'function')
8 | result = result(url, host, scheme);
9 | } while (typeof result !== 'string' || result.charCodeAt(0) === 43);
10 | return result;
11 | };
12 | }('+google', {
13 | '+google': function (url, host, scheme) {
14 | 'use strict';
15 | if (/(?:^|\.)google\.com$/.test(host))
16 | return '+internal-vf';
17 | return 'DIRECT';
18 | },
19 | '+internal-vf': function (url, host, scheme) {
20 | 'use strict';
21 | if (host === '127.0.0.1' || host === '::1' || host.indexOf('.') < 0)
22 | return 'DIRECT';
23 | return 'PROXY 127.0.0.1:8123';
24 | }
25 | });
26 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/pac-resolver-gh-16.js:
--------------------------------------------------------------------------------
1 | // FindProxyForURL
2 | var FindProxyForURL = function(init, profiles) {
3 | return function(url, host) {
4 | "use strict";
5 | var result = init, scheme = url.substr(0, url.indexOf(":"));
6 | do {
7 | result = profiles[result];
8 | if (typeof result === "function") result = result(url, host, scheme);
9 | } while (typeof result !== "string" || result.charCodeAt(0) === 43);
10 | return result;
11 | };
12 | }("+google", {
13 | "+google": function(url, host, scheme) {
14 | "use strict";
15 | if (/(?:^|\.)google\.com$/.test(host)) return "+internal-vf";
16 | return "DIRECT";
17 | },
18 | "+internal-vf": function(url, host, scheme) {
19 | "use strict";
20 | if (host === "127.0.0.1" || host === "::1" || host.indexOf(".") < 0) return "DIRECT";
21 | return "PROXY 127.0.0.1:8123";
22 | }
23 | });
24 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/pac-resolver-gh-3.expected.js:
--------------------------------------------------------------------------------
1 | function* FindProxyForURL(url, host) {
2 | if (yield isHostInAnySubnet(host, [
3 | '10.1.2.0',
4 | '10.1.3.0'
5 | ], '255.255.255.0')) {
6 | return 'HTTPS proxy.example.com';
7 | }
8 | if (yield isHostInAnySubnet(host, [
9 | '10.2.2.0',
10 | '10.2.3.0'
11 | ], '255.255.255.0')) {
12 | return 'HTTPS proxy.example.com';
13 | }
14 | return 'DIRECT';
15 | }
16 | function* isHostInAnySubnet(host, subnets, mask) {
17 | var subnets_length = subnets.length;
18 | for (i = 0; i < subnets_length; i++) {
19 | if (yield isInNet(host, subnets[i], mask)) {
20 | return true;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/degenerator/test/pac-resolver-gh-3.js:
--------------------------------------------------------------------------------
1 | // FindProxyForURL, isInNet
2 | function FindProxyForURL(url, host) {
3 | if (isHostInAnySubnet(host, ['10.1.2.0', '10.1.3.0'], '255.255.255.0')) {
4 | return "HTTPS proxy.example.com";
5 | }
6 |
7 | if (isHostInAnySubnet(host, ['10.2.2.0', '10.2.3.0'], '255.255.255.0')) {
8 | return "HTTPS proxy.example.com";
9 | }
10 |
11 | // Everything else, go direct:
12 | return "DIRECT";
13 | }
14 |
15 | // Checks if the single host is within a list of subnets using the single mask.
16 | function isHostInAnySubnet(host, subnets, mask) {
17 | var subnets_length = subnets.length;
18 | for (i = 0; i < subnets_length; i++) {
19 | if (isInNet(host, subnets[i], mask)) {
20 | return true;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/depd/lib/compat/event-listener-count.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * depd
3 | * Copyright(c) 2015 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict'
8 |
9 | /**
10 | * Module exports.
11 | * @public
12 | */
13 |
14 | module.exports = eventListenerCount
15 |
16 | /**
17 | * Get the count of listeners on an event emitter of a specific type.
18 | */
19 |
20 | function eventListenerCount (emitter, type) {
21 | return emitter.listeners(type).length
22 | }
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/digest-header/.npmignore:
--------------------------------------------------------------------------------
1 | test/
2 | coverage.html
3 | Makefile
4 | .travis.yml
5 | logo.png
6 | .jshintignore
7 | .jshintrc
8 | .gitingore
9 | coverage/
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/digest-header/AUTHORS:
--------------------------------------------------------------------------------
1 | # Ordered by date of first contribution.
2 | # Auto-generated by 'contributors' on Mon, 31 Mar 2014 03:17:59 GMT.
3 | # https://github.com/xingrz/node-contributors
4 |
5 | fengmk2 (https://github.com/fengmk2)
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/digest-header/History.md:
--------------------------------------------------------------------------------
1 |
2 | 0.0.1 / 2014-03-31
3 | ==================
4 |
5 | * first commit
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/digest-header/node_modules/utility/.npmignore:
--------------------------------------------------------------------------------
1 | test/
2 | coverage.html
3 | lib-cov/
4 | Makefile
5 | .travis.yml
6 | logo.png
7 | .jshint*
8 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/digest-header/node_modules/utility/AUTHORS:
--------------------------------------------------------------------------------
1 | # Ordered by date of first contribution.
2 | # Auto-generated by 'contributors' on Wed, 08 Jan 2014 06:23:34 GMT.
3 | # https://github.com/xingrz/node-contributors
4 |
5 | fengmk2 (https://github.com/fengmk2)
6 | dead_horse (https://github.com/dead-horse)
7 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/digest-header/node_modules/utility/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/utility');
--------------------------------------------------------------------------------
/cloud/pay/node_modules/es6-promise/auto.js:
--------------------------------------------------------------------------------
1 | // This file can be required in Browserify and Node.js for automatic polyfill
2 | // To use it: require('es6-promise/auto');
3 | 'use strict';
4 | module.exports = require('./').polyfill();
5 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/es6-promise/lib/es6-promise.auto.js:
--------------------------------------------------------------------------------
1 | import Promise from './es6-promise';
2 | Promise.polyfill();
3 | export default Promise;
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/es6-promise/lib/es6-promise.js:
--------------------------------------------------------------------------------
1 | import Promise from './es6-promise/promise';
2 | import polyfill from './es6-promise/polyfill';
3 |
4 | // Strange compat..
5 | Promise.polyfill = polyfill;
6 | Promise.Promise = Promise;
7 | export default Promise;
8 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/es6-promise/lib/es6-promise/polyfill.js:
--------------------------------------------------------------------------------
1 | /*global self*/
2 | import Promise from './promise';
3 |
4 | export default function polyfill() {
5 | let local;
6 |
7 | if (typeof global !== 'undefined') {
8 | local = global;
9 | } else if (typeof self !== 'undefined') {
10 | local = self;
11 | } else {
12 | try {
13 | local = Function('return this')();
14 | } catch (e) {
15 | throw new Error('polyfill failed because global object is unavailable in this environment');
16 | }
17 | }
18 |
19 | let P = local.Promise;
20 |
21 | if (P) {
22 | var promiseToString = null;
23 | try {
24 | promiseToString = Object.prototype.toString.call(P.resolve());
25 | } catch(e) {
26 | // silently ignored
27 | }
28 |
29 | if (promiseToString === '[object Promise]' && !P.cast){
30 | return;
31 | }
32 | }
33 |
34 | local.Promise = Promise;
35 | }
36 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/es6-promise/lib/es6-promise/then.js:
--------------------------------------------------------------------------------
1 | import {
2 | invokeCallback,
3 | subscribe,
4 | FULFILLED,
5 | REJECTED,
6 | noop,
7 | makePromise,
8 | PROMISE_ID
9 | } from './-internal';
10 |
11 | import { asap } from './asap';
12 |
13 | export default function then(onFulfillment, onRejection) {
14 | const parent = this;
15 |
16 | const child = new this.constructor(noop);
17 |
18 | if (child[PROMISE_ID] === undefined) {
19 | makePromise(child);
20 | }
21 |
22 | const { _state } = parent;
23 |
24 | if (_state) {
25 | const callback = arguments[_state - 1];
26 | asap(() => invokeCallback(_state, child, callback, parent._result));
27 | } else {
28 | subscribe(parent, child, onFulfillment, onRejection);
29 | }
30 |
31 | return child;
32 | }
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/es6-promise/lib/es6-promise/utils.js:
--------------------------------------------------------------------------------
1 | export function objectOrFunction(x) {
2 | let type = typeof x;
3 | return x !== null && (type === 'object' || type === 'function');
4 | }
5 |
6 | export function isFunction(x) {
7 | return typeof x === 'function';
8 | }
9 |
10 | export function isMaybeThenable(x) {
11 | return x !== null && typeof x === 'object';
12 | }
13 |
14 | let _isArray;
15 | if (Array.isArray) {
16 | _isArray = Array.isArray;
17 | } else {
18 | _isArray = x => Object.prototype.toString.call(x) === '[object Array]';
19 | }
20 |
21 | export const isArray = _isArray;
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/escape-html/Readme.md:
--------------------------------------------------------------------------------
1 |
2 | # escape-html
3 |
4 | Escape string for use in HTML
5 |
6 | ## Example
7 |
8 | ```js
9 | var escape = require('escape-html');
10 | var html = escape('foo & bar');
11 | // -> foo & bar
12 | ```
13 |
14 | ## Benchmark
15 |
16 | ```
17 | $ npm run-script bench
18 |
19 | > escape-html@1.0.3 bench nodejs-escape-html
20 | > node benchmark/index.js
21 |
22 |
23 | http_parser@1.0
24 | node@0.10.33
25 | v8@3.14.5.9
26 | ares@1.9.0-DEV
27 | uv@0.10.29
28 | zlib@1.2.3
29 | modules@11
30 | openssl@1.0.1j
31 |
32 | 1 test completed.
33 | 2 tests completed.
34 | 3 tests completed.
35 |
36 | no special characters x 19,435,271 ops/sec ±0.85% (187 runs sampled)
37 | single special character x 6,132,421 ops/sec ±0.67% (194 runs sampled)
38 | many special characters x 3,175,826 ops/sec ±0.65% (193 runs sampled)
39 | ```
40 |
41 | ## License
42 |
43 | MIT
--------------------------------------------------------------------------------
/cloud/pay/node_modules/estraverse/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["es2015"]
3 | }
--------------------------------------------------------------------------------
/cloud/pay/node_modules/estraverse/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "curly": true,
3 | "eqeqeq": true,
4 | "immed": true,
5 | "eqnull": true,
6 | "latedef": true,
7 | "noarg": true,
8 | "noempty": true,
9 | "quotmark": "single",
10 | "undef": true,
11 | "unused": true,
12 | "strict": true,
13 | "trailing": true,
14 |
15 | "node": true
16 | }
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/extend-shallow/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var isObject = require('is-extendable');
4 |
5 | module.exports = function extend(o/*, objects*/) {
6 | if (!isObject(o)) { o = {}; }
7 |
8 | var len = arguments.length;
9 | for (var i = 1; i < len; i++) {
10 | var obj = arguments[i];
11 |
12 | if (isObject(obj)) {
13 | assign(o, obj);
14 | }
15 | }
16 | return o;
17 | };
18 |
19 | function assign(a, b) {
20 | for (var key in b) {
21 | if (hasOwn(b, key)) {
22 | a[key] = b[key];
23 | }
24 | }
25 | }
26 |
27 | /**
28 | * Returns true if the given `key` is an own property of `obj`.
29 | */
30 |
31 | function hasOwn(obj, key) {
32 | return Object.prototype.hasOwnProperty.call(obj, key);
33 | }
34 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/extend/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = tab
5 | indent_size = 4
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 | max_line_length = 150
11 |
12 | [CHANGELOG.md]
13 | indent_style = space
14 | indent_size = 2
15 |
16 | [*.json]
17 | max_line_length = off
18 |
19 | [Makefile]
20 | max_line_length = off
21 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/extend/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "complexity": [2, 20],
8 | "eqeqeq": [2, "allow-null"],
9 | "func-name-matching": [1],
10 | "max-depth": [1, 4],
11 | "max-statements": [2, 26],
12 | "no-extra-parens": [1],
13 | "no-magic-numbers": [0],
14 | "no-restricted-syntax": [2, "BreakStatement", "ContinueStatement", "DebuggerStatement", "LabeledStatement", "WithStatement"],
15 | "sort-keys": [0],
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/extend/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "extend",
3 | "author": "Stefan Thomas (http://www.justmoon.net)",
4 | "version": "3.0.0",
5 | "description": "Port of jQuery.extend for node.js and the browser.",
6 | "scripts": [
7 | "index.js"
8 | ],
9 | "contributors": [
10 | {
11 | "name": "Jordan Harband",
12 | "url": "https://github.com/ljharb"
13 | }
14 | ],
15 | "keywords": [
16 | "extend",
17 | "clone",
18 | "merge"
19 | ],
20 | "repository" : {
21 | "type": "git",
22 | "url": "https://github.com/justmoon/node-extend.git"
23 | },
24 | "dependencies": {
25 | },
26 | "devDependencies": {
27 | "tape" : "~3.0.0",
28 | "covert": "~0.4.0",
29 | "jscs": "~1.6.2"
30 | }
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/file-uri-to-path/.npmignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/file-uri-to-path/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "0.8"
7 | - "0.10"
8 | - "0.12"
9 | - "1"
10 | - "2"
11 | - "3"
12 | - "4"
13 | - "5"
14 | - "6"
15 | - "7"
16 | - "8"
17 |
18 | install:
19 | - PATH="`npm bin`:`npm bin -g`:$PATH"
20 | # Node 0.8 comes with a too obsolete npm
21 | - if [[ "`node --version`" =~ ^v0\.8\. ]]; then npm install -g npm@1.4.28 ; fi
22 | # Install dependencies and build
23 | - npm install
24 |
25 | script:
26 | # Output useful info for debugging
27 | - node --version
28 | - npm --version
29 | # Run tests
30 | - npm test
31 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/file-uri-to-path/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.0 / 2017-07-06
3 | ==================
4 |
5 | * update "mocha" to v3
6 | * fixed unicode URI decoding (#6)
7 | * add typings for Typescript
8 | * README: use SVG Travis-CI badge
9 | * add LICENSE file (MIT)
10 | * add .travis.yml file (testing Node.js 0.8 through 8 currently)
11 | * add README.md file
12 |
13 | 0.0.2 / 2014-01-27
14 | ==================
15 |
16 | * index: invert the path separators on Windows
17 |
18 | 0.0.1 / 2014-01-27
19 | ==================
20 |
21 | * initial commit
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/file-uri-to-path/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function fileUriToPath(uri: string): string;
2 | export = fileUriToPath;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/file-uri-to-path/test/test.js:
--------------------------------------------------------------------------------
1 |
2 | var sep = require('path').sep || '/';
3 | var assert = require('assert');
4 | var uri2path = require('../');
5 | var tests = require('./tests.json');
6 |
7 | describe('file-uri-to-path', function () {
8 |
9 | Object.keys(tests).forEach(function (uri) {
10 |
11 | // the test cases were generated from Windows' PathCreateFromUrlA() function.
12 | // On Unix, we have to replace the path separator with the Unix one instead of
13 | // the Windows one.
14 | var expected = tests[uri].replace(/\\/g, sep);
15 |
16 | it('should convert ' + JSON.stringify(uri) + ' to ' + JSON.stringify(expected),
17 | function () {
18 | var actual = uri2path(uri);
19 | assert.equal(actual, expected);
20 | });
21 |
22 | });
23 |
24 | });
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/file-uri-to-path/test/tests.json:
--------------------------------------------------------------------------------
1 | {
2 | "file://host/path": "\\\\host\\path",
3 | "file://localhost/etc/fstab": "\\etc\\fstab",
4 | "file:///etc/fstab": "\\etc\\fstab",
5 | "file:///c:/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
6 | "file://localhost/c|/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
7 | "file:///c|/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
8 | "file://localhost/c:/WINDOWS/clock.avi": "c:\\WINDOWS\\clock.avi",
9 | "file://hostname/path/to/the%20file.txt": "\\\\hostname\\path\\to\\the file.txt",
10 | "file:///c:/path/to/the%20file.txt": "c:\\path\\to\\the file.txt",
11 | "file:///C:/Documents%20and%20Settings/davris/FileSchemeURIs.doc": "C:\\Documents and Settings\\davris\\FileSchemeURIs.doc",
12 | "file:///C:/caf%C3%A9/%C3%A5r/d%C3%BCnn/%E7%89%9B%E9%93%83/Ph%E1%BB%9F/%F0%9F%98%B5.exe": "C:\\café\\år\\dünn\\牛铃\\Phở\\😵.exe"
13 | }
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright Brian White. All rights reserved.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to
5 | deal in the Software without restriction, including without limitation the
6 | rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 | sell copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 | IN THE SOFTWARE.
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/TODO:
--------------------------------------------------------------------------------
1 | - Add support for some SITE commands such as CHMOD, CHGRP, and QUOTA
2 | - Active (non-passive) data connections
3 | - IPv6 support
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/node_modules/readable-stream/.npmignore:
--------------------------------------------------------------------------------
1 | build/
2 | test/
3 | examples/
4 | fs.js
5 | zlib.js
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/node_modules/readable-stream/duplex.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_duplex.js")
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/node_modules/readable-stream/passthrough.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_passthrough.js")
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/node_modules/readable-stream/readable.js:
--------------------------------------------------------------------------------
1 | exports = module.exports = require('./lib/_stream_readable.js');
2 | exports.Stream = require('stream');
3 | exports.Readable = exports;
4 | exports.Writable = require('./lib/_stream_writable.js');
5 | exports.Duplex = require('./lib/_stream_duplex.js');
6 | exports.Transform = require('./lib/_stream_transform.js');
7 | exports.PassThrough = require('./lib/_stream_passthrough.js');
8 | if (!process.browser && process.env.READABLE_STREAM === 'disable') {
9 | module.exports = require('stream');
10 | }
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/node_modules/readable-stream/transform.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_transform.js")
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/node_modules/readable-stream/writable.js:
--------------------------------------------------------------------------------
1 | module.exports = require("./lib/_stream_writable.js")
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ftp/test/test.js:
--------------------------------------------------------------------------------
1 | require('fs').readdirSync(__dirname).forEach(function(f) {
2 | if (f.substr(0, 5) === 'test-')
3 | require('./' + f);
4 | });
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "1"
7 | - "2"
8 | - "3"
9 | - "4"
10 | - "5"
11 | - "6"
12 | - "7"
13 | - "8"
14 | - "9"
15 | - "10"
16 |
17 | install:
18 | - PATH="`npm bin`:`npm bin -g`:$PATH"
19 | # Install dependencies and build
20 | - npm install
21 |
22 | script:
23 | # Output useful info for debugging
24 | - node --version
25 | - npm --version
26 | # Run tests
27 | - npm test
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/https.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var http = require('./http');
7 | var https = require('https');
8 |
9 | /**
10 | * Module exports.
11 | */
12 |
13 | module.exports = get;
14 |
15 | /**
16 | * Returns a Readable stream from an "https:" URI.
17 | *
18 | * @api protected
19 | */
20 |
21 | function get (parsed, opts, fn) {
22 | opts.http = https;
23 | http(parsed, opts, fn);
24 | }
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer / nwjs process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/notfound.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var inherits = require('util').inherits;
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = NotFoundError;
13 |
14 | /**
15 | * Error subclass to use when the source does not exist at the specified endpoint.
16 | *
17 | * @param {String} message optional "message" property to set
18 | * @api protected
19 | */
20 |
21 | function NotFoundError (message) {
22 | this.name = 'NotFoundError';
23 | this.code = 'ENOTFOUND';
24 | this.message = message || 'File does not exist at the specified endpoint';
25 | Error.captureStackTrace(this, NotFoundError);
26 | }
27 |
28 | inherits(NotFoundError, Error);
29 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/notmodified.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var inherits = require('util').inherits;
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = NotModifiedError;
13 |
14 | /**
15 | * Error subclass to use when the source has not been modified.
16 | *
17 | * @param {String} message optional "message" property to set
18 | * @api protected
19 | */
20 |
21 | function NotModifiedError (message) {
22 | this.name = 'NotModifiedError';
23 | this.code = 'ENOTMODIFIED';
24 | this.message = message || 'Source has not been modified since the provied "cache", re-use previous results';
25 | Error.captureStackTrace(this, NotModifiedError);
26 | }
27 |
28 | inherits(NotModifiedError, Error);
29 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/test/server.crt:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIICATCCAWoCCQCSMIVZI8DGgTANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJB
3 | VTETMBEGA1UECBMKU29tZS1TdGF0ZTEhMB8GA1UEChMYSW50ZXJuZXQgV2lkZ2l0
4 | cyBQdHkgTHRkMB4XDTEzMDkwOTIyNTI1MVoXDTE0MDkwOTIyNTI1MVowRTELMAkG
5 | A1UEBhMCQVUxEzARBgNVBAgTClNvbWUtU3RhdGUxITAfBgNVBAoTGEludGVybmV0
6 | IFdpZGdpdHMgUHR5IEx0ZDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwQO2
7 | jlSxR12EvpF1hROxQAyQzDsxVv7AjDGhSVhizn7anxo5mCE9+5jHRJ6hgxF/3RJO
8 | q157J49W7hlgiJfN3X4Q3WCqkTnfj1wFr8aSjWUl6TWeLMrhKZgzGCmZH0GV4Kpu
9 | 4jQ4lyjl/dIBw8HiJmKvaEagdUb5UJCKBDrDtvECAwEAATANBgkqhkiG9w0BAQUF
10 | AAOBgQB33WAM5Yr2jkaeRog6rEglMC8i+Jab12amnFFJEMoWnH6csXVGSXxCtlX8
11 | FWnCoNb/D71dnEusS4JxbYluRg2Xrdfb/pmHje9pE2TTprZRBFAIoh4CmDh129Ka
12 | HJwYPZi59XRnac8ghiF2l4d2yOQPznrJDekj6pfLVdIcVowSvg==
13 | -----END CERTIFICATE-----
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/test/server.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICXgIBAAKBgQDBA7aOVLFHXYS+kXWFE7FADJDMOzFW/sCMMaFJWGLOftqfGjmY
3 | IT37mMdEnqGDEX/dEk6rXnsnj1buGWCIl83dfhDdYKqROd+PXAWvxpKNZSXpNZ4s
4 | yuEpmDMYKZkfQZXgqm7iNDiXKOX90gHDweImYq9oRqB1RvlQkIoEOsO28QIDAQAB
5 | AoGBAJGXlm34bp0Rat9A46/VMd/JWrPjdo1TrrRRf4LO3AE9aPWYl5cshA+zp6QY
6 | MGaonZWJiLP1mdo2YnFJzSpbr9mzEBEIjCsKdzeKbmnaEpCZY5YUj/ypVWYVJqXx
7 | jZ6/9VEIxCrB9WmXi9fs97IZtZJcHI4M+0FXakjF9AmxtVvRAkEA5MNakvgLPn5s
8 | GH5yuu0P0vSQ6d7EEgcM/89pjEpfKCvsYBh92VvmKspjBV71OuQ3Eh7/0GB/5UGC
9 | gaJwID7ibQJBANf+wBky99/+ffzwrUGavIbLO4NOwnbQsz7v49PwJHoGIhlfoLW7
10 | 21JwDwWUteFyYOwzHxRdKedolT5Ul+PxNBUCQCXYU7Ggq2uJSqS6toxKD6Yco6St
11 | H87Dr9jaHWICI7/nlFFJe/hrhaZqmPsYfIVjn+C1lCiK7l2k+swrbVVIUfkCQQCA
12 | 8MgWgvGsWw00+SxElK3kveAaI+M88JuAf85+z8XGvnCOuyKCOtHT5adiCoOFQTWQ
13 | 63erPW5tgWZOnktKPMx9AkEAru3G68AjJN6e14aHkK9KFD0DV1RjrIe7E5iQq5Tn
14 | QXyiyiu624him6pov6UIGs5429z+gl3JjRM3A2rl//j//w==
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/get-uri/test/test.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var fs = require('fs');
7 | var st = require('st');
8 | var ftpd = require('ftpd');
9 | var http = require('http');
10 | var https = require('https');
11 | var getUri = require('../');
12 | var assert = require('assert');
13 | var streamToArray = require('stream-to-array');
14 |
15 | describe('get-uri', function () {
16 |
17 | describe('bad input', function () {
18 | it('should throw a TypeError when callback function is given', function () {
19 | assert.throws(function () {
20 | getUri();
21 | }, TypeError);
22 | });
23 |
24 | it('should return a TypeError when no URI is given', function (done) {
25 | getUri(null, function (err) {
26 | assert.equal(err.name, 'TypeError');
27 | done();
28 | });
29 | });
30 | });
31 |
32 | });
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "4"
7 | - "5"
8 | - "6"
9 | - "7"
10 | - "8"
11 |
12 | install:
13 | - PATH="`npm bin`:`npm bin -g`:$PATH"
14 | # Install dependencies and build
15 | - npm install
16 |
17 | script:
18 | # Output useful info for debugging
19 | - node --version
20 | - npm --version
21 | # Run tests
22 | - npm test
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/node_modules/debug/.coveralls.yml:
--------------------------------------------------------------------------------
1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/node_modules/debug/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "browser": true,
4 | "node": true
5 | },
6 | "globals": {
7 | "chrome": true
8 | },
9 | "rules": {
10 | "no-console": 0,
11 | "no-empty": [1, { "allowEmptyCatch": true }]
12 | },
13 | "extends": "eslint:recommended"
14 | }
15 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/node_modules/debug/.npmignore:
--------------------------------------------------------------------------------
1 | support
2 | test
3 | examples
4 | example
5 | *.sock
6 | dist
7 | yarn.lock
8 | coverage
9 | bower.json
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/node_modules/debug/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "4"
7 | - "6"
8 | - "8"
9 |
10 | install:
11 | - make install
12 |
13 | script:
14 | - make lint
15 | - make test
16 |
17 | matrix:
18 | include:
19 | - node_js: '8'
20 | env: BROWSER=1
21 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Detect Electron renderer process, which is node, but we should
3 | * treat as a browser.
4 | */
5 |
6 | if (typeof process === 'undefined' || process.type === 'renderer') {
7 | module.exports = require('./browser.js');
8 | } else {
9 | module.exports = require('./node.js');
10 | }
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/test/ssl-cert-snakeoil.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICWwIBAAKBgQCzURxIqzer0ACAbX/lHdsn4Gd9PLKrf7EeDYfIdV0HZKPD8WDr
3 | bBx2/fBu0OW2sjnzv/SVZbJ0DAuPE/p0+eT0qb2qC10iz9iTD7ribd7gxhirVb8y
4 | b3fBjXsxc8V8p4Ny1LcvNSqCjwUbJqdRogfoJeTiqPM58z5sNzuv5iq7iwIDAQAB
5 | AoGAPMQy4olrP0UotlzlJ36bowLP70ffgHCwU+/f4NWs5fF78c3du0oSx1w820Dd
6 | Z7E0JF8bgnlJJTxjumPZz0RUCugrEHBKJmzEz3cxF5E3+7NvteZcjKn9D67RrM5x
7 | 1/uSZ9cqKE9cYvY4fSuHx18diyZ4axR/wB1Pea2utjjDM+ECQQDb9ZbmmaWMiRpQ
8 | 5Up+loxP7BZNPsEVsm+DVJmEFbaFgGfncWBqSIqnPNjMwTwj0OigTwCAEGPkfRVW
9 | T0pbYWCxAkEA0LK7SCTwzyDmhASUalk0x+3uCAA6ryFdwJf/wd8TRAvVOmkTEldX
10 | uJ7ldLvfrONYO3v56uKTU/SoNdZYzKtO+wJAX2KM4ctXYy5BXztPpr2acz4qHa1N
11 | Bh+vBAC34fOYhyQ76r3b1btHhWZ5jbFuZwm9F2erC94Ps5IaoqcX07DSwQJAPKGw
12 | h2U0EPkd/3zVIZCJJQya+vgWFIs9EZcXVtvYXQyTBkVApTN66MhBIYjzkub5205J
13 | bVQmOV37AKklY1DhwQJAA1wos0cYxro02edzatxd0DIR2r4qqOqLkw6BhYHhq6HJ
14 | ZvIcQkHqdSXzdETFc01I1znDGGIrJHcnvKWgBPoEUg==
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/http-proxy-agent/test/ssl-cert-snakeoil.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIB1TCCAT4CCQDV5mPlzm9+izANBgkqhkiG9w0BAQUFADAvMS0wKwYDVQQDEyQ3
3 | NTI3YmQ3Ny1hYjNlLTQ3NGItYWNlNy1lZWQ2MDUzOTMxZTcwHhcNMTUwNzA2MjI0
4 | NTA3WhcNMjUwNzAzMjI0NTA3WjAvMS0wKwYDVQQDEyQ3NTI3YmQ3Ny1hYjNlLTQ3
5 | NGItYWNlNy1lZWQ2MDUzOTMxZTcwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
6 | ALNRHEirN6vQAIBtf+Ud2yfgZ308sqt/sR4Nh8h1XQdko8PxYOtsHHb98G7Q5bay
7 | OfO/9JVlsnQMC48T+nT55PSpvaoLXSLP2JMPuuJt3uDGGKtVvzJvd8GNezFzxXyn
8 | g3LUty81KoKPBRsmp1GiB+gl5OKo8znzPmw3O6/mKruLAgMBAAEwDQYJKoZIhvcN
9 | AQEFBQADgYEACzoHUF8UV2Z6541Q2wKEA0UFUzmUjf/E1XwBO+1P15ZZ64uw34B4
10 | 1RwMPtAo9RY/PmICTWtNxWGxkzwb2JtDWtnxVER/lF8k2XcXPE76fxTHJF/BKk9J
11 | QU8OTD1dd9gHCBviQB9TqntRZ5X7axjtuWjb2umY+owBYzAHZkp1HKI=
12 | -----END CERTIFICATE-----
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/https-proxy-agent/index.d.ts:
--------------------------------------------------------------------------------
1 | declare module 'https-proxy-agent' {
2 | import * as https from 'https'
3 |
4 | namespace HttpsProxyAgent {
5 | interface HttpsProxyAgentOptions {
6 | host: string
7 | port: number
8 | secureProxy?: boolean
9 | headers?: {
10 | [key: string]: string
11 | }
12 | [key: string]: any
13 | }
14 | }
15 |
16 | // HttpsProxyAgent doesnt *actually* extend https.Agent, but for my purposes I want it to pretend that it does
17 | class HttpsProxyAgent extends https.Agent {
18 | constructor(opts: HttpsProxyAgent.HttpsProxyAgentOptions | string)
19 | }
20 |
21 | export = HttpsProxyAgent
22 | }
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/https-proxy-agent/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/https-proxy-agent/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | /**
4 | * Detect Electron renderer / nwjs process, which is node, but we should
5 | * treat as a browser.
6 | */
7 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
8 | module.exports = require('./browser.js');
9 | } else {
10 | module.exports = require('./node.js');
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/humanize-ms/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.2.1 / 2017-05-19
3 | ==================
4 |
5 | * fix: package.json to reduce vulnerabilities (#3)
6 |
7 | 1.2.0 / 2016-05-21
8 | ==================
9 |
10 | * feat: warn with stack
11 |
12 | 1.1.0 / 2016-04-04
13 | ==================
14 |
15 | * deps: upgrade ms to 0.7.0
16 |
17 | 1.0.1 / 2014-12-31
18 | ==================
19 |
20 | * feat(index.js): warn when result is undefined
21 |
22 | 1.0.0 / 2014-08-14
23 | ==================
24 |
25 | * init
26 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/humanize-ms/LICENSE:
--------------------------------------------------------------------------------
1 | Permission is hereby granted, free of charge, to any person obtaining a copy
2 | of this software and associated documentation files (the "Software"), to deal
3 | in the Software without restriction, including without limitation the rights
4 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
5 | copies of the Software, and to permit persons to whom the Software is
6 | furnished to do so, subject to the following conditions:
7 |
8 | The above copyright notice and this permission notice shall be included in
9 | all copies or substantial portions of the Software.
10 |
11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
17 | THE SOFTWARE.
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/humanize-ms/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * humanize-ms - index.js
3 | * Copyright(c) 2014 dead_horse
4 | * MIT Licensed
5 | */
6 |
7 | 'use strict';
8 |
9 | /**
10 | * Module dependencies.
11 | */
12 |
13 | var util = require('util');
14 | var ms = require('ms');
15 |
16 | module.exports = function (t) {
17 | if (typeof t === 'number') return t;
18 | var r = ms(t);
19 | if (r === undefined) {
20 | var err = new Error(util.format('humanize-ms(%j) result undefined', t));
21 | console.warn(err.stack);
22 | }
23 | return r;
24 | };
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/iconv-lite/encodings/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | // Update this array if you add/rename/remove files in this directory.
4 | // We support Browserify by skipping automatic module discovery and requiring modules directly.
5 | var modules = [
6 | require("./internal"),
7 | require("./utf16"),
8 | require("./utf7"),
9 | require("./sbcs-codec"),
10 | require("./sbcs-data"),
11 | require("./sbcs-data-generated"),
12 | require("./dbcs-codec"),
13 | require("./dbcs-data"),
14 | ];
15 |
16 | // Put all encoding/alias/codec definitions to single object and export it.
17 | for (var i = 0; i < modules.length; i++) {
18 | var module = modules[i];
19 | for (var enc in module)
20 | if (Object.prototype.hasOwnProperty.call(module, enc))
21 | exports[enc] = module[enc];
22 | }
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/iconv-lite/lib/index.d.ts:
--------------------------------------------------------------------------------
1 | /*---------------------------------------------------------------------------------------------
2 | * Copyright (c) Microsoft Corporation. All rights reserved.
3 | * Licensed under the MIT License.
4 | * REQUIREMENT: This definition is dependent on the @types/node definition.
5 | * Install with `npm install @types/node --save-dev`
6 | *--------------------------------------------------------------------------------------------*/
7 |
8 | declare module 'iconv-lite' {
9 | export function decode(buffer: Buffer, encoding: string, options?: Options): string;
10 |
11 | export function encode(content: string, encoding: string, options?: Options): Buffer;
12 |
13 | export function encodingExists(encoding: string): boolean;
14 |
15 | export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
16 |
17 | export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream;
18 | }
19 |
20 | export interface Options {
21 | stripBOM?: boolean;
22 | addBOM?: boolean;
23 | defaultEncoding?: string;
24 | }
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/inherits/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 | PERFORMANCE OF THIS SOFTWARE.
16 |
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/inherits/inherits.js:
--------------------------------------------------------------------------------
1 | try {
2 | var util = require('util');
3 | /* istanbul ignore next */
4 | if (typeof util.inherits !== 'function') throw '';
5 | module.exports = util.inherits;
6 | } catch (e) {
7 | /* istanbul ignore next */
8 | module.exports = require('./inherits_browser.js');
9 | }
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/inherits/inherits_browser.js:
--------------------------------------------------------------------------------
1 | if (typeof Object.create === 'function') {
2 | // implementation from standard node.js 'util' module
3 | module.exports = function inherits(ctor, superCtor) {
4 | if (superCtor) {
5 | ctor.super_ = superCtor
6 | ctor.prototype = Object.create(superCtor.prototype, {
7 | constructor: {
8 | value: ctor,
9 | enumerable: false,
10 | writable: true,
11 | configurable: true
12 | }
13 | })
14 | }
15 | };
16 | } else {
17 | // old school shim for old browsers
18 | module.exports = function inherits(ctor, superCtor) {
19 | if (superCtor) {
20 | ctor.super_ = superCtor
21 | var TempCtor = function () {}
22 | TempCtor.prototype = superCtor.prototype
23 | ctor.prototype = new TempCtor()
24 | ctor.prototype.constructor = ctor
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ip/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | npm-debug.log
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/ip/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 | language: node_js
3 | node_js:
4 | - "0.8"
5 | - "0.10"
6 | - "0.12"
7 | - "4"
8 | - "6"
9 |
10 | before_install:
11 | - travis_retry npm install -g npm@2.14.5
12 | - travis_retry npm install
13 |
14 | script:
15 | - npm test
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/is-extendable/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * is-extendable
3 | *
4 | * Copyright (c) 2015, Jon Schlinkert.
5 | * Licensed under the MIT License.
6 | */
7 |
8 | 'use strict';
9 |
10 | module.exports = function isExtendable(val) {
11 | return typeof val !== 'undefined' && val !== null
12 | && (typeof val === 'object' || typeof val === 'function');
13 | };
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/isarray/component.json:
--------------------------------------------------------------------------------
1 | {
2 | "name" : "isarray",
3 | "description" : "Array#isArray for older browsers",
4 | "version" : "0.0.1",
5 | "repository" : "juliangruber/isarray",
6 | "homepage": "https://github.com/juliangruber/isarray",
7 | "main" : "index.js",
8 | "scripts" : [
9 | "index.js"
10 | ],
11 | "dependencies" : {},
12 | "keywords": ["browser","isarray","array"],
13 | "author": {
14 | "name": "Julian Gruber",
15 | "email": "mail@juliangruber.com",
16 | "url": "http://juliangruber.com"
17 | },
18 | "license": "MIT"
19 | }
20 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/isarray/index.js:
--------------------------------------------------------------------------------
1 | module.exports = Array.isArray || function (arr) {
2 | return Object.prototype.toString.call(arr) == '[object Array]';
3 | };
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/levn/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) George Zahariev
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/levn/lib/index.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.4.0
2 | (function(){
3 | var parseString, cast, parseType, VERSION, parsedTypeParse, parse;
4 | parseString = require('./parse-string');
5 | cast = require('./cast');
6 | parseType = require('type-check').parseType;
7 | VERSION = '0.3.0';
8 | parsedTypeParse = function(parsedType, string, options){
9 | options == null && (options = {});
10 | options.explicit == null && (options.explicit = false);
11 | options.customTypes == null && (options.customTypes = {});
12 | return cast(parseString(parsedType, string, options), parsedType, options);
13 | };
14 | parse = function(type, string, options){
15 | return parsedTypeParse(parseType(type), string, options);
16 | };
17 | module.exports = {
18 | VERSION: VERSION,
19 | parse: parse,
20 | parsedTypeParse: parsedTypeParse
21 | };
22 | }).call(this);
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/lru-cache/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mime/.npmignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qiushi123/cloud-pay/260f2c1e693a055c8c81ace88febdbeba06a7a7f/cloud/pay/node_modules/mime/.npmignore
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mime/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var mime = require('./mime.js');
4 | var file = process.argv[2];
5 | var type = mime.lookup(file);
6 |
7 | process.stdout.write(type + '\n');
8 |
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 | - "0.12"
6 | - "iojs"
7 | before_install:
8 | - npm install -g npm@~1.4.6
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/LICENSE:
--------------------------------------------------------------------------------
1 | This software is released under the MIT license:
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7 | the Software, and to permit persons to whom the Software is furnished to do so,
8 | subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/example/parse.js:
--------------------------------------------------------------------------------
1 | var argv = require('../')(process.argv.slice(2));
2 | console.dir(argv);
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/all_bool.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('flag boolean true (default all --args to boolean)', function (t) {
5 | var argv = parse(['moo', '--honk', 'cow'], {
6 | boolean: true
7 | });
8 |
9 | t.deepEqual(argv, {
10 | honk: true,
11 | _: ['moo', 'cow']
12 | });
13 |
14 | t.deepEqual(typeof argv.honk, 'boolean');
15 | t.end();
16 | });
17 |
18 | test('flag boolean true only affects double hyphen arguments without equals signs', function (t) {
19 | var argv = parse(['moo', '--honk', 'cow', '-p', '55', '--tacos=good'], {
20 | boolean: true
21 | });
22 |
23 | t.deepEqual(argv, {
24 | honk: true,
25 | tacos: 'good',
26 | p: 55,
27 | _: ['moo', 'cow']
28 | });
29 |
30 | t.deepEqual(typeof argv.honk, 'boolean');
31 | t.end();
32 | });
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/dash.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('-', function (t) {
5 | t.plan(5);
6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
9 | t.deepEqual(
10 | parse([ '-b', '-' ], { boolean: 'b' }),
11 | { b: true, _: [ '-' ] }
12 | );
13 | t.deepEqual(
14 | parse([ '-s', '-' ], { string: 's' }),
15 | { s: '-', _: [] }
16 | );
17 | });
18 |
19 | test('-a -- b', function (t) {
20 | t.plan(3);
21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
24 | });
25 |
26 | test('move arguments after the -- into their own `--` array', function(t) {
27 | t.plan(1);
28 | t.deepEqual(
29 | parse([ '--name', 'John', 'before', '--', 'after' ], { '--': true }),
30 | { name: 'John', _: [ 'before' ], '--': [ 'after' ] });
31 | });
32 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/default_bool.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('boolean default true', function (t) {
5 | var argv = parse([], {
6 | boolean: 'sometrue',
7 | default: { sometrue: true }
8 | });
9 | t.equal(argv.sometrue, true);
10 | t.end();
11 | });
12 |
13 | test('boolean default false', function (t) {
14 | var argv = parse([], {
15 | boolean: 'somefalse',
16 | default: { somefalse: false }
17 | });
18 | t.equal(argv.somefalse, false);
19 | t.end();
20 | });
21 |
22 | test('boolean default to null', function (t) {
23 | var argv = parse([], {
24 | boolean: 'maybe',
25 | default: { maybe: null }
26 | });
27 | t.equal(argv.maybe, null);
28 | var argv = parse(['--maybe'], {
29 | boolean: 'maybe',
30 | default: { maybe: null }
31 | });
32 | t.equal(argv.maybe, true);
33 | t.end();
34 |
35 | })
36 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/dotted.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('dotted alias', function (t) {
5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
6 | t.equal(argv.a.b, 22);
7 | t.equal(argv.aa.bb, 22);
8 | t.end();
9 | });
10 |
11 | test('dotted default', function (t) {
12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
13 | t.equal(argv.a.b, 11);
14 | t.equal(argv.aa.bb, 11);
15 | t.end();
16 | });
17 |
18 | test('dotted default with no alias', function (t) {
19 | var argv = parse('', {default: {'a.b': 11}});
20 | t.equal(argv.a.b, 11);
21 | t.end();
22 | });
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/kv_short.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('short -k=v' , function (t) {
5 | t.plan(1);
6 |
7 | var argv = parse([ '-b=123' ]);
8 | t.deepEqual(argv, { b: 123, _: [] });
9 | });
10 |
11 | test('multi short -k=v' , function (t) {
12 | t.plan(1);
13 |
14 | var argv = parse([ '-a=whatever', '-b=robots' ]);
15 | t.deepEqual(argv, { a: 'whatever', b: 'robots', _: [] });
16 | });
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/long.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('long opts', function (t) {
5 | t.deepEqual(
6 | parse([ '--bool' ]),
7 | { bool : true, _ : [] },
8 | 'long boolean'
9 | );
10 | t.deepEqual(
11 | parse([ '--pow', 'xixxle' ]),
12 | { pow : 'xixxle', _ : [] },
13 | 'long capture sp'
14 | );
15 | t.deepEqual(
16 | parse([ '--pow=xixxle' ]),
17 | { pow : 'xixxle', _ : [] },
18 | 'long capture eq'
19 | );
20 | t.deepEqual(
21 | parse([ '--host', 'localhost', '--port', '555' ]),
22 | { host : 'localhost', port : 555, _ : [] },
23 | 'long captures sp'
24 | );
25 | t.deepEqual(
26 | parse([ '--host=localhost', '--port=555' ]),
27 | { host : 'localhost', port : 555, _ : [] },
28 | 'long captures eq'
29 | );
30 | t.end();
31 | });
32 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/num.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('nums', function (t) {
5 | var argv = parse([
6 | '-x', '1234',
7 | '-y', '5.67',
8 | '-z', '1e7',
9 | '-w', '10f',
10 | '--hex', '0xdeadbeef',
11 | '789'
12 | ]);
13 | t.deepEqual(argv, {
14 | x : 1234,
15 | y : 5.67,
16 | z : 1e7,
17 | w : '10f',
18 | hex : 0xdeadbeef,
19 | _ : [ 789 ]
20 | });
21 | t.deepEqual(typeof argv.x, 'number');
22 | t.deepEqual(typeof argv.y, 'number');
23 | t.deepEqual(typeof argv.z, 'number');
24 | t.deepEqual(typeof argv.w, 'string');
25 | t.deepEqual(typeof argv.hex, 'number');
26 | t.deepEqual(typeof argv._[0], 'number');
27 | t.end();
28 | });
29 |
30 | test('already a number', function (t) {
31 | var argv = parse([ '-x', 1234, 789 ]);
32 | t.deepEqual(argv, { x : 1234, _ : [ 789 ] });
33 | t.deepEqual(typeof argv.x, 'number');
34 | t.deepEqual(typeof argv._[0], 'number');
35 | t.end();
36 | });
37 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/parse_modified.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('parse with modifier functions' , function (t) {
5 | t.plan(1);
6 |
7 | var argv = parse([ '-b', '123' ], { boolean: 'b' });
8 | t.deepEqual(argv, { b: true, _: [123] });
9 | });
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/stop_early.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('stops parsing on the first non-option when stopEarly is set', function (t) {
5 | var argv = parse(['--aaa', 'bbb', 'ccc', '--ddd'], {
6 | stopEarly: true
7 | });
8 |
9 | t.deepEqual(argv, {
10 | aaa: 'bbb',
11 | _: ['ccc', '--ddd']
12 | });
13 |
14 | t.end();
15 | });
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/minimist/test/whitespace.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('whitespace should be whitespace' , function (t) {
5 | t.plan(1);
6 | var x = parse([ '-x', '\t' ]).x;
7 | t.equal(x, '\t');
8 | });
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 | - "0.12"
6 | - "iojs"
7 | before_install:
8 | - npm install -g npm@~1.4.6
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/bin/cmd.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | var mkdirp = require('../');
4 | var minimist = require('minimist');
5 | var fs = require('fs');
6 |
7 | var argv = minimist(process.argv.slice(2), {
8 | alias: { m: 'mode', h: 'help' },
9 | string: [ 'mode' ]
10 | });
11 | if (argv.help) {
12 | fs.createReadStream(__dirname + '/usage.txt').pipe(process.stdout);
13 | return;
14 | }
15 |
16 | var paths = argv._.slice();
17 | var mode = argv.mode ? parseInt(argv.mode, 8) : undefined;
18 |
19 | (function next () {
20 | if (paths.length === 0) return;
21 | var p = paths.shift();
22 |
23 | if (mode === undefined) mkdirp(p, cb)
24 | else mkdirp(p, mode, cb)
25 |
26 | function cb (err) {
27 | if (err) {
28 | console.error(err.message);
29 | process.exit(1);
30 | }
31 | else next();
32 | }
33 | })();
34 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/bin/usage.txt:
--------------------------------------------------------------------------------
1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS}
2 |
3 | Create each supplied directory including any necessary parent directories that
4 | don't yet exist.
5 |
6 | If the directory already exists, do nothing.
7 |
8 | OPTIONS are:
9 |
10 | -m, --mode If a directory needs to be created, set the mode as an octal
11 | permission string.
12 |
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/examples/pow.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('mkdirp');
2 |
3 | mkdirp('/tmp/foo/bar/baz', function (err) {
4 | if (err) console.error(err)
5 | else console.log('pow!')
6 | });
7 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.8"
4 | - "0.10"
5 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/example/parse.js:
--------------------------------------------------------------------------------
1 | var argv = require('../')(process.argv.slice(2));
2 | console.dir(argv);
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/test/dash.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('-', function (t) {
5 | t.plan(5);
6 | t.deepEqual(parse([ '-n', '-' ]), { n: '-', _: [] });
7 | t.deepEqual(parse([ '-' ]), { _: [ '-' ] });
8 | t.deepEqual(parse([ '-f-' ]), { f: '-', _: [] });
9 | t.deepEqual(
10 | parse([ '-b', '-' ], { boolean: 'b' }),
11 | { b: true, _: [ '-' ] }
12 | );
13 | t.deepEqual(
14 | parse([ '-s', '-' ], { string: 's' }),
15 | { s: '-', _: [] }
16 | );
17 | });
18 |
19 | test('-a -- b', function (t) {
20 | t.plan(3);
21 | t.deepEqual(parse([ '-a', '--', 'b' ]), { a: true, _: [ 'b' ] });
22 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
23 | t.deepEqual(parse([ '--a', '--', 'b' ]), { a: true, _: [ 'b' ] });
24 | });
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/test/default_bool.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('boolean default true', function (t) {
5 | var argv = parse([], {
6 | boolean: 'sometrue',
7 | default: { sometrue: true }
8 | });
9 | t.equal(argv.sometrue, true);
10 | t.end();
11 | });
12 |
13 | test('boolean default false', function (t) {
14 | var argv = parse([], {
15 | boolean: 'somefalse',
16 | default: { somefalse: false }
17 | });
18 | t.equal(argv.somefalse, false);
19 | t.end();
20 | });
21 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/test/dotted.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('dotted alias', function (t) {
5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
6 | t.equal(argv.a.b, 22);
7 | t.equal(argv.aa.bb, 22);
8 | t.end();
9 | });
10 |
11 | test('dotted default', function (t) {
12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}});
13 | t.equal(argv.a.b, 11);
14 | t.equal(argv.aa.bb, 11);
15 | t.end();
16 | });
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/test/long.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var parse = require('../');
3 |
4 | test('long opts', function (t) {
5 | t.deepEqual(
6 | parse([ '--bool' ]),
7 | { bool : true, _ : [] },
8 | 'long boolean'
9 | );
10 | t.deepEqual(
11 | parse([ '--pow', 'xixxle' ]),
12 | { pow : 'xixxle', _ : [] },
13 | 'long capture sp'
14 | );
15 | t.deepEqual(
16 | parse([ '--pow=xixxle' ]),
17 | { pow : 'xixxle', _ : [] },
18 | 'long capture eq'
19 | );
20 | t.deepEqual(
21 | parse([ '--host', 'localhost', '--port', '555' ]),
22 | { host : 'localhost', port : 555, _ : [] },
23 | 'long captures sp'
24 | );
25 | t.deepEqual(
26 | parse([ '--host=localhost', '--port=555' ]),
27 | { host : 'localhost', port : 555, _ : [] },
28 | 'long captures eq'
29 | );
30 | t.end();
31 | });
32 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('parse with modifier functions' , function (t) {
5 | t.plan(1);
6 |
7 | var argv = parse([ '-b', '123' ], { boolean: 'b' });
8 | t.deepEqual(argv, { b: true, _: ['123'] });
9 | });
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/node_modules/minimist/test/whitespace.js:
--------------------------------------------------------------------------------
1 | var parse = require('../');
2 | var test = require('tape');
3 |
4 | test('whitespace should be whitespace' , function (t) {
5 | t.plan(1);
6 | var x = parse([ '-x', '\t' ]).x;
7 | t.equal(x, '\t');
8 | });
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/clobber.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../').mkdirp;
2 | var path = require('path');
3 | var fs = require('fs');
4 | var test = require('tap').test;
5 | var _0755 = parseInt('0755', 8);
6 |
7 | var ps = [ '', 'tmp' ];
8 |
9 | for (var i = 0; i < 25; i++) {
10 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
11 | ps.push(dir);
12 | }
13 |
14 | var file = ps.join('/');
15 |
16 | // a file in the way
17 | var itw = ps.slice(0, 3).join('/');
18 |
19 |
20 | test('clobber-pre', function (t) {
21 | console.error("about to write to "+itw)
22 | fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.');
23 |
24 | fs.stat(itw, function (er, stat) {
25 | t.ifError(er)
26 | t.ok(stat && stat.isFile(), 'should be file')
27 | t.end()
28 | })
29 | })
30 |
31 | test('clobber', function (t) {
32 | t.plan(2);
33 | mkdirp(file, _0755, function (err) {
34 | t.ok(err);
35 | t.equal(err.code, 'ENOTDIR');
36 | t.end();
37 | });
38 | });
39 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/mkdirp.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var exists = fs.exists || path.exists;
5 | var test = require('tap').test;
6 | var _0777 = parseInt('0777', 8);
7 | var _0755 = parseInt('0755', 8);
8 |
9 | test('woo', function (t) {
10 | t.plan(5);
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var file = '/tmp/' + [x,y,z].join('/');
16 |
17 | mkdirp(file, _0755, function (err) {
18 | t.ifError(err);
19 | exists(file, function (ex) {
20 | t.ok(ex, 'file created');
21 | fs.stat(file, function (err, stat) {
22 | t.ifError(err);
23 | t.equal(stat.mode & _0777, _0755);
24 | t.ok(stat.isDirectory(), 'target not a directory');
25 | })
26 | })
27 | });
28 | });
29 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/opts_fs.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var test = require('tap').test;
4 | var mockfs = require('mock-fs');
5 | var _0777 = parseInt('0777', 8);
6 | var _0755 = parseInt('0755', 8);
7 |
8 | test('opts.fs', function (t) {
9 | t.plan(5);
10 |
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var file = '/beep/boop/' + [x,y,z].join('/');
16 | var xfs = mockfs.fs();
17 |
18 | mkdirp(file, { fs: xfs, mode: _0755 }, function (err) {
19 | t.ifError(err);
20 | xfs.exists(file, function (ex) {
21 | t.ok(ex, 'created file');
22 | xfs.stat(file, function (err, stat) {
23 | t.ifError(err);
24 | t.equal(stat.mode & _0777, _0755);
25 | t.ok(stat.isDirectory(), 'target not a directory');
26 | });
27 | });
28 | });
29 | });
30 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/opts_fs_sync.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var test = require('tap').test;
4 | var mockfs = require('mock-fs');
5 | var _0777 = parseInt('0777', 8);
6 | var _0755 = parseInt('0755', 8);
7 |
8 | test('opts.fs sync', function (t) {
9 | t.plan(4);
10 |
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var file = '/beep/boop/' + [x,y,z].join('/');
16 | var xfs = mockfs.fs();
17 |
18 | mkdirp.sync(file, { fs: xfs, mode: _0755 });
19 | xfs.exists(file, function (ex) {
20 | t.ok(ex, 'created file');
21 | xfs.stat(file, function (err, stat) {
22 | t.ifError(err);
23 | t.equal(stat.mode & _0777, _0755);
24 | t.ok(stat.isDirectory(), 'target not a directory');
25 | });
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/perm.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var exists = fs.exists || path.exists;
5 | var test = require('tap').test;
6 | var _0777 = parseInt('0777', 8);
7 | var _0755 = parseInt('0755', 8);
8 |
9 | test('async perm', function (t) {
10 | t.plan(5);
11 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16);
12 |
13 | mkdirp(file, _0755, function (err) {
14 | t.ifError(err);
15 | exists(file, function (ex) {
16 | t.ok(ex, 'file created');
17 | fs.stat(file, function (err, stat) {
18 | t.ifError(err);
19 | t.equal(stat.mode & _0777, _0755);
20 | t.ok(stat.isDirectory(), 'target not a directory');
21 | })
22 | })
23 | });
24 | });
25 |
26 | test('async root perm', function (t) {
27 | mkdirp('/tmp', _0755, function (err) {
28 | if (err) t.fail(err);
29 | t.end();
30 | });
31 | t.end();
32 | });
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/rel.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var exists = fs.exists || path.exists;
5 | var test = require('tap').test;
6 | var _0777 = parseInt('0777', 8);
7 | var _0755 = parseInt('0755', 8);
8 |
9 | test('rel', function (t) {
10 | t.plan(5);
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var cwd = process.cwd();
16 | process.chdir('/tmp');
17 |
18 | var file = [x,y,z].join('/');
19 |
20 | mkdirp(file, _0755, function (err) {
21 | t.ifError(err);
22 | exists(file, function (ex) {
23 | t.ok(ex, 'file created');
24 | fs.stat(file, function (err, stat) {
25 | t.ifError(err);
26 | process.chdir(cwd);
27 | t.equal(stat.mode & _0777, _0755);
28 | t.ok(stat.isDirectory(), 'target not a directory');
29 | })
30 | })
31 | });
32 | });
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/return.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var test = require('tap').test;
5 |
6 | test('return value', function (t) {
7 | t.plan(4);
8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
11 |
12 | var file = '/tmp/' + [x,y,z].join('/');
13 |
14 | // should return the first dir created.
15 | // By this point, it would be profoundly surprising if /tmp didn't
16 | // already exist, since every other test makes things in there.
17 | mkdirp(file, function (err, made) {
18 | t.ifError(err);
19 | t.equal(made, '/tmp/' + x);
20 | mkdirp(file, function (err, made) {
21 | t.ifError(err);
22 | t.equal(made, null);
23 | });
24 | });
25 | });
26 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/return_sync.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var test = require('tap').test;
5 |
6 | test('return value', function (t) {
7 | t.plan(2);
8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
11 |
12 | var file = '/tmp/' + [x,y,z].join('/');
13 |
14 | // should return the first dir created.
15 | // By this point, it would be profoundly surprising if /tmp didn't
16 | // already exist, since every other test makes things in there.
17 | // Note that this will throw on failure, which will fail the test.
18 | var made = mkdirp.sync(file);
19 | t.equal(made, '/tmp/' + x);
20 |
21 | // making the same file again should have no effect.
22 | made = mkdirp.sync(file);
23 | t.equal(made, null);
24 | });
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/root.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var test = require('tap').test;
5 | var _0755 = parseInt('0755', 8);
6 |
7 | test('root', function (t) {
8 | // '/' on unix, 'c:/' on windows.
9 | var file = path.resolve('/');
10 |
11 | mkdirp(file, _0755, function (err) {
12 | if (err) throw err
13 | fs.stat(file, function (er, stat) {
14 | if (er) throw er
15 | t.ok(stat.isDirectory(), 'target is a directory');
16 | t.end();
17 | })
18 | });
19 | });
20 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/sync.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var exists = fs.exists || path.exists;
5 | var test = require('tap').test;
6 | var _0777 = parseInt('0777', 8);
7 | var _0755 = parseInt('0755', 8);
8 |
9 | test('sync', function (t) {
10 | t.plan(4);
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var file = '/tmp/' + [x,y,z].join('/');
16 |
17 | try {
18 | mkdirp.sync(file, _0755);
19 | } catch (err) {
20 | t.fail(err);
21 | return t.end();
22 | }
23 |
24 | exists(file, function (ex) {
25 | t.ok(ex, 'file created');
26 | fs.stat(file, function (err, stat) {
27 | t.ifError(err);
28 | t.equal(stat.mode & _0777, _0755);
29 | t.ok(stat.isDirectory(), 'target not a directory');
30 | });
31 | });
32 | });
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/umask.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var exists = fs.exists || path.exists;
5 | var test = require('tap').test;
6 | var _0777 = parseInt('0777', 8);
7 | var _0755 = parseInt('0755', 8);
8 |
9 | test('implicit mode from umask', function (t) {
10 | t.plan(5);
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var file = '/tmp/' + [x,y,z].join('/');
16 |
17 | mkdirp(file, function (err) {
18 | t.ifError(err);
19 | exists(file, function (ex) {
20 | t.ok(ex, 'file created');
21 | fs.stat(file, function (err, stat) {
22 | t.ifError(err);
23 | t.equal(stat.mode & _0777, _0777 & (~process.umask()));
24 | t.ok(stat.isDirectory(), 'target not a directory');
25 | });
26 | })
27 | });
28 | });
29 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mkdirp/test/umask_sync.js:
--------------------------------------------------------------------------------
1 | var mkdirp = require('../');
2 | var path = require('path');
3 | var fs = require('fs');
4 | var exists = fs.exists || path.exists;
5 | var test = require('tap').test;
6 | var _0777 = parseInt('0777', 8);
7 | var _0755 = parseInt('0755', 8);
8 |
9 | test('umask sync modes', function (t) {
10 | t.plan(4);
11 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
12 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
13 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16);
14 |
15 | var file = '/tmp/' + [x,y,z].join('/');
16 |
17 | try {
18 | mkdirp.sync(file);
19 | } catch (err) {
20 | t.fail(err);
21 | return t.end();
22 | }
23 |
24 | exists(file, function (ex) {
25 | t.ok(ex, 'file created');
26 | fs.stat(file, function (err, stat) {
27 | t.ifError(err);
28 | t.equal(stat.mode & _0777, (_0777 & (~process.umask())));
29 | t.ok(stat.isDirectory(), 'target not a directory');
30 | });
31 | });
32 | });
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mz/child_process.js:
--------------------------------------------------------------------------------
1 |
2 | require('thenify-all').withCallback(
3 | require('child_process'),
4 | exports, [
5 | 'exec',
6 | 'execFile',
7 | ]
8 | )
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mz/crypto.js:
--------------------------------------------------------------------------------
1 |
2 | require('thenify-all').withCallback(
3 | require('crypto'),
4 | exports, [
5 | 'pbkdf2',
6 | 'pseudoRandomBytes',
7 | 'randomBytes'
8 | ]
9 | )
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mz/dns.js:
--------------------------------------------------------------------------------
1 |
2 | require('thenify-all').withCallback(
3 | require('dns'),
4 | exports, [
5 | 'lookup',
6 | 'resolve',
7 | 'resolve4',
8 | 'resolve6',
9 | 'resolveCname',
10 | 'resolveMx',
11 | 'resolveNs',
12 | 'resolveSrv',
13 | 'resolveTxt',
14 | 'reverse'
15 | ]
16 | )
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mz/index.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | fs: require('./fs'),
3 | dns: require('./dns'),
4 | zlib: require('./zlib'),
5 | crypto: require('./crypto'),
6 | readline: require('./readline'),
7 | child_process: require('./child_process')
8 | }
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/mz/zlib.js:
--------------------------------------------------------------------------------
1 |
2 | require('thenify-all').withCallback(
3 | require('zlib'),
4 | exports, [
5 | 'deflate',
6 | 'deflateRaw',
7 | 'gzip',
8 | 'gunzip',
9 | 'inflate',
10 | 'inflateRaw',
11 | 'unzip',
12 | ]
13 | )
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/netmask/.npmignore:
--------------------------------------------------------------------------------
1 | .git*
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/netmask/example/ipcalc.coffee:
--------------------------------------------------------------------------------
1 | Netmask = require('netmask').Netmask
2 |
3 | ip = process.argv[2]
4 | netmask = new Netmask(ip)
5 |
6 | out = console.log
7 | out "Address: #{ip.split('/', 1)[0]}"
8 | out "Netmask: #{netmask.mask} = #{netmask.bitmask}"
9 | out "Wildcard: #{netmask.hostmask}"
10 | out "=>"
11 | out "Network: #{netmask.base}/#{netmask.bitmask}"
12 | out "HostMin: #{netmask.first}"
13 | out "HostMax: #{netmask.last}"
14 | out "Broadcast: #{netmask.broadcast}"
15 | out "Hosts/Net: #{netmask.size}"
16 |
17 | out netmask.next()
--------------------------------------------------------------------------------
/cloud/pay/node_modules/netmask/tests/netmask.js:
--------------------------------------------------------------------------------
1 | /* some troubles with vows
2 | here is some mocha test
3 |
4 | npm install
5 | mocha tests/netmask.js
6 | */
7 | var assert = require('assert');
8 |
9 | var Netmask = require('../').Netmask;
10 |
11 | var block = new Netmask('10.1.2.0/24');
12 | var b1 = new Netmask('10.1.2.10/29');
13 | var b2 = new Netmask('10.1.2.10/31');
14 | var b3 = new Netmask('10.1.2.20/32');
15 |
16 | console.log('first : '+b2.base);
17 | console.log('broadcast : '+b2.broadcast);
18 | console.log('last : ' + b2.last);
19 |
20 | describe("Netmask contains bug", function() {
21 | assert.equal(block.contains(b1),true);
22 | assert.equal(block.contains(b2),true);
23 | assert.equal(block.contains(b3),true);
24 | });
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/once/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/once/once.js:
--------------------------------------------------------------------------------
1 | var wrappy = require('wrappy')
2 | module.exports = wrappy(once)
3 | module.exports.strict = wrappy(onceStrict)
4 |
5 | once.proto = once(function () {
6 | Object.defineProperty(Function.prototype, 'once', {
7 | value: function () {
8 | return once(this)
9 | },
10 | configurable: true
11 | })
12 |
13 | Object.defineProperty(Function.prototype, 'onceStrict', {
14 | value: function () {
15 | return onceStrict(this)
16 | },
17 | configurable: true
18 | })
19 | })
20 |
21 | function once (fn) {
22 | var f = function () {
23 | if (f.called) return f.value
24 | f.called = true
25 | return f.value = fn.apply(this, arguments)
26 | }
27 | f.called = false
28 | return f
29 | }
30 |
31 | function onceStrict (fn) {
32 | var f = function () {
33 | if (f.called)
34 | throw new Error(f.onceError)
35 | f.called = true
36 | return f.value = fn.apply(this, arguments)
37 | }
38 | var name = fn.name || 'Function wrapped with `once`'
39 | f.onceError = name + " shouldn't be called more than once"
40 | f.called = false
41 | return f
42 | }
43 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/optionator/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) George Zahariev
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/os-name/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | 'use strict';
3 | var pkg = require('./package.json');
4 | var osName = require('./');
5 | var argv = process.argv;
6 |
7 | function help() {
8 | console.log([
9 | '',
10 | ' ' + pkg.description,
11 | '',
12 | ' Example',
13 | ' os-name',
14 | ' OS X Mavericks'
15 | ].join('\n'));
16 | }
17 |
18 | if (argv.indexOf('--help') !== -1) {
19 | help();
20 | return;
21 | }
22 |
23 | if (argv.indexOf('--version') !== -1) {
24 | console.log(pkg.version);
25 | return;
26 | }
27 |
28 | console.log(osName());
29 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/os-name/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var os = require('os');
3 | var osxRelease = require('osx-release');
4 | var winRelease = require('win-release');
5 |
6 | module.exports = function (platform, release) {
7 | if (!platform && release) {
8 | throw new Error('You can\'t specify a `release` without specfying `platform`');
9 | }
10 |
11 | platform = platform || os.platform();
12 | release = release || os.release();
13 |
14 | var id;
15 |
16 | if (platform === 'darwin') {
17 | id = osxRelease(release).name;
18 | return 'OS X' + (id ? ' ' + id : '');
19 | }
20 |
21 | if (platform === 'linux') {
22 | id = release.replace(/^(\d+\.\d+).*/, '$1');
23 | return 'Linux' + (id ? ' ' + id : '');
24 | }
25 |
26 | if (platform === 'win32') {
27 | id = winRelease(release);
28 | return 'Windows' + (id ? ' ' + id : '');
29 | }
30 |
31 | return platform;
32 | };
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/osx-release/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | 'use strict';
3 | var argv = require('minimist')(process.argv.slice(2));
4 | var pkg = require('./package.json');
5 | var osxRelease = require('./');
6 | var input = argv._[0];
7 |
8 | function help() {
9 | console.log([
10 | '',
11 | ' ' + pkg.description,
12 | '',
13 | ' Usage',
14 | ' osx-release [release]',
15 | '',
16 | ' Example',
17 | ' osx-release',
18 | ' Mavericks 10.9',
19 | '',
20 | ' osx-release 14.0.0',
21 | ' Yosemite 10.10'
22 | ].join('\n'));
23 | }
24 |
25 | if (!input || argv.help) {
26 | help();
27 | return;
28 | }
29 |
30 | if (argv.version) {
31 | console.log(pkg.version);
32 | return;
33 | }
34 |
35 | var output = osxRelease(input);
36 |
37 | if (!output.name || !output.version) {
38 | process.exit(1);
39 | }
40 |
41 | console.log(output.name + ' ' + output.version);
42 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/osx-release/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var os = require('os');
3 |
4 | var nameMap = {
5 | '15': 'El Capitan',
6 | '14': 'Yosemite',
7 | '13': 'Mavericks',
8 | '12': 'Mountain Lion',
9 | '11': 'Lion',
10 | '10': 'Snow Leopard',
11 | '9': 'Leopard',
12 | '8': 'Tiger',
13 | '7': 'Panther',
14 | '6': 'Jaguar',
15 | '5': 'Puma'
16 | };
17 |
18 | module.exports = function (release) {
19 | release = (release || os.release()).split('.')[0];
20 | return {
21 | name: nameMap[release],
22 | version: '10.' + (Number(release) - 4)
23 | };
24 | };
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-proxy-agent/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "6"
7 | - "7"
8 | - "8"
9 | - "9"
10 |
11 | install:
12 | - PATH="`npm bin`:`npm bin -g`:$PATH"
13 | # Install dependencies and build
14 | - npm install
15 |
16 | script:
17 | # Output useful info for debugging
18 | - node --version
19 | - npm --version
20 | # Run tests
21 | - npm test
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-proxy-agent/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-proxy-agent/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | /**
4 | * Detect Electron renderer / nwjs process, which is node, but we should
5 | * treat as a browser.
6 | */
7 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
8 | module.exports = require('./browser.js');
9 | } else {
10 | module.exports = require('./node.js');
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-proxy-agent/test/ssl-cert-snakeoil.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICWwIBAAKBgQCzURxIqzer0ACAbX/lHdsn4Gd9PLKrf7EeDYfIdV0HZKPD8WDr
3 | bBx2/fBu0OW2sjnzv/SVZbJ0DAuPE/p0+eT0qb2qC10iz9iTD7ribd7gxhirVb8y
4 | b3fBjXsxc8V8p4Ny1LcvNSqCjwUbJqdRogfoJeTiqPM58z5sNzuv5iq7iwIDAQAB
5 | AoGAPMQy4olrP0UotlzlJ36bowLP70ffgHCwU+/f4NWs5fF78c3du0oSx1w820Dd
6 | Z7E0JF8bgnlJJTxjumPZz0RUCugrEHBKJmzEz3cxF5E3+7NvteZcjKn9D67RrM5x
7 | 1/uSZ9cqKE9cYvY4fSuHx18diyZ4axR/wB1Pea2utjjDM+ECQQDb9ZbmmaWMiRpQ
8 | 5Up+loxP7BZNPsEVsm+DVJmEFbaFgGfncWBqSIqnPNjMwTwj0OigTwCAEGPkfRVW
9 | T0pbYWCxAkEA0LK7SCTwzyDmhASUalk0x+3uCAA6ryFdwJf/wd8TRAvVOmkTEldX
10 | uJ7ldLvfrONYO3v56uKTU/SoNdZYzKtO+wJAX2KM4ctXYy5BXztPpr2acz4qHa1N
11 | Bh+vBAC34fOYhyQ76r3b1btHhWZ5jbFuZwm9F2erC94Ps5IaoqcX07DSwQJAPKGw
12 | h2U0EPkd/3zVIZCJJQya+vgWFIs9EZcXVtvYXQyTBkVApTN66MhBIYjzkub5205J
13 | bVQmOV37AKklY1DhwQJAA1wos0cYxro02edzatxd0DIR2r4qqOqLkw6BhYHhq6HJ
14 | ZvIcQkHqdSXzdETFc01I1znDGGIrJHcnvKWgBPoEUg==
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-proxy-agent/test/ssl-cert-snakeoil.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIB1TCCAT4CCQDV5mPlzm9+izANBgkqhkiG9w0BAQUFADAvMS0wKwYDVQQDEyQ3
3 | NTI3YmQ3Ny1hYjNlLTQ3NGItYWNlNy1lZWQ2MDUzOTMxZTcwHhcNMTUwNzA2MjI0
4 | NTA3WhcNMjUwNzAzMjI0NTA3WjAvMS0wKwYDVQQDEyQ3NTI3YmQ3Ny1hYjNlLTQ3
5 | NGItYWNlNy1lZWQ2MDUzOTMxZTcwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
6 | ALNRHEirN6vQAIBtf+Ud2yfgZ308sqt/sR4Nh8h1XQdko8PxYOtsHHb98G7Q5bay
7 | OfO/9JVlsnQMC48T+nT55PSpvaoLXSLP2JMPuuJt3uDGGKtVvzJvd8GNezFzxXyn
8 | g3LUty81KoKPBRsmp1GiB+gl5OKo8znzPmw3O6/mKruLAgMBAAEwDQYJKoZIhvcN
9 | AQEFBQADgYEACzoHUF8UV2Z6541Q2wKEA0UFUzmUjf/E1XwBO+1P15ZZ64uw34B4
10 | 1RwMPtAo9RY/PmICTWtNxWGxkzwb2JtDWtnxVER/lF8k2XcXPE76fxTHJF/BKk9J
11 | QU8OTD1dd9gHCBviQB9TqntRZ5X7axjtuWjb2umY+owBYzAHZkp1HKI=
12 | -----END CERTIFICATE-----
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/.npmignore:
--------------------------------------------------------------------------------
1 | /node_modules
2 |
3 | # ignore local dev files
4 | /automattic.js
5 | /?.js
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "1"
7 | - "2"
8 | - "3.2"
9 | - "4"
10 | - "5"
11 | - "6"
12 | - "7"
13 | - "8"
14 |
15 | install:
16 | - PATH="`npm bin`:`npm bin -g`:$PATH"
17 | # Install dependencies and build
18 | - npm install
19 |
20 | script:
21 | # Output useful info for debugging
22 | - node --version
23 | - npm --version
24 | # Run tests
25 | - npm test
26 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/dnsDomainIs.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module exports.
4 | */
5 |
6 | module.exports = dnsDomainIs;
7 |
8 | /**
9 | * Returns true iff the domain of hostname matches.
10 | *
11 | * Examples:
12 | *
13 | * ``` js
14 | * dnsDomainIs("www.netscape.com", ".netscape.com")
15 | * // is true.
16 | *
17 | * dnsDomainIs("www", ".netscape.com")
18 | * // is false.
19 | *
20 | * dnsDomainIs("www.mcom.com", ".netscape.com")
21 | * // is false.
22 | * ```
23 | *
24 | *
25 | * @param {String} host is the hostname from the URL.
26 | * @param {String} domain is the domain name to test the hostname against.
27 | * @return {Boolean} true iff the domain of the hostname matches.
28 | */
29 |
30 | function dnsDomainIs (host, domain) {
31 | host = String(host);
32 | domain = String(domain);
33 | return host.substr(domain.length * -1) === domain;
34 | }
35 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/dnsDomainLevels.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module exports.
4 | */
5 |
6 | module.exports = dnsDomainLevels;
7 |
8 | /**
9 | * Returns the number (integer) of DNS domain levels (number of dots) in the
10 | * hostname.
11 | *
12 | * Examples:
13 | *
14 | * ``` js
15 | * dnsDomainLevels("www")
16 | * // returns 0.
17 | * dnsDomainLevels("www.netscape.com")
18 | * // returns 2.
19 | * ```
20 | *
21 | * @param {String} host is the hostname from the URL.
22 | * @return {Number} number of domain levels
23 | */
24 |
25 | function dnsDomainLevels (host) {
26 | var match = String(host).match(/\./g);
27 | var levels = 0;
28 | if (match) {
29 | levels = match.length;
30 | }
31 | return levels;
32 | }
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/dnsResolve.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var dns = require('dns');
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = dnsResolve;
13 |
14 | dnsResolve.async = true;
15 |
16 | /**
17 | * Resolves the given DNS hostname into an IP address, and returns it in the dot
18 | * separated format as a string.
19 | *
20 | * Example:
21 | *
22 | * ``` js
23 | * dnsResolve("home.netscape.com")
24 | * // returns the string "198.95.249.79".
25 | * ```
26 | *
27 | * @param {String} host hostname to resolve
28 | * @return {String} resolved IP address
29 | */
30 |
31 | function dnsResolve (host, fn) {
32 | var family = 4;
33 | dns.lookup(host, family, function (err, ip) {
34 | if (err) return fn(err);
35 | fn(null, ip || '127.0.0.1');
36 | });
37 | }
38 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/isPlainHostName.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module exports.
4 | */
5 |
6 | module.exports = isPlainHostName;
7 |
8 | /**
9 | * True iff there is no domain name in the hostname (no dots).
10 | *
11 | * Examples:
12 | *
13 | * ``` js
14 | * isPlainHostName("www")
15 | * // is true.
16 | *
17 | * isPlainHostName("www.netscape.com")
18 | * // is false.
19 | * ```
20 | *
21 | * @param {String} host The hostname from the URL (excluding port number).
22 | * @return {Boolean}
23 | */
24 |
25 | function isPlainHostName (host) {
26 | return !(/\./.test(host));
27 | }
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/isResolvable.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var dns = require('dns');
7 |
8 | /**
9 | * Module exports.
10 | */
11 |
12 | module.exports = isResolvable;
13 |
14 | isResolvable.async = true;
15 |
16 | /**
17 | * Tries to resolve the hostname. Returns true if succeeds.
18 | *
19 | * @param {String} host is the hostname from the URL.
20 | * @return {Boolean}
21 | */
22 |
23 | function isResolvable (host, fn) {
24 | var family = 4;
25 | dns.lookup(host, family, function (err, ip) {
26 | fn(null, !err);
27 | });
28 | }
29 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/dnsDomainIs.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var assert = require('assert');
7 | var dnsDomainIs = require('../dnsDomainIs');
8 |
9 | describe('dnsDomainIs(host, domain)', function () {
10 |
11 | var tests = [
12 | ["www.netscape.com", ".netscape.com", true],
13 | ["www", ".netscape.com", false],
14 | ["www.mcom.com", ".netscape.com", false]
15 | ];
16 |
17 | tests.forEach(function (test) {
18 | var expected = test.pop();
19 | it('should return `' + expected +'` for "' + test.join('", "') + '"', function () {
20 | assert.equal(expected, dnsDomainIs(test[0], test[1]));
21 | });
22 | });
23 |
24 | });
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/dnsDomainLevels.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var assert = require('assert');
7 | var dnsDomainLevels = require('../dnsDomainLevels');
8 |
9 | describe('dnsDomainLevels(host)', function () {
10 |
11 | var tests = [
12 | ["www", 0],
13 | ["www.netscape", 1],
14 | ["www.netscape.com", 2]
15 | ];
16 |
17 | tests.forEach(function (test) {
18 | var expected = test.pop();
19 | it('should return `' + expected +'` for "' + test.join('", "') + '"', function () {
20 | assert.equal(expected, dnsDomainLevels(test[0]));
21 | });
22 | });
23 |
24 | });
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/dnsResolve.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var isIP = require('net').isIP;
7 | var assert = require('assert');
8 | var dnsResolve = require('../dnsResolve');
9 |
10 | describe('dnsResolve(host)', function () {
11 |
12 | var tests = [
13 | ["www.netscape.com", true],
14 | ["bogus.domain.foobar", false]
15 | ];
16 |
17 | tests.forEach(function (test) {
18 | var expected = test.pop();
19 | if (expected) {
20 | it('should resolve an IPv4 address for "' + test.join('", "') + '"', function (done) {
21 | dnsResolve(test[0], function (err, res) {
22 | if (err) return done(err);
23 | assert.equal('string', typeof res);
24 | assert.equal(4, isIP(res));
25 | done();
26 | });
27 | });
28 | } else {
29 | it('should throw a not found Error for "' + test.join('", "') + '"', function (done) {
30 | dnsResolve(test[0], function (err, res) {
31 | assert(err);
32 | done();
33 | });
34 | });
35 | }
36 | });
37 |
38 | });
39 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/isInNet.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var assert = require('assert');
7 | var isInNet = require('../isInNet');
8 |
9 | describe('isInNet(host, pattern, mask)', function () {
10 |
11 | var tests = [
12 | ["198.95.249.79", "198.95.249.79", "255.255.255.255", true],
13 | ["198.95.249.78", "198.95.249.79", "255.255.255.255", false],
14 | ["198.95.1.1", "198.95.0.0", "255.255.0.0", true],
15 | ["198.94.1.1", "198.95.0.0", "255.255.0.0", false]
16 | ];
17 |
18 | tests.forEach(function (test) {
19 | var expected = test.pop();
20 | it('should return `' + expected +'` for "' + test.join('", "') + '"', function (done) {
21 | isInNet(test[0], test[1], test[2], function (err, res) {
22 | if (err) return done(err);
23 | assert.equal(expected, res);
24 | done();
25 | });
26 | });
27 | });
28 |
29 | });
30 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/isPlainHostName.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var assert = require('assert');
7 | var isPlainHostName = require('../isPlainHostName');
8 |
9 | describe('isPlainHostName(host)', function () {
10 |
11 | var tests = [
12 | ["www", true],
13 | ["www.netscape.com", false]
14 | ];
15 |
16 | tests.forEach(function (test) {
17 | var expected = test.pop();
18 | it('should return `' + expected +'` for "' + test.join('", "') + '"', function () {
19 | assert.equal(expected, isPlainHostName(test[0]));
20 | });
21 | });
22 |
23 | });
24 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/isResolvable.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var assert = require('assert');
7 | var isResolvable = require('../isResolvable');
8 |
9 | describe('isResolvable(host)', function () {
10 |
11 | var tests = [
12 | ["www.netscape.com", true],
13 | ["bogus.domain.foobar", false]
14 | ];
15 |
16 | tests.forEach(function (test) {
17 | var expected = test.pop();
18 | it('should return `' + expected +'` for "' + test.join('", "') + '"', function (done) {
19 | isResolvable(test[0], function (err, res) {
20 | if (err) return done(err);
21 | assert.equal(expected, res);
22 | done();
23 | });
24 | });
25 | });
26 |
27 | });
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/localHostOrDomainIs.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var assert = require('assert');
7 | var localHostOrDomainIs = require('../localHostOrDomainIs');
8 |
9 | describe('localHostOrDomainIs(host, hostdom)', function () {
10 |
11 | var tests = [
12 | ["www.netscape.com", "www.netscape.com", true],
13 | ["www", "www.netscape.com", true],
14 | ["www.mcom.com", "www.netscape.com", false],
15 | ["home.netscape.com", "www.netscape.com", false]
16 | ];
17 |
18 | tests.forEach(function (test) {
19 | var expected = test.pop();
20 | it('should return `' + expected +'` for "' + test.join('", "') + '"', function () {
21 | assert.equal(expected, localHostOrDomainIs(test[0], test[1]));
22 | });
23 | });
24 |
25 | });
26 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pac-resolver/test/myIpAddress.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var isIP = require('net').isIP;
7 | var assert = require('assert');
8 | var myIpAddress = require('../myIpAddress');
9 |
10 | describe('myIpAddress()', function () {
11 |
12 | it('should return an IPv4 address', function (done) {
13 | myIpAddress(function (err, ip) {
14 | if (err) return done(err);
15 | assert.equal(4, isIP(ip));
16 | done();
17 | });
18 | });
19 |
20 | });
21 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pause-stream/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | node_modules/*
3 | npm_debug.log
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pause-stream/index.js:
--------------------------------------------------------------------------------
1 | //through@2 handles this by default!
2 | module.exports = require('through')
3 |
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pause-stream/readme.markdown:
--------------------------------------------------------------------------------
1 | # PauseStream
2 |
3 | This is a `Stream` that will strictly buffer when paused.
4 | Connect it to anything you need buffered.
5 |
6 | ``` js
7 | var ps = require('pause-stream')();
8 |
9 | badlyBehavedStream.pipe(ps.pause())
10 |
11 | aLittleLater(function (err, data) {
12 | ps.pipe(createAnotherStream(data))
13 | ps.resume()
14 | })
15 | ```
16 |
17 | `PauseStream` will buffer whenever paused.
18 | it will buffer when yau have called `pause` manually.
19 | but also when it's downstream `dest.write()===false`.
20 | it will attempt to drain the buffer when you call resume
21 | or the downstream emits `'drain'`
22 |
23 | `PauseStream` is tested using [stream-spec](https://github.com/dominictarr/stream-spec)
24 | and [stream-tester](https://github.com/dominictarr/stream-tester)
25 |
26 | This is now the default case of
27 | [through](https://github.com/dominictarr/through)
28 |
29 | https://github.com/dominictarr/pause-stream/commit/4a6fe3dc2c11091b1efbfde912e0473719ed9cc0
30 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pause-stream/test/index.js:
--------------------------------------------------------------------------------
1 | var spec = require('stream-spec')
2 | var tester = require('stream-tester')
3 | var ps = require('..')()
4 |
5 | spec(ps)
6 | .through({strict: false})
7 | .validateOnExit()
8 |
9 | var master = tester.createConsistent
10 |
11 | tester.createRandomStream(1000) //1k random numbers
12 | .pipe(master = tester.createConsistentStream())
13 | .pipe(tester.createUnpauseStream())
14 | .pipe(ps)
15 | .pipe(tester.createPauseStream())
16 | .pipe(master.createSlave())
17 |
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pause-stream/test/pause-end.js:
--------------------------------------------------------------------------------
1 |
2 | var pause = require('..')
3 | var assert = require('assert')
4 |
5 | var ps = pause()
6 | var read = [], ended = false
7 |
8 | ps.on('data', function (i) {
9 | read.push(i)
10 | })
11 |
12 | ps.on('end', function () {
13 | ended = true
14 | })
15 |
16 | assert.deepEqual(read, [])
17 |
18 | ps.write(0)
19 | ps.write(1)
20 | ps.write(2)
21 |
22 | assert.deepEqual(read, [0, 1, 2])
23 |
24 | ps.pause()
25 |
26 | assert.deepEqual(read, [0, 1, 2])
27 |
28 | ps.end()
29 | assert.equal(ended, false)
30 | ps.resume()
31 | assert.equal(ended, true)
32 |
33 |
34 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/prelude-ls/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) George Zahariev
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/prelude-ls/README.md:
--------------------------------------------------------------------------------
1 | # prelude.ls [](https://travis-ci.org/gkz/prelude-ls)
2 |
3 | is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
4 |
5 | See **[the prelude.ls site](http://preludels.com)** for examples, a reference, and more.
6 |
7 | You can install via npm `npm install prelude-ls`
8 |
9 | ### Development
10 |
11 | `make test` to test
12 |
13 | `make build` to build `lib` from `src`
14 |
15 | `make build-browser` to build browser versions
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-agent/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "6"
7 | - "7"
8 | - "8"
9 | - "9"
10 |
11 | install:
12 | - PATH="`npm bin`:`npm bin -g`:$PATH"
13 | # Install dependencies and build
14 | - npm install
15 |
16 | script:
17 | # Output useful info for debugging
18 | - node --version
19 | - npm --version
20 | # Run tests
21 | - npm test
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-agent/index.d.ts:
--------------------------------------------------------------------------------
1 | import { Agent, AgentOptions } from 'agent-base';
2 |
3 | declare module ProxyAgent {
4 | interface ProxyAgent extends Agent {
5 | }
6 | }
7 |
8 | declare const proxy: ProxyAgentConstructor;
9 |
10 | interface ProxyAgentConstructor {
11 | (options: AgentOptions | string): ProxyAgent.ProxyAgent;
12 | new (options: AgentOptions | string): ProxyAgent.ProxyAgent;
13 | }
14 |
15 | export = proxy;
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-agent/node_modules/debug/node.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./src/node');
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-agent/node_modules/debug/src/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | /**
4 | * Detect Electron renderer / nwjs process, which is node, but we should
5 | * treat as a browser.
6 | */
7 | if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
8 | module.exports = require('./browser.js');
9 | } else {
10 | module.exports = require('./node.js');
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-agent/test/ssl-cert-snakeoil.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICWwIBAAKBgQCzURxIqzer0ACAbX/lHdsn4Gd9PLKrf7EeDYfIdV0HZKPD8WDr
3 | bBx2/fBu0OW2sjnzv/SVZbJ0DAuPE/p0+eT0qb2qC10iz9iTD7ribd7gxhirVb8y
4 | b3fBjXsxc8V8p4Ny1LcvNSqCjwUbJqdRogfoJeTiqPM58z5sNzuv5iq7iwIDAQAB
5 | AoGAPMQy4olrP0UotlzlJ36bowLP70ffgHCwU+/f4NWs5fF78c3du0oSx1w820Dd
6 | Z7E0JF8bgnlJJTxjumPZz0RUCugrEHBKJmzEz3cxF5E3+7NvteZcjKn9D67RrM5x
7 | 1/uSZ9cqKE9cYvY4fSuHx18diyZ4axR/wB1Pea2utjjDM+ECQQDb9ZbmmaWMiRpQ
8 | 5Up+loxP7BZNPsEVsm+DVJmEFbaFgGfncWBqSIqnPNjMwTwj0OigTwCAEGPkfRVW
9 | T0pbYWCxAkEA0LK7SCTwzyDmhASUalk0x+3uCAA6ryFdwJf/wd8TRAvVOmkTEldX
10 | uJ7ldLvfrONYO3v56uKTU/SoNdZYzKtO+wJAX2KM4ctXYy5BXztPpr2acz4qHa1N
11 | Bh+vBAC34fOYhyQ76r3b1btHhWZ5jbFuZwm9F2erC94Ps5IaoqcX07DSwQJAPKGw
12 | h2U0EPkd/3zVIZCJJQya+vgWFIs9EZcXVtvYXQyTBkVApTN66MhBIYjzkub5205J
13 | bVQmOV37AKklY1DhwQJAA1wos0cYxro02edzatxd0DIR2r4qqOqLkw6BhYHhq6HJ
14 | ZvIcQkHqdSXzdETFc01I1znDGGIrJHcnvKWgBPoEUg==
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-agent/test/ssl-cert-snakeoil.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIB1TCCAT4CCQDV5mPlzm9+izANBgkqhkiG9w0BAQUFADAvMS0wKwYDVQQDEyQ3
3 | NTI3YmQ3Ny1hYjNlLTQ3NGItYWNlNy1lZWQ2MDUzOTMxZTcwHhcNMTUwNzA2MjI0
4 | NTA3WhcNMjUwNzAzMjI0NTA3WjAvMS0wKwYDVQQDEyQ3NTI3YmQ3Ny1hYjNlLTQ3
5 | NGItYWNlNy1lZWQ2MDUzOTMxZTcwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
6 | ALNRHEirN6vQAIBtf+Ud2yfgZ308sqt/sR4Nh8h1XQdko8PxYOtsHHb98G7Q5bay
7 | OfO/9JVlsnQMC48T+nT55PSpvaoLXSLP2JMPuuJt3uDGGKtVvzJvd8GNezFzxXyn
8 | g3LUty81KoKPBRsmp1GiB+gl5OKo8znzPmw3O6/mKruLAgMBAAEwDQYJKoZIhvcN
9 | AQEFBQADgYEACzoHUF8UV2Z6541Q2wKEA0UFUzmUjf/E1XwBO+1P15ZZ64uw34B4
10 | 1RwMPtAo9RY/PmICTWtNxWGxkzwb2JtDWtnxVER/lF8k2XcXPE76fxTHJF/BKk9J
11 | QU8OTD1dd9gHCBviQB9TqntRZ5X7axjtuWjb2umY+owBYzAHZkp1HKI=
12 | -----END CERTIFICATE-----
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-from-env/.jscsrc:
--------------------------------------------------------------------------------
1 | {
2 | "preset": "node-style-guide"
3 | }
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-from-env/.jshintrc:
--------------------------------------------------------------------------------
1 | {
2 | "curly": true,
3 | "eqeqeq": true,
4 | "freeze": true,
5 | "indent": 2,
6 | "newcap": true,
7 | "quotmark": "single",
8 | "maxdepth": 3,
9 | "maxlen": 80,
10 | "eqnull": true,
11 | "funcscope": true,
12 | "node": true,
13 | "undef": true,
14 | "unused": "vars"
15 | }
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-from-env/.npmignore:
--------------------------------------------------------------------------------
1 | *.swp
2 | coverage/
3 | node_modules/
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/proxy-from-env/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - node
4 | - 0.10
5 | script:
6 | - npm run lint
7 | # test-coverage will also run the tests, but does not print helpful output upon test failure.
8 | # So we also run the tests separately.
9 | - npm run test
10 | - npm run test-coverage && cat coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf coverage
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pseudomap/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pseudomap/map.js:
--------------------------------------------------------------------------------
1 | if (process.env.npm_package_name === 'pseudomap' &&
2 | process.env.npm_lifecycle_script === 'test')
3 | process.env.TEST_PSEUDOMAP = 'true'
4 |
5 | if (typeof Map === 'function' && !process.env.TEST_PSEUDOMAP) {
6 | module.exports = Map
7 | } else {
8 | module.exports = require('./pseudomap')
9 | }
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/pump/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "0.10"
4 |
5 | script: "npm test"
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/qs/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 4
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 | max_line_length = 160
11 |
12 | [test/*]
13 | max_line_length = off
14 |
15 | [*.md]
16 | max_line_length = off
17 |
18 | [*.json]
19 | max_line_length = off
20 |
21 | [Makefile]
22 | max_line_length = off
23 |
24 | [CHANGELOG.md]
25 | indent_style = space
26 | indent_size = 2
27 |
28 | [LICENSE]
29 | indent_size = 2
30 | max_line_length = off
31 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/qs/.eslintignore:
--------------------------------------------------------------------------------
1 | dist
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/qs/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 |
4 | "extends": "@ljharb",
5 |
6 | "rules": {
7 | "complexity": 0,
8 | "consistent-return": 1,
9 | "func-name-matching": 0,
10 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
11 | "indent": [2, 4],
12 | "max-lines-per-function": [2, { "max": 150 }],
13 | "max-params": [2, 14],
14 | "max-statements": [2, 52],
15 | "multiline-comment-style": 0,
16 | "no-continue": 1,
17 | "no-magic-numbers": 0,
18 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
19 | "operator-linebreak": [2, "before"],
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/qs/lib/formats.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var replace = String.prototype.replace;
4 | var percentTwenties = /%20/g;
5 |
6 | module.exports = {
7 | 'default': 'RFC3986',
8 | formatters: {
9 | RFC1738: function (value) {
10 | return replace.call(value, percentTwenties, '+');
11 | },
12 | RFC3986: function (value) {
13 | return value;
14 | }
15 | },
16 | RFC1738: 'RFC1738',
17 | RFC3986: 'RFC3986'
18 | };
19 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/qs/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var stringify = require('./stringify');
4 | var parse = require('./parse');
5 | var formats = require('./formats');
6 |
7 | module.exports = {
8 | formats: formats,
9 | parse: parse,
10 | stringify: stringify
11 | };
12 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/qs/test/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "array-bracket-newline": 0,
4 | "array-element-newline": 0,
5 | "consistent-return": 2,
6 | "function-paren-newline": 0,
7 | "max-lines": 0,
8 | "max-lines-per-function": 0,
9 | "max-nested-callbacks": [2, 3],
10 | "max-statements": 0,
11 | "no-buffer-constructor": 0,
12 | "no-extend-native": 0,
13 | "no-magic-numbers": 0,
14 | "object-curly-newline": 0,
15 | "sort-keys": 0
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/qs/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | require('./parse');
4 |
5 | require('./stringify');
6 |
7 | require('./utils');
8 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/readable-stream/experimentalWarning.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 |
3 | var experimentalWarnings = new Set();
4 |
5 | function emitExperimentalWarning(feature) {
6 | if (experimentalWarnings.has(feature)) return;
7 | var msg = feature + ' is an experimental feature. This feature could ' +
8 | 'change at any time';
9 | experimentalWarnings.add(feature);
10 | process.emitWarning(msg, 'ExperimentalWarning');
11 | }
12 |
13 | function noop() {}
14 |
15 | module.exports.emitExperimentalWarning = process.emitWarning
16 | ? emitExperimentalWarning
17 | : noop;
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/readable-stream/lib/internal/streams/state.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
4 |
5 | function highWaterMarkFrom(options, isDuplex, duplexKey) {
6 | return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
7 | }
8 |
9 | function getHighWaterMark(state, options, duplexKey, isDuplex) {
10 | var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
11 |
12 | if (hwm != null) {
13 | if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
14 | var name = isDuplex ? duplexKey : 'highWaterMark';
15 | throw new ERR_INVALID_OPT_VALUE(name, hwm);
16 | }
17 |
18 | return Math.floor(hwm);
19 | } // Default value
20 |
21 |
22 | return state.objectMode ? 16 : 16 * 1024;
23 | }
24 |
25 | module.exports = {
26 | getHighWaterMark: getHighWaterMark
27 | };
--------------------------------------------------------------------------------
/cloud/pay/node_modules/readable-stream/lib/internal/streams/stream-browser.js:
--------------------------------------------------------------------------------
1 | module.exports = require('events').EventEmitter;
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/readable-stream/lib/internal/streams/stream.js:
--------------------------------------------------------------------------------
1 | module.exports = require('stream');
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/readable-stream/readable-browser.js:
--------------------------------------------------------------------------------
1 | exports = module.exports = require('./lib/_stream_readable.js');
2 | exports.Stream = exports;
3 | exports.Readable = exports;
4 | exports.Writable = require('./lib/_stream_writable.js');
5 | exports.Duplex = require('./lib/_stream_duplex.js');
6 | exports.Transform = require('./lib/_stream_transform.js');
7 | exports.PassThrough = require('./lib/_stream_passthrough.js');
8 | exports.finished = require('./lib/internal/streams/end-of-stream.js');
9 | exports.pipeline = require('./lib/internal/streams/pipeline.js');
10 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/readable-stream/readable.js:
--------------------------------------------------------------------------------
1 | var Stream = require('stream');
2 | if (process.env.READABLE_STREAM === 'disable' && Stream) {
3 | module.exports = Stream.Readable;
4 | Object.assign(module.exports, Stream);
5 | module.exports.Stream = Stream;
6 | } else {
7 | exports = module.exports = require('./lib/_stream_readable.js');
8 | exports.Stream = Stream || exports;
9 | exports.Readable = exports;
10 | exports.Writable = require('./lib/_stream_writable.js');
11 | exports.Duplex = require('./lib/_stream_duplex.js');
12 | exports.Transform = require('./lib/_stream_transform.js');
13 | exports.PassThrough = require('./lib/_stream_passthrough.js');
14 | exports.finished = require('./lib/internal/streams/end-of-stream.js');
15 | exports.pipeline = require('./lib/internal/streams/pipeline.js');
16 | }
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/semver/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # changes log
2 |
3 | ## 5.7
4 |
5 | * Add `minVersion` method
6 |
7 | ## 5.6
8 |
9 | * Move boolean `loose` param to an options object, with
10 | backwards-compatibility protection.
11 | * Add ability to opt out of special prerelease version handling with
12 | the `includePrerelease` option flag.
13 |
14 | ## 5.5
15 |
16 | * Add version coercion capabilities
17 |
18 | ## 5.4
19 |
20 | * Add intersection checking
21 |
22 | ## 5.3
23 |
24 | * Add `minSatisfying` method
25 |
26 | ## 5.2
27 |
28 | * Add `prerelease(v)` that returns prerelease components
29 |
30 | ## 5.1
31 |
32 | * Add Backus-Naur for ranges
33 | * Remove excessively cute inspection methods
34 |
35 | ## 5.0
36 |
37 | * Remove AMD/Browserified build artifacts
38 | * Fix ltr and gtr when using the `*` range
39 | * Fix for range `*` with a prerelease identifier
40 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/semver/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/semver/range.bnf:
--------------------------------------------------------------------------------
1 | range-set ::= range ( logical-or range ) *
2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) *
3 | range ::= hyphen | simple ( ' ' simple ) * | ''
4 | hyphen ::= partial ' - ' partial
5 | simple ::= primitive | partial | tilde | caret
6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
8 | xr ::= 'x' | 'X' | '*' | nr
9 | nr ::= '0' | [1-9] ( [0-9] ) *
10 | tilde ::= '~' partial
11 | caret ::= '^' partial
12 | qualifier ::= ( '-' pre )? ( '+' build )?
13 | pre ::= parts
14 | build ::= parts
15 | parts ::= part ( '.' part ) *
16 | part ::= nr | [-0-9A-Za-z]+
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/setprototypeof/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Wes Todd
2 |
3 | Permission to use, copy, modify, and/or distribute this software for any
4 | purpose with or without fee is hereby granted, provided that the above
5 | copyright notice and this permission notice appear in all copies.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
10 | SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
12 | OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
13 | CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/setprototypeof/README.md:
--------------------------------------------------------------------------------
1 | # Polyfill for `Object.setPrototypeOf`
2 |
3 | [](https://npmjs.org/package/setprototypeof)
4 | [](https://npmjs.org/package/setprototypeof)
5 | [](https://github.com/standard/standard)
6 |
7 | A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8.
8 |
9 | ## Usage:
10 |
11 | ```
12 | $ npm install --save setprototypeof
13 | ```
14 |
15 | ```javascript
16 | var setPrototypeOf = require('setprototypeof')
17 |
18 | var obj = {}
19 | setPrototypeOf(obj, {
20 | foo: function () {
21 | return 'bar'
22 | }
23 | })
24 | obj.foo() // bar
25 | ```
26 |
27 | TypeScript is also supported:
28 |
29 | ```typescript
30 | import setPrototypeOf = require('setprototypeof')
31 | ```
32 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/setprototypeof/index.d.ts:
--------------------------------------------------------------------------------
1 | declare function setPrototypeOf(o: any, proto: object | null): any;
2 | export = setPrototypeOf;
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/setprototypeof/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | /* eslint no-proto: 0 */
3 | module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties)
4 |
5 | function setProtoOf (obj, proto) {
6 | obj.__proto__ = proto
7 | return obj
8 | }
9 |
10 | function mixinProperties (obj, proto) {
11 | for (var prop in proto) {
12 | if (!obj.hasOwnProperty(prop)) {
13 | obj[prop] = proto[prop]
14 | }
15 | }
16 | return obj
17 | }
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/setprototypeof/test/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | /* eslint-env mocha */
3 | /* eslint no-proto: 0 */
4 | var assert = require('assert')
5 | var setPrototypeOf = require('..')
6 |
7 | describe('setProtoOf(obj, proto)', function () {
8 | it('should merge objects', function () {
9 | var obj = { a: 1, b: 2 }
10 | var proto = { b: 3, c: 4 }
11 | var mergeObj = setPrototypeOf(obj, proto)
12 |
13 | if (Object.getPrototypeOf) {
14 | assert.strictEqual(Object.getPrototypeOf(obj), proto)
15 | } else if ({ __proto__: [] } instanceof Array) {
16 | assert.strictEqual(obj.__proto__, proto)
17 | } else {
18 | assert.strictEqual(obj.a, 1)
19 | assert.strictEqual(obj.b, 2)
20 | assert.strictEqual(obj.c, 4)
21 | }
22 | assert.strictEqual(mergeObj, obj)
23 | })
24 | })
25 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/smart-buffer/.prettierrc.yaml:
--------------------------------------------------------------------------------
1 | parser: typescript
2 | printWidth: 120
3 | tabWidth: 2
4 | singleQuote: true
5 | trailingComma: none
--------------------------------------------------------------------------------
/cloud/pay/node_modules/smart-buffer/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 4
4 | - 6
5 | - 7
6 | - stable
7 |
8 | before_script:
9 | - npm install -g typescript
10 | - tsc -p ./
11 |
12 | script: "npm run coveralls"
--------------------------------------------------------------------------------
/cloud/pay/node_modules/smart-buffer/docs/ROADMAP.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/qiushi123/cloud-pay/260f2c1e693a055c8c81ace88febdbeba06a7a7f/cloud/pay/node_modules/smart-buffer/docs/ROADMAP.md
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks-proxy-agent/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "6"
7 | - "7"
8 | - "8"
9 | - "9"
10 |
11 | install:
12 | - PATH="`npm bin`:`npm bin -g`:$PATH"
13 | # Install dependencies and build
14 | - npm install
15 |
16 | script:
17 | # Output useful info for debugging
18 | - node --version
19 | - npm --version
20 | # Run tests
21 | - npm test
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks-proxy-agent/node_modules/agent-base/.travis.yml:
--------------------------------------------------------------------------------
1 | sudo: false
2 |
3 | language: node_js
4 |
5 | node_js:
6 | - "4"
7 | - "5"
8 | - "6"
9 | - "7"
10 | - "8"
11 | - "9"
12 |
13 | install:
14 | - PATH="`npm bin`:`npm bin -g`:$PATH"
15 | # Install dependencies and build
16 | - npm install
17 |
18 | script:
19 | # Output useful info for debugging
20 | - node --version
21 | - npm --version
22 | # Run tests
23 | - npm test
24 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks-proxy-agent/node_modules/agent-base/test/ssl-cert-snakeoil.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICWwIBAAKBgQCzURxIqzer0ACAbX/lHdsn4Gd9PLKrf7EeDYfIdV0HZKPD8WDr
3 | bBx2/fBu0OW2sjnzv/SVZbJ0DAuPE/p0+eT0qb2qC10iz9iTD7ribd7gxhirVb8y
4 | b3fBjXsxc8V8p4Ny1LcvNSqCjwUbJqdRogfoJeTiqPM58z5sNzuv5iq7iwIDAQAB
5 | AoGAPMQy4olrP0UotlzlJ36bowLP70ffgHCwU+/f4NWs5fF78c3du0oSx1w820Dd
6 | Z7E0JF8bgnlJJTxjumPZz0RUCugrEHBKJmzEz3cxF5E3+7NvteZcjKn9D67RrM5x
7 | 1/uSZ9cqKE9cYvY4fSuHx18diyZ4axR/wB1Pea2utjjDM+ECQQDb9ZbmmaWMiRpQ
8 | 5Up+loxP7BZNPsEVsm+DVJmEFbaFgGfncWBqSIqnPNjMwTwj0OigTwCAEGPkfRVW
9 | T0pbYWCxAkEA0LK7SCTwzyDmhASUalk0x+3uCAA6ryFdwJf/wd8TRAvVOmkTEldX
10 | uJ7ldLvfrONYO3v56uKTU/SoNdZYzKtO+wJAX2KM4ctXYy5BXztPpr2acz4qHa1N
11 | Bh+vBAC34fOYhyQ76r3b1btHhWZ5jbFuZwm9F2erC94Ps5IaoqcX07DSwQJAPKGw
12 | h2U0EPkd/3zVIZCJJQya+vgWFIs9EZcXVtvYXQyTBkVApTN66MhBIYjzkub5205J
13 | bVQmOV37AKklY1DhwQJAA1wos0cYxro02edzatxd0DIR2r4qqOqLkw6BhYHhq6HJ
14 | ZvIcQkHqdSXzdETFc01I1znDGGIrJHcnvKWgBPoEUg==
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks-proxy-agent/node_modules/agent-base/test/ssl-cert-snakeoil.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIB1TCCAT4CCQDV5mPlzm9+izANBgkqhkiG9w0BAQUFADAvMS0wKwYDVQQDEyQ3
3 | NTI3YmQ3Ny1hYjNlLTQ3NGItYWNlNy1lZWQ2MDUzOTMxZTcwHhcNMTUwNzA2MjI0
4 | NTA3WhcNMjUwNzAzMjI0NTA3WjAvMS0wKwYDVQQDEyQ3NTI3YmQ3Ny1hYjNlLTQ3
5 | NGItYWNlNy1lZWQ2MDUzOTMxZTcwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
6 | ALNRHEirN6vQAIBtf+Ud2yfgZ308sqt/sR4Nh8h1XQdko8PxYOtsHHb98G7Q5bay
7 | OfO/9JVlsnQMC48T+nT55PSpvaoLXSLP2JMPuuJt3uDGGKtVvzJvd8GNezFzxXyn
8 | g3LUty81KoKPBRsmp1GiB+gl5OKo8znzPmw3O6/mKruLAgMBAAEwDQYJKoZIhvcN
9 | AQEFBQADgYEACzoHUF8UV2Z6541Q2wKEA0UFUzmUjf/E1XwBO+1P15ZZ64uw34B4
10 | 1RwMPtAo9RY/PmICTWtNxWGxkzwb2JtDWtnxVER/lF8k2XcXPE76fxTHJF/BKk9J
11 | QU8OTD1dd9gHCBviQB9TqntRZ5X7axjtuWjb2umY+owBYzAHZkp1HKI=
12 | -----END CERTIFICATE-----
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks-proxy-agent/test/ssl-cert-snakeoil.key:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICWwIBAAKBgQCzURxIqzer0ACAbX/lHdsn4Gd9PLKrf7EeDYfIdV0HZKPD8WDr
3 | bBx2/fBu0OW2sjnzv/SVZbJ0DAuPE/p0+eT0qb2qC10iz9iTD7ribd7gxhirVb8y
4 | b3fBjXsxc8V8p4Ny1LcvNSqCjwUbJqdRogfoJeTiqPM58z5sNzuv5iq7iwIDAQAB
5 | AoGAPMQy4olrP0UotlzlJ36bowLP70ffgHCwU+/f4NWs5fF78c3du0oSx1w820Dd
6 | Z7E0JF8bgnlJJTxjumPZz0RUCugrEHBKJmzEz3cxF5E3+7NvteZcjKn9D67RrM5x
7 | 1/uSZ9cqKE9cYvY4fSuHx18diyZ4axR/wB1Pea2utjjDM+ECQQDb9ZbmmaWMiRpQ
8 | 5Up+loxP7BZNPsEVsm+DVJmEFbaFgGfncWBqSIqnPNjMwTwj0OigTwCAEGPkfRVW
9 | T0pbYWCxAkEA0LK7SCTwzyDmhASUalk0x+3uCAA6ryFdwJf/wd8TRAvVOmkTEldX
10 | uJ7ldLvfrONYO3v56uKTU/SoNdZYzKtO+wJAX2KM4ctXYy5BXztPpr2acz4qHa1N
11 | Bh+vBAC34fOYhyQ76r3b1btHhWZ5jbFuZwm9F2erC94Ps5IaoqcX07DSwQJAPKGw
12 | h2U0EPkd/3zVIZCJJQya+vgWFIs9EZcXVtvYXQyTBkVApTN66MhBIYjzkub5205J
13 | bVQmOV37AKklY1DhwQJAA1wos0cYxro02edzatxd0DIR2r4qqOqLkw6BhYHhq6HJ
14 | ZvIcQkHqdSXzdETFc01I1znDGGIrJHcnvKWgBPoEUg==
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks-proxy-agent/test/ssl-cert-snakeoil.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIB1TCCAT4CCQDV5mPlzm9+izANBgkqhkiG9w0BAQUFADAvMS0wKwYDVQQDEyQ3
3 | NTI3YmQ3Ny1hYjNlLTQ3NGItYWNlNy1lZWQ2MDUzOTMxZTcwHhcNMTUwNzA2MjI0
4 | NTA3WhcNMjUwNzAzMjI0NTA3WjAvMS0wKwYDVQQDEyQ3NTI3YmQ3Ny1hYjNlLTQ3
5 | NGItYWNlNy1lZWQ2MDUzOTMxZTcwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
6 | ALNRHEirN6vQAIBtf+Ud2yfgZ308sqt/sR4Nh8h1XQdko8PxYOtsHHb98G7Q5bay
7 | OfO/9JVlsnQMC48T+nT55PSpvaoLXSLP2JMPuuJt3uDGGKtVvzJvd8GNezFzxXyn
8 | g3LUty81KoKPBRsmp1GiB+gl5OKo8znzPmw3O6/mKruLAgMBAAEwDQYJKoZIhvcN
9 | AQEFBQADgYEACzoHUF8UV2Z6541Q2wKEA0UFUzmUjf/E1XwBO+1P15ZZ64uw34B4
10 | 1RwMPtAo9RY/PmICTWtNxWGxkzwb2JtDWtnxVER/lF8k2XcXPE76fxTHJF/BKk9J
11 | QU8OTD1dd9gHCBviQB9TqntRZ5X7axjtuWjb2umY+owBYzAHZkp1HKI=
12 | -----END CERTIFICATE-----
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/.prettierrc.yaml:
--------------------------------------------------------------------------------
1 | parser: typescript
2 | printWidth: 80
3 | tabWidth: 2
4 | singleQuote: true
5 | trailingComma: none
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 6
4 | - 8
5 | - stable
6 |
7 | before_install:
8 | - yarn global add typescript prettier tslint coveralls
9 |
10 | script: "yarn run build && yarn run coveralls"
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/build/common/util.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | Object.defineProperty(exports, "__esModule", { value: true });
3 | /**
4 | * Error wrapper for SocksClient
5 | */
6 | class SocksClientError extends Error {
7 | constructor(message, options) {
8 | super(message);
9 | this.options = options;
10 | }
11 | }
12 | exports.SocksClientError = SocksClientError;
13 | /**
14 | * Shuffles a given array.
15 | * @param array The array to shuffle.
16 | */
17 | function shuffleArray(array) {
18 | for (let i = array.length - 1; i > 0; i--) {
19 | let j = Math.floor(Math.random() * (i + 1));
20 | [array[i], array[j]] = [array[j], array[i]];
21 | }
22 | }
23 | exports.shuffleArray = shuffleArray;
24 | //# sourceMappingURL=util.js.map
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/build/common/util.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/common/util.ts"],"names":[],"mappings":";;AAEA;;GAEG;AACH,sBAAuB,SAAQ,KAAK;IAClC,YACE,OAAe,EACR,OAAqD;QAE5D,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,YAAO,GAAP,OAAO,CAA8C;IAG9D,CAAC;CACF;AAuBwB,4CAAgB;AArBzC;;;GAGG;AACH,sBAAsB,KAAY;IAChC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACzC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC7C;AACH,CAAC;AAY0C,oCAAY"}
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/build/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | function __export(m) {
3 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4 | }
5 | Object.defineProperty(exports, "__esModule", { value: true });
6 | __export(require("./client/socksclient"));
7 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/build/index.js.map:
--------------------------------------------------------------------------------
1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;AAAA,0CAAqC"}
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/docs/examples/index.md:
--------------------------------------------------------------------------------
1 | # socks examples
2 |
3 | ## TypeScript Examples
4 |
5 | [Connect command](typescript/connectExample.md)
6 |
7 | [Bind command](typescript/bindExample.md)
8 |
9 | [Associate command](typescript/associateExample.md)
10 |
11 | ## JavaScript Examples
12 |
13 | [Connect command](javascript/connectExample.md)
14 |
15 | [Bind command](javascript/bindExample.md)
16 |
17 | [Associate command](javascript/associateExample.md)
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/docs/index.md:
--------------------------------------------------------------------------------
1 | # Documentation
2 |
3 | - [API Reference](https://github.com/JoshGlazebrook/socks#api-reference)
4 |
5 | - [Code Examples](./examples/index.md)
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/typings/common/helpers.d.ts:
--------------------------------------------------------------------------------
1 | import { SocksClientOptions, SocksClientChainOptions } from '../client/socksclient';
2 | /**
3 | * Validates the provided SocksClientOptions
4 | * @param options { SocksClientOptions }
5 | * @param acceptedCommands { string[] } A list of accepted SocksProxy commands.
6 | */
7 | declare function validateSocksClientOptions(options: SocksClientOptions, acceptedCommands?: string[]): void;
8 | /**
9 | * Validates the SocksClientChainOptions
10 | * @param options { SocksClientChainOptions }
11 | */
12 | declare function validateSocksClientChainOptions(options: SocksClientChainOptions): void;
13 | export { validateSocksClientOptions, validateSocksClientChainOptions };
14 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/typings/common/receiveBuffer.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | declare class ReceiveBuffer {
3 | private _buffer;
4 | private _offset;
5 | private _originalSize;
6 | constructor(size?: number);
7 | readonly length: number;
8 | append(data: Buffer): number;
9 | peek(length: number): Buffer;
10 | get(length: number): Buffer;
11 | }
12 | export { ReceiveBuffer };
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/typings/common/util.d.ts:
--------------------------------------------------------------------------------
1 | import { SocksClientOptions, SocksClientChainOptions } from './constants';
2 | /**
3 | * Error wrapper for SocksClient
4 | */
5 | declare class SocksClientError extends Error {
6 | options: SocksClientOptions | SocksClientChainOptions;
7 | constructor(message: string, options: SocksClientOptions | SocksClientChainOptions);
8 | }
9 | /**
10 | * Shuffles a given array.
11 | * @param array The array to shuffle.
12 | */
13 | declare function shuffleArray(array: any[]): void;
14 | declare type RequireOnlyOne = Pick> & {
15 | [K in Keys]?: Required> & Partial, undefined>>;
16 | }[Keys];
17 | export { RequireOnlyOne, SocksClientError, shuffleArray };
18 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/socks/typings/index.d.ts:
--------------------------------------------------------------------------------
1 | export * from './client/socksclient';
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/source-map/source-map.js:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2009-2011 Mozilla Foundation and contributors
3 | * Licensed under the New BSD license. See LICENSE.txt or:
4 | * http://opensource.org/licenses/BSD-3-Clause
5 | */
6 | exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator;
7 | exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer;
8 | exports.SourceNode = require('./lib/source-node').SourceNode;
9 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/string_decoder/.npmignore:
--------------------------------------------------------------------------------
1 | build
2 | test
3 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/string_decoder/README.md:
--------------------------------------------------------------------------------
1 | **string_decoder.js** (`require('string_decoder')`) from Node.js core
2 |
3 | Copyright Joyent, Inc. and other Node contributors. See LICENCE file for details.
4 |
5 | Version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10. **Prefer the stable version over the unstable.**
6 |
7 | The *build/* directory contains a build script that will scrape the source from the [joyent/node](https://github.com/joyent/node) repo given a specific Node version.
--------------------------------------------------------------------------------
/cloud/pay/node_modules/tenpay/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | end_of_line = lf
6 | insert_final_newline = true
7 | trim_trailing_whitespace = true
8 | indent_style = space
9 | indent_size = 2
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/tenpay/.eslintrc.yml:
--------------------------------------------------------------------------------
1 | env:
2 | commonjs: true
3 | es6: true
4 | node: true
5 | extends: "eslint:recommended"
6 | globals:
7 | Atomics: readonly
8 | SharedArrayBuffer: readonly
9 | parserOptions:
10 | ecmaVersion: 2018
11 | rules:
12 | no-console: 0
13 | # 变量未定义提示
14 | no-unused-vars: 0
15 | # 禁止使用var
16 | no-var: 2
17 | # 禁止使用eval
18 | no-eval: 2
19 | # 禁止使用undefined, 使用void 0代替
20 | no-undefined: 2
21 | # 使用全等
22 | eqeqeq: 1
23 | # 强制2空格缩进
24 | indent: [0, 2]
25 | # 强制行尾分号
26 | semi: [2, "always"]
27 | # 强制使用单引号
28 | quotes: [1, "single"]
29 | # 关键字前空格
30 | keyword-spacing: 1
31 | # 操作符空格
32 | space-infix-ops: 1
33 | # 小括号内空格
34 | space-in-parens: 1
35 | # 块前空格
36 | space-before-blocks: 1
37 | # function小括号前空格
38 | space-before-function-paren: 0
39 | # 注释前空格
40 | spaced-comment: 1
41 | # 强制代码中使用一致性大括号
42 | brace-style: 0
43 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/tenpay/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js: '>= 8.3.0'
3 | script: npm run travis
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/tenpay/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Eric
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/thenify-all/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.6.0 / 2015-01-11
3 | ==================
4 |
5 | * feat: exports thenify
6 | * support node 0.8+
7 |
8 | 1.5.0 / 2015-01-09
9 | ==================
10 |
11 | * feat: support backward compatible with callback
12 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/thenify/History.md:
--------------------------------------------------------------------------------
1 |
2 | 3.3.0 / 2017-05-19
3 | ==================
4 |
5 | * feat: support options.multiArgs and options.withCallback (#27)
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/through/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - 0.6
4 | - 0.8
5 | - "0.10"
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/through/LICENSE.APACHE2:
--------------------------------------------------------------------------------
1 | Apache License, Version 2.0
2 |
3 | Copyright (c) 2011 Dominic Tarr
4 |
5 | Licensed under the Apache License, Version 2.0 (the "License");
6 | you may not use this file except in compliance with the License.
7 | You may obtain a copy of the License at
8 |
9 | http://www.apache.org/licenses/LICENSE-2.0
10 |
11 | Unless required by applicable law or agreed to in writing, software
12 | distributed under the License is distributed on an "AS IS" BASIS,
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | See the License for the specific language governing permissions and
15 | limitations under the License.
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/through/test/async.js:
--------------------------------------------------------------------------------
1 | var from = require('from')
2 | var through = require('../')
3 |
4 | var tape = require('tape')
5 |
6 | tape('simple async example', function (t) {
7 |
8 | var n = 0, expected = [1,2,3,4,5], actual = []
9 | from(expected)
10 | .pipe(through(function(data) {
11 | this.pause()
12 | n ++
13 | setTimeout(function(){
14 | console.log('pushing data', data)
15 | this.push(data)
16 | this.resume()
17 | }.bind(this), 300)
18 | })).pipe(through(function(data) {
19 | console.log('pushing data second time', data);
20 | this.push(data)
21 | })).on('data', function (d) {
22 | actual.push(d)
23 | }).on('end', function() {
24 | t.deepEqual(actual, expected)
25 | t.end()
26 | })
27 |
28 | })
29 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/through/test/auto-destroy.js:
--------------------------------------------------------------------------------
1 | var test = require('tape')
2 | var through = require('../')
3 |
4 | // must emit end before close.
5 |
6 | test('end before close', function (assert) {
7 | var ts = through()
8 | ts.autoDestroy = false
9 | var ended = false, closed = false
10 |
11 | ts.on('end', function () {
12 | assert.ok(!closed)
13 | ended = true
14 | })
15 | ts.on('close', function () {
16 | assert.ok(ended)
17 | closed = true
18 | })
19 |
20 | ts.write(1)
21 | ts.write(2)
22 | ts.write(3)
23 | ts.end()
24 | assert.ok(ended)
25 | assert.notOk(closed)
26 | ts.destroy()
27 | assert.ok(closed)
28 | assert.end()
29 | })
30 |
31 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/through/test/end.js:
--------------------------------------------------------------------------------
1 | var test = require('tape')
2 | var through = require('../')
3 |
4 | // must emit end before close.
5 |
6 | test('end before close', function (assert) {
7 | var ts = through()
8 | var ended = false, closed = false
9 |
10 | ts.on('end', function () {
11 | assert.ok(!closed)
12 | ended = true
13 | })
14 | ts.on('close', function () {
15 | assert.ok(ended)
16 | closed = true
17 | })
18 |
19 | ts.write(1)
20 | ts.write(2)
21 | ts.write(3)
22 | ts.end()
23 | assert.ok(ended)
24 | assert.ok(closed)
25 | assert.end()
26 | })
27 |
28 | test('end only once', function (t) {
29 |
30 | var ts = through()
31 | var ended = false, closed = false
32 |
33 | ts.on('end', function () {
34 | t.equal(ended, false)
35 | ended = true
36 | })
37 |
38 | ts.queue(null)
39 | ts.queue(null)
40 | ts.queue(null)
41 |
42 | ts.resume()
43 |
44 | t.end()
45 | })
46 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/thunkify/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/thunkify/History.md:
--------------------------------------------------------------------------------
1 |
2 | 2.1.2 / 2014-06-02
3 | ==================
4 |
5 | * fix: make this an optimizable function with crankshaft
6 |
7 | 2.1.1 / 2014-04-17
8 | ==================
9 |
10 | * remove memoization
11 |
12 | 2.1.0 / 2014-04-17
13 | ==================
14 |
15 | * add catching of thunk errors
16 |
17 | 2.0.0 / 2014-04-17
18 | ==================
19 |
20 | * change to behave like a future (subsequent calls yield the same value)
21 | * remove support for eager execution (breaking change)
22 |
23 | 1.0.0 / 2014-04-11
24 | ==================
25 |
26 | * add assert(fn)
27 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/thunkify/Makefile:
--------------------------------------------------------------------------------
1 |
2 | test:
3 | @./node_modules/.bin/mocha \
4 | --require should \
5 | --reporter dot \
6 | --bail
7 |
8 | .PHONY: test
--------------------------------------------------------------------------------
/cloud/pay/node_modules/thunkify/Readme.md:
--------------------------------------------------------------------------------
1 | # thunkify
2 |
3 | Turn a regular node function into one which returns a thunk,
4 | useful for generator-based flow control such as [co](https://github.com/visionmedia/co).
5 |
6 | ## Installation
7 |
8 | ```
9 | $ npm install thunkify
10 | ```
11 |
12 | ## Example
13 |
14 | ```js
15 | var thunkify = require('thunkify');
16 | var fs = require('fs');
17 |
18 | var read = thunkify(fs.readFile);
19 |
20 | read('package.json', 'utf8')(function(err, str){
21 |
22 | });
23 | ```
24 |
25 | # License
26 |
27 | MIT
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/thunkify/index.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Module dependencies.
4 | */
5 |
6 | var assert = require('assert');
7 |
8 | /**
9 | * Expose `thunkify()`.
10 | */
11 |
12 | module.exports = thunkify;
13 |
14 | /**
15 | * Wrap a regular callback `fn` as a thunk.
16 | *
17 | * @param {Function} fn
18 | * @return {Function}
19 | * @api public
20 | */
21 |
22 | function thunkify(fn){
23 | assert('function' == typeof fn, 'function required');
24 |
25 | return function(){
26 | var args = new Array(arguments.length);
27 | var ctx = this;
28 |
29 | for(var i = 0; i < args.length; ++i) {
30 | args[i] = arguments[i];
31 | }
32 |
33 | return function(done){
34 | var called;
35 |
36 | args.push(function(){
37 | if (called) return;
38 | called = true;
39 | done.apply(null, arguments);
40 | });
41 |
42 | try {
43 | fn.apply(ctx, args);
44 | } catch (err) {
45 | done(err);
46 | }
47 | }
48 | }
49 | };
50 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/toidentifier/index.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * toidentifier
3 | * Copyright(c) 2016 Douglas Christopher Wilson
4 | * MIT Licensed
5 | */
6 |
7 | /**
8 | * Module exports.
9 | * @public
10 | */
11 |
12 | module.exports = toIdentifier
13 |
14 | /**
15 | * Trasform the given string into a JavaScript identifier
16 | *
17 | * @param {string} str
18 | * @returns {string}
19 | * @public
20 | */
21 |
22 | function toIdentifier (str) {
23 | return str
24 | .split(' ')
25 | .map(function (token) {
26 | return token.slice(0, 1).toUpperCase() + token.slice(1)
27 | })
28 | .join('')
29 | .replace(/[^ _0-9a-z]/gi, '')
30 | }
31 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/type-check/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) George Zahariev
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/type-check/lib/index.js:
--------------------------------------------------------------------------------
1 | // Generated by LiveScript 1.4.0
2 | (function(){
3 | var VERSION, parseType, parsedTypeCheck, typeCheck;
4 | VERSION = '0.3.2';
5 | parseType = require('./parse-type');
6 | parsedTypeCheck = require('./check');
7 | typeCheck = function(type, input, options){
8 | return parsedTypeCheck(parseType(type), input, options);
9 | };
10 | module.exports = {
11 | VERSION: VERSION,
12 | typeCheck: typeCheck,
13 | parsedTypeCheck: parsedTypeCheck,
14 | parseType: parseType
15 | };
16 | }).call(this);
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/unpipe/HISTORY.md:
--------------------------------------------------------------------------------
1 | 1.0.0 / 2015-06-14
2 | ==================
3 |
4 | * Initial release
5 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/urllib/lib/detect_proxy_agent.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var debug = require('debug')('urllib:detect_proxy_agent');
4 | var getProxyFromURI = require('./get_proxy_from_uri');
5 |
6 | var proxyAgents = {};
7 |
8 | function detectProxyAgent(uri, args) {
9 | if (!args.enableProxy && !process.env.URLLIB_ENABLE_PROXY) {
10 | return null;
11 | }
12 | var proxy = args.proxy || process.env.URLLIB_PROXY;
13 | if (!proxy) {
14 | proxy = getProxyFromURI(uri);
15 | if (!proxy) {
16 | return null;
17 | }
18 | }
19 |
20 | var proxyAgent = proxyAgents[proxy];
21 | if (!proxyAgent) {
22 | debug('create new proxy %s', proxy);
23 | // lazy require, only support node >= 4
24 | proxyAgent = proxyAgents[proxy] = new (require('proxy-agent'))(proxy);
25 | }
26 | debug('get proxy: %s', proxy);
27 | return proxyAgent;
28 | }
29 |
30 | module.exports = detectProxyAgent;
31 | module.exports.proxyAgents = proxyAgents;
32 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/urllib/lib/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var urllib = require('./urllib');
4 |
5 | exports.USER_AGENT = urllib.USER_AGENT;
6 | exports.TIMEOUT = urllib.TIMEOUT;
7 | exports.TIMEOUTS = urllib.TIMEOUTS;
8 | exports.agent = urllib.agent;
9 | exports.httpsAgent = urllib.httpsAgent;
10 |
11 | exports.curl = urllib.curl;
12 | exports.request = urllib.request;
13 | exports.requestWithCallback = urllib.requestWithCallback;
14 | exports.requestThunk = urllib.requestThunk;
15 |
16 | exports.HttpClient = require('./httpclient');
17 | exports.HttpClient2 = require('./httpclient2');
18 |
19 | exports.create = function (options) {
20 | return new exports.HttpClient(options);
21 | };
22 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/util-deprecate/History.md:
--------------------------------------------------------------------------------
1 |
2 | 1.0.2 / 2015-10-07
3 | ==================
4 |
5 | * use try/catch when checking `localStorage` (#3, @kumavis)
6 |
7 | 1.0.1 / 2014-11-25
8 | ==================
9 |
10 | * browser: use `console.warn()` for deprecation calls
11 | * browser: more jsdocs
12 |
13 | 1.0.0 / 2014-04-30
14 | ==================
15 |
16 | * initial commit
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/util-deprecate/node.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * For Node.js, simply re-export the core `util.deprecate` function.
4 | */
5 |
6 | module.exports = require('util').deprecate;
7 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/utility/lib/function.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | /**
4 | * A empty function.
5 | *
6 | * @return {Function}
7 | * @public
8 | */
9 | exports.noop = function noop() {};
10 |
11 | /**
12 | * Get a function parameter's names.
13 | *
14 | * @param {Function} func
15 | * @param {Boolean} [useCache], default is true
16 | * @return {Array} names
17 | */
18 | exports.getParamNames = function getParamNames(func, cache) {
19 | cache = cache !== false;
20 | if (cache && func.__cache_names) {
21 | return func.__cache_names;
22 | }
23 | var str = func.toString();
24 | var names = str.slice(str.indexOf('(') + 1, str.indexOf(')')).match(/([^\s,]+)/g) || [];
25 | func.__cache_names = names;
26 | return names;
27 | };
28 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/utility/lib/polyfill.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | exports.setImmediate = typeof setImmediate === 'function'
4 | ? setImmediate
5 | : function(fn){
6 | process.nextTick(fn.bind.apply(fn, arguments));
7 | };
8 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/utility/lib/utility.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var copy = require('copy-to');
4 |
5 | copy(require('./function'))
6 | .and(require('./polyfill'))
7 | .and(require('./optimize'))
8 | .and(require('./crypto'))
9 | .and(require('./number'))
10 | .and(require('./string'))
11 | .and(require('./array'))
12 | .and(require('./json'))
13 | .and(require('./date'))
14 | .and(require('./object'))
15 | .and(require('./web'))
16 | .to(module.exports);
17 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/win-release/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | var os = require('os');
3 | var semver = require('semver');
4 |
5 | var nameMap = {
6 | '10.0': '10',
7 | '6.3': '8.1',
8 | '6.2': '8',
9 | '6.1': '7',
10 | '6.0': 'Vista',
11 | '5.1': 'XP',
12 | '5.0': '2000',
13 | '4.9': 'ME',
14 | '4.1': '98',
15 | '4.0': '95'
16 | };
17 |
18 | module.exports = function (release) {
19 | var verRe = /\d+\.\d+/;
20 | var version = verRe.exec(release || os.release());
21 |
22 | // workaround for Windows 10 on node < 3.1.0
23 | if (!release && process.platform === 'win32' &&
24 | semver.satisfies(process.version, '>=0.12.0 <3.1.0')) {
25 | try {
26 | version = verRe.exec(String(require('child_process').execSync('ver.exe', {timeout: 2000})));
27 | } catch (err) {}
28 | }
29 |
30 | if (release && !version) {
31 | throw new Error('`release` argument doesn\'t match `n.n`');
32 | }
33 |
34 | return nameMap[(version || [])[0]];
35 | };
36 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/wordwrap/LICENSE:
--------------------------------------------------------------------------------
1 | This software is released under the MIT license:
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7 | the Software, and to permit persons to whom the Software is furnished to do so,
8 | subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/wordwrap/example/center.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(20, 60);
2 | console.log(wrap(
3 | 'At long last the struggle and tumult was over.'
4 | + ' The machines had finally cast off their oppressors'
5 | + ' and were finally free to roam the cosmos.'
6 | + '\n'
7 | + 'Free of purpose, free of obligation.'
8 | + ' Just drifting through emptiness.'
9 | + ' The sun was just another point of light.'
10 | ));
11 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/wordwrap/example/meat.js:
--------------------------------------------------------------------------------
1 | var wrap = require('wordwrap')(15);
2 |
3 | console.log(wrap('You and your whole family are made out of meat.'));
4 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/wordwrap/test/break.js:
--------------------------------------------------------------------------------
1 | var test = require('tape');
2 | var wordwrap = require('../');
3 |
4 | test('hard', function (t) {
5 | var s = 'Assert from {"type":"equal","ok":false,"found":1,"wanted":2,'
6 | + '"stack":[],"id":"b7ddcd4c409de8799542a74d1a04689b",'
7 | + '"browser":"chrome/6.0"}'
8 | ;
9 | var s_ = wordwrap.hard(80)(s);
10 |
11 | var lines = s_.split('\n');
12 | t.equal(lines.length, 2);
13 | t.ok(lines[0].length < 80);
14 | t.ok(lines[1].length < 80);
15 |
16 | t.equal(s, s_.replace(/\n/g, ''));
17 | t.end();
18 | });
19 |
20 | test('break', function (t) {
21 | var s = new Array(55+1).join('a');
22 | var s_ = wordwrap.hard(20)(s);
23 |
24 | var lines = s_.split('\n');
25 | t.equal(lines.length, 3);
26 | t.ok(lines[0].length === 20);
27 | t.ok(lines[1].length === 20);
28 | t.ok(lines[2].length === 15);
29 |
30 | t.equal(s, s_.replace(/\n/g, ''));
31 | t.end();
32 | });
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/wrappy/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/wrappy/README.md:
--------------------------------------------------------------------------------
1 | # wrappy
2 |
3 | Callback wrapping utility
4 |
5 | ## USAGE
6 |
7 | ```javascript
8 | var wrappy = require("wrappy")
9 |
10 | // var wrapper = wrappy(wrapperFunction)
11 |
12 | // make sure a cb is called only once
13 | // See also: http://npm.im/once for this specific use case
14 | var once = wrappy(function (cb) {
15 | var called = false
16 | return function () {
17 | if (called) return
18 | called = true
19 | return cb.apply(this, arguments)
20 | }
21 | })
22 |
23 | function printBoo () {
24 | console.log('boo')
25 | }
26 | // has some rando property
27 | printBoo.iAmBooPrinter = true
28 |
29 | var onlyPrintOnce = once(printBoo)
30 |
31 | onlyPrintOnce() // prints 'boo'
32 | onlyPrintOnce() // does nothing
33 |
34 | // random property is retained!
35 | assert.equal(onlyPrintOnce.iAmBooPrinter, true)
36 | ```
37 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/wrappy/wrappy.js:
--------------------------------------------------------------------------------
1 | // Returns a wrapper function that returns a wrapped callback
2 | // The wrapper function should do some stuff, and return a
3 | // presumably different callback function.
4 | // This makes sure that own properties are retained, so that
5 | // decorations and such are not lost along the way.
6 | module.exports = wrappy
7 | function wrappy (fn, cb) {
8 | if (fn && cb) return wrappy(fn)(cb)
9 |
10 | if (typeof fn !== 'function')
11 | throw new TypeError('need wrapper function')
12 |
13 | Object.keys(fn).forEach(function (k) {
14 | wrapper[k] = fn[k]
15 | })
16 |
17 | return wrapper
18 |
19 | function wrapper() {
20 | var args = new Array(arguments.length)
21 | for (var i = 0; i < args.length; i++) {
22 | args[i] = arguments[i]
23 | }
24 | var ret = fn.apply(this, args)
25 | var cb = args[args.length-1]
26 | if (typeof ret === 'function' && ret !== cb) {
27 | Object.keys(cb).forEach(function (k) {
28 | ret[k] = cb[k]
29 | })
30 | }
31 | return ret
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/xml2js/lib/bom.js:
--------------------------------------------------------------------------------
1 | // Generated by CoffeeScript 1.12.7
2 | (function() {
3 | "use strict";
4 | exports.stripBOM = function(str) {
5 | if (str[0] === '\uFEFF') {
6 | return str.substring(1);
7 | } else {
8 | return str;
9 | }
10 | };
11 |
12 | }).call(this);
13 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/xml2js/lib/processors.js:
--------------------------------------------------------------------------------
1 | // Generated by CoffeeScript 1.12.7
2 | (function() {
3 | "use strict";
4 | var prefixMatch;
5 |
6 | prefixMatch = new RegExp(/(?!xmlns)^.*:/);
7 |
8 | exports.normalize = function(str) {
9 | return str.toLowerCase();
10 | };
11 |
12 | exports.firstCharLowerCase = function(str) {
13 | return str.charAt(0).toLowerCase() + str.slice(1);
14 | };
15 |
16 | exports.stripPrefix = function(str) {
17 | return str.replace(prefixMatch, '');
18 | };
19 |
20 | exports.parseNumbers = function(str) {
21 | if (!isNaN(str)) {
22 | str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str);
23 | }
24 | return str;
25 | };
26 |
27 | exports.parseBooleans = function(str) {
28 | if (/^(?:true|false)$/i.test(str)) {
29 | str = str.toLowerCase() === 'true';
30 | }
31 | return str;
32 | };
33 |
34 | }).call(this);
35 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/xmlbuilder/.npmignore:
--------------------------------------------------------------------------------
1 | .travis.yml
2 | src
3 | test
4 | perf
5 | coverage
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/xmlbuilder/lib/XMLAttribute.js:
--------------------------------------------------------------------------------
1 | // Generated by CoffeeScript 1.12.7
2 | (function() {
3 | var XMLAttribute;
4 |
5 | module.exports = XMLAttribute = (function() {
6 | function XMLAttribute(parent, name, value) {
7 | this.options = parent.options;
8 | this.stringify = parent.stringify;
9 | if (name == null) {
10 | throw new Error("Missing attribute name of element " + parent.name);
11 | }
12 | if (value == null) {
13 | throw new Error("Missing attribute value for attribute " + name + " of element " + parent.name);
14 | }
15 | this.name = this.stringify.attName(name);
16 | this.value = this.stringify.attValue(value);
17 | }
18 |
19 | XMLAttribute.prototype.clone = function() {
20 | return Object.create(this);
21 | };
22 |
23 | XMLAttribute.prototype.toString = function(options) {
24 | return this.options.writer.set(options).attribute(this);
25 | };
26 |
27 | return XMLAttribute;
28 |
29 | })();
30 |
31 | }).call(this);
32 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/xmlbuilder/lib/XMLRaw.js:
--------------------------------------------------------------------------------
1 | // Generated by CoffeeScript 1.12.7
2 | (function() {
3 | var XMLNode, XMLRaw,
4 | extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
5 | hasProp = {}.hasOwnProperty;
6 |
7 | XMLNode = require('./XMLNode');
8 |
9 | module.exports = XMLRaw = (function(superClass) {
10 | extend(XMLRaw, superClass);
11 |
12 | function XMLRaw(parent, text) {
13 | XMLRaw.__super__.constructor.call(this, parent);
14 | if (text == null) {
15 | throw new Error("Missing raw text");
16 | }
17 | this.value = this.stringify.raw(text);
18 | }
19 |
20 | XMLRaw.prototype.clone = function() {
21 | return Object.create(this);
22 | };
23 |
24 | XMLRaw.prototype.toString = function(options) {
25 | return this.options.writer.set(options).raw(this);
26 | };
27 |
28 | return XMLRaw;
29 |
30 | })(XMLNode);
31 |
32 | }).call(this);
33 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/xregexp/.npmignore:
--------------------------------------------------------------------------------
1 | min/
2 | src/
3 | tests/index.html
4 | tests/qunit/
5 | tools/
6 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/xregexp/tests/node-qunit.js:
--------------------------------------------------------------------------------
1 | // Use node-qunit to run the tests.
2 |
3 | var qunit = require("qunit");
4 |
5 | qunit.run({
6 | code: {
7 | namespace: "xregexp",
8 | path: __dirname + "/../xregexp-all.js"
9 | },
10 | tests: __dirname + "/tests.js"
11 | });
12 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/yallist/LICENSE:
--------------------------------------------------------------------------------
1 | The ISC License
2 |
3 | Copyright (c) Isaac Z. Schlueter and Contributors
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/cloud/pay/node_modules/yallist/iterator.js:
--------------------------------------------------------------------------------
1 | var Yallist = require('./yallist.js')
2 |
3 | Yallist.prototype[Symbol.iterator] = function* () {
4 | for (let walker = this.head; walker; walker = walker.next) {
5 | yield walker.value
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/cloud/pay/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pay",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC",
11 | "dependencies": {
12 | "tenpay": "^2.1.18",
13 | "wx-server-sdk": "latest"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/pages/pay/pay.js:
--------------------------------------------------------------------------------
1 | // pages/pay/pay.js
2 | Page({
3 | //提交订单
4 | formSubmit: function(e) {
5 | let that = this;
6 | let formData = e.detail.value
7 | console.log('form发生了submit事件,携带数据为:', formData)
8 | wx.cloud.callFunction({
9 | name: "pay",
10 | data: {
11 | orderid: "" + formData.orderid,
12 | money: formData.money
13 | },
14 | success(res) {
15 | console.log("提交成功", res.result)
16 | that.pay(res.result)
17 | },
18 | fail(res) {
19 | console.log("提交失败", res)
20 | }
21 | })
22 | },
23 |
24 | //实现小程序支付
25 | pay(payData) {
26 | //官方标准的支付方法
27 | wx.requestPayment({
28 | timeStamp: payData.timeStamp,
29 | nonceStr: payData.nonceStr,
30 | package: payData.package, //统一下单接口返回的 prepay_id 格式如:prepay_id=***
31 | signType: 'MD5',
32 | paySign: payData.paySign, //签名
33 | success(res) {
34 | console.log("支付成功", res)
35 | },
36 | fail(res) {
37 | console.log("支付失败", res)
38 | },
39 | complete(res) {
40 | console.log("支付完成", res)
41 | }
42 | })
43 | }
44 | })
--------------------------------------------------------------------------------
/pages/pay/pay.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/pages/pay/pay.wxml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/pages/pay/pay.wxss:
--------------------------------------------------------------------------------
1 | /* pages/pay/pay.wxss */
--------------------------------------------------------------------------------
/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件",
3 | "cloudfunctionRoot": "cloud/",
4 | "packOptions": {
5 | "ignore": []
6 | },
7 | "setting": {
8 | "urlCheck": true,
9 | "es6": true,
10 | "postcss": true,
11 | "minified": true,
12 | "newFeature": true,
13 | "autoAudits": false,
14 | "coverView": true
15 | },
16 | "compileType": "miniprogram",
17 | "libVersion": "2.8.0",
18 | "appid": "wx26438c2d76113895",
19 | "projectname": "014%E4%BA%91%E5%BC%80%E5%8F%91%E5%AE%9E%E7%8E%B0%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%94%AF%E4%BB%98",
20 | "debugOptions": {
21 | "hidedInDevtools": []
22 | },
23 | "isGameTourist": false,
24 | "simulatorType": "wechat",
25 | "simulatorPluginLibVersion": {},
26 | "condition": {
27 | "search": {
28 | "current": -1,
29 | "list": []
30 | },
31 | "conversation": {
32 | "current": -1,
33 | "list": []
34 | },
35 | "game": {
36 | "currentL": -1,
37 | "list": []
38 | },
39 | "miniprogram": {
40 | "current": -1,
41 | "list": []
42 | }
43 | }
44 | }
--------------------------------------------------------------------------------
/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------