├── .github └── workflows │ ├── main.yml │ └── pr.yml ├── .gitignore ├── LICENSE ├── README.md ├── action.yml ├── assets └── demo.gif ├── code-of-conduct.md ├── index.js ├── node_modules ├── .bin │ ├── semver │ ├── showdown │ ├── showdown.cmd │ ├── showdown.ps1 │ └── which ├── @actions │ ├── core │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── lib │ │ │ ├── command.d.ts │ │ │ ├── command.js │ │ │ ├── command.js.map │ │ │ ├── core.d.ts │ │ │ ├── core.js │ │ │ ├── core.js.map │ │ │ ├── file-command.d.ts │ │ │ ├── file-command.js │ │ │ ├── file-command.js.map │ │ │ ├── utils.d.ts │ │ │ ├── utils.js │ │ │ └── utils.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 │ │ └── 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 │ ├── 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 │ │ ├── node_modules │ │ │ └── universal-user-agent │ │ │ │ ├── LICENSE.md │ │ │ │ ├── README.md │ │ │ │ ├── dist-node │ │ │ │ ├── index.js │ │ │ │ └── index.js.map │ │ │ │ ├── dist-src │ │ │ │ ├── browser.js │ │ │ │ ├── index.js │ │ │ │ └── node.js │ │ │ │ ├── dist-types │ │ │ │ ├── browser.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ └── node.d.ts │ │ │ │ ├── dist-web │ │ │ │ ├── index.js │ │ │ │ └── index.js.map │ │ │ │ └── package.json │ │ └── 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 │ │ │ ├── index.js │ │ │ ├── iterator.js │ │ │ ├── normalize-paginated-list-response.js │ │ │ ├── paginate.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── 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-request-log │ │ ├── LICENSE │ │ ├── README.md │ │ ├── dist-node │ │ │ ├── index.js │ │ │ └── index.js.map │ │ ├── dist-src │ │ │ ├── index.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── index.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 │ │ │ ├── generated │ │ │ │ ├── endpoints.js │ │ │ │ └── rest-endpoint-methods-types.js │ │ │ ├── index.js │ │ │ ├── register-endpoints.js │ │ │ ├── types.js │ │ │ └── version.js │ │ ├── dist-types │ │ │ ├── generated │ │ │ │ ├── endpoints.d.ts │ │ │ │ └── rest-endpoint-methods-types.d.ts │ │ │ ├── index.d.ts │ │ │ ├── register-endpoints.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 │ │ ├── node_modules │ │ │ └── universal-user-agent │ │ │ │ ├── LICENSE.md │ │ │ │ ├── README.md │ │ │ │ ├── dist-node │ │ │ │ ├── index.js │ │ │ │ └── index.js.map │ │ │ │ ├── dist-src │ │ │ │ ├── browser.js │ │ │ │ ├── index.js │ │ │ │ └── node.js │ │ │ │ ├── dist-types │ │ │ │ ├── browser.d.ts │ │ │ │ ├── index.d.ts │ │ │ │ └── node.d.ts │ │ │ │ ├── dist-web │ │ │ │ ├── index.js │ │ │ │ └── index.js.map │ │ │ │ └── package.json │ │ └── package.json │ ├── rest │ │ ├── LICENSE │ │ ├── README.md │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── lib │ │ │ ├── constructor.js │ │ │ ├── core.js │ │ │ ├── factory.js │ │ │ ├── parse-client-options.js │ │ │ └── register-plugin.js │ │ ├── package.json │ │ └── plugins │ │ │ ├── authentication-deprecated │ │ │ ├── authenticate.js │ │ │ ├── before-request.js │ │ │ ├── index.js │ │ │ └── request-error.js │ │ │ ├── authentication │ │ │ ├── before-request.js │ │ │ ├── index.js │ │ │ ├── request-error.js │ │ │ ├── validate.js │ │ │ └── with-authorization-prefix.js │ │ │ ├── pagination │ │ │ └── index.js │ │ │ └── validate │ │ │ ├── index.js │ │ │ └── validate.js │ └── types │ │ ├── LICENSE │ │ ├── README.md │ │ ├── package.json │ │ └── src │ │ ├── AuthInterface.ts │ │ ├── EndpointDefaults.ts │ │ ├── EndpointInterface.ts │ │ ├── EndpointOptions.ts │ │ ├── Fetch.ts │ │ ├── OctokitResponse.ts │ │ ├── RequestHeaders.ts │ │ ├── RequestInterface.ts │ │ ├── RequestMethod.ts │ │ ├── RequestOptions.ts │ │ ├── RequestParameters.ts │ │ ├── RequestRequestOptions.ts │ │ ├── ResponseHeaders.ts │ │ ├── Route.ts │ │ ├── Signal.ts │ │ ├── StrategyInterface.ts │ │ ├── Url.ts │ │ ├── VERSION.ts │ │ ├── generated │ │ ├── Endpoints.ts │ │ └── README.md │ │ └── index.ts ├── @types │ └── node │ │ ├── LICENSE │ │ ├── README.md │ │ ├── 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 │ │ ├── globals.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 │ │ ├── package.json │ │ ├── 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 │ │ ├── ts3.2 │ │ ├── fs.d.ts │ │ ├── globals.d.ts │ │ ├── index.d.ts │ │ └── util.d.ts │ │ ├── ts3.5 │ │ ├── index.d.ts │ │ └── wasi.d.ts │ │ ├── tty.d.ts │ │ ├── url.d.ts │ │ ├── util.d.ts │ │ ├── v8.d.ts │ │ ├── vm.d.ts │ │ ├── worker_threads.d.ts │ │ └── zlib.d.ts ├── ansi-regex │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── ansi-styles │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── atob-lite │ ├── .npmignore │ ├── LICENSE.md │ ├── README.md │ ├── atob-browser.js │ ├── atob-node.js │ └── package.json ├── azure-devops-node-api │ ├── BuildApi.d.ts │ ├── BuildApi.js │ ├── ClientApiBases.d.ts │ ├── ClientApiBases.js │ ├── CoreApi.d.ts │ ├── CoreApi.js │ ├── DashboardApi.d.ts │ ├── DashboardApi.js │ ├── ExtensionManagementApi.d.ts │ ├── ExtensionManagementApi.js │ ├── FeatureManagementApi.d.ts │ ├── FeatureManagementApi.js │ ├── FileContainerApi.d.ts │ ├── FileContainerApi.js │ ├── FileContainerApiBase.d.ts │ ├── FileContainerApiBase.js │ ├── GalleryApi.d.ts │ ├── GalleryApi.js │ ├── GalleryCompatHttpClientBase.d.ts │ ├── GalleryCompatHttpClientBase.js │ ├── GitApi.d.ts │ ├── GitApi.js │ ├── LICENSE │ ├── LocationsApi.d.ts │ ├── LocationsApi.js │ ├── NotificationApi.d.ts │ ├── NotificationApi.js │ ├── PolicyApi.d.ts │ ├── PolicyApi.js │ ├── ProfileApi.d.ts │ ├── ProfileApi.js │ ├── ProjectAnalysisApi.d.ts │ ├── ProjectAnalysisApi.js │ ├── README.md │ ├── ReleaseApi.d.ts │ ├── ReleaseApi.js │ ├── SecurityRolesApi.d.ts │ ├── SecurityRolesApi.js │ ├── Serialization.d.ts │ ├── Serialization.js │ ├── TaskAgentApi.d.ts │ ├── TaskAgentApi.js │ ├── TaskAgentApiBase.d.ts │ ├── TaskAgentApiBase.js │ ├── TaskApi.d.ts │ ├── TaskApi.js │ ├── TestApi.d.ts │ ├── TestApi.js │ ├── TfvcApi.d.ts │ ├── TfvcApi.js │ ├── ThirdPartyNotice.txt │ ├── VsoClient.d.ts │ ├── VsoClient.js │ ├── WebApi.d.ts │ ├── WebApi.js │ ├── WikiApi.d.ts │ ├── WikiApi.js │ ├── WorkApi.d.ts │ ├── WorkApi.js │ ├── WorkItemTrackingApi.d.ts │ ├── WorkItemTrackingApi.js │ ├── WorkItemTrackingProcessApi.d.ts │ ├── WorkItemTrackingProcessApi.js │ ├── WorkItemTrackingProcessDefinitionsApi.d.ts │ ├── WorkItemTrackingProcessDefinitionsApi.js │ ├── handlers │ │ ├── basiccreds.d.ts │ │ ├── basiccreds.js │ │ ├── bearertoken.d.ts │ │ ├── bearertoken.js │ │ ├── ntlm.d.ts │ │ ├── ntlm.js │ │ ├── personalaccesstoken.d.ts │ │ └── personalaccesstoken.js │ ├── interfaces │ │ ├── BuildInterfaces.d.ts │ │ ├── BuildInterfaces.js │ │ ├── CommentsInterfaces.d.ts │ │ ├── CommentsInterfaces.js │ │ ├── CoreInterfaces.d.ts │ │ ├── CoreInterfaces.js │ │ ├── DashboardInterfaces.d.ts │ │ ├── DashboardInterfaces.js │ │ ├── DistributedTaskCommonInterfaces.d.ts │ │ ├── DistributedTaskCommonInterfaces.js │ │ ├── ExtensionManagementInterfaces.d.ts │ │ ├── ExtensionManagementInterfaces.js │ │ ├── FeatureManagementInterfaces.d.ts │ │ ├── FeatureManagementInterfaces.js │ │ ├── FileContainerInterfaces.d.ts │ │ ├── FileContainerInterfaces.js │ │ ├── GalleryInterfaces.d.ts │ │ ├── GalleryInterfaces.js │ │ ├── GitInterfaces.d.ts │ │ ├── GitInterfaces.js │ │ ├── GraphInterfaces.d.ts │ │ ├── GraphInterfaces.js │ │ ├── IdentitiesInterfaces.d.ts │ │ ├── IdentitiesInterfaces.js │ │ ├── LocationsInterfaces.d.ts │ │ ├── LocationsInterfaces.js │ │ ├── NotificationInterfaces.d.ts │ │ ├── NotificationInterfaces.js │ │ ├── PolicyInterfaces.d.ts │ │ ├── PolicyInterfaces.js │ │ ├── ProfileInterfaces.d.ts │ │ ├── ProfileInterfaces.js │ │ ├── ProjectAnalysisInterfaces.d.ts │ │ ├── ProjectAnalysisInterfaces.js │ │ ├── ReleaseInterfaces.d.ts │ │ ├── ReleaseInterfaces.js │ │ ├── SecurityRolesInterfaces.d.ts │ │ ├── SecurityRolesInterfaces.js │ │ ├── TaskAgentInterfaces.d.ts │ │ ├── TaskAgentInterfaces.js │ │ ├── TestInterfaces.d.ts │ │ ├── TestInterfaces.js │ │ ├── TfvcInterfaces.d.ts │ │ ├── TfvcInterfaces.js │ │ ├── WikiInterfaces.d.ts │ │ ├── WikiInterfaces.js │ │ ├── WorkInterfaces.d.ts │ │ ├── WorkInterfaces.js │ │ ├── WorkItemTrackingInterfaces.d.ts │ │ ├── WorkItemTrackingInterfaces.js │ │ ├── WorkItemTrackingProcessDefinitionsInterfaces.d.ts │ │ ├── WorkItemTrackingProcessDefinitionsInterfaces.js │ │ ├── WorkItemTrackingProcessInterfaces.d.ts │ │ ├── WorkItemTrackingProcessInterfaces.js │ │ └── common │ │ │ ├── FormInputInterfaces.d.ts │ │ │ ├── FormInputInterfaces.js │ │ │ ├── OperationsInterfaces.d.ts │ │ │ ├── OperationsInterfaces.js │ │ │ ├── System.d.ts │ │ │ ├── System.js │ │ │ ├── SystemDataInterfaces.d.ts │ │ │ ├── SystemDataInterfaces.js │ │ │ ├── VSSInterfaces.d.ts │ │ │ ├── VSSInterfaces.js │ │ │ ├── VsoBaseInterfaces.d.ts │ │ │ └── VsoBaseInterfaces.js │ ├── opensource │ │ └── node-http-ntlm │ │ │ ├── ntlm.js │ │ │ └── readme.txt │ └── package.json ├── before-after-hook │ ├── LICENSE │ ├── README.md │ ├── index.d.ts │ ├── index.js │ ├── lib │ │ ├── add.js │ │ ├── register.js │ │ └── remove.js │ └── package.json ├── btoa-lite │ ├── .npmignore │ ├── LICENSE.md │ ├── README.md │ ├── btoa-browser.js │ ├── btoa-node.js │ └── package.json ├── camelcase │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── cliui │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ └── package.json ├── color-convert │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── conversions.js │ ├── index.js │ ├── package.json │ └── route.js ├── color-name │ ├── .eslintrc.json │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ └── test.js ├── cross-spawn │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── enoent.js │ │ ├── parse.js │ │ └── util │ │ │ ├── escape.js │ │ │ ├── readShebang.js │ │ │ └── resolveCommand.js │ └── package.json ├── decamelize │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── deprecation │ ├── LICENSE │ ├── README.md │ ├── dist-node │ │ └── index.js │ ├── dist-src │ │ └── index.js │ ├── dist-types │ │ └── index.d.ts │ ├── dist-web │ │ └── index.js │ └── package.json ├── emoji-regex │ ├── LICENSE-MIT.txt │ ├── README.md │ ├── es2015 │ │ ├── index.js │ │ └── text.js │ ├── index.d.ts │ ├── index.js │ ├── package.json │ └── text.js ├── end-of-stream │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── execa │ ├── index.js │ ├── lib │ │ ├── errname.js │ │ └── stdio.js │ ├── license │ ├── package.json │ └── readme.md ├── find-up │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── get-caller-file │ ├── LICENSE.md │ ├── README.md │ ├── index.d.ts │ ├── index.js │ ├── index.js.map │ └── package.json ├── get-stream │ ├── buffer-stream.js │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── is-fullwidth-code-point │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── is-plain-object │ ├── LICENSE │ ├── README.md │ ├── dist │ │ ├── is-plain-object.js │ │ └── is-plain-object.mjs │ ├── index.cjs.js │ ├── index.d.ts │ ├── index.js │ └── package.json ├── is-stream │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── isexe │ ├── .npmignore │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── mode.js │ ├── package.json │ ├── test │ │ └── basic.js │ └── windows.js ├── isobject │ ├── LICENSE │ ├── README.md │ ├── index.cjs.js │ ├── index.d.ts │ ├── index.js │ └── package.json ├── locate-path │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── lodash.get │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.set │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── lodash.uniq │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── macos-release │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── nice-try │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── src │ │ └── index.js ├── node-fetch │ ├── CHANGELOG.md │ ├── LICENSE.md │ ├── README.md │ ├── browser.js │ ├── lib │ │ ├── index.es.js │ │ ├── index.js │ │ └── index.mjs │ └── package.json ├── npm-run-path │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── octokit-pagination-methods │ ├── .travis.yml │ ├── CODE_OF_CONDUCT.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ │ ├── deprecate.js │ │ ├── get-first-page.js │ │ ├── get-last-page.js │ │ ├── get-next-page.js │ │ ├── get-page-links.js │ │ ├── get-page.js │ │ ├── get-previous-page.js │ │ ├── has-first-page.js │ │ ├── has-last-page.js │ │ ├── has-next-page.js │ │ ├── has-previous-page.js │ │ └── http-error.js │ ├── package.json │ └── test.js ├── once │ ├── LICENSE │ ├── README.md │ ├── once.js │ └── package.json ├── os-name │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── p-finally │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── p-limit │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── p-locate │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── p-try │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── path-exists │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── path-key │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── pump │ ├── .travis.yml │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── package.json │ ├── test-browser.js │ └── test-node.js ├── qs │ ├── .editorconfig │ ├── .eslintignore │ ├── .eslintrc │ ├── .github │ │ └── FUNDING.yml │ ├── CHANGELOG.md │ ├── LICENSE.md │ ├── README.md │ ├── dist │ │ └── qs.js │ ├── lib │ │ ├── formats.js │ │ ├── index.js │ │ ├── parse.js │ │ ├── stringify.js │ │ └── utils.js │ ├── package.json │ └── test │ │ ├── .eslintrc │ │ ├── index.js │ │ ├── parse.js │ │ ├── stringify.js │ │ └── utils.js ├── require-directory │ ├── .jshintrc │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── README.markdown │ ├── index.js │ └── package.json ├── require-main-filename │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ └── package.json ├── semver │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── semver │ ├── package.json │ ├── range.bnf │ └── semver.js ├── set-blocking │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ └── package.json ├── shebang-command │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── shebang-regex │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── showdown │ ├── CHANGELOG.md │ ├── CONTRIBUTING.md │ ├── CREDITS.md │ ├── DONATIONS.md │ ├── README.md │ ├── bin │ │ └── showdown.js │ ├── bower.json │ ├── dist │ │ ├── showdown.js │ │ ├── showdown.js.map │ │ ├── showdown.min.js │ │ └── showdown.min.js.map │ ├── license.txt │ ├── package.json │ └── src │ │ ├── cli │ │ ├── cli.js │ │ ├── makehtml.cmd.js │ │ └── messenger.js │ │ ├── converter.js │ │ ├── helpers.js │ │ ├── loader.js │ │ ├── options.js │ │ ├── showdown.js │ │ └── subParsers │ │ ├── anchors.js │ │ ├── autoLinks.js │ │ ├── blockGamut.js │ │ ├── blockQuotes.js │ │ ├── codeBlocks.js │ │ ├── codeSpans.js │ │ ├── completeHTMLDocument.js │ │ ├── detab.js │ │ ├── ellipsis.js │ │ ├── emoji.js │ │ ├── encodeAmpsAndAngles.js │ │ ├── encodeBackslashEscapes.js │ │ ├── encodeCode.js │ │ ├── escapeSpecialCharsWithinTagAttributes.js │ │ ├── githubCodeBlocks.js │ │ ├── hashBlock.js │ │ ├── hashCodeTags.js │ │ ├── hashElement.js │ │ ├── hashHTMLBlocks.js │ │ ├── hashHTMLSpans.js │ │ ├── hashPreCodeTags.js │ │ ├── headers.js │ │ ├── horizontalRule.js │ │ ├── images.js │ │ ├── italicsAndBold.js │ │ ├── lists.js │ │ ├── makeMarkdown │ │ ├── blockquote.js │ │ ├── codeBlock.js │ │ ├── codeSpan.js │ │ ├── emphasis.js │ │ ├── header.js │ │ ├── hr.js │ │ ├── image.js │ │ ├── links.js │ │ ├── list.js │ │ ├── listItem.js │ │ ├── node.js │ │ ├── paragraph.js │ │ ├── pre.js │ │ ├── strikethrough.js │ │ ├── strong.js │ │ ├── table.js │ │ ├── tableCell.js │ │ └── txt.js │ │ ├── metadata.js │ │ ├── outdent.js │ │ ├── paragraphs.js │ │ ├── runExtension.js │ │ ├── spanGamut.js │ │ ├── strikethrough.js │ │ ├── stripLinkDefinitions.js │ │ ├── tables.js │ │ ├── underline.js │ │ └── unescapeSpecialChars.js ├── signal-exit │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── package.json │ └── signals.js ├── string-width │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── strip-ansi │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── strip-eof │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── 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 ├── typed-rest-client │ ├── Handlers.d.ts │ ├── Handlers.js │ ├── HttpClient.d.ts │ ├── HttpClient.js │ ├── Index.d.ts │ ├── Index.js │ ├── Interfaces.d.ts │ ├── Interfaces.js │ ├── LICENSE │ ├── README.md │ ├── RestClient.d.ts │ ├── RestClient.js │ ├── ThirdPartyNotice.txt │ ├── Util.d.ts │ ├── Util.js │ ├── handlers │ │ ├── basiccreds.d.ts │ │ ├── basiccreds.js │ │ ├── bearertoken.d.ts │ │ ├── bearertoken.js │ │ ├── ntlm.d.ts │ │ ├── ntlm.js │ │ ├── personalaccesstoken.d.ts │ │ └── personalaccesstoken.js │ ├── opensource │ │ └── Node-SMB │ │ │ ├── README.md │ │ │ └── lib │ │ │ ├── common.js │ │ │ ├── ntlm.js │ │ │ └── smbhash.js │ └── package.json ├── underscore │ ├── LICENSE │ ├── README.md │ ├── package.json │ ├── underscore-min.js │ ├── underscore-min.map │ └── underscore.js ├── universal-user-agent │ ├── LICENSE.md │ ├── README.md │ ├── dist-node │ │ ├── index.js │ │ └── index.js.map │ ├── dist-src │ │ ├── browser.js │ │ ├── index.js │ │ └── node.js │ ├── dist-types │ │ ├── browser.d.ts │ │ ├── index.d.ts │ │ └── node.d.ts │ ├── dist-web │ │ ├── index.js │ │ └── index.js.map │ └── package.json ├── which-module │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── which │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── bin │ │ └── which │ ├── package.json │ └── which.js ├── windows-release │ ├── index.d.ts │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── wrap-ansi │ ├── index.js │ ├── license │ ├── package.json │ └── readme.md ├── wrappy │ ├── LICENSE │ ├── README.md │ ├── package.json │ └── wrappy.js ├── y18n │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ └── package.json ├── yargs-parser │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── README.md │ ├── index.js │ ├── lib │ │ └── tokenize-arg-string.js │ └── package.json └── yargs │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── index.js │ ├── lib │ ├── apply-extends.js │ ├── argsert.js │ ├── command.js │ ├── completion-templates.js │ ├── completion.js │ ├── is-promise.js │ ├── levenshtein.js │ ├── middleware.js │ ├── obj-filter.js │ ├── usage.js │ ├── validation.js │ └── yerror.js │ ├── locales │ ├── be.json │ ├── de.json │ ├── en.json │ ├── es.json │ ├── fr.json │ ├── hi.json │ ├── hu.json │ ├── id.json │ ├── it.json │ ├── ja.json │ ├── ko.json │ ├── nb.json │ ├── nl.json │ ├── nn.json │ ├── pirate.json │ ├── pl.json │ ├── pt.json │ ├── pt_BR.json │ ├── ru.json │ ├── th.json │ ├── tr.json │ ├── zh_CN.json │ └── zh_TW.json │ ├── package.json │ └── yargs.js ├── package-lock.json └── package.json /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: Sync Issue to Azure DevOps work item 2 | 3 | on: 4 | issues: 5 | types: [opened, edited, deleted, closed, reopened, labeled, unlabeled] 6 | issue_comment: 7 | types: [created, edited, deleted] 8 | 9 | jobs: 10 | alert: 11 | if: ${{ !github.event.issue.pull_request }} 12 | runs-on: ubuntu-latest 13 | name: Testing workflow 14 | steps: 15 | - uses: danhellem/github-actions-issue-to-work-item@master 16 | env: 17 | ado_token: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}' 18 | github_token: '${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}' 19 | ado_organization: '${{ secrets.ADO_ORGANIZATION }}' 20 | ado_project: '${{ secrets.ADO_PROJECT }}' 21 | ado_wit: 'Bug' 22 | ado_new_state: 'New' 23 | ado_close_state: 'Closed' 24 | ado_active_state: 'Active' 25 | ado_bypassrules: true 26 | log_level: 100 27 | -------------------------------------------------------------------------------- /.github/workflows/pr.yml: -------------------------------------------------------------------------------- 1 | name: Sync Pull Request to Azure Boards 2 | 3 | on: 4 | pull_request: 5 | types: [edited, opened, closed] 6 | branches: 7 | - master 8 | 9 | jobs: 10 | alert: 11 | runs-on: ubuntu-latest 12 | name: Running Workflow 13 | steps: 14 | - uses: danhellem/github-actions-pr-to-work-item@master 15 | env: 16 | debug: false 17 | ado_token: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}' 18 | github_token: '${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}' 19 | ado_organization: '${{ secrets.ADO_ORGANIZATION }}' 20 | ado_project: '${{ secrets.ADO_PROJECT }}' 21 | ado_wit: 'GitHub Pull Request' 22 | ado_new_state: 'New' 23 | ado_active_state: 'Active' 24 | ado_close_state: 'Closed' 25 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: "GitHub Issues to Azure DevOps" 2 | description: "This action will Sync your GitHub Issue to Azure Boards when an Issue is created or updated" 3 | author: "danhellem" 4 | branding: 5 | icon: "book-open" 6 | color: "green" 7 | outputs: 8 | id: 9 | description: "id of work item created" 10 | runs: 11 | using: "node20" 12 | main: "index.js" 13 | -------------------------------------------------------------------------------- /assets/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/assets/demo.gif -------------------------------------------------------------------------------- /node_modules/.bin/semver: -------------------------------------------------------------------------------- 1 | ../semver/bin/semver -------------------------------------------------------------------------------- /node_modules/.bin/showdown: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../showdown/bin/showdown.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../showdown/bin/showdown.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /node_modules/.bin/showdown.cmd: -------------------------------------------------------------------------------- 1 | @ECHO off 2 | SETLOCAL 3 | CALL :find_dp0 4 | 5 | IF EXIST "%dp0%\node.exe" ( 6 | SET "_prog=%dp0%\node.exe" 7 | ) ELSE ( 8 | SET "_prog=node" 9 | SET PATHEXT=%PATHEXT:;.JS;=;% 10 | ) 11 | 12 | "%_prog%" "%dp0%\..\showdown\bin\showdown.js" %* 13 | ENDLOCAL 14 | EXIT /b %errorlevel% 15 | :find_dp0 16 | SET dp0=%~dp0 17 | EXIT /b 18 | -------------------------------------------------------------------------------- /node_modules/.bin/showdown.ps1: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env pwsh 2 | $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent 3 | 4 | $exe="" 5 | if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { 6 | # Fix case when both the Windows and Linux builds of Node 7 | # are installed in the same directory 8 | $exe=".exe" 9 | } 10 | $ret=0 11 | if (Test-Path "$basedir/node$exe") { 12 | & "$basedir/node$exe" "$basedir/../showdown/bin/showdown.js" $args 13 | $ret=$LASTEXITCODE 14 | } else { 15 | & "node$exe" "$basedir/../showdown/bin/showdown.js" $args 16 | $ret=$LASTEXITCODE 17 | } 18 | exit $ret 19 | -------------------------------------------------------------------------------- /node_modules/.bin/which: -------------------------------------------------------------------------------- 1 | ../which/bin/which -------------------------------------------------------------------------------- /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 | export {}; 17 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.d.ts: -------------------------------------------------------------------------------- 1 | export declare function issueCommand(command: string, message: any): void; 2 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/file-command.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,YAAY,CAAC,OAAe,EAAE,OAAY;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,oCAcC"} -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Sanitizes an input into a string so it can be passed into issueCommand safely 3 | * @param input input to sanitize into a string 4 | */ 5 | export declare function toCommandValue(input: any): string; 6 | -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // We use any as a valid input type 3 | /* eslint-disable @typescript-eslint/no-explicit-any */ 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | /** 6 | * Sanitizes an input into a string so it can be passed into issueCommand safely 7 | * @param input input to sanitize into a string 8 | */ 9 | function toCommandValue(input) { 10 | if (input === null || input === undefined) { 11 | return ''; 12 | } 13 | else if (typeof input === 'string' || input instanceof String) { 14 | return input; 15 | } 16 | return JSON.stringify(input); 17 | } 18 | exports.toCommandValue = toCommandValue; 19 | //# sourceMappingURL=utils.js.map -------------------------------------------------------------------------------- /node_modules/@actions/core/lib/utils.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;AAEvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC"} -------------------------------------------------------------------------------- /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 | /** 14 | * Hydrate the context from the environment 15 | */ 16 | constructor(); 17 | get issue(): { 18 | owner: string; 19 | repo: string; 20 | number: number; 21 | }; 22 | get repo(): { 23 | owner: string; 24 | repo: string; 25 | }; 26 | } 27 | -------------------------------------------------------------------------------- /node_modules/@actions/github/lib/github.d.ts: -------------------------------------------------------------------------------- 1 | import { graphql as GraphQL } from '@octokit/graphql/dist-types/types'; 2 | import { Octokit } from '@octokit/rest'; 3 | import * as Context from './context'; 4 | export declare const context: Context.Context; 5 | export declare class GitHub extends Octokit { 6 | graphql: GraphQL; 7 | /** 8 | * Sets up the REST client and GraphQL client with auth and proxy support. 9 | * The parameter `token` or `opts.auth` must be supplied. The GraphQL client 10 | * authorization is not setup when `opts.auth` is a function or object. 11 | * 12 | * @param token Auth token 13 | * @param opts Octokit options 14 | */ 15 | constructor(token: string, opts?: Omit); 16 | constructor(opts: Octokit.Options); 17 | /** 18 | * Disambiguates the constructor overload parameters 19 | */ 20 | private static disambiguate; 21 | private static getOctokitOptions; 22 | private static getGraphQL; 23 | private static getAuthString; 24 | private static getProxyAgent; 25 | } 26 | -------------------------------------------------------------------------------- /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 | } 37 | -------------------------------------------------------------------------------- /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/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/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/node_modules/@actions/http-client/actions.png -------------------------------------------------------------------------------- /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/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/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/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/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/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/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=" + 13 | parameters 14 | .q.split("+") 15 | .map(encodeURIComponent) 16 | .join("+")); 17 | } 18 | return `${name}=${encodeURIComponent(parameters[name])}`; 19 | }) 20 | .join("&")); 21 | } 22 | -------------------------------------------------------------------------------- /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 = "5.5.3"; 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 = "5.5.3"; 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/endpoint/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/@octokit/endpoint/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://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) 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/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } 6 | 7 | var osName = _interopDefault(require('os-name')); 8 | 9 | function getUserAgent() { 10 | try { 11 | return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; 12 | } catch (error) { 13 | if (/wmic os get Caption/.test(error.message)) { 14 | return "Windows "; 15 | } 16 | 17 | return ""; 18 | } 19 | } 20 | 21 | exports.getUserAgent = getUserAgent; 22 | //# sourceMappingURL=index.js.map 23 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/node.js"],"sourcesContent":["import osName from \"os-name\";\nexport function getUserAgent() {\n try {\n return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;\n }\n catch (error) {\n if (/wmic os get Caption/.test(error.message)) {\n return \"Windows \";\n }\n return \"\";\n }\n}\n"],"names":["getUserAgent","process","version","substr","osName","arch","error","test","message"],"mappings":";;;;;;;;AACO,SAASA,YAAT,GAAwB;MACvB;WACQ,WAAUC,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIC,MAAM,EAAG,KAAIH,OAAO,CAACI,IAAK,GAA1E;GADJ,CAGA,OAAOC,KAAP,EAAc;QACN,sBAAsBC,IAAtB,CAA2BD,KAAK,CAACE,OAAjC,CAAJ,EAA+C;aACpC,gCAAP;;;WAEG,4BAAP;;;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/browser.js: -------------------------------------------------------------------------------- 1 | export function getUserAgent() { 2 | try { 3 | return navigator.userAgent; 4 | } 5 | catch (e) { 6 | return ""; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export { getUserAgent } from "./node"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-src/node.js: -------------------------------------------------------------------------------- 1 | import osName from "os-name"; 2 | export function getUserAgent() { 3 | try { 4 | return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; 5 | } 6 | catch (error) { 7 | if (/wmic os get Caption/.test(error.message)) { 8 | return "Windows "; 9 | } 10 | return ""; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/browser.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export { getUserAgent } from "./node"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-types/node.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js: -------------------------------------------------------------------------------- 1 | function getUserAgent() { 2 | try { 3 | return navigator.userAgent; 4 | } 5 | catch (e) { 6 | return ""; 7 | } 8 | } 9 | 10 | export { getUserAgent }; 11 | //# sourceMappingURL=index.js.map 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/endpoint/node_modules/universal-user-agent/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/browser.js"],"sourcesContent":["export function getUserAgent() {\n try {\n return navigator.userAgent;\n }\n catch (e) {\n return \"\";\n }\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;IAC3B,IAAI;QACA,OAAO,SAAS,CAAC,SAAS,CAAC;KAC9B;IACD,OAAO,CAAC,EAAE;QACN,OAAO,4BAA4B,CAAC;KACvC;CACJ;;;;"} -------------------------------------------------------------------------------- /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 | this.name = "GraphqlError"; 7 | this.request = request; 8 | // Maintains proper stack trace (only available on V8) 9 | /* istanbul ignore next */ 10 | if (Error.captureStackTrace) { 11 | Error.captureStackTrace(this, this.constructor); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/node_modules/@octokit/graphql/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/graphql/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "4.3.1"; 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 { EndpointOptions, GraphQlQueryResponse } from "./types"; 2 | export declare class GraphqlError extends Error { 3 | request: EndpointOptions; 4 | constructor(request: EndpointOptions, response: { 5 | data: Required; 6 | }); 7 | } 8 | -------------------------------------------------------------------------------- /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.3.1"; 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/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/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: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "1.1.2"; 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 { OctokitResponse, RequestParameters, Route } from "./types"; 3 | export declare function iterator(octokit: Octokit, route: Route, 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/paginate.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { MapFunction, PaginationResults, RequestParameters, Route } from "./types"; 3 | export declare function paginate(octokit: Octokit, route: Route, parameters?: RequestParameters, mapFn?: MapFunction): Promise>; 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "1.1.2"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | const VERSION = "1.0.0"; 6 | 7 | /** 8 | * @param octokit Octokit instance 9 | * @param options Options passed to Octokit constructor 10 | */ 11 | 12 | function requestLog(octokit) { 13 | octokit.hook.wrap("request", (request, options) => { 14 | octokit.log.debug("request", options); 15 | const start = Date.now(); 16 | const requestOptions = octokit.request.endpoint.parse(options); 17 | const path = requestOptions.url.replace(options.baseUrl, ""); 18 | return request(options).then(response => { 19 | octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); 20 | return response; 21 | }).catch(error => { 22 | octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); 23 | throw error; 24 | }); 25 | }); 26 | } 27 | requestLog.VERSION = VERSION; 28 | 29 | exports.requestLog = requestLog; 30 | //# sourceMappingURL=index.js.map 31 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-src/index.js: -------------------------------------------------------------------------------- 1 | import { VERSION } from "./version"; 2 | /** 3 | * @param octokit Octokit instance 4 | * @param options Options passed to Octokit constructor 5 | */ 6 | export function requestLog(octokit) { 7 | octokit.hook.wrap("request", (request, options) => { 8 | octokit.log.debug("request", options); 9 | const start = Date.now(); 10 | const requestOptions = octokit.request.endpoint.parse(options); 11 | const path = requestOptions.url.replace(options.baseUrl, ""); 12 | return request(options) 13 | .then(response => { 14 | octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); 15 | return response; 16 | }) 17 | .catch(error => { 18 | octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - 19 | start}ms`); 20 | throw error; 21 | }); 22 | }); 23 | } 24 | requestLog.VERSION = VERSION; 25 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "1.0.0"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | /** 3 | * @param octokit Octokit instance 4 | * @param options Options passed to Octokit constructor 5 | */ 6 | export declare function requestLog(octokit: Octokit): void; 7 | export declare namespace requestLog { 8 | var VERSION: string; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "1.0.0"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-request-log/dist-web/index.js: -------------------------------------------------------------------------------- 1 | const VERSION = "1.0.0"; 2 | 3 | /** 4 | * @param octokit Octokit instance 5 | * @param options Options passed to Octokit constructor 6 | */ 7 | function requestLog(octokit) { 8 | octokit.hook.wrap("request", (request, options) => { 9 | octokit.log.debug("request", options); 10 | const start = Date.now(); 11 | const requestOptions = octokit.request.endpoint.parse(options); 12 | const path = requestOptions.url.replace(options.baseUrl, ""); 13 | return request(options) 14 | .then(response => { 15 | octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); 16 | return response; 17 | }) 18 | .catch(error => { 19 | octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - 20 | start}ms`); 21 | throw error; 22 | }); 23 | }); 24 | } 25 | requestLog.VERSION = VERSION; 26 | 27 | export { requestLog }; 28 | //# sourceMappingURL=index.js.map 29 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/rest-endpoint-methods-types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/rest-endpoint-methods-types.js -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js: -------------------------------------------------------------------------------- 1 | export const VERSION = "2.4.0"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | import { Octokit } from "@octokit/core"; 2 | import { Api } from "./types"; 3 | /** 4 | * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary 5 | * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is 6 | * done, we will remove the registerEndpoints methods and return the methods 7 | * directly as with the other plugins. At that point we will also remove the 8 | * legacy workarounds and deprecations. 9 | * 10 | * See the plan at 11 | * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 12 | */ 13 | export declare function restEndpointMethods(octokit: Octokit): Api; 14 | export declare namespace restEndpointMethods { 15 | var VERSION: string; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/register-endpoints.d.ts: -------------------------------------------------------------------------------- 1 | export declare function registerEndpoints(octokit: any, routes: any): void; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts: -------------------------------------------------------------------------------- 1 | import { RestEndpointMethods } from "./generated/rest-endpoint-methods-types"; 2 | export declare type Api = { 3 | registerEndpoints: (endpoints: any) => void; 4 | } & RestEndpointMethods; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts: -------------------------------------------------------------------------------- 1 | export declare const VERSION = "2.4.0"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request-error/dist-src/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/danhellem/github-actions-issue-to-work-item/45eb3b46e684f2acd2954f02ef70350c835ee4bb/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/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.3.2"; 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?: string; 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.3.2"; 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/request/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/@octokit/request/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://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) 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/@octokit/request/node_modules/universal-user-agent/dist-node/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | Object.defineProperty(exports, '__esModule', { value: true }); 4 | 5 | function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } 6 | 7 | var osName = _interopDefault(require('os-name')); 8 | 9 | function getUserAgent() { 10 | try { 11 | return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; 12 | } catch (error) { 13 | if (/wmic os get Caption/.test(error.message)) { 14 | return "Windows "; 15 | } 16 | 17 | return ""; 18 | } 19 | } 20 | 21 | exports.getUserAgent = getUserAgent; 22 | //# sourceMappingURL=index.js.map 23 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/node.js"],"sourcesContent":["import osName from \"os-name\";\nexport function getUserAgent() {\n try {\n return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;\n }\n catch (error) {\n if (/wmic os get Caption/.test(error.message)) {\n return \"Windows \";\n }\n return \"\";\n }\n}\n"],"names":["getUserAgent","process","version","substr","osName","arch","error","test","message"],"mappings":";;;;;;;;AACO,SAASA,YAAT,GAAwB;MACvB;WACQ,WAAUC,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIC,MAAM,EAAG,KAAIH,OAAO,CAACI,IAAK,GAA1E;GADJ,CAGA,OAAOC,KAAP,EAAc;QACN,sBAAsBC,IAAtB,CAA2BD,KAAK,CAACE,OAAjC,CAAJ,EAA+C;aACpC,gCAAP;;;WAEG,4BAAP;;;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/browser.js: -------------------------------------------------------------------------------- 1 | export function getUserAgent() { 2 | try { 3 | return navigator.userAgent; 4 | } 5 | catch (e) { 6 | return ""; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export { getUserAgent } from "./node"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/node.js: -------------------------------------------------------------------------------- 1 | import osName from "os-name"; 2 | export function getUserAgent() { 3 | try { 4 | return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; 5 | } 6 | catch (error) { 7 | if (/wmic os get Caption/.test(error.message)) { 8 | return "Windows "; 9 | } 10 | return ""; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/browser.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export { getUserAgent } from "./node"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/node.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js: -------------------------------------------------------------------------------- 1 | function getUserAgent() { 2 | try { 3 | return navigator.userAgent; 4 | } 5 | catch (e) { 6 | return ""; 7 | } 8 | } 9 | 10 | export { getUserAgent }; 11 | //# sourceMappingURL=index.js.map 12 | -------------------------------------------------------------------------------- /node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/browser.js"],"sourcesContent":["export function getUserAgent() {\n try {\n return navigator.userAgent;\n }\n catch (e) {\n return \"\";\n }\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;IAC3B,IAAI;QACA,OAAO,SAAS,CAAC,SAAS,CAAC;KAC9B;IACD,OAAO,CAAC,EAAE;QACN,OAAO,4BAA4B,CAAC;KACvC;CACJ;;;;"} -------------------------------------------------------------------------------- /node_modules/@octokit/rest/lib/constructor.js: -------------------------------------------------------------------------------- 1 | module.exports = Octokit; 2 | 3 | const { request } = require("@octokit/request"); 4 | const Hook = require("before-after-hook"); 5 | 6 | const parseClientOptions = require("./parse-client-options"); 7 | 8 | function Octokit(plugins, options) { 9 | options = options || {}; 10 | const hook = new Hook.Collection(); 11 | const log = Object.assign( 12 | { 13 | debug: () => {}, 14 | info: () => {}, 15 | warn: console.warn, 16 | error: console.error 17 | }, 18 | options && options.log 19 | ); 20 | const api = { 21 | hook, 22 | log, 23 | request: request.defaults(parseClientOptions(options, log, hook)) 24 | }; 25 | 26 | plugins.forEach(pluginFunction => pluginFunction(api, options)); 27 | 28 | return api; 29 | } 30 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/lib/core.js: -------------------------------------------------------------------------------- 1 | const factory = require("./factory"); 2 | 3 | module.exports = factory(); 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/lib/factory.js: -------------------------------------------------------------------------------- 1 | module.exports = factory; 2 | 3 | const Octokit = require("./constructor"); 4 | const registerPlugin = require("./register-plugin"); 5 | 6 | function factory(plugins) { 7 | const Api = Octokit.bind(null, plugins || []); 8 | Api.plugin = registerPlugin.bind(null, plugins || []); 9 | return Api; 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/lib/register-plugin.js: -------------------------------------------------------------------------------- 1 | module.exports = registerPlugin; 2 | 3 | const factory = require("./factory"); 4 | 5 | function registerPlugin(plugins, pluginFunction) { 6 | return factory( 7 | plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction) 8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/plugins/authentication/validate.js: -------------------------------------------------------------------------------- 1 | module.exports = validateAuth; 2 | 3 | function validateAuth(auth) { 4 | if (typeof auth === "string") { 5 | return; 6 | } 7 | 8 | if (typeof auth === "function") { 9 | return; 10 | } 11 | 12 | if (auth.username && auth.password) { 13 | return; 14 | } 15 | 16 | if (auth.clientId && auth.clientSecret) { 17 | return; 18 | } 19 | 20 | throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`); 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/plugins/authentication/with-authorization-prefix.js: -------------------------------------------------------------------------------- 1 | module.exports = withAuthorizationPrefix; 2 | 3 | const atob = require("atob-lite"); 4 | 5 | const REGEX_IS_BASIC_AUTH = /^[\w-]+:/; 6 | 7 | function withAuthorizationPrefix(authorization) { 8 | if (/^(basic|bearer|token) /i.test(authorization)) { 9 | return authorization; 10 | } 11 | 12 | try { 13 | if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) { 14 | return `basic ${authorization}`; 15 | } 16 | } catch (error) {} 17 | 18 | if (authorization.split(/\./).length === 3) { 19 | return `bearer ${authorization}`; 20 | } 21 | 22 | return `token ${authorization}`; 23 | } 24 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/plugins/pagination/index.js: -------------------------------------------------------------------------------- 1 | module.exports = paginatePlugin; 2 | 3 | const { paginateRest } = require("@octokit/plugin-paginate-rest"); 4 | 5 | function paginatePlugin(octokit) { 6 | Object.assign(octokit, paginateRest(octokit)); 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/@octokit/rest/plugins/validate/index.js: -------------------------------------------------------------------------------- 1 | module.exports = octokitValidate; 2 | 3 | const validate = require("./validate"); 4 | 5 | function octokitValidate(octokit) { 6 | octokit.hook.before("request", validate.bind(null, octokit)); 7 | } 8 | -------------------------------------------------------------------------------- /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/README.md: -------------------------------------------------------------------------------- 1 | # types.ts 2 | 3 | > Shared TypeScript definitions for Octokit projects 4 | 5 | [![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) 6 | [![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) 7 | [![Greenkeeper](https://badges.greenkeeper.io/octokit/types.ts.svg)](https://greenkeeper.io/) 8 | 9 | ## Usage 10 | 11 | See https://octokit.github.io/types.ts for all exported types 12 | 13 | ## Contributing 14 | 15 | See [CONTRIBUTING.md](CONTRIBUTING.md) 16 | 17 | ## License 18 | 19 | [MIT](LICENSE) 20 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/EndpointDefaults.ts: -------------------------------------------------------------------------------- 1 | import { RequestHeaders } from "./RequestHeaders"; 2 | import { RequestMethod } from "./RequestMethod"; 3 | import { RequestParameters } from "./RequestParameters"; 4 | import { Url } from "./Url"; 5 | 6 | /** 7 | * The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters 8 | * as well as the method property. 9 | */ 10 | export type EndpointDefaults = RequestParameters & { 11 | baseUrl: Url; 12 | method: RequestMethod; 13 | url?: Url; 14 | headers: RequestHeaders & { 15 | accept: string; 16 | "user-agent": string; 17 | }; 18 | mediaType: { 19 | format: string; 20 | previews: string[]; 21 | }; 22 | }; 23 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/EndpointOptions.ts: -------------------------------------------------------------------------------- 1 | import { RequestMethod } from "./RequestMethod"; 2 | import { Url } from "./Url"; 3 | import { RequestParameters } from "./RequestParameters"; 4 | 5 | export type EndpointOptions = RequestParameters & { 6 | method: RequestMethod; 7 | url: Url; 8 | }; 9 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/Fetch.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Browser's fetch method (or compatible such as fetch-mock) 3 | */ 4 | export type Fetch = any; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/OctokitResponse.ts: -------------------------------------------------------------------------------- 1 | import { ResponseHeaders } from "./ResponseHeaders"; 2 | import { Url } from "./Url"; 3 | 4 | export type OctokitResponse = { 5 | headers: ResponseHeaders; 6 | /** 7 | * http response code 8 | */ 9 | status: number; 10 | /** 11 | * URL of response after all redirects 12 | */ 13 | url: Url; 14 | /** 15 | * This is the data you would see in https://developer.Octokit.com/v3/ 16 | */ 17 | data: T; 18 | }; 19 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/RequestHeaders.ts: -------------------------------------------------------------------------------- 1 | export 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/src/RequestMethod.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * HTTP Verb supported by GitHub's REST API 3 | */ 4 | export type RequestMethod = 5 | | "DELETE" 6 | | "GET" 7 | | "HEAD" 8 | | "PATCH" 9 | | "POST" 10 | | "PUT"; 11 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/RequestOptions.ts: -------------------------------------------------------------------------------- 1 | import { RequestHeaders } from "./RequestHeaders"; 2 | import { RequestMethod } from "./RequestMethod"; 3 | import { RequestRequestOptions } from "./RequestRequestOptions"; 4 | import { Url } from "./Url"; 5 | 6 | /** 7 | * Generic request options as they are returned by the `endpoint()` method 8 | */ 9 | export type RequestOptions = { 10 | method: RequestMethod; 11 | url: Url; 12 | headers: RequestHeaders; 13 | body?: any; 14 | request?: RequestRequestOptions; 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/RequestRequestOptions.ts: -------------------------------------------------------------------------------- 1 | import { Agent } from "http"; 2 | import { Fetch } from "./Fetch"; 3 | import { Signal } from "./Signal"; 4 | 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 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 | 26 | [option: string]: any; 27 | }; 28 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/ResponseHeaders.ts: -------------------------------------------------------------------------------- 1 | export 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 | 20 | [header: string]: string | number | undefined; 21 | }; 22 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/Route.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 type Route = string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/Signal.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Abort signal 3 | * 4 | * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal 5 | */ 6 | export type Signal = any; 7 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/StrategyInterface.ts: -------------------------------------------------------------------------------- 1 | import { AuthInterface } from "./AuthInterface"; 2 | 3 | export interface StrategyInterface< 4 | StrategyOptions extends any[], 5 | AuthOptions extends any[], 6 | Authentication extends object 7 | > { 8 | (...args: StrategyOptions): AuthInterface; 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/Url.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Relative or absolute URL. Examples: `'/orgs/:org'`, `https://example.com/foo/bar` 3 | */ 4 | export type Url = string; 5 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/VERSION.ts: -------------------------------------------------------------------------------- 1 | export const VERSION = "2.5.0"; 2 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/generated/README.md: -------------------------------------------------------------------------------- 1 | # ⚠️ Do not edit files in this folder 2 | 3 | All files are generated. Manual changes will be overwritten. If you find a problem, please look into how they are generated. When in doubt, please open a new issue. 4 | -------------------------------------------------------------------------------- /node_modules/@octokit/types/src/index.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 "./RequestHeaders"; 8 | export * from "./RequestInterface"; 9 | export * from "./RequestMethod"; 10 | export * from "./RequestOptions"; 11 | export * from "./RequestParameters"; 12 | export * from "./RequestRequestOptions"; 13 | export * from "./ResponseHeaders"; 14 | export * from "./Route"; 15 | export * from "./Signal"; 16 | export * from "./StrategyInterface"; 17 | export * from "./Url"; 18 | export * from "./VERSION"; 19 | -------------------------------------------------------------------------------- /node_modules/@types/node/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/console.d.ts: -------------------------------------------------------------------------------- 1 | declare module "console" { 2 | export = console; 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/@types/node/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/domain.d.ts: -------------------------------------------------------------------------------- 1 | declare module "domain" { 2 | import { EventEmitter } from "events"; 3 | 4 | class Domain extends EventEmitter implements NodeJS.Domain { 5 | run(fn: (...args: any[]) => T, ...args: any[]): T; 6 | add(emitter: EventEmitter | NodeJS.Timer): void; 7 | remove(emitter: EventEmitter | NodeJS.Timer): void; 8 | bind(cb: T): T; 9 | intercept(cb: T): T; 10 | members: Array; 11 | enter(): void; 12 | exit(): void; 13 | } 14 | 15 | function create(): Domain; 16 | } 17 | -------------------------------------------------------------------------------- /node_modules/@types/node/process.d.ts: -------------------------------------------------------------------------------- 1 | declare module "process" { 2 | import * as tty from "tty"; 3 | 4 | global { 5 | namespace NodeJS { 6 | // this namespace merge is here because these are specifically used 7 | // as the type for process.stdin, process.stdout, and process.stderr. 8 | // they can't live in tty.d.ts because we need to disambiguate the imported name. 9 | interface ReadStream extends tty.ReadStream {} 10 | interface WriteStream extends tty.WriteStream {} 11 | } 12 | } 13 | 14 | export = process; 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/@types/node/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/string_decoder.d.ts: -------------------------------------------------------------------------------- 1 | declare module "string_decoder" { 2 | class StringDecoder { 3 | constructor(encoding?: string); 4 | write(buffer: Buffer): string; 5 | end(buffer?: Buffer): string; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/@types/node/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.2/globals.d.ts: -------------------------------------------------------------------------------- 1 | // tslint:disable-next-line:no-bad-reference 2 | /// 3 | 4 | declare namespace NodeJS { 5 | interface HRTime { 6 | bigint(): bigint; 7 | } 8 | } 9 | 10 | interface Buffer extends Uint8Array { 11 | readBigUInt64BE(offset?: number): bigint; 12 | readBigUInt64LE(offset?: number): bigint; 13 | readBigInt64BE(offset?: number): bigint; 14 | readBigInt64LE(offset?: number): bigint; 15 | writeBigInt64BE(value: bigint, offset?: number): number; 16 | writeBigInt64LE(value: bigint, offset?: number): number; 17 | writeBigUInt64BE(value: bigint, offset?: number): number; 18 | writeBigUInt64LE(value: bigint, offset?: number): number; 19 | } 20 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.2/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.2. 2 | 3 | // Reference required types from the default lib: 4 | /// 5 | /// 6 | /// 7 | /// 8 | 9 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 10 | // tslint:disable-next-line:no-bad-reference 11 | /// 12 | 13 | // TypeScript 3.2-specific augmentations: 14 | /// 15 | /// 16 | /// 17 | -------------------------------------------------------------------------------- /node_modules/@types/node/ts3.2/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.5/index.d.ts: -------------------------------------------------------------------------------- 1 | // NOTE: These definitions support NodeJS and TypeScript 3.5. 2 | 3 | // Reference required types from the default lib: 4 | /// 5 | /// 6 | /// 7 | /// 8 | 9 | // Base definitions for all NodeJS modules that are not specific to any version of TypeScript: 10 | // tslint:disable-next-line:no-bad-reference 11 | /// 12 | 13 | // TypeScript 3.5-specific augmentations: 14 | /// 15 | -------------------------------------------------------------------------------- /node_modules/ansi-regex/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = options => { 4 | options = Object.assign({ 5 | onlyFirst: false 6 | }, options); 7 | 8 | const pattern = [ 9 | '[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)', 10 | '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))' 11 | ].join('|'); 12 | 13 | return new RegExp(pattern, options.onlyFirst ? undefined : 'g'); 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/atob-lite/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | .DS_Store 4 | bundle.js 5 | test 6 | test.js 7 | -------------------------------------------------------------------------------- /node_modules/atob-lite/atob-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = function _atob(str) { 2 | return atob(str) 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/atob-lite/atob-node.js: -------------------------------------------------------------------------------- 1 | module.exports = function atob(str) { 2 | return Buffer.from(str, 'base64').toString('binary') 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/ClientApiBases.d.ts: -------------------------------------------------------------------------------- 1 | import vsom = require('./VsoClient'); 2 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); 3 | import * as rm from 'typed-rest-client/RestClient'; 4 | import * as hm from 'typed-rest-client/HttpClient'; 5 | export declare class ClientApiBase { 6 | baseUrl: string; 7 | userAgent: string; 8 | http: hm.HttpClient; 9 | rest: rm.RestClient; 10 | vsoClient: vsom.VsoClient; 11 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], userAgent?: string, options?: VsoBaseInterfaces.IRequestOptions); 12 | createAcceptHeader(type: string, apiVersion?: string): string; 13 | createRequestOptions(type: string, apiVersion?: string): rm.IRequestOptions; 14 | formatResponse(data: any, responseTypeMetadata: any, isCollection: boolean): any; 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/basiccreds.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('../interfaces/common/VsoBaseInterfaces'); 2 | import * as resthandlers from 'typed-rest-client/Handlers'; 3 | export declare class BasicCredentialHandler extends resthandlers.BasicCredentialHandler implements ifm.IRequestHandler { 4 | constructor(username: string, password: string); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/basiccreds.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | const resthandlers = require("typed-rest-client/Handlers"); 6 | class BasicCredentialHandler extends resthandlers.BasicCredentialHandler { 7 | constructor(username, password) { 8 | super(username, password); 9 | } 10 | } 11 | exports.BasicCredentialHandler = BasicCredentialHandler; 12 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/bearertoken.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('../interfaces/common/VsoBaseInterfaces'); 2 | import * as resthandlers from 'typed-rest-client/Handlers'; 3 | export declare class BearerCredentialHandler extends resthandlers.BearerCredentialHandler implements ifm.IRequestHandler { 4 | constructor(token: string); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/bearertoken.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | const resthandlers = require("typed-rest-client/Handlers"); 6 | class BearerCredentialHandler extends resthandlers.BearerCredentialHandler { 7 | constructor(token) { 8 | super(token); 9 | } 10 | } 11 | exports.BearerCredentialHandler = BearerCredentialHandler; 12 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/ntlm.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('../interfaces/common/VsoBaseInterfaces'); 2 | import * as resthandlers from 'typed-rest-client/Handlers'; 3 | export declare class NtlmCredentialHandler extends resthandlers.NtlmCredentialHandler implements ifm.IRequestHandler { 4 | constructor(username: string, password: string, workstation?: string, domain?: string); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/ntlm.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | const resthandlers = require("typed-rest-client/Handlers"); 6 | class NtlmCredentialHandler extends resthandlers.NtlmCredentialHandler { 7 | constructor(username, password, workstation, domain) { 8 | super(username, password, workstation, domain); 9 | } 10 | } 11 | exports.NtlmCredentialHandler = NtlmCredentialHandler; 12 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/personalaccesstoken.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('../interfaces/common/VsoBaseInterfaces'); 2 | import * as resthandlers from 'typed-rest-client/Handlers'; 3 | export declare class PersonalAccessTokenCredentialHandler extends resthandlers.PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler { 4 | constructor(token: string); 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/handlers/personalaccesstoken.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | const resthandlers = require("typed-rest-client/Handlers"); 6 | class PersonalAccessTokenCredentialHandler extends resthandlers.PersonalAccessTokenCredentialHandler { 7 | constructor(token) { 8 | super(token); 9 | } 10 | } 11 | exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; 12 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/interfaces/DistributedTaskCommonInterfaces.js: -------------------------------------------------------------------------------- 1 | /* 2 | * --------------------------------------------------------- 3 | * Copyright(C) Microsoft Corporation. All rights reserved. 4 | * --------------------------------------------------------- 5 | * 6 | * --------------------------------------------------------- 7 | * Generated file, DO NOT EDIT 8 | * --------------------------------------------------------- 9 | */ 10 | "use strict"; 11 | Object.defineProperty(exports, "__esModule", { value: true }); 12 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/interfaces/common/System.d.ts: -------------------------------------------------------------------------------- 1 | export declare enum DayOfWeek { 2 | /** 3 | * Indicates Sunday. 4 | */ 5 | Sunday = 0, 6 | /** 7 | * Indicates Monday. 8 | */ 9 | Monday = 1, 10 | /** 11 | * Indicates Tuesday. 12 | */ 13 | Tuesday = 2, 14 | /** 15 | * Indicates Wednesday. 16 | */ 17 | Wednesday = 3, 18 | /** 19 | * Indicates Thursday. 20 | */ 21 | Thursday = 4, 22 | /** 23 | * Indicates Friday. 24 | */ 25 | Friday = 5, 26 | /** 27 | * Indicates Saturday. 28 | */ 29 | Saturday = 6 30 | } 31 | export declare var TypeInfo: { 32 | DayOfWeek: { 33 | enumValues: { 34 | "sunday": number; 35 | "monday": number; 36 | "tuesday": number; 37 | "wednesday": number; 38 | "thursday": number; 39 | "friday": number; 40 | "saturday": number; 41 | }; 42 | }; 43 | }; 44 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/interfaces/common/VsoBaseInterfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | ; 6 | -------------------------------------------------------------------------------- /node_modules/azure-devops-node-api/opensource/node-http-ntlm/readme.txt: -------------------------------------------------------------------------------- 1 | // This software (ntlm.js) was copied from a file of the same name at https://github.com/SamDecrock/node-http-ntlm/blob/master/ntlm.js. 2 | // 3 | // As of this writing, it is a part of the node-http-ntlm module produced by SamDecrock. 4 | // 5 | // It is used as a part of the NTLM support provided by the azure-devops-node-api library. 6 | // 7 | -------------------------------------------------------------------------------- /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/btoa-lite/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log 3 | .DS_Store 4 | bundle.js 5 | test 6 | test.js 7 | -------------------------------------------------------------------------------- /node_modules/btoa-lite/btoa-browser.js: -------------------------------------------------------------------------------- 1 | module.exports = function _btoa(str) { 2 | return btoa(str) 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/btoa-lite/btoa-node.js: -------------------------------------------------------------------------------- 1 | module.exports = function btoa(str) { 2 | return new Buffer(str).toString('base64') 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/cliui/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Contributors 2 | 3 | Permission to use, copy, modify, and/or distribute this software 4 | for any purpose with or without fee is hereby granted, provided 5 | that the above copyright notice and this permission notice 6 | appear in all copies. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 10 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE 11 | LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 12 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 13 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 14 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | -------------------------------------------------------------------------------- /node_modules/color-name/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | Copyright (c) 2015 Dmitry Ivanov 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. -------------------------------------------------------------------------------- /node_modules/color-name/README.md: -------------------------------------------------------------------------------- 1 | A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors. 2 | 3 | [![NPM](https://nodei.co/npm/color-name.png?mini=true)](https://nodei.co/npm/color-name/) 4 | 5 | 6 | ```js 7 | var colors = require('color-name'); 8 | colors.red //[255,0,0] 9 | ``` 10 | 11 | 12 | -------------------------------------------------------------------------------- /node_modules/color-name/test.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | var names = require('./'); 4 | var assert = require('assert'); 5 | 6 | assert.deepEqual(names.red, [255,0,0]); 7 | assert.deepEqual(names.aliceblue, [240,248,255]); 8 | -------------------------------------------------------------------------------- /node_modules/cross-spawn/lib/util/readShebang.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const fs = require('fs'); 4 | const shebangCommand = require('shebang-command'); 5 | 6 | function readShebang(command) { 7 | // Read the first 150 bytes from the file 8 | const size = 150; 9 | let buffer; 10 | 11 | if (Buffer.alloc) { 12 | // Node.js v4.5+ / v5.10+ 13 | buffer = Buffer.alloc(size); 14 | } else { 15 | // Old Node.js API 16 | buffer = new Buffer(size); 17 | buffer.fill(0); // zero-fill 18 | } 19 | 20 | let fd; 21 | 22 | try { 23 | fd = fs.openSync(command, 'r'); 24 | fs.readSync(fd, buffer, 0, size, 0); 25 | fs.closeSync(fd); 26 | } catch (e) { /* Empty */ } 27 | 28 | // Attempt to extract shebang (null is returned if not a shebang) 29 | return shebangCommand(buffer.toString()); 30 | } 31 | 32 | module.exports = readShebang; 33 | -------------------------------------------------------------------------------- /node_modules/decamelize/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function (str, sep) { 3 | if (typeof str !== 'string') { 4 | throw new TypeError('Expected a string'); 5 | } 6 | 7 | sep = typeof sep === 'undefined' ? '_' : sep; 8 | 9 | return str 10 | .replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2') 11 | .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2') 12 | .toLowerCase(); 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/decamelize/readme.md: -------------------------------------------------------------------------------- 1 | # decamelize [![Build Status](https://travis-ci.org/sindresorhus/decamelize.svg?branch=master)](https://travis-ci.org/sindresorhus/decamelize) 2 | 3 | > Convert a camelized string into a lowercased one with a custom separator
4 | > Example: `unicornRainbow` → `unicorn_rainbow` 5 | 6 | 7 | ## Install 8 | 9 | ``` 10 | $ npm install --save decamelize 11 | ``` 12 | 13 | 14 | ## Usage 15 | 16 | ```js 17 | const decamelize = require('decamelize'); 18 | 19 | decamelize('unicornRainbow'); 20 | //=> 'unicorn_rainbow' 21 | 22 | decamelize('unicornRainbow', '-'); 23 | //=> 'unicorn-rainbow' 24 | ``` 25 | 26 | 27 | ## API 28 | 29 | ### decamelize(input, [separator]) 30 | 31 | #### input 32 | 33 | Type: `string` 34 | 35 | #### separator 36 | 37 | Type: `string`
38 | Default: `_` 39 | 40 | 41 | ## Related 42 | 43 | See [`camelcase`](https://github.com/sindresorhus/camelcase) for the inverse. 44 | 45 | 46 | ## License 47 | 48 | MIT © [Sindre Sorhus](https://sindresorhus.com) 49 | -------------------------------------------------------------------------------- /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/emoji-regex/index.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'emoji-regex' { 2 | function emojiRegex(): RegExp; 3 | 4 | export default emojiRegex; 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/execa/lib/errname.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | // Older verions of Node.js might not have `util.getSystemErrorName()`. 3 | // In that case, fall back to a deprecated internal. 4 | const util = require('util'); 5 | 6 | let uv; 7 | 8 | if (typeof util.getSystemErrorName === 'function') { 9 | module.exports = util.getSystemErrorName; 10 | } else { 11 | try { 12 | uv = process.binding('uv'); 13 | 14 | if (typeof uv.errname !== 'function') { 15 | throw new TypeError('uv.errname is not a function'); 16 | } 17 | } catch (err) { 18 | console.error('execa/lib/errname: unable to establish process.binding(\'uv\')', err); 19 | uv = null; 20 | } 21 | 22 | module.exports = code => errname(uv, code); 23 | } 24 | 25 | // Used for testing the fallback behavior 26 | module.exports.__test__ = errname; 27 | 28 | function errname(uv, code) { 29 | if (uv) { 30 | return uv.errname(code); 31 | } 32 | 33 | if (!(code < 0)) { 34 | throw new Error('err >= 0'); 35 | } 36 | 37 | return `Unknown system error ${code}`; 38 | } 39 | 40 | -------------------------------------------------------------------------------- /node_modules/execa/lib/stdio.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const alias = ['stdin', 'stdout', 'stderr']; 3 | 4 | const hasAlias = opts => alias.some(x => Boolean(opts[x])); 5 | 6 | module.exports = opts => { 7 | if (!opts) { 8 | return null; 9 | } 10 | 11 | if (opts.stdio && hasAlias(opts)) { 12 | throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${alias.map(x => `\`${x}\``).join(', ')}`); 13 | } 14 | 15 | if (typeof opts.stdio === 'string') { 16 | return opts.stdio; 17 | } 18 | 19 | const stdio = opts.stdio || []; 20 | 21 | if (!Array.isArray(stdio)) { 22 | throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``); 23 | } 24 | 25 | const result = []; 26 | const len = Math.max(stdio.length, alias.length); 27 | 28 | for (let i = 0; i < len; i++) { 29 | let value = null; 30 | 31 | if (stdio[i] !== undefined) { 32 | value = stdio[i]; 33 | } else if (opts[alias[i]] !== undefined) { 34 | value = opts[alias[i]]; 35 | } 36 | 37 | result[i] = value; 38 | } 39 | 40 | return result; 41 | }; 42 | -------------------------------------------------------------------------------- /node_modules/get-caller-file/LICENSE.md: -------------------------------------------------------------------------------- 1 | ISC License (ISC) 2 | Copyright 2018 Stefan Penner 3 | 4 | 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. 5 | 6 | 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. 7 | -------------------------------------------------------------------------------- /node_modules/get-caller-file/index.d.ts: -------------------------------------------------------------------------------- 1 | declare const _default: (position?: number) => any; 2 | export = _default; 3 | -------------------------------------------------------------------------------- /node_modules/get-caller-file/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,qEAAqE;AACrE,EAAE;AACF,0DAA0D;AAE1D,iBAAS,SAAS,aAAa,CAAC,QAAY;IAAZ,yBAAA,EAAA,YAAY;IAC1C,IAAI,QAAQ,IAAI,KAAK,CAAC,eAAe,EAAE;QACrC,MAAM,IAAI,SAAS,CAAC,kGAAkG,GAAG,QAAQ,GAAG,oCAAoC,GAAG,KAAK,CAAC,eAAe,GAAG,GAAG,CAAC,CAAC;KACzM;IAED,IAAM,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACrD,KAAK,CAAC,iBAAiB,GAAG,UAAC,CAAC,EAAE,KAAK,IAAM,OAAA,KAAK,EAAL,CAAK,CAAC;IAC/C,IAAM,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;IAChC,KAAK,CAAC,iBAAiB,GAAG,oBAAoB,CAAC;IAG/C,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC/C,2BAA2B;QAC3B,gDAAgD;QAChD,8CAA8C;QAC9C,OAAO,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,QAAQ,CAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;KAC7E;AACH,CAAC,CAAC"} -------------------------------------------------------------------------------- /node_modules/get-stream/buffer-stream.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const {PassThrough} = require('stream'); 3 | 4 | module.exports = options => { 5 | options = Object.assign({}, options); 6 | 7 | const {array} = options; 8 | let {encoding} = options; 9 | const buffer = encoding === 'buffer'; 10 | let objectMode = false; 11 | 12 | if (array) { 13 | objectMode = !(encoding || buffer); 14 | } else { 15 | encoding = encoding || 'utf8'; 16 | } 17 | 18 | if (buffer) { 19 | encoding = null; 20 | } 21 | 22 | let len = 0; 23 | const ret = []; 24 | const stream = new PassThrough({objectMode}); 25 | 26 | if (encoding) { 27 | stream.setEncoding(encoding); 28 | } 29 | 30 | stream.on('data', chunk => { 31 | ret.push(chunk); 32 | 33 | if (objectMode) { 34 | len = ret.length; 35 | } else { 36 | len += chunk.length; 37 | } 38 | }); 39 | 40 | stream.getBufferedValue = () => { 41 | if (array) { 42 | return ret; 43 | } 44 | 45 | return buffer ? Buffer.concat(ret, len) : ret.join(''); 46 | }; 47 | 48 | stream.getBufferedLength = () => len; 49 | 50 | return stream; 51 | }; 52 | -------------------------------------------------------------------------------- /node_modules/is-fullwidth-code-point/readme.md: -------------------------------------------------------------------------------- 1 | # is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point) 2 | 3 | > Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save is-fullwidth-code-point 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | const isFullwidthCodePoint = require('is-fullwidth-code-point'); 17 | 18 | isFullwidthCodePoint('谢'.codePointAt()); 19 | //=> true 20 | 21 | isFullwidthCodePoint('a'.codePointAt()); 22 | //=> false 23 | ``` 24 | 25 | 26 | ## API 27 | 28 | ### isFullwidthCodePoint(input) 29 | 30 | #### input 31 | 32 | Type: `number` 33 | 34 | [Code point](https://en.wikipedia.org/wiki/Code_point) of a character. 35 | 36 | 37 | ## License 38 | 39 | MIT © [Sindre Sorhus](https://sindresorhus.com) 40 | -------------------------------------------------------------------------------- /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/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function isPlainObject(o: any): boolean; 2 | 3 | export default isPlainObject; 4 | -------------------------------------------------------------------------------- /node_modules/is-plain-object/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * is-plain-object 3 | * 4 | * Copyright (c) 2014-2017, Jon Schlinkert. 5 | * Released under the MIT License. 6 | */ 7 | 8 | import isObject from 'isobject'; 9 | 10 | function isObjectObject(o) { 11 | return isObject(o) === true 12 | && Object.prototype.toString.call(o) === '[object Object]'; 13 | } 14 | 15 | export default function isPlainObject(o) { 16 | var ctor,prot; 17 | 18 | if (isObjectObject(o) === false) return false; 19 | 20 | // If has modified constructor 21 | ctor = o.constructor; 22 | if (typeof ctor !== 'function') return false; 23 | 24 | // If has modified prototype 25 | prot = ctor.prototype; 26 | if (isObjectObject(prot) === false) return false; 27 | 28 | // If constructor does not have an Object-specific method 29 | if (prot.hasOwnProperty('isPrototypeOf') === false) { 30 | return false; 31 | } 32 | 33 | // Most likely a plain Object 34 | return true; 35 | }; 36 | -------------------------------------------------------------------------------- /node_modules/is-stream/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var isStream = module.exports = function (stream) { 4 | return stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function'; 5 | }; 6 | 7 | isStream.writable = function (stream) { 8 | return isStream(stream) && stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object'; 9 | }; 10 | 11 | isStream.readable = function (stream) { 12 | return isStream(stream) && stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object'; 13 | }; 14 | 15 | isStream.duplex = function (stream) { 16 | return isStream.writable(stream) && isStream.readable(stream); 17 | }; 18 | 19 | isStream.transform = function (stream) { 20 | return isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object'; 21 | }; 22 | -------------------------------------------------------------------------------- /node_modules/is-stream/readme.md: -------------------------------------------------------------------------------- 1 | # is-stream [![Build Status](https://travis-ci.org/sindresorhus/is-stream.svg?branch=master)](https://travis-ci.org/sindresorhus/is-stream) 2 | 3 | > Check if something is a [Node.js stream](https://nodejs.org/api/stream.html) 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save is-stream 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | const fs = require('fs'); 17 | const isStream = require('is-stream'); 18 | 19 | isStream(fs.createReadStream('unicorn.png')); 20 | //=> true 21 | 22 | isStream({}); 23 | //=> false 24 | ``` 25 | 26 | 27 | ## API 28 | 29 | ### isStream(stream) 30 | 31 | #### isStream.writable(stream) 32 | 33 | #### isStream.readable(stream) 34 | 35 | #### isStream.duplex(stream) 36 | 37 | #### isStream.transform(stream) 38 | 39 | 40 | ## License 41 | 42 | MIT © [Sindre Sorhus](https://sindresorhus.com) 43 | -------------------------------------------------------------------------------- /node_modules/isexe/.npmignore: -------------------------------------------------------------------------------- 1 | .nyc_output/ 2 | coverage/ 3 | -------------------------------------------------------------------------------- /node_modules/isexe/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/isexe/mode.js: -------------------------------------------------------------------------------- 1 | module.exports = isexe 2 | isexe.sync = sync 3 | 4 | var fs = require('fs') 5 | 6 | function isexe (path, options, cb) { 7 | fs.stat(path, function (er, stat) { 8 | cb(er, er ? false : checkStat(stat, options)) 9 | }) 10 | } 11 | 12 | function sync (path, options) { 13 | return checkStat(fs.statSync(path), options) 14 | } 15 | 16 | function checkStat (stat, options) { 17 | return stat.isFile() && checkMode(stat, options) 18 | } 19 | 20 | function checkMode (stat, options) { 21 | var mod = stat.mode 22 | var uid = stat.uid 23 | var gid = stat.gid 24 | 25 | var myUid = options.uid !== undefined ? 26 | options.uid : process.getuid && process.getuid() 27 | var myGid = options.gid !== undefined ? 28 | options.gid : process.getgid && process.getgid() 29 | 30 | var u = parseInt('100', 8) 31 | var g = parseInt('010', 8) 32 | var o = parseInt('001', 8) 33 | var ug = u | g 34 | 35 | var ret = (mod & o) || 36 | (mod & g) && gid === myGid || 37 | (mod & u) && uid === myUid || 38 | (mod & ug) && myUid === 0 39 | 40 | return ret 41 | } 42 | -------------------------------------------------------------------------------- /node_modules/isexe/windows.js: -------------------------------------------------------------------------------- 1 | module.exports = isexe 2 | isexe.sync = sync 3 | 4 | var fs = require('fs') 5 | 6 | function checkPathExt (path, options) { 7 | var pathext = options.pathExt !== undefined ? 8 | options.pathExt : process.env.PATHEXT 9 | 10 | if (!pathext) { 11 | return true 12 | } 13 | 14 | pathext = pathext.split(';') 15 | if (pathext.indexOf('') !== -1) { 16 | return true 17 | } 18 | for (var i = 0; i < pathext.length; i++) { 19 | var p = pathext[i].toLowerCase() 20 | if (p && path.substr(-p.length).toLowerCase() === p) { 21 | return true 22 | } 23 | } 24 | return false 25 | } 26 | 27 | function checkStat (stat, path, options) { 28 | if (!stat.isSymbolicLink() && !stat.isFile()) { 29 | return false 30 | } 31 | return checkPathExt(path, options) 32 | } 33 | 34 | function isexe (path, options, cb) { 35 | fs.stat(path, function (er, stat) { 36 | cb(er, er ? false : checkStat(stat, path, options)) 37 | }) 38 | } 39 | 40 | function sync (path, options) { 41 | return checkStat(fs.statSync(path), path, options) 42 | } 43 | -------------------------------------------------------------------------------- /node_modules/isobject/index.cjs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*! 4 | * isobject 5 | * 6 | * Copyright (c) 2014-2017, Jon Schlinkert. 7 | * Released under the MIT License. 8 | */ 9 | 10 | function isObject(val) { 11 | return val != null && typeof val === 'object' && Array.isArray(val) === false; 12 | } 13 | 14 | module.exports = isObject; 15 | -------------------------------------------------------------------------------- /node_modules/isobject/index.d.ts: -------------------------------------------------------------------------------- 1 | declare function isObject(val: any): boolean; 2 | 3 | export default isObject; 4 | -------------------------------------------------------------------------------- /node_modules/isobject/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * isobject 3 | * 4 | * Copyright (c) 2014-2017, Jon Schlinkert. 5 | * Released under the MIT License. 6 | */ 7 | 8 | export default function isObject(val) { 9 | return val != null && typeof val === 'object' && Array.isArray(val) === false; 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/locate-path/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const path = require('path'); 3 | const pathExists = require('path-exists'); 4 | const pLocate = require('p-locate'); 5 | 6 | module.exports = (iterable, options) => { 7 | options = Object.assign({ 8 | cwd: process.cwd() 9 | }, options); 10 | 11 | return pLocate(iterable, el => pathExists(path.resolve(options.cwd, el)), options); 12 | }; 13 | 14 | module.exports.sync = (iterable, options) => { 15 | options = Object.assign({ 16 | cwd: process.cwd() 17 | }, options); 18 | 19 | for (const el of iterable) { 20 | if (pathExists.sync(path.resolve(options.cwd, el))) { 21 | return el; 22 | } 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /node_modules/lodash.get/README.md: -------------------------------------------------------------------------------- 1 | # lodash.get v4.4.2 2 | 3 | The [lodash](https://lodash.com/) method `_.get` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.get 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var get = require('lodash.get'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#get) or [package source](https://github.com/lodash/lodash/blob/4.4.2-npm-packages/lodash.get) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.set/README.md: -------------------------------------------------------------------------------- 1 | # lodash.set v4.3.2 2 | 3 | The [lodash](https://lodash.com/) method `_.set` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.set 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var set = require('lodash.set'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#set) or [package source](https://github.com/lodash/lodash/blob/4.3.2-npm-packages/lodash.set) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/lodash.uniq/README.md: -------------------------------------------------------------------------------- 1 | # lodash.uniq v4.5.0 2 | 3 | The [lodash](https://lodash.com/) method `_.uniq` exported as a [Node.js](https://nodejs.org/) module. 4 | 5 | ## Installation 6 | 7 | Using npm: 8 | ```bash 9 | $ {sudo -H} npm i -g npm 10 | $ npm i --save lodash.uniq 11 | ``` 12 | 13 | In Node.js: 14 | ```js 15 | var uniq = require('lodash.uniq'); 16 | ``` 17 | 18 | See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/4.5.0-npm-packages/lodash.uniq) for more details. 19 | -------------------------------------------------------------------------------- /node_modules/macos-release/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const os = require('os'); 3 | 4 | const nameMap = new Map([ 5 | [19, 'Catalina'], 6 | [18, 'Mojave'], 7 | [17, 'High Sierra'], 8 | [16, 'Sierra'], 9 | [15, 'El Capitan'], 10 | [14, 'Yosemite'], 11 | [13, 'Mavericks'], 12 | [12, 'Mountain Lion'], 13 | [11, 'Lion'], 14 | [10, 'Snow Leopard'], 15 | [9, 'Leopard'], 16 | [8, 'Tiger'], 17 | [7, 'Panther'], 18 | [6, 'Jaguar'], 19 | [5, 'Puma'] 20 | ]); 21 | 22 | const macosRelease = release => { 23 | release = Number((release || os.release()).split('.')[0]); 24 | return { 25 | name: nameMap.get(release), 26 | version: '10.' + (release - 4) 27 | }; 28 | }; 29 | 30 | module.exports = macosRelease; 31 | // TODO: remove this in the next major version 32 | module.exports.default = macosRelease; 33 | -------------------------------------------------------------------------------- /node_modules/nice-try/CHANGELOG.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](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). 6 | 7 | ## [1.0.5] - 2018-08-25 8 | 9 | ### Changed 10 | 11 | - Removed `prepublish` script from `package.json` 12 | 13 | ## [1.0.4] - 2017-08-08 14 | 15 | ### New 16 | 17 | - Added a changelog 18 | 19 | ### Changed 20 | 21 | - Ignore `yarn.lock` and `package-lock.json` files -------------------------------------------------------------------------------- /node_modules/nice-try/src/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | /** 4 | * Tries to execute a function and discards any error that occurs. 5 | * @param {Function} fn - Function that might or might not throw an error. 6 | * @returns {?*} Return-value of the function when no error occurred. 7 | */ 8 | module.exports = function(fn) { 9 | 10 | try { return fn() } catch (e) {} 11 | 12 | } -------------------------------------------------------------------------------- /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/npm-run-path/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const path = require('path'); 3 | const pathKey = require('path-key'); 4 | 5 | module.exports = opts => { 6 | opts = Object.assign({ 7 | cwd: process.cwd(), 8 | path: process.env[pathKey()] 9 | }, opts); 10 | 11 | let prev; 12 | let pth = path.resolve(opts.cwd); 13 | const ret = []; 14 | 15 | while (prev !== pth) { 16 | ret.push(path.join(pth, 'node_modules/.bin')); 17 | prev = pth; 18 | pth = path.resolve(pth, '..'); 19 | } 20 | 21 | // ensure the running `node` binary is used 22 | ret.push(path.dirname(process.execPath)); 23 | 24 | return ret.concat(opts.path).join(path.delimiter); 25 | }; 26 | 27 | module.exports.env = opts => { 28 | opts = Object.assign({ 29 | env: process.env 30 | }, opts); 31 | 32 | const env = Object.assign({}, opts.env); 33 | const path = pathKey({env}); 34 | 35 | opts.path = env[path]; 36 | env[path] = module.exports(opts); 37 | 38 | return env; 39 | }; 40 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | cache: 3 | directories: 4 | - ~/.npm 5 | 6 | # Trigger a push build on master and greenkeeper branches + PRs build on every branches 7 | # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) 8 | branches: 9 | only: 10 | - master 11 | - /^greenkeeper.*$/ 12 | 13 | branches: 14 | except: 15 | - /^v\d+\.\d+\.\d+$/ 16 | 17 | jobs: 18 | include: 19 | - stage: test 20 | node_js: 6 21 | - node_js: 8 22 | install: npm ci 23 | - node_js: 10 24 | install: npm ci 25 | - node_js: lts/* 26 | script: npm run coverage:upload 27 | - stage: release 28 | env: semantic-release 29 | node_js: lts/* 30 | install: npm ci 31 | script: npm run semantic-release 32 | 33 | stages: 34 | - test 35 | - name: release 36 | if: branch = master AND type IN (push) 37 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/index.js: -------------------------------------------------------------------------------- 1 | module.exports = paginationMethodsPlugin 2 | 3 | function paginationMethodsPlugin (octokit) { 4 | octokit.getFirstPage = require('./lib/get-first-page').bind(null, octokit) 5 | octokit.getLastPage = require('./lib/get-last-page').bind(null, octokit) 6 | octokit.getNextPage = require('./lib/get-next-page').bind(null, octokit) 7 | octokit.getPreviousPage = require('./lib/get-previous-page').bind(null, octokit) 8 | octokit.hasFirstPage = require('./lib/has-first-page') 9 | octokit.hasLastPage = require('./lib/has-last-page') 10 | octokit.hasNextPage = require('./lib/has-next-page') 11 | octokit.hasPreviousPage = require('./lib/has-previous-page') 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/deprecate.js: -------------------------------------------------------------------------------- 1 | module.exports = deprecate 2 | 3 | const loggedMessages = {} 4 | 5 | function deprecate (message) { 6 | if (loggedMessages[message]) { 7 | return 8 | } 9 | 10 | console.warn(`DEPRECATED (@octokit/rest): ${message}`) 11 | loggedMessages[message] = 1 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/get-first-page.js: -------------------------------------------------------------------------------- 1 | module.exports = getFirstPage 2 | 3 | const getPage = require('./get-page') 4 | 5 | function getFirstPage (octokit, link, headers) { 6 | return getPage(octokit, link, 'first', headers) 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/get-last-page.js: -------------------------------------------------------------------------------- 1 | module.exports = getLastPage 2 | 3 | const getPage = require('./get-page') 4 | 5 | function getLastPage (octokit, link, headers) { 6 | return getPage(octokit, link, 'last', headers) 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/get-next-page.js: -------------------------------------------------------------------------------- 1 | module.exports = getNextPage 2 | 3 | const getPage = require('./get-page') 4 | 5 | function getNextPage (octokit, link, headers) { 6 | return getPage(octokit, link, 'next', headers) 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/get-page-links.js: -------------------------------------------------------------------------------- 1 | module.exports = getPageLinks 2 | 3 | function getPageLinks (link) { 4 | link = link.link || link.headers.link || '' 5 | 6 | const links = {} 7 | 8 | // link format: 9 | // '; rel="next", ; rel="last"' 10 | link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => { 11 | links[type] = uri 12 | }) 13 | 14 | return links 15 | } 16 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/get-previous-page.js: -------------------------------------------------------------------------------- 1 | module.exports = getPreviousPage 2 | 3 | const getPage = require('./get-page') 4 | 5 | function getPreviousPage (octokit, link, headers) { 6 | return getPage(octokit, link, 'prev', headers) 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/has-first-page.js: -------------------------------------------------------------------------------- 1 | module.exports = hasFirstPage 2 | 3 | const deprecate = require('./deprecate') 4 | const getPageLinks = require('./get-page-links') 5 | 6 | function hasFirstPage (link) { 7 | deprecate(`octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) 8 | return getPageLinks(link).first 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/has-last-page.js: -------------------------------------------------------------------------------- 1 | module.exports = hasLastPage 2 | 3 | const deprecate = require('./deprecate') 4 | const getPageLinks = require('./get-page-links') 5 | 6 | function hasLastPage (link) { 7 | deprecate(`octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) 8 | return getPageLinks(link).last 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/has-next-page.js: -------------------------------------------------------------------------------- 1 | module.exports = hasNextPage 2 | 3 | const deprecate = require('./deprecate') 4 | const getPageLinks = require('./get-page-links') 5 | 6 | function hasNextPage (link) { 7 | deprecate(`octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) 8 | return getPageLinks(link).next 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/has-previous-page.js: -------------------------------------------------------------------------------- 1 | module.exports = hasPreviousPage 2 | 3 | const deprecate = require('./deprecate') 4 | const getPageLinks = require('./get-page-links') 5 | 6 | function hasPreviousPage (link) { 7 | deprecate(`octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`) 8 | return getPageLinks(link).prev 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/octokit-pagination-methods/lib/http-error.js: -------------------------------------------------------------------------------- 1 | module.exports = class HttpError extends Error { 2 | constructor (message, code, headers) { 3 | super(message) 4 | 5 | // Maintains proper stack trace (only available on V8) 6 | /* istanbul ignore next */ 7 | if (Error.captureStackTrace) { 8 | Error.captureStackTrace(this, this.constructor) 9 | } 10 | 11 | this.name = 'HttpError' 12 | this.code = code 13 | this.headers = headers 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /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/os-name/index.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | 3 | /** 4 | Get the name of the current operating system. 5 | 6 | By default, the name of the current operating system is returned. 7 | 8 | @param platform - Custom platform name. 9 | @param release - Custom release name. 10 | 11 | @example 12 | ``` 13 | import * as os fron 'os'; 14 | import osName = require('os-name'); 15 | 16 | // On a macOS Sierra system 17 | 18 | osName(); 19 | //=> 'macOS Sierra' 20 | 21 | osName(os.platform(), os.release()); 22 | //=> 'macOS Sierra' 23 | 24 | osName('darwin', '14.0.0'); 25 | //=> 'OS X Yosemite' 26 | 27 | osName('linux', '3.13.0-24-generic'); 28 | //=> 'Linux 3.13' 29 | 30 | osName('win32', '6.3.9600'); 31 | //=> 'Windows 8.1' 32 | ``` 33 | */ 34 | declare function osName(): string; 35 | declare function osName(platform: NodeJS.Platform, release: string): string; 36 | 37 | export = osName; 38 | -------------------------------------------------------------------------------- /node_modules/p-finally/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = (promise, onFinally) => { 3 | onFinally = onFinally || (() => {}); 4 | 5 | return promise.then( 6 | val => new Promise(resolve => { 7 | resolve(onFinally()); 8 | }).then(() => val), 9 | err => new Promise(resolve => { 10 | resolve(onFinally()); 11 | }).then(() => { 12 | throw err; 13 | }) 14 | ); 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/p-try/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const pTry = (fn, ...arguments_) => new Promise(resolve => { 4 | resolve(fn(...arguments_)); 5 | }); 6 | 7 | module.exports = pTry; 8 | // TODO: remove this in the next major version 9 | module.exports.default = pTry; 10 | -------------------------------------------------------------------------------- /node_modules/path-exists/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const fs = require('fs'); 3 | 4 | module.exports = fp => new Promise(resolve => { 5 | fs.access(fp, err => { 6 | resolve(!err); 7 | }); 8 | }); 9 | 10 | module.exports.sync = fp => { 11 | try { 12 | fs.accessSync(fp); 13 | return true; 14 | } catch (err) { 15 | return false; 16 | } 17 | }; 18 | -------------------------------------------------------------------------------- /node_modules/path-key/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = opts => { 3 | opts = opts || {}; 4 | 5 | const env = opts.env || process.env; 6 | const platform = opts.platform || process.platform; 7 | 8 | if (platform !== 'win32') { 9 | return 'PATH'; 10 | } 11 | 12 | return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path'; 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/pump/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | script: "npm test" 6 | -------------------------------------------------------------------------------- /node_modules/qs/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 4 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | max_line_length = 160 11 | 12 | [test/*] 13 | max_line_length = off 14 | 15 | [LICENSE.md] 16 | indent_size = off 17 | 18 | [*.md] 19 | max_line_length = off 20 | 21 | [*.json] 22 | max_line_length = off 23 | 24 | [Makefile] 25 | max_line_length = off 26 | 27 | [CHANGELOG.md] 28 | indent_style = space 29 | indent_size = 2 30 | 31 | [LICENSE] 32 | indent_size = 2 33 | max_line_length = off 34 | -------------------------------------------------------------------------------- /node_modules/qs/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /node_modules/qs/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "complexity": 0, 8 | "consistent-return": 1, 9 | "func-name-matching": 0, 10 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }], 11 | "indent": [2, 4], 12 | "max-lines-per-function": [2, { "max": 150 }], 13 | "max-params": [2, 14], 14 | "max-statements": [2, 52], 15 | "multiline-comment-style": 0, 16 | "no-continue": 1, 17 | "no-magic-numbers": 0, 18 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], 19 | "operator-linebreak": [2, "before"], 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /node_modules/qs/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [ljharb] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/qs 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with a single custom sponsorship URL 13 | -------------------------------------------------------------------------------- /node_modules/qs/lib/formats.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var replace = String.prototype.replace; 4 | var percentTwenties = /%20/g; 5 | 6 | var util = require('./utils'); 7 | 8 | var Format = { 9 | RFC1738: 'RFC1738', 10 | RFC3986: 'RFC3986' 11 | }; 12 | 13 | module.exports = util.assign( 14 | { 15 | 'default': Format.RFC3986, 16 | formatters: { 17 | RFC1738: function (value) { 18 | return replace.call(value, percentTwenties, '+'); 19 | }, 20 | RFC3986: function (value) { 21 | return String(value); 22 | } 23 | } 24 | }, 25 | Format 26 | ); 27 | -------------------------------------------------------------------------------- /node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var stringify = require('./stringify'); 4 | var parse = require('./parse'); 5 | var formats = require('./formats'); 6 | 7 | module.exports = { 8 | formats: formats, 9 | parse: parse, 10 | stringify: stringify 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/qs/test/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "array-bracket-newline": 0, 4 | "array-element-newline": 0, 5 | "consistent-return": 2, 6 | "function-paren-newline": 0, 7 | "max-lines": 0, 8 | "max-lines-per-function": 0, 9 | "max-nested-callbacks": [2, 3], 10 | "max-statements": 0, 11 | "no-buffer-constructor": 0, 12 | "no-extend-native": 0, 13 | "no-magic-numbers": 0, 14 | "no-throw-literal": 0, 15 | "object-curly-newline": 0, 16 | "sort-keys": 0, 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/qs/test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('./parse'); 4 | 5 | require('./stringify'); 6 | 7 | require('./utils'); 8 | -------------------------------------------------------------------------------- /node_modules/require-directory/.npmignore: -------------------------------------------------------------------------------- 1 | test/** 2 | -------------------------------------------------------------------------------- /node_modules/require-directory/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.10 4 | -------------------------------------------------------------------------------- /node_modules/require-main-filename/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. 4 | 5 | 6 | # [2.0.0](https://github.com/yargs/require-main-filename/compare/v1.0.2...v2.0.0) (2019-01-28) 7 | 8 | 9 | ### Chores 10 | 11 | * drop support for Node 0.10 ([#11](https://github.com/yargs/require-main-filename/issues/11)) ([87f4e13](https://github.com/yargs/require-main-filename/commit/87f4e13)) 12 | 13 | 14 | ### BREAKING CHANGES 15 | 16 | * drop support for Node 0.10/0.12 17 | 18 | 19 | 20 | 21 | ## [1.0.2](https://github.com/yargs/require-main-filename/compare/v1.0.1...v1.0.2) (2017-06-16) 22 | 23 | 24 | ### Bug Fixes 25 | 26 | * add files to package.json ([#4](https://github.com/yargs/require-main-filename/issues/4)) ([fa29988](https://github.com/yargs/require-main-filename/commit/fa29988)) 27 | -------------------------------------------------------------------------------- /node_modules/require-main-filename/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016, Contributors 2 | 3 | Permission to use, copy, modify, and/or distribute this software 4 | for any purpose with or without fee is hereby granted, provided 5 | that the above copyright notice and this permission notice 6 | appear in all copies. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 10 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE 11 | LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 12 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 13 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 14 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | -------------------------------------------------------------------------------- /node_modules/require-main-filename/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (_require) { 2 | _require = _require || require 3 | var main = _require.main 4 | if (main && isIISNode(main)) return handleIISNode(main) 5 | else return main ? main.filename : process.cwd() 6 | } 7 | 8 | function isIISNode (main) { 9 | return /\\iisnode\\/.test(main.filename) 10 | } 11 | 12 | function handleIISNode (main) { 13 | if (!main.children.length) { 14 | return main.filename 15 | } else { 16 | return main.children[0].filename 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /node_modules/semver/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # changes log 2 | 3 | ## 5.7 4 | 5 | * Add `minVersion` method 6 | 7 | ## 5.6 8 | 9 | * Move boolean `loose` param to an options object, with 10 | backwards-compatibility protection. 11 | * Add ability to opt out of special prerelease version handling with 12 | the `includePrerelease` option flag. 13 | 14 | ## 5.5 15 | 16 | * Add version coercion capabilities 17 | 18 | ## 5.4 19 | 20 | * Add intersection checking 21 | 22 | ## 5.3 23 | 24 | * Add `minSatisfying` method 25 | 26 | ## 5.2 27 | 28 | * Add `prerelease(v)` that returns prerelease components 29 | 30 | ## 5.1 31 | 32 | * Add Backus-Naur for ranges 33 | * Remove excessively cute inspection methods 34 | 35 | ## 5.0 36 | 37 | * Remove AMD/Browserified build artifacts 38 | * Fix ltr and gtr when using the `*` range 39 | * Fix for range `*` with a prerelease identifier 40 | -------------------------------------------------------------------------------- /node_modules/semver/LICENSE: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) Isaac Z. Schlueter and Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /node_modules/semver/range.bnf: -------------------------------------------------------------------------------- 1 | range-set ::= range ( logical-or range ) * 2 | logical-or ::= ( ' ' ) * '||' ( ' ' ) * 3 | range ::= hyphen | simple ( ' ' simple ) * | '' 4 | hyphen ::= partial ' - ' partial 5 | simple ::= primitive | partial | tilde | caret 6 | primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial 7 | partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )? 8 | xr ::= 'x' | 'X' | '*' | nr 9 | nr ::= '0' | [1-9] ( [0-9] ) * 10 | tilde ::= '~' partial 11 | caret ::= '^' partial 12 | qualifier ::= ( '-' pre )? ( '+' build )? 13 | pre ::= parts 14 | build ::= parts 15 | parts ::= part ( '.' part ) * 16 | part ::= nr | [-0-9A-Za-z]+ 17 | -------------------------------------------------------------------------------- /node_modules/set-blocking/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. 4 | 5 | 6 | # [2.0.0](https://github.com/yargs/set-blocking/compare/v1.0.0...v2.0.0) (2016-05-17) 7 | 8 | 9 | ### Features 10 | 11 | * add an isTTY check ([#3](https://github.com/yargs/set-blocking/issues/3)) ([66ce277](https://github.com/yargs/set-blocking/commit/66ce277)) 12 | 13 | 14 | ### BREAKING CHANGES 15 | 16 | * stdio/stderr will not be set to blocking if isTTY === false 17 | 18 | 19 | 20 | 21 | # 1.0.0 (2016-05-14) 22 | 23 | 24 | ### Features 25 | 26 | * implemented shim for stream._handle.setBlocking ([6bde0c0](https://github.com/yargs/set-blocking/commit/6bde0c0)) 27 | -------------------------------------------------------------------------------- /node_modules/set-blocking/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016, Contributors 2 | 3 | Permission to use, copy, modify, and/or distribute this software 4 | for any purpose with or without fee is hereby granted, provided 5 | that the above copyright notice and this permission notice 6 | appear in all copies. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 10 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE 11 | LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 12 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 13 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 14 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | -------------------------------------------------------------------------------- /node_modules/set-blocking/index.js: -------------------------------------------------------------------------------- 1 | module.exports = function (blocking) { 2 | [process.stdout, process.stderr].forEach(function (stream) { 3 | if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === 'function') { 4 | stream._handle.setBlocking(blocking) 5 | } 6 | }) 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/shebang-command/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var shebangRegex = require('shebang-regex'); 3 | 4 | module.exports = function (str) { 5 | var match = str.match(shebangRegex); 6 | 7 | if (!match) { 8 | return null; 9 | } 10 | 11 | var arr = match[0].replace(/#! ?/, '').split(' '); 12 | var bin = arr[0].split('/').pop(); 13 | var arg = arr[1]; 14 | 15 | return (bin === 'env' ? 16 | arg : 17 | bin + (arg ? ' ' + arg : '') 18 | ); 19 | }; 20 | -------------------------------------------------------------------------------- /node_modules/shebang-command/readme.md: -------------------------------------------------------------------------------- 1 | # shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command) 2 | 3 | > Get the command from a shebang 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save shebang-command 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | const shebangCommand = require('shebang-command'); 17 | 18 | shebangCommand('#!/usr/bin/env node'); 19 | //=> 'node' 20 | 21 | shebangCommand('#!/bin/bash'); 22 | //=> 'bash' 23 | ``` 24 | 25 | 26 | ## API 27 | 28 | ### shebangCommand(string) 29 | 30 | #### string 31 | 32 | Type: `string` 33 | 34 | String containing a shebang. 35 | 36 | 37 | ## License 38 | 39 | MIT © [Kevin Martensson](http://github.com/kevva) 40 | -------------------------------------------------------------------------------- /node_modules/shebang-regex/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = /^#!.*/; 3 | -------------------------------------------------------------------------------- /node_modules/shebang-regex/readme.md: -------------------------------------------------------------------------------- 1 | # shebang-regex [![Build Status](https://travis-ci.org/sindresorhus/shebang-regex.svg?branch=master)](https://travis-ci.org/sindresorhus/shebang-regex) 2 | 3 | > Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save shebang-regex 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | var shebangRegex = require('shebang-regex'); 17 | var str = '#!/usr/bin/env node\nconsole.log("unicorns");'; 18 | 19 | shebangRegex.test(str); 20 | //=> true 21 | 22 | shebangRegex.exec(str)[0]; 23 | //=> '#!/usr/bin/env node' 24 | ``` 25 | 26 | 27 | ## License 28 | 29 | MIT © [Sindre Sorhus](http://sindresorhus.com) 30 | -------------------------------------------------------------------------------- /node_modules/showdown/bin/showdown.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../src/cli/cli'); 3 | -------------------------------------------------------------------------------- /node_modules/showdown/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "showdown", 3 | "description": "A Markdown to HTML converter written in Javascript", 4 | "homepage": "https://github.com/showdownjs/showdown", 5 | "authors": [ 6 | "Estevão Santos (https://github.com/tivie)", 7 | "Pascal Deschênes (https://github.com/pdeschen)" 8 | ], 9 | "main": ["dist/showdown.js"], 10 | "ignore": [ 11 | ".editorconfig", 12 | ".gitattributes", 13 | ".gitignore", 14 | ".jscs.json", 15 | ".jshintignore", 16 | ".jshintrc", 17 | ".travis.yml", 18 | "Gruntfile.js", 19 | "package.json", 20 | "test/*" 21 | ], 22 | "repository": { 23 | "type": "git", 24 | "url": "https://github.com/showdownjs/showdown.git" 25 | }, 26 | "keywords": [ 27 | "markdown", 28 | "md", 29 | "mdown" 30 | ], 31 | "license": "https://github.com/showdownjs/showdown/blob/master/license.txt" 32 | } 33 | -------------------------------------------------------------------------------- /node_modules/showdown/src/cli/messenger.js: -------------------------------------------------------------------------------- 1 | function Messenger (writeMode, supress, mute) { 2 | 'use strict'; 3 | writeMode = writeMode || 'stderr'; 4 | supress = (!!supress || !!mute); 5 | mute = !!mute; 6 | this._print = (writeMode === 'stdout') ? console.log : console.error; 7 | 8 | this.errorExit = function (e) { 9 | if (!mute) { 10 | console.error('ERROR: ' + e.message); 11 | console.error('Run \'showdown -h\' for help'); 12 | } 13 | process.exit(1); 14 | }; 15 | 16 | this.okExit = function () { 17 | if (!mute) { 18 | this._print('\n'); 19 | this._print('DONE!'); 20 | } 21 | process.exit(0); 22 | }; 23 | 24 | this.printMsg = function (msg) { 25 | if (supress || mute || !msg) { 26 | return; 27 | } 28 | this._print(msg); 29 | }; 30 | 31 | this.printError = function (msg) { 32 | if (mute) { 33 | return; 34 | } 35 | console.error(msg); 36 | }; 37 | 38 | } 39 | 40 | module.exports = Messenger; 41 | -------------------------------------------------------------------------------- /node_modules/showdown/src/loader.js: -------------------------------------------------------------------------------- 1 | var root = this; 2 | 3 | // AMD Loader 4 | if (typeof define === 'function' && define.amd) { 5 | define(function () { 6 | 'use strict'; 7 | return showdown; 8 | }); 9 | 10 | // CommonJS/nodeJS Loader 11 | } else if (typeof module !== 'undefined' && module.exports) { 12 | module.exports = showdown; 13 | 14 | // Regular Browser loader 15 | } else { 16 | root.showdown = showdown; 17 | } 18 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/detab.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Convert all tabs to spaces 3 | */ 4 | showdown.subParser('detab', function (text, options, globals) { 5 | 'use strict'; 6 | text = globals.converter._dispatch('detab.before', text, options, globals); 7 | 8 | // expand first n-1 tabs 9 | text = text.replace(/\t(?=\t)/g, ' '); // g_tab_width 10 | 11 | // replace the nth with two sentinels 12 | text = text.replace(/\t/g, '¨A¨B'); 13 | 14 | // use the sentinel to anchor our regex so it doesn't explode 15 | text = text.replace(/¨B(.+?)¨A/g, function (wholeMatch, m1) { 16 | var leadingText = m1, 17 | numSpaces = 4 - leadingText.length % 4; // g_tab_width 18 | 19 | // there *must* be a better way to do this: 20 | for (var i = 0; i < numSpaces; i++) { 21 | leadingText += ' '; 22 | } 23 | 24 | return leadingText; 25 | }); 26 | 27 | // clean up sentinels 28 | text = text.replace(/¨A/g, ' '); // g_tab_width 29 | text = text.replace(/¨B/g, ''); 30 | 31 | text = globals.converter._dispatch('detab.after', text, options, globals); 32 | return text; 33 | }); 34 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/ellipsis.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('ellipsis', function (text, options, globals) { 2 | 'use strict'; 3 | 4 | text = globals.converter._dispatch('ellipsis.before', text, options, globals); 5 | 6 | text = text.replace(/\.\.\./g, '…'); 7 | 8 | text = globals.converter._dispatch('ellipsis.after', text, options, globals); 9 | 10 | return text; 11 | }); 12 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/emoji.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Turn emoji codes into emojis 3 | * 4 | * List of supported emojis: https://github.com/showdownjs/showdown/wiki/Emojis 5 | */ 6 | showdown.subParser('emoji', function (text, options, globals) { 7 | 'use strict'; 8 | 9 | if (!options.emoji) { 10 | return text; 11 | } 12 | 13 | text = globals.converter._dispatch('emoji.before', text, options, globals); 14 | 15 | var emojiRgx = /:([\S]+?):/g; 16 | 17 | text = text.replace(emojiRgx, function (wm, emojiCode) { 18 | if (showdown.helper.emojis.hasOwnProperty(emojiCode)) { 19 | return showdown.helper.emojis[emojiCode]; 20 | } 21 | return wm; 22 | }); 23 | 24 | text = globals.converter._dispatch('emoji.after', text, options, globals); 25 | 26 | return text; 27 | }); 28 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/encodeAmpsAndAngles.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Smart processing for ampersands and angle brackets that need to be encoded. 3 | */ 4 | showdown.subParser('encodeAmpsAndAngles', function (text, options, globals) { 5 | 'use strict'; 6 | text = globals.converter._dispatch('encodeAmpsAndAngles.before', text, options, globals); 7 | 8 | // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin: 9 | // http://bumppo.net/projects/amputator/ 10 | text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g, '&'); 11 | 12 | // Encode naked <'s 13 | text = text.replace(/<(?![a-z\/?$!])/gi, '<'); 14 | 15 | // Encode < 16 | text = text.replace(/ 19 | text = text.replace(/>/g, '>'); 20 | 21 | text = globals.converter._dispatch('encodeAmpsAndAngles.after', text, options, globals); 22 | return text; 23 | }); 24 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/encodeBackslashEscapes.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Returns the string, with after processing the following backslash escape sequences. 3 | * 4 | * attacklab: The polite way to do this is with the new escapeCharacters() function: 5 | * 6 | * text = escapeCharacters(text,"\\",true); 7 | * text = escapeCharacters(text,"`*_{}[]()>#+-.!",true); 8 | * 9 | * ...but we're sidestepping its use of the (slow) RegExp constructor 10 | * as an optimization for Firefox. This function gets called a LOT. 11 | */ 12 | showdown.subParser('encodeBackslashEscapes', function (text, options, globals) { 13 | 'use strict'; 14 | text = globals.converter._dispatch('encodeBackslashEscapes.before', text, options, globals); 15 | 16 | text = text.replace(/\\(\\)/g, showdown.helper.escapeCharactersCallback); 17 | text = text.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g, showdown.helper.escapeCharactersCallback); 18 | 19 | text = globals.converter._dispatch('encodeBackslashEscapes.after', text, options, globals); 20 | return text; 21 | }); 22 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/encodeCode.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Encode/escape certain characters inside Markdown code runs. 3 | * The point is that in code, these characters are literals, 4 | * and lose their special Markdown meanings. 5 | */ 6 | showdown.subParser('encodeCode', function (text, options, globals) { 7 | 'use strict'; 8 | 9 | text = globals.converter._dispatch('encodeCode.before', text, options, globals); 10 | 11 | // Encode all ampersands; HTML entities are not 12 | // entities within a Markdown code span. 13 | text = text 14 | .replace(/&/g, '&') 15 | // Do the angle bracket song and dance: 16 | .replace(//g, '>') 18 | // Now, escape characters that are magic in Markdown: 19 | .replace(/([*_{}\[\]\\=~-])/g, showdown.helper.escapeCharactersCallback); 20 | 21 | text = globals.converter._dispatch('encodeCode.after', text, options, globals); 22 | return text; 23 | }); 24 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/hashBlock.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('hashBlock', function (text, options, globals) { 2 | 'use strict'; 3 | text = globals.converter._dispatch('hashBlock.before', text, options, globals); 4 | text = text.replace(/(^\n+|\n+$)/g, ''); 5 | text = '\n\n¨K' + (globals.gHtmlBlocks.push(text) - 1) + 'K\n\n'; 6 | text = globals.converter._dispatch('hashBlock.after', text, options, globals); 7 | return text; 8 | }); 9 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/hashCodeTags.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Hash and escape elements that should not be parsed as markdown 3 | */ 4 | showdown.subParser('hashCodeTags', function (text, options, globals) { 5 | 'use strict'; 6 | text = globals.converter._dispatch('hashCodeTags.before', text, options, globals); 7 | 8 | var repFunc = function (wholeMatch, match, left, right) { 9 | var codeblock = left + showdown.subParser('encodeCode')(match, options, globals) + right; 10 | return '¨C' + (globals.gHtmlSpans.push(codeblock) - 1) + 'C'; 11 | }; 12 | 13 | // Hash naked 14 | text = showdown.helper.replaceRecursiveRegExp(text, repFunc, ']*>', '', 'gim'); 15 | 16 | text = globals.converter._dispatch('hashCodeTags.after', text, options, globals); 17 | return text; 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/hashElement.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('hashElement', function (text, options, globals) { 2 | 'use strict'; 3 | 4 | return function (wholeMatch, m1) { 5 | var blockText = m1; 6 | 7 | // Undo double lines 8 | blockText = blockText.replace(/\n\n/g, '\n'); 9 | blockText = blockText.replace(/^\n/, ''); 10 | 11 | // strip trailing blank lines 12 | blockText = blockText.replace(/\n+$/g, ''); 13 | 14 | // Replace the element text with a marker ("¨KxK" where x is its key) 15 | blockText = '\n\n¨K' + (globals.gHtmlBlocks.push(blockText) - 1) + 'K\n\n'; 16 | 17 | return blockText; 18 | }; 19 | }); 20 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/hashPreCodeTags.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Hash and escape
 elements that should not be parsed as markdown
 3 |  */
 4 | showdown.subParser('hashPreCodeTags', function (text, options, globals) {
 5 |   'use strict';
 6 |   text = globals.converter._dispatch('hashPreCodeTags.before', text, options, globals);
 7 | 
 8 |   var repFunc = function (wholeMatch, match, left, right) {
 9 |     // encode html entities
10 |     var codeblock = left + showdown.subParser('encodeCode')(match, options, globals) + right;
11 |     return '\n\n¨G' + (globals.ghCodeBlocks.push({text: wholeMatch, codeblock: codeblock}) - 1) + 'G\n\n';
12 |   };
13 | 
14 |   // Hash 

15 |   text = showdown.helper.replaceRecursiveRegExp(text, repFunc, '^ {0,3}]*>\\s*]*>', '^ {0,3}\\s*
', 'gim'); 16 | 17 | text = globals.converter._dispatch('hashPreCodeTags.after', text, options, globals); 18 | return text; 19 | }); 20 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/horizontalRule.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Turn Markdown link shortcuts into XHTML tags. 3 | */ 4 | showdown.subParser('horizontalRule', function (text, options, globals) { 5 | 'use strict'; 6 | text = globals.converter._dispatch('horizontalRule.before', text, options, globals); 7 | 8 | var key = showdown.subParser('hashBlock')('
', options, globals); 9 | text = text.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm, key); 10 | text = text.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm, key); 11 | text = text.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm, key); 12 | 13 | text = globals.converter._dispatch('horizontalRule.after', text, options, globals); 14 | return text; 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/blockquote.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.blockquote', function (node, globals) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (node.hasChildNodes()) { 6 | var children = node.childNodes, 7 | childrenLength = children.length; 8 | 9 | for (var i = 0; i < childrenLength; ++i) { 10 | var innerTxt = showdown.subParser('makeMarkdown.node')(children[i], globals); 11 | 12 | if (innerTxt === '') { 13 | continue; 14 | } 15 | txt += innerTxt; 16 | } 17 | } 18 | // cleanup 19 | txt = txt.trim(); 20 | txt = '> ' + txt.split('\n').join('\n> '); 21 | return txt; 22 | }); 23 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/codeBlock.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.codeBlock', function (node, globals) { 2 | 'use strict'; 3 | 4 | var lang = node.getAttribute('language'), 5 | num = node.getAttribute('precodenum'); 6 | return '```' + lang + '\n' + globals.preList[num] + '\n```'; 7 | }); 8 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/codeSpan.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.codeSpan', function (node) { 2 | 'use strict'; 3 | 4 | return '`' + node.innerHTML + '`'; 5 | }); 6 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/emphasis.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.emphasis', function (node, globals) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (node.hasChildNodes()) { 6 | txt += '*'; 7 | var children = node.childNodes, 8 | childrenLength = children.length; 9 | for (var i = 0; i < childrenLength; ++i) { 10 | txt += showdown.subParser('makeMarkdown.node')(children[i], globals); 11 | } 12 | txt += '*'; 13 | } 14 | return txt; 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/header.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.header', function (node, globals, headerLevel) { 2 | 'use strict'; 3 | 4 | var headerMark = new Array(headerLevel + 1).join('#'), 5 | txt = ''; 6 | 7 | if (node.hasChildNodes()) { 8 | txt = headerMark + ' '; 9 | var children = node.childNodes, 10 | childrenLength = children.length; 11 | 12 | for (var i = 0; i < childrenLength; ++i) { 13 | txt += showdown.subParser('makeMarkdown.node')(children[i], globals); 14 | } 15 | } 16 | return txt; 17 | }); 18 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/hr.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.hr', function () { 2 | 'use strict'; 3 | 4 | return '---'; 5 | }); 6 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/image.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.image', function (node) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (node.hasAttribute('src')) { 6 | txt += '![' + node.getAttribute('alt') + ']('; 7 | txt += '<' + node.getAttribute('src') + '>'; 8 | if (node.hasAttribute('width') && node.hasAttribute('height')) { 9 | txt += ' =' + node.getAttribute('width') + 'x' + node.getAttribute('height'); 10 | } 11 | 12 | if (node.hasAttribute('title')) { 13 | txt += ' "' + node.getAttribute('title') + '"'; 14 | } 15 | txt += ')'; 16 | } 17 | return txt; 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/links.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.links', function (node, globals) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (node.hasChildNodes() && node.hasAttribute('href')) { 6 | var children = node.childNodes, 7 | childrenLength = children.length; 8 | txt = '['; 9 | for (var i = 0; i < childrenLength; ++i) { 10 | txt += showdown.subParser('makeMarkdown.node')(children[i], globals); 11 | } 12 | txt += ']('; 13 | txt += '<' + node.getAttribute('href') + '>'; 14 | if (node.hasAttribute('title')) { 15 | txt += ' "' + node.getAttribute('title') + '"'; 16 | } 17 | txt += ')'; 18 | } 19 | return txt; 20 | }); 21 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/list.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.list', function (node, globals, type) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (!node.hasChildNodes()) { 6 | return ''; 7 | } 8 | var listItems = node.childNodes, 9 | listItemsLenght = listItems.length, 10 | listNum = node.getAttribute('start') || 1; 11 | 12 | for (var i = 0; i < listItemsLenght; ++i) { 13 | if (typeof listItems[i].tagName === 'undefined' || listItems[i].tagName.toLowerCase() !== 'li') { 14 | continue; 15 | } 16 | 17 | // define the bullet to use in list 18 | var bullet = ''; 19 | if (type === 'ol') { 20 | bullet = listNum.toString() + '. '; 21 | } else { 22 | bullet = '- '; 23 | } 24 | 25 | // parse list item 26 | txt += bullet + showdown.subParser('makeMarkdown.listItem')(listItems[i], globals); 27 | ++listNum; 28 | } 29 | 30 | // add comment at the end to prevent consecutive lists to be parsed as one 31 | txt += '\n\n'; 32 | return txt.trim(); 33 | }); 34 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/listItem.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.listItem', function (node, globals) { 2 | 'use strict'; 3 | 4 | var listItemTxt = ''; 5 | 6 | var children = node.childNodes, 7 | childrenLenght = children.length; 8 | 9 | for (var i = 0; i < childrenLenght; ++i) { 10 | listItemTxt += showdown.subParser('makeMarkdown.node')(children[i], globals); 11 | } 12 | // if it's only one liner, we need to add a newline at the end 13 | if (!/\n$/.test(listItemTxt)) { 14 | listItemTxt += '\n'; 15 | } else { 16 | // it's multiparagraph, so we need to indent 17 | listItemTxt = listItemTxt 18 | .split('\n') 19 | .join('\n ') 20 | .replace(/^ {4}$/gm, '') 21 | .replace(/\n\n+/g, '\n\n'); 22 | } 23 | 24 | return listItemTxt; 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/paragraph.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.paragraph', function (node, globals) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (node.hasChildNodes()) { 6 | var children = node.childNodes, 7 | childrenLength = children.length; 8 | for (var i = 0; i < childrenLength; ++i) { 9 | txt += showdown.subParser('makeMarkdown.node')(children[i], globals); 10 | } 11 | } 12 | 13 | // some text normalization 14 | txt = txt.trim(); 15 | 16 | return txt; 17 | }); 18 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/pre.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.pre', function (node, globals) { 2 | 'use strict'; 3 | 4 | var num = node.getAttribute('prenum'); 5 | return '
' + globals.preList[num] + '
'; 6 | }); 7 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/strikethrough.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.strikethrough', function (node, globals) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (node.hasChildNodes()) { 6 | txt += '~~'; 7 | var children = node.childNodes, 8 | childrenLength = children.length; 9 | for (var i = 0; i < childrenLength; ++i) { 10 | txt += showdown.subParser('makeMarkdown.node')(children[i], globals); 11 | } 12 | txt += '~~'; 13 | } 14 | return txt; 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/strong.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.strong', function (node, globals) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (node.hasChildNodes()) { 6 | txt += '**'; 7 | var children = node.childNodes, 8 | childrenLength = children.length; 9 | for (var i = 0; i < childrenLength; ++i) { 10 | txt += showdown.subParser('makeMarkdown.node')(children[i], globals); 11 | } 12 | txt += '**'; 13 | } 14 | return txt; 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/makeMarkdown/tableCell.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('makeMarkdown.tableCell', function (node, globals) { 2 | 'use strict'; 3 | 4 | var txt = ''; 5 | if (!node.hasChildNodes()) { 6 | return ''; 7 | } 8 | var children = node.childNodes, 9 | childrenLength = children.length; 10 | 11 | for (var i = 0; i < childrenLength; ++i) { 12 | txt += showdown.subParser('makeMarkdown.node')(children[i], globals, true); 13 | } 14 | return txt.trim(); 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/outdent.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Remove one level of line-leading tabs or spaces 3 | */ 4 | showdown.subParser('outdent', function (text, options, globals) { 5 | 'use strict'; 6 | text = globals.converter._dispatch('outdent.before', text, options, globals); 7 | 8 | // attacklab: hack around Konqueror 3.5.4 bug: 9 | // "----------bug".replace(/^-/g,"") == "bug" 10 | text = text.replace(/^(\t|[ ]{1,4})/gm, '¨0'); // attacklab: g_tab_width 11 | 12 | // attacklab: clean up hack 13 | text = text.replace(/¨0/g, ''); 14 | 15 | text = globals.converter._dispatch('outdent.after', text, options, globals); 16 | return text; 17 | }); 18 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/runExtension.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Run extension 3 | */ 4 | showdown.subParser('runExtension', function (ext, text, options, globals) { 5 | 'use strict'; 6 | 7 | if (ext.filter) { 8 | text = ext.filter(text, globals.converter, options); 9 | 10 | } else if (ext.regex) { 11 | // TODO remove this when old extension loading mechanism is deprecated 12 | var re = ext.regex; 13 | if (!(re instanceof RegExp)) { 14 | re = new RegExp(re, 'g'); 15 | } 16 | text = text.replace(re, ext.replace); 17 | } 18 | 19 | return text; 20 | }); 21 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/strikethrough.js: -------------------------------------------------------------------------------- 1 | showdown.subParser('strikethrough', function (text, options, globals) { 2 | 'use strict'; 3 | 4 | function parseInside (txt) { 5 | if (options.simplifiedAutoLink) { 6 | txt = showdown.subParser('simplifiedAutoLinks')(txt, options, globals); 7 | } 8 | return '' + txt + ''; 9 | } 10 | 11 | if (options.strikethrough) { 12 | text = globals.converter._dispatch('strikethrough.before', text, options, globals); 13 | text = text.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g, function (wm, txt) { return parseInside(txt); }); 14 | text = globals.converter._dispatch('strikethrough.after', text, options, globals); 15 | } 16 | 17 | return text; 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/showdown/src/subParsers/unescapeSpecialChars.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Swap back in all the special characters we've hidden. 3 | */ 4 | showdown.subParser('unescapeSpecialChars', function (text, options, globals) { 5 | 'use strict'; 6 | text = globals.converter._dispatch('unescapeSpecialChars.before', text, options, globals); 7 | 8 | text = text.replace(/¨E(\d+)E/g, function (wholeMatch, m1) { 9 | var charCodeToReplace = parseInt(m1); 10 | return String.fromCharCode(charCodeToReplace); 11 | }); 12 | 13 | text = globals.converter._dispatch('unescapeSpecialChars.after', text, options, globals); 14 | return text; 15 | }); 16 | -------------------------------------------------------------------------------- /node_modules/signal-exit/LICENSE.txt: -------------------------------------------------------------------------------- 1 | The ISC License 2 | 3 | Copyright (c) 2015, Contributors 4 | 5 | Permission to use, copy, modify, and/or distribute this software 6 | for any purpose with or without fee is hereby granted, provided 7 | that the above copyright notice and this permission notice 8 | appear in all copies. 9 | 10 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 12 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE 13 | LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 14 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 15 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 16 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 | -------------------------------------------------------------------------------- /node_modules/string-width/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const stripAnsi = require('strip-ansi'); 3 | const isFullwidthCodePoint = require('is-fullwidth-code-point'); 4 | const emojiRegex = require('emoji-regex')(); 5 | 6 | module.exports = input => { 7 | input = input.replace(emojiRegex, ' '); 8 | 9 | if (typeof input !== 'string' || input.length === 0) { 10 | return 0; 11 | } 12 | 13 | input = stripAnsi(input); 14 | 15 | let width = 0; 16 | 17 | for (let i = 0; i < input.length; i++) { 18 | const code = input.codePointAt(i); 19 | 20 | // Ignore control characters 21 | if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) { 22 | continue; 23 | } 24 | 25 | // Ignore combining characters 26 | if (code >= 0x300 && code <= 0x36F) { 27 | continue; 28 | } 29 | 30 | // Surrogates 31 | if (code > 0xFFFF) { 32 | i++; 33 | } 34 | 35 | width += isFullwidthCodePoint(code) ? 2 : 1; 36 | } 37 | 38 | return width; 39 | }; 40 | -------------------------------------------------------------------------------- /node_modules/strip-ansi/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | Strip [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code) from a string. 3 | 4 | @example 5 | ``` 6 | import stripAnsi from 'strip-ansi'; 7 | 8 | stripAnsi('\u001B[4mUnicorn\u001B[0m'); 9 | //=> 'Unicorn' 10 | 11 | stripAnsi('\u001B]8;;https://github.com\u0007Click\u001B]8;;\u0007'); 12 | //=> 'Click' 13 | ``` 14 | */ 15 | export default function stripAnsi(string: string): string; 16 | -------------------------------------------------------------------------------- /node_modules/strip-ansi/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const ansiRegex = require('ansi-regex'); 3 | 4 | const stripAnsi = string => typeof string === 'string' ? string.replace(ansiRegex(), '') : string; 5 | 6 | module.exports = stripAnsi; 7 | module.exports.default = stripAnsi; 8 | -------------------------------------------------------------------------------- /node_modules/strip-eof/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function (x) { 3 | var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt(); 4 | var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt(); 5 | 6 | if (x[x.length - 1] === lf) { 7 | x = x.slice(0, x.length - 1); 8 | } 9 | 10 | if (x[x.length - 1] === cr) { 11 | x = x.slice(0, x.length - 1); 12 | } 13 | 14 | return x; 15 | }; 16 | -------------------------------------------------------------------------------- /node_modules/strip-eof/readme.md: -------------------------------------------------------------------------------- 1 | # strip-eof [![Build Status](https://travis-ci.org/sindresorhus/strip-eof.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-eof) 2 | 3 | > Strip the [End-Of-File](https://en.wikipedia.org/wiki/End-of-file) (EOF) character from a string/buffer 4 | 5 | 6 | ## Install 7 | 8 | ``` 9 | $ npm install --save strip-eof 10 | ``` 11 | 12 | 13 | ## Usage 14 | 15 | ```js 16 | const stripEof = require('strip-eof'); 17 | 18 | stripEof('foo\nbar\n\n'); 19 | //=> 'foo\nbar\n' 20 | 21 | stripEof(new Buffer('foo\nbar\n\n')).toString(); 22 | //=> 'foo\nbar\n' 23 | ``` 24 | 25 | 26 | ## License 27 | 28 | MIT © [Sindre Sorhus](http://sindresorhus.com) 29 | -------------------------------------------------------------------------------- /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/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/tunnel'); 2 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/Handlers.d.ts: -------------------------------------------------------------------------------- 1 | export { BasicCredentialHandler } from "./handlers/basiccreds"; 2 | export { BearerCredentialHandler } from "./handlers/bearertoken"; 3 | export { NtlmCredentialHandler } from "./handlers/ntlm"; 4 | export { PersonalAccessTokenCredentialHandler } from "./handlers/personalaccesstoken"; 5 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/Handlers.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | var basiccreds_1 = require("./handlers/basiccreds"); 4 | exports.BasicCredentialHandler = basiccreds_1.BasicCredentialHandler; 5 | var bearertoken_1 = require("./handlers/bearertoken"); 6 | exports.BearerCredentialHandler = bearertoken_1.BearerCredentialHandler; 7 | var ntlm_1 = require("./handlers/ntlm"); 8 | exports.NtlmCredentialHandler = ntlm_1.NtlmCredentialHandler; 9 | var personalaccesstoken_1 = require("./handlers/personalaccesstoken"); 10 | exports.PersonalAccessTokenCredentialHandler = personalaccesstoken_1.PersonalAccessTokenCredentialHandler; 11 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/Index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/Index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/Interfaces.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | ; 6 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/handlers/basiccreds.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 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/handlers/basiccreds.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | class BasicCredentialHandler { 6 | constructor(username, password) { 7 | this.username = username; 8 | this.password = password; 9 | } 10 | // currently implements pre-authorization 11 | // TODO: support preAuth = false where it hooks on 401 12 | prepareRequest(options) { 13 | options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; 14 | options.headers['X-TFS-FedAuthRedirect'] = 'Suppress'; 15 | } 16 | // This handler cannot handle 401 17 | canHandleAuthentication(response) { 18 | return false; 19 | } 20 | handleAuthentication(httpClient, requestInfo, objs) { 21 | return null; 22 | } 23 | } 24 | exports.BasicCredentialHandler = BasicCredentialHandler; 25 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/handlers/bearertoken.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('../Interfaces'); 2 | export declare class BearerCredentialHandler implements ifm.IRequestHandler { 3 | token: string; 4 | constructor(token: string); 5 | prepareRequest(options: any): void; 6 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 7 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/handlers/bearertoken.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | class BearerCredentialHandler { 6 | constructor(token) { 7 | this.token = token; 8 | } 9 | // currently implements pre-authorization 10 | // TODO: support preAuth = false where it hooks on 401 11 | prepareRequest(options) { 12 | options.headers['Authorization'] = `Bearer ${this.token}`; 13 | options.headers['X-TFS-FedAuthRedirect'] = 'Suppress'; 14 | } 15 | // This handler cannot handle 401 16 | canHandleAuthentication(response) { 17 | return false; 18 | } 19 | handleAuthentication(httpClient, requestInfo, objs) { 20 | return null; 21 | } 22 | } 23 | exports.BearerCredentialHandler = BearerCredentialHandler; 24 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/handlers/ntlm.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | import ifm = require('../Interfaces'); 3 | import http = require("http"); 4 | export declare class NtlmCredentialHandler implements ifm.IRequestHandler { 5 | private _ntlmOptions; 6 | constructor(username: string, password: string, workstation?: string, domain?: string); 7 | prepareRequest(options: http.RequestOptions): void; 8 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 9 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 10 | private handleAuthenticationPrivate; 11 | private sendType1Message; 12 | private sendType3Message; 13 | } 14 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/handlers/personalaccesstoken.d.ts: -------------------------------------------------------------------------------- 1 | import ifm = require('../Interfaces'); 2 | export declare class PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler { 3 | token: string; 4 | constructor(token: string); 5 | prepareRequest(options: any): void; 6 | canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; 7 | handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/handlers/personalaccesstoken.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | // Copyright (c) Microsoft. All rights reserved. 3 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. 4 | Object.defineProperty(exports, "__esModule", { value: true }); 5 | class PersonalAccessTokenCredentialHandler { 6 | constructor(token) { 7 | this.token = token; 8 | } 9 | // currently implements pre-authorization 10 | // TODO: support preAuth = false where it hooks on 401 11 | prepareRequest(options) { 12 | options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; 13 | options.headers['X-TFS-FedAuthRedirect'] = 'Suppress'; 14 | } 15 | // This handler cannot handle 401 16 | canHandleAuthentication(response) { 17 | return false; 18 | } 19 | handleAuthentication(httpClient, requestInfo, objs) { 20 | return null; 21 | } 22 | } 23 | exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; 24 | -------------------------------------------------------------------------------- /node_modules/typed-rest-client/opensource/Node-SMB/README.md: -------------------------------------------------------------------------------- 1 | ### Reference: 2 | The modules (common.js, ntlm.js and smbhash.js) were copied from a file of the same name at https://github.com/Node-SMB/ntlm. 3 | 4 | The modules has been used for the purpose of encoding and decoding the headers used during NTLM HTTP Authentication and as of this writing, it is a part of the typed-rest-client module produced by Microsoft. 5 | 6 | -------------------------------------------------------------------------------- /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://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) 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 _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } 6 | 7 | var osName = _interopDefault(require('os-name')); 8 | 9 | function getUserAgent() { 10 | try { 11 | return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; 12 | } catch (error) { 13 | if (/wmic os get Caption/.test(error.message)) { 14 | return "Windows "; 15 | } 16 | 17 | throw error; 18 | } 19 | } 20 | 21 | exports.getUserAgent = getUserAgent; 22 | //# sourceMappingURL=index.js.map 23 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-node/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/node.js"],"sourcesContent":["import osName from \"os-name\";\nexport function getUserAgent() {\n try {\n return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;\n }\n catch (error) {\n if (/wmic os get Caption/.test(error.message)) {\n return \"Windows \";\n }\n throw error;\n }\n}\n"],"names":["getUserAgent","process","version","substr","osName","arch","error","test","message"],"mappings":";;;;;;;;AACO,SAASA,YAAT,GAAwB;MACvB;WACQ,WAAUC,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIC,MAAM,EAAG,KAAIH,OAAO,CAACI,IAAK,GAA1E;GADJ,CAGA,OAAOC,KAAP,EAAc;QACN,sBAAsBC,IAAtB,CAA2BD,KAAK,CAACE,OAAjC,CAAJ,EAA+C;aACpC,gCAAP;;;UAEEF,KAAN;;;;;;"} -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-src/browser.js: -------------------------------------------------------------------------------- 1 | export function getUserAgent() { 2 | try { 3 | return navigator.userAgent; 4 | } 5 | catch (e) { 6 | return ""; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-src/index.js: -------------------------------------------------------------------------------- 1 | export { getUserAgent } from "./node"; 2 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-src/node.js: -------------------------------------------------------------------------------- 1 | import osName from "os-name"; 2 | export function getUserAgent() { 3 | try { 4 | return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; 5 | } 6 | catch (error) { 7 | if (/wmic os get Caption/.test(error.message)) { 8 | return "Windows "; 9 | } 10 | throw error; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-types/browser.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-types/index.d.ts: -------------------------------------------------------------------------------- 1 | export { getUserAgent } from "./node"; 2 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-types/node.d.ts: -------------------------------------------------------------------------------- 1 | export declare function getUserAgent(): string; 2 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-web/index.js: -------------------------------------------------------------------------------- 1 | function getUserAgent() { 2 | try { 3 | return navigator.userAgent; 4 | } 5 | catch (e) { 6 | return ""; 7 | } 8 | } 9 | 10 | export { getUserAgent }; 11 | //# sourceMappingURL=index.js.map 12 | -------------------------------------------------------------------------------- /node_modules/universal-user-agent/dist-web/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sources":["../dist-src/browser.js"],"sourcesContent":["export function getUserAgent() {\n try {\n return navigator.userAgent;\n }\n catch (e) {\n return \"\";\n }\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;IAC3B,IAAI;QACA,OAAO,SAAS,CAAC,SAAS,CAAC;KAC9B;IACD,OAAO,CAAC,EAAE;QACN,OAAO,uBAAuB,CAAC;KAClC;CACJ;;;;"} -------------------------------------------------------------------------------- /node_modules/which-module/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. 4 | 5 |
6 | # [2.0.0](https://github.com/nexdrew/which-module/compare/v1.0.0...v2.0.0) (2017-05-01) 7 | 8 | 9 | ### Features 10 | 11 | * remove Node < 4 from official testing/support ([#22](https://github.com/nexdrew/which-module/issues/22)) ([ee7aff4](https://github.com/nexdrew/which-module/commit/ee7aff4)) 12 | 13 | 14 | ### BREAKING CHANGES 15 | 16 | * Node 0.10 or 0.12 no longer supported, please update to Node 4+ or use which-module@1.0.0 17 | 18 | 19 | 20 | 21 | # 1.0.0 (2016-06-06) 22 | 23 | 24 | ### Features 25 | 26 | * initial code ([08074cd](https://github.com/nexdrew/which-module/commit/08074cd)) 27 | -------------------------------------------------------------------------------- /node_modules/which-module/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016, Contributors 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 LOSS 11 | OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 12 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 13 | THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /node_modules/which-module/index.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | 3 | module.exports = function whichModule (exported) { 4 | for (var i = 0, files = Object.keys(require.cache), mod; i < files.length; i++) { 5 | mod = require.cache[files[i]] 6 | if (mod.exports === exported) return mod 7 | } 8 | return null 9 | } 10 | -------------------------------------------------------------------------------- /node_modules/which/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/windows-release/index.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | Get the name of a Windows version from the release number: `5.1.2600` → `XP`. 3 | 4 | @param release - By default, the current OS is used, but you can supply a custom release number, which is the output of [`os.release()`](https://nodejs.org/api/os.html#os_os_release). 5 | 6 | Note: Most Windows Server versions cannot be detected based on the release number alone. There is runtime detection in place to work around this, but it will only be used if no argument is supplied, or the supplied argument matches `os.release()`. 7 | 8 | @example 9 | ``` 10 | import * as os from 'os'; 11 | import windowsRelease = require('windows-release'); 12 | 13 | // On a Windows XP system 14 | 15 | windowsRelease(); 16 | //=> 'XP' 17 | 18 | os.release(); 19 | //=> '5.1.2600' 20 | 21 | windowsRelease(os.release()); 22 | //=> 'XP' 23 | 24 | windowsRelease('4.9.3000'); 25 | //=> 'ME' 26 | ``` 27 | */ 28 | declare function windowsRelease(release?: string): string; 29 | 30 | export = windowsRelease; 31 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /node_modules/y18n/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Contributors 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 LOSS 11 | OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 12 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 13 | THIS SOFTWARE. 14 | -------------------------------------------------------------------------------- /node_modules/yargs-parser/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016, Contributors 2 | 3 | Permission to use, copy, modify, and/or distribute this software 4 | for any purpose with or without fee is hereby granted, provided 5 | that the above copyright notice and this permission notice 6 | appear in all copies. 7 | 8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 10 | OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE 11 | LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES 12 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 13 | WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 14 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 | -------------------------------------------------------------------------------- /node_modules/yargs-parser/lib/tokenize-arg-string.js: -------------------------------------------------------------------------------- 1 | // take an un-split argv string and tokenize it. 2 | module.exports = function (argString) { 3 | if (Array.isArray(argString)) { 4 | return argString.map(e => typeof e !== 'string' ? e + '' : e) 5 | } 6 | 7 | argString = argString.trim() 8 | 9 | var i = 0 10 | var prevC = null 11 | var c = null 12 | var opening = null 13 | var args = [] 14 | 15 | for (var ii = 0; ii < argString.length; ii++) { 16 | prevC = c 17 | c = argString.charAt(ii) 18 | 19 | // split on spaces unless we're in quotes. 20 | if (c === ' ' && !opening) { 21 | if (!(prevC === ' ')) { 22 | i++ 23 | } 24 | continue 25 | } 26 | 27 | // don't split the string if we're in matching 28 | // opening or closing single and double quotes. 29 | if (c === opening) { 30 | opening = null 31 | } else if ((c === "'" || c === '"') && !opening) { 32 | opening = c 33 | } 34 | 35 | if (!args[i]) args[i] = '' 36 | args[i] += c 37 | } 38 | 39 | return args 40 | } 41 | -------------------------------------------------------------------------------- /node_modules/yargs/lib/is-promise.js: -------------------------------------------------------------------------------- 1 | module.exports = function isPromise (maybePromise) { 2 | return !!maybePromise && !!maybePromise.then && (typeof maybePromise.then === 'function') 3 | } 4 | -------------------------------------------------------------------------------- /node_modules/yargs/lib/obj-filter.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = function objFilter (original, filter) { 3 | const obj = {} 4 | filter = filter || ((k, v) => true) 5 | Object.keys(original || {}).forEach((key) => { 6 | if (filter(key, original[key])) { 7 | obj[key] = original[key] 8 | } 9 | }) 10 | return obj 11 | } 12 | -------------------------------------------------------------------------------- /node_modules/yargs/lib/yerror.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | function YError (msg) { 3 | this.name = 'YError' 4 | this.message = msg || 'yargs error' 5 | Error.captureStackTrace(this, YError) 6 | } 7 | 8 | YError.prototype = Object.create(Error.prototype) 9 | YError.prototype.constructor = YError 10 | 11 | module.exports = YError 12 | -------------------------------------------------------------------------------- /node_modules/yargs/locales/pirate.json: -------------------------------------------------------------------------------- 1 | { 2 | "Commands:": "Choose yer command:", 3 | "Options:": "Options for me hearties!", 4 | "Examples:": "Ex. marks the spot:", 5 | "required": "requi-yar-ed", 6 | "Missing required argument: %s": { 7 | "one": "Ye be havin' to set the followin' argument land lubber: %s", 8 | "other": "Ye be havin' to set the followin' arguments land lubber: %s" 9 | }, 10 | "Show help": "Parlay this here code of conduct", 11 | "Show version number": "'Tis the version ye be askin' fer", 12 | "Arguments %s and %s are mutually exclusive" : "Yon scurvy dogs %s and %s be as bad as rum and a prudish wench" 13 | } 14 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "github-actions-issue-to-work-item", 3 | "version": "1.0.1", 4 | "description": "Create a Work Item on an Azure Board when a GitHub Issue is created or updated", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/danhellem/github-actions-issue-to-work-item.git" 12 | }, 13 | "keywords": [], 14 | "author": "", 15 | "license": "GPL-3.0", 16 | "bugs": { 17 | "url": "https://github.com/danhellem/github-actions-issue-to-work-item/issues" 18 | }, 19 | "homepage": "https://github.com/danhellem/github-actions-issue-to-work-item#readme", 20 | "dependencies": { 21 | "@actions/core": "^1.9.1", 22 | "@actions/github": "^5.1.1", 23 | "azure-devops-node-api": "^10.2.2", 24 | "showdown": "^1.9.1" 25 | } 26 | } 27 | --------------------------------------------------------------------------------