UNPKG

1.67 kBJavaScriptView Raw
1"use strict";
2var __defProp = Object.defineProperty;
3var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4var __getOwnPropNames = Object.getOwnPropertyNames;
5var __hasOwnProp = Object.prototype.hasOwnProperty;
6var __export = (target, all) => {
7 for (var name in all)
8 __defProp(target, name, { get: all[name], enumerable: true });
9};
10var __copyProps = (to, from, except, desc) => {
11 if (from && typeof from === "object" || typeof from === "function") {
12 for (let key of __getOwnPropNames(from))
13 if (!__hasOwnProp.call(to, key) && key !== except)
14 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15 }
16 return to;
17};
18var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
20// pkg/dist-src/index.js
21var dist_src_exports = {};
22__export(dist_src_exports, {
23 Octokit: () => Octokit
24});
25module.exports = __toCommonJS(dist_src_exports);
26var import_core = require("@octokit/core");
27var import_plugin_request_log = require("@octokit/plugin-request-log");
28var import_plugin_paginate_rest = require("@octokit/plugin-paginate-rest");
29var import_plugin_rest_endpoint_methods = require("@octokit/plugin-rest-endpoint-methods");
30
31// pkg/dist-src/version.js
32var VERSION = "20.0.2";
33
34// pkg/dist-src/index.js
35var Octokit = import_core.Octokit.plugin(
36 import_plugin_request_log.requestLog,
37 import_plugin_rest_endpoint_methods.legacyRestEndpointMethods,
38 import_plugin_paginate_rest.paginateRest
39).defaults({
40 userAgent: `octokit-rest.js/${VERSION}`
41});
42// Annotate the CommonJS export names for ESM import in node:
430 && (module.exports = {
44 Octokit
45});