├── .github └── workflows │ └── gitstamp.yaml ├── .gitignore ├── AUTHORS ├── CHANGES.md ├── CREDITS.md ├── README.md ├── TODO.md ├── UNLICENSE ├── VERSION ├── action.yaml ├── index.js ├── node_modules ├── @actions │ ├── core │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── lib │ │ │ ├── command.d.ts │ │ │ ├── command.js │ │ │ ├── command.js.map │ │ │ ├── core.d.ts │ │ │ ├── core.js │ │ │ └── core.js.map │ │ └── package.json │ ├── github │ │ ├── README.md │ │ ├── lib │ │ │ ├── context.d.ts │ │ │ ├── context.js │ │ │ ├── context.js.map │ │ │ ├── github.d.ts │ │ │ ├── github.js │ │ │ ├── github.js.map │ │ │ ├── interfaces.d.ts │ │ │ ├── interfaces.js │ │ │ ├── interfaces.js.map │ │ │ ├── internal │ │ │ │ ├── utils.d.ts │ │ │ │ ├── utils.js │ │ │ │ └── utils.js.map │ │ │ ├── utils.d.ts │ │ │ ├── utils.js │ │ │ └── utils.js.map │ │ └── package.json │ └── http-client │ │ ├── LICENSE │ │ ├── README.md │ │ ├── RELEASES.md │ │ ├── actions.png │ │ ├── auth.d.ts │ │ ├── auth.js │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── interfaces.d.ts │ │ ├── interfaces.js │ │ ├── package.json │ │ ├── proxy.d.ts │ │ └── proxy.js ├── @octokit │ ├── auth-token │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── auth.js │ │ │ ├── hook.js │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ └── with-authorization-prefix.js │ │ ├── dist-types │ │ │ ├── auth.d.ts │ │ │ ├── hook.d.ts │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ └── with-authorization-prefix.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── core │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── endpoint │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── defaults.js │ │ │ ├── endpoint-with-defaults.js │ │ │ ├── index.js │ │ │ ├── merge.js │ │ │ ├── parse.js │ │ │ ├── util │ │ │ │ ├── add-query-parameters.js │ │ │ │ ├── extract-url-variable-names.js │ │ │ │ ├── lowercase-keys.js │ │ │ │ ├── merge-deep.js │ │ │ │ ├── omit.js │ │ │ │ └── url-template.js │ │ │ ├── version.js │ │ │ └── with-defaults.js │ │ ├── dist-types │ │ │ ├── defaults.d.ts │ │ │ ├── endpoint-with-defaults.d.ts │ │ │ ├── index.d.ts │ │ │ ├── merge.d.ts │ │ │ ├── parse.d.ts │ │ │ ├── util │ │ │ │ ├── add-query-parameters.d.ts │ │ │ │ ├── extract-url-variable-names.d.ts │ │ │ │ ├── lowercase-keys.d.ts │ │ │ │ ├── merge-deep.d.ts │ │ │ │ ├── omit.d.ts │ │ │ │ └── url-template.d.ts │ │ │ ├── version.d.ts │ │ │ └── with-defaults.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── graphql │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── error.js │ │ │ ├── graphql.js │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ ├── version.js │ │ │ └── with-defaults.js │ │ ├── dist-types │ │ │ ├── error.d.ts │ │ │ ├── graphql.d.ts │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ ├── version.d.ts │ │ │ └── with-defaults.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── plugin-paginate-rest │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── generated │ │ │ │ └── paginating-endpoints.js │ │ │ ├── index.js │ │ │ ├── iterator.js │ │ │ ├── normalize-paginated-list-response.js │ │ │ ├── paginate.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── generated │ │ │ │ └── paginating-endpoints.d.ts │ │ │ ├── index.d.ts │ │ │ ├── iterator.d.ts │ │ │ ├── normalize-paginated-list-response.d.ts │ │ │ ├── paginate.d.ts │ │ │ ├── types.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── plugin-rest-endpoint-methods │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── endpoints-to-methods.js │ │ │ ├── generated │ │ │ │ ├── endpoints.js │ │ │ │ ├── method-types.js │ │ │ │ └── parameters-and-response-types.js │ │ │ ├── index.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── endpoints-to-methods.d.ts │ │ │ ├── generated │ │ │ │ ├── endpoints.d.ts │ │ │ │ ├── method-types.d.ts │ │ │ │ └── parameters-and-response-types.d.ts │ │ │ ├── index.d.ts │ │ │ ├── types.d.ts │ │ │ └── version.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── request-error │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── index.js │ │ │ └── types.js │ │ ├── dist-types │ │ │ ├── index.d.ts │ │ │ └── types.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ ├── request │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── fetch-wrapper.js │ │ │ ├── get-buffer-response.js │ │ │ ├── index.js │ │ │ ├── version.js │ │ │ └── with-defaults.js │ │ ├── dist-types │ │ │ ├── fetch-wrapper.d.ts │ │ │ ├── get-buffer-response.d.ts │ │ │ ├── index.d.ts │ │ │ ├── version.d.ts │ │ │ └── with-defaults.d.ts │ │ ├── dist-web │ │ │ ├── index.js │ │ │ └── index.js.map │ │ └── package.json │ └── types │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ ├── index.js │ │ └── index.js.map │ │ ├── dist-src │ │ ├── AuthInterface.js │ │ ├── EndpointDefaults.js │ │ ├── EndpointInterface.js │ │ ├── EndpointOptions.js │ │ ├── Fetch.js │ │ ├── GetResponseTypeFromEndpointMethod.js │ │ ├── OctokitResponse.js │ │ ├── RequestError.js │ │ ├── RequestHeaders.js │ │ ├── RequestInterface.js │ │ ├── RequestMethod.js │ │ ├── RequestOptions.js │ │ ├── RequestParameters.js │ │ ├── RequestRequestOptions.js │ │ ├── ResponseHeaders.js │ │ ├── Route.js │ │ ├── Signal.js │ │ ├── StrategyInterface.js │ │ ├── Url.js │ │ ├── VERSION.js │ │ ├── generated │ │ │ └── Endpoints.js │ │ └── index.js │ │ ├── dist-types │ │ ├── AuthInterface.d.ts │ │ ├── EndpointDefaults.d.ts │ │ ├── EndpointInterface.d.ts │ │ ├── EndpointOptions.d.ts │ │ ├── Fetch.d.ts │ │ ├── GetResponseTypeFromEndpointMethod.d.ts │ │ ├── OctokitResponse.d.ts │ │ ├── RequestError.d.ts │ │ ├── RequestHeaders.d.ts │ │ ├── RequestInterface.d.ts │ │ ├── RequestMethod.d.ts │ │ ├── RequestOptions.d.ts │ │ ├── RequestParameters.d.ts │ │ ├── RequestRequestOptions.d.ts │ │ ├── ResponseHeaders.d.ts │ │ ├── Route.d.ts │ │ ├── Signal.d.ts │ │ ├── StrategyInterface.d.ts │ │ ├── Url.d.ts │ │ ├── VERSION.d.ts │ │ ├── generated │ │ │ └── Endpoints.d.ts │ │ └── index.d.ts │ │ ├── dist-web │ │ ├── index.js │ │ └── index.js.map │ │ └── package.json ├── @types │ └── node │ │ ├── LICENSE │ │ ├── README.md │ │ ├── assert.d.ts │ │ ├── base.d.ts │ │ ├── index.d.ts │ │ ├── package.json │ │ ├── ts3.1 │ │ ├── assert.d.ts │ │ ├── async_hooks.d.ts │ │ ├── base.d.ts │ │ ├── buffer.d.ts │ │ ├── child_process.d.ts │ │ ├── cluster.d.ts │ │ ├── console.d.ts │ │ ├── constants.d.ts │ │ ├── crypto.d.ts │ │ ├── dgram.d.ts │ │ ├── dns.d.ts │ │ ├── domain.d.ts │ │ ├── events.d.ts │ │ ├── fs.d.ts │ │ ├── fs │ │ │ └── promises.d.ts │ │ ├── globals.d.ts │ │ ├── globals.global.d.ts │ │ ├── http.d.ts │ │ ├── http2.d.ts │ │ ├── https.d.ts │ │ ├── index.d.ts │ │ ├── inspector.d.ts │ │ ├── module.d.ts │ │ ├── net.d.ts │ │ ├── os.d.ts │ │ ├── path.d.ts │ │ ├── perf_hooks.d.ts │ │ ├── process.d.ts │ │ ├── punycode.d.ts │ │ ├── querystring.d.ts │ │ ├── readline.d.ts │ │ ├── repl.d.ts │ │ ├── stream.d.ts │ │ ├── string_decoder.d.ts │ │ ├── timers.d.ts │ │ ├── tls.d.ts │ │ ├── trace_events.d.ts │ │ ├── tty.d.ts │ │ ├── url.d.ts │ │ ├── util.d.ts │ │ ├── v8.d.ts │ │ ├── vm.d.ts │ │ ├── worker_threads.d.ts │ │ └── zlib.d.ts │ │ ├── ts3.4 │ │ ├── base.d.ts │ │ ├── fs.d.ts │ │ ├── globals.d.ts │ │ ├── index.d.ts │ │ ├── process.d.ts │ │ └── util.d.ts │ │ └── ts3.6 │ │ ├── base.d.ts │ │ ├── globals.global.d.ts │ │ ├── index.d.ts │ │ └── wasi.d.ts ├── arweave │ ├── LICENSE.md │ ├── README.md │ ├── bundles │ │ ├── web.bundle.js │ │ └── web.bundle.min.js │ ├── node │ │ ├── ar.d.ts │ │ ├── ar.js │ │ ├── ar.js.map │ │ ├── chunks.d.ts │ │ ├── chunks.js │ │ ├── chunks.js.map │ │ ├── common.d.ts │ │ ├── common.js │ │ ├── common.js.map │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── lib │ │ │ ├── api.d.ts │ │ │ ├── api.js │ │ │ ├── api.js.map │ │ │ ├── crypto │ │ │ │ ├── crypto-interface.d.ts │ │ │ │ ├── crypto-interface.js │ │ │ │ ├── crypto-interface.js.map │ │ │ │ ├── node-driver.d.ts │ │ │ │ ├── node-driver.js │ │ │ │ ├── node-driver.js.map │ │ │ │ ├── pem.d.ts │ │ │ │ ├── pem.js │ │ │ │ ├── pem.js.map │ │ │ │ ├── webcrypto-driver.d.ts │ │ │ │ ├── webcrypto-driver.js │ │ │ │ └── webcrypto-driver.js.map │ │ │ ├── deepHash.d.ts │ │ │ ├── deepHash.js │ │ │ ├── deepHash.js.map │ │ │ ├── error.d.ts │ │ │ ├── error.js │ │ │ ├── error.js.map │ │ │ ├── merkle.d.ts │ │ │ ├── merkle.js │ │ │ ├── merkle.js.map │ │ │ ├── transaction-uploader.d.ts │ │ │ ├── transaction-uploader.js │ │ │ ├── transaction-uploader.js.map │ │ │ ├── transaction.d.ts │ │ │ ├── transaction.js │ │ │ ├── transaction.js.map │ │ │ ├── utils.d.ts │ │ │ ├── utils.js │ │ │ ├── utils.js.map │ │ │ ├── wallet.d.ts │ │ │ ├── wallet.js │ │ │ └── wallet.js.map │ │ ├── network.d.ts │ │ ├── network.js │ │ ├── network.js.map │ │ ├── silo.d.ts │ │ ├── silo.js │ │ ├── silo.js.map │ │ ├── transactions.d.ts │ │ ├── transactions.js │ │ ├── transactions.js.map │ │ ├── wallets.d.ts │ │ ├── wallets.js │ │ └── wallets.js.map │ ├── package.json │ └── web │ │ ├── ar.d.ts │ │ ├── ar.js │ │ ├── ar.js.map │ │ ├── chunks.d.ts │ │ ├── chunks.js │ │ ├── chunks.js.map │ │ ├── common.d.ts │ │ ├── common.js │ │ ├── common.js.map │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── lib │ │ ├── api.d.ts │ │ ├── api.js │ │ ├── api.js.map │ │ ├── crypto │ │ │ ├── crypto-interface.d.ts │ │ │ ├── crypto-interface.js │ │ │ ├── crypto-interface.js.map │ │ │ ├── node-driver.d.ts │ │ │ ├── node-driver.js │ │ │ ├── node-driver.js.map │ │ │ ├── pem.d.ts │ │ │ ├── pem.js │ │ │ ├── pem.js.map │ │ │ ├── webcrypto-driver.d.ts │ │ │ ├── webcrypto-driver.js │ │ │ └── webcrypto-driver.js.map │ │ ├── deepHash.d.ts │ │ ├── deepHash.js │ │ ├── deepHash.js.map │ │ ├── error.d.ts │ │ ├── error.js │ │ ├── error.js.map │ │ ├── merkle.d.ts │ │ ├── merkle.js │ │ ├── merkle.js.map │ │ ├── transaction-uploader.d.ts │ │ ├── transaction-uploader.js │ │ ├── transaction-uploader.js.map │ │ ├── transaction.d.ts │ │ ├── transaction.js │ │ ├── transaction.js.map │ │ ├── utils.d.ts │ │ ├── utils.js │ │ ├── utils.js.map │ │ ├── wallet.d.ts │ │ ├── wallet.js │ │ └── wallet.js.map │ │ ├── network.d.ts │ │ ├── network.js │ │ ├── network.js.map │ │ ├── silo.d.ts │ │ ├── silo.js │ │ ├── silo.js.map │ │ ├── transactions.d.ts │ │ ├── transactions.js │ │ ├── transactions.js.map │ │ ├── wallets.d.ts │ │ ├── wallets.js │ │ └── wallets.js.map ├── asn1.js │ ├── .eslintrc.js │ ├── LICENSE │ ├── README.md │ ├── lib │ │ ├── asn1.js │ │ └── asn1 │ │ │ ├── api.js │ │ │ ├── base │ │ │ ├── buffer.js │ │ │ ├── index.js │ │ │ ├── node.js │ │ │ └── reporter.js │ │ │ ├── constants │ │ │ ├── der.js │ │ │ └── index.js │ │ │ ├── decoders │ │ │ ├── der.js │ │ │ ├── index.js │ │ │ └── pem.js │ │ │ └── encoders │ │ │ ├── der.js │ │ │ ├── index.js │ │ │ └── pem.js │ └── package.json ├── axios │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── UPGRADE_GUIDE.md │ ├── dist │ │ ├── axios.js │ │ ├── axios.map │ │ ├── axios.min.js │ │ └── axios.min.map │ ├── index.d.ts │ ├── index.js │ ├── lib │ │ ├── adapters │ │ │ ├── README.md │ │ │ ├── http.js │ │ │ └── xhr.js │ │ ├── axios.js │ │ ├── cancel │ │ │ ├── Cancel.js │ │ │ ├── CancelToken.js │ │ │ └── isCancel.js │ │ ├── core │ │ │ ├── Axios.js │ │ │ ├── InterceptorManager.js │ │ │ ├── README.md │ │ │ ├── buildFullPath.js │ │ │ ├── createError.js │ │ │ ├── dispatchRequest.js │ │ │ ├── enhanceError.js │ │ │ ├── mergeConfig.js │ │ │ ├── settle.js │ │ │ └── transformData.js │ │ ├── defaults.js │ │ ├── helpers │ │ │ ├── README.md │ │ │ ├── bind.js │ │ │ ├── buildURL.js │ │ │ ├── combineURLs.js │ │ │ ├── cookies.js │ │ │ ├── deprecatedMethod.js │ │ │ ├── isAbsoluteURL.js │ │ │ ├── isURLSameOrigin.js │ │ │ ├── normalizeHeaderName.js │ │ │ ├── parseHeaders.js │ │ │ └── spread.js │ │ └── utils.js │ └── package.json ├── base64-js │ ├── LICENSE │ ├── README.md │ ├── base64js.min.js │ ├── index.js │ └── package.json ├── before-after-hook │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── index.js │ ├── lib │ │ ├── add.js │ │ ├── register.js │ │ └── remove.js │ └── package.json ├── bignumber.js │ ├── CHANGELOG.md │ ├── LICENCE │ ├── README.md │ ├── bignumber.d.ts │ ├── bignumber.js │ ├── bignumber.min.js │ ├── bignumber.min.js.map │ ├── bignumber.mjs │ └── package.json ├── bn.js │ ├── README.md │ ├── lib │ │ └── bn.js │ ├── package.json │ └── util │ │ ├── genCombMulTo.js │ │ └── genCombMulTo10.js ├── 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 ├── deprecation │ ├── LICENSE │ ├── README.md │ ├── dist-node │ │ └── index.js │ ├── dist-src │ │ └── index.js │ ├── dist-types │ │ └── index.d.ts │ ├── dist-web │ │ └── index.js │ └── package.json ├── follow-redirects │ ├── LICENSE │ ├── README.md │ ├── http.js │ ├── https.js │ ├── index.js │ └── package.json ├── inherits │ ├── LICENSE │ ├── README.md │ ├── inherits.js │ ├── inherits_browser.js │ └── package.json ├── is-plain-object │ ├── LICENSE │ ├── README.md │ ├── dist │ │ ├── is-plain-object.js │ │ └── is-plain-object.mjs │ ├── is-plain-object.d.ts │ └── package.json ├── minimalistic-assert │ ├── LICENSE │ ├── index.js │ ├── package.json │ └── readme.md ├── ms │ ├── index.js │ ├── license.md │ ├── package.json │ └── readme.md ├── node-fetch │ ├── CHANGELOG.md │ ├── LICENSE.md │ ├── README.md │ ├── browser.js │ ├── lib │ │ ├── index.es.js │ │ ├── index.js │ │ └── index.mjs │ └── package.json ├── once │ ├── LICENSE │ ├── README.md │ ├── once.js │ └── package.json ├── safer-buffer │ ├── LICENSE │ ├── Porting-Buffer.md │ ├── Readme.md │ ├── dangerous.js │ ├── package.json │ ├── safer.js │ └── tests.js ├── tunnel │ ├── .idea │ │ ├── encodings.xml │ │ ├── modules.xml │ │ ├── node-tunnel.iml │ │ ├── vcs.xml │ │ └── workspace.xml │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ └── tunnel.js │ └── package.json ├── universal-user-agent │ ├── LICENSE.md │ ├── README.md │ ├── dist-node │ │ ├── index.js │ │ └── index.js.map │ ├── dist-src │ │ └── index.js │ ├── dist-types │ │ └── index.d.ts │ ├── dist-web │ │ ├── index.js │ │ └── index.js.map │ └── package.json └── wrappy │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── wrappy.js ├── package-lock.json ├── package.json └── sample.png /.github/workflows/gitstamp.yaml: -------------------------------------------------------------------------------- 1 | # See: https://github.com/weavery/gitstamp-action 2 | --- 3 | name: Gitstamp 4 | on: 5 | push: 6 | branches: 7 | - master 8 | jobs: 9 | gitstamp: 10 | runs-on: ubuntu-latest 11 | name: Timestamp commit with Gitstamp 12 | steps: 13 | - name: Clone repository 14 | uses: actions/checkout@v2 15 | - name: Submit Gitstamp transaction 16 | uses: ./ 17 | with: 18 | wallet-key: ${{ secrets.GITSTAMP_KEYFILE }} 19 | commit-link: true 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # macOS 2 | .DS_Store 3 | 4 | # Visual Studio Code 5 | .vscode/ 6 | 7 | # Editor backup files 8 | *~ 9 | 10 | # Pandoc outputs 11 | *.html 12 | 13 | # NPM packages 14 | node_modules/ 15 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Arto Bendiken 2 | -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file. 4 | 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 | 8 | ## [1.0.4] - 2020-09-11 9 | 10 | ### Changed 11 | 12 | - Renamed the suggested repository secret. 13 | 14 | ## [1.0.3] - 2020-09-11 15 | 16 | ### Added 17 | 18 | - Added an (optional) `Git-Commit-Link` tag to transactions. 19 | 20 | ## [1.0.2] - 2020-09-11 21 | 22 | ### Added 23 | 24 | - Added an `App-Name` tag to transactions. 25 | 26 | ## [1.0.1] - 2020-09-11 27 | 28 | ### Added 29 | 30 | - The first public release. 31 | 32 | [1.0.4]: https://github.com/weavery/gitstamp-action/compare/1.0.3...1.0.4 33 | [1.0.3]: https://github.com/weavery/gitstamp-action/compare/1.0.2...1.0.3 34 | [1.0.2]: https://github.com/weavery/gitstamp-action/compare/1.0.1...1.0.2 35 | [1.0.1]: https://github.com/weavery/gitstamp-action/compare/1.0.0...1.0.1 36 | -------------------------------------------------------------------------------- /CREDITS.md: -------------------------------------------------------------------------------- 1 | # Credits 2 | -------------------------------------------------------------------------------- /TODO.md: -------------------------------------------------------------------------------- 1 | # To-Dos 2 | -------------------------------------------------------------------------------- /UNLICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 1.0.3 2 | -------------------------------------------------------------------------------- /action.yaml: -------------------------------------------------------------------------------- 1 | name: Gitstamp for GitHub Actions 2 | author: Arto Bendiken 3 | description: Timestamp your Git commits using the Arweave permaweb. 4 | inputs: 5 | wallet-key: 6 | description: The Arweave wallet key to use for signing transactions. 7 | required: true 8 | commit-link: 9 | description: A boolean indicating whether to include a GitHub commit link. 10 | required: false 11 | default: false 12 | outputs: 13 | transaction-id: 14 | description: The Arweave transaction ID. 15 | transaction-link: 16 | description: The Arweave transaction explorer link on ViewBlock.io. 17 | response-code: 18 | description: The Arweave HTTP API response status code. 19 | response-text: 20 | description: The Arweave HTTP API response status text. 21 | runs: 22 | using: node12 23 | main: index.js 24 | branding: 25 | icon: clock 26 | color: gray-dark 27 | -------------------------------------------------------------------------------- /node_modules/@actions/core/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright 2019 GitHub 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/command.d.ts: -------------------------------------------------------------------------------- 1 | interface CommandProperties { 2 | [key: string]: any; 3 | } 4 | /** 5 | * Commands 6 | * 7 | * Command Format: 8 | * ::name key=value,key=value::message 9 | * 10 | * Examples: 11 | * ::warning::This is the message 12 | * ::set-env name=MY_VAR::some value 13 | */ 14 | export declare function issueCommand(command: string, properties: CommandProperties, message: any): void; 15 | export declare function issue(name: string, message?: string): void; 16 | /** 17 | * Sanitizes an input into a string so it can be passed into issueCommand safely 18 | * @param input input to sanitize into a string 19 | */ 20 | export declare function toCommandValue(input: any): string; 21 | export {}; 22 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/context.d.ts: -------------------------------------------------------------------------------- 1 | import { WebhookPayload } from './interfaces'; 2 | export declare class Context { 3 | /** 4 | * Webhook payload object that triggered the workflow 5 | */ 6 | payload: WebhookPayload; 7 | eventName: string; 8 | sha: string; 9 | ref: string; 10 | workflow: string; 11 | action: string; 12 | actor: string; 13 | job: string; 14 | runNumber: number; 15 | runId: number; 16 | /** 17 | * Hydrate the context from the environment 18 | */ 19 | constructor(); 20 | get issue(): { 21 | owner: string; 22 | repo: string; 23 | number: number; 24 | }; 25 | get repo(): { 26 | owner: string; 27 | repo: string; 28 | }; 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/github.d.ts: -------------------------------------------------------------------------------- 1 | import * as Context from './context'; 2 | import { GitHub } from './utils'; 3 | import { OctokitOptions } from '@octokit/core/dist-types/types'; 4 | export declare const context: Context.Context; 5 | /** 6 | * Returns a hydrated octokit ready to use for GitHub Actions 7 | * 8 | * @param token the repo PAT or GITHUB_TOKEN 9 | * @param options other options to set 10 | */ 11 | export declare function getOctokit(token: string, options?: OctokitOptions): InstanceType; 12 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/github.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"github.js","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAoC;AACpC,mCAAiD;AAKpC,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C;;;;;GAKG;AACH,SAAgB,UAAU,CACxB,KAAa,EACb,OAAwB;IAExB,OAAO,IAAI,cAAM,CAAC,yBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AACtD,CAAC;AALD,gCAKC"} -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/interfaces.d.ts: -------------------------------------------------------------------------------- 1 | export interface PayloadRepository { 2 | [key: string]: any; 3 | full_name?: string; 4 | name: string; 5 | owner: { 6 | [key: string]: any; 7 | login: string; 8 | name?: string; 9 | }; 10 | html_url?: string; 11 | } 12 | export interface WebhookPayload { 13 | [key: string]: any; 14 | repository?: PayloadRepository; 15 | issue?: { 16 | [key: string]: any; 17 | number: number; 18 | html_url?: string; 19 | body?: string; 20 | }; 21 | pull_request?: { 22 | [key: string]: any; 23 | number: number; 24 | html_url?: string; 25 | body?: string; 26 | }; 27 | sender?: { 28 | [key: string]: any; 29 | type: string; 30 | }; 31 | action?: string; 32 | installation?: { 33 | id: number; 34 | [key: string]: any; 35 | }; 36 | comment?: { 37 | id: number; 38 | [key: string]: any; 39 | }; 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/interfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | /* eslint-disable @typescript-eslint/no-explicit-any */ 3 | Object.defineProperty(exports, "__esModule", { value: true }); 4 | //# sourceMappingURL=interfaces.js.map -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/interfaces.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";AAAA,uDAAuD"} -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/internal/utils.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import * as http from 'http'; 3 | import { OctokitOptions } from '@octokit/core/dist-types/types'; 4 | export declare function getAuthString(token: string, options: OctokitOptions): string | undefined; 5 | export declare function getProxyAgent(destinationUrl: string): http.Agent; 6 | export declare function getApiBaseUrl(): string; 7 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/internal/utils.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/internal/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,iEAAkD;AAGlD,SAAgB,aAAa,CAC3B,KAAa,EACb,OAAuB;IAEvB,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;QAC3B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;KAC5D;SAAM,IAAI,KAAK,IAAI,OAAO,CAAC,IAAI,EAAE;QAChC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;KAC5E;IAED,OAAO,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAA;AAC3E,CAAC;AAXD,sCAWC;AAED,SAAgB,aAAa,CAAC,cAAsB;IAClD,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAA;IACtC,OAAO,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAA;AACpC,CAAC;AAHD,sCAGC;AAED,SAAgB,aAAa;IAC3B,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,wBAAwB,CAAA;AAClE,CAAC;AAFD,sCAEC"} -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | import * as Context from './context'; 2 | import { Octokit } from '@octokit/core'; 3 | import { OctokitOptions } from '@octokit/core/dist-types/types'; 4 | export declare const context: Context.Context; 5 | export declare const GitHub: (new (...args: any[]) => { 6 | [x: string]: any; 7 | }) & { 8 | new (...args: any[]): { 9 | [x: string]: any; 10 | }; 11 | plugins: any[]; 12 | } & typeof Octokit & import("@octokit/core/dist-types/types").Constructor; 15 | /** 16 | * Convience function to correctly format Octokit Options to pass into the constructor. 17 | * 18 | * @param token the repo PAT or GITHUB_TOKEN 19 | * @param options other options to set 20 | */ 21 | export declare function getOctokitOptions(token: string, options?: OctokitOptions): OctokitOptions; 22 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/utils.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAoC;AACpC,wDAAyC;AAEzC,oBAAoB;AACpB,wCAAqC;AAErC,wFAAyE;AACzE,wEAA0D;AAE7C,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAA;AACrC,MAAM,QAAQ,GAAG;IACf,OAAO;IACP,OAAO,EAAE;QACP,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC;KACpC;CACF,CAAA;AAEY,QAAA,MAAM,GAAG,cAAO,CAAC,MAAM,CAClC,kDAAmB,EACnB,mCAAY,CACb,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAEpB;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,KAAa,EACb,OAAwB;IAExB,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,IAAI,EAAE,CAAC,CAAA,CAAC,iEAAiE;IAE/G,OAAO;IACP,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IAC7C,IAAI,IAAI,EAAE;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;KACjB;IAED,OAAO,IAAI,CAAA;AACb,CAAC;AAbD,8CAaC"} -------------------------------------------------------------------------------- /node_modules/@actions/http-client/LICENSE: -------------------------------------------------------------------------------- 1 | Actions Http Client for Node.js 2 | 3 | Copyright (c) GitHub, Inc. 4 | 5 | All rights reserved. 6 | 7 | MIT License 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 10 | associated documentation files (the "Software"), to deal in the Software without restriction, 11 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 12 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 18 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 19 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 21 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/RELEASES.md: -------------------------------------------------------------------------------- 1 | ## Releases 2 | 3 | ## 1.0.7 4 | Update NPM dependencies and add 429 to the list of HttpCodes 5 | 6 | ## 1.0.6 7 | Automatically sends Content-Type and Accept application/json headers for \Json() helper methods if not set in the client or parameters. 8 | 9 | ## 1.0.5 10 | Adds \Json() helper methods for json over http scenarios. 11 | 12 | ## 1.0.4 13 | Started to add \Json() helper methods. Do not use this release for that. Use >= 1.0.5 since there was an issue with types. 14 | 15 | ## 1.0.1 to 1.0.3 16 | Adds proxy support. -------------------------------------------------------------------------------- /node_modules/@actions/http-client/actions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@actions/http-client/actions.png -------------------------------------------------------------------------------- /node_modules/@actions/http-client/auth.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('./interfaces'); 2 | export declare class BasicCredentialHandler implements ifm.IRequestHandler { 3 | username: string; 4 | password: string; 5 | constructor(username: string, password: string); 6 | prepareRequest(options: any): void; 7 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 8 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 9 | } 10 | export declare class BearerCredentialHandler implements ifm.IRequestHandler { 11 | token: string; 12 | constructor(token: string); 13 | prepareRequest(options: any): void; 14 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 15 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 16 | } 17 | export declare class PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler { 18 | token: string; 19 | constructor(token: string); 20 | prepareRequest(options: any): void; 21 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 22 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/interfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/@actions/http-client/proxy.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import * as url from 'url'; 3 | export declare function getProxyUrl(reqUrl: url.Url): url.Url | undefined; 4 | export declare function checkBypass(reqUrl: url.Url): boolean; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2019 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | async function auth(token) { 6 | const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth"; 7 | return { 8 | type: "token", 9 | token: token, 10 | tokenType 11 | }; 12 | } 13 | 14 | /** 15 | * Prefix token for usage in the Authorization header 16 | * 17 | * @param token OAuth token or JSON Web Token 18 | */ 19 | function withAuthorizationPrefix(token) { 20 | if (token.split(/\./).length === 3) { 21 | return `bearer ${token}`; 22 | } 23 | 24 | return `token ${token}`; 25 | } 26 | 27 | async function hook(token, request, route, parameters) { 28 | const endpoint = request.endpoint.merge(route, parameters); 29 | endpoint.headers.authorization = withAuthorizationPrefix(token); 30 | return request(endpoint); 31 | } 32 | 33 | const createTokenAuth = function createTokenAuth(token) { 34 | if (!token) { 35 | throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); 36 | } 37 | 38 | if (typeof token !== "string") { 39 | throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); 40 | } 41 | 42 | token = token.replace(/^(token|bearer) +/i, ""); 43 | return Object.assign(auth.bind(null, token), { 44 | hook: hook.bind(null, token) 45 | }); 46 | }; 47 | 48 | exports.createTokenAuth = createTokenAuth; 49 | //# sourceMappingURL=index.js.map 50 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/auth.js: -------------------------------------------------------------------------------- 1 | export async function auth(token) { 2 | const tokenType = token.split(/\./).length === 3 3 | ? "app" 4 | : /^v\d+\./.test(token) 5 | ? "installation" 6 | : "oauth"; 7 | return { 8 | type: "token", 9 | token: token, 10 | tokenType 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/hook.js: -------------------------------------------------------------------------------- 1 | import { withAuthorizationPrefix } from "./with-authorization-prefix"; 2 | export async function hook(token, request, route, parameters) { 3 | const endpoint = request.endpoint.merge(route, parameters); 4 | endpoint.headers.authorization = withAuthorizationPrefix(token); 5 | return request(endpoint); 6 | } 7 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { auth } from "./auth"; 2 | import { hook } from "./hook"; 3 | export const createTokenAuth = function createTokenAuth(token) { 4 | if (!token) { 5 | throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); 6 | } 7 | if (typeof token !== "string") { 8 | throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); 9 | } 10 | token = token.replace(/^(token|bearer) +/i, ""); 11 | return Object.assign(auth.bind(null, token), { 12 | hook: hook.bind(null, token) 13 | }); 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/auth-token/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Prefix token for usage in the Authorization header 3 | * 4 | * @param token OAuth token or JSON Web Token 5 | */ 6 | export function withAuthorizationPrefix(token) { 7 | if (token.split(/\./).length === 3) { 8 | return `bearer ${token}`; 9 | } 10 | return `token ${token}`; 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/auth.d.ts: -------------------------------------------------------------------------------- 1 | import { Token, Authentication } from "./types"; 2 | export declare function auth(token: Token): Promise; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/hook.d.ts: -------------------------------------------------------------------------------- 1 | import { AnyResponse, EndpointOptions, RequestInterface, RequestParameters, Route, Token } from "./types"; 2 | export declare function hook(token: Token, request: RequestInterface, route: Route | EndpointOptions, parameters?: RequestParameters): Promise; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { StrategyInterface, Token, Authentication } from "./types"; 2 | export declare type Types = { 3 | StrategyOptions: Token; 4 | AuthOptions: never; 5 | Authentication: Authentication; 6 | }; 7 | export declare const createTokenAuth: StrategyInterface; 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import * as OctokitTypes from "@octokit/types"; 2 | export declare type AnyResponse = OctokitTypes.OctokitResponse; 3 | export declare type StrategyInterface = OctokitTypes.StrategyInterface<[Token], [], Authentication>; 4 | export declare type EndpointDefaults = OctokitTypes.EndpointDefaults; 5 | export declare type EndpointOptions = OctokitTypes.EndpointOptions; 6 | export declare type RequestParameters = OctokitTypes.RequestParameters; 7 | export declare type RequestInterface = OctokitTypes.RequestInterface; 8 | export declare type Route = OctokitTypes.Route; 9 | export declare type Token = string; 10 | export declare type OAuthTokenAuthentication = { 11 | type: "token"; 12 | tokenType: "oauth"; 13 | token: Token; 14 | }; 15 | export declare type InstallationTokenAuthentication = { 16 | type: "token"; 17 | tokenType: "installation"; 18 | token: Token; 19 | }; 20 | export declare type AppAuthentication = { 21 | type: "token"; 22 | tokenType: "app"; 23 | token: Token; 24 | }; 25 | export declare type Authentication = OAuthTokenAuthentication | InstallationTokenAuthentication | AppAuthentication; 26 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-types/with-authorization-prefix.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Prefix token for usage in the Authorization header 3 | * 4 | * @param token OAuth token or JSON Web Token 5 | */ 6 | export declare function withAuthorizationPrefix(token: string): string; 7 | -------------------------------------------------------------------------------- /node_modules/@octokit/auth-token/dist-web/index.js: -------------------------------------------------------------------------------- 1 | async function auth(token) { 2 | const tokenType = token.split(/\./).length === 3 3 | ? "app" 4 | : /^v\d+\./.test(token) 5 | ? "installation" 6 | : "oauth"; 7 | return { 8 | type: "token", 9 | token: token, 10 | tokenType 11 | }; 12 | } 13 | 14 | /** 15 | * Prefix token for usage in the Authorization header 16 | * 17 | * @param token OAuth token or JSON Web Token 18 | */ 19 | function withAuthorizationPrefix(token) { 20 | if (token.split(/\./).length === 3) { 21 | return `bearer ${token}`; 22 | } 23 | return `token ${token}`; 24 | } 25 | 26 | async function hook(token, request, route, parameters) { 27 | const endpoint = request.endpoint.merge(route, parameters); 28 | endpoint.headers.authorization = withAuthorizationPrefix(token); 29 | return request(endpoint); 30 | } 31 | 32 | const createTokenAuth = function createTokenAuth(token) { 33 | if (!token) { 34 | throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); 35 | } 36 | if (typeof token !== "string") { 37 | throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); 38 | } 39 | token = token.replace(/^(token|bearer) +/i, ""); 40 | return Object.assign(auth.bind(null, token), { 41 | hook: hook.bind(null, token) 42 | }); 43 | }; 44 | 45 | export { createTokenAuth }; 46 | //# sourceMappingURL=index.js.map 47 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2019 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/core/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "3.1.2"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import * as OctokitTypes from "@octokit/types"; 2 | import { Octokit } from "."; 3 | export declare type RequestParameters = OctokitTypes.RequestParameters; 4 | export declare type OctokitOptions = { 5 | authStrategy?: any; 6 | auth?: any; 7 | userAgent?: string; 8 | previews?: string[]; 9 | baseUrl?: string; 10 | log?: { 11 | debug: (message: string) => unknown; 12 | info: (message: string) => unknown; 13 | warn: (message: string) => unknown; 14 | error: (message: string) => unknown; 15 | }; 16 | request?: OctokitTypes.RequestRequestOptions; 17 | timeZone?: string; 18 | [option: string]: any; 19 | }; 20 | export declare type Constructor = new (...args: any[]) => T; 21 | export declare type ReturnTypeOf = T extends AnyFunction ? ReturnType : T extends AnyFunction[] ? UnionToIntersection> : never; 22 | /** 23 | * @author https://stackoverflow.com/users/2887218/jcalz 24 | * @see https://stackoverflow.com/a/50375286/10325032 25 | */ 26 | export declare type UnionToIntersection = (Union extends any ? (argument: Union) => void : never) extends (argument: infer Intersection) => void ? Intersection : never; 27 | declare type AnyFunction = (...args: any) => any; 28 | export declare type OctokitPlugin = (octokit: Octokit, options: OctokitOptions) => { 29 | [key: string]: any; 30 | } | void; 31 | export {}; 32 | -------------------------------------------------------------------------------- /node_modules/@octokit/core/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "3.1.2"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2018 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/defaults.js: -------------------------------------------------------------------------------- 1 | import { getUserAgent } from "universal-user-agent"; 2 | import { VERSION } from "./version"; 3 | const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`; 4 | // DEFAULTS has all properties set that EndpointOptions has, except url. 5 | // So we use RequestParameters and add method as additional required property. 6 | export const DEFAULTS = { 7 | method: "GET", 8 | baseUrl: "https://api.github.com", 9 | headers: { 10 | accept: "application/vnd.github.v3+json", 11 | "user-agent": userAgent, 12 | }, 13 | mediaType: { 14 | format: "", 15 | previews: [], 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/endpoint-with-defaults.js: -------------------------------------------------------------------------------- 1 | import { merge } from "./merge"; 2 | import { parse } from "./parse"; 3 | export function endpointWithDefaults(defaults, route, options) { 4 | return parse(merge(defaults, route, options)); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { withDefaults } from "./with-defaults"; 2 | import { DEFAULTS } from "./defaults"; 3 | export const endpoint = withDefaults(null, DEFAULTS); 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/merge.js: -------------------------------------------------------------------------------- 1 | import { lowercaseKeys } from "./util/lowercase-keys"; 2 | import { mergeDeep } from "./util/merge-deep"; 3 | export function merge(defaults, route, options) { 4 | if (typeof route === "string") { 5 | let [method, url] = route.split(" "); 6 | options = Object.assign(url ? { method, url } : { url: method }, options); 7 | } 8 | else { 9 | options = Object.assign({}, route); 10 | } 11 | // lowercase header names before merging with defaults to avoid duplicates 12 | options.headers = lowercaseKeys(options.headers); 13 | const mergedOptions = mergeDeep(defaults || {}, options); 14 | // mediaType.previews arrays are merged, instead of overwritten 15 | if (defaults && defaults.mediaType.previews.length) { 16 | mergedOptions.mediaType.previews = defaults.mediaType.previews 17 | .filter((preview) => !mergedOptions.mediaType.previews.includes(preview)) 18 | .concat(mergedOptions.mediaType.previews); 19 | } 20 | mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map((preview) => preview.replace(/-preview/, "")); 21 | return mergedOptions; 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/add-query-parameters.js: -------------------------------------------------------------------------------- 1 | export function addQueryParameters(url, parameters) { 2 | const separator = /\?/.test(url) ? "&" : "?"; 3 | const names = Object.keys(parameters); 4 | if (names.length === 0) { 5 | return url; 6 | } 7 | return (url + 8 | separator + 9 | names 10 | .map((name) => { 11 | if (name === "q") { 12 | return ("q=" + parameters.q.split("+").map(encodeURIComponent).join("+")); 13 | } 14 | return `${name}=${encodeURIComponent(parameters[name])}`; 15 | }) 16 | .join("&")); 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/extract-url-variable-names.js: -------------------------------------------------------------------------------- 1 | const urlVariableRegex = /\{[^}]+\}/g; 2 | function removeNonChars(variableName) { 3 | return variableName.replace(/^\W+|\W+$/g, "").split(/,/); 4 | } 5 | export function extractUrlVariableNames(url) { 6 | const matches = url.match(urlVariableRegex); 7 | if (!matches) { 8 | return []; 9 | } 10 | return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js: -------------------------------------------------------------------------------- 1 | export function lowercaseKeys(object) { 2 | if (!object) { 3 | return {}; 4 | } 5 | return Object.keys(object).reduce((newObj, key) => { 6 | newObj[key.toLowerCase()] = object[key]; 7 | return newObj; 8 | }, {}); 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/merge-deep.js: -------------------------------------------------------------------------------- 1 | import { isPlainObject } from "is-plain-object"; 2 | export function mergeDeep(defaults, options) { 3 | const result = Object.assign({}, defaults); 4 | Object.keys(options).forEach((key) => { 5 | if (isPlainObject(options[key])) { 6 | if (!(key in defaults)) 7 | Object.assign(result, { [key]: options[key] }); 8 | else 9 | result[key] = mergeDeep(defaults[key], options[key]); 10 | } 11 | else { 12 | Object.assign(result, { [key]: options[key] }); 13 | } 14 | }); 15 | return result; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/util/omit.js: -------------------------------------------------------------------------------- 1 | export function omit(object, keysToOmit) { 2 | return Object.keys(object) 3 | .filter((option) => !keysToOmit.includes(option)) 4 | .reduce((obj, key) => { 5 | obj[key] = object[key]; 6 | return obj; 7 | }, {}); 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "6.0.6"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-src/with-defaults.js: -------------------------------------------------------------------------------- 1 | import { endpointWithDefaults } from "./endpoint-with-defaults"; 2 | import { merge } from "./merge"; 3 | import { parse } from "./parse"; 4 | export function withDefaults(oldDefaults, newDefaults) { 5 | const DEFAULTS = merge(oldDefaults, newDefaults); 6 | const endpoint = endpointWithDefaults.bind(null, DEFAULTS); 7 | return Object.assign(endpoint, { 8 | DEFAULTS, 9 | defaults: withDefaults.bind(null, DEFAULTS), 10 | merge: merge.bind(null, DEFAULTS), 11 | parse, 12 | }); 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointDefaults } from "@octokit/types"; 2 | export declare const DEFAULTS: EndpointDefaults; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/endpoint-with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointOptions, RequestParameters, Route } from "@octokit/types"; 2 | import { DEFAULTS } from "./defaults"; 3 | export declare function endpointWithDefaults(defaults: typeof DEFAULTS, route: Route | EndpointOptions, options?: RequestParameters): import("@octokit/types").RequestOptions; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export declare const endpoint: import("@octokit/types").EndpointInterface; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/merge.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointDefaults, RequestParameters, Route } from "@octokit/types"; 2 | export declare function merge(defaults: EndpointDefaults | null, route?: Route | RequestParameters, options?: RequestParameters): EndpointDefaults; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/parse.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointDefaults, RequestOptions } from "@octokit/types"; 2 | export declare function parse(options: EndpointDefaults): RequestOptions; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/add-query-parameters.d.ts: -------------------------------------------------------------------------------- 1 | export declare function addQueryParameters(url: string, parameters: { 2 | [x: string]: string | undefined; 3 | q?: string; 4 | }): string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/extract-url-variable-names.d.ts: -------------------------------------------------------------------------------- 1 | export declare function extractUrlVariableNames(url: string): string[]; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/lowercase-keys.d.ts: -------------------------------------------------------------------------------- 1 | export declare function lowercaseKeys(object?: { 2 | [key: string]: any; 3 | }): { 4 | [key: string]: any; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/merge-deep.d.ts: -------------------------------------------------------------------------------- 1 | export declare function mergeDeep(defaults: any, options: any): object; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/omit.d.ts: -------------------------------------------------------------------------------- 1 | export declare function omit(object: { 2 | [key: string]: any; 3 | }, keysToOmit: string[]): { 4 | [key: string]: any; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/util/url-template.d.ts: -------------------------------------------------------------------------------- 1 | export declare function parseUrl(template: string): { 2 | expand: (context: object) => string; 3 | }; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "6.0.6"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/dist-types/with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointInterface, RequestParameters, EndpointDefaults } from "@octokit/types"; 2 | export declare function withDefaults(oldDefaults: EndpointDefaults | null, newDefaults: RequestParameters): EndpointInterface; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2018 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/error.js: -------------------------------------------------------------------------------- 1 | export class GraphqlError extends Error { 2 | constructor(request, response) { 3 | const message = response.data.errors[0].message; 4 | super(message); 5 | Object.assign(this, response.data); 6 | Object.assign(this, { headers: response.headers }); 7 | this.name = "GraphqlError"; 8 | this.request = request; 9 | // Maintains proper stack trace (only available on V8) 10 | /* istanbul ignore next */ 11 | if (Error.captureStackTrace) { 12 | Error.captureStackTrace(this, this.constructor); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { request } from "@octokit/request"; 2 | import { getUserAgent } from "universal-user-agent"; 3 | import { VERSION } from "./version"; 4 | import { withDefaults } from "./with-defaults"; 5 | export const graphql = withDefaults(request, { 6 | headers: { 7 | "user-agent": `octokit-graphql.js/${VERSION} ${getUserAgent()}`, 8 | }, 9 | method: "POST", 10 | url: "/graphql", 11 | }); 12 | export function withCustomRequest(customRequest) { 13 | return withDefaults(customRequest, { 14 | method: "POST", 15 | url: "/graphql", 16 | }); 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/graphql/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "4.5.6"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/with-defaults.js: -------------------------------------------------------------------------------- 1 | import { request as Request } from "@octokit/request"; 2 | import { graphql } from "./graphql"; 3 | export function withDefaults(request, newDefaults) { 4 | const newRequest = request.defaults(newDefaults); 5 | const newApi = (query, options) => { 6 | return graphql(newRequest, query, options); 7 | }; 8 | return Object.assign(newApi, { 9 | defaults: withDefaults.bind(null, newRequest), 10 | endpoint: Request.endpoint, 11 | }); 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/error.d.ts: -------------------------------------------------------------------------------- 1 | import { ResponseHeaders } from "@octokit/types"; 2 | import { GraphQlEndpointOptions, GraphQlQueryResponse } from "./types"; 3 | export declare class GraphqlError extends Error { 4 | request: GraphQlEndpointOptions; 5 | constructor(request: GraphQlEndpointOptions, response: { 6 | headers: ResponseHeaders; 7 | data: Required>; 8 | }); 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/graphql.d.ts: -------------------------------------------------------------------------------- 1 | import { request as Request } from "@octokit/request"; 2 | import { RequestParameters, GraphQlQueryResponseData } from "./types"; 3 | export declare function graphql(request: typeof Request, query: string | RequestParameters, options?: RequestParameters): Promise; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { request } from "@octokit/request"; 2 | export declare const graphql: import("./types").graphql; 3 | export declare function withCustomRequest(customRequest: typeof request): import("./types").graphql; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "4.5.6"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-types/with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { request as Request } from "@octokit/request"; 2 | import { graphql as ApiInterface, RequestParameters } from "./types"; 3 | export declare function withDefaults(request: typeof Request, newDefaults: RequestParameters): ApiInterface; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License Copyright (c) 2019 Octokit contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { VERSION } from "./version"; 2 | import { paginate } from "./paginate"; 3 | import { iterator } from "./iterator"; 4 | /** 5 | * @param octokit Octokit instance 6 | * @param options Options passed to Octokit constructor 7 | */ 8 | export function paginateRest(octokit) { 9 | return { 10 | paginate: Object.assign(paginate.bind(null, octokit), { 11 | iterator: iterator.bind(null, octokit), 12 | }), 13 | }; 14 | } 15 | paginateRest.VERSION = VERSION; 16 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js: -------------------------------------------------------------------------------- 1 | import { normalizePaginatedListResponse } from "./normalize-paginated-list-response"; 2 | export function iterator(octokit, route, parameters) { 3 | const options = typeof route === "function" 4 | ? route.endpoint(parameters) 5 | : octokit.request.endpoint(route, parameters); 6 | const requestMethod = typeof route === "function" ? route : octokit.request; 7 | const method = options.method; 8 | const headers = options.headers; 9 | let url = options.url; 10 | return { 11 | [Symbol.asyncIterator]: () => ({ 12 | next() { 13 | if (!url) { 14 | return Promise.resolve({ done: true }); 15 | } 16 | return requestMethod({ method, url, headers }) 17 | .then(normalizePaginatedListResponse) 18 | .then((response) => { 19 | // `response.headers.link` format: 20 | // '; rel="next", ; rel="last"' 21 | // sets `url` to undefined if "next" URL is not present or `link` header is not set 22 | url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; 23 | return { value: response }; 24 | }); 25 | }, 26 | }), 27 | }; 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js: -------------------------------------------------------------------------------- 1 | import { iterator } from "./iterator"; 2 | export function paginate(octokit, route, parameters, mapFn) { 3 | if (typeof parameters === "function") { 4 | mapFn = parameters; 5 | parameters = undefined; 6 | } 7 | return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn); 8 | } 9 | function gather(octokit, results, iterator, mapFn) { 10 | return iterator.next().then((result) => { 11 | if (result.done) { 12 | return results; 13 | } 14 | let earlyExit = false; 15 | function done() { 16 | earlyExit = true; 17 | } 18 | results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data); 19 | if (earlyExit) { 20 | return results; 21 | } 22 | return gather(octokit, results, iterator, mapFn); 23 | }); 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "2.3.3"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { PaginateInterface } from "./types"; 2 | export { PaginateInterface } from "./types"; 3 | import { Octokit } from "@octokit/core"; 4 | /** 5 | * @param octokit Octokit instance 6 | * @param options Options passed to Octokit constructor 7 | */ 8 | export declare function paginateRest(octokit: Octokit): { 9 | paginate: PaginateInterface; 10 | }; 11 | export declare namespace paginateRest { 12 | var VERSION: string; 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { RequestInterface, OctokitResponse, RequestParameters, Route } from "./types"; 3 | export declare function iterator(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters): { 4 | [Symbol.asyncIterator]: () => { 5 | next(): Promise<{ 6 | done: boolean; 7 | }> | Promise<{ 8 | value: OctokitResponse; 9 | }>; 10 | }; 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Some “list” response that can be paginated have a different response structure 3 | * 4 | * They have a `total_count` key in the response (search also has `incomplete_results`, 5 | * /installation/repositories also has `repository_selection`), as well as a key with 6 | * the list of the items which name varies from endpoint to endpoint. 7 | * 8 | * Octokit normalizes these responses so that paginated results are always returned following 9 | * the same structure. One challenge is that if the list response has only one page, no Link 10 | * header is provided, so this header alone is not sufficient to check wether a response is 11 | * paginated or not. 12 | * 13 | * We check if a "total_count" key is present in the response data, but also make sure that 14 | * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would 15 | * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref 16 | */ 17 | import { OctokitResponse } from "./types"; 18 | export declare function normalizePaginatedListResponse(response: OctokitResponse): OctokitResponse; 19 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { MapFunction, PaginationResults, RequestParameters, Route, RequestInterface } from "./types"; 3 | export declare function paginate(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters, mapFn?: MapFunction): Promise>; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "2.3.3"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License Copyright (c) 2019 Octokit contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import ENDPOINTS from "./generated/endpoints"; 2 | import { VERSION } from "./version"; 3 | import { endpointsToMethods } from "./endpoints-to-methods"; 4 | /** 5 | * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary 6 | * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is 7 | * done, we will remove the registerEndpoints methods and return the methods 8 | * directly as with the other plugins. At that point we will also remove the 9 | * legacy workarounds and deprecations. 10 | * 11 | * See the plan at 12 | * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 13 | */ 14 | export function restEndpointMethods(octokit) { 15 | return endpointsToMethods(octokit, ENDPOINTS); 16 | } 17 | restEndpointMethods.VERSION = VERSION; 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "4.1.4"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { EndpointsDefaultsAndDecorations } from "./types"; 3 | import { RestEndpointMethods } from "./generated/method-types"; 4 | export declare function endpointsToMethods(octokit: Octokit, endpointsMap: EndpointsDefaultsAndDecorations): RestEndpointMethods; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/endpoints.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointsDefaultsAndDecorations } from "../types"; 2 | declare const Endpoints: EndpointsDefaultsAndDecorations; 3 | export default Endpoints; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | export { RestEndpointMethodTypes } from "./generated/parameters-and-response-types"; 3 | import { Api } from "./types"; 4 | /** 5 | * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary 6 | * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is 7 | * done, we will remove the registerEndpoints methods and return the methods 8 | * directly as with the other plugins. At that point we will also remove the 9 | * legacy workarounds and deprecations. 10 | * 11 | * See the plan at 12 | * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 13 | */ 14 | export declare function restEndpointMethods(octokit: Octokit): Api; 15 | export declare namespace restEndpointMethods { 16 | var VERSION: string; 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import { Route, RequestParameters } from "@octokit/types"; 2 | import { RestEndpointMethods } from "./generated/method-types"; 3 | export declare type Api = RestEndpointMethods; 4 | export declare type EndpointDecorations = { 5 | mapToData?: string; 6 | deprecated?: string; 7 | renamed?: [string, string]; 8 | renamedParameters?: { 9 | [name: string]: string; 10 | }; 11 | }; 12 | export declare type EndpointsDefaultsAndDecorations = { 13 | [scope: string]: { 14 | [methodName: string]: [Route, RequestParameters?, EndpointDecorations?]; 15 | }; 16 | }; 17 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "4.1.4"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2019 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/request-error/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestOptions, ResponseHeaders } from "@octokit/types"; 2 | import { RequestErrorOptions } from "./types"; 3 | /** 4 | * Error with extra properties to help with debugging 5 | */ 6 | export declare class RequestError extends Error { 7 | name: "HttpError"; 8 | /** 9 | * http status code 10 | */ 11 | status: number; 12 | /** 13 | * http status code 14 | * 15 | * @deprecated `error.code` is deprecated in favor of `error.status` 16 | */ 17 | code: number; 18 | /** 19 | * error response headers 20 | */ 21 | headers: ResponseHeaders; 22 | /** 23 | * Request options that lead to the error. 24 | */ 25 | request: RequestOptions; 26 | constructor(message: string, statusCode: number, options: RequestErrorOptions); 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestOptions, ResponseHeaders } from "@octokit/types"; 2 | export declare type RequestErrorOptions = { 3 | headers?: ResponseHeaders; 4 | request: RequestOptions; 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2018 Octokit contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/get-buffer-response.js: -------------------------------------------------------------------------------- 1 | export default function getBufferResponse(response) { 2 | return response.arrayBuffer(); 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { endpoint } from "@octokit/endpoint"; 2 | import { getUserAgent } from "universal-user-agent"; 3 | import { VERSION } from "./version"; 4 | import withDefaults from "./with-defaults"; 5 | export const request = withDefaults(endpoint, { 6 | headers: { 7 | "user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`, 8 | }, 9 | }); 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "5.4.8"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-src/with-defaults.js: -------------------------------------------------------------------------------- 1 | import fetchWrapper from "./fetch-wrapper"; 2 | export default function withDefaults(oldEndpoint, newDefaults) { 3 | const endpoint = oldEndpoint.defaults(newDefaults); 4 | const newApi = function (route, parameters) { 5 | const endpointOptions = endpoint.merge(route, parameters); 6 | if (!endpointOptions.request || !endpointOptions.request.hook) { 7 | return fetchWrapper(endpoint.parse(endpointOptions)); 8 | } 9 | const request = (route, parameters) => { 10 | return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); 11 | }; 12 | Object.assign(request, { 13 | endpoint, 14 | defaults: withDefaults.bind(null, endpoint), 15 | }); 16 | return endpointOptions.request.hook(request, endpointOptions); 17 | }; 18 | return Object.assign(newApi, { 19 | endpoint, 20 | defaults: withDefaults.bind(null, endpoint), 21 | }); 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointInterface } from "@octokit/types"; 2 | export default function fetchWrapper(requestOptions: ReturnType & { 3 | redirect?: "error" | "follow" | "manual"; 4 | }): Promise<{ 5 | status: number; 6 | url: string; 7 | headers: { 8 | [header: string]: string; 9 | }; 10 | data: any; 11 | }>; 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/get-buffer-response.d.ts: -------------------------------------------------------------------------------- 1 | import { Response } from "node-fetch"; 2 | export default function getBufferResponse(response: Response): Promise; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export declare const request: import("@octokit/types").RequestInterface; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "5.4.8"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/dist-types/with-defaults.d.ts: -------------------------------------------------------------------------------- 1 | import { EndpointInterface, RequestInterface, RequestParameters } from "@octokit/types"; 2 | export default function withDefaults(oldEndpoint: EndpointInterface, newDefaults: RequestParameters): RequestInterface; 3 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License Copyright (c) 2019 Octokit contributors 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | const VERSION = "5.4.1"; 6 | 7 | exports.VERSION = VERSION; 8 | //# sourceMappingURL=index.js.map 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/VERSION.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n"],"names":["VERSION"],"mappings":";;;;MAAaA,OAAO,GAAG;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/AuthInterface.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/AuthInterface.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/EndpointDefaults.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/EndpointDefaults.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/EndpointInterface.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/EndpointInterface.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/EndpointOptions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/EndpointOptions.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Fetch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/Fetch.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/OctokitResponse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/OctokitResponse.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestError.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/RequestError.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestHeaders.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/RequestHeaders.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestInterface.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/RequestInterface.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestMethod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/RequestMethod.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestOptions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/RequestOptions.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestParameters.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/RequestParameters.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/RequestRequestOptions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/RequestRequestOptions.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/ResponseHeaders.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/ResponseHeaders.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Route.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/Route.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Signal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/Signal.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/StrategyInterface.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/StrategyInterface.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/Url.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/Url.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/VERSION.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "5.4.1"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/generated/Endpoints.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/node_modules/@octokit/types/dist-src/generated/Endpoints.js -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export * from "./AuthInterface"; 2 | export * from "./EndpointDefaults"; 3 | export * from "./EndpointInterface"; 4 | export * from "./EndpointOptions"; 5 | export * from "./Fetch"; 6 | export * from "./OctokitResponse"; 7 | export * from "./RequestError"; 8 | export * from "./RequestHeaders"; 9 | export * from "./RequestInterface"; 10 | export * from "./RequestMethod"; 11 | export * from "./RequestOptions"; 12 | export * from "./RequestParameters"; 13 | export * from "./RequestRequestOptions"; 14 | export * from "./ResponseHeaders"; 15 | export * from "./Route"; 16 | export * from "./Signal"; 17 | export * from "./StrategyInterface"; 18 | export * from "./Url"; 19 | export * from "./VERSION"; 20 | export * from "./GetResponseTypeFromEndpointMethod"; 21 | export * from "./generated/Endpoints"; 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestHeaders } from "./RequestHeaders"; 2 | import { RequestMethod } from "./RequestMethod"; 3 | import { RequestParameters } from "./RequestParameters"; 4 | import { Url } from "./Url"; 5 | /** 6 | * The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters 7 | * as well as the method property. 8 | */ 9 | export declare type EndpointDefaults = RequestParameters & { 10 | baseUrl: Url; 11 | method: RequestMethod; 12 | url?: Url; 13 | headers: RequestHeaders & { 14 | accept: string; 15 | "user-agent": string; 16 | }; 17 | mediaType: { 18 | format: string; 19 | previews: string[]; 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/EndpointOptions.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestMethod } from "./RequestMethod"; 2 | import { Url } from "./Url"; 3 | import { RequestParameters } from "./RequestParameters"; 4 | export declare type EndpointOptions = RequestParameters & { 5 | method: RequestMethod; 6 | url: Url; 7 | }; 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Fetch.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Browser's fetch method (or compatible such as fetch-mock) 3 | */ 4 | export declare type Fetch = any; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts: -------------------------------------------------------------------------------- 1 | declare type Unwrap = T extends Promise ? U : T; 2 | declare type AnyFunction = (...args: any[]) => any; 3 | export declare type GetResponseTypeFromEndpointMethod = Unwrap>; 4 | export declare type GetResponseDataTypeFromEndpointMethod = Unwrap>["data"]; 5 | export {}; 6 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/OctokitResponse.d.ts: -------------------------------------------------------------------------------- 1 | import { ResponseHeaders } from "./ResponseHeaders"; 2 | import { Url } from "./Url"; 3 | export declare type OctokitResponse = { 4 | headers: ResponseHeaders; 5 | /** 6 | * http response code 7 | */ 8 | status: number; 9 | /** 10 | * URL of response after all redirects 11 | */ 12 | url: Url; 13 | /** 14 | * This is the data you would see in https://developer.Octokit.com/v3/ 15 | */ 16 | data: T; 17 | }; 18 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestError.d.ts: -------------------------------------------------------------------------------- 1 | export declare type RequestError = { 2 | name: string; 3 | status: number; 4 | documentation_url: string; 5 | errors?: Array<{ 6 | resource: string; 7 | code: string; 8 | field: string; 9 | message?: string; 10 | }>; 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestHeaders.d.ts: -------------------------------------------------------------------------------- 1 | export declare type RequestHeaders = { 2 | /** 3 | * Avoid setting `headers.accept`, use `mediaType.{format|previews}` option instead. 4 | */ 5 | accept?: string; 6 | /** 7 | * Use `authorization` to send authenticated request, remember `token ` / `bearer ` prefixes. Example: `token 1234567890abcdef1234567890abcdef12345678` 8 | */ 9 | authorization?: string; 10 | /** 11 | * `user-agent` is set do a default and can be overwritten as needed. 12 | */ 13 | "user-agent"?: string; 14 | [header: string]: string | number | undefined; 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestMethod.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * HTTP Verb supported by GitHub's REST API 3 | */ 4 | export declare type RequestMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT"; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestOptions.d.ts: -------------------------------------------------------------------------------- 1 | import { RequestHeaders } from "./RequestHeaders"; 2 | import { RequestMethod } from "./RequestMethod"; 3 | import { RequestRequestOptions } from "./RequestRequestOptions"; 4 | import { Url } from "./Url"; 5 | /** 6 | * Generic request options as they are returned by the `endpoint()` method 7 | */ 8 | export declare type RequestOptions = { 9 | method: RequestMethod; 10 | url: Url; 11 | headers: RequestHeaders; 12 | body?: any; 13 | request?: RequestRequestOptions; 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { Agent } from "http"; 3 | import { Fetch } from "./Fetch"; 4 | import { Signal } from "./Signal"; 5 | /** 6 | * Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled 7 | */ 8 | export declare type RequestRequestOptions = { 9 | /** 10 | * Node only. Useful for custom proxy, certificate, or dns lookup. 11 | */ 12 | agent?: Agent; 13 | /** 14 | * Custom replacement for built-in fetch method. Useful for testing or request hooks. 15 | */ 16 | fetch?: Fetch; 17 | /** 18 | * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests. 19 | */ 20 | signal?: Signal; 21 | /** 22 | * Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead. 23 | */ 24 | timeout?: number; 25 | [option: string]: any; 26 | }; 27 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts: -------------------------------------------------------------------------------- 1 | export declare type ResponseHeaders = { 2 | "cache-control"?: string; 3 | "content-length"?: number; 4 | "content-type"?: string; 5 | date?: string; 6 | etag?: string; 7 | "last-modified"?: string; 8 | link?: string; 9 | location?: string; 10 | server?: string; 11 | status?: string; 12 | vary?: string; 13 | "x-github-mediatype"?: string; 14 | "x-github-request-id"?: string; 15 | "x-oauth-scopes"?: string; 16 | "x-ratelimit-limit"?: string; 17 | "x-ratelimit-remaining"?: string; 18 | "x-ratelimit-reset"?: string; 19 | [header: string]: string | number | undefined; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Route.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * String consisting of an optional HTTP method and relative path or absolute URL. Examples: `'/orgs/:org'`, `'PUT /orgs/:org'`, `GET https://example.com/foo/bar` 3 | */ 4 | export declare type Route = string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Signal.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Abort signal 3 | * 4 | * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal 5 | */ 6 | export declare type Signal = any; 7 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/StrategyInterface.d.ts: -------------------------------------------------------------------------------- 1 | import { AuthInterface } from "./AuthInterface"; 2 | export interface StrategyInterface { 3 | (...args: StrategyOptions): AuthInterface; 4 | } 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/Url.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Relative or absolute URL. Examples: `'/orgs/:org'`, `https://example.com/foo/bar` 3 | */ 4 | export declare type Url = string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/VERSION.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "5.4.1"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from "./AuthInterface"; 2 | export * from "./EndpointDefaults"; 3 | export * from "./EndpointInterface"; 4 | export * from "./EndpointOptions"; 5 | export * from "./Fetch"; 6 | export * from "./OctokitResponse"; 7 | export * from "./RequestError"; 8 | export * from "./RequestHeaders"; 9 | export * from "./RequestInterface"; 10 | export * from "./RequestMethod"; 11 | export * from "./RequestOptions"; 12 | export * from "./RequestParameters"; 13 | export * from "./RequestRequestOptions"; 14 | export * from "./ResponseHeaders"; 15 | export * from "./Route"; 16 | export * from "./Signal"; 17 | export * from "./StrategyInterface"; 18 | export * from "./Url"; 19 | export * from "./VERSION"; 20 | export * from "./GetResponseTypeFromEndpointMethod"; 21 | export * from "./generated/Endpoints"; 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-web/index.js: -------------------------------------------------------------------------------- 1 | const VERSION = "5.4.1"; 2 | 3 | export { VERSION }; 4 | //# sourceMappingURL=index.js.map 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/VERSION.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"} -------------------------------------------------------------------------------- /node_modules/@types/node/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. 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 | -------------------------------------------------------------------------------- /node_modules/@types/node/base.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.7. 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.7/base.d.ts - Definitions specific to TypeScript 3.7 7 | // - ~/ts3.7/index.d.ts - Definitions specific to TypeScript 3.7 with assert pulled in 8 | 9 | // Reference required types from the default lib: 10 | /// 11 | /// 12 | /// 13 | /// 14 | 15 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 16 | // tslint:disable-next-line:no-bad-reference 17 | /// 18 | 19 | // TypeScript 3.7-specific augmentations: 20 | /// 21 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/buffer.d.ts: -------------------------------------------------------------------------------- 1 | declare module "buffer" { 2 | export const INSPECT_MAX_BYTES: number; 3 | export const kMaxLength: number; 4 | export const kStringMaxLength: number; 5 | export const constants: { 6 | MAX_LENGTH: number; 7 | MAX_STRING_LENGTH: number; 8 | }; 9 | const BuffType: typeof Buffer; 10 | 11 | export type TranscodeEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "latin1" | "binary"; 12 | 13 | export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer; 14 | 15 | export const SlowBuffer: { 16 | /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */ 17 | new(size: number): Buffer; 18 | prototype: Buffer; 19 | }; 20 | 21 | export { BuffType as Buffer }; 22 | } 23 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/constants.d.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ 2 | declare module "constants" { 3 | import { constants as osConstants, SignalConstants } from 'os'; 4 | import { constants as cryptoConstants } from 'crypto'; 5 | import { constants as fsConstants } from 'fs'; 6 | const exp: typeof osConstants.errno & typeof osConstants.priority & SignalConstants & typeof cryptoConstants & typeof fsConstants; 7 | export = exp; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/domain.d.ts: -------------------------------------------------------------------------------- 1 | declare module "domain" { 2 | import { EventEmitter } from "events"; 3 | 4 | global { 5 | namespace NodeJS { 6 | interface Domain extends EventEmitter { 7 | run(fn: (...args: any[]) => T, ...args: any[]): T; 8 | add(emitter: EventEmitter | Timer): void; 9 | remove(emitter: EventEmitter | Timer): void; 10 | bind(cb: T): T; 11 | intercept(cb: T): T; 12 | } 13 | } 14 | } 15 | 16 | interface Domain extends NodeJS.Domain {} 17 | class Domain extends EventEmitter { 18 | members: Array; 19 | enter(): void; 20 | exit(): void; 21 | } 22 | 23 | function create(): Domain; 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: NodeJS.Global; 2 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/punycode.d.ts: -------------------------------------------------------------------------------- 1 | declare module "punycode" { 2 | function decode(string: string): string; 3 | function encode(string: string): string; 4 | function toUnicode(domain: string): string; 5 | function toASCII(domain: string): string; 6 | const ucs2: ucs2; 7 | interface ucs2 { 8 | decode(string: string): number[]; 9 | encode(codePoints: number[]): string; 10 | } 11 | const version: string; 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/querystring.d.ts: -------------------------------------------------------------------------------- 1 | declare module "querystring" { 2 | interface StringifyOptions { 3 | encodeURIComponent?: (str: string) => string; 4 | } 5 | 6 | interface ParseOptions { 7 | maxKeys?: number; 8 | decodeURIComponent?: (str: string) => string; 9 | } 10 | 11 | interface ParsedUrlQuery extends NodeJS.Dict { } 12 | 13 | interface ParsedUrlQueryInput extends NodeJS.Dict | ReadonlyArray | ReadonlyArray | null> { 14 | } 15 | 16 | function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; 17 | function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; 18 | /** 19 | * The querystring.encode() function is an alias for querystring.stringify(). 20 | */ 21 | const encode: typeof stringify; 22 | /** 23 | * The querystring.decode() function is an alias for querystring.parse(). 24 | */ 25 | const decode: typeof parse; 26 | function escape(str: string): string; 27 | function unescape(str: string): string; 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/string_decoder.d.ts: -------------------------------------------------------------------------------- 1 | declare module "string_decoder" { 2 | class StringDecoder { 3 | constructor(encoding?: BufferEncoding); 4 | write(buffer: Buffer): string; 5 | end(buffer?: Buffer): string; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.1/timers.d.ts: -------------------------------------------------------------------------------- 1 | declare module "timers" { 2 | function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 3 | namespace setTimeout { 4 | function __promisify__(ms: number): Promise; 5 | function __promisify__(ms: number, value: T): Promise; 6 | } 7 | function clearTimeout(timeoutId: NodeJS.Timeout): void; 8 | function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): NodeJS.Timeout; 9 | function clearInterval(intervalId: NodeJS.Timeout): void; 10 | function setImmediate(callback: (...args: any[]) => void, ...args: any[]): NodeJS.Immediate; 11 | namespace setImmediate { 12 | function __promisify__(): Promise; 13 | function __promisify__(value: T): Promise; 14 | } 15 | function clearImmediate(immediateId: NodeJS.Immediate): void; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/base.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.2 - 3.4. 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/base.d.ts - Definitions specific to TypeScript 3.2 7 | // - ~/ts3.2/index.d.ts - Definitions specific to TypeScript 3.2 with global and assert pulled in 8 | 9 | // Reference required types from the default lib: 10 | /// 11 | /// 12 | /// 13 | /// 14 | 15 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 16 | // tslint:disable-next-line:no-bad-reference 17 | /// 18 | 19 | // TypeScript 3.2-specific augmentations: 20 | /// 21 | /// 22 | /// 23 | /// 24 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/fs.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare module 'fs' { 5 | interface BigIntStats extends StatsBase { 6 | } 7 | 8 | class BigIntStats { 9 | atimeNs: bigint; 10 | mtimeNs: bigint; 11 | ctimeNs: bigint; 12 | birthtimeNs: bigint; 13 | } 14 | 15 | interface BigIntOptions { 16 | bigint: true; 17 | } 18 | 19 | interface StatOptions { 20 | bigint: boolean; 21 | } 22 | 23 | function stat(path: PathLike, options: BigIntOptions, callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void): void; 24 | function stat(path: PathLike, options: StatOptions, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; 25 | 26 | namespace stat { 27 | function __promisify__(path: PathLike, options: BigIntOptions): Promise; 28 | function __promisify__(path: PathLike, options: StatOptions): Promise; 29 | } 30 | 31 | function statSync(path: PathLike, options: BigIntOptions): BigIntStats; 32 | function statSync(path: PathLike, options: StatOptions): Stats | BigIntStats; 33 | } 34 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/globals.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | interface Buffer extends Uint8Array { 5 | readBigUInt64BE(offset?: number): bigint; 6 | readBigUInt64LE(offset?: number): bigint; 7 | readBigInt64BE(offset?: number): bigint; 8 | readBigInt64LE(offset?: number): bigint; 9 | writeBigInt64BE(value: bigint, offset?: number): number; 10 | writeBigInt64LE(value: bigint, offset?: number): number; 11 | writeBigUInt64BE(value: bigint, offset?: number): number; 12 | writeBigUInt64LE(value: bigint, offset?: number): number; 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.2 - 3.4. 2 | // This is required to enable globalThis support for global in ts3.5 without causing errors 3 | // This is required to enable typing assert in ts3.7 without causing errors 4 | // Typically type modifiations should be made in base.d.ts instead of here 5 | 6 | /// 7 | 8 | // tslint:disable-next-line:no-bad-reference 9 | /// 10 | 11 | // tslint:disable-next-line:no-bad-reference 12 | /// 13 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/process.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare module 'process' { 5 | global { 6 | namespace NodeJS { 7 | interface HRTime { 8 | bigint(): bigint; 9 | } 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.4/util.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare module "util" { 5 | namespace types { 6 | function isBigInt64Array(value: any): value is BigInt64Array; 7 | function isBigUint64Array(value: any): value is BigUint64Array; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.6/base.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.5. 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.5/base.d.ts - Definitions specific to TypeScript 3.5 7 | // - ~/ts3.5/index.d.ts - Definitions specific to TypeScript 3.5 with assert pulled in 8 | 9 | // Reference required types from the default lib: 10 | /// 11 | /// 12 | /// 13 | /// 14 | 15 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 16 | // tslint:disable-next-line:no-bad-reference 17 | /// 18 | 19 | // TypeScript 3.5-specific augmentations: 20 | /// 21 | 22 | // TypeScript 3.5-specific augmentations: 23 | /// 24 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.6/globals.global.d.ts: -------------------------------------------------------------------------------- 1 | declare var global: NodeJS.Global & typeof globalThis; 2 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.6/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.5 - 3.6. 2 | // This is required to enable typing assert in ts3.7 without causing errors 3 | // Typically type modifications should be made in base.d.ts instead of here 4 | 5 | /// 6 | 7 | // tslint:disable-next-line:no-bad-reference 8 | /// 9 | -------------------------------------------------------------------------------- /node_modules/arweave/LICENSE.md: -------------------------------------------------------------------------------- 1 | Copyright 2020 The Arweave Team 2 | Copyright 2020 Minimum Spanning Technologies Limited 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 5 | 6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 9 | -------------------------------------------------------------------------------- /node_modules/arweave/node/ar.d.ts: -------------------------------------------------------------------------------- 1 | export default class Ar { 2 | /** 3 | * Method to take a string value and return a bignumber object. 4 | * 5 | * @protected 6 | * @type {Function} 7 | * @memberof Arweave 8 | */ 9 | protected readonly BigNum: Function; 10 | constructor(); 11 | winstonToAr(winstonString: string, { formatted, decimals, trim }?: { 12 | formatted?: boolean | undefined; 13 | decimals?: number | undefined; 14 | trim?: boolean | undefined; 15 | }): string; 16 | arToWinston(arString: string, { formatted }?: { 17 | formatted?: boolean | undefined; 18 | }): string; 19 | compare(winstonStringA: string, winstonStringB: string): number; 20 | isEqual(winstonStringA: string, winstonStringB: string): boolean; 21 | isLessThan(winstonStringA: string, winstonStringB: string): boolean; 22 | isGreaterThan(winstonStringA: string, winstonStringB: string): boolean; 23 | add(winstonStringA: string, winstonStringB: string): string; 24 | sub(winstonStringA: string, winstonStringB: string): string; 25 | private stringToBigNum; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/arweave/node/chunks.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | export interface TransactionOffsetResponse { 3 | size: string; 4 | offset: string; 5 | } 6 | export interface TransactionChunkResponse { 7 | chunk: string; 8 | data_path: string; 9 | tx_path: string; 10 | } 11 | export default class Chunks { 12 | private api; 13 | constructor(api: Api); 14 | getTransactionOffset(id: string): Promise; 15 | getChunk(offset: string | number | BigInt): Promise; 16 | getChunkData(offset: string | number | BigInt): Promise; 17 | firstChunkOffset(offsetResponse: TransactionOffsetResponse): number; 18 | downloadChunkedData(id: string): Promise; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/arweave/node/index.d.ts: -------------------------------------------------------------------------------- 1 | import Arweave from "./common"; 2 | export = Arweave; 3 | -------------------------------------------------------------------------------- /node_modules/arweave/node/index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | const common_1 = require("./common"); 3 | const node_driver_1 = require("./lib/crypto/node-driver"); 4 | common_1.default.crypto = new node_driver_1.default(); 5 | common_1.default.init = function (apiConfig = {}) { 6 | return new common_1.default(apiConfig); 7 | }; 8 | module.exports = common_1.default; 9 | //# sourceMappingURL=index.js.map -------------------------------------------------------------------------------- /node_modules/arweave/node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":";AAAA,qCAA+B;AAE/B,0DAAwD;AAExD,gBAAO,CAAC,MAAM,GAAG,IAAI,qBAAgB,EAAE,CAAC;AAExC,gBAAO,CAAC,IAAI,GAAG,UAAS,YAAuB,EAAE;IAC/C,OAAO,IAAI,gBAAO,CAAC,SAAS,CAAC,CAAC;AAChC,CAAC,CAAC;AAEF,iBAAS,gBAAO,CAAC"} -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/api.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { AxiosResponse, AxiosRequestConfig, AxiosInstance } from "axios"; 3 | export interface ApiConfig { 4 | host?: string; 5 | protocol?: string; 6 | port?: string | number; 7 | timeout?: number; 8 | logging?: boolean; 9 | logger?: Function; 10 | } 11 | export default class Api { 12 | readonly METHOD_GET = "GET"; 13 | readonly METHOD_POST = "POST"; 14 | config: ApiConfig; 15 | constructor(config: ApiConfig); 16 | applyConfig(config: ApiConfig): void; 17 | getConfig(): ApiConfig; 18 | private mergeDefaults; 19 | get(endpoint: string, config?: AxiosRequestConfig): Promise; 20 | post(endpoint: string, body: Buffer | string | object, config?: AxiosRequestConfig): Promise; 21 | /** 22 | * Get an AxiosInstance with the base configuration setup to fire off 23 | * a request to the network. 24 | */ 25 | request(): AxiosInstance; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/crypto/crypto-interface.d.ts: -------------------------------------------------------------------------------- 1 | import { JWKInterface } from "../wallet"; 2 | export default interface CryptoInterface { 3 | generateJWK(): Promise; 4 | sign(jwk: JWKInterface, data: Uint8Array): Promise; 5 | verify(publicModulus: string, data: Uint8Array, signature: Uint8Array): Promise; 6 | encrypt(data: Uint8Array, key: string | Uint8Array): Promise; 7 | decrypt(encrypted: Uint8Array, key: string | Uint8Array): Promise; 8 | hash(data: Uint8Array, algorithm?: string): Promise; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/crypto/crypto-interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=crypto-interface.js.map -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/crypto/crypto-interface.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"crypto-interface.js","sourceRoot":"","sources":["../../../../../src/common/lib/crypto/crypto-interface.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/crypto/pem.d.ts: -------------------------------------------------------------------------------- 1 | export declare function pemTojwk(pem: any, extras?: any): any; 2 | export declare function jwkTopem(json: any): any; 3 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/crypto/webcrypto-driver.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { JWKInterface } from "../wallet"; 3 | import CryptoInterface from "./crypto-interface"; 4 | export default class WebCryptoDriver implements CryptoInterface { 5 | readonly keyLength = 4096; 6 | readonly publicExponent = 65537; 7 | readonly hashAlgorithm = "sha256"; 8 | readonly driver: SubtleCrypto; 9 | constructor(); 10 | generateJWK(): Promise; 11 | sign(jwk: JWKInterface, data: Uint8Array): Promise; 12 | hash(data: Uint8Array, algorithm?: string): Promise; 13 | verify(publicModulus: string, data: Uint8Array, signature: Uint8Array): Promise; 14 | private jwkToCryptoKey; 15 | private jwkToPublicCryptoKey; 16 | private detectWebCrypto; 17 | encrypt(data: Buffer, key: string | Buffer): Promise; 18 | decrypt(encrypted: Buffer, key: string | Buffer): Promise; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/deepHash.d.ts: -------------------------------------------------------------------------------- 1 | declare type DeepHashChunk = Uint8Array | DeepHashChunks; 2 | interface DeepHashChunks extends Array { 3 | } 4 | export default function deepHash(data: DeepHashChunk): Promise; 5 | export {}; 6 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/deepHash.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const common_1 = require("../common"); 4 | async function deepHash(data) { 5 | if (Array.isArray(data)) { 6 | const tag = common_1.default.utils.concatBuffers([ 7 | common_1.default.utils.stringToBuffer("list"), 8 | common_1.default.utils.stringToBuffer(data.length.toString()) 9 | ]); 10 | return await deepHashChunks(data, await common_1.default.crypto.hash(tag, "SHA-384")); 11 | } 12 | const tag = common_1.default.utils.concatBuffers([ 13 | common_1.default.utils.stringToBuffer("blob"), 14 | common_1.default.utils.stringToBuffer(data.byteLength.toString()) 15 | ]); 16 | const taggedHash = common_1.default.utils.concatBuffers([ 17 | await common_1.default.crypto.hash(tag, "SHA-384"), 18 | await common_1.default.crypto.hash(data, "SHA-384") 19 | ]); 20 | return await common_1.default.crypto.hash(taggedHash, "SHA-384"); 21 | } 22 | exports.default = deepHash; 23 | async function deepHashChunks(chunks, acc) { 24 | if (chunks.length < 1) { 25 | return acc; 26 | } 27 | const hashPair = common_1.default.utils.concatBuffers([ 28 | acc, 29 | await deepHash(chunks[0]) 30 | ]); 31 | const newAcc = await common_1.default.crypto.hash(hashPair, "SHA-384"); 32 | return await deepHashChunks(chunks.slice(1), newAcc); 33 | } 34 | //# sourceMappingURL=deepHash.js.map -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/deepHash.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"deepHash.js","sourceRoot":"","sources":["../../../../src/common/lib/deepHash.ts"],"names":[],"mappings":";;AAAA,sCAAgC;AAOjB,KAAK,UAAU,QAAQ,CACpC,IAAmB;IAEnB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACvB,MAAM,GAAG,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;YACtC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;YACpC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;SACrD,CAAC,CAAC;QAEH,OAAO,MAAM,cAAc,CACzB,IAAI,EACJ,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAC1C,CAAC;KACH;IAED,MAAM,GAAG,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;QACtC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;QACpC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;KACzD,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;QAC7C,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC;QACzC,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;KAC3C,CAAC,CAAC;IAEH,OAAO,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAC1D,CAAC;AA1BD,2BA0BC;AAED,KAAK,UAAU,cAAc,CAC3B,MAAsB,EACtB,GAAe;IAEf,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACrB,OAAO,GAAG,CAAC;KACZ;IAED,MAAM,QAAQ,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;QAC3C,GAAG;QACH,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC1B,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC9D,OAAO,MAAM,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACvD,CAAC"} -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/error.d.ts: -------------------------------------------------------------------------------- 1 | import { AxiosResponse } from "axios"; 2 | export declare const enum ArweaveErrorType { 3 | TX_PENDING = "TX_PENDING", 4 | TX_NOT_FOUND = "TX_NOT_FOUND", 5 | TX_FAILED = "TX_FAILED", 6 | TX_INVALID = "TX_INVALID" 7 | } 8 | export default class ArweaveError extends Error { 9 | readonly type: ArweaveErrorType; 10 | readonly response?: AxiosResponse; 11 | constructor(type: ArweaveErrorType, optional?: { 12 | message?: string; 13 | response?: AxiosResponse; 14 | }); 15 | getType(): ArweaveErrorType; 16 | } 17 | declare type AxiosResponseLite = { 18 | status: number; 19 | statusText?: string; 20 | data: { 21 | error: string; 22 | } | any; 23 | }; 24 | export declare function getError(resp: AxiosResponseLite): any; 25 | export {}; 26 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/error.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.getError = void 0; 4 | class ArweaveError extends Error { 5 | constructor(type, optional = {}) { 6 | if (optional.message) { 7 | super(optional.message); 8 | } 9 | else { 10 | super(); 11 | } 12 | this.type = type; 13 | this.response = optional.response; 14 | } 15 | getType() { 16 | return this.type; 17 | } 18 | } 19 | exports.default = ArweaveError; 20 | // Safely get error string 21 | // from an axios response, falling back to 22 | // resp.data, statusText or 'unknown'. 23 | // Note: a wrongly set content-type can 24 | // cause what is a json response to be interepted 25 | // as a string or Buffer, so we handle that too. 26 | function getError(resp) { 27 | let data = resp.data; 28 | if (typeof resp.data === "string") { 29 | try { 30 | data = JSON.parse(resp.data); 31 | } 32 | catch (e) { } 33 | } 34 | if (resp.data instanceof ArrayBuffer || resp.data instanceof Uint8Array) { 35 | try { 36 | data = JSON.parse(data.toString()); 37 | } 38 | catch (e) { } 39 | } 40 | return data ? data.error || data : resp.statusText || "unknown"; 41 | } 42 | exports.getError = getError; 43 | //# sourceMappingURL=error.js.map -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/error.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../src/common/lib/error.ts"],"names":[],"mappings":";;;AASA,MAAqB,YAAa,SAAQ,KAAK;IAI7C,YACE,IAAsB,EACtB,WAA2D,EAAE;QAE7D,IAAI,QAAQ,CAAC,OAAO,EAAE;YACpB,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SACzB;aAAM;YACL,KAAK,EAAE,CAAC;SACT;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;IACpC,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF;AArBD,+BAqBC;AAQD,0BAA0B;AAC1B,0CAA0C;AAC1C,sCAAsC;AACtC,uCAAuC;AACvC,iDAAiD;AACjD,gDAAgD;AAEhD,SAAgB,QAAQ,CAAC,IAAuB;IAC9C,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAErB,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;QACjC,IAAI;YACF,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC9B;QAAC,OAAO,CAAC,EAAE,GAAE;KACf;IAED,IAAI,IAAI,CAAC,IAAI,YAAY,WAAW,IAAI,IAAI,CAAC,IAAI,YAAY,UAAU,EAAE;QACvE,IAAI;YACF,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;SACpC;QAAC,OAAO,CAAC,EAAE,GAAE;KACf;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,SAAS,CAAC;AAClE,CAAC;AAhBD,4BAgBC"} -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type Base64UrlString = string; 2 | export declare function concatBuffers(buffers: Uint8Array[] | ArrayBuffer[]): Uint8Array; 3 | export declare function b64UrlToString(b64UrlString: string): string; 4 | export declare function bufferToString(buffer: Uint8Array | ArrayBuffer): string; 5 | export declare function stringToBuffer(string: string): Uint8Array; 6 | export declare function stringToB64Url(string: string): string; 7 | export declare function b64UrlToBuffer(b64UrlString: string): Uint8Array; 8 | export declare function bufferTob64(buffer: Uint8Array): string; 9 | export declare function bufferTob64Url(buffer: Uint8Array): string; 10 | export declare function b64UrlEncode(b64UrlString: string): string; 11 | export declare function b64UrlDecode(b64UrlString: string): string; 12 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/wallet.d.ts: -------------------------------------------------------------------------------- 1 | export interface JWKPublicInterface { 2 | kty: string; 3 | e: string; 4 | n: string; 5 | } 6 | export interface JWKInterface extends JWKPublicInterface { 7 | d?: string; 8 | p?: string; 9 | q?: string; 10 | dp?: string; 11 | dq?: string; 12 | qi?: string; 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/wallet.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=wallet.js.map -------------------------------------------------------------------------------- /node_modules/arweave/node/lib/wallet.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../../../src/common/lib/wallet.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/arweave/node/network.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | export interface NetworkInfoInterface { 3 | hosnetworkt: string; 4 | version: number; 5 | release: number; 6 | height: number; 7 | current: string; 8 | blocks: number; 9 | peers: number; 10 | queue_length: number; 11 | node_state_latency: number; 12 | } 13 | export interface PeerList extends Array { 14 | } 15 | export default class Network { 16 | private api; 17 | constructor(api: Api); 18 | getInfo(): Promise; 19 | getPeers(): Promise; 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/arweave/node/network.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | class Network { 4 | constructor(api) { 5 | this.api = api; 6 | } 7 | getInfo() { 8 | return this.api.get(`info`).then(response => { 9 | return response.data; 10 | }); 11 | } 12 | getPeers() { 13 | return this.api.get(`peers`).then(response => { 14 | return response.data; 15 | }); 16 | } 17 | } 18 | exports.default = Network; 19 | //# sourceMappingURL=network.js.map -------------------------------------------------------------------------------- /node_modules/arweave/node/network.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"network.js","sourceRoot":"","sources":["../../../src/common/network.ts"],"names":[],"mappings":";;AAgBA,MAAqB,OAAO;IAG1B,YAAY,GAAQ;QAClB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC1C,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC3C,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,0BAkBC"} -------------------------------------------------------------------------------- /node_modules/arweave/node/silo.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | import CryptoInterface from "./lib/crypto/crypto-interface"; 3 | import Transactions from "./transactions"; 4 | import Transaction from "./lib/transaction"; 5 | export default class Silo { 6 | private api; 7 | private crypto; 8 | private transactions; 9 | constructor(api: Api, crypto: CryptoInterface, transactions: Transactions); 10 | get(siloURI: string): Promise; 11 | readTransactionData(transaction: Transaction, siloURI: string): Promise; 12 | parseUri(siloURI: string): Promise; 13 | private hash; 14 | } 15 | export declare class SiloResource { 16 | private uri; 17 | private accessKey; 18 | private encryptionKey; 19 | constructor(uri: string, accessKey: string, encryptionKey: Uint8Array); 20 | getUri(): string; 21 | getAccessKey(): string; 22 | getEncryptionKey(): Uint8Array; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/arweave/node/wallets.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | import CryptoInterface from "./lib/crypto/crypto-interface"; 3 | import { JWKInterface } from "./lib/wallet"; 4 | export default class Wallets { 5 | private api; 6 | private crypto; 7 | constructor(api: Api, crypto: CryptoInterface); 8 | /** 9 | * Get the wallet balance for the given address. 10 | * 11 | * @param {string} address - The arweave address to get the balance for. 12 | * 13 | * @returns {Promise} - Promise which resolves with a winston string balance. 14 | */ 15 | getBalance(address: string): Promise; 16 | /** 17 | * Get the last transaction ID for the given wallet address. 18 | * 19 | * @param {string} address - The arweave address to get the balance for. 20 | * 21 | * @returns {Promise} - Promise which resolves with a winston string balance. 22 | */ 23 | getLastTransactionID(address: string): Promise; 24 | generate(): Promise; 25 | jwkToAddress(jwk: JWKInterface): Promise; 26 | ownerToAddress(owner: string): Promise; 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/arweave/node/wallets.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"wallets.js","sourceRoot":"","sources":["../../../src/common/wallets.ts"],"names":[],"mappings":";;AAGA,4CAA4C;AAE5C,MAAqB,OAAO;IAK1B,YAAY,GAAQ,EAAE,MAAuB;QAC3C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,OAAe;QAC/B,OAAO,IAAI,CAAC,GAAG;aACZ,GAAG,CAAC,UAAU,OAAO,UAAU,EAAE;YAChC,iBAAiB,EAAE;gBACjB;;;;;;mBAMG;gBACH,UAAS,IAAI;oBACX,OAAO,IAAI,CAAC;gBACd,CAAC;aACF;SACF,CAAC;aACD,IAAI,CAAC,QAAQ,CAAC,EAAE;YACf,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;;;OAMG;IACI,oBAAoB,CAAC,OAAe;QACzC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,OAAO,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC/D,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,GAAiB;QACzC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,KAAa;QACvC,OAAO,YAAY,CAAC,cAAc,CAChC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAC3D,CAAC;IACJ,CAAC;CACF;AAhED,0BAgEC"} -------------------------------------------------------------------------------- /node_modules/arweave/web/ar.d.ts: -------------------------------------------------------------------------------- 1 | export default class Ar { 2 | /** 3 | * Method to take a string value and return a bignumber object. 4 | * 5 | * @protected 6 | * @type {Function} 7 | * @memberof Arweave 8 | */ 9 | protected readonly BigNum: Function; 10 | constructor(); 11 | winstonToAr(winstonString: string, { formatted, decimals, trim }?: { 12 | formatted?: boolean | undefined; 13 | decimals?: number | undefined; 14 | trim?: boolean | undefined; 15 | }): string; 16 | arToWinston(arString: string, { formatted }?: { 17 | formatted?: boolean | undefined; 18 | }): string; 19 | compare(winstonStringA: string, winstonStringB: string): number; 20 | isEqual(winstonStringA: string, winstonStringB: string): boolean; 21 | isLessThan(winstonStringA: string, winstonStringB: string): boolean; 22 | isGreaterThan(winstonStringA: string, winstonStringB: string): boolean; 23 | add(winstonStringA: string, winstonStringB: string): string; 24 | sub(winstonStringA: string, winstonStringB: string): string; 25 | private stringToBigNum; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/arweave/web/chunks.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | export interface TransactionOffsetResponse { 3 | size: string; 4 | offset: string; 5 | } 6 | export interface TransactionChunkResponse { 7 | chunk: string; 8 | data_path: string; 9 | tx_path: string; 10 | } 11 | export default class Chunks { 12 | private api; 13 | constructor(api: Api); 14 | getTransactionOffset(id: string): Promise; 15 | getChunk(offset: string | number | BigInt): Promise; 16 | getChunkData(offset: string | number | BigInt): Promise; 17 | firstChunkOffset(offsetResponse: TransactionOffsetResponse): number; 18 | downloadChunkedData(id: string): Promise; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/arweave/web/index.d.ts: -------------------------------------------------------------------------------- 1 | import Arweave from "./common"; 2 | declare global { 3 | interface Window { 4 | Arweave: typeof Arweave; 5 | } 6 | } 7 | export * from "./common"; 8 | export default Arweave; 9 | -------------------------------------------------------------------------------- /node_modules/arweave/web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/web/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+B;AAE/B,oEAA4D;AAQ5D,gBAAO,CAAC,MAAM,GAAG,IAAI,0BAAe,EAAE,CAAC;AAEvC,gBAAO,CAAC,IAAI,GAAG,UAAS,YAAuB,EAAE;IAC/C,SAAS,gBAAgB;QAKvB,MAAM,QAAQ,GAAG;YACf,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,GAAG;YACT,QAAQ,EAAE,OAAO;SAClB,CAAC;QAEF,IACE,CAAC,MAAM;YACP,CAAC,MAAM,CAAC,QAAQ;YAChB,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ;YACzB,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EACzB;YACA,OAAO,QAAQ,CAAC;SACjB;QAED,2EAA2E;QAC3E,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAClE,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC7C,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI;YACtC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YAChC,CAAC,CAAC,eAAe,IAAI,OAAO;gBAC5B,CAAC,CAAC,GAAG;gBACL,CAAC,CAAC,EAAE,CAAC;QAEP,MAAM,OAAO,GACX,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;YAChD,eAAe,IAAI,MAAM,CAAC;QAE5B,8DAA8D;QAC9D,oCAAoC;QACpC,IAAI,OAAO,EAAE;YACX,OAAO,QAAQ,CAAC;SACjB;QAED,OAAO;YACL,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,WAAW;YACjB,QAAQ,EAAE,eAAe;SAC1B,CAAC;IACJ,CAAC;IAED,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;IAEzC,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,IAAI,aAAa,CAAC,QAAQ,CAAC;IAC9D,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC;IAClD,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,IAAI,aAAa,CAAC,IAAI,CAAC;IAElD,OAAO,IAAI,gBAAO,iCACb,SAAS,KACZ,IAAI;QACJ,QAAQ;QACR,IAAI,IACJ,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,CAAC,OAAO,GAAG,gBAAO,CAAC;AAEzB,2CAAyB;AACzB,kBAAe,gBAAO,CAAC"} -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/api.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { AxiosResponse, AxiosRequestConfig, AxiosInstance } from "axios"; 3 | export interface ApiConfig { 4 | host?: string; 5 | protocol?: string; 6 | port?: string | number; 7 | timeout?: number; 8 | logging?: boolean; 9 | logger?: Function; 10 | } 11 | export default class Api { 12 | readonly METHOD_GET = "GET"; 13 | readonly METHOD_POST = "POST"; 14 | config: ApiConfig; 15 | constructor(config: ApiConfig); 16 | applyConfig(config: ApiConfig): void; 17 | getConfig(): ApiConfig; 18 | private mergeDefaults; 19 | get(endpoint: string, config?: AxiosRequestConfig): Promise; 20 | post(endpoint: string, body: Buffer | string | object, config?: AxiosRequestConfig): Promise; 21 | /** 22 | * Get an AxiosInstance with the base configuration setup to fire off 23 | * a request to the network. 24 | */ 25 | request(): AxiosInstance; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/crypto/crypto-interface.d.ts: -------------------------------------------------------------------------------- 1 | import { JWKInterface } from "../wallet"; 2 | export default interface CryptoInterface { 3 | generateJWK(): Promise; 4 | sign(jwk: JWKInterface, data: Uint8Array): Promise; 5 | verify(publicModulus: string, data: Uint8Array, signature: Uint8Array): Promise; 6 | encrypt(data: Uint8Array, key: string | Uint8Array): Promise; 7 | decrypt(encrypted: Uint8Array, key: string | Uint8Array): Promise; 8 | hash(data: Uint8Array, algorithm?: string): Promise; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/crypto/crypto-interface.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=crypto-interface.js.map -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/crypto/crypto-interface.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"crypto-interface.js","sourceRoot":"","sources":["../../../../../src/common/lib/crypto/crypto-interface.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/crypto/pem.d.ts: -------------------------------------------------------------------------------- 1 | export declare function pemTojwk(pem: any, extras?: any): any; 2 | export declare function jwkTopem(json: any): any; 3 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/crypto/webcrypto-driver.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import { JWKInterface } from "../wallet"; 3 | import CryptoInterface from "./crypto-interface"; 4 | export default class WebCryptoDriver implements CryptoInterface { 5 | readonly keyLength = 4096; 6 | readonly publicExponent = 65537; 7 | readonly hashAlgorithm = "sha256"; 8 | readonly driver: SubtleCrypto; 9 | constructor(); 10 | generateJWK(): Promise; 11 | sign(jwk: JWKInterface, data: Uint8Array): Promise; 12 | hash(data: Uint8Array, algorithm?: string): Promise; 13 | verify(publicModulus: string, data: Uint8Array, signature: Uint8Array): Promise; 14 | private jwkToCryptoKey; 15 | private jwkToPublicCryptoKey; 16 | private detectWebCrypto; 17 | encrypt(data: Buffer, key: string | Buffer): Promise; 18 | decrypt(encrypted: Buffer, key: string | Buffer): Promise; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/deepHash.d.ts: -------------------------------------------------------------------------------- 1 | declare type DeepHashChunk = Uint8Array | DeepHashChunks; 2 | interface DeepHashChunks extends Array { 3 | } 4 | export default function deepHash(data: DeepHashChunk): Promise; 5 | export {}; 6 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/deepHash.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | const common_1 = require("../common"); 4 | async function deepHash(data) { 5 | if (Array.isArray(data)) { 6 | const tag = common_1.default.utils.concatBuffers([ 7 | common_1.default.utils.stringToBuffer("list"), 8 | common_1.default.utils.stringToBuffer(data.length.toString()) 9 | ]); 10 | return await deepHashChunks(data, await common_1.default.crypto.hash(tag, "SHA-384")); 11 | } 12 | const tag = common_1.default.utils.concatBuffers([ 13 | common_1.default.utils.stringToBuffer("blob"), 14 | common_1.default.utils.stringToBuffer(data.byteLength.toString()) 15 | ]); 16 | const taggedHash = common_1.default.utils.concatBuffers([ 17 | await common_1.default.crypto.hash(tag, "SHA-384"), 18 | await common_1.default.crypto.hash(data, "SHA-384") 19 | ]); 20 | return await common_1.default.crypto.hash(taggedHash, "SHA-384"); 21 | } 22 | exports.default = deepHash; 23 | async function deepHashChunks(chunks, acc) { 24 | if (chunks.length < 1) { 25 | return acc; 26 | } 27 | const hashPair = common_1.default.utils.concatBuffers([ 28 | acc, 29 | await deepHash(chunks[0]) 30 | ]); 31 | const newAcc = await common_1.default.crypto.hash(hashPair, "SHA-384"); 32 | return await deepHashChunks(chunks.slice(1), newAcc); 33 | } 34 | //# sourceMappingURL=deepHash.js.map -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/deepHash.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"deepHash.js","sourceRoot":"","sources":["../../../../src/common/lib/deepHash.ts"],"names":[],"mappings":";;AAAA,sCAAgC;AAOjB,KAAK,UAAU,QAAQ,CACpC,IAAmB;IAEnB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACvB,MAAM,GAAG,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;YACtC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;YACpC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;SACrD,CAAC,CAAC;QAEH,OAAO,MAAM,cAAc,CACzB,IAAI,EACJ,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAC1C,CAAC;KACH;IAED,MAAM,GAAG,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;QACtC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;QACpC,gBAAO,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;KACzD,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;QAC7C,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC;QACzC,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;KAC3C,CAAC,CAAC;IAEH,OAAO,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAC1D,CAAC;AA1BD,2BA0BC;AAED,KAAK,UAAU,cAAc,CAC3B,MAAsB,EACtB,GAAe;IAEf,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;QACrB,OAAO,GAAG,CAAC;KACZ;IAED,MAAM,QAAQ,GAAG,gBAAO,CAAC,KAAK,CAAC,aAAa,CAAC;QAC3C,GAAG;QACH,MAAM,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAC1B,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,MAAM,gBAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC9D,OAAO,MAAM,cAAc,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACvD,CAAC"} -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/error.d.ts: -------------------------------------------------------------------------------- 1 | import { AxiosResponse } from "axios"; 2 | export declare const enum ArweaveErrorType { 3 | TX_PENDING = "TX_PENDING", 4 | TX_NOT_FOUND = "TX_NOT_FOUND", 5 | TX_FAILED = "TX_FAILED", 6 | TX_INVALID = "TX_INVALID" 7 | } 8 | export default class ArweaveError extends Error { 9 | readonly type: ArweaveErrorType; 10 | readonly response?: AxiosResponse; 11 | constructor(type: ArweaveErrorType, optional?: { 12 | message?: string; 13 | response?: AxiosResponse; 14 | }); 15 | getType(): ArweaveErrorType; 16 | } 17 | declare type AxiosResponseLite = { 18 | status: number; 19 | statusText?: string; 20 | data: { 21 | error: string; 22 | } | any; 23 | }; 24 | export declare function getError(resp: AxiosResponseLite): any; 25 | export {}; 26 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/error.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.getError = void 0; 4 | class ArweaveError extends Error { 5 | constructor(type, optional = {}) { 6 | if (optional.message) { 7 | super(optional.message); 8 | } 9 | else { 10 | super(); 11 | } 12 | this.type = type; 13 | this.response = optional.response; 14 | } 15 | getType() { 16 | return this.type; 17 | } 18 | } 19 | exports.default = ArweaveError; 20 | // Safely get error string 21 | // from an axios response, falling back to 22 | // resp.data, statusText or 'unknown'. 23 | // Note: a wrongly set content-type can 24 | // cause what is a json response to be interepted 25 | // as a string or Buffer, so we handle that too. 26 | function getError(resp) { 27 | let data = resp.data; 28 | if (typeof resp.data === "string") { 29 | try { 30 | data = JSON.parse(resp.data); 31 | } 32 | catch (e) { } 33 | } 34 | if (resp.data instanceof ArrayBuffer || resp.data instanceof Uint8Array) { 35 | try { 36 | data = JSON.parse(data.toString()); 37 | } 38 | catch (e) { } 39 | } 40 | return data ? data.error || data : resp.statusText || "unknown"; 41 | } 42 | exports.getError = getError; 43 | //# sourceMappingURL=error.js.map -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/error.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../src/common/lib/error.ts"],"names":[],"mappings":";;;AASA,MAAqB,YAAa,SAAQ,KAAK;IAI7C,YACE,IAAsB,EACtB,WAA2D,EAAE;QAE7D,IAAI,QAAQ,CAAC,OAAO,EAAE;YACpB,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;SACzB;aAAM;YACL,KAAK,EAAE,CAAC;SACT;QAED,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;IACpC,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF;AArBD,+BAqBC;AAQD,0BAA0B;AAC1B,0CAA0C;AAC1C,sCAAsC;AACtC,uCAAuC;AACvC,iDAAiD;AACjD,gDAAgD;AAEhD,SAAgB,QAAQ,CAAC,IAAuB;IAC9C,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IAErB,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;QACjC,IAAI;YACF,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SAC9B;QAAC,OAAO,CAAC,EAAE,GAAE;KACf;IAED,IAAI,IAAI,CAAC,IAAI,YAAY,WAAW,IAAI,IAAI,CAAC,IAAI,YAAY,UAAU,EAAE;QACvE,IAAI;YACF,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;SACpC;QAAC,OAAO,CAAC,EAAE,GAAE;KACf;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,SAAS,CAAC;AAClE,CAAC;AAhBD,4BAgBC"} -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | export declare type Base64UrlString = string; 2 | export declare function concatBuffers(buffers: Uint8Array[] | ArrayBuffer[]): Uint8Array; 3 | export declare function b64UrlToString(b64UrlString: string): string; 4 | export declare function bufferToString(buffer: Uint8Array | ArrayBuffer): string; 5 | export declare function stringToBuffer(string: string): Uint8Array; 6 | export declare function stringToB64Url(string: string): string; 7 | export declare function b64UrlToBuffer(b64UrlString: string): Uint8Array; 8 | export declare function bufferTob64(buffer: Uint8Array): string; 9 | export declare function bufferTob64Url(buffer: Uint8Array): string; 10 | export declare function b64UrlEncode(b64UrlString: string): string; 11 | export declare function b64UrlDecode(b64UrlString: string): string; 12 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/wallet.d.ts: -------------------------------------------------------------------------------- 1 | export interface JWKPublicInterface { 2 | kty: string; 3 | e: string; 4 | n: string; 5 | } 6 | export interface JWKInterface extends JWKPublicInterface { 7 | d?: string; 8 | p?: string; 9 | q?: string; 10 | dp?: string; 11 | dq?: string; 12 | qi?: string; 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/wallet.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | //# sourceMappingURL=wallet.js.map -------------------------------------------------------------------------------- /node_modules/arweave/web/lib/wallet.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../../../src/common/lib/wallet.ts"],"names":[],"mappings":""} -------------------------------------------------------------------------------- /node_modules/arweave/web/network.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | export interface NetworkInfoInterface { 3 | hosnetworkt: string; 4 | version: number; 5 | release: number; 6 | height: number; 7 | current: string; 8 | blocks: number; 9 | peers: number; 10 | queue_length: number; 11 | node_state_latency: number; 12 | } 13 | export interface PeerList extends Array { 14 | } 15 | export default class Network { 16 | private api; 17 | constructor(api: Api); 18 | getInfo(): Promise; 19 | getPeers(): Promise; 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/arweave/web/network.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | class Network { 4 | constructor(api) { 5 | this.api = api; 6 | } 7 | getInfo() { 8 | return this.api.get(`info`).then(response => { 9 | return response.data; 10 | }); 11 | } 12 | getPeers() { 13 | return this.api.get(`peers`).then(response => { 14 | return response.data; 15 | }); 16 | } 17 | } 18 | exports.default = Network; 19 | //# sourceMappingURL=network.js.map -------------------------------------------------------------------------------- /node_modules/arweave/web/network.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"network.js","sourceRoot":"","sources":["../../../src/common/network.ts"],"names":[],"mappings":";;AAgBA,MAAqB,OAAO;IAG1B,YAAY,GAAQ;QAClB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,OAAO;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC1C,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC3C,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAlBD,0BAkBC"} -------------------------------------------------------------------------------- /node_modules/arweave/web/silo.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | import CryptoInterface from "./lib/crypto/crypto-interface"; 3 | import Transactions from "./transactions"; 4 | import Transaction from "./lib/transaction"; 5 | export default class Silo { 6 | private api; 7 | private crypto; 8 | private transactions; 9 | constructor(api: Api, crypto: CryptoInterface, transactions: Transactions); 10 | get(siloURI: string): Promise; 11 | readTransactionData(transaction: Transaction, siloURI: string): Promise; 12 | parseUri(siloURI: string): Promise; 13 | private hash; 14 | } 15 | export declare class SiloResource { 16 | private uri; 17 | private accessKey; 18 | private encryptionKey; 19 | constructor(uri: string, accessKey: string, encryptionKey: Uint8Array); 20 | getUri(): string; 21 | getAccessKey(): string; 22 | getEncryptionKey(): Uint8Array; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/arweave/web/wallets.d.ts: -------------------------------------------------------------------------------- 1 | import Api from "./lib/api"; 2 | import CryptoInterface from "./lib/crypto/crypto-interface"; 3 | import { JWKInterface } from "./lib/wallet"; 4 | export default class Wallets { 5 | private api; 6 | private crypto; 7 | constructor(api: Api, crypto: CryptoInterface); 8 | /** 9 | * Get the wallet balance for the given address. 10 | * 11 | * @param {string} address - The arweave address to get the balance for. 12 | * 13 | * @returns {Promise} - Promise which resolves with a winston string balance. 14 | */ 15 | getBalance(address: string): Promise; 16 | /** 17 | * Get the last transaction ID for the given wallet address. 18 | * 19 | * @param {string} address - The arweave address to get the balance for. 20 | * 21 | * @returns {Promise} - Promise which resolves with a winston string balance. 22 | */ 23 | getLastTransactionID(address: string): Promise; 24 | generate(): Promise; 25 | jwkToAddress(jwk: JWKInterface): Promise; 26 | ownerToAddress(owner: string): Promise; 27 | } 28 | -------------------------------------------------------------------------------- /node_modules/arweave/web/wallets.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"wallets.js","sourceRoot":"","sources":["../../../src/common/wallets.ts"],"names":[],"mappings":";;AAGA,4CAA4C;AAE5C,MAAqB,OAAO;IAK1B,YAAY,GAAQ,EAAE,MAAuB;QAC3C,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,OAAe;QAC/B,OAAO,IAAI,CAAC,GAAG;aACZ,GAAG,CAAC,UAAU,OAAO,UAAU,EAAE;YAChC,iBAAiB,EAAE;gBACjB;;;;;;mBAMG;gBACH,UAAS,IAAI;oBACX,OAAO,IAAI,CAAC;gBACd,CAAC;aACF;SACF,CAAC;aACD,IAAI,CAAC,QAAQ,CAAC,EAAE;YACf,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;;;OAMG;IACI,oBAAoB,CAAC,OAAe;QACzC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,OAAO,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;YAC/D,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,CAAC,CAAC;IACL,CAAC;IAEM,QAAQ;QACb,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;IACnC,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,GAAiB;QACzC,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,KAAa;QACvC,OAAO,YAAY,CAAC,cAAc,CAChC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAC3D,CAAC;IACJ,CAAC;CACF;AAhED,0BAgEC"} -------------------------------------------------------------------------------- /node_modules/asn1.js/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | 'env': { 3 | 'browser': false, 4 | 'commonjs': true, 5 | 'es6': true, 6 | 'node': true 7 | }, 8 | 'extends': 'eslint:recommended', 9 | 'rules': { 10 | 'indent': [ 11 | 'error', 12 | 2 13 | ], 14 | 'linebreak-style': [ 15 | 'error', 16 | 'unix' 17 | ], 18 | 'quotes': [ 19 | 'error', 20 | 'single' 21 | ], 22 | 'semi': [ 23 | 'error', 24 | 'always' 25 | ] 26 | } 27 | }; 28 | -------------------------------------------------------------------------------- /node_modules/asn1.js/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Fedor Indutny 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 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const asn1 = exports; 4 | 5 | asn1.bignum = require('bn.js'); 6 | 7 | asn1.define = require('./asn1/api').define; 8 | asn1.base = require('./asn1/base'); 9 | asn1.constants = require('./asn1/constants'); 10 | asn1.decoders = require('./asn1/decoders'); 11 | asn1.encoders = require('./asn1/encoders'); 12 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1/base/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const base = exports; 4 | 5 | base.Reporter = require('./reporter').Reporter; 6 | base.DecoderBuffer = require('./buffer').DecoderBuffer; 7 | base.EncoderBuffer = require('./buffer').EncoderBuffer; 8 | base.Node = require('./node'); 9 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1/constants/der.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | // Helper 4 | function reverse(map) { 5 | const res = {}; 6 | 7 | Object.keys(map).forEach(function(key) { 8 | // Convert key to integer if it is stringified 9 | if ((key | 0) == key) 10 | key = key | 0; 11 | 12 | const value = map[key]; 13 | res[value] = key; 14 | }); 15 | 16 | return res; 17 | } 18 | 19 | exports.tagClass = { 20 | 0: 'universal', 21 | 1: 'application', 22 | 2: 'context', 23 | 3: 'private' 24 | }; 25 | exports.tagClassByName = reverse(exports.tagClass); 26 | 27 | exports.tag = { 28 | 0x00: 'end', 29 | 0x01: 'bool', 30 | 0x02: 'int', 31 | 0x03: 'bitstr', 32 | 0x04: 'octstr', 33 | 0x05: 'null_', 34 | 0x06: 'objid', 35 | 0x07: 'objDesc', 36 | 0x08: 'external', 37 | 0x09: 'real', 38 | 0x0a: 'enum', 39 | 0x0b: 'embed', 40 | 0x0c: 'utf8str', 41 | 0x0d: 'relativeOid', 42 | 0x10: 'seq', 43 | 0x11: 'set', 44 | 0x12: 'numstr', 45 | 0x13: 'printstr', 46 | 0x14: 't61str', 47 | 0x15: 'videostr', 48 | 0x16: 'ia5str', 49 | 0x17: 'utctime', 50 | 0x18: 'gentime', 51 | 0x19: 'graphstr', 52 | 0x1a: 'iso646str', 53 | 0x1b: 'genstr', 54 | 0x1c: 'unistr', 55 | 0x1d: 'charstr', 56 | 0x1e: 'bmpstr' 57 | }; 58 | exports.tagByName = reverse(exports.tag); 59 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1/constants/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const constants = exports; 4 | 5 | // Helper 6 | constants._reverse = function reverse(map) { 7 | const res = {}; 8 | 9 | Object.keys(map).forEach(function(key) { 10 | // Convert key to integer if it is stringified 11 | if ((key | 0) == key) 12 | key = key | 0; 13 | 14 | const value = map[key]; 15 | res[value] = key; 16 | }); 17 | 18 | return res; 19 | }; 20 | 21 | constants.der = require('./der'); 22 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1/decoders/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const decoders = exports; 4 | 5 | decoders.der = require('./der'); 6 | decoders.pem = require('./pem'); 7 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1/decoders/pem.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const inherits = require('inherits'); 4 | const Buffer = require('safer-buffer').Buffer; 5 | 6 | const DERDecoder = require('./der'); 7 | 8 | function PEMDecoder(entity) { 9 | DERDecoder.call(this, entity); 10 | this.enc = 'pem'; 11 | } 12 | inherits(PEMDecoder, DERDecoder); 13 | module.exports = PEMDecoder; 14 | 15 | PEMDecoder.prototype.decode = function decode(data, options) { 16 | const lines = data.toString().split(/[\r\n]+/g); 17 | 18 | const label = options.label.toUpperCase(); 19 | 20 | const re = /^-----(BEGIN|END) ([^-]+)-----$/; 21 | let start = -1; 22 | let end = -1; 23 | for (let i = 0; i < lines.length; i++) { 24 | const match = lines[i].match(re); 25 | if (match === null) 26 | continue; 27 | 28 | if (match[2] !== label) 29 | continue; 30 | 31 | if (start === -1) { 32 | if (match[1] !== 'BEGIN') 33 | break; 34 | start = i; 35 | } else { 36 | if (match[1] !== 'END') 37 | break; 38 | end = i; 39 | break; 40 | } 41 | } 42 | if (start === -1 || end === -1) 43 | throw new Error('PEM section not found for: ' + label); 44 | 45 | const base64 = lines.slice(start + 1, end).join(''); 46 | // Remove excessive symbols 47 | base64.replace(/[^a-z0-9+/=]+/gi, ''); 48 | 49 | const input = Buffer.from(base64, 'base64'); 50 | return DERDecoder.prototype.decode.call(this, input, options); 51 | }; 52 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1/encoders/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const encoders = exports; 4 | 5 | encoders.der = require('./der'); 6 | encoders.pem = require('./pem'); 7 | -------------------------------------------------------------------------------- /node_modules/asn1.js/lib/asn1/encoders/pem.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const inherits = require('inherits'); 4 | 5 | const DEREncoder = require('./der'); 6 | 7 | function PEMEncoder(entity) { 8 | DEREncoder.call(this, entity); 9 | this.enc = 'pem'; 10 | } 11 | inherits(PEMEncoder, DEREncoder); 12 | module.exports = PEMEncoder; 13 | 14 | PEMEncoder.prototype.encode = function encode(data, options) { 15 | const buf = DEREncoder.prototype.encode.call(this, data); 16 | 17 | const p = buf.toString('base64'); 18 | const out = [ '-----BEGIN ' + options.label + '-----' ]; 19 | for (let i = 0; i < p.length; i += 64) 20 | out.push(p.slice(i, i + 64)); 21 | out.push('-----END ' + options.label + '-----'); 22 | return out.join('\n'); 23 | }; 24 | -------------------------------------------------------------------------------- /node_modules/axios/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014-present Matt Zabriskie 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 | -------------------------------------------------------------------------------- /node_modules/axios/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/axios'); -------------------------------------------------------------------------------- /node_modules/axios/lib/adapters/README.md: -------------------------------------------------------------------------------- 1 | # axios // adapters 2 | 3 | The modules under `adapters/` are modules that handle dispatching a request and settling a returned `Promise` once a response is received. 4 | 5 | ## Example 6 | 7 | ```js 8 | var settle = require('./../core/settle'); 9 | 10 | module.exports = function myAdapter(config) { 11 | // At this point: 12 | // - config has been merged with defaults 13 | // - request transformers have already run 14 | // - request interceptors have already run 15 | 16 | // Make the request using config provided 17 | // Upon response settle the Promise 18 | 19 | return new Promise(function(resolve, reject) { 20 | 21 | var response = { 22 | data: responseData, 23 | status: request.status, 24 | statusText: request.statusText, 25 | headers: responseHeaders, 26 | config: config, 27 | request: request 28 | }; 29 | 30 | settle(resolve, reject, response); 31 | 32 | // From here: 33 | // - response transformers will run 34 | // - response interceptors will run 35 | }); 36 | } 37 | ``` 38 | -------------------------------------------------------------------------------- /node_modules/axios/lib/cancel/Cancel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * A `Cancel` is an object that is thrown when an operation is canceled. 5 | * 6 | * @class 7 | * @param {string=} message The message. 8 | */ 9 | function Cancel(message) { 10 | this.message = message; 11 | } 12 | 13 | Cancel.prototype.toString = function toString() { 14 | return 'Cancel' + (this.message ? ': ' + this.message : ''); 15 | }; 16 | 17 | Cancel.prototype.__CANCEL__ = true; 18 | 19 | module.exports = Cancel; 20 | -------------------------------------------------------------------------------- /node_modules/axios/lib/cancel/CancelToken.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Cancel = require('./Cancel'); 4 | 5 | /** 6 | * A `CancelToken` is an object that can be used to request cancellation of an operation. 7 | * 8 | * @class 9 | * @param {Function} executor The executor function. 10 | */ 11 | function CancelToken(executor) { 12 | if (typeof executor !== 'function') { 13 | throw new TypeError('executor must be a function.'); 14 | } 15 | 16 | var resolvePromise; 17 | this.promise = new Promise(function promiseExecutor(resolve) { 18 | resolvePromise = resolve; 19 | }); 20 | 21 | var token = this; 22 | executor(function cancel(message) { 23 | if (token.reason) { 24 | // Cancellation has already been requested 25 | return; 26 | } 27 | 28 | token.reason = new Cancel(message); 29 | resolvePromise(token.reason); 30 | }); 31 | } 32 | 33 | /** 34 | * Throws a `Cancel` if cancellation has been requested. 35 | */ 36 | CancelToken.prototype.throwIfRequested = function throwIfRequested() { 37 | if (this.reason) { 38 | throw this.reason; 39 | } 40 | }; 41 | 42 | /** 43 | * Returns an object that contains a new `CancelToken` and a function that, when called, 44 | * cancels the `CancelToken`. 45 | */ 46 | CancelToken.source = function source() { 47 | var cancel; 48 | var token = new CancelToken(function executor(c) { 49 | cancel = c; 50 | }); 51 | return { 52 | token: token, 53 | cancel: cancel 54 | }; 55 | }; 56 | 57 | module.exports = CancelToken; 58 | -------------------------------------------------------------------------------- /node_modules/axios/lib/cancel/isCancel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function isCancel(value) { 4 | return !!(value && value.__CANCEL__); 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/InterceptorManager.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./../utils'); 4 | 5 | function InterceptorManager() { 6 | this.handlers = []; 7 | } 8 | 9 | /** 10 | * Add a new interceptor to the stack 11 | * 12 | * @param {Function} fulfilled The function to handle `then` for a `Promise` 13 | * @param {Function} rejected The function to handle `reject` for a `Promise` 14 | * 15 | * @return {Number} An ID used to remove interceptor later 16 | */ 17 | InterceptorManager.prototype.use = function use(fulfilled, rejected) { 18 | this.handlers.push({ 19 | fulfilled: fulfilled, 20 | rejected: rejected 21 | }); 22 | return this.handlers.length - 1; 23 | }; 24 | 25 | /** 26 | * Remove an interceptor from the stack 27 | * 28 | * @param {Number} id The ID that was returned by `use` 29 | */ 30 | InterceptorManager.prototype.eject = function eject(id) { 31 | if (this.handlers[id]) { 32 | this.handlers[id] = null; 33 | } 34 | }; 35 | 36 | /** 37 | * Iterate over all the registered interceptors 38 | * 39 | * This method is particularly useful for skipping over any 40 | * interceptors that may have become `null` calling `eject`. 41 | * 42 | * @param {Function} fn The function to call for each interceptor 43 | */ 44 | InterceptorManager.prototype.forEach = function forEach(fn) { 45 | utils.forEach(this.handlers, function forEachHandler(h) { 46 | if (h !== null) { 47 | fn(h); 48 | } 49 | }); 50 | }; 51 | 52 | module.exports = InterceptorManager; 53 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/README.md: -------------------------------------------------------------------------------- 1 | # axios // core 2 | 3 | The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are: 4 | 5 | - Dispatching requests 6 | - Managing interceptors 7 | - Handling config 8 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/buildFullPath.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var isAbsoluteURL = require('../helpers/isAbsoluteURL'); 4 | var combineURLs = require('../helpers/combineURLs'); 5 | 6 | /** 7 | * Creates a new URL by combining the baseURL with the requestedURL, 8 | * only when the requestedURL is not already an absolute URL. 9 | * If the requestURL is absolute, this function returns the requestedURL untouched. 10 | * 11 | * @param {string} baseURL The base URL 12 | * @param {string} requestedURL Absolute or relative URL to combine 13 | * @returns {string} The combined full path 14 | */ 15 | module.exports = function buildFullPath(baseURL, requestedURL) { 16 | if (baseURL && !isAbsoluteURL(requestedURL)) { 17 | return combineURLs(baseURL, requestedURL); 18 | } 19 | return requestedURL; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/createError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var enhanceError = require('./enhanceError'); 4 | 5 | /** 6 | * Create an Error with the specified message, config, error code, request and response. 7 | * 8 | * @param {string} message The error message. 9 | * @param {Object} config The config. 10 | * @param {string} [code] The error code (for example, 'ECONNABORTED'). 11 | * @param {Object} [request] The request. 12 | * @param {Object} [response] The response. 13 | * @returns {Error} The created error. 14 | */ 15 | module.exports = function createError(message, config, code, request, response) { 16 | var error = new Error(message); 17 | return enhanceError(error, config, code, request, response); 18 | }; 19 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/enhanceError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Update an Error with the specified config, error code, and response. 5 | * 6 | * @param {Error} error The error to update. 7 | * @param {Object} config The config. 8 | * @param {string} [code] The error code (for example, 'ECONNABORTED'). 9 | * @param {Object} [request] The request. 10 | * @param {Object} [response] The response. 11 | * @returns {Error} The error. 12 | */ 13 | module.exports = function enhanceError(error, config, code, request, response) { 14 | error.config = config; 15 | if (code) { 16 | error.code = code; 17 | } 18 | 19 | error.request = request; 20 | error.response = response; 21 | error.isAxiosError = true; 22 | 23 | error.toJSON = function() { 24 | return { 25 | // Standard 26 | message: this.message, 27 | name: this.name, 28 | // Microsoft 29 | description: this.description, 30 | number: this.number, 31 | // Mozilla 32 | fileName: this.fileName, 33 | lineNumber: this.lineNumber, 34 | columnNumber: this.columnNumber, 35 | stack: this.stack, 36 | // Axios 37 | config: this.config, 38 | code: this.code 39 | }; 40 | }; 41 | return error; 42 | }; 43 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/settle.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var createError = require('./createError'); 4 | 5 | /** 6 | * Resolve or reject a Promise based on response status. 7 | * 8 | * @param {Function} resolve A function that resolves the promise. 9 | * @param {Function} reject A function that rejects the promise. 10 | * @param {object} response The response. 11 | */ 12 | module.exports = function settle(resolve, reject, response) { 13 | var validateStatus = response.config.validateStatus; 14 | if (!validateStatus || validateStatus(response.status)) { 15 | resolve(response); 16 | } else { 17 | reject(createError( 18 | 'Request failed with status code ' + response.status, 19 | response.config, 20 | null, 21 | response.request, 22 | response 23 | )); 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/transformData.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./../utils'); 4 | 5 | /** 6 | * Transform the data for a request or a response 7 | * 8 | * @param {Object|String} data The data to be transformed 9 | * @param {Array} headers The headers for the request or response 10 | * @param {Array|Function} fns A single function or Array of functions 11 | * @returns {*} The resulting transformed data 12 | */ 13 | module.exports = function transformData(data, headers, fns) { 14 | /*eslint no-param-reassign:0*/ 15 | utils.forEach(fns, function transform(fn) { 16 | data = fn(data, headers); 17 | }); 18 | 19 | return data; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/README.md: -------------------------------------------------------------------------------- 1 | # axios // helpers 2 | 3 | The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like: 4 | 5 | - Browser polyfills 6 | - Managing cookies 7 | - Parsing HTTP headers 8 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/bind.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function bind(fn, thisArg) { 4 | return function wrap() { 5 | var args = new Array(arguments.length); 6 | for (var i = 0; i < args.length; i++) { 7 | args[i] = arguments[i]; 8 | } 9 | return fn.apply(thisArg, args); 10 | }; 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/combineURLs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Creates a new URL by combining the specified URLs 5 | * 6 | * @param {string} baseURL The base URL 7 | * @param {string} relativeURL The relative URL 8 | * @returns {string} The combined URL 9 | */ 10 | module.exports = function combineURLs(baseURL, relativeURL) { 11 | return relativeURL 12 | ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 13 | : baseURL; 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/deprecatedMethod.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*eslint no-console:0*/ 4 | 5 | /** 6 | * Supply a warning to the developer that a method they are using 7 | * has been deprecated. 8 | * 9 | * @param {string} method The name of the deprecated method 10 | * @param {string} [instead] The alternate method to use if applicable 11 | * @param {string} [docs] The documentation URL to get further details 12 | */ 13 | module.exports = function deprecatedMethod(method, instead, docs) { 14 | try { 15 | console.warn( 16 | 'DEPRECATED method `' + method + '`.' + 17 | (instead ? ' Use `' + instead + '` instead.' : '') + 18 | ' This method will be removed in a future release.'); 19 | 20 | if (docs) { 21 | console.warn('For more information about usage see ' + docs); 22 | } 23 | } catch (e) { /* Ignore */ } 24 | }; 25 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/isAbsoluteURL.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines whether the specified URL is absolute 5 | * 6 | * @param {string} url The URL to test 7 | * @returns {boolean} True if the specified URL is absolute, otherwise false 8 | */ 9 | module.exports = function isAbsoluteURL(url) { 10 | // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). 11 | // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 12 | // by any combination of letters, digits, plus, period, or hyphen. 13 | return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/normalizeHeaderName.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('../utils'); 4 | 5 | module.exports = function normalizeHeaderName(headers, normalizedName) { 6 | utils.forEach(headers, function processHeader(value, name) { 7 | if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { 8 | headers[normalizedName] = value; 9 | delete headers[name]; 10 | } 11 | }); 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/spread.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Syntactic sugar for invoking a function and expanding an array for arguments. 5 | * 6 | * Common use case would be to use `Function.prototype.apply`. 7 | * 8 | * ```js 9 | * function f(x, y, z) {} 10 | * var args = [1, 2, 3]; 11 | * f.apply(null, args); 12 | * ``` 13 | * 14 | * With `spread` this example can be re-written. 15 | * 16 | * ```js 17 | * spread(function(x, y, z) {})([1, 2, 3]); 18 | * ``` 19 | * 20 | * @param {Function} callback 21 | * @returns {Function} 22 | */ 23 | module.exports = function spread(callback) { 24 | return function wrap(arr) { 25 | return callback.apply(null, arr); 26 | }; 27 | }; 28 | -------------------------------------------------------------------------------- /node_modules/base64-js/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Jameson Little 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/base64-js/README.md: -------------------------------------------------------------------------------- 1 | base64-js 2 | ========= 3 | 4 | `base64-js` does basic base64 encoding/decoding in pure JS. 5 | 6 | [![build status](https://secure.travis-ci.org/beatgammit/base64-js.png)](http://travis-ci.org/beatgammit/base64-js) 7 | 8 | Many browsers already have base64 encoding/decoding functionality, but it is for text data, not all-purpose binary data. 9 | 10 | Sometimes encoding/decoding binary data in the browser is useful, and that is what this module does. 11 | 12 | ## install 13 | 14 | With [npm](https://npmjs.org) do: 15 | 16 | `npm install base64-js` and `var base64js = require('base64-js')` 17 | 18 | For use in web browsers do: 19 | 20 | `` 21 | 22 | ## methods 23 | 24 | `base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument. 25 | 26 | * `byteLength` - Takes a base64 string and returns length of byte array 27 | * `toByteArray` - Takes a base64 string and returns a byte array 28 | * `fromByteArray` - Takes a byte array and returns a base64 string 29 | 30 | ## license 31 | 32 | MIT 33 | -------------------------------------------------------------------------------- /node_modules/before-after-hook/lib/add.js: -------------------------------------------------------------------------------- 1 | module.exports = addHook 2 | 3 | function addHook (state, kind, name, hook) { 4 | var orig = hook 5 | if (!state.registry[name]) { 6 | state.registry[name] = [] 7 | } 8 | 9 | if (kind === 'before') { 10 | hook = function (method, options) { 11 | return Promise.resolve() 12 | .then(orig.bind(null, options)) 13 | .then(method.bind(null, options)) 14 | } 15 | } 16 | 17 | if (kind === 'after') { 18 | hook = function (method, options) { 19 | var result 20 | return Promise.resolve() 21 | .then(method.bind(null, options)) 22 | .then(function (result_) { 23 | result = result_ 24 | return orig(result, options) 25 | }) 26 | .then(function () { 27 | return result 28 | }) 29 | } 30 | } 31 | 32 | if (kind === 'error') { 33 | hook = function (method, options) { 34 | return Promise.resolve() 35 | .then(method.bind(null, options)) 36 | .catch(function (error) { 37 | return orig(error, options) 38 | }) 39 | } 40 | } 41 | 42 | state.registry[name].push({ 43 | hook: hook, 44 | orig: orig 45 | }) 46 | } 47 | -------------------------------------------------------------------------------- /node_modules/before-after-hook/lib/register.js: -------------------------------------------------------------------------------- 1 | module.exports = register 2 | 3 | function register (state, name, method, options) { 4 | if (typeof method !== 'function') { 5 | throw new Error('method for before hook must be a function') 6 | } 7 | 8 | if (!options) { 9 | options = {} 10 | } 11 | 12 | if (Array.isArray(name)) { 13 | return name.reverse().reduce(function (callback, name) { 14 | return register.bind(null, state, name, callback, options) 15 | }, method)() 16 | } 17 | 18 | return Promise.resolve() 19 | .then(function () { 20 | if (!state.registry[name]) { 21 | return method(options) 22 | } 23 | 24 | return (state.registry[name]).reduce(function (method, registered) { 25 | return registered.hook.bind(null, method, options) 26 | }, method)() 27 | }) 28 | } 29 | -------------------------------------------------------------------------------- /node_modules/before-after-hook/lib/remove.js: -------------------------------------------------------------------------------- 1 | module.exports = removeHook 2 | 3 | function removeHook (state, name, method) { 4 | if (!state.registry[name]) { 5 | return 6 | } 7 | 8 | var index = state.registry[name] 9 | .map(function (registered) { return registered.orig }) 10 | .indexOf(method) 11 | 12 | if (index === -1) { 13 | return 14 | } 15 | 16 | state.registry[name].splice(index, 1) 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/bignumber.js/LICENCE: -------------------------------------------------------------------------------- 1 | The MIT Licence. 2 | 3 | Copyright (c) 2019 Michael Mclaughlin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | -------------------------------------------------------------------------------- /node_modules/debug/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/debug/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2014 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software 6 | and associated documentation files (the 'Software'), to deal in the Software without restriction, 7 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 9 | subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all copies or substantial 12 | portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 15 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 16 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 17 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 18 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | 20 | -------------------------------------------------------------------------------- /node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | # get Makefile directory name: http://stackoverflow.com/a/5982798/376773 2 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 3 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 4 | 5 | # BIN directory 6 | BIN := $(THIS_DIR)/node_modules/.bin 7 | 8 | # Path 9 | PATH := node_modules/.bin:$(PATH) 10 | SHELL := /bin/bash 11 | 12 | # applications 13 | NODE ?= $(shell which node) 14 | YARN ?= $(shell which yarn) 15 | PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm)) 16 | BROWSERIFY ?= $(NODE) $(BIN)/browserify 17 | 18 | install: node_modules 19 | 20 | browser: dist/debug.js 21 | 22 | node_modules: package.json 23 | @NODE_ENV= $(PKG) install 24 | @touch node_modules 25 | 26 | dist/debug.js: src/*.js node_modules 27 | @mkdir -p dist 28 | @$(BROWSERIFY) \ 29 | --standalone debug \ 30 | . > dist/debug.js 31 | 32 | lint: 33 | @eslint *.js src/*.js 34 | 35 | test-node: 36 | @istanbul cover node_modules/mocha/bin/_mocha -- test/**.js 37 | @cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js 38 | 39 | test-browser: 40 | @$(MAKE) browser 41 | @karma start --single-run 42 | 43 | test-all: 44 | @concurrently \ 45 | "make test-node" \ 46 | "make test-browser" 47 | 48 | test: 49 | @if [ "x$(BROWSER)" = "x" ]; then \ 50 | $(MAKE) test-node; \ 51 | else \ 52 | $(MAKE) test-browser; \ 53 | fi 54 | 55 | clean: 56 | rimraf dist coverage 57 | 58 | .PHONY: browser install clean lint test test-all test-node test-browser 59 | -------------------------------------------------------------------------------- /node_modules/debug/node.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./src/node'); 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/deprecation/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Gregor Martynus 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 | -------------------------------------------------------------------------------- /node_modules/deprecation/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | class Deprecation extends Error { 6 | constructor(message) { 7 | super(message); // Maintains proper stack trace (only available on V8) 8 | 9 | /* istanbul ignore next */ 10 | 11 | if (Error.captureStackTrace) { 12 | Error.captureStackTrace(this, this.constructor); 13 | } 14 | 15 | this.name = 'Deprecation'; 16 | } 17 | 18 | } 19 | 20 | exports.Deprecation = Deprecation; 21 | -------------------------------------------------------------------------------- /node_modules/deprecation/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export class Deprecation extends Error { 2 | constructor(message) { 3 | super(message); // Maintains proper stack trace (only available on V8) 4 | 5 | /* istanbul ignore next */ 6 | 7 | if (Error.captureStackTrace) { 8 | Error.captureStackTrace(this, this.constructor); 9 | } 10 | 11 | this.name = 'Deprecation'; 12 | } 13 | 14 | } -------------------------------------------------------------------------------- /node_modules/deprecation/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export class Deprecation extends Error { 2 | name: "Deprecation"; 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/deprecation/dist-web/index.js: -------------------------------------------------------------------------------- 1 | class Deprecation extends Error { 2 | constructor(message) { 3 | super(message); // Maintains proper stack trace (only available on V8) 4 | 5 | /* istanbul ignore next */ 6 | 7 | if (Error.captureStackTrace) { 8 | Error.captureStackTrace(this, this.constructor); 9 | } 10 | 11 | this.name = 'Deprecation'; 12 | } 13 | 14 | } 15 | 16 | export { Deprecation }; 17 | -------------------------------------------------------------------------------- /node_modules/follow-redirects/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014–present Olivier Lalonde , James Talmage , Ruben Verborgh 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 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, 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, 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 LIABILITY, 17 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 18 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /node_modules/follow-redirects/http.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./").http; 2 | -------------------------------------------------------------------------------- /node_modules/follow-redirects/https.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./").https; 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014-2017, Jon Schlinkert. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/dist/is-plain-object.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | /*! 6 | * is-plain-object 7 | * 8 | * Copyright (c) 2014-2017, Jon Schlinkert. 9 | * Released under the MIT License. 10 | */ 11 | 12 | function isObject(o) { 13 | return Object.prototype.toString.call(o) === '[object Object]'; 14 | } 15 | 16 | function isPlainObject(o) { 17 | var ctor,prot; 18 | 19 | if (isObject(o) === false) return false; 20 | 21 | // If has modified constructor 22 | ctor = o.constructor; 23 | if (ctor === undefined) return true; 24 | 25 | // If has modified prototype 26 | prot = ctor.prototype; 27 | if (isObject(prot) === false) return false; 28 | 29 | // If constructor does not have an Object-specific method 30 | if (prot.hasOwnProperty('isPrototypeOf') === false) { 31 | return false; 32 | } 33 | 34 | // Most likely a plain Object 35 | return true; 36 | } 37 | 38 | exports.isPlainObject = isPlainObject; 39 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/dist/is-plain-object.mjs: -------------------------------------------------------------------------------- 1 | /*! 2 | * is-plain-object 3 | * 4 | * Copyright (c) 2014-2017, Jon Schlinkert. 5 | * Released under the MIT License. 6 | */ 7 | 8 | function isObject(o) { 9 | return Object.prototype.toString.call(o) === '[object Object]'; 10 | } 11 | 12 | function isPlainObject(o) { 13 | var ctor,prot; 14 | 15 | if (isObject(o) === false) return false; 16 | 17 | // If has modified constructor 18 | ctor = o.constructor; 19 | if (ctor === undefined) return true; 20 | 21 | // If has modified prototype 22 | prot = ctor.prototype; 23 | if (isObject(prot) === false) return false; 24 | 25 | // If constructor does not have an Object-specific method 26 | if (prot.hasOwnProperty('isPrototypeOf') === false) { 27 | return false; 28 | } 29 | 30 | // Most likely a plain Object 31 | return true; 32 | } 33 | 34 | export { isPlainObject }; 35 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/is-plain-object.d.ts: -------------------------------------------------------------------------------- 1 | export function isPlainObject(o: any): boolean; 2 | -------------------------------------------------------------------------------- /node_modules/minimalistic-assert/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2015 Calvin Metcalf 2 | 3 | Permission to use, copy, modify, and/or distribute this software for any purpose 4 | with or without fee is hereby granted, provided that the above copyright notice 5 | and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 9 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 11 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 12 | OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 13 | PERFORMANCE OF THIS SOFTWARE. -------------------------------------------------------------------------------- /node_modules/minimalistic-assert/index.js: -------------------------------------------------------------------------------- 1 | module.exports = assert; 2 | 3 | function assert(val, msg) { 4 | if (!val) 5 | throw new Error(msg || 'Assertion failed'); 6 | } 7 | 8 | assert.equal = function assertEqual(l, r, msg) { 9 | if (l != r) 10 | throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r)); 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/minimalistic-assert/readme.md: -------------------------------------------------------------------------------- 1 | minimalistic-assert 2 | === 3 | 4 | very minimalistic assert module. 5 | -------------------------------------------------------------------------------- /node_modules/ms/license.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Zeit, Inc. 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 | -------------------------------------------------------------------------------- /node_modules/node-fetch/LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 David Frank 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 | 23 | -------------------------------------------------------------------------------- /node_modules/node-fetch/browser.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | // ref: https://github.com/tc39/proposal-global 4 | var getGlobal = function () { 5 | // the only reliable means to get the global object is 6 | // `Function('return this')()` 7 | // However, this causes CSP violations in Chrome apps. 8 | if (typeof self !== 'undefined') { return self; } 9 | if (typeof window !== 'undefined') { return window; } 10 | if (typeof global !== 'undefined') { return global; } 11 | throw new Error('unable to locate global object'); 12 | } 13 | 14 | var global = getGlobal(); 15 | 16 | module.exports = exports = global.fetch; 17 | 18 | // Needed for TypeScript and Webpack. 19 | if (global.fetch) { 20 | exports.default = global.fetch.bind(global); 21 | } 22 | 23 | exports.Headers = global.Headers; 24 | exports.Request = global.Request; 25 | exports.Response = global.Response; -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/safer-buffer/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Nikita Skovoroda 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 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/node-tunnel.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /node_modules/tunnel/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /node_modules/tunnel/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | - "6" 5 | - "8" 6 | - "10" 7 | -------------------------------------------------------------------------------- /node_modules/tunnel/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | - 0.0.6 (2018/09/11) 4 | - Fix `localAddress` not working (#25) 5 | - Fix `Host:` header for CONNECT method by @tmurakam (#29, #30) 6 | - Fix default port for https (#32) 7 | - Fix error handling when the proxy send illegal response body (#33) 8 | 9 | - 0.0.5 (2017/06/12) 10 | - Fix socket leak. 11 | 12 | - 0.0.4 (2016/01/23) 13 | - supported Node v0.12 or later. 14 | 15 | - 0.0.3 (2014/01/20) 16 | - fixed package.json 17 | 18 | - 0.0.1 (2012/02/18) 19 | - supported Node v0.6.x (0.6.11 or later). 20 | 21 | - 0.0.0 (2012/02/11) 22 | - first release. 23 | -------------------------------------------------------------------------------- /node_modules/tunnel/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2012 Koichi Kobayashi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /node_modules/tunnel/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/tunnel'); 2 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/LICENSE.md: -------------------------------------------------------------------------------- 1 | # [ISC License](https://spdx.org/licenses/ISC) 2 | 3 | Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 8 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/README.md: -------------------------------------------------------------------------------- 1 | # universal-user-agent 2 | 3 | > Get a user agent string in both browser and node 4 | 5 | [![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) 6 | [![Build Status](https://github.com/gr2m/universal-user-agent/workflows/Test/badge.svg)](https://github.com/gr2m/universal-user-agent/actions?query=workflow%3ATest+branch%3Amaster) 7 | [![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) 8 | 9 | ```js 10 | const { getUserAgent } = require("universal-user-agent"); 11 | // or import { getUserAgent } from "universal-user-agent"; 12 | 13 | const userAgent = getUserAgent(); 14 | // userAgent will look like this 15 | // in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" 16 | // in node: Node.js/v8.9.4 (macOS High Sierra; x64) 17 | ``` 18 | 19 | ## Credits 20 | 21 | The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). 22 | 23 | ## License 24 | 25 | [ISC](LICENSE.md) 26 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | function getUserAgent() { 6 | if (typeof navigator === "object" && "userAgent" in navigator) { 7 | return navigator.userAgent; 8 | } 9 | 10 | if (typeof process === "object" && "version" in process) { 11 | return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; 12 | } 13 | 14 | return ""; 15 | } 16 | 17 | exports.getUserAgent = getUserAgent; 18 | //# sourceMappingURL=index.js.map 19 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["export function getUserAgent() {\n if (typeof navigator === \"object\" && \"userAgent\" in navigator) {\n return navigator.userAgent;\n }\n if (typeof process === \"object\" && \"version\" in process) {\n return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;\n }\n return \"\";\n}\n"],"names":["getUserAgent","navigator","userAgent","process","version","substr","platform","arch"],"mappings":";;;;AAAO,SAASA,YAAT,GAAwB;AAC3B,MAAI,OAAOC,SAAP,KAAqB,QAArB,IAAiC,eAAeA,SAApD,EAA+D;AAC3D,WAAOA,SAAS,CAACC,SAAjB;AACH;;AACD,MAAI,OAAOC,OAAP,KAAmB,QAAnB,IAA+B,aAAaA,OAAhD,EAAyD;AACrD,WAAQ,WAAUA,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIF,OAAO,CAACG,QAAS,KAAIH,OAAO,CAACI,IAAK,GAAlF;AACH;;AACD,SAAO,4BAAP;AACH;;;;"} -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export function getUserAgent() { 2 | if (typeof navigator === "object" && "userAgent" in navigator) { 3 | return navigator.userAgent; 4 | } 5 | if (typeof process === "object" && "version" in process) { 6 | return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; 7 | } 8 | return ""; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-web/index.js: -------------------------------------------------------------------------------- 1 | function getUserAgent() { 2 | if (typeof navigator === "object" && "userAgent" in navigator) { 3 | return navigator.userAgent; 4 | } 5 | if (typeof process === "object" && "version" in process) { 6 | return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`; 7 | } 8 | return ""; 9 | } 10 | 11 | export { getUserAgent }; 12 | //# sourceMappingURL=index.js.map 13 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["export function getUserAgent() {\n if (typeof navigator === \"object\" && \"userAgent\" in navigator) {\n return navigator.userAgent;\n }\n if (typeof process === \"object\" && \"version\" in process) {\n return `Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`;\n }\n return \"\";\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;AAC/B,IAAI,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,WAAW,IAAI,SAAS,EAAE;AACnE,QAAQ,OAAO,SAAS,CAAC,SAAS,CAAC;AACnC,KAAK;AACL,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,SAAS,IAAI,OAAO,EAAE;AAC7D,QAAQ,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAC7F,KAAK;AACL,IAAI,OAAO,4BAA4B,CAAC;AACxC;;;;"} -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gitstamp-action", 3 | "version": "1.0.3", 4 | "description": "Timestamp your Git commits using the Arweave permaweb.", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "gitstamp", 11 | "arweave", 12 | "permaweb" 13 | ], 14 | "author": "Arto Bendiken (https://ar.to)", 15 | "license": "Unlicense", 16 | "homepage": "https://github.com/weavery/gitstamp-action", 17 | "bugs": "https://github.com/weavery/gitstamp-action/issues", 18 | "repository": "https://github.com/weavery/gitstamp-action.git", 19 | "dependencies": { 20 | "@actions/core": "^1.2.5", 21 | "@actions/github": "^4.0.0", 22 | "arweave": "^1.9.1" 23 | }, 24 | "devDependencies": {} 25 | } 26 | -------------------------------------------------------------------------------- /sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/weavery/gitstamp-action/b193058345cb5374d07a3e31a7f82ab8b7a74f48/sample.png --------------------------------------------------------------------------------