增加了git功能,但是还未完善
This commit is contained in:
171
node_modules/isomorphic-git/http/web/index.cjs
generated
vendored
Normal file
171
node_modules/isomorphic-git/http/web/index.cjs
generated
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitProgressEvent
|
||||
* @property {string} phase
|
||||
* @property {number} loaded
|
||||
* @property {number} total
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback ProgressCallback
|
||||
* @param {GitProgressEvent} progress
|
||||
* @returns {void | Promise<void>}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitHttpRequest
|
||||
* @property {string} url - The URL to request
|
||||
* @property {string} [method='GET'] - The HTTP method to use
|
||||
* @property {Object<string, string>} [headers={}] - Headers to include in the HTTP request
|
||||
* @property {Object} [agent] - An HTTP or HTTPS agent that manages connections for the HTTP client (Node.js only)
|
||||
* @property {AsyncIterableIterator<Uint8Array>} [body] - An async iterator of Uint8Arrays that make up the body of POST requests
|
||||
* @property {ProgressCallback} [onProgress] - Reserved for future use (emitting `GitProgressEvent`s)
|
||||
* @property {object} [signal] - Reserved for future use (canceling a request)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitHttpResponse
|
||||
* @property {string} url - The final URL that was fetched after any redirects
|
||||
* @property {string} [method] - The HTTP method that was used
|
||||
* @property {Object<string, string>} [headers] - HTTP response headers
|
||||
* @property {AsyncIterableIterator<Uint8Array>} [body] - An async iterator of Uint8Arrays that make up the body of the response
|
||||
* @property {number} statusCode - The HTTP status code
|
||||
* @property {string} statusMessage - The HTTP status message
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback HttpFetch
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} HttpClient
|
||||
* @property {HttpFetch} request
|
||||
*/
|
||||
|
||||
// Convert a value to an Async Iterator
|
||||
// This will be easier with async generator functions.
|
||||
function fromValue(value) {
|
||||
let queue = [value];
|
||||
return {
|
||||
next() {
|
||||
return Promise.resolve({ done: queue.length === 0, value: queue.pop() })
|
||||
},
|
||||
return() {
|
||||
queue = [];
|
||||
return {}
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
function getIterator(iterable) {
|
||||
if (iterable[Symbol.asyncIterator]) {
|
||||
return iterable[Symbol.asyncIterator]()
|
||||
}
|
||||
if (iterable[Symbol.iterator]) {
|
||||
return iterable[Symbol.iterator]()
|
||||
}
|
||||
if (iterable.next) {
|
||||
return iterable
|
||||
}
|
||||
return fromValue(iterable)
|
||||
}
|
||||
|
||||
// Currently 'for await' upsets my linters.
|
||||
async function forAwait(iterable, cb) {
|
||||
const iter = getIterator(iterable);
|
||||
while (true) {
|
||||
const { value, done } = await iter.next();
|
||||
if (value) await cb(value);
|
||||
if (done) break
|
||||
}
|
||||
if (iter.return) iter.return();
|
||||
}
|
||||
|
||||
async function collect(iterable) {
|
||||
let size = 0;
|
||||
const buffers = [];
|
||||
// This will be easier once `for await ... of` loops are available.
|
||||
await forAwait(iterable, value => {
|
||||
buffers.push(value);
|
||||
size += value.byteLength;
|
||||
});
|
||||
const result = new Uint8Array(size);
|
||||
let nextIndex = 0;
|
||||
for (const buffer of buffers) {
|
||||
result.set(buffer, nextIndex);
|
||||
nextIndex += buffer.byteLength;
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// Convert a web ReadableStream (not Node stream!) to an Async Iterator
|
||||
// adapted from https://jakearchibald.com/2017/async-iterators-and-generators/
|
||||
function fromStream(stream) {
|
||||
// Use native async iteration if it's available.
|
||||
if (stream[Symbol.asyncIterator]) return stream
|
||||
const reader = stream.getReader();
|
||||
return {
|
||||
next() {
|
||||
return reader.read()
|
||||
},
|
||||
return() {
|
||||
reader.releaseLock();
|
||||
return {}
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/* eslint-env browser */
|
||||
|
||||
/**
|
||||
* HttpClient
|
||||
*
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
async function request({
|
||||
onProgress,
|
||||
url,
|
||||
method = 'GET',
|
||||
headers = {},
|
||||
body,
|
||||
}) {
|
||||
// streaming uploads aren't possible yet in the browser
|
||||
if (body) {
|
||||
body = await collect(body);
|
||||
}
|
||||
const res = await fetch(url, { method, headers, body });
|
||||
const iter =
|
||||
res.body && res.body.getReader
|
||||
? fromStream(res.body)
|
||||
: [new Uint8Array(await res.arrayBuffer())];
|
||||
// convert Header object to ordinary JSON
|
||||
headers = {};
|
||||
for (const [key, value] of res.headers.entries()) {
|
||||
headers[key] = value;
|
||||
}
|
||||
return {
|
||||
url: res.url,
|
||||
method: res.method,
|
||||
statusCode: res.status,
|
||||
statusMessage: res.statusText,
|
||||
body: iter,
|
||||
headers,
|
||||
}
|
||||
}
|
||||
|
||||
var index = { request };
|
||||
|
||||
exports.default = index;
|
||||
exports.request = request;
|
||||
82
node_modules/isomorphic-git/http/web/index.d.cts
generated
vendored
Normal file
82
node_modules/isomorphic-git/http/web/index.d.cts
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
export const __esModule: boolean;
|
||||
export default index;
|
||||
export type GitProgressEvent = {
|
||||
phase: string;
|
||||
loaded: number;
|
||||
total: number;
|
||||
};
|
||||
export type ProgressCallback = (progress: GitProgressEvent) => void | Promise<void>;
|
||||
export type GitHttpRequest = {
|
||||
/**
|
||||
* - The URL to request
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* - The HTTP method to use
|
||||
*/
|
||||
method?: string | undefined;
|
||||
/**
|
||||
* - Headers to include in the HTTP request
|
||||
*/
|
||||
headers?: {
|
||||
[x: string]: string;
|
||||
} | undefined;
|
||||
/**
|
||||
* - An HTTP or HTTPS agent that manages connections for the HTTP client (Node.js only)
|
||||
*/
|
||||
agent?: any;
|
||||
/**
|
||||
* - An async iterator of Uint8Arrays that make up the body of POST requests
|
||||
*/
|
||||
body?: AsyncIterableIterator<Uint8Array>;
|
||||
/**
|
||||
* - Reserved for future use (emitting `GitProgressEvent`s)
|
||||
*/
|
||||
onProgress?: ProgressCallback | undefined;
|
||||
/**
|
||||
* - Reserved for future use (canceling a request)
|
||||
*/
|
||||
signal?: object;
|
||||
};
|
||||
export type GitHttpResponse = {
|
||||
/**
|
||||
* - The final URL that was fetched after any redirects
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* - The HTTP method that was used
|
||||
*/
|
||||
method?: string | undefined;
|
||||
/**
|
||||
* - HTTP response headers
|
||||
*/
|
||||
headers?: {
|
||||
[x: string]: string;
|
||||
} | undefined;
|
||||
/**
|
||||
* - An async iterator of Uint8Arrays that make up the body of the response
|
||||
*/
|
||||
body?: AsyncIterableIterator<Uint8Array>;
|
||||
/**
|
||||
* - The HTTP status code
|
||||
*/
|
||||
statusCode: number;
|
||||
/**
|
||||
* - The HTTP status message
|
||||
*/
|
||||
statusMessage: string;
|
||||
};
|
||||
export type HttpFetch = (request: GitHttpRequest) => Promise<GitHttpResponse>;
|
||||
export type HttpClient = {
|
||||
request: HttpFetch;
|
||||
};
|
||||
declare namespace index {
|
||||
export { request };
|
||||
}
|
||||
/**
|
||||
* HttpClient
|
||||
*
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
export function request({ onProgress, url, method, headers, body, }: GitHttpRequest): Promise<GitHttpResponse>;
|
||||
81
node_modules/isomorphic-git/http/web/index.d.ts
generated
vendored
Normal file
81
node_modules/isomorphic-git/http/web/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
export default index;
|
||||
export type GitProgressEvent = {
|
||||
phase: string;
|
||||
loaded: number;
|
||||
total: number;
|
||||
};
|
||||
export type ProgressCallback = (progress: GitProgressEvent) => void | Promise<void>;
|
||||
export type GitHttpRequest = {
|
||||
/**
|
||||
* - The URL to request
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* - The HTTP method to use
|
||||
*/
|
||||
method?: string | undefined;
|
||||
/**
|
||||
* - Headers to include in the HTTP request
|
||||
*/
|
||||
headers?: {
|
||||
[x: string]: string;
|
||||
} | undefined;
|
||||
/**
|
||||
* - An HTTP or HTTPS agent that manages connections for the HTTP client (Node.js only)
|
||||
*/
|
||||
agent?: any;
|
||||
/**
|
||||
* - An async iterator of Uint8Arrays that make up the body of POST requests
|
||||
*/
|
||||
body?: AsyncIterableIterator<Uint8Array>;
|
||||
/**
|
||||
* - Reserved for future use (emitting `GitProgressEvent`s)
|
||||
*/
|
||||
onProgress?: ProgressCallback | undefined;
|
||||
/**
|
||||
* - Reserved for future use (canceling a request)
|
||||
*/
|
||||
signal?: object;
|
||||
};
|
||||
export type GitHttpResponse = {
|
||||
/**
|
||||
* - The final URL that was fetched after any redirects
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* - The HTTP method that was used
|
||||
*/
|
||||
method?: string | undefined;
|
||||
/**
|
||||
* - HTTP response headers
|
||||
*/
|
||||
headers?: {
|
||||
[x: string]: string;
|
||||
} | undefined;
|
||||
/**
|
||||
* - An async iterator of Uint8Arrays that make up the body of the response
|
||||
*/
|
||||
body?: AsyncIterableIterator<Uint8Array>;
|
||||
/**
|
||||
* - The HTTP status code
|
||||
*/
|
||||
statusCode: number;
|
||||
/**
|
||||
* - The HTTP status message
|
||||
*/
|
||||
statusMessage: string;
|
||||
};
|
||||
export type HttpFetch = (request: GitHttpRequest) => Promise<GitHttpResponse>;
|
||||
export type HttpClient = {
|
||||
request: HttpFetch;
|
||||
};
|
||||
declare namespace index {
|
||||
export { request };
|
||||
}
|
||||
/**
|
||||
* HttpClient
|
||||
*
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
export function request({ onProgress, url, method, headers, body, }: GitHttpRequest): Promise<GitHttpResponse>;
|
||||
167
node_modules/isomorphic-git/http/web/index.js
generated
vendored
Normal file
167
node_modules/isomorphic-git/http/web/index.js
generated
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
/**
|
||||
* @typedef {Object} GitProgressEvent
|
||||
* @property {string} phase
|
||||
* @property {number} loaded
|
||||
* @property {number} total
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback ProgressCallback
|
||||
* @param {GitProgressEvent} progress
|
||||
* @returns {void | Promise<void>}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitHttpRequest
|
||||
* @property {string} url - The URL to request
|
||||
* @property {string} [method='GET'] - The HTTP method to use
|
||||
* @property {Object<string, string>} [headers={}] - Headers to include in the HTTP request
|
||||
* @property {Object} [agent] - An HTTP or HTTPS agent that manages connections for the HTTP client (Node.js only)
|
||||
* @property {AsyncIterableIterator<Uint8Array>} [body] - An async iterator of Uint8Arrays that make up the body of POST requests
|
||||
* @property {ProgressCallback} [onProgress] - Reserved for future use (emitting `GitProgressEvent`s)
|
||||
* @property {object} [signal] - Reserved for future use (canceling a request)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitHttpResponse
|
||||
* @property {string} url - The final URL that was fetched after any redirects
|
||||
* @property {string} [method] - The HTTP method that was used
|
||||
* @property {Object<string, string>} [headers] - HTTP response headers
|
||||
* @property {AsyncIterableIterator<Uint8Array>} [body] - An async iterator of Uint8Arrays that make up the body of the response
|
||||
* @property {number} statusCode - The HTTP status code
|
||||
* @property {string} statusMessage - The HTTP status message
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback HttpFetch
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} HttpClient
|
||||
* @property {HttpFetch} request
|
||||
*/
|
||||
|
||||
// Convert a value to an Async Iterator
|
||||
// This will be easier with async generator functions.
|
||||
function fromValue(value) {
|
||||
let queue = [value];
|
||||
return {
|
||||
next() {
|
||||
return Promise.resolve({ done: queue.length === 0, value: queue.pop() })
|
||||
},
|
||||
return() {
|
||||
queue = [];
|
||||
return {}
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
function getIterator(iterable) {
|
||||
if (iterable[Symbol.asyncIterator]) {
|
||||
return iterable[Symbol.asyncIterator]()
|
||||
}
|
||||
if (iterable[Symbol.iterator]) {
|
||||
return iterable[Symbol.iterator]()
|
||||
}
|
||||
if (iterable.next) {
|
||||
return iterable
|
||||
}
|
||||
return fromValue(iterable)
|
||||
}
|
||||
|
||||
// Currently 'for await' upsets my linters.
|
||||
async function forAwait(iterable, cb) {
|
||||
const iter = getIterator(iterable);
|
||||
while (true) {
|
||||
const { value, done } = await iter.next();
|
||||
if (value) await cb(value);
|
||||
if (done) break
|
||||
}
|
||||
if (iter.return) iter.return();
|
||||
}
|
||||
|
||||
async function collect(iterable) {
|
||||
let size = 0;
|
||||
const buffers = [];
|
||||
// This will be easier once `for await ... of` loops are available.
|
||||
await forAwait(iterable, value => {
|
||||
buffers.push(value);
|
||||
size += value.byteLength;
|
||||
});
|
||||
const result = new Uint8Array(size);
|
||||
let nextIndex = 0;
|
||||
for (const buffer of buffers) {
|
||||
result.set(buffer, nextIndex);
|
||||
nextIndex += buffer.byteLength;
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// Convert a web ReadableStream (not Node stream!) to an Async Iterator
|
||||
// adapted from https://jakearchibald.com/2017/async-iterators-and-generators/
|
||||
function fromStream(stream) {
|
||||
// Use native async iteration if it's available.
|
||||
if (stream[Symbol.asyncIterator]) return stream
|
||||
const reader = stream.getReader();
|
||||
return {
|
||||
next() {
|
||||
return reader.read()
|
||||
},
|
||||
return() {
|
||||
reader.releaseLock();
|
||||
return {}
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/* eslint-env browser */
|
||||
|
||||
/**
|
||||
* HttpClient
|
||||
*
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
async function request({
|
||||
onProgress,
|
||||
url,
|
||||
method = 'GET',
|
||||
headers = {},
|
||||
body,
|
||||
}) {
|
||||
// streaming uploads aren't possible yet in the browser
|
||||
if (body) {
|
||||
body = await collect(body);
|
||||
}
|
||||
const res = await fetch(url, { method, headers, body });
|
||||
const iter =
|
||||
res.body && res.body.getReader
|
||||
? fromStream(res.body)
|
||||
: [new Uint8Array(await res.arrayBuffer())];
|
||||
// convert Header object to ordinary JSON
|
||||
headers = {};
|
||||
for (const [key, value] of res.headers.entries()) {
|
||||
headers[key] = value;
|
||||
}
|
||||
return {
|
||||
url: res.url,
|
||||
method: res.method,
|
||||
statusCode: res.status,
|
||||
statusMessage: res.statusText,
|
||||
body: iter,
|
||||
headers,
|
||||
}
|
||||
}
|
||||
|
||||
var index = { request };
|
||||
|
||||
export default index;
|
||||
export { request };
|
||||
177
node_modules/isomorphic-git/http/web/index.umd.js
generated
vendored
Normal file
177
node_modules/isomorphic-git/http/web/index.umd.js
generated
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(global = global || self, factory(global.GitHttp = {}));
|
||||
}(this, (function (exports) { 'use strict';
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitProgressEvent
|
||||
* @property {string} phase
|
||||
* @property {number} loaded
|
||||
* @property {number} total
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback ProgressCallback
|
||||
* @param {GitProgressEvent} progress
|
||||
* @returns {void | Promise<void>}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitHttpRequest
|
||||
* @property {string} url - The URL to request
|
||||
* @property {string} [method='GET'] - The HTTP method to use
|
||||
* @property {Object<string, string>} [headers={}] - Headers to include in the HTTP request
|
||||
* @property {Object} [agent] - An HTTP or HTTPS agent that manages connections for the HTTP client (Node.js only)
|
||||
* @property {AsyncIterableIterator<Uint8Array>} [body] - An async iterator of Uint8Arrays that make up the body of POST requests
|
||||
* @property {ProgressCallback} [onProgress] - Reserved for future use (emitting `GitProgressEvent`s)
|
||||
* @property {object} [signal] - Reserved for future use (canceling a request)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} GitHttpResponse
|
||||
* @property {string} url - The final URL that was fetched after any redirects
|
||||
* @property {string} [method] - The HTTP method that was used
|
||||
* @property {Object<string, string>} [headers] - HTTP response headers
|
||||
* @property {AsyncIterableIterator<Uint8Array>} [body] - An async iterator of Uint8Arrays that make up the body of the response
|
||||
* @property {number} statusCode - The HTTP status code
|
||||
* @property {string} statusMessage - The HTTP status message
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback HttpFetch
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {Object} HttpClient
|
||||
* @property {HttpFetch} request
|
||||
*/
|
||||
|
||||
// Convert a value to an Async Iterator
|
||||
// This will be easier with async generator functions.
|
||||
function fromValue(value) {
|
||||
let queue = [value];
|
||||
return {
|
||||
next() {
|
||||
return Promise.resolve({ done: queue.length === 0, value: queue.pop() })
|
||||
},
|
||||
return() {
|
||||
queue = [];
|
||||
return {}
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
function getIterator(iterable) {
|
||||
if (iterable[Symbol.asyncIterator]) {
|
||||
return iterable[Symbol.asyncIterator]()
|
||||
}
|
||||
if (iterable[Symbol.iterator]) {
|
||||
return iterable[Symbol.iterator]()
|
||||
}
|
||||
if (iterable.next) {
|
||||
return iterable
|
||||
}
|
||||
return fromValue(iterable)
|
||||
}
|
||||
|
||||
// Currently 'for await' upsets my linters.
|
||||
async function forAwait(iterable, cb) {
|
||||
const iter = getIterator(iterable);
|
||||
while (true) {
|
||||
const { value, done } = await iter.next();
|
||||
if (value) await cb(value);
|
||||
if (done) break
|
||||
}
|
||||
if (iter.return) iter.return();
|
||||
}
|
||||
|
||||
async function collect(iterable) {
|
||||
let size = 0;
|
||||
const buffers = [];
|
||||
// This will be easier once `for await ... of` loops are available.
|
||||
await forAwait(iterable, value => {
|
||||
buffers.push(value);
|
||||
size += value.byteLength;
|
||||
});
|
||||
const result = new Uint8Array(size);
|
||||
let nextIndex = 0;
|
||||
for (const buffer of buffers) {
|
||||
result.set(buffer, nextIndex);
|
||||
nextIndex += buffer.byteLength;
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// Convert a web ReadableStream (not Node stream!) to an Async Iterator
|
||||
// adapted from https://jakearchibald.com/2017/async-iterators-and-generators/
|
||||
function fromStream(stream) {
|
||||
// Use native async iteration if it's available.
|
||||
if (stream[Symbol.asyncIterator]) return stream
|
||||
const reader = stream.getReader();
|
||||
return {
|
||||
next() {
|
||||
return reader.read()
|
||||
},
|
||||
return() {
|
||||
reader.releaseLock();
|
||||
return {}
|
||||
},
|
||||
[Symbol.asyncIterator]() {
|
||||
return this
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
/* eslint-env browser */
|
||||
|
||||
/**
|
||||
* HttpClient
|
||||
*
|
||||
* @param {GitHttpRequest} request
|
||||
* @returns {Promise<GitHttpResponse>}
|
||||
*/
|
||||
async function request({
|
||||
onProgress,
|
||||
url,
|
||||
method = 'GET',
|
||||
headers = {},
|
||||
body,
|
||||
}) {
|
||||
// streaming uploads aren't possible yet in the browser
|
||||
if (body) {
|
||||
body = await collect(body);
|
||||
}
|
||||
const res = await fetch(url, { method, headers, body });
|
||||
const iter =
|
||||
res.body && res.body.getReader
|
||||
? fromStream(res.body)
|
||||
: [new Uint8Array(await res.arrayBuffer())];
|
||||
// convert Header object to ordinary JSON
|
||||
headers = {};
|
||||
for (const [key, value] of res.headers.entries()) {
|
||||
headers[key] = value;
|
||||
}
|
||||
return {
|
||||
url: res.url,
|
||||
method: res.method,
|
||||
statusCode: res.status,
|
||||
statusMessage: res.statusText,
|
||||
body: iter,
|
||||
headers,
|
||||
}
|
||||
}
|
||||
|
||||
var index = { request };
|
||||
|
||||
exports.default = index;
|
||||
exports.request = request;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
7
node_modules/isomorphic-git/http/web/package.json
generated
vendored
Normal file
7
node_modules/isomorphic-git/http/web/package.json
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "module",
|
||||
"main": "index.cjs",
|
||||
"module": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
"unpkg": "index.umd.js"
|
||||
}
|
||||
Reference in New Issue
Block a user