Showing preview only (4,489K chars total). Download the full file or copy to clipboard to get everything.
Repository: GeekyEggo/delete-artifact
Branch: main
Commit: d79b2442431e
Files: 16
Total size: 4.3 MB
Directory structure:
gitextract_ho92s6sm/
├── .editorconfig
├── .github/
│ ├── FUNDING.yml
│ └── workflows/
│ ├── ci.yml
│ └── example.yml
├── .gitignore
├── CHANGELOG.md
├── LICENSE
├── README.md
├── action.yml
├── dist/
│ ├── index.js
│ └── package.json
├── package.json
├── src/
│ ├── artifact-filter.ts
│ ├── index.ts
│ └── utils.ts
└── tsconfig.json
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
root = true
[*]
charset = utf-8
insert_final_newline = true
end_of_line = crlf
indent_style = space
indent_size = 4
[*.yml]
indent_style = space
indent_size = 2
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: [GeekyEggo]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
================================================
FILE: .github/workflows/ci.yml
================================================
name: CI
on:
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Create test file
run: echo hello > world.txt
- uses: actions/upload-artifact@v6
with:
name: my-artifact
path: world.txt
- uses: actions/upload-artifact@v6
with:
name: my-artifact-2
path: world.txt
- uses: actions/upload-artifact@v6
with:
name: my-artifact-3
path: world.txt
- name: Delete (specific, glob disabled)
uses: ./
with:
name: my-artifact
useGlob: false
- name: Delete (pattern, glob enabled)
uses: ./
with:
name: my-*
================================================
FILE: .github/workflows/example.yml
================================================
name: Example
# an example workflow that also monitors success of the preview api
on:
schedule:
- cron: "0 */6 * * *"
# every 6 hours
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create test file
run: echo hello > world.txt
- uses: actions/upload-artifact@v4
with:
name: my-artifact
path: world.txt
- uses: actions/upload-artifact@v4
with:
name: my-artifact-2
path: world.txt
- uses: actions/upload-artifact@v4
with:
name: my-artifact-3
path: world.txt
- name: Delete (specific, glob disabled)
uses: geekyeggo/delete-artifact@v5
with:
name: my-artifact
useGlob: false
- name: Delete (pattern, glob enabled)
uses: geekyeggo/delete-artifact@v5
with:
name: my-*
================================================
FILE: .gitignore
================================================
# Dependency directories
node_modules
================================================
FILE: CHANGELOG.md
================================================
<!--
## {version}
🚨 Break
✨ Add
🐞 Fix
♻️ Update
-->
# Change Log
## v5.1
- Mark deprecated token parameter as optional.
- Bump undici dependency.
## v5.0
- Switch to [@actions/artifact](https://www.npmjs.com/package/@actions/artifact), removing the need for a `token` parameter (Sebastian Weigand) [#24](https://github.com/GeekyEggo/delete-artifact/pull/24)
## v4.1
- Add default token.
- Fix over-arching `catch` output; errors now correctly result in a failed run (Leon Linhart) [#18](https://github.com/GeekyEggo/delete-artifact/pull/18)
## v4.0
- Add support for artifacts uploaded with `actions/upload-artifact@v4`.
- Add requirement of `token` with read and write access to actions.
- Update requests to use GitHub REST API.
- Deprecate support for `actions/upload-artifact@v1`, `actions/upload-artifact@v2`, and `actions/upload-artifact@v3` (please use `geekyeggo/delete-artifact@v2`).
## v2.0
- Add support for glob pattern matching via `useGlob`.
## v1.0
- Initial release.
================================================
FILE: LICENSE
================================================
MIT License
Copyright (c) Richard Herman
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:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
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.
================================================
FILE: README.md
================================================


# Delete artifacts
A GitHub Action for deleting artifacts within the workflow run. This can be useful when artifacts are shared across jobs, but are no longer needed when the workflow is complete.
## ✅ Compatibility
| `geekyeggo/delete-artifact` | `actions/upload-artifact` |
| --------------------------- | ------------------------- |
| `@v6` | `@v4`, `@v6` |
| ~~@v4~~, `@v5` | `@v4` |
| `@v1`, `@v2` | `@v1`, `@v2`, `@v3` |
<!-- prettier-ignore -->
> [!TIP]
> You can reference the immutable commit SHA, instead of a version, for example.
> ```yml
> - uses: geekyeggo/delete-artifact@176a747ab7e287e3ff4787bf8a148716375ca118 # v6.0.0
> ```
<!-- prettier-ignore-end -->
## ⚡ Usage
See [action.yml](action.yml)
### Delete an individual artifact
```yml
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Create test file
run: echo hello > test.txt
- uses: actions/upload-artifact@v6
with:
name: my-artifact
path: test.txt
- uses: geekyeggo/delete-artifact@v6
with:
name: my-artifact
```
### Specify multiple names
```yml
steps:
- uses: geekyeggo/delete-artifact@v6
with:
name: |
artifact-*
binary-file
output
```
## 🚨 Error vs Fail
By default, the action will fail when it was not possible to delete an artifact (with the exception of name mismatches). When the deletion of an artifact is not integral to the success of a workflow, it is possible to error without failure. All errors are logged.
```yml
steps:
- uses: geekyeggo/delete-artifact@v6
with:
name: okay-to-keep
failOnError: false
```
================================================
FILE: action.yml
================================================
name: Delete Artifact
description: Delete artifacts created within the workflow run.
inputs:
name:
description: The name of the artifact to delete; multiple names can be supplied on new lines.
required: true
token:
description: GitHub token with read and write access to actions for the repository.
required: false
default: ${{ github.token }}
deprecationMessage: Token is no longer required.
useGlob:
description: Indicates whether the name, or names, should be treated as glob patterns.
required: false
default: "true"
failOnError:
description: Indicates whether the action should fail upon encountering an error.
required: false
default: "true"
runs:
using: node24
main: ./dist/index.js
branding:
icon: trash-2
color: red
================================================
FILE: dist/index.js
================================================
import { createRequire as __WEBPACK_EXTERNAL_createRequire } from "module";
/******/ var __webpack_modules__ = ({
/***/ 9659:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
/* eslint-disable @typescript-eslint/no-explicit-any */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.HttpClient = exports.HttpClientResponse = exports.HttpClientError = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0;
exports.getProxyUrl = getProxyUrl;
exports.isHttps = isHttps;
const http = __importStar(__nccwpck_require__(8611));
const https = __importStar(__nccwpck_require__(5692));
const pm = __importStar(__nccwpck_require__(3335));
const tunnel = __importStar(__nccwpck_require__(770));
const undici_1 = __nccwpck_require__(6752);
var HttpCodes;
(function (HttpCodes) {
HttpCodes[HttpCodes["OK"] = 200] = "OK";
HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices";
HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently";
HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved";
HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther";
HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified";
HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy";
HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy";
HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect";
HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect";
HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest";
HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized";
HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired";
HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden";
HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound";
HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed";
HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable";
HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout";
HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict";
HttpCodes[HttpCodes["Gone"] = 410] = "Gone";
HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests";
HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError";
HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented";
HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway";
HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable";
HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout";
})(HttpCodes || (exports.HttpCodes = HttpCodes = {}));
var Headers;
(function (Headers) {
Headers["Accept"] = "accept";
Headers["ContentType"] = "content-type";
})(Headers || (exports.Headers = Headers = {}));
var MediaTypes;
(function (MediaTypes) {
MediaTypes["ApplicationJson"] = "application/json";
})(MediaTypes || (exports.MediaTypes = MediaTypes = {}));
/**
* Returns the proxy URL, depending upon the supplied url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
function getProxyUrl(serverUrl) {
const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
return proxyUrl ? proxyUrl.href : '';
}
const HttpRedirectCodes = [
HttpCodes.MovedPermanently,
HttpCodes.ResourceMoved,
HttpCodes.SeeOther,
HttpCodes.TemporaryRedirect,
HttpCodes.PermanentRedirect
];
const HttpResponseRetryCodes = [
HttpCodes.BadGateway,
HttpCodes.ServiceUnavailable,
HttpCodes.GatewayTimeout
];
const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'];
const ExponentialBackoffCeiling = 10;
const ExponentialBackoffTimeSlice = 5;
class HttpClientError extends Error {
constructor(message, statusCode) {
super(message);
this.name = 'HttpClientError';
this.statusCode = statusCode;
Object.setPrototypeOf(this, HttpClientError.prototype);
}
}
exports.HttpClientError = HttpClientError;
class HttpClientResponse {
constructor(message) {
this.message = message;
}
readBody() {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
let output = Buffer.alloc(0);
this.message.on('data', (chunk) => {
output = Buffer.concat([output, chunk]);
});
this.message.on('end', () => {
resolve(output.toString());
});
}));
});
}
readBodyBuffer() {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
const chunks = [];
this.message.on('data', (chunk) => {
chunks.push(chunk);
});
this.message.on('end', () => {
resolve(Buffer.concat(chunks));
});
}));
});
}
}
exports.HttpClientResponse = HttpClientResponse;
function isHttps(requestUrl) {
const parsedUrl = new URL(requestUrl);
return parsedUrl.protocol === 'https:';
}
class HttpClient {
constructor(userAgent, handlers, requestOptions) {
this._ignoreSslError = false;
this._allowRedirects = true;
this._allowRedirectDowngrade = false;
this._maxRedirects = 50;
this._allowRetries = false;
this._maxRetries = 1;
this._keepAlive = false;
this._disposed = false;
this.userAgent = this._getUserAgentWithOrchestrationId(userAgent);
this.handlers = handlers || [];
this.requestOptions = requestOptions;
if (requestOptions) {
if (requestOptions.ignoreSslError != null) {
this._ignoreSslError = requestOptions.ignoreSslError;
}
this._socketTimeout = requestOptions.socketTimeout;
if (requestOptions.allowRedirects != null) {
this._allowRedirects = requestOptions.allowRedirects;
}
if (requestOptions.allowRedirectDowngrade != null) {
this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade;
}
if (requestOptions.maxRedirects != null) {
this._maxRedirects = Math.max(requestOptions.maxRedirects, 0);
}
if (requestOptions.keepAlive != null) {
this._keepAlive = requestOptions.keepAlive;
}
if (requestOptions.allowRetries != null) {
this._allowRetries = requestOptions.allowRetries;
}
if (requestOptions.maxRetries != null) {
this._maxRetries = requestOptions.maxRetries;
}
}
}
options(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('OPTIONS', requestUrl, null, additionalHeaders || {});
});
}
get(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('GET', requestUrl, null, additionalHeaders || {});
});
}
del(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('DELETE', requestUrl, null, additionalHeaders || {});
});
}
post(requestUrl, data, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('POST', requestUrl, data, additionalHeaders || {});
});
}
patch(requestUrl, data, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('PATCH', requestUrl, data, additionalHeaders || {});
});
}
put(requestUrl, data, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('PUT', requestUrl, data, additionalHeaders || {});
});
}
head(requestUrl, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request('HEAD', requestUrl, null, additionalHeaders || {});
});
}
sendStream(verb, requestUrl, stream, additionalHeaders) {
return __awaiter(this, void 0, void 0, function* () {
return this.request(verb, requestUrl, stream, additionalHeaders);
});
}
/**
* Gets a typed object from an endpoint
* Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise
*/
getJson(requestUrl_1) {
return __awaiter(this, arguments, void 0, function* (requestUrl, additionalHeaders = {}) {
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
const res = yield this.get(requestUrl, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
postJson(requestUrl_1, obj_1) {
return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] =
this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
const res = yield this.post(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
putJson(requestUrl_1, obj_1) {
return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] =
this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
const res = yield this.put(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
patchJson(requestUrl_1, obj_1) {
return __awaiter(this, arguments, void 0, function* (requestUrl, obj, additionalHeaders = {}) {
const data = JSON.stringify(obj, null, 2);
additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson);
additionalHeaders[Headers.ContentType] =
this._getExistingOrDefaultContentTypeHeader(additionalHeaders, MediaTypes.ApplicationJson);
const res = yield this.patch(requestUrl, data, additionalHeaders);
return this._processResponse(res, this.requestOptions);
});
}
/**
* Makes a raw http request.
* All other methods such as get, post, patch, and request ultimately call this.
* Prefer get, del, post and patch
*/
request(verb, requestUrl, data, headers) {
return __awaiter(this, void 0, void 0, function* () {
if (this._disposed) {
throw new Error('Client has already been disposed.');
}
const parsedUrl = new URL(requestUrl);
let info = this._prepareRequest(verb, parsedUrl, headers);
// Only perform retries on reads since writes may not be idempotent.
const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb)
? this._maxRetries + 1
: 1;
let numTries = 0;
let response;
do {
response = yield this.requestRaw(info, data);
// Check if it's an authentication challenge
if (response &&
response.message &&
response.message.statusCode === HttpCodes.Unauthorized) {
let authenticationHandler;
for (const handler of this.handlers) {
if (handler.canHandleAuthentication(response)) {
authenticationHandler = handler;
break;
}
}
if (authenticationHandler) {
return authenticationHandler.handleAuthentication(this, info, data);
}
else {
// We have received an unauthorized response but have no handlers to handle it.
// Let the response return to the caller.
return response;
}
}
let redirectsRemaining = this._maxRedirects;
while (response.message.statusCode &&
HttpRedirectCodes.includes(response.message.statusCode) &&
this._allowRedirects &&
redirectsRemaining > 0) {
const redirectUrl = response.message.headers['location'];
if (!redirectUrl) {
// if there's no location to redirect to, we won't
break;
}
const parsedRedirectUrl = new URL(redirectUrl);
if (parsedUrl.protocol === 'https:' &&
parsedUrl.protocol !== parsedRedirectUrl.protocol &&
!this._allowRedirectDowngrade) {
throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.');
}
// we need to finish reading the response before reassigning response
// which will leak the open socket.
yield response.readBody();
// strip authorization header if redirected to a different hostname
if (parsedRedirectUrl.hostname !== parsedUrl.hostname) {
for (const header in headers) {
// header names are case insensitive
if (header.toLowerCase() === 'authorization') {
delete headers[header];
}
}
}
// let's make the request with the new redirectUrl
info = this._prepareRequest(verb, parsedRedirectUrl, headers);
response = yield this.requestRaw(info, data);
redirectsRemaining--;
}
if (!response.message.statusCode ||
!HttpResponseRetryCodes.includes(response.message.statusCode)) {
// If not a retry code, return immediately instead of retrying
return response;
}
numTries += 1;
if (numTries < maxTries) {
yield response.readBody();
yield this._performExponentialBackoff(numTries);
}
} while (numTries < maxTries);
return response;
});
}
/**
* Needs to be called if keepAlive is set to true in request options.
*/
dispose() {
if (this._agent) {
this._agent.destroy();
}
this._disposed = true;
}
/**
* Raw request.
* @param info
* @param data
*/
requestRaw(info, data) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => {
function callbackForResult(err, res) {
if (err) {
reject(err);
}
else if (!res) {
// If `err` is not passed, then `res` must be passed.
reject(new Error('Unknown error'));
}
else {
resolve(res);
}
}
this.requestRawWithCallback(info, data, callbackForResult);
});
});
}
/**
* Raw request with callback.
* @param info
* @param data
* @param onResult
*/
requestRawWithCallback(info, data, onResult) {
if (typeof data === 'string') {
if (!info.options.headers) {
info.options.headers = {};
}
info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8');
}
let callbackCalled = false;
function handleResult(err, res) {
if (!callbackCalled) {
callbackCalled = true;
onResult(err, res);
}
}
const req = info.httpModule.request(info.options, (msg) => {
const res = new HttpClientResponse(msg);
handleResult(undefined, res);
});
let socket;
req.on('socket', sock => {
socket = sock;
});
// If we ever get disconnected, we want the socket to timeout eventually
req.setTimeout(this._socketTimeout || 3 * 60000, () => {
if (socket) {
socket.end();
}
handleResult(new Error(`Request timeout: ${info.options.path}`));
});
req.on('error', function (err) {
// err has statusCode property
// res should have headers
handleResult(err);
});
if (data && typeof data === 'string') {
req.write(data, 'utf8');
}
if (data && typeof data !== 'string') {
data.on('close', function () {
req.end();
});
data.pipe(req);
}
else {
req.end();
}
}
/**
* Gets an http agent. This function is useful when you need an http agent that handles
* routing through a proxy server - depending upon the url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
*/
getAgent(serverUrl) {
const parsedUrl = new URL(serverUrl);
return this._getAgent(parsedUrl);
}
getAgentDispatcher(serverUrl) {
const parsedUrl = new URL(serverUrl);
const proxyUrl = pm.getProxyUrl(parsedUrl);
const useProxy = proxyUrl && proxyUrl.hostname;
if (!useProxy) {
return;
}
return this._getProxyAgentDispatcher(parsedUrl, proxyUrl);
}
_prepareRequest(method, requestUrl, headers) {
const info = {};
info.parsedUrl = requestUrl;
const usingSsl = info.parsedUrl.protocol === 'https:';
info.httpModule = usingSsl ? https : http;
const defaultPort = usingSsl ? 443 : 80;
info.options = {};
info.options.host = info.parsedUrl.hostname;
info.options.port = info.parsedUrl.port
? parseInt(info.parsedUrl.port)
: defaultPort;
info.options.path =
(info.parsedUrl.pathname || '') + (info.parsedUrl.search || '');
info.options.method = method;
info.options.headers = this._mergeHeaders(headers);
if (this.userAgent != null) {
info.options.headers['user-agent'] = this.userAgent;
}
info.options.agent = this._getAgent(info.parsedUrl);
// gives handlers an opportunity to participate
if (this.handlers) {
for (const handler of this.handlers) {
handler.prepareRequest(info.options);
}
}
return info;
}
_mergeHeaders(headers) {
if (this.requestOptions && this.requestOptions.headers) {
return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {}));
}
return lowercaseKeys(headers || {});
}
/**
* Gets an existing header value or returns a default.
* Handles converting number header values to strings since HTTP headers must be strings.
* Note: This returns string | string[] since some headers can have multiple values.
* For headers that must always be a single string (like Content-Type), use the
* specialized _getExistingOrDefaultContentTypeHeader method instead.
*/
_getExistingOrDefaultHeader(additionalHeaders, header, _default) {
let clientHeader;
if (this.requestOptions && this.requestOptions.headers) {
const headerValue = lowercaseKeys(this.requestOptions.headers)[header];
if (headerValue) {
clientHeader =
typeof headerValue === 'number' ? headerValue.toString() : headerValue;
}
}
const additionalValue = additionalHeaders[header];
if (additionalValue !== undefined) {
return typeof additionalValue === 'number'
? additionalValue.toString()
: additionalValue;
}
if (clientHeader !== undefined) {
return clientHeader;
}
return _default;
}
/**
* Specialized version of _getExistingOrDefaultHeader for Content-Type header.
* Always returns a single string (not an array) since Content-Type should be a single value.
* Converts arrays to comma-separated strings and numbers to strings to ensure type safety.
* This was split from _getExistingOrDefaultHeader to provide stricter typing for callers
* that assign the result to places expecting a string (e.g., additionalHeaders[Headers.ContentType]).
*/
_getExistingOrDefaultContentTypeHeader(additionalHeaders, _default) {
let clientHeader;
if (this.requestOptions && this.requestOptions.headers) {
const headerValue = lowercaseKeys(this.requestOptions.headers)[Headers.ContentType];
if (headerValue) {
if (typeof headerValue === 'number') {
clientHeader = String(headerValue);
}
else if (Array.isArray(headerValue)) {
clientHeader = headerValue.join(', ');
}
else {
clientHeader = headerValue;
}
}
}
const additionalValue = additionalHeaders[Headers.ContentType];
// Return the first non-undefined value, converting numbers or arrays to strings if necessary
if (additionalValue !== undefined) {
if (typeof additionalValue === 'number') {
return String(additionalValue);
}
else if (Array.isArray(additionalValue)) {
return additionalValue.join(', ');
}
else {
return additionalValue;
}
}
if (clientHeader !== undefined) {
return clientHeader;
}
return _default;
}
_getAgent(parsedUrl) {
let agent;
const proxyUrl = pm.getProxyUrl(parsedUrl);
const useProxy = proxyUrl && proxyUrl.hostname;
if (this._keepAlive && useProxy) {
agent = this._proxyAgent;
}
if (!useProxy) {
agent = this._agent;
}
// if agent is already assigned use that agent.
if (agent) {
return agent;
}
const usingSsl = parsedUrl.protocol === 'https:';
let maxSockets = 100;
if (this.requestOptions) {
maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets;
}
// This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis.
if (proxyUrl && proxyUrl.hostname) {
const agentOptions = {
maxSockets,
keepAlive: this._keepAlive,
proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && {
proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`
})), { host: proxyUrl.hostname, port: proxyUrl.port })
};
let tunnelAgent;
const overHttps = proxyUrl.protocol === 'https:';
if (usingSsl) {
tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp;
}
else {
tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp;
}
agent = tunnelAgent(agentOptions);
this._proxyAgent = agent;
}
// if tunneling agent isn't assigned create a new agent
if (!agent) {
const options = { keepAlive: this._keepAlive, maxSockets };
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
this._agent = agent;
}
if (usingSsl && this._ignoreSslError) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
// we have to cast it to any and change it directly
agent.options = Object.assign(agent.options || {}, {
rejectUnauthorized: false
});
}
return agent;
}
_getProxyAgentDispatcher(parsedUrl, proxyUrl) {
let proxyAgent;
if (this._keepAlive) {
proxyAgent = this._proxyAgentDispatcher;
}
// if agent is already assigned use that agent.
if (proxyAgent) {
return proxyAgent;
}
const usingSsl = parsedUrl.protocol === 'https:';
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
})));
this._proxyAgentDispatcher = proxyAgent;
if (usingSsl && this._ignoreSslError) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
// we have to cast it to any and change it directly
proxyAgent.options = Object.assign(proxyAgent.options.requestTls || {}, {
rejectUnauthorized: false
});
}
return proxyAgent;
}
_getUserAgentWithOrchestrationId(userAgent) {
const baseUserAgent = userAgent || 'actions/http-client';
const orchId = process.env['ACTIONS_ORCHESTRATION_ID'];
if (orchId) {
// Sanitize the orchestration ID to ensure it contains only valid characters
// Valid characters: 0-9, a-z, _, -, .
const sanitizedId = orchId.replace(/[^a-z0-9_.-]/gi, '_');
return `${baseUserAgent} actions_orchestration_id/${sanitizedId}`;
}
return baseUserAgent;
}
_performExponentialBackoff(retryNumber) {
return __awaiter(this, void 0, void 0, function* () {
retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber);
const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber);
return new Promise(resolve => setTimeout(() => resolve(), ms));
});
}
_processResponse(res, options) {
return __awaiter(this, void 0, void 0, function* () {
return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
const statusCode = res.message.statusCode || 0;
const response = {
statusCode,
result: null,
headers: {}
};
// not found leads to null obj returned
if (statusCode === HttpCodes.NotFound) {
resolve(response);
}
// get the result from the body
function dateTimeDeserializer(key, value) {
if (typeof value === 'string') {
const a = new Date(value);
if (!isNaN(a.valueOf())) {
return a;
}
}
return value;
}
let obj;
let contents;
try {
contents = yield res.readBody();
if (contents && contents.length > 0) {
if (options && options.deserializeDates) {
obj = JSON.parse(contents, dateTimeDeserializer);
}
else {
obj = JSON.parse(contents);
}
response.result = obj;
}
response.headers = res.message.headers;
}
catch (err) {
// Invalid resource (contents not json); leaving result obj null
}
// note that 3xx redirects are handled by the http layer.
if (statusCode > 299) {
let msg;
// if exception/error in body, attempt to get better error
if (obj && obj.message) {
msg = obj.message;
}
else if (contents && contents.length > 0) {
// it may be the case that the exception is in the body message as string
msg = contents;
}
else {
msg = `Failed request: (${statusCode})`;
}
const err = new HttpClientError(msg, statusCode);
err.result = response.result;
reject(err);
}
else {
resolve(response);
}
}));
});
}
}
exports.HttpClient = HttpClient;
const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {});
//# sourceMappingURL=index.js.map
/***/ }),
/***/ 3335:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getProxyUrl = getProxyUrl;
exports.checkBypass = checkBypass;
function getProxyUrl(reqUrl) {
const usingSsl = reqUrl.protocol === 'https:';
if (checkBypass(reqUrl)) {
return undefined;
}
const proxyVar = (() => {
if (usingSsl) {
return process.env['https_proxy'] || process.env['HTTPS_PROXY'];
}
else {
return process.env['http_proxy'] || process.env['HTTP_PROXY'];
}
})();
if (proxyVar) {
try {
return new DecodedURL(proxyVar);
}
catch (_a) {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
return new DecodedURL(`http://${proxyVar}`);
}
}
else {
return undefined;
}
}
function checkBypass(reqUrl) {
if (!reqUrl.hostname) {
return false;
}
const reqHost = reqUrl.hostname;
if (isLoopbackAddress(reqHost)) {
return true;
}
const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '';
if (!noProxy) {
return false;
}
// Determine the request port
let reqPort;
if (reqUrl.port) {
reqPort = Number(reqUrl.port);
}
else if (reqUrl.protocol === 'http:') {
reqPort = 80;
}
else if (reqUrl.protocol === 'https:') {
reqPort = 443;
}
// Format the request hostname and hostname with port
const upperReqHosts = [reqUrl.hostname.toUpperCase()];
if (typeof reqPort === 'number') {
upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`);
}
// Compare request host against noproxy
for (const upperNoProxyItem of noProxy
.split(',')
.map(x => x.trim().toUpperCase())
.filter(x => x)) {
if (upperNoProxyItem === '*' ||
upperReqHosts.some(x => x === upperNoProxyItem ||
x.endsWith(`.${upperNoProxyItem}`) ||
(upperNoProxyItem.startsWith('.') &&
x.endsWith(`${upperNoProxyItem}`)))) {
return true;
}
}
return false;
}
function isLoopbackAddress(host) {
const hostLower = host.toLowerCase();
return (hostLower === 'localhost' ||
hostLower.startsWith('127.') ||
hostLower.startsWith('[::1]') ||
hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
}
class DecodedURL extends URL {
constructor(url, base) {
super(url, base);
this._decodedUsername = decodeURIComponent(super.username);
this._decodedPassword = decodeURIComponent(super.password);
}
get username() {
return this._decodedUsername;
}
get password() {
return this._decodedPassword;
}
}
//# sourceMappingURL=proxy.js.map
/***/ }),
/***/ 7889:
/***/ (function(__unused_webpack_module, exports) {
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ClientStreamingCall = void 0;
/**
* A client streaming RPC call. This means that the clients sends 0, 1, or
* more messages to the server, and the server replies with exactly one
* message.
*/
class ClientStreamingCall {
constructor(method, requestHeaders, request, headers, response, status, trailers) {
this.method = method;
this.requestHeaders = requestHeaders;
this.requests = request;
this.headers = headers;
this.response = response;
this.status = status;
this.trailers = trailers;
}
/**
* Instead of awaiting the response status and trailers, you can
* just as well await this call itself to receive the server outcome.
* Note that it may still be valid to send more request messages.
*/
then(onfulfilled, onrejected) {
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
}
promiseFinished() {
return __awaiter(this, void 0, void 0, function* () {
let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
return {
method: this.method,
requestHeaders: this.requestHeaders,
headers,
response,
status,
trailers
};
});
}
}
exports.ClientStreamingCall = ClientStreamingCall;
/***/ }),
/***/ 1409:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Deferred = exports.DeferredState = void 0;
var DeferredState;
(function (DeferredState) {
DeferredState[DeferredState["PENDING"] = 0] = "PENDING";
DeferredState[DeferredState["REJECTED"] = 1] = "REJECTED";
DeferredState[DeferredState["RESOLVED"] = 2] = "RESOLVED";
})(DeferredState = exports.DeferredState || (exports.DeferredState = {}));
/**
* A deferred promise. This is a "controller" for a promise, which lets you
* pass a promise around and reject or resolve it from the outside.
*
* Warning: This class is to be used with care. Using it can make code very
* difficult to read. It is intended for use in library code that exposes
* promises, not for regular business logic.
*/
class Deferred {
/**
* @param preventUnhandledRejectionWarning - prevents the warning
* "Unhandled Promise rejection" by adding a noop rejection handler.
* Working with calls returned from the runtime-rpc package in an
* async function usually means awaiting one call property after
* the other. This means that the "status" is not being awaited when
* an earlier await for the "headers" is rejected. This causes the
* "unhandled promise reject" warning. A more correct behaviour for
* calls might be to become aware whether at least one of the
* promises is handled and swallow the rejection warning for the
* others.
*/
constructor(preventUnhandledRejectionWarning = true) {
this._state = DeferredState.PENDING;
this._promise = new Promise((resolve, reject) => {
this._resolve = resolve;
this._reject = reject;
});
if (preventUnhandledRejectionWarning) {
this._promise.catch(_ => { });
}
}
/**
* Get the current state of the promise.
*/
get state() {
return this._state;
}
/**
* Get the deferred promise.
*/
get promise() {
return this._promise;
}
/**
* Resolve the promise. Throws if the promise is already resolved or rejected.
*/
resolve(value) {
if (this.state !== DeferredState.PENDING)
throw new Error(`cannot resolve ${DeferredState[this.state].toLowerCase()}`);
this._resolve(value);
this._state = DeferredState.RESOLVED;
}
/**
* Reject the promise. Throws if the promise is already resolved or rejected.
*/
reject(reason) {
if (this.state !== DeferredState.PENDING)
throw new Error(`cannot reject ${DeferredState[this.state].toLowerCase()}`);
this._reject(reason);
this._state = DeferredState.REJECTED;
}
/**
* Resolve the promise. Ignore if not pending.
*/
resolvePending(val) {
if (this._state === DeferredState.PENDING)
this.resolve(val);
}
/**
* Reject the promise. Ignore if not pending.
*/
rejectPending(reason) {
if (this._state === DeferredState.PENDING)
this.reject(reason);
}
}
exports.Deferred = Deferred;
/***/ }),
/***/ 6826:
/***/ (function(__unused_webpack_module, exports) {
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.DuplexStreamingCall = void 0;
/**
* A duplex streaming RPC call. This means that the clients sends an
* arbitrary amount of messages to the server, while at the same time,
* the server sends an arbitrary amount of messages to the client.
*/
class DuplexStreamingCall {
constructor(method, requestHeaders, request, headers, response, status, trailers) {
this.method = method;
this.requestHeaders = requestHeaders;
this.requests = request;
this.headers = headers;
this.responses = response;
this.status = status;
this.trailers = trailers;
}
/**
* Instead of awaiting the response status and trailers, you can
* just as well await this call itself to receive the server outcome.
* Note that it may still be valid to send more request messages.
*/
then(onfulfilled, onrejected) {
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
}
promiseFinished() {
return __awaiter(this, void 0, void 0, function* () {
let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
return {
method: this.method,
requestHeaders: this.requestHeaders,
headers,
status,
trailers,
};
});
}
}
exports.DuplexStreamingCall = DuplexStreamingCall;
/***/ }),
/***/ 4420:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
var __webpack_unused_export__;
// Public API of the rpc runtime.
// Note: we do not use `export * from ...` to help tree shakers,
// webpack verbose output hints that this should be useful
__webpack_unused_export__ = ({ value: true });
var service_type_1 = __nccwpck_require__(6892);
Object.defineProperty(exports, "C0", ({ enumerable: true, get: function () { return service_type_1.ServiceType; } }));
var reflection_info_1 = __nccwpck_require__(2496);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return reflection_info_1.readMethodOptions; } });
__webpack_unused_export__ = ({ enumerable: true, get: function () { return reflection_info_1.readMethodOption; } });
__webpack_unused_export__ = ({ enumerable: true, get: function () { return reflection_info_1.readServiceOption; } });
var rpc_error_1 = __nccwpck_require__(8636);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_error_1.RpcError; } });
var rpc_options_1 = __nccwpck_require__(8576);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_options_1.mergeRpcOptions; } });
var rpc_output_stream_1 = __nccwpck_require__(2726);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_output_stream_1.RpcOutputStreamController; } });
var test_transport_1 = __nccwpck_require__(9122);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return test_transport_1.TestTransport; } });
var deferred_1 = __nccwpck_require__(1409);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return deferred_1.Deferred; } });
__webpack_unused_export__ = ({ enumerable: true, get: function () { return deferred_1.DeferredState; } });
var duplex_streaming_call_1 = __nccwpck_require__(6826);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return duplex_streaming_call_1.DuplexStreamingCall; } });
var client_streaming_call_1 = __nccwpck_require__(7889);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return client_streaming_call_1.ClientStreamingCall; } });
var server_streaming_call_1 = __nccwpck_require__(6173);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return server_streaming_call_1.ServerStreamingCall; } });
var unary_call_1 = __nccwpck_require__(9288);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return unary_call_1.UnaryCall; } });
var rpc_interceptor_1 = __nccwpck_require__(2849);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_interceptor_1.stackIntercept; } });
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_interceptor_1.stackDuplexStreamingInterceptors; } });
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_interceptor_1.stackClientStreamingInterceptors; } });
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_interceptor_1.stackServerStreamingInterceptors; } });
__webpack_unused_export__ = ({ enumerable: true, get: function () { return rpc_interceptor_1.stackUnaryInterceptors; } });
var server_call_context_1 = __nccwpck_require__(3352);
__webpack_unused_export__ = ({ enumerable: true, get: function () { return server_call_context_1.ServerCallContextController; } });
/***/ }),
/***/ 2496:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.readServiceOption = exports.readMethodOption = exports.readMethodOptions = exports.normalizeMethodInfo = void 0;
const runtime_1 = __nccwpck_require__(8886);
/**
* Turns PartialMethodInfo into MethodInfo.
*/
function normalizeMethodInfo(method, service) {
var _a, _b, _c;
let m = method;
m.service = service;
m.localName = (_a = m.localName) !== null && _a !== void 0 ? _a : runtime_1.lowerCamelCase(m.name);
// noinspection PointlessBooleanExpressionJS
m.serverStreaming = !!m.serverStreaming;
// noinspection PointlessBooleanExpressionJS
m.clientStreaming = !!m.clientStreaming;
m.options = (_b = m.options) !== null && _b !== void 0 ? _b : {};
m.idempotency = (_c = m.idempotency) !== null && _c !== void 0 ? _c : undefined;
return m;
}
exports.normalizeMethodInfo = normalizeMethodInfo;
/**
* Read custom method options from a generated service client.
*
* @deprecated use readMethodOption()
*/
function readMethodOptions(service, methodName, extensionName, extensionType) {
var _a;
const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
}
exports.readMethodOptions = readMethodOptions;
function readMethodOption(service, methodName, extensionName, extensionType) {
var _a;
const options = (_a = service.methods.find((m, i) => m.localName === methodName || i === methodName)) === null || _a === void 0 ? void 0 : _a.options;
if (!options) {
return undefined;
}
const optionVal = options[extensionName];
if (optionVal === undefined) {
return optionVal;
}
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
}
exports.readMethodOption = readMethodOption;
function readServiceOption(service, extensionName, extensionType) {
const options = service.options;
if (!options) {
return undefined;
}
const optionVal = options[extensionName];
if (optionVal === undefined) {
return optionVal;
}
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
}
exports.readServiceOption = readServiceOption;
/***/ }),
/***/ 8636:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.RpcError = void 0;
/**
* An error that occurred while calling a RPC method.
*/
class RpcError extends Error {
constructor(message, code = 'UNKNOWN', meta) {
super(message);
this.name = 'RpcError';
// see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#example
Object.setPrototypeOf(this, new.target.prototype);
this.code = code;
this.meta = meta !== null && meta !== void 0 ? meta : {};
}
toString() {
const l = [this.name + ': ' + this.message];
if (this.code) {
l.push('');
l.push('Code: ' + this.code);
}
if (this.serviceName && this.methodName) {
l.push('Method: ' + this.serviceName + '/' + this.methodName);
}
let m = Object.entries(this.meta);
if (m.length) {
l.push('');
l.push('Meta:');
for (let [k, v] of m) {
l.push(` ${k}: ${v}`);
}
}
return l.join('\n');
}
}
exports.RpcError = RpcError;
/***/ }),
/***/ 2849:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.stackDuplexStreamingInterceptors = exports.stackClientStreamingInterceptors = exports.stackServerStreamingInterceptors = exports.stackUnaryInterceptors = exports.stackIntercept = void 0;
const runtime_1 = __nccwpck_require__(8886);
/**
* Creates a "stack" of of all interceptors specified in the given `RpcOptions`.
* Used by generated client implementations.
* @internal
*/
function stackIntercept(kind, transport, method, options, input) {
var _a, _b, _c, _d;
if (kind == "unary") {
let tail = (mtd, inp, opt) => transport.unary(mtd, inp, opt);
for (const curr of ((_a = options.interceptors) !== null && _a !== void 0 ? _a : []).filter(i => i.interceptUnary).reverse()) {
const next = tail;
tail = (mtd, inp, opt) => curr.interceptUnary(next, mtd, inp, opt);
}
return tail(method, input, options);
}
if (kind == "serverStreaming") {
let tail = (mtd, inp, opt) => transport.serverStreaming(mtd, inp, opt);
for (const curr of ((_b = options.interceptors) !== null && _b !== void 0 ? _b : []).filter(i => i.interceptServerStreaming).reverse()) {
const next = tail;
tail = (mtd, inp, opt) => curr.interceptServerStreaming(next, mtd, inp, opt);
}
return tail(method, input, options);
}
if (kind == "clientStreaming") {
let tail = (mtd, opt) => transport.clientStreaming(mtd, opt);
for (const curr of ((_c = options.interceptors) !== null && _c !== void 0 ? _c : []).filter(i => i.interceptClientStreaming).reverse()) {
const next = tail;
tail = (mtd, opt) => curr.interceptClientStreaming(next, mtd, opt);
}
return tail(method, options);
}
if (kind == "duplex") {
let tail = (mtd, opt) => transport.duplex(mtd, opt);
for (const curr of ((_d = options.interceptors) !== null && _d !== void 0 ? _d : []).filter(i => i.interceptDuplex).reverse()) {
const next = tail;
tail = (mtd, opt) => curr.interceptDuplex(next, mtd, opt);
}
return tail(method, options);
}
runtime_1.assertNever(kind);
}
exports.stackIntercept = stackIntercept;
/**
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
*/
function stackUnaryInterceptors(transport, method, input, options) {
return stackIntercept("unary", transport, method, options, input);
}
exports.stackUnaryInterceptors = stackUnaryInterceptors;
/**
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
*/
function stackServerStreamingInterceptors(transport, method, input, options) {
return stackIntercept("serverStreaming", transport, method, options, input);
}
exports.stackServerStreamingInterceptors = stackServerStreamingInterceptors;
/**
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
*/
function stackClientStreamingInterceptors(transport, method, options) {
return stackIntercept("clientStreaming", transport, method, options);
}
exports.stackClientStreamingInterceptors = stackClientStreamingInterceptors;
/**
* @deprecated replaced by `stackIntercept()`, still here to support older generated code
*/
function stackDuplexStreamingInterceptors(transport, method, options) {
return stackIntercept("duplex", transport, method, options);
}
exports.stackDuplexStreamingInterceptors = stackDuplexStreamingInterceptors;
/***/ }),
/***/ 8576:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.mergeRpcOptions = void 0;
const runtime_1 = __nccwpck_require__(8886);
/**
* Merges custom RPC options with defaults. Returns a new instance and keeps
* the "defaults" and the "options" unmodified.
*
* Merges `RpcMetadata` "meta", overwriting values from "defaults" with
* values from "options". Does not append values to existing entries.
*
* Merges "jsonOptions", including "jsonOptions.typeRegistry", by creating
* a new array that contains types from "options.jsonOptions.typeRegistry"
* first, then types from "defaults.jsonOptions.typeRegistry".
*
* Merges "binaryOptions".
*
* Merges "interceptors" by creating a new array that contains interceptors
* from "defaults" first, then interceptors from "options".
*
* Works with objects that extend `RpcOptions`, but only if the added
* properties are of type Date, primitive like string, boolean, or Array
* of primitives. If you have other property types, you have to merge them
* yourself.
*/
function mergeRpcOptions(defaults, options) {
if (!options)
return defaults;
let o = {};
copy(defaults, o);
copy(options, o);
for (let key of Object.keys(options)) {
let val = options[key];
switch (key) {
case "jsonOptions":
o.jsonOptions = runtime_1.mergeJsonOptions(defaults.jsonOptions, o.jsonOptions);
break;
case "binaryOptions":
o.binaryOptions = runtime_1.mergeBinaryOptions(defaults.binaryOptions, o.binaryOptions);
break;
case "meta":
o.meta = {};
copy(defaults.meta, o.meta);
copy(options.meta, o.meta);
break;
case "interceptors":
o.interceptors = defaults.interceptors ? defaults.interceptors.concat(val) : val.concat();
break;
}
}
return o;
}
exports.mergeRpcOptions = mergeRpcOptions;
function copy(a, into) {
if (!a)
return;
let c = into;
for (let [k, v] of Object.entries(a)) {
if (v instanceof Date)
c[k] = new Date(v.getTime());
else if (Array.isArray(v))
c[k] = v.concat();
else
c[k] = v;
}
}
/***/ }),
/***/ 2726:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.RpcOutputStreamController = void 0;
const deferred_1 = __nccwpck_require__(1409);
const runtime_1 = __nccwpck_require__(8886);
/**
* A `RpcOutputStream` that you control.
*/
class RpcOutputStreamController {
constructor() {
this._lis = {
nxt: [],
msg: [],
err: [],
cmp: [],
};
this._closed = false;
// --- RpcOutputStream async iterator API
// iterator state.
// is undefined when no iterator has been acquired yet.
this._itState = { q: [] };
}
// --- RpcOutputStream callback API
onNext(callback) {
return this.addLis(callback, this._lis.nxt);
}
onMessage(callback) {
return this.addLis(callback, this._lis.msg);
}
onError(callback) {
return this.addLis(callback, this._lis.err);
}
onComplete(callback) {
return this.addLis(callback, this._lis.cmp);
}
addLis(callback, list) {
list.push(callback);
return () => {
let i = list.indexOf(callback);
if (i >= 0)
list.splice(i, 1);
};
}
// remove all listeners
clearLis() {
for (let l of Object.values(this._lis))
l.splice(0, l.length);
}
// --- Controller API
/**
* Is this stream already closed by a completion or error?
*/
get closed() {
return this._closed !== false;
}
/**
* Emit message, close with error, or close successfully, but only one
* at a time.
* Can be used to wrap a stream by using the other stream's `onNext`.
*/
notifyNext(message, error, complete) {
runtime_1.assert((message ? 1 : 0) + (error ? 1 : 0) + (complete ? 1 : 0) <= 1, 'only one emission at a time');
if (message)
this.notifyMessage(message);
if (error)
this.notifyError(error);
if (complete)
this.notifyComplete();
}
/**
* Emits a new message. Throws if stream is closed.
*
* Triggers onNext and onMessage callbacks.
*/
notifyMessage(message) {
runtime_1.assert(!this.closed, 'stream is closed');
this.pushIt({ value: message, done: false });
this._lis.msg.forEach(l => l(message));
this._lis.nxt.forEach(l => l(message, undefined, false));
}
/**
* Closes the stream with an error. Throws if stream is closed.
*
* Triggers onNext and onError callbacks.
*/
notifyError(error) {
runtime_1.assert(!this.closed, 'stream is closed');
this._closed = error;
this.pushIt(error);
this._lis.err.forEach(l => l(error));
this._lis.nxt.forEach(l => l(undefined, error, false));
this.clearLis();
}
/**
* Closes the stream successfully. Throws if stream is closed.
*
* Triggers onNext and onComplete callbacks.
*/
notifyComplete() {
runtime_1.assert(!this.closed, 'stream is closed');
this._closed = true;
this.pushIt({ value: null, done: true });
this._lis.cmp.forEach(l => l());
this._lis.nxt.forEach(l => l(undefined, undefined, true));
this.clearLis();
}
/**
* Creates an async iterator (that can be used with `for await {...}`)
* to consume the stream.
*
* Some things to note:
* - If an error occurs, the `for await` will throw it.
* - If an error occurred before the `for await` was started, `for await`
* will re-throw it.
* - If the stream is already complete, the `for await` will be empty.
* - If your `for await` consumes slower than the stream produces,
* for example because you are relaying messages in a slow operation,
* messages are queued.
*/
[Symbol.asyncIterator]() {
// if we are closed, we are definitely not receiving any more messages.
// but we can't let the iterator get stuck. we want to either:
// a) finish the new iterator immediately, because we are completed
// b) reject the new iterator, because we errored
if (this._closed === true)
this.pushIt({ value: null, done: true });
else if (this._closed !== false)
this.pushIt(this._closed);
// the async iterator
return {
next: () => {
let state = this._itState;
runtime_1.assert(state, "bad state"); // if we don't have a state here, code is broken
// there should be no pending result.
// did the consumer call next() before we resolved our previous result promise?
runtime_1.assert(!state.p, "iterator contract broken");
// did we produce faster than the iterator consumed?
// return the oldest result from the queue.
let first = state.q.shift();
if (first)
return ("value" in first) ? Promise.resolve(first) : Promise.reject(first);
// we have no result ATM, but we promise one.
// as soon as we have a result, we must resolve promise.
state.p = new deferred_1.Deferred();
return state.p.promise;
},
};
}
// "push" a new iterator result.
// this either resolves a pending promise, or enqueues the result.
pushIt(result) {
let state = this._itState;
// is the consumer waiting for us?
if (state.p) {
// yes, consumer is waiting for this promise.
const p = state.p;
runtime_1.assert(p.state == deferred_1.DeferredState.PENDING, "iterator contract broken");
// resolve the promise
("value" in result) ? p.resolve(result) : p.reject(result);
// must cleanup, otherwise iterator.next() would pick it up again.
delete state.p;
}
else {
// we are producing faster than the iterator consumes.
// push result onto queue.
state.q.push(result);
}
}
}
exports.RpcOutputStreamController = RpcOutputStreamController;
/***/ }),
/***/ 3352:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ServerCallContextController = void 0;
class ServerCallContextController {
constructor(method, headers, deadline, sendResponseHeadersFn, defaultStatus = { code: 'OK', detail: '' }) {
this._cancelled = false;
this._listeners = [];
this.method = method;
this.headers = headers;
this.deadline = deadline;
this.trailers = {};
this._sendRH = sendResponseHeadersFn;
this.status = defaultStatus;
}
/**
* Set the call cancelled.
*
* Invokes all callbacks registered with onCancel() and
* sets `cancelled = true`.
*/
notifyCancelled() {
if (!this._cancelled) {
this._cancelled = true;
for (let l of this._listeners) {
l();
}
}
}
/**
* Send response headers.
*/
sendResponseHeaders(data) {
this._sendRH(data);
}
/**
* Is the call cancelled?
*
* When the client closes the connection before the server
* is done, the call is cancelled.
*
* If you want to cancel a request on the server, throw a
* RpcError with the CANCELLED status code.
*/
get cancelled() {
return this._cancelled;
}
/**
* Add a callback for cancellation.
*/
onCancel(callback) {
const l = this._listeners;
l.push(callback);
return () => {
let i = l.indexOf(callback);
if (i >= 0)
l.splice(i, 1);
};
}
}
exports.ServerCallContextController = ServerCallContextController;
/***/ }),
/***/ 6173:
/***/ (function(__unused_webpack_module, exports) {
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ServerStreamingCall = void 0;
/**
* A server streaming RPC call. The client provides exactly one input message
* but the server may respond with 0, 1, or more messages.
*/
class ServerStreamingCall {
constructor(method, requestHeaders, request, headers, response, status, trailers) {
this.method = method;
this.requestHeaders = requestHeaders;
this.request = request;
this.headers = headers;
this.responses = response;
this.status = status;
this.trailers = trailers;
}
/**
* Instead of awaiting the response status and trailers, you can
* just as well await this call itself to receive the server outcome.
* You should first setup some listeners to the `request` to
* see the actual messages the server replied with.
*/
then(onfulfilled, onrejected) {
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
}
promiseFinished() {
return __awaiter(this, void 0, void 0, function* () {
let [headers, status, trailers] = yield Promise.all([this.headers, this.status, this.trailers]);
return {
method: this.method,
requestHeaders: this.requestHeaders,
request: this.request,
headers,
status,
trailers,
};
});
}
}
exports.ServerStreamingCall = ServerStreamingCall;
/***/ }),
/***/ 6892:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ServiceType = void 0;
const reflection_info_1 = __nccwpck_require__(2496);
class ServiceType {
constructor(typeName, methods, options) {
this.typeName = typeName;
this.methods = methods.map(i => reflection_info_1.normalizeMethodInfo(i, this));
this.options = options !== null && options !== void 0 ? options : {};
}
}
exports.ServiceType = ServiceType;
/***/ }),
/***/ 9122:
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TestTransport = void 0;
const rpc_error_1 = __nccwpck_require__(8636);
const runtime_1 = __nccwpck_require__(8886);
const rpc_output_stream_1 = __nccwpck_require__(2726);
const rpc_options_1 = __nccwpck_require__(8576);
const unary_call_1 = __nccwpck_require__(9288);
const server_streaming_call_1 = __nccwpck_require__(6173);
const client_streaming_call_1 = __nccwpck_require__(7889);
const duplex_streaming_call_1 = __nccwpck_require__(6826);
/**
* Transport for testing.
*/
class TestTransport {
/**
* Initialize with mock data. Omitted fields have default value.
*/
constructor(data) {
/**
* Suppress warning / error about uncaught rejections of
* "status" and "trailers".
*/
this.suppressUncaughtRejections = true;
this.headerDelay = 10;
this.responseDelay = 50;
this.betweenResponseDelay = 10;
this.afterResponseDelay = 10;
this.data = data !== null && data !== void 0 ? data : {};
}
/**
* Sent message(s) during the last operation.
*/
get sentMessages() {
if (this.lastInput instanceof TestInputStream) {
return this.lastInput.sent;
}
else if (typeof this.lastInput == "object") {
return [this.lastInput.single];
}
return [];
}
/**
* Sending message(s) completed?
*/
get sendComplete() {
if (this.lastInput instanceof TestInputStream) {
return this.lastInput.completed;
}
else if (typeof this.lastInput == "object") {
return true;
}
return false;
}
// Creates a promise for response headers from the mock data.
promiseHeaders() {
var _a;
const headers = (_a = this.data.headers) !== null && _a !== void 0 ? _a : TestTransport.defaultHeaders;
return headers instanceof rpc_error_1.RpcError
? Promise.reject(headers)
: Promise.resolve(headers);
}
// Creates a promise for a single, valid, message from the mock data.
promiseSingleResponse(method) {
if (this.data.response instanceof rpc_error_1.RpcError) {
return Promise.reject(this.data.response);
}
let r;
if (Array.isArray(this.data.response)) {
runtime_1.assert(this.data.response.length > 0);
r = this.data.response[0];
}
else if (this.data.response !== undefined) {
r = this.data.response;
}
else {
r = method.O.create();
}
runtime_1.assert(method.O.is(r));
return Promise.resolve(r);
}
/**
* Pushes response messages from the mock data to the output stream.
* If an error response, status or trailers are mocked, the stream is
* closed with the respective error.
* Otherwise, stream is completed successfully.
*
* The returned promise resolves when the stream is closed. It should
* not reject. If it does, code is broken.
*/
streamResponses(method, stream, abort) {
return __awaiter(this, void 0, void 0, function* () {
// normalize "data.response" into an array of valid output messages
const messages = [];
if (this.data.response === undefined) {
messages.push(method.O.create());
}
else if (Array.isArray(this.data.response)) {
for (let msg of this.data.response) {
runtime_1.assert(method.O.is(msg));
messages.push(msg);
}
}
else if (!(this.data.response instanceof rpc_error_1.RpcError)) {
runtime_1.assert(method.O.is(this.data.response));
messages.push(this.data.response);
}
// start the stream with an initial delay.
// if the request is cancelled, notify() error and exit.
try {
yield delay(this.responseDelay, abort)(undefined);
}
catch (error) {
stream.notifyError(error);
return;
}
// if error response was mocked, notify() error (stream is now closed with error) and exit.
if (this.data.response instanceof rpc_error_1.RpcError) {
stream.notifyError(this.data.response);
return;
}
// regular response messages were mocked. notify() them.
for (let msg of messages) {
stream.notifyMessage(msg);
// add a short delay between responses
// if the request is cancelled, notify() error and exit.
try {
yield delay(this.betweenResponseDelay, abort)(undefined);
}
catch (error) {
stream.notifyError(error);
return;
}
}
// error status was mocked, notify() error (stream is now closed with error) and exit.
if (this.data.status instanceof rpc_error_1.RpcError) {
stream.notifyError(this.data.status);
return;
}
// error trailers were mocked, notify() error (stream is now closed with error) and exit.
if (this.data.trailers instanceof rpc_error_1.RpcError) {
stream.notifyError(this.data.trailers);
return;
}
// stream completed successfully
stream.notifyComplete();
});
}
// Creates a promise for response status from the mock data.
promiseStatus() {
var _a;
const status = (_a = this.data.status) !== null && _a !== void 0 ? _a : TestTransport.defaultStatus;
return status instanceof rpc_error_1.RpcError
? Promise.reject(status)
: Promise.resolve(status);
}
// Creates a promise for response trailers from the mock data.
promiseTrailers() {
var _a;
const trailers = (_a = this.data.trailers) !== null && _a !== void 0 ? _a : TestTransport.defaultTrailers;
return trailers instanceof rpc_error_1.RpcError
? Promise.reject(trailers)
: Promise.resolve(trailers);
}
maybeSuppressUncaught(...promise) {
if (this.suppressUncaughtRejections) {
for (let p of promise) {
p.catch(() => {
});
}
}
}
mergeOptions(options) {
return rpc_options_1.mergeRpcOptions({}, options);
}
unary(method, input, options) {
var _a;
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
.then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
.catch(_ => {
})
.then(delay(this.responseDelay, options.abort))
.then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
.catch(_ => {
})
.then(delay(this.afterResponseDelay, options.abort))
.then(_ => this.promiseStatus()), trailersPromise = responsePromise
.catch(_ => {
})
.then(delay(this.afterResponseDelay, options.abort))
.then(_ => this.promiseTrailers());
this.maybeSuppressUncaught(statusPromise, trailersPromise);
this.lastInput = { single: input };
return new unary_call_1.UnaryCall(method, requestHeaders, input, headersPromise, responsePromise, statusPromise, trailersPromise);
}
serverStreaming(method, input, options) {
var _a;
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
.then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
.then(delay(this.responseDelay, options.abort))
.catch(() => {
})
.then(() => this.streamResponses(method, outputStream, options.abort))
.then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
.then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
.then(() => this.promiseTrailers());
this.maybeSuppressUncaught(statusPromise, trailersPromise);
this.lastInput = { single: input };
return new server_streaming_call_1.ServerStreamingCall(method, requestHeaders, input, headersPromise, outputStream, statusPromise, trailersPromise);
}
clientStreaming(method, options) {
var _a;
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
.then(delay(this.headerDelay, options.abort)), responsePromise = headersPromise
.catch(_ => {
})
.then(delay(this.responseDelay, options.abort))
.then(_ => this.promiseSingleResponse(method)), statusPromise = responsePromise
.catch(_ => {
})
.then(delay(this.afterResponseDelay, options.abort))
.then(_ => this.promiseStatus()), trailersPromise = responsePromise
.catch(_ => {
})
.then(delay(this.afterResponseDelay, options.abort))
.then(_ => this.promiseTrailers());
this.maybeSuppressUncaught(statusPromise, trailersPromise);
this.lastInput = new TestInputStream(this.data, options.abort);
return new client_streaming_call_1.ClientStreamingCall(method, requestHeaders, this.lastInput, headersPromise, responsePromise, statusPromise, trailersPromise);
}
duplex(method, options) {
var _a;
const requestHeaders = (_a = options.meta) !== null && _a !== void 0 ? _a : {}, headersPromise = this.promiseHeaders()
.then(delay(this.headerDelay, options.abort)), outputStream = new rpc_output_stream_1.RpcOutputStreamController(), responseStreamClosedPromise = headersPromise
.then(delay(this.responseDelay, options.abort))
.catch(() => {
})
.then(() => this.streamResponses(method, outputStream, options.abort))
.then(delay(this.afterResponseDelay, options.abort)), statusPromise = responseStreamClosedPromise
.then(() => this.promiseStatus()), trailersPromise = responseStreamClosedPromise
.then(() => this.promiseTrailers());
this.maybeSuppressUncaught(statusPromise, trailersPromise);
this.lastInput = new TestInputStream(this.data, options.abort);
return new duplex_streaming_call_1.DuplexStreamingCall(method, requestHeaders, this.lastInput, headersPromise, outputStream, statusPromise, trailersPromise);
}
}
exports.TestTransport = TestTransport;
TestTransport.defaultHeaders = {
responseHeader: "test"
};
TestTransport.defaultStatus = {
code: "OK", detail: "all good"
};
TestTransport.defaultTrailers = {
responseTrailer: "test"
};
function delay(ms, abort) {
return (v) => new Promise((resolve, reject) => {
if (abort === null || abort === void 0 ? void 0 : abort.aborted) {
reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
}
else {
const id = setTimeout(() => resolve(v), ms);
if (abort) {
abort.addEventListener("abort", ev => {
clearTimeout(id);
reject(new rpc_error_1.RpcError("user cancel", "CANCELLED"));
});
}
}
});
}
class TestInputStream {
constructor(data, abort) {
this._completed = false;
this._sent = [];
this.data = data;
this.abort = abort;
}
get sent() {
return this._sent;
}
get completed() {
return this._completed;
}
send(message) {
if (this.data.inputMessage instanceof rpc_error_1.RpcError) {
return Promise.reject(this.data.inputMessage);
}
const delayMs = this.data.inputMessage === undefined
? 10
: this.data.inputMessage;
return Promise.resolve(undefined)
.then(() => {
this._sent.push(message);
})
.then(delay(delayMs, this.abort));
}
complete() {
if (this.data.inputComplete instanceof rpc_error_1.RpcError) {
return Promise.reject(this.data.inputComplete);
}
const delayMs = this.data.inputComplete === undefined
? 10
: this.data.inputComplete;
return Promise.resolve(undefined)
.then(() => {
this._completed = true;
})
.then(delay(delayMs, this.abort));
}
}
/***/ }),
/***/ 9288:
/***/ (function(__unused_webpack_module, exports) {
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.UnaryCall = void 0;
/**
* A unary RPC call. Unary means there is exactly one input message and
* exactly one output message unless an error occurred.
*/
class UnaryCall {
constructor(method, requestHeaders, request, headers, response, status, trailers) {
this.method = method;
this.requestHeaders = requestHeaders;
this.request = request;
this.headers = headers;
this.response = response;
this.status = status;
this.trailers = trailers;
}
/**
* If you are only interested in the final outcome of this call,
* you can await it to receive a `FinishedUnaryCall`.
*/
then(onfulfilled, onrejected) {
return this.promiseFinished().then(value => onfulfilled ? Promise.resolve(onfulfilled(value)) : value, reason => onrejected ? Promise.resolve(onrejected(reason)) : Promise.reject(reason));
}
promiseFinished() {
return __awaiter(this, void 0, void 0, function* () {
let [headers, response, status, trailers] = yield Promise.all([this.headers, this.response, this.status, this.trailers]);
return {
method: this.method,
requestHeaders: this.requestHeaders,
request: this.request,
headers,
response,
status,
trailers
};
});
}
}
exports.UnaryCall = UnaryCall;
/***/ }),
/***/ 8602:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.assertFloat32 = exports.assertUInt32 = exports.assertInt32 = exports.assertNever = exports.assert = void 0;
/**
* assert that condition is true or throw error (with message)
*/
function assert(condition, msg) {
if (!condition) {
throw new Error(msg);
}
}
exports.assert = assert;
/**
* assert that value cannot exist = type `never`. throw runtime error if it does.
*/
function assertNever(value, msg) {
throw new Error(msg !== null && msg !== void 0 ? msg : 'Unexpected object: ' + value);
}
exports.assertNever = assertNever;
const FLOAT32_MAX = 3.4028234663852886e+38, FLOAT32_MIN = -3.4028234663852886e+38, UINT32_MAX = 0xFFFFFFFF, INT32_MAX = 0X7FFFFFFF, INT32_MIN = -0X80000000;
function assertInt32(arg) {
if (typeof arg !== "number")
throw new Error('invalid int 32: ' + typeof arg);
if (!Number.isInteger(arg) || arg > INT32_MAX || arg < INT32_MIN)
throw new Error('invalid int 32: ' + arg);
}
exports.assertInt32 = assertInt32;
function assertUInt32(arg) {
if (typeof arg !== "number")
throw new Error('invalid uint 32: ' + typeof arg);
if (!Number.isInteger(arg) || arg > UINT32_MAX || arg < 0)
throw new Error('invalid uint 32: ' + arg);
}
exports.assertUInt32 = assertUInt32;
function assertFloat32(arg) {
if (typeof arg !== "number")
throw new Error('invalid float 32: ' + typeof arg);
if (!Number.isFinite(arg))
return;
if (arg > FLOAT32_MAX || arg < FLOAT32_MIN)
throw new Error('invalid float 32: ' + arg);
}
exports.assertFloat32 = assertFloat32;
/***/ }),
/***/ 6335:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.base64encode = exports.base64decode = void 0;
// lookup table from base64 character to byte
let encTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
// lookup table from base64 character *code* to byte because lookup by number is fast
let decTable = [];
for (let i = 0; i < encTable.length; i++)
decTable[encTable[i].charCodeAt(0)] = i;
// support base64url variants
decTable["-".charCodeAt(0)] = encTable.indexOf("+");
decTable["_".charCodeAt(0)] = encTable.indexOf("/");
/**
* Decodes a base64 string to a byte array.
*
* - ignores white-space, including line breaks and tabs
* - allows inner padding (can decode concatenated base64 strings)
* - does not require padding
* - understands base64url encoding:
* "-" instead of "+",
* "_" instead of "/",
* no padding
*/
function base64decode(base64Str) {
// estimate byte size, not accounting for inner padding and whitespace
let es = base64Str.length * 3 / 4;
// if (es % 3 !== 0)
// throw new Error('invalid base64 string');
if (base64Str[base64Str.length - 2] == '=')
es -= 2;
else if (base64Str[base64Str.length - 1] == '=')
es -= 1;
let bytes = new Uint8Array(es), bytePos = 0, // position in byte array
groupPos = 0, // position in base64 group
b, // current byte
p = 0 // previous byte
;
for (let i = 0; i < base64Str.length; i++) {
b = decTable[base64Str.charCodeAt(i)];
if (b === undefined) {
// noinspection FallThroughInSwitchStatementJS
switch (base64Str[i]) {
case '=':
groupPos = 0; // reset state when padding found
case '\n':
case '\r':
case '\t':
case ' ':
continue; // skip white-space, and padding
default:
throw Error(`invalid base64 string.`);
}
}
switch (groupPos) {
case 0:
p = b;
groupPos = 1;
break;
case 1:
bytes[bytePos++] = p << 2 | (b & 48) >> 4;
p = b;
groupPos = 2;
break;
case 2:
bytes[bytePos++] = (p & 15) << 4 | (b & 60) >> 2;
p = b;
groupPos = 3;
break;
case 3:
bytes[bytePos++] = (p & 3) << 6 | b;
groupPos = 0;
break;
}
}
if (groupPos == 1)
throw Error(`invalid base64 string.`);
return bytes.subarray(0, bytePos);
}
exports.base64decode = base64decode;
/**
* Encodes a byte array to a base64 string.
* Adds padding at the end.
* Does not insert newlines.
*/
function base64encode(bytes) {
let base64 = '', groupPos = 0, // position in base64 group
b, // current byte
p = 0; // carry over from previous byte
for (let i = 0; i < bytes.length; i++) {
b = bytes[i];
switch (groupPos) {
case 0:
base64 += encTable[b >> 2];
p = (b & 3) << 4;
groupPos = 1;
break;
case 1:
base64 += encTable[p | b >> 4];
p = (b & 15) << 2;
groupPos = 2;
break;
case 2:
base64 += encTable[p | b >> 6];
base64 += encTable[b & 63];
groupPos = 0;
break;
}
}
// padding required?
if (groupPos) {
base64 += encTable[p];
base64 += '=';
if (groupPos == 1)
base64 += '=';
}
return base64;
}
exports.base64encode = base64encode;
/***/ }),
/***/ 4816:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.WireType = exports.mergeBinaryOptions = exports.UnknownFieldHandler = void 0;
/**
* This handler implements the default behaviour for unknown fields.
* When reading data, unknown fields are stored on the message, in a
* symbol property.
* When writing data, the symbol property is queried and unknown fields
* are serialized into the output again.
*/
var UnknownFieldHandler;
(function (UnknownFieldHandler) {
/**
* The symbol used to store unknown fields for a message.
* The property must conform to `UnknownFieldContainer`.
*/
UnknownFieldHandler.symbol = Symbol.for("protobuf-ts/unknown");
/**
* Store an unknown field during binary read directly on the message.
* This method is compatible with `BinaryReadOptions.readUnknownField`.
*/
UnknownFieldHandler.onRead = (typeName, message, fieldNo, wireType, data) => {
let container = is(message) ? message[UnknownFieldHandler.symbol] : message[UnknownFieldHandler.symbol] = [];
container.push({ no: fieldNo, wireType, data });
};
/**
* Write unknown fields stored for the message to the writer.
* This method is compatible with `BinaryWriteOptions.writeUnknownFields`.
*/
UnknownFieldHandler.onWrite = (typeName, message, writer) => {
for (let { no, wireType, data } of UnknownFieldHandler.list(message))
writer.tag(no, wireType).raw(data);
};
/**
* List unknown fields stored for the message.
* Note that there may be multiples fields with the same number.
*/
UnknownFieldHandler.list = (message, fieldNo) => {
if (is(message)) {
let all = message[UnknownFieldHandler.symbol];
return fieldNo ? all.filter(uf => uf.no == fieldNo) : all;
}
return [];
};
/**
* Returns the last unknown field by field number.
*/
UnknownFieldHandler.last = (message, fieldNo) => UnknownFieldHandler.list(message, fieldNo).slice(-1)[0];
const is = (message) => message && Array.isArray(message[UnknownFieldHandler.symbol]);
})(UnknownFieldHandler = exports.UnknownFieldHandler || (exports.UnknownFieldHandler = {}));
/**
* Merges binary write or read options. Later values override earlier values.
*/
function mergeBinaryOptions(a, b) {
return Object.assign(Object.assign({}, a), b);
}
exports.mergeBinaryOptions = mergeBinaryOptions;
/**
* Protobuf binary format wire types.
*
* A wire type provides just enough information to find the length of the
* following value.
*
* See https://developers.google.com/protocol-buffers/docs/encoding#structure
*/
var WireType;
(function (WireType) {
/**
* Used for int32, int64, uint32, uint64, sint32, sint64, bool, enum
*/
WireType[WireType["Varint"] = 0] = "Varint";
/**
* Used for fixed64, sfixed64, double.
* Always 8 bytes with little-endian byte order.
*/
WireType[WireType["Bit64"] = 1] = "Bit64";
/**
* Used for string, bytes, embedded messages, packed repeated fields
*
* Only repeated numeric types (types which use the varint, 32-bit,
* or 64-bit wire types) can be packed. In proto3, such fields are
* packed by default.
*/
WireType[WireType["LengthDelimited"] = 2] = "LengthDelimited";
/**
* Used for groups
* @deprecated
*/
WireType[WireType["StartGroup"] = 3] = "StartGroup";
/**
* Used for groups
* @deprecated
*/
WireType[WireType["EndGroup"] = 4] = "EndGroup";
/**
* Used for fixed32, sfixed32, float.
* Always 4 bytes with little-endian byte order.
*/
WireType[WireType["Bit32"] = 5] = "Bit32";
})(WireType = exports.WireType || (exports.WireType = {}));
/***/ }),
/***/ 2889:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.BinaryReader = exports.binaryReadOptions = void 0;
const binary_format_contract_1 = __nccwpck_require__(4816);
const pb_long_1 = __nccwpck_require__(1753);
const goog_varint_1 = __nccwpck_require__(3223);
const defaultsRead = {
readUnknownField: true,
readerFactory: bytes => new BinaryReader(bytes),
};
/**
* Make options for reading binary data form partial options.
*/
function binaryReadOptions(options) {
return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
}
exports.binaryReadOptions = binaryReadOptions;
class BinaryReader {
constructor(buf, textDecoder) {
this.varint64 = goog_varint_1.varint64read; // dirty cast for `this`
/**
* Read a `uint32` field, an unsigned 32 bit varint.
*/
this.uint32 = goog_varint_1.varint32read; // dirty cast for `this` and access to protected `buf`
this.buf = buf;
this.len = buf.length;
this.pos = 0;
this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
this.textDecoder = textDecoder !== null && textDecoder !== void 0 ? textDecoder : new TextDecoder("utf-8", {
fatal: true,
ignoreBOM: true,
});
}
/**
* Reads a tag - field number and wire type.
*/
tag() {
let tag = this.uint32(), fieldNo = tag >>> 3, wireType = tag & 7;
if (fieldNo <= 0 || wireType < 0 || wireType > 5)
throw new Error("illegal tag: field no " + fieldNo + " wire type " + wireType);
return [fieldNo, wireType];
}
/**
* Skip one element on the wire and return the skipped data.
* Supports WireType.StartGroup since v2.0.0-alpha.23.
*/
skip(wireType) {
let start = this.pos;
// noinspection FallThroughInSwitchStatementJS
switch (wireType) {
case binary_format_contract_1.WireType.Varint:
while (this.buf[this.pos++] & 0x80) {
// ignore
}
break;
case binary_format_contract_1.WireType.Bit64:
this.pos += 4;
case binary_format_contract_1.WireType.Bit32:
this.pos += 4;
break;
case binary_format_contract_1.WireType.LengthDelimited:
let len = this.uint32();
this.pos += len;
break;
case binary_format_contract_1.WireType.StartGroup:
// From descriptor.proto: Group type is deprecated, not supported in proto3.
// But we must still be able to parse and treat as unknown.
let t;
while ((t = this.tag()[1]) !== binary_format_contract_1.WireType.EndGroup) {
this.skip(t);
}
break;
default:
throw new Error("cant skip wire type " + wireType);
}
this.assertBounds();
return this.buf.subarray(start, this.pos);
}
/**
* Throws error if position in byte array is out of range.
*/
assertBounds() {
if (this.pos > this.len)
throw new RangeError("premature EOF");
}
/**
* Read a `int32` field, a signed 32 bit varint.
*/
int32() {
return this.uint32() | 0;
}
/**
* Read a `sint32` field, a signed, zigzag-encoded 32-bit varint.
*/
sint32() {
let zze = this.uint32();
// decode zigzag
return (zze >>> 1) ^ -(zze & 1);
}
/**
* Read a `int64` field, a signed 64-bit varint.
*/
int64() {
return new pb_long_1.PbLong(...this.varint64());
}
/**
* Read a `uint64` field, an unsigned 64-bit varint.
*/
uint64() {
return new pb_long_1.PbULong(...this.varint64());
}
/**
* Read a `sint64` field, a signed, zig-zag-encoded 64-bit varint.
*/
sint64() {
let [lo, hi] = this.varint64();
// decode zig zag
let s = -(lo & 1);
lo = ((lo >>> 1 | (hi & 1) << 31) ^ s);
hi = (hi >>> 1 ^ s);
return new pb_long_1.PbLong(lo, hi);
}
/**
* Read a `bool` field, a variant.
*/
bool() {
let [lo, hi] = this.varint64();
return lo !== 0 || hi !== 0;
}
/**
* Read a `fixed32` field, an unsigned, fixed-length 32-bit integer.
*/
fixed32() {
return this.view.getUint32((this.pos += 4) - 4, true);
}
/**
* Read a `sfixed32` field, a signed, fixed-length 32-bit integer.
*/
sfixed32() {
return this.view.getInt32((this.pos += 4) - 4, true);
}
/**
* Read a `fixed64` field, an unsigned, fixed-length 64 bit integer.
*/
fixed64() {
return new pb_long_1.PbULong(this.sfixed32(), this.sfixed32());
}
/**
* Read a `fixed64` field, a signed, fixed-length 64-bit integer.
*/
sfixed64() {
return new pb_long_1.PbLong(this.sfixed32(), this.sfixed32());
}
/**
* Read a `float` field, 32-bit floating point number.
*/
float() {
return this.view.getFloat32((this.pos += 4) - 4, true);
}
/**
* Read a `double` field, a 64-bit floating point number.
*/
double() {
return this.view.getFloat64((this.pos += 8) - 8, true);
}
/**
* Read a `bytes` field, length-delimited arbitrary data.
*/
bytes() {
let len = this.uint32();
let start = this.pos;
this.pos += len;
this.assertBounds();
return this.buf.subarray(start, start + len);
}
/**
* Read a `string` field, length-delimited data converted to UTF-8 text.
*/
string() {
return this.textDecoder.decode(this.bytes());
}
}
exports.BinaryReader = BinaryReader;
/***/ }),
/***/ 3957:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.BinaryWriter = exports.binaryWriteOptions = void 0;
const pb_long_1 = __nccwpck_require__(1753);
const goog_varint_1 = __nccwpck_require__(3223);
const assert_1 = __nccwpck_require__(8602);
const defaultsWrite = {
writeUnknownFields: true,
writerFactory: () => new BinaryWriter(),
};
/**
* Make options for writing binary data form partial options.
*/
function binaryWriteOptions(options) {
return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
}
exports.binaryWriteOptions = binaryWriteOptions;
class BinaryWriter {
constructor(textEncoder) {
/**
* Previous fork states.
*/
this.stack = [];
this.textEncoder = textEncoder !== null && textEncoder !== void 0 ? textEncoder : new TextEncoder();
this.chunks = [];
this.buf = [];
}
/**
* Return all bytes written and reset this writer.
*/
finish() {
this.chunks.push(new Uint8Array(this.buf)); // flush the buffer
let len = 0;
for (let i = 0; i < this.chunks.length; i++)
len += this.chunks[i].length;
let bytes = new Uint8Array(len);
let offset = 0;
for (let i = 0; i < this.chunks.length; i++) {
bytes.set(this.chunks[i], offset);
offset += this.chunks[i].length;
}
this.chunks = [];
return bytes;
}
/**
* Start a new fork for length-delimited data like a message
* or a packed repeated field.
*
* Must be joined later with `join()`.
*/
fork() {
this.stack.push({ chunks: this.chunks, buf: this.buf });
this.chunks = [];
this.buf = [];
return this;
}
/**
* Join the last fork. Write its length and bytes, then
* return to the previous state.
*/
join() {
// get chunk of fork
let chunk = this.finish();
// restore previous state
let prev = this.stack.pop();
if (!prev)
throw new Error('invalid state, fork stack empty');
this.chunks = prev.chunks;
this.buf = prev.buf;
// write length of chunk as varint
this.uint32(chunk.byteLength);
return this.raw(chunk);
}
/**
* Writes a tag (field number and wire type).
*
* Equivalent to `uint32( (fieldNo << 3 | type) >>> 0 )`.
*
* Generated code should compute the tag ahead of time and call `uint32()`.
*/
tag(fieldNo, type) {
return this.uint32((fieldNo << 3 | type) >>> 0);
}
/**
* Write a chunk of raw bytes.
*/
raw(chunk) {
if (this.buf.length) {
this.chunks.push(new Uint8Array(this.buf));
this.buf = [];
}
this.chunks.push(chunk);
return this;
}
/**
* Write a `uint32` value, an unsigned 32 bit varint.
*/
uint32(value) {
assert_1.assertUInt32(value);
// write value as varint 32, inlined for speed
while (value > 0x7f) {
this.buf.push((value & 0x7f) | 0x80);
value = value >>> 7;
}
this.buf.push(value);
return this;
}
/**
* Write a `int32` value, a signed 32 bit varint.
*/
int32(value) {
assert_1.assertInt32(value);
goog_varint_1.varint32write(value, this.buf);
return this;
}
/**
* Write a `bool` value, a variant.
*/
bool(value) {
this.buf.push(value ? 1 : 0);
return this;
}
/**
* Write a `bytes` value, length-delimited arbitrary data.
*/
bytes(value) {
this.uint32(value.byteLength); // write length of chunk as varint
return this.raw(value);
}
/**
* Write a `string` value, length-delimited data converted to UTF-8 text.
*/
string(value) {
let chunk = this.textEncoder.encode(value);
this.uint32(chunk.byteLength); // write length of chunk as varint
return this.raw(chunk);
}
/**
* Write a `float` value, 32-bit floating point number.
*/
float(value) {
assert_1.assertFloat32(value);
let chunk = new Uint8Array(4);
new DataView(chunk.buffer).setFloat32(0, value, true);
return this.raw(chunk);
}
/**
* Write a `double` value, a 64-bit floating point number.
*/
double(value) {
let chunk = new Uint8Array(8);
new DataView(chunk.buffer).setFloat64(0, value, true);
return this.raw(chunk);
}
/**
* Write a `fixed32` value, an unsigned, fixed-length 32-bit integer.
*/
fixed32(value) {
assert_1.assertUInt32(value);
let chunk = new Uint8Array(4);
new DataView(chunk.buffer).setUint32(0, value, true);
return this.raw(chunk);
}
/**
* Write a `sfixed32` value, a signed, fixed-length 32-bit integer.
*/
sfixed32(value) {
assert_1.assertInt32(value);
let chunk = new Uint8Array(4);
new DataView(chunk.buffer).setInt32(0, value, true);
return this.raw(chunk);
}
/**
* Write a `sint32` value, a signed, zigzag-encoded 32-bit varint.
*/
sint32(value) {
assert_1.assertInt32(value);
// zigzag encode
value = ((value << 1) ^ (value >> 31)) >>> 0;
goog_varint_1.varint32write(value, this.buf);
return this;
}
/**
* Write a `fixed64` value, a signed, fixed-length 64-bit integer.
*/
sfixed64(value) {
let chunk = new Uint8Array(8);
let view = new DataView(chunk.buffer);
let long = pb_long_1.PbLong.from(value);
view.setInt32(0, long.lo, true);
view.setInt32(4, long.hi, true);
return this.raw(chunk);
}
/**
* Write a `fixed64` value, an unsigned, fixed-length 64 bit integer.
*/
fixed64(value) {
let chunk = new Uint8Array(8);
let view = new DataView(chunk.buffer);
let long = pb_long_1.PbULong.from(value);
view.setInt32(0, long.lo, true);
view.setInt32(4, long.hi, true);
return this.raw(chunk);
}
/**
* Write a `int64` value, a signed 64-bit varint.
*/
int64(value) {
let long = pb_long_1.PbLong.from(value);
goog_varint_1.varint64write(long.lo, long.hi, this.buf);
return this;
}
/**
* Write a `sint64` value, a signed, zig-zag-encoded 64-bit varint.
*/
sint64(value) {
let long = pb_long_1.PbLong.from(value),
// zigzag encode
sign = long.hi >> 31, lo = (long.lo << 1) ^ sign, hi = ((long.hi << 1) | (long.lo >>> 31)) ^ sign;
goog_varint_1.varint64write(lo, hi, this.buf);
return this;
}
/**
* Write a `uint64` value, an unsigned 64-bit varint.
*/
uint64(value) {
let long = pb_long_1.PbULong.from(value);
goog_varint_1.varint64write(long.lo, long.hi, this.buf);
return this;
}
}
exports.BinaryWriter = BinaryWriter;
/***/ }),
/***/ 257:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.listEnumNumbers = exports.listEnumNames = exports.listEnumValues = exports.isEnumObject = void 0;
/**
* Is this a lookup object generated by Typescript, for a Typescript enum
* generated by protobuf-ts?
*
* - No `const enum` (enum must not be inlined, we need reverse mapping).
* - No string enum (we need int32 for protobuf).
* - Must have a value for 0 (otherwise, we would need to support custom default values).
*/
function isEnumObject(arg) {
if (typeof arg != 'object' || arg === null) {
return false;
}
if (!arg.hasOwnProperty(0)) {
return false;
}
for (let k of Object.keys(arg)) {
let num = parseInt(k);
if (!Number.isNaN(num)) {
// is there a name for the number?
let nam = arg[num];
if (nam === undefined)
return false;
// does the name resolve back to the number?
if (arg[nam] !== num)
return false;
}
else {
// is there a number for the name?
let num = arg[k];
if (num === undefined)
return false;
// is it a string enum?
if (typeof num !== 'number')
return false;
// do we know the number?
if (arg[num] === undefined)
return false;
}
}
return true;
}
exports.isEnumObject = isEnumObject;
/**
* Lists all values of a Typescript enum, as an array of objects with a "name"
* property and a "number" property.
*
* Note that it is possible that a number appears more than once, because it is
* possible to have aliases in an enum.
*
* Throws if the enum does not adhere to the rules of enums generated by
* protobuf-ts. See `isEnumObject()`.
*/
function listEnumValues(enumObject) {
if (!isEnumObject(enumObject))
throw new Error("not a typescript enum object");
let values = [];
for (let [name, number] of Object.entries(enumObject))
if (typeof number == "number")
values.push({ name, number });
return values;
}
exports.listEnumValues = listEnumValues;
/**
* Lists the names of a Typescript enum.
*
* Throws if the enum does not adhere to the rules of enums generated by
* protobuf-ts. See `isEnumObject()`.
*/
function listEnumNames(enumObject) {
return listEnumValues(enumObject).map(val => val.name);
}
exports.listEnumNames = listEnumNames;
/**
* Lists the numbers of a Typescript enum.
*
* Throws if the enum does not adhere to the rules of enums generated by
* protobuf-ts. See `isEnumObject()`.
*/
function listEnumNumbers(enumObject) {
return listEnumValues(enumObject)
.map(val => val.number)
.filter((num, index, arr) => arr.indexOf(num) == index);
}
exports.listEnumNumbers = listEnumNumbers;
/***/ }),
/***/ 3223:
/***/ ((__unused_webpack_module, exports) => {
// Copyright 2008 Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Code generated by the Protocol Buffer compiler is owned by the owner
// of the input file used when generating it. This code is not
// standalone and requires a support library to be linked with it. This
// support library is itself covered by the above license.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.varint32read = exports.varint32write = exports.int64toString = exports.int64fromString = exports.varint64write = exports.varint64read = void 0;
/**
* Read a 64 bit varint as two JS numbers.
*
* Returns tuple:
* [0]: low bits
* [0]: high bits
*
* Copyright 2008 Google Inc. All rights reserved.
*
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L175
*/
function varint64read() {
let lowBits = 0;
let highBits = 0;
for (let shift = 0; shift < 28; shift += 7) {
let b = this.buf[this.pos++];
lowBits |= (b & 0x7F) << shift;
if ((b & 0x80) == 0) {
this.assertBounds();
return [lowBits, highBits];
}
}
let middleByte = this.buf[this.pos++];
// last four bits of the first 32 bit number
lowBits |= (middleByte & 0x0F) << 28;
// 3 upper bits are part of the next 32 bit number
highBits = (middleByte & 0x70) >> 4;
if ((middleByte & 0x80) == 0) {
this.assertBounds();
return [lowBits, highBits];
}
for (let shift = 3; shift <= 31; shift += 7) {
let b = this.buf[this.pos++];
highBits |= (b & 0x7F) << shift;
if ((b & 0x80) == 0) {
this.assertBounds();
return [lowBits, highBits];
}
}
throw new Error('invalid varint');
}
exports.varint64read = varint64read;
/**
* Write a 64 bit varint, given as two JS numbers, to the given bytes array.
*
* Copyright 2008 Google Inc. All rights reserved.
*
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/writer.js#L344
*/
function varint64write(lo, hi, bytes) {
for (let i = 0; i < 28; i = i + 7) {
const shift = lo >>> i;
const hasNext = !((shift >>> 7) == 0 && hi == 0);
const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
bytes.push(byte);
if (!hasNext) {
return;
}
}
const splitBits = ((lo >>> 28) & 0x0F) | ((hi & 0x07) << 4);
const hasMoreBits = !((hi >> 3) == 0);
bytes.push((hasMoreBits ? splitBits | 0x80 : splitBits) & 0xFF);
if (!hasMoreBits) {
return;
}
for (let i = 3; i < 31; i = i + 7) {
const shift = hi >>> i;
const hasNext = !((shift >>> 7) == 0);
const byte = (hasNext ? shift | 0x80 : shift) & 0xFF;
bytes.push(byte);
if (!hasNext) {
return;
}
}
bytes.push((hi >>> 31) & 0x01);
}
exports.varint64write = varint64write;
// constants for binary math
const TWO_PWR_32_DBL = (1 << 16) * (1 << 16);
/**
* Parse decimal string of 64 bit integer value as two JS numbers.
*
* Returns tuple:
* [0]: minus sign?
* [1]: low bits
* [2]: high bits
*
* Copyright 2008 Google Inc.
*/
function int64fromString(dec) {
// Check for minus sign.
let minus = dec[0] == '-';
if (minus)
dec = dec.slice(1);
// Work 6 decimal digits at a time, acting like we're converting base 1e6
// digits to binary. This is safe to do with floating point math because
// Number.isSafeInteger(ALL_32_BITS * 1e6) == true.
const base = 1e6;
let lowBits = 0;
let highBits = 0;
function add1e6digit(begin, end) {
// Note: Number('') is 0.
const digit1e6 = Number(dec.slice(begin, end));
highBits *= base;
lowBits = lowBits * base + digit1e6;
// Carry bits from lowBits to highBits
if (lowBits >= TWO_PWR_32_DBL) {
highBits = highBits + ((lowBits / TWO_PWR_32_DBL) | 0);
lowBits = lowBits % TWO_PWR_32_DBL;
}
}
add1e6digit(-24, -18);
add1e6digit(-18, -12);
add1e6digit(-12, -6);
add1e6digit(-6);
return [minus, lowBits, highBits];
}
exports.int64fromString = int64fromString;
/**
* Format 64 bit integer value (as two JS numbers) to decimal string.
*
* Copyright 2008 Google Inc.
*/
function int64toString(bitsLow, bitsHigh) {
// Skip the expensive conversion if the number is small enough to use the
// built-in conversions.
if ((bitsHigh >>> 0) <= 0x1FFFFF) {
return '' + (TWO_PWR_32_DBL * bitsHigh + (bitsLow >>> 0));
}
// What this code is doing is essentially converting the input number from
// base-2 to base-1e7, which allows us to represent the 64-bit range with
// only 3 (very large) digits. Those digits are then trivial to convert to
// a base-10 string.
// The magic numbers used here are -
// 2^24 = 16777216 = (1,6777216) in base-1e7.
// 2^48 = 281474976710656 = (2,8147497,6710656) in base-1e7.
// Split 32:32 representation into 16:24:24 representation so our
// intermediate digits don't overflow.
let low = bitsLow & 0xFFFFFF;
let mid = (((bitsLow >>> 24) | (bitsHigh << 8)) >>> 0) & 0xFFFFFF;
let high = (bitsHigh >> 16) & 0xFFFF;
// Assemble our three base-1e7 digits, ignoring carries. The maximum
// value in a digit at this step is representable as a 48-bit integer, which
// can be stored in a 64-bit floating point number.
let digitA = low + (mid * 6777216) + (high * 6710656);
let digitB = mid + (high * 8147497);
let digitC = (high * 2);
// Apply carries from A to B and from B to C.
let base = 10000000;
if (digitA >= base) {
digitB += Math.floor(digitA / base);
digitA %= base;
}
if (digitB >= base) {
digitC += Math.floor(digitB / base);
digitB %= base;
}
// Convert base-1e7 digits to base-10, with optional leading zeroes.
function decimalFrom1e7(digit1e7, needLeadingZeros) {
let partial = digit1e7 ? String(digit1e7) : '';
if (needLeadingZeros) {
return '0000000'.slice(partial.length) + partial;
}
return partial;
}
return decimalFrom1e7(digitC, /*needLeadingZeros=*/ 0) +
decimalFrom1e7(digitB, /*needLeadingZeros=*/ digitC) +
// If the final 1e7 digit didn't need leading zeros, we would have
// returned via the trivial code path at the top.
decimalFrom1e7(digitA, /*needLeadingZeros=*/ 1);
}
exports.int64toString = int64toString;
/**
* Write a 32 bit varint, signed or unsigned. Same as `varint64write(0, value, bytes)`
*
* Copyright 2008 Google Inc. All rights reserved.
*
* See https://github.com/protocolbuffers/protobuf/blob/1b18833f4f2a2f681f4e4a25cdf3b0a43115ec26/js/binary/encoder.js#L144
*/
function varint32write(value, bytes) {
if (value >= 0) {
// write value as varint 32
while (value > 0x7f) {
bytes.push((value & 0x7f) | 0x80);
value = value >>> 7;
}
bytes.push(value);
}
else {
for (let i = 0; i < 9; i++) {
bytes.push(value & 127 | 128);
value = value >> 7;
}
bytes.push(1);
}
}
exports.varint32write = varint32write;
/**
* Read an unsigned 32 bit varint.
*
* See https://github.com/protocolbuffers/protobuf/blob/8a71927d74a4ce34efe2d8769fda198f52d20d12/js/experimental/runtime/kernel/buffer_decoder.js#L220
*/
function varint32read() {
let b = this.buf[this.pos++];
let result = b & 0x7F;
if ((b & 0x80) == 0) {
this.assertBounds();
return result;
}
b = this.buf[this.pos++];
result |= (b & 0x7F) << 7;
if ((b & 0x80) == 0) {
this.assertBounds();
return result;
}
b = this.buf[this.pos++];
result |= (b & 0x7F) << 14;
if ((b & 0x80) == 0) {
this.assertBounds();
return result;
}
b = this.buf[this.pos++];
result |= (b & 0x7F) << 21;
if ((b & 0x80) == 0) {
this.assertBounds();
return result;
}
// Extract only last 4 bits
b = this.buf[this.pos++];
result |= (b & 0x0F) << 28;
for (let readBytes = 5; ((b & 0x80) !== 0) && readBytes < 10; readBytes++)
b = this.buf[this.pos++];
if ((b & 0x80) != 0)
throw new Error('invalid varint');
this.assertBounds();
// Result can have 32 bits, convert it to unsigned
return result >>> 0;
}
exports.varint32read = varint32read;
/***/ }),
/***/ 8886:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
// Public API of the protobuf-ts runtime.
// Note: we do not use `export * from ...` to help tree shakers,
// webpack verbose output hints that this should be useful
Object.defineProperty(exports, "__esModule", ({ value: true }));
// Convenience JSON typings and corresponding type guards
var json_typings_1 = __nccwpck_require__(9999);
Object.defineProperty(exports, "typeofJsonValue", ({ enumerable: true, get: function () { return json_typings_1.typeofJsonValue; } }));
Object.defineProperty(exports, "isJsonObject", ({ enumerable: true, get: function () { return json_typings_1.isJsonObject; } }));
// Base 64 encoding
var base64_1 = __nccwpck_require__(6335);
Object.defineProperty(exports, "base64decode", ({ enumerable: true, get: function () { return base64_1.base64decode; } }));
Object.defineProperty(exports, "base64encode", ({ enumerable: true, get: function () { return base64_1.base64encode; } }));
// UTF8 encoding
var protobufjs_utf8_1 = __nccwpck_require__(8950);
Object.defineProperty(exports, "utf8read", ({ enumerable: true, get: function () { return protobufjs_utf8_1.utf8read; } }));
// Binary format contracts, options for reading and writing, for example
var binary_format_contract_1 = __nccwpck_require__(4816);
Object.defineProperty(exports, "WireType", ({ enumerable: true, get: function () { return binary_format_contract_1.WireType; } }));
Object.defineProperty(exports, "mergeBinaryOptions", ({ enumerable: true, get: function () { return binary_format_contract_1.mergeBinaryOptions; } }));
Object.defineProperty(exports, "UnknownFieldHandler", ({ enumerable: true, get: function () { return binary_format_contract_1.UnknownFieldHandler; } }));
// Standard IBinaryReader implementation
var binary_reader_1 = __nccwpck_require__(2889);
Object.defineProperty(exports, "BinaryReader", ({ enumerable: true, get: function () { return binary_reader_1.BinaryReader; } }));
Object.defineProperty(exports, "binaryReadOptions", ({ enumerable: true, get: function () { return binary_reader_1.binaryReadOptions; } }));
// Standard IBinaryWriter implementation
var binary_writer_1 = __nccwpck_require__(3957);
Object.defineProperty(exports, "BinaryWriter", ({ enumerable: true, get: function () { return binary_writer_1.BinaryWriter; } }));
Object.defineProperty(exports, "binaryWriteOptions", ({ enumerable: true, get: function () { return binary_writer_1.binaryWriteOptions; } }));
// Int64 and UInt64 implementations required for the binary format
var pb_long_1 = __nccwpck_require__(1753);
Object.defineProperty(exports, "PbLong", ({ enumerable: true, get: function () { return pb_long_1.PbLong; } }));
Object.defineProperty(exports, "PbULong", ({ enumerable: true, get: function () { return pb_long_1.PbULong; } }));
// JSON format contracts, options for reading and writing, for example
var json_format_contract_1 = __nccwpck_require__(9367);
Object.defineProperty(exports, "jsonReadOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonReadOptions; } }));
Object.defineProperty(exports, "jsonWriteOptions", ({ enumerable: true, get: function () { return json_format_contract_1.jsonWriteOptions; } }));
Object.defineProperty(exports, "mergeJsonOptions", ({ enumerable: true, get: function () { return json_format_contract_1.mergeJsonOptions; } }));
// Message type contract
var message_type_contract_1 = __nccwpck_require__(3785);
Object.defineProperty(exports, "MESSAGE_TYPE", ({ enumerable: true, get: function () { return message_type_contract_1.MESSAGE_TYPE; } }));
// Message type implementation via reflection
var message_type_1 = __nccwpck_require__(5106);
Object.defineProperty(exports, "MessageType", ({ enumerable: true, get: function () { return message_type_1.MessageType; } }));
// Reflection info, generated by the plugin, exposed to the user, used by reflection ops
var reflection_info_1 = __nccwpck_require__(7910);
Object.defineProperty(exports, "ScalarType", ({ enumerable: true, get: function () { return reflection_info_1.ScalarType; } }));
Object.defineProperty(exports, "LongType", ({ enumerable: true, get: function () { return reflection_info_1.LongType; } }));
Object.defineProperty(exports, "RepeatType", ({ enumerable: true, get: function () { return reflection_info_1.RepeatType; } }));
Object.defineProperty(exports, "normalizeFieldInfo", ({ enumerable: true, get: function () { return reflection_info_1.normalizeFieldInfo; } }));
Object.defineProperty(exports, "readFieldOptions", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOptions; } }));
Object.defineProperty(exports, "readFieldOption", ({ enumerable: true, get: function () { return reflection_info_1.readFieldOption; } }));
Object.defineProperty(exports, "readMessageOption", ({ enumerable: true, get: function () { return reflection_info_1.readMessageOption; } }));
// Message operations via reflection
var reflection_type_check_1 = __nccwpck_require__(5167);
Object.defineProperty(exports, "ReflectionTypeCheck", ({ enumerable: true, get: function () { return reflection_type_check_1.ReflectionTypeCheck; } }));
var reflection_create_1 = __nccwpck_require__(5726);
Object.defineProperty(exports, "reflectionCreate", ({ enumerable: true, get: function () { return reflection_create_1.reflectionCreate; } }));
var reflection_scalar_default_1 = __nccwpck_require__(9526);
Object.defineProperty(exports, "reflectionScalarDefault", ({ enumerable: true, get: function () { return reflection_scalar_default_1.reflectionScalarDefault; } }));
var reflection_merge_partial_1 = __nccwpck_require__(8044);
Object.defineProperty(exports, "reflectionMergePartial", ({ enumerable: true, get: function () { return reflection_merge_partial_1.reflectionMergePartial; } }));
var reflection_equals_1 = __nccwpck_require__(4827);
Object.defineProperty(exports, "reflectionEquals", ({ enumerable: true, get: function () { return reflection_equals_1.reflectionEquals; } }));
var reflection_binary_reader_1 = __nccwpck_require__(9611);
Object.defineProperty(exports, "ReflectionBinaryReader", ({ enumerable: true, get: function () { return reflection_binary_reader_1.ReflectionBinaryReader; } }));
var reflection_binary_writer_1 = __nccwpck_require__(6907);
Object.defineProperty(exports, "ReflectionBinaryWriter", ({ enumerable: true, get: function () { return reflection_binary_writer_1.ReflectionBinaryWriter; } }));
var reflection_json_reader_1 = __nccwpck_require__(6790);
Object.defineProperty(exports, "ReflectionJsonReader", ({ enumerable: true, get: function () { return reflection_json_reader_1.ReflectionJsonReader; } }));
var reflection_json_writer_1 = __nccwpck_require__(1094);
Object.defineProperty(exports, "ReflectionJsonWriter", ({ enumerable: true, get: function () { return reflection_json_writer_1.ReflectionJsonWriter; } }));
var reflection_contains_message_type_1 = __nccwpck_require__(9946);
Object.defineProperty(exports, "containsMessageType", ({ enumerable: true, get: function () { return reflection_contains_message_type_1.containsMessageType; } }));
// Oneof helpers
var oneof_1 = __nccwpck_require__(8063);
Object.defineProperty(exports, "isOneofGroup", ({ enumerable: true, get: function () { return oneof_1.isOneofGroup; } }));
Object.defineProperty(exports, "setOneofValue", ({ enumerable: true, get: function () { return oneof_1.setOneofValue; } }));
Object.defineProperty(exports, "getOneofValue", ({ enumerable: true, get: function () { return oneof_1.getOneofValue; } }));
Object.defineProperty(exports, "clearOneofValue", ({ enumerable: true, get: function () { return oneof_1.clearOneofValue; } }));
Object.defineProperty(exports, "getSelectedOneofValue", ({ enumerable: true, get: function () { return oneof_1.getSelectedOneofValue; } }));
// Enum object type guard and reflection util, may be interesting to the user.
var enum_object_1 = __nccwpck_require__(257);
Object.defineProperty(exports, "listEnumValues", ({ enumerable: true, get: function () { return enum_object_1.listEnumValues; } }));
Object.defineProperty(exports, "listEnumNames", ({ enumerable: true, get: function () { return enum_object_1.listEnumNames; } }));
Object.defineProperty(exports, "listEnumNumbers", ({ enumerable: true, get: function () { return enum_object_1.listEnumNumbers; } }));
Object.defineProperty(exports, "isEnumObject", ({ enumerable: true, get: function () { return enum_object_1.isEnumObject; } }));
// lowerCamelCase() is exported for plugin, rpc-runtime and other rpc packages
var lower_camel_case_1 = __nccwpck_require__(4073);
Object.defineProperty(exports, "lowerCamelCase", ({ enumerable: true, get: function () { return lower_camel_case_1.lowerCamelCase; } }));
// assertion functions are exported for plugin, may also be useful to user
var assert_1 = __nccwpck_require__(8602);
Object.defineProperty(exports, "assert", ({ enumerable: true, get: function () { return assert_1.assert; } }));
Object.defineProperty(exports, "assertNever", ({ enumerable: true, get: function () { return assert_1.assertNever; } }));
Object.defineProperty(exports, "assertInt32", ({ enumerable: true, get: function () { return assert_1.assertInt32; } }));
Object.defineProperty(exports, "assertUInt32", ({ enumerable: true, get: function () { return assert_1.assertUInt32; } }));
Object.defineProperty(exports, "assertFloat32", ({ enumerable: true, get: function () { return assert_1.assertFloat32; } }));
/***/ }),
/***/ 9367:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.mergeJsonOptions = exports.jsonWriteOptions = exports.jsonReadOptions = void 0;
const defaultsWrite = {
emitDefaultValues: false,
enumAsInteger: false,
useProtoFieldName: false,
prettySpaces: 0,
}, defaultsRead = {
ignoreUnknownFields: false,
};
/**
* Make options for reading JSON data from partial options.
*/
function jsonReadOptions(options) {
return options ? Object.assign(Object.assign({}, defaultsRead), options) : defaultsRead;
}
exports.jsonReadOptions = jsonReadOptions;
/**
* Make options for writing JSON data from partial options.
*/
function jsonWriteOptions(options) {
return options ? Object.assign(Object.assign({}, defaultsWrite), options) : defaultsWrite;
}
exports.jsonWriteOptions = jsonWriteOptions;
/**
* Merges JSON write or read options. Later values override earlier values. Type registries are merged.
*/
function mergeJsonOptions(a, b) {
var _a, _b;
let c = Object.assign(Object.assign({}, a), b);
c.typeRegistry = [...((_a = a === null || a === void 0 ? void 0 : a.typeRegistry) !== null && _a !== void 0 ? _a : []), ...((_b = b === null || b === void 0 ? void 0 : b.typeRegistry) !== null && _b !== void 0 ? _b : [])];
return c;
}
exports.mergeJsonOptions = mergeJsonOptions;
/***/ }),
/***/ 9999:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isJsonObject = exports.typeofJsonValue = void 0;
/**
* Get the type of a JSON value.
* Distinguishes between array, null and object.
*/
function typeofJsonValue(value) {
let t = typeof value;
if (t == "object") {
if (Array.isArray(value))
return "array";
if (value === null)
return "null";
}
return t;
}
exports.typeofJsonValue = typeofJsonValue;
/**
* Is this a JSON object (instead of an array or null)?
*/
function isJsonObject(value) {
return value !== null && typeof value == "object" && !Array.isArray(value);
}
exports.isJsonObject = isJsonObject;
/***/ }),
/***/ 4073:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.lowerCamelCase = void 0;
/**
* Converts snake_case to lowerCamelCase.
*
* Should behave like protoc:
* https://github.com/protocolbuffers/protobuf/blob/e8ae137c96444ea313485ed1118c5e43b2099cf1/src/google/protobuf/compiler/java/java_helpers.cc#L118
*/
function lowerCamelCase(snakeCase) {
let capNext = false;
const sb = [];
for (let i = 0; i < snakeCase.length; i++) {
let next = snakeCase.charAt(i);
if (next == '_') {
capNext = true;
}
else if (/\d/.test(next)) {
sb.push(next);
capNext = true;
}
else if (capNext) {
sb.push(next.toUpperCase());
capNext = false;
}
else if (i == 0) {
sb.push(next.toLowerCase());
}
else {
sb.push(next);
}
}
return sb.join('');
}
exports.lowerCamelCase = lowerCamelCase;
/***/ }),
/***/ 3785:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MESSAGE_TYPE = void 0;
/**
* The symbol used as a key on message objects to store the message type.
*
* Note that this is an experimental feature - it is here to stay, but
* implementation details may change without notice.
*/
exports.MESSAGE_TYPE = Symbol.for("protobuf-ts/message-type");
/***/ }),
/***/ 5106:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MessageType = void 0;
const message_type_contract_1 = __nccwpck_require__(3785);
const reflection_info_1 = __nccwpck_require__(7910);
const reflection_type_check_1 = __nccwpck_require__(5167);
const reflection_json_reader_1 = __nccwpck_require__(6790);
const reflection_json_writer_1 = __nccwpck_require__(1094);
const reflection_binary_reader_1 = __nccwpck_require__(9611);
const reflection_binary_writer_1 = __nccwpck_require__(6907);
const reflection_create_1 = __nccwpck_require__(5726);
const reflection_merge_partial_1 = __nccwpck_require__(8044);
const json_typings_1 = __nccwpck_require__(9999);
const json_format_contract_1 = __nccwpck_require__(9367);
const reflection_equals_1 = __nccwpck_require__(4827);
const binary_writer_1 = __nccwpck_require__(3957);
const binary_reader_1 = __nccwpck_require__(2889);
const baseDescriptors = Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));
const messageTypeDescriptor = baseDescriptors[message_type_contract_1.MESSAGE_TYPE] = {};
/**
* This standard message type provides reflection-based
* operations to work with a message.
*/
class MessageType {
constructor(name, fields, options) {
this.defaultCheckDepth = 16;
this.typeName = name;
this.fields = fields.map(reflection_info_1.normalizeFieldInfo);
this.options = options !== null && options !== void 0 ? options : {};
messageTypeDescriptor.value = this;
this.messagePrototype = Object.create(null, baseDescriptors);
this.refTypeCheck = new reflection_type_check_1.ReflectionTypeCheck(this);
this.refJsonReader = new reflection_json_reader_1.ReflectionJsonReader(this);
this.refJsonWriter = new reflection_json_writer_1.ReflectionJsonWriter(this);
this.refBinReader = new reflection_binary_reader_1.ReflectionBinaryReader(this);
this.refBinWriter = new reflection_binary_writer_1.ReflectionBinaryWriter(this);
}
create(value) {
let message = reflection_create_1.reflectionCreate(this);
if (value !== undefined) {
reflection_merge_partial_1.reflectionMergePartial(this, message, value);
}
return message;
}
/**
* Clone the message.
*
* Unknown fields are discarded.
*/
clone(message) {
let copy = this.create();
reflection_merge_partial_1.reflectionMergePartial(this, copy, message);
return copy;
}
/**
* Determines whether two message of the same type have the same field values.
* Checks for deep equality, traversing repeated fields, oneof groups, maps
* and messages recursively.
* Will also return true if both messages are `undefined`.
*/
equals(a, b) {
return reflection_equals_1.reflectionEquals(this, a, b);
}
/**
* Is the given value assignable to our message type
* and contains no [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
*/
is(arg, depth = this.defaultCheckDepth) {
return this.refTypeCheck.is(arg, depth, false);
}
/**
* Is the given value assignable to our message type,
* regardless of [excess properties](https://www.typescriptlang.org/docs/handbook/interfaces.html#excess-property-checks)?
*/
isAssignable(arg, depth = this.defaultCheckDepth) {
return this.refTypeCheck.is(arg, depth, true);
}
/**
* Copy partial data into the target message.
*/
mergePartial(target, source) {
reflection_merge_partial_1.reflectionMergePartial(this, target, source);
}
/**
* Create a new message from binary format.
*/
fromBinary(data, options) {
let opt = binary_reader_1.binaryReadOptions(options);
return this.internalBinaryRead(opt.readerFactory(data), data.byteLength, opt);
}
/**
* Read a new message from a JSON value.
*/
fromJson(json, options) {
return this.internalJsonRead(json, json_format_contract_1.jsonReadOptions(options));
}
/**
* Read a new message from a JSON string.
* This is equivalent to `T.fromJson(JSON.parse(json))`.
*/
fromJsonString(json, options) {
let value = JSON.parse(json);
return this.fromJson(value, options);
}
/**
* Write the message to canonical JSON value.
*/
toJson(message, options) {
return this.internalJsonWrite(message, json_format_contract_1.jsonWriteOptions(options));
}
/**
* Convert the message to canonical JSON string.
* This is equivalent to `JSON.stringify(T.toJson(t))`
*/
toJsonString(message, options) {
var _a;
let value = this.toJson(message, options);
return JSON.stringify(value, null, (_a = options === null || options === void 0 ? void 0 : options.prettySpaces) !== null && _a !== void 0 ? _a : 0);
}
/**
* Write the message to binary format.
*/
toBinary(message, options) {
let opt = binary_writer_1.binaryWriteOptions(options);
return this.internalBinaryWrite(message, opt.writerFactory(), opt).finish();
}
/**
* This is an internal method. If you just want to read a message from
* JSON, use `fromJson()` or `fromJsonString()`.
*
* Reads JSON value and merges the fields into the target
* according to protobuf rules. If the target is omitted,
* a new instance is created first.
*/
internalJsonRead(json, options, target) {
if (json !== null && typeof json == "object" && !Array.isArray(json)) {
let message = target !== null && target !== void 0 ? target : this.create();
this.refJsonReader.read(json, message, options);
return message;
}
throw new Error(`Unable to parse message ${this.typeName} from JSON ${json_typings_1.typeofJsonValue(json)}.`);
}
/**
* This is an internal method. If you just want to write a message
* to JSON, use `toJson()` or `toJsonString().
*
* Writes JSON value and returns it.
*/
internalJsonWrite(message, options) {
return this.refJsonWriter.write(message, options);
}
/**
* This is an internal method. If you just want to write a message
* in binary format, use `toBinary()`.
*
* Serializes the message in binary format and appends it to the given
* writer. Returns passed writer.
*/
internalBinaryWrite(message, writer, options) {
this.refBinWriter.write(message, writer, options);
return writer;
}
/**
* This is an internal method. If you just want to read a message from
* binary data, use `fromBinary()`.
*
* Reads data from binary format and merges the fields into
* the target according to protobuf rules. If the target is
* omitted, a new instance is created first.
*/
internalBinaryRead(reader, length, options, target) {
let message = target !== null && target !== void 0 ? target : this.create();
this.refBinReader.read(reader, message, options, length);
return message;
}
}
exports.MessageType = MessageType;
/***/ }),
/***/ 8063:
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getSelectedOneofValue = exports.clearOneofValue = exports.setUnknownOneofValue = exports.setOneofValue = exports.getOneofValue = exports.isOneofGroup = void 0;
/**
* Is the given value a valid oneof group?
*
* We represent protobuf `oneof` as algebraic data types (ADT) in generated
* code. But when working with messages of unknown type, the ADT does not
* help us.
*
* This type guard checks if the given object adheres to the ADT rules, which
* are as follows:
*
* 1) Must be an object.
*
* 2) Must have a "oneofKind" discriminator property.
*
* 3) If "oneofKind" is `undefined`, no member field is selected. The object
* must not have any other properties.
*
* 4) If "oneofKind" is a `string`, the member field with this name is
* selected.
*
* 5) If a member field is selected, the object must have a second property
* with this name. The property must not be `undefined`.
*
* 6) No extra properties are allowed. The object has either one property
* (no selection) or two properties (selection).
*
*/
function isOneofGroup(any) {
if (typeof any != 'object' || any === null || !any.hasOwnProperty('oneofKind')) {
return false;
}
switch (typeof any.oneofKind) {
case "string":
if (any[any.oneofKind] === undefined)
return false;
return Object.keys(any).length == 2;
case "undefined":
return Object.keys(any).length == 1;
default:
return false;
}
}
exports.isOneofGroup = isOneofGroup;
/**
* Returns the value of the given field in a oneof group.
*/
function getOneofValue(oneof, kind) {
return oneof[kind];
}
exports.getOneofValue = getOneofValue;
function setOneofValue(oneof, kind, value) {
if (oneof.oneofKind !== undefined) {
delete oneof[oneof.oneofKind];
}
oneof.oneofKind = kind;
if (value !== undefined) {
oneof[kind] = value;
}
}
exports.setOneofValue = setOneofValue;
function setUnknownOneofValue(oneof, kind, value) {
if (oneof.oneofKind !== undefined) {
delete oneof[oneof.oneofKind];
}
oneof.oneofKind = kind;
if (value !== undefined && kind !== undefined) {
oneof[kind] = value;
}
}
exports.setUnknownOneofValue = setUnknownOneofValue;
/**
* Removes the selected field in a oneof group.
*
* Note that the recommended way to modify a oneof group is to set
* a new object:
*
* ```ts
* message.result = { oneofKind: undefined };
* ```
*/
function clearOneofValue(oneof) {
if (oneof.oneofKind !== undefined) {
delete oneof[oneof.oneofKind];
}
oneof.oneofKind = undefined;
}
exports.clearOneofValue = clearOneofValue;
/**
* Returns the selected value of the given oneof group.
*
* Not that the recommended way to access a oneof group is to check
* the "oneofKind" property and let TypeScript narrow down the union
* type for you:
*
* ```ts
* if (message.result.oneofKind === "error") {
* message.result.error; // string
* }
* ```
*
* In the rare case you just need the value, and do not care about
* which protobuf field is selected, you can use this function
* for convenience.
*/
function getSelectedOneofValue(oneof) {
if (oneof.oneofKind === undefined) {
return undefined;
}
return oneof[oneof.oneofKind];
}
exports.getSelectedOneofValue = getSelectedOneofValue;
/***/ }),
/***/ 1753:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PbLong = exports.PbULong = exports.detectBi = void 0;
const goog_varint_1 = __nccwpck_require__(3223);
let BI;
function detectBi() {
const dv = new DataView(new ArrayBuffer(8));
const ok = globalThis.BigInt !== undefined
&& typeof dv.getBigInt64 === "function"
&& typeof dv.getBigUint64 === "function"
&& typeof dv.setBigInt64 === "function"
&& typeof dv.setBigUint64 === "function";
BI = ok ? {
MIN: BigInt("-9223372036854775808"),
MAX: BigInt("9223372036854775807"),
UMIN: BigInt("0"),
UMAX: BigInt("18446744073709551615"),
C: BigInt,
V: dv,
} : undefined;
}
exports.detectBi = detectBi;
detectBi();
function assertBi(bi) {
if (!bi)
throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support");
}
// used to validate from(string) input (when bigint is unavailable)
const RE_DECIMAL_STR = /^-?[0-9]+$/;
// constants for binary math
const TWO_PWR_32_DBL = 0x100000000;
const HALF_2_PWR_32 = 0x080000000;
// base class for PbLong and PbULong provides shared code
class SharedPbLong {
/**
* Create a new instance with the given bits.
*/
constructor(lo, hi) {
this.lo = lo | 0;
this.hi = hi | 0;
}
/**
* Is this instance equal to 0?
*/
isZero() {
return this.lo == 0 && this.hi == 0;
}
/**
* Convert to a native number.
*/
toNumber() {
let result = this.hi * TWO_PWR_32_DBL + (this.lo >>> 0);
if (!Number.isSafeInteger(result))
throw new Error("cannot convert to safe number");
return result;
}
}
/**
* 64-bit unsigned integer as two 32-bit values.
* Converts between `string`, `number` and `bigint` representations.
*/
class PbULong extends SharedPbLong {
/**
* Create instance from a `string`, `number` or `bigint`.
*/
static from(value) {
if (BI)
// noinspection FallThroughInSwitchStatementJS
switch (typeof value) {
case "string":
if (value == "0")
return this.ZERO;
if (value == "")
throw new Error('string is no integer');
value = BI.C(value);
case "number":
if (value === 0)
return this.ZERO;
value = BI.C(value);
case "bigint":
if (!value)
return this.ZERO;
if (value < BI.UMIN)
throw new Error('signed value for ulong');
if (value > BI.UMAX)
throw new Error('ulong too large');
BI.V.setBigUint64(0, value, true);
return new PbULong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
}
else
switch (typeof value) {
case "string":
if (value == "0")
return this.ZERO;
value = value.trim();
if (!RE_DECIMAL_STR.test(value))
throw new Error('string is no integer');
let [minus, lo, hi] = goog_varint_1.int64fromString(value);
if (minus)
throw new Error('signed value for ulong');
return new PbULong(lo, hi);
case "number":
if (value == 0)
return this.ZERO;
if (!Number.isSafeInteger(value))
throw new Error('number is no integer');
if (value < 0)
throw new Error('signed value for ulong');
return new PbULong(value, value / TWO_PWR_32_DBL);
}
throw new Error('unknown value ' + typeof value);
}
/**
* Convert to decimal string.
*/
toString() {
return BI ? this.toBigInt().toString() : goog_varint_1.int64toString(this.lo, this.hi);
}
/**
* Convert to native bigint.
*/
toBigInt() {
assertBi(BI);
BI.V.setInt32(0, this.lo, true);
BI.V.setInt32(4, this.hi, true);
return BI.V.getBigUint64(0, true);
}
}
exports.PbULong = PbULong;
/**
* ulong 0 singleton.
*/
PbULong.ZERO = new PbULong(0, 0);
/**
* 64-bit signed integer as two 32-bit values.
* Converts between `string`, `number` and `bigint` representations.
*/
class PbLong extends SharedPbLong {
/**
* Create instance from a `string`, `number` or `bigint`.
*/
static from(value) {
if (BI)
// noinspection FallThroughInSwitchStatementJS
switch (typeof value) {
case "string":
if (value == "0")
return this.ZERO;
if (value == "")
throw new Error('string is no integer');
value = BI.C(value);
case "number":
if (value === 0)
return this.ZERO;
value = BI.C(value);
case "bigint":
if (!value)
return this.ZERO;
if (value < BI.MIN)
throw new Error('signed long too small');
if (value > BI.MAX)
throw new Error('signed long too large');
BI.V.setBigInt64(0, value, true);
return new PbLong(BI.V.getInt32(0, true), BI.V.getInt32(4, true));
}
else
switch (typeof value) {
case "string":
if (value == "0")
return this.ZERO;
value = value.trim();
if (!RE_DECIMAL_STR.test(value))
throw new Error('string is no integer');
let [minus, lo, hi] = goog_varint_1.int64fromString(value);
if (minus) {
if (hi > HALF_2_PWR_32 || (hi == HALF_2_PWR_32 && lo != 0))
throw new Error('signed long too small');
}
else if (hi >= HALF_2_PWR_32)
throw new Error('signed long too large');
let pbl = new PbLong(lo, hi);
return minus ? pbl.negate() : pbl;
case "number":
if (value == 0)
return this.ZERO;
if (!Number.isSafeInteger(value))
throw new Error('number is no integer');
return value > 0
? new PbLong(value, value / TWO_PWR_32_DBL)
: new PbLong(-value, -value / TWO_PWR_32_DBL).negate();
}
throw new Error('unknown value ' + typeof value);
}
/**
* Do we have a minus sign?
*/
isNegative() {
return (this.hi & HALF_2_PWR_32) !== 0;
}
/**
* Negate two's complement.
* Invert all the bits and add one to the result.
*/
negate() {
let hi = ~this.hi, lo = this.lo;
if (lo)
lo = ~lo + 1;
else
hi += 1;
return new PbLong(lo, hi);
}
/**
* Convert to decimal string.
*/
toString() {
if (BI)
return this.toBigInt().toString();
if (this.isNegative()) {
let n = this.negate();
return '-' + goog_varint_1.int64toString(n.lo, n.hi);
}
return goog_varint_1.int64toString(this.lo, this.hi);
}
/**
* Convert to native bigint.
*/
toBigInt() {
assertBi(BI);
BI.V.setInt32(0, this.lo, true);
BI.V.setInt32(4, this.hi, true);
return BI.V.getBigInt64(0, true);
}
}
exports.PbLong = PbLong;
/**
* long 0 singleton.
*/
PbLong.ZERO = new PbLong(0, 0);
/***/ }),
/***/ 8950:
/***/ ((__unused_webpack_module, exports) => {
// Copyright (c) 2016, Daniel Wirtz All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// * Neither the name of its author, nor the names of its contributors
// may be used to endorse or promote products derived from this software
// without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.utf8read = void 0;
const fromCharCodes = (chunk) => String.fromCharCode.apply(String, chunk);
/**
* @deprecated This function will no longer be exported with the next major
* release, since protobuf-ts has switch to TextDecoder API. If you need this
* function, please migrate to @protobufjs/utf8. For context, see
* https://github.com/timostamm/protobuf-ts/issues/184
*
* Reads UTF8 bytes as a string.
*
* See [protobufjs / utf8](https://github.com/protobufjs/protobuf.js/blob/9893e35b854621cce64af4bf6be2cff4fb892796/lib/utf8/index.js#L40)
*
* Copyright (c) 2016, Daniel Wirtz
*/
function utf8read(bytes) {
if (bytes.length < 1)
return "";
let pos = 0, // position in bytes
parts = [], chunk = [], i = 0, // char offset
t; // temporary
let len = bytes.length;
while (pos < len) {
t = bytes[pos++];
if (t < 128)
chunk[i++] = t;
else if (t > 191 && t < 224)
chunk[i++] = (t & 31) << 6 | bytes[pos++] & 63;
else if (t > 239 && t < 365) {
t = ((t & 7) << 18 | (bytes[pos++] & 63) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63) - 0x10000;
chunk[i++] = 0xD800 + (t >> 10);
chunk[i++] = 0xDC00 + (t & 1023);
}
else
chunk[i++] = (t & 15) << 12 | (bytes[pos++] & 63) << 6 | bytes[pos++] & 63;
if (i > 8191) {
parts.push(fromCharCodes(chunk));
i = 0;
}
}
if (parts.length) {
if (i)
parts.push(fromCharCodes(chunk.slice(0, i)));
return parts.join("");
}
return fromCharCodes(chunk.slice(0, i));
}
exports.utf8read = utf8read;
/***/ }),
/***/ 9611:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ReflectionBinaryReader = void 0;
const binary_format_contract_1 = __nccwpck_require__(4816);
const reflection_info_1 = __nccwpck_require__(7910);
const reflection_long_convert_1 = __nccwpck_require__(3402);
const reflection_scalar_default_1 = __nccwpck_require__(9526);
/**
* Reads proto3 messages in binary format using reflection information.
*
* https://developers.google.com/protocol-buffers/docs/encoding
*/
class ReflectionBinaryReader {
constructor(info) {
this.info = info;
}
prepare() {
var _a;
if (!this.fieldNoToField) {
const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
this.fieldNoToField = new Map(fieldsInput.map(field => [field.no, field]));
}
}
/**
* Reads a message from binary format into the target message.
*
* Repeated fields are appended. Map entries are added, overwriting
* existing keys.
*
* If a message field is already present, it will be merged with the
* new data.
*/
read(reader, message, options, length) {
this.prepare();
const end = length === undefined ? reader.len : reader.pos + length;
while (reader.pos < end) {
// read the tag and find the field
const [fieldNo, wireType] = reader.tag(), field = this.fieldNoToField.get(fieldNo);
if (!field) {
let u = options.readUnknownField;
if (u == "throw")
throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.info.typeName}`);
let d = reader.skip(wireType);
if (u !== false)
(u === true ? binary_format_contract_1.UnknownFieldHandler.onRead : u)(this.info.typeName, message, fieldNo, wireType, d);
continue;
}
// target object for the field we are reading
let target = message, repeated = field.repeat, localName = field.localName;
// if field is member of oneof ADT, use ADT as target
if (field.oneof) {
target = target[field.oneof];
// if other oneof member selected, set new ADT
if (target.oneofKind !== localName)
target = message[field.oneof] = {
oneofKind: localName
};
}
// we have handled oneof above, we just have read the value into `target[localName]`
switch (field.kind) {
case "scalar":
case "enum":
let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
let L = field.kind == "scalar" ? field.L : undefined;
if (repeated) {
let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
if (wireType == binary_format_contract_1.WireType.LengthDelimited && T != reflection_info_1.ScalarType.STRING && T != reflection_info_1.ScalarType.BYTES) {
let e = reader.uint32() + reader.pos;
while (reader.pos < e)
arr.push(this.scalar(reader, T, L));
}
else
arr.push(this.scalar(reader, T, L));
}
else
target[localName] = this.scalar(reader, T, L);
break;
case "message":
if (repeated) {
let arr = target[localName]; // safe to assume presence of array, oneof cannot contain repeated values
let msg = field.T().internalBinaryRead(reader, reader.uint32(), options);
arr.push(msg);
}
else
target[localName] = field.T().internalBinaryRead(reader, reader.uint32(), options, target[localName]);
break;
case "map":
let [mapKey, mapVal] = this.mapEntry(field, reader, options);
// safe to assume presence of map object, oneof cannot contain repeated values
target[localName][mapKey] = mapVal;
break;
}
}
}
/**
* Read a map field, expecting key field = 1, value field = 2
*/
mapEntry(field, reader, options) {
let length = reader.uint32();
let end = reader.pos + length;
let key = undefined; // javascript only allows number or string for object properties
let val = undefined;
while (reader.pos < end) {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case 1:
if (field.K == reflection_info_1.ScalarType.BOOL)
key = reader.bool().toString();
else
// long types are read as string, number types are okay as number
key = this.scalar(reader, field.K, reflection_info_1.LongType.STRING);
break;
case 2:
switch (field.V.kind) {
case "scalar":
val = this.scalar(reader, field.V.T, field.V.L);
break;
case "enum":
val = reader.int32();
break;
case "message":
val = field.V.T().internalBinaryRead(reader, reader.uint32(), options);
break;
}
break;
default:
throw new Error(`Unknown field ${fieldNo} (wire type ${wireType}) in map entry for ${this.info.typeName}#${field.name}`);
}
}
if (key === undefined) {
let keyRaw = reflection_scalar_default_1.reflectionScalarDefault(field.K);
key = field.K == reflection_info_1.ScalarType.BOOL ? keyRaw.toString() : keyRaw;
}
if (val === undefined)
switch (field.V.kind) {
case "scalar":
val = reflection_scalar_default_1.reflectionScalarDefault(field.V.T, field.V.L);
break;
case "enum":
val = 0;
break;
case "message":
val = field.V.T().create();
break;
}
return [key, val];
}
scalar(reader, type, longType) {
switch (type) {
case reflection_info_1.ScalarType.INT32:
return reader.int32();
case reflection_info_1.ScalarType.STRING:
return reader.string();
case reflection_info_1.ScalarType.BOOL:
return reader.bool();
case reflection_info_1.ScalarType.DOUBLE:
return reader.double();
case reflection_info_1.ScalarType.FLOAT:
return reader.float();
case reflection_info_1.ScalarType.INT64:
return reflection_long_convert_1.reflectionLongConvert(reader.int64(), longType);
case reflection_info_1.ScalarType.UINT64:
return reflection_long_convert_1.reflectionLongConvert(reader.uint64(), longType);
case reflection_info_1.ScalarType.FIXED64:
return reflection_long_convert_1.reflectionLongConvert(reader.fixed64(), longType);
case reflection_info_1.ScalarType.FIXED32:
return reader.fixed32();
case reflection_info_1.ScalarType.BYTES:
return reader.bytes();
case reflection_info_1.ScalarType.UINT32:
return reader.uint32();
case reflection_info_1.ScalarType.SFIXED32:
return reader.sfixed32();
case reflection_info_1.ScalarType.SFIXED64:
return reflection_long_convert_1.reflectionLongConvert(reader.sfixed64(), longType);
case reflection_info_1.ScalarType.SINT32:
return reader.sint32();
case reflection_info_1.ScalarType.SINT64:
return reflection_long_convert_1.reflectionLongConvert(reader.sint64(), longType);
}
}
}
exports.ReflectionBinaryReader = ReflectionBinaryReader;
/***/ }),
/***/ 6907:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ReflectionBinaryWriter = void 0;
const binary_format_contract_1 = __nccwpck_require__(4816);
const reflection_info_1 = __nccwpck_require__(7910);
const assert_1 = __nccwpck_require__(8602);
const pb_long_1 = __nccwpck_require__(1753);
/**
* Writes proto3 messages in binary format using reflection information.
*
* https://developers.google.com/protocol-buffers/docs/encoding
*/
class ReflectionBinaryWriter {
constructor(info) {
this.info = info;
}
prepare() {
if (!this.fields) {
const fieldsInput = this.info.fields ? this.info.fields.concat() : [];
this.fields = fieldsInput.sort((a, b) => a.no - b.no);
}
}
/**
* Writes the message to binary format.
*/
write(message, writer, options) {
this.prepare();
for (const field of this.fields) {
let value, // this will be our field value, whether it is member of a oneof or not
emitDefault, // whether we emit the default value (only true for oneof members)
repeated = field.repeat, localName = field.localName;
// handle oneof ADT
if (field.oneof) {
const group = message[field.oneof];
if (group.oneofKind !== localName)
continue; // if field is not selected, skip
value = group[localName];
emitDefault = true;
}
else {
value = message[localName];
emitDefault = false;
}
// we have handled oneof above. we just have to honor `emitDefault`.
switch (field.kind) {
case "scalar":
case "enum":
let T = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
if (repeated) {
assert_1.assert(Array.isArray(value));
if (repeated == reflection_info_1.RepeatType.PACKED)
this.packed(writer, T, field.no, value);
else
for (const item of value)
this.scalar(writer, T, field.no, item, true);
}
else if (value === undefined)
assert_1.assert(field.opt);
else
this.scalar(writer, T, field.no, value, emitDefault || field.opt);
break;
case "message":
if (repeated) {
assert_1.assert(Array.isArray(value));
for (const item of value)
this.message(writer, options, field.T(), field.no, item);
}
else {
this.message(writer, options, field.T(), field.no, value);
}
break;
case "map":
assert_1.assert(typeof value == 'object' && value !== null);
for (const [key, val] of Object.entries(value))
this.mapEntry(writer, options, field, key, val);
break;
}
}
let u = options.writeUnknownFields;
if (u !== false)
(u === true ? binary_format_contract_1.UnknownFieldHandler.onWrite : u)(this.info.typeName, message, writer);
}
mapEntry(writer, options, field, key, value) {
writer.tag(field.no, binary_format_contract_1.WireType.LengthDelimited);
writer.fork();
// javascript only allows number or string for object properties
// we convert from our representation to the protobuf type
let keyValue = key;
switch (field.K) {
case reflection_info_1.ScalarType.INT32:
case reflection_info_1.ScalarType.FIXED32:
case reflection_info_1.ScalarType.UINT32:
case reflection_info_1.ScalarType.SFIXED32:
case reflection_info_1.ScalarType.SINT32:
keyValue = Number.parseInt(key);
break;
case reflection_info_1.ScalarType.BOOL:
assert_1.assert(key == 'true' || key == 'false');
keyValue = key == 'true';
break;
}
// write key, expecting key field number = 1
this.scalar(writer, field.K, 1, keyValue, true);
// write value, expecting value field number = 2
switch (field.V.kind) {
case 'scalar':
this.scalar(writer, field.V.T, 2, value, true);
break;
case 'enum':
this.scalar(writer, reflection_info_1.ScalarType.INT32, 2, value, true);
break;
case 'message':
this.message(writer, options, field.V.T(), 2, value);
break;
}
writer.join();
}
message(writer, options, handler, fieldNo, value) {
if (value === undefined)
return;
handler.internalBinaryWrite(value, writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited).fork(), options);
writer.join();
}
/**
* Write a single scalar value.
*/
scalar(writer, type, fieldNo, value, emitDefault) {
let [wireType, method, isDefault] = this.scalarInfo(type, value);
if (!isDefault || emitDefault) {
writer.tag(fieldNo, wireType);
writer[method](value);
}
}
/**
* Write an array of scalar values in packed format.
*/
packed(writer, type, fieldNo, value) {
if (!value.length)
return;
assert_1.assert(type !== reflection_info_1.ScalarType.BYTES && type !== reflection_info_1.ScalarType.STRING);
// write tag
writer.tag(fieldNo, binary_format_contract_1.WireType.LengthDelimited);
// begin length-delimited
writer.fork();
// write values without tags
let [, method,] = this.scalarInfo(type);
for (let i = 0; i < value.length; i++)
writer[method](value[i]);
// end length delimited
writer.join();
}
/**
* Get information for writing a scalar value.
*
* Returns tuple:
* [0]: appropriate WireType
* [1]: name of the appropriate method of IBinaryWriter
* [2]: whether the given value is a default value
*
* If argument `value` is omitted, [2] is always false.
*/
scalarInfo(type, value) {
let t = binary_format_contract_1.WireType.Varint;
let m;
let i = value === undefined;
let d = value === 0;
switch (type) {
case reflection_info_1.ScalarType.INT32:
m = "int32";
break;
case reflection_info_1.ScalarType.STRING:
d = i || !value.length;
t = binary_format_contract_1.WireType.LengthDelimited;
m = "string";
break;
case reflection_info_1.ScalarType.BOOL:
d = value === false;
m = "bool";
break;
case reflection_info_1.ScalarType.UINT32:
m = "uint32";
break;
case reflection_info_1.ScalarType.DOUBLE:
t = binary_format_contract_1.WireType.Bit64;
m = "double";
break;
case reflection_info_1.ScalarType.FLOAT:
t = binary_format_contract_1.WireType.Bit32;
m = "float";
break;
case reflection_info_1.ScalarType.INT64:
d = i || pb_long_1.PbLong.from(value).isZero();
m = "int64";
break;
case reflection_info_1.ScalarType.UINT64:
d = i || pb_long_1.PbULong.from(value).isZero();
m = "uint64";
break;
case reflection_info_1.ScalarType.FIXED64:
d = i || pb_long_1.PbULong.from(value).isZero();
t = binary_format_contract_1.WireType.Bit64;
m = "fixed64";
break;
case reflection_info_1.ScalarType.BYTES:
d = i || !value.byteLength;
t = binary_format_contract_1.WireType.LengthDelimited;
m = "bytes";
break;
case reflection_info_1.ScalarType.FIXED32:
t = binary_format_contract_1.WireType.Bit32;
m = "fixed32";
break;
case reflection_info_1.ScalarType.SFIXED32:
t = binary_format_contract_1.WireType.Bit32;
m = "sfixed32";
break;
case reflection_info_1.ScalarType.SFIXED64:
d = i || pb_long_1.PbLong.from(value).isZero();
t = binary_format_contract_1.WireType.Bit64;
m = "sfixed64";
break;
case reflection_info_1.ScalarType.SINT32:
m = "sint32";
break;
case reflection_info_1.ScalarType.SINT64:
d = i || pb_long_1.PbLong.from(value).isZero();
m = "sint64";
break;
}
return [t, m, i || d];
}
}
exports.ReflectionBinaryWriter = ReflectionBinaryWriter;
/***/ }),
/***/ 9946:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.containsMessageType = void 0;
const message_type_contract_1 = __nccwpck_require__(3785);
/**
* Check if the provided object is a proto message.
*
* Note that this is an experimental feature - it is here to stay, but
* implementation details may change without notice.
*/
function containsMessageType(msg) {
return msg[message_type_contract_1.MESSAGE_TYPE] != null;
}
exports.containsMessageType = containsMessageType;
/***/ }),
/***/ 5726:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.reflectionCreate = void 0;
const reflection_scalar_default_1 = __nccwpck_require__(9526);
const message_type_contract_1 = __nccwpck_require__(3785);
/**
* Creates an instance of the generic message, using the field
* information.
*/
function reflectionCreate(type) {
/**
* This ternary can be removed in the next major version.
* The `Object.create()` code path utilizes a new `messagePrototype`
* property on the `IMessageType` which has this same `MESSAGE_TYPE`
* non-enumerable property on it. Doing it this way means that we only
* pay the cost of `Object.defineProperty()` once per `IMessageType`
* class of once per "instance". The falsy code path is only provided
* for backwards compatibility in cases where the runtime library is
* updated without also updating the generated code.
*/
const msg = type.messagePrototype
? Object.create(type.messagePrototype)
: Object.defineProperty({}, message_type_contract_1.MESSAGE_TYPE, { value: type });
for (let field of type.fields) {
let name = field.localName;
if (field.opt)
continue;
if (field.oneof)
msg[field.oneof] = { oneofKind: undefined };
else if (field.repeat)
msg[name] = [];
else
switch (field.kind) {
case "scalar":
msg[name] = reflection_scalar_default_1.reflectionScalarDefault(field.T, field.L);
break;
case "enum":
// we require 0 to be default value for all enums
msg[name] = 0;
break;
case "map":
msg[name] = {};
break;
}
}
return msg;
}
exports.reflectionCreate = reflectionCreate;
/***/ }),
/***/ 4827:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.reflectionEquals = void 0;
const reflection_info_1 = __nccwpck_require__(7910);
/**
* Determines whether two message of the same type have the same field values.
* Checks for deep equality, traversing repeated fields, oneof groups, maps
* and messages recursively.
* Will also return true if both messages are `undefined`.
*/
function reflectionEquals(info, a, b) {
if (a === b)
return true;
if (!a || !b)
return false;
for (let field of info.fields) {
let localName = field.localName;
let val_a = field.oneof ? a[field.oneof][localName] : a[localName];
let val_b = field.oneof ? b[field.oneof][localName] : b[localName];
switch (field.kind) {
case "enum":
case "scalar":
let t = field.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.T;
if (!(field.repeat
? repeatedPrimitiveEq(t, val_a, val_b)
: primitiveEq(t, val_a, val_b)))
return false;
break;
case "map":
if (!(field.V.kind == "message"
? repeatedMsgEq(field.V.T(), objectValues(val_a), objectValues(val_b))
: repeatedPrimitiveEq(field.V.kind == "enum" ? reflection_info_1.ScalarType.INT32 : field.V.T, objectValues(val_a), objectValues(val_b))))
return false;
break;
case "message":
let T = field.T();
if (!(field.repeat
? repeatedMsgEq(T, val_a, val_b)
: T.equals(val_a, val_b)))
return false;
break;
}
}
return true;
}
exports.reflectionEquals = reflectionEquals;
const objectValues = Object.values;
function primitiveEq(type, a, b) {
if (a === b)
return true;
if (type !== reflection_info_1.ScalarType.BYTES)
return false;
let ba = a;
let bb = b;
if (ba.length !== bb.length)
return false;
for (let i = 0; i < ba.length; i++)
if (ba[i] != bb[i])
return false;
return true;
}
function repeatedPrimitiveEq(type, a, b) {
if (a.length !== b.length)
return false;
for (let i = 0; i < a.length; i++)
if (!primitiveEq(type, a[i], b[i]))
return false;
return true;
}
function repeatedMsgEq(type, a, b) {
if (a.length !== b.length)
return false;
for (let i = 0; i < a.length; i++)
if (!type.equals(a[i], b[i]))
return false;
return true;
}
/***/ }),
/***/ 7910:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.readMessageOption = exports.readFieldOption = exports.readFieldOptions = exports.normalizeFieldInfo = exports.RepeatType = exports.LongType = exports.ScalarType = void 0;
const lower_camel_case_1 = __nccwpck_require__(4073);
/**
* Scalar value types. This is a subset of field types declared by protobuf
* enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE
* are omitted, but the numerical values are identical.
*/
var ScalarType;
(function (ScalarType) {
// 0 is reserved for errors.
// Order is weird for historical reasons.
ScalarType[ScalarType["DOUBLE"] = 1] = "DOUBLE";
ScalarType[ScalarType["FLOAT"] = 2] = "FLOAT";
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
// negative values are likely.
ScalarType[ScalarType["INT64"] = 3] = "INT64";
ScalarType[ScalarType["UINT64"] = 4] = "UINT64";
// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
// negative values are likely.
ScalarType[ScalarType["INT32"] = 5] = "INT32";
ScalarType[ScalarType["FIXED64"] = 6] = "FIXED64";
ScalarType[ScalarType["FIXED32"] = 7] = "FIXED32";
ScalarType[ScalarType["BOOL"] = 8] = "BOOL";
ScalarType[ScalarType["STRING"] = 9] = "STRING";
// Tag-delimited aggregate.
// Group type is deprecated and not supported in proto3. However, Proto3
// implementations should still be able to parse the group wire format and
// treat group fields as unknown fields.
// TYPE_GROUP = 10,
// TYPE_MESSAGE = 11, // Length-delimited aggregate.
// New in version 2.
ScalarType[ScalarType["BYTES"] = 12] = "BYTES";
ScalarType[ScalarType["UINT32"] = 13] = "UINT32";
// TYPE_ENUM = 14,
ScalarType[ScalarType["SFIXED32"] = 15] = "SFIXED32";
ScalarType[ScalarType["SFIXED64"] = 16] = "SFIXED64";
ScalarType[ScalarType["SINT32"] = 17] = "SINT32";
ScalarType[ScalarType["SINT64"] = 18] = "SINT64";
})(ScalarType = exports.ScalarType || (exports.ScalarType = {}));
/**
* JavaScript representation of 64 bit integral types. Equivalent to the
* field option "jstype".
*
* By default, protobuf-ts represents 64 bit types as `bigint`.
*
* You can change the default behaviour by enabling the plugin parameter
* `long_type_string`, which will represent 64 bit types as `string`.
*
* Alternatively, you can change the behaviour for individual fields
* with the field option "jstype":
*
* ```protobuf
* uint64 my_field = 1 [jstype = JS_STRING];
* uint64 other_field = 2 [jstype = JS_NUMBER];
* ```
*/
var LongType;
(function (LongType) {
/**
* Use JavaScript `bigint`.
*
* Field option `[jstype = JS_NORMAL]`.
*/
LongType[LongType["BIGINT"] = 0] = "BIGINT";
/**
* Use JavaScript `string`.
*
* Field option `[jstype = JS_STRING]`.
*/
LongType[LongType["STRING"] = 1] = "STRING";
/**
* Use JavaScript `number`.
*
* Large values will loose precision.
*
* Field option `[jstype = JS_NUMBER]`.
*/
LongType[LongType["NUMBER"] = 2] = "NUMBER";
})(LongType = exports.LongType || (exports.LongType = {}));
/**
* Protobuf 2.1.0 introduced packed repeated fields.
* Setting the field option `[packed = true]` enables packing.
*
* In proto3, all repeated fields are packed by default.
* Setting the field option `[packed = false]` disables packing.
*
* Packed repeated fields are encoded with a single tag,
* then a length-delimiter, then the element values.
*
* Unpacked repeated fields are encoded with a tag and
* value for each element.
*
* `bytes` and `string` cannot be packed.
*/
var RepeatType;
(function (RepeatType) {
/**
* The field is not repeated.
*/
RepeatType[RepeatType["NO"] = 0] = "NO";
/**
* The field is repeated and should be packed.
* Invalid for `bytes` and `string`, they cannot be packed.
*/
RepeatType[RepeatType["PACKED"] = 1] = "PACKED";
/**
* The field is repeated but should not be packed.
* The only valid repeat type for repeated `bytes` and `string`.
*/
RepeatType[RepeatType["UNPACKED"] = 2] = "UNPACKED";
})(RepeatType = exports.RepeatType || (exports.RepeatType = {}));
/**
* Turns PartialFieldInfo into FieldInfo.
*/
function normalizeFieldInfo(field) {
var _a, _b, _c, _d;
field.localName = (_a = field.localName) !== null && _a !== void 0 ? _a : lower_camel_case_1.lowerCamelCase(field.name);
field.jsonName = (_b = field.jsonName) !== null && _b !== void 0 ? _b : lower_camel_case_1.lowerCamelCase(field.name);
field.repeat = (_c = field.repeat) !== null && _c !== void 0 ? _c : RepeatType.NO;
field.opt = (_d = field.opt) !== null && _d !== void 0 ? _d : (field.repeat ? false : field.oneof ? false : field.kind == "message");
return field;
}
exports.normalizeFieldInfo = normalizeFieldInfo;
/**
* Read custom field options from a generated message type.
*
* @deprecated use readFieldOption()
*/
function readFieldOptions(messageType, fieldName, extensionName, extensionType) {
var _a;
const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
return options && options[extensionName] ? extensionType.fromJson(options[extensionName]) : undefined;
}
exports.readFieldOptions = readFieldOptions;
function readFieldOption(messageType, fieldName, extensionName, extensionType) {
var _a;
const options = (_a = messageType.fields.find((m, i) => m.localName == fieldName || i == fieldName)) === null || _a === void 0 ? void 0 : _a.options;
if (!options) {
return undefined;
}
const optionVal = options[extensionName];
if (optionVal === undefined) {
return optionVal;
}
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
}
exports.readFieldOption = readFieldOption;
function readMessageOption(messageType, extensionName, extensionType) {
const options = messageType.options;
const optionVal = options[extensionName];
if (optionVal === undefined) {
return optionVal;
}
return extensionType ? extensionType.fromJson(optionVal) : optionVal;
}
exports.readMessageOption = readMessageOption;
/***/ }),
/***/ 6790:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ReflectionJsonReader = void 0;
const json_typings_1 = __nccwpck_require__(9999);
const base64_1 = __nccwpck_require__(6335);
const reflection_info_1 = __nccwpck_require__(7910);
const pb_long_1 = __nccwpck_require__(1753);
const assert_1 = __nccwpck_require__(8602);
const reflection_long_convert_1 = __nccwpck_require__(3402);
/**
* Reads proto3 messages in canonical JSON format using reflection information.
*
* https://developers.google.com/protocol-buffers/docs/proto3#json
*/
class ReflectionJsonReader {
constructor(info) {
this.info = info;
}
prepare() {
var _a;
if (this.fMap === undefined) {
this.fMap = {};
const fieldsInput = (_a = this.info.fields) !== null && _a !== void 0 ? _a : [];
for (const field of fieldsInput) {
this.fMap[field.name] = field;
this.fMap[field.jsonName] = field;
this.fMap[field.localName] = field;
}
}
}
// Cannot parse JSON <type of jsonValue> for <type name>#<fieldName>.
assert(condition, fieldName, jsonValue) {
if (!condition) {
let what = json_typings_1.typeofJsonValue(jsonValue);
if (what == "number" || what == "boolean")
what = jsonValue.toString();
throw new Error(`Cannot parse JSON ${what} for ${this.info.typeName}#${fieldName}`);
}
}
/**
* Reads a message from canonical JSON format into the target message.
*
* Repeated fields are appended. Map entries are added, overwriting
* existing keys.
*
* If a message field is already present, it will be merged with the
* new data.
*/
read(input, message, options) {
this.prepare();
const oneofsHandled = [];
for (const [jsonKey, jsonValue] of Object.entries(input)) {
const field = this.fMap[jsonKey];
if (!field) {
if (!options.ignoreUnknownFields)
throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${jsonKey}`);
continue;
}
const localName = field.localName;
// handle oneof ADT
let target; // this will be the target for the field value, whether it is member of a oneof or not
if (field.oneof) {
if (jsonValue === null && (field.kind !== 'enum' || field.T()[0] !== 'google.protobuf.NullValue')) {
continue;
}
// since json objects are unordered by specification, it is not possible to take the last of multiple oneofs
if (oneofsHandled.includes(field.oneof))
throw new Error(`Multiple members of the oneof group "${field.oneof}" of ${this.info.typeName} are present in JSON.`);
oneofsHandled.push(field.oneof);
target = message[field.oneof] = {
oneofKind: localName
};
}
else {
target = message;
}
// we have handled oneof above. we just have read the value into `target`.
if (field.kind == 'map') {
if (jsonValue === null) {
continue;
}
// check input
this.assert(json_typings_1.isJsonObject(jsonValue), field.name, jsonValue);
// our target to put map entries into
const fieldObj = target[localName];
// read entries
for (const [jsonObjKey, jsonObjValue] of Object.entries(jsonValue)) {
this.assert(jsonObjValue !== null, field.name + " map value", null);
// read value
let val;
switch (field.V.kind) {
case "message":
val = field.V.T().internalJsonRead(jsonObjValue, options);
break;
case "enum":
val = this.enum(field.V.T(), jsonObjValue, field.name, options.ignoreUnknownFields);
if (val === false)
continue;
break;
case "scalar":
val = this.scalar(jsonObjValue, field.V.T, field.V.L, field.name);
break;
}
this.assert(val !== undefined, field.name + " map value", jsonObjValue);
// read key
let key = jsonObjKey;
if (field.K == reflection_info_1.ScalarType.BOOL)
key = key == "true" ? true : key == "false" ? false : key;
key = this.scalar(key, field.K, reflection_info_1.LongType.STRING, field.name).toString();
fieldObj[key] = val;
}
}
else if (field.repeat) {
if (jsonValue === null)
continue;
// check input
this.assert(Array.isArray(jsonValue), field.name, jsonValue);
// our target to put array entries into
const fieldArr = target[localName];
// read array entries
for (const jsonItem of jsonValue) {
this.assert(jsonItem !== null, field.name, null);
let val;
switch (field.kind) {
case "message":
val = field.T().internalJsonRead(jsonItem, options);
break;
case "enum":
val = this.enum(field.T(), jsonItem, field.name, options.ignoreUnknownFields);
if (val === false)
continue;
break;
case "sc
gitextract_ho92s6sm/ ├── .editorconfig ├── .github/ │ ├── FUNDING.yml │ └── workflows/ │ ├── ci.yml │ └── example.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── action.yml ├── dist/ │ ├── index.js │ └── package.json ├── package.json ├── src/ │ ├── artifact-filter.ts │ ├── index.ts │ └── utils.ts └── tsconfig.json
Showing preview only (365K chars total). Download the full file or copy to clipboard to get everything.
SYMBOL INDEX (4617 symbols across 3 files)
FILE: dist/index.js
function adopt (line 43) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 45) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 46) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 47) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
function getProxyUrl (line 103) | function getProxyUrl(serverUrl) {
class HttpClientError (line 122) | class HttpClientError extends Error {
method constructor (line 123) | constructor(message, statusCode) {
method constructor (line 77561) | constructor(message, statusCode) {
class HttpClientResponse (line 131) | class HttpClientResponse {
method constructor (line 132) | constructor(message) {
method readBody (line 135) | readBody() {
method readBodyBuffer (line 148) | readBodyBuffer() {
method constructor (line 77569) | constructor(message) {
method readBody (line 77572) | readBody() {
method readBodyBuffer (line 77585) | readBodyBuffer() {
function isHttps (line 163) | function isHttps(requestUrl) {
class HttpClient (line 167) | class HttpClient {
method constructor (line 168) | constructor(userAgent, handlers, requestOptions) {
method options (line 205) | options(requestUrl, additionalHeaders) {
method get (line 210) | get(requestUrl, additionalHeaders) {
method del (line 215) | del(requestUrl, additionalHeaders) {
method post (line 220) | post(requestUrl, data, additionalHeaders) {
method patch (line 225) | patch(requestUrl, data, additionalHeaders) {
method put (line 230) | put(requestUrl, data, additionalHeaders) {
method head (line 235) | head(requestUrl, additionalHeaders) {
method sendStream (line 240) | sendStream(verb, requestUrl, stream, additionalHeaders) {
method getJson (line 249) | getJson(requestUrl_1) {
method postJson (line 256) | postJson(requestUrl_1, obj_1) {
method putJson (line 266) | putJson(requestUrl_1, obj_1) {
method patchJson (line 276) | patchJson(requestUrl_1, obj_1) {
method request (line 291) | request(verb, requestUrl, data, headers) {
method dispose (line 376) | dispose() {
method requestRaw (line 387) | requestRaw(info, data) {
method requestRawWithCallback (line 412) | requestRawWithCallback(info, data, onResult) {
method getAgent (line 464) | getAgent(serverUrl) {
method getAgentDispatcher (line 468) | getAgentDispatcher(serverUrl) {
method _prepareRequest (line 477) | _prepareRequest(method, requestUrl, headers) {
method _mergeHeaders (line 504) | _mergeHeaders(headers) {
method _getExistingOrDefaultHeader (line 517) | _getExistingOrDefaultHeader(additionalHeaders, header, _default) {
method _getExistingOrDefaultContentTypeHeader (line 544) | _getExistingOrDefaultContentTypeHeader(additionalHeaders, _default) {
method _getAgent (line 578) | _getAgent(parsedUrl) {
method _getProxyAgentDispatcher (line 633) | _getProxyAgentDispatcher(parsedUrl, proxyUrl) {
method _getUserAgentWithOrchestrationId (line 657) | _getUserAgentWithOrchestrationId(userAgent) {
method _performExponentialBackoff (line 668) | _performExponentialBackoff(retryNumber) {
method _processResponse (line 675) | _processResponse(res, options) {
function getProxyUrl (line 754) | function getProxyUrl(reqUrl) {
function checkBypass (line 780) | function checkBypass(reqUrl) {
function isLoopbackAddress (line 823) | function isLoopbackAddress(host) {
class DecodedURL (line 830) | class DecodedURL extends URL {
method constructor (line 831) | constructor(url, base) {
method username (line 836) | get username() {
method password (line 839) | get password() {
method constructor (line 77465) | constructor(url, base) {
method username (line 77470) | get username() {
method password (line 77473) | get password() {
function adopt (line 852) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 854) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 855) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 856) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class ClientStreamingCall (line 867) | class ClientStreamingCall {
method constructor (line 868) | constructor(method, requestHeaders, request, headers, response, status...
method then (line 882) | then(onfulfilled, onrejected) {
method promiseFinished (line 885) | promiseFinished() {
class Deferred (line 924) | class Deferred {
method constructor (line 937) | constructor(preventUnhandledRejectionWarning = true) {
method state (line 950) | get state() {
method promise (line 956) | get promise() {
method resolve (line 962) | resolve(value) {
method reject (line 971) | reject(reason) {
method resolvePending (line 980) | resolvePending(val) {
method rejectPending (line 987) | rejectPending(reason) {
function adopt (line 1002) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 1004) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 1005) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 1006) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class DuplexStreamingCall (line 1017) | class DuplexStreamingCall {
method constructor (line 1018) | constructor(method, requestHeaders, request, headers, response, status...
method then (line 1032) | then(onfulfilled, onrejected) {
method promiseFinished (line 1035) | promiseFinished() {
function normalizeMethodInfo (line 1109) | function normalizeMethodInfo(method, service) {
function readMethodOptions (line 1128) | function readMethodOptions(service, methodName, extensionName, extension...
function readMethodOption (line 1134) | function readMethodOption(service, methodName, extensionName, extensionT...
function readServiceOption (line 1147) | function readServiceOption(service, extensionName, extensionType) {
class RpcError (line 1172) | class RpcError extends Error {
method constructor (line 1173) | constructor(message, code = 'UNKNOWN', meta) {
method toString (line 1181) | toString() {
function stackIntercept (line 1218) | function stackIntercept(kind, transport, method, options, input) {
function stackUnaryInterceptors (line 1258) | function stackUnaryInterceptors(transport, method, input, options) {
function stackServerStreamingInterceptors (line 1265) | function stackServerStreamingInterceptors(transport, method, input, opti...
function stackClientStreamingInterceptors (line 1272) | function stackClientStreamingInterceptors(transport, method, options) {
function stackDuplexStreamingInterceptors (line 1279) | function stackDuplexStreamingInterceptors(transport, method, options) {
function mergeRpcOptions (line 1315) | function mergeRpcOptions(defaults, options) {
function copy (line 1343) | function copy(a, into) {
class RpcOutputStreamController (line 1371) | class RpcOutputStreamController {
method constructor (line 1372) | constructor() {
method onNext (line 1386) | onNext(callback) {
method onMessage (line 1389) | onMessage(callback) {
method onError (line 1392) | onError(callback) {
method onComplete (line 1395) | onComplete(callback) {
method addLis (line 1398) | addLis(callback, list) {
method clearLis (line 1407) | clearLis() {
method closed (line 1415) | get closed() {
method notifyNext (line 1423) | notifyNext(message, error, complete) {
method notifyMessage (line 1437) | notifyMessage(message) {
method notifyError (line 1448) | notifyError(error) {
method notifyComplete (line 1461) | notifyComplete() {
method pushIt (line 1513) | pushIt(result) {
method [Symbol.asyncIterator] (line 1482) | [Symbol.asyncIterator]() {
class ServerCallContextController (line 1543) | class ServerCallContextController {
method constructor (line 1544) | constructor(method, headers, deadline, sendResponseHeadersFn, defaultS...
method notifyCancelled (line 1560) | notifyCancelled() {
method sendResponseHeaders (line 1571) | sendResponseHeaders(data) {
method cancelled (line 1583) | get cancelled() {
method onCancel (line 1589) | onCancel(callback) {
function adopt (line 1609) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 1611) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 1612) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 1613) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class ServerStreamingCall (line 1623) | class ServerStreamingCall {
method constructor (line 1624) | constructor(method, requestHeaders, request, headers, response, status...
method then (line 1639) | then(onfulfilled, onrejected) {
method promiseFinished (line 1642) | promiseFinished() {
class ServiceType (line 1668) | class ServiceType {
method constructor (line 1669) | constructor(typeName, methods, options) {
function adopt (line 1685) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 1687) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 1688) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 1689) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class TestTransport (line 1706) | class TestTransport {
method constructor (line 1710) | constructor(data) {
method sentMessages (line 1725) | get sentMessages() {
method sendComplete (line 1737) | get sendComplete() {
method promiseHeaders (line 1747) | promiseHeaders() {
method promiseSingleResponse (line 1755) | promiseSingleResponse(method) {
method streamResponses (line 1782) | streamResponses(method, stream, abort) {
method promiseStatus (line 1841) | promiseStatus() {
method promiseTrailers (line 1849) | promiseTrailers() {
method maybeSuppressUncaught (line 1856) | maybeSuppressUncaught(...promise) {
method mergeOptions (line 1864) | mergeOptions(options) {
method unary (line 1867) | unary(method, input, options) {
method serverStreaming (line 1887) | serverStreaming(method, input, options) {
method clientStreaming (line 1902) | clientStreaming(method, options) {
method duplex (line 1922) | duplex(method, options) {
function delay (line 1948) | function delay(ms, abort) {
class TestInputStream (line 1964) | class TestInputStream {
method constructor (line 1965) | constructor(data, abort) {
method sent (line 1971) | get sent() {
method completed (line 1974) | get completed() {
method send (line 1977) | send(message) {
method complete (line 1990) | complete() {
function adopt (line 2013) | function adopt(value) { return value instanceof P ? value : new P(functi...
function fulfilled (line 2015) | function fulfilled(value) { try { step(generator.next(value)); } catch (...
function rejected (line 2016) | function rejected(value) { try { step(generator["throw"](value)); } catc...
function step (line 2017) | function step(result) { result.done ? resolve(result.value) : adopt(resu...
class UnaryCall (line 2027) | class UnaryCall {
method constructor (line 2028) | constructor(method, requestHeaders, request, headers, response, status...
method then (line 2041) | then(onfulfilled, onrejected) {
method promiseFinished (line 2044) | promiseFinished() {
function assert (line 2073) | function assert(condition, msg) {
function assertNever (line 2082) | function assertNever(value, msg) {
function assertInt32 (line 2087) | function assertInt32(arg) {
function assertUInt32 (line 2094) | function assertUInt32(arg) {
function assertFloat32 (line 2101) | function assertFloat32(arg) {
function base64decode (line 2140) | function base64decode(base64Str) {
function base64encode (line 2201) | function base64encode(bytes) {
function mergeBinaryOptions (line 2295) | function mergeBinaryOptions(a, b) {
function binaryReadOptions (line 2362) | function binaryReadOptions(options) {
class BinaryReader (line 2366) | class BinaryReader {
method constructor (line 2367) | constructor(buf, textDecoder) {
method tag (line 2385) | tag() {
method skip (line 2395) | skip(wireType) {
method assertBounds (line 2430) | assertBounds() {
method int32 (line 2437) | int32() {
method sint32 (line 2443) | sint32() {
method int64 (line 2451) | int64() {
method uint64 (line 2457) | uint64() {
method sint64 (line 2463) | sint64() {
method bool (line 2474) | bool() {
method fixed32 (line 2481) | fixed32() {
method sfixed32 (line 2487) | sfixed32() {
method fixed64 (line 2493) | fixed64() {
method sfixed64 (line 2499) | sfixed64() {
method float (line 2505) | float() {
method double (line 2511) | double() {
method bytes (line 2517) | bytes() {
method string (line 2527) | string() {
function binaryWriteOptions (line 2552) | function binaryWriteOptions(options) {
class BinaryWriter (line 2556) | class BinaryWriter {
method constructor (line 2557) | constructor(textEncoder) {
method finish (line 2569) | finish() {
method fork (line 2589) | fork() {
method join (line 2599) | join() {
method tag (line 2619) | tag(fieldNo, type) {
method raw (line 2625) | raw(chunk) {
method uint32 (line 2636) | uint32(value) {
method int32 (line 2649) | int32(value) {
method bool (line 2657) | bool(value) {
method bytes (line 2664) | bytes(value) {
method string (line 2671) | string(value) {
method float (line 2679) | float(value) {
method double (line 2688) | double(value) {
method fixed32 (line 2696) | fixed32(value) {
method sfixed32 (line 2705) | sfixed32(value) {
method sint32 (line 2714) | sint32(value) {
method sfixed64 (line 2724) | sfixed64(value) {
method fixed64 (line 2735) | fixed64(value) {
method int64 (line 2746) | int64(value) {
method sint64 (line 2754) | sint64(value) {
method uint64 (line 2764) | uint64(value) {
function isEnumObject (line 2789) | function isEnumObject(arg) {
function listEnumValues (line 2833) | function listEnumValues(enumObject) {
function listEnumNames (line 2849) | function listEnumNames(enumObject) {
function listEnumNumbers (line 2859) | function listEnumNumbers(enumObject) {
function varint64read (line 2918) | function varint64read() {
function varint64write (line 2956) | function varint64write(lo, hi, bytes) {
function int64fromString (line 2996) | function int64fromString(dec) {
function int64toString (line 3030) | function int64toString(bitsLow, bitsHigh) {
function varint32write (line 3086) | function varint32write(value, bytes) {
function varint32read (line 3109) | function varint32read() {
function jsonReadOptions (line 3271) | function jsonReadOptions(options) {
function jsonWriteOptions (line 3278) | function jsonWriteOptions(options) {
function mergeJsonOptions (line 3285) | function mergeJsonOptions(a, b) {
function typeofJsonValue (line 3306) | function typeofJsonValue(value) {
function isJsonObject (line 3320) | function isJsonObject(value) {
function lowerCamelCase (line 3340) | function lowerCamelCase(snakeCase) {
class MessageType (line 3413) | class MessageType {
method constructor (line 3414) | constructor(name, fields, options) {
method create (line 3427) | create(value) {
method clone (line 3439) | clone(message) {
method equals (line 3450) | equals(a, b) {
method is (line 3457) | is(arg, depth = this.defaultCheckDepth) {
method isAssignable (line 3464) | isAssignable(arg, depth = this.defaultCheckDepth) {
method mergePartial (line 3470) | mergePartial(target, source) {
method fromBinary (line 3476) | fromBinary(data, options) {
method fromJson (line 3483) | fromJson(json, options) {
method fromJsonString (line 3490) | fromJsonString(json, options) {
method toJson (line 3497) | toJson(message, options) {
method toJsonString (line 3504) | toJsonString(message, options) {
method toBinary (line 3512) | toBinary(message, options) {
method internalJsonRead (line 3524) | internalJsonRead(json, options, target) {
method internalJsonWrite (line 3538) | internalJsonWrite(message, options) {
method internalBinaryWrite (line 3548) | internalBinaryWrite(message, writer, options) {
method internalBinaryRead (line 3560) | internalBinaryRead(reader, length, options, target) {
function isOneofGroup (line 3604) | function isOneofGroup(any) {
function getOneofValue (line 3623) | function getOneofValue(oneof, kind) {
function setOneofValue (line 3627) | function setOneofValue(oneof, kind, value) {
function setUnknownOneofValue (line 3637) | function setUnknownOneofValue(oneof, kind, value) {
function clearOneofValue (line 3657) | function clearOneofValue(oneof) {
function getSelectedOneofValue (line 3681) | function getSelectedOneofValue(oneof) {
function detectBi (line 3700) | function detectBi() {
function assertBi (line 3718) | function assertBi(bi) {
class SharedPbLong (line 3728) | class SharedPbLong {
method constructor (line 3732) | constructor(lo, hi) {
method isZero (line 3739) | isZero() {
method toNumber (line 3745) | toNumber() {
class PbULong (line 3756) | class PbULong extends SharedPbLong {
method from (line 3760) | static from(value) {
method toString (line 3810) | toString() {
method toBigInt (line 3816) | toBigInt() {
class PbLong (line 3832) | class PbLong extends SharedPbLong {
method from (line 3836) | static from(value) {
method isNegative (line 3891) | isNegative() {
method negate (line 3898) | negate() {
method toString (line 3909) | toString() {
method toBigInt (line 3921) | toBigInt() {
function utf8read (line 3982) | function utf8read(bytes) {
class ReflectionBinaryReader (line 4034) | class ReflectionBinaryReader {
method constructor (line 4035) | constructor(info) {
method prepare (line 4038) | prepare() {
method read (line 4054) | read(reader, message, options, length) {
method mapEntry (line 4119) | mapEntry(field, reader, options) {
method scalar (line 4169) | scalar(reader, type, longType) {
class ReflectionBinaryWriter (line 4224) | class ReflectionBinaryWriter {
method constructor (line 4225) | constructor(info) {
method prepare (line 4228) | prepare() {
method write (line 4237) | write(message, writer, options) {
method mapEntry (line 4294) | mapEntry(writer, options, field, key, value) {
method message (line 4329) | message(writer, options, handler, fieldNo, value) {
method scalar (line 4338) | scalar(writer, type, fieldNo, value, emitDefault) {
method packed (line 4348) | packed(writer, type, fieldNo, value) {
method scalarInfo (line 4373) | scalarInfo(type, value) {
function containsMessageType (line 4462) | function containsMessageType(msg) {
function reflectionCreate (line 4482) | function reflectionCreate(type) {
function reflectionEquals (line 4538) | function reflectionEquals(info, a, b) {
function primitiveEq (line 4575) | function primitiveEq(type, a, b) {
function repeatedPrimitiveEq (line 4589) | function repeatedPrimitiveEq(type, a, b) {
function repeatedMsgEq (line 4597) | function repeatedMsgEq(type, a, b) {
function normalizeFieldInfo (line 4728) | function normalizeFieldInfo(field) {
function readFieldOptions (line 4742) | function readFieldOptions(messageType, fieldName, extensionName, extensi...
function readFieldOption (line 4748) | function readFieldOption(messageType, fieldName, extensionName, extensio...
function readMessageOption (line 4761) | function readMessageOption(messageType, extensionName, extensionType) {
class ReflectionJsonReader (line 4791) | class ReflectionJsonReader {
method constructor (line 4792) | constructor(info) {
method prepare (line 4795) | prepare() {
method assert (line 4808) | assert(condition, fieldName, jsonValue) {
method read (line 4825) | read(input, message, options) {
method enum (line 4948) | enum(type, json, fieldName, ignoreUnknownFields) {
method scalar (line 4972) | scalar(json, type, longType, fieldName) {
class ReflectionJsonWriter (line 5114) | class ReflectionJsonWriter {
method constructor (line 5115) | constructor(info) {
method write (line 5122) | write(message, options) {
method field (line 5144) | field(field, value, options) {
method enum (line 5229) | enum(type, value, fieldName, optional, emitDefaultValues, enumAsIntege...
method message (line 5249) | message(type, value, fieldName, options) {
method scalar (line 5254) | scalar(type, value, fieldName, optional, emitDefaultValues) {
function reflectionLongConvert (line 5349) | function reflectionLongConvert(long, type) {
function reflectionMergePartial (line 5394) | function reflectionMergePartial(info, target, source) {
function reflectionScalarDefault (line 5475) | function reflectionScalarDefault(type, longType = reflection_info_1.Long...
class ReflectionTypeCheck (line 5516) | class ReflectionTypeCheck {
method constructor (line 5517) | constructor(info) {
method prepare (line 5521) | prepare() {
method is (line 5573) | is(message, depth, allowExcessProperties = false) {
method field (line 5615) | field(arg, field, allowExcessProperties, depth) {
method message (line 5655) | message(arg, type, allowExcessProperties, depth) {
method messages (line 5661) | messages(arg, type, allowExcessProperties, depth) {
method scalar (line 5678) | scalar(arg, type, longType) {
method scalars (line 5712) | scalars(arg, type, depth, longType) {
method mapKeys (line 5723) | mapKeys(map, type, depth) {
class AbortSignal (line 5761) | class AbortSignal extends eventTargetShim.EventTarget {
method constructor (line 5765) | constructor() {
method aborted (line 5772) | get aborted() {
function createAbortSignal (line 5784) | function createAbortSignal() {
function abortSignal (line 5793) | function abortSignal(signal) {
class AbortController (line 5820) | class AbortController {
method constructor (line 5824) | constructor() {
method signal (line 5830) | get signal() {
method abort (line 5836) | abort() {
function getSignal (line 5847) | function getSignal(controller) {
function toBuffer (line 5909) | async function toBuffer(stream) {
function json (line 5920) | async function json(stream) {
function req (line 5933) | function req(url, opts = {}) {
class Agent (line 5987) | class Agent extends http.Agent {
method constructor (line 5988) | constructor(opts) {
method isSecureEndpoint (line 5995) | isSecureEndpoint(options) {
method incrementSockets (line 6027) | incrementSockets(name) {
method decrementSockets (line 6047) | decrementSockets(name, socket) {
method getName (line 6065) | getName(options) {
method createSocket (line 6074) | createSocket(req, options, cb) {
method createConnection (line 6102) | createConnection() {
method defaultPort (line 6110) | get defaultPort() {
method defaultPort (line 6114) | set defaultPort(v) {
method protocol (line 6119) | get protocol() {
method protocol (line 6123) | set protocol(v) {
method constructor (line 43541) | constructor ({ factory = defaultFactory, maxRedirections = 0, connect,...
method [kRunning] (line 43589) | get [kRunning] () {
method [kDispatch] (line 43597) | [kDispatch] (opts, handler) {
method [kClose] (line 43623) | async [kClose] () {
method [kDestroy] (line 43633) | async [kDestroy] (err) {
function onGlobEnd (line 7241) | function onGlobEnd() {
function onGlobError (line 7246) | function onGlobError(err) {
function onGlobMatch (line 7250) | function onGlobMatch(match){
function onGlobEnd (line 7337) | function onGlobEnd() {
function onGlobError (line 7342) | function onGlobError(err) {
function onGlobMatch (line 7346) | function onGlobMatch(match){
function ArchiverError (line 7615) | function ArchiverError(code, data) {
function onend (line 7705) | function onend(err, sourceBuffer) {
function append (line 7816) | function append(err, sourceBuffer) {
function apply (line 8100) | function apply(fn, ...args) {
function initialParams (line 8104) | function initialParams (fn) {
function fallback (line 8117) | function fallback(fn) {
function wrap (line 8121) | function wrap(defer) {
function asyncify (line 8195) | function asyncify(func) {
function handlePromise (line 8220) | function handlePromise(promise, callback) {
function invokeCallback (line 8228) | function invokeCallback(callback, error, value) {
function isAsync (line 8236) | function isAsync(fn) {
function isAsyncGenerator (line 8240) | function isAsyncGenerator(fn) {
function isAsyncIterable (line 8244) | function isAsyncIterable(obj) {
function wrapAsync (line 8248) | function wrapAsync(asyncFn) {
function awaitify (line 8255) | function awaitify (asyncFn, arity) {
function applyEach$1 (line 8275) | function applyEach$1 (eachfn) {
function _asyncMap (line 8287) | function _asyncMap(eachfn, arr, iteratee, callback) {
function isArrayLike (line 8304) | function isArrayLike(value) {
function once (line 8315) | function once(fn) {
function getIterator (line 8326) | function getIterator (coll) {
function createArrayIterator (line 8330) | function createArrayIterator(coll) {
function createES2015Iterator (line 8338) | function createES2015Iterator(iterator) {
function createObjectIterator (line 8349) | function createObjectIterator(obj) {
function createIterator (line 8362) | function createIterator(coll) {
function onlyOnce (line 8371) | function onlyOnce(fn) {
function asyncEachOfLimit (line 8381) | function asyncEachOfLimit(generator, limit, iteratee, callback) {
function iterateeCallback (line 8463) | function iterateeCallback(err, value) {
function replenish (line 8483) | function replenish () {
function eachOfLimit (line 8525) | function eachOfLimit(coll, limit, iteratee, callback) {
function eachOfArrayLike (line 8532) | function eachOfArrayLike(coll, iteratee, callback) {
function eachOfGeneric (line 8560) | function eachOfGeneric (coll, iteratee, callback) {
function eachOf (line 8673) | function eachOf(coll, iteratee, callback) {
function map (line 8797) | function map (coll, iteratee, callback) {
function eachOfSeries (line 8861) | function eachOfSeries(coll, iteratee, callback) {
function mapSeries (line 8885) | function mapSeries (coll, iteratee, callback) {
function promiseCallback (line 8913) | function promiseCallback () {
function auto (line 9073) | function auto(tasks, concurrency, callback) {
function stripComments (line 9250) | function stripComments(string) {
function parseParams (line 9277) | function parseParams(func) {
function autoInject (line 9374) | function autoInject(tasks, callback) {
class DLL (line 9419) | class DLL {
method constructor (line 9420) | constructor() {
method removeLink (line 9425) | removeLink(node) {
method empty (line 9436) | empty () {
method insertAfter (line 9441) | insertAfter(node, newNode) {
method insertBefore (line 9450) | insertBefore(node, newNode) {
method unshift (line 9459) | unshift(node) {
method push (line 9464) | push(node) {
method shift (line 9469) | shift() {
method pop (line 9473) | pop() {
method toArray (line 9477) | toArray() {
method remove (line 9489) | remove (testFn) {
method [Symbol.iterator] (line 9481) | *[Symbol.iterator] () {
function setInitial (line 9502) | function setInitial(dll, node) {
function queue$1 (line 9507) | function queue$1(worker, concurrency, payload) {
function cargo$1 (line 9825) | function cargo$1(worker, payload) {
function cargo (line 9883) | function cargo(worker, concurrency, payload) {
function reduce (line 10004) | function reduce(coll, memo, iteratee, callback) {
function seq (line 10054) | function seq(...functions) {
function compose (line 10115) | function compose(...args) {
function mapLimit (line 10139) | function mapLimit (coll, limit, iteratee, callback) {
function concatLimit (line 10164) | function concatLimit(coll, limit, iteratee, callback) {
function concat (line 10278) | function concat(coll, iteratee, callback) {
function concatSeries (line 10303) | function concatSeries(coll, iteratee, callback) {
function constant$1 (line 10350) | function constant$1(...args) {
function _createTester (line 10357) | function _createTester(check, getResult) {
function detect (line 10451) | function detect(coll, iteratee, callback) {
function detectLimit (line 10479) | function detectLimit(coll, limit, iteratee, callback) {
function detectSeries (line 10505) | function detectSeries(coll, iteratee, callback) {
function consoleFunc (line 10511) | function consoleFunc(name) {
function doWhilst (line 10582) | function doWhilst(iteratee, test, callback) {
function doUntil (line 10628) | function doUntil(iteratee, test, callback) {
function _withoutIndex (line 10636) | function _withoutIndex(iteratee) {
function eachLimit$2 (line 10739) | function eachLimit$2(coll, iteratee, callback) {
function eachLimit (line 10766) | function eachLimit(coll, limit, iteratee, callback) {
function eachSeries (line 10794) | function eachSeries(coll, iteratee, callback) {
function ensureAsync (line 10834) | function ensureAsync(fn) {
function every (line 10945) | function every(coll, iteratee, callback) {
function everyLimit (line 10971) | function everyLimit(coll, limit, iteratee, callback) {
function everySeries (line 10996) | function everySeries(coll, iteratee, callback) {
function filterArray (line 11001) | function filterArray(eachfn, arr, iteratee, callback) {
function filterGeneric (line 11018) | function filterGeneric(eachfn, coll, iteratee, callback) {
function _filter (line 11036) | function _filter(eachfn, coll, iteratee, callback) {
function filter (line 11109) | function filter (coll, iteratee, callback) {
function filterLimit (line 11134) | function filterLimit (coll, limit, iteratee, callback) {
function filterSeries (line 11157) | function filterSeries (coll, iteratee, callback) {
function forever (line 11193) | function forever(fn, errback) {
function groupByLimit (line 11226) | function groupByLimit(coll, limit, iteratee, callback) {
function groupBy (line 11348) | function groupBy (coll, iteratee, callback) {
function groupBySeries (line 11371) | function groupBySeries (coll, iteratee, callback) {
function mapValuesLimit (line 11426) | function mapValuesLimit(obj, limit, iteratee, callback) {
function mapValues (line 11576) | function mapValues(obj, iteratee, callback) {
function mapValuesSeries (line 11600) | function mapValuesSeries(obj, iteratee, callback) {
function memoize (line 11644) | function memoize(fn, hasher = v => v) {
function parallel (line 11892) | function parallel(tasks, callback) {
function parallelLimit (line 11916) | function parallelLimit(tasks, limit, callback) {
function queue (line 12062) | function queue (worker, concurrency) {
class Heap (line 12071) | class Heap {
method constructor (line 12072) | constructor() {
method length (line 12077) | get length() {
method empty (line 12081) | empty () {
method percUp (line 12086) | percUp(index) {
method percDown (line 12098) | percDown(index) {
method push (line 12118) | push(node) {
method unshift (line 12124) | unshift(node) {
method shift (line 12128) | shift() {
method toArray (line 12138) | toArray() {
method remove (line 12148) | remove (testFn) {
method [Symbol.iterator] (line 12142) | *[Symbol.iterator] () {
function leftChi (line 12167) | function leftChi(i) {
function parent (line 12171) | function parent(i) {
function smaller (line 12175) | function smaller(x, y) {
function priorityQueue (line 12209) | function priorityQueue(worker, concurrency) {
function race (line 12286) | function race(tasks, callback) {
function reduceRight (line 12320) | function reduceRight (array, memo, iteratee, callback) {
function reflect (line 12364) | function reflect(fn) {
function reflectAll (line 12453) | function reflectAll(tasks) {
function reject$2 (line 12466) | function reject$2(eachfn, arr, _iteratee, callback) {
function reject (line 12537) | function reject (coll, iteratee, callback) {
function rejectLimit (line 12562) | function rejectLimit (coll, limit, iteratee, callback) {
function rejectSeries (line 12585) | function rejectSeries (coll, iteratee, callback) {
function constant (line 12590) | function constant(value) {
function retry (line 12684) | function retry(opts, task, callback) {
function parseTimes (line 12722) | function parseTimes(acc, t) {
function retryable (line 12767) | function retryable (opts, task) {
function series (line 12958) | function series(tasks, callback) {
function some (line 13059) | function some(coll, iteratee, callback) {
function someLimit (line 13086) | function someLimit(coll, limit, iteratee, callback) {
function someSeries (line 13112) | function someSeries(coll, iteratee, callback) {
function sortBy (line 13267) | function sortBy (coll, iteratee, callback) {
function timeout (line 13327) | function timeout(asyncFn, milliseconds, info) {
function range (line 13358) | function range(size) {
function timesLimit (line 13383) | function timesLimit(count, limit, iteratee, callback) {
function times (line 13421) | function times (n, iteratee, callback) {
function timesSeries (line 13440) | function timesSeries (n, iteratee, callback) {
function transform (line 13579) | function transform (coll, accumulator, iteratee, callback) {
function tryEach (line 13632) | function tryEach(tasks, callback) {
function unmemoize (line 13665) | function unmemoize(fn) {
function whilst (line 13705) | function whilst(test, iteratee, callback) {
function until (line 13768) | function until(test, iteratee, callback) {
function waterfall (line 13830) | function waterfall (tasks, callback) {
function isBuffer (line 14117) | function isBuffer (value) {
function isEncoding (line 14121) | function isEncoding (encoding) {
function alloc (line 14125) | function alloc (size, fill, encoding) {
function allocUnsafe (line 14129) | function allocUnsafe (size) {
function allocUnsafeSlow (line 14133) | function allocUnsafeSlow (size) {
function byteLength (line 14137) | function byteLength (string, encoding) {
function compare (line 14141) | function compare (a, b) {
function concat (line 14145) | function concat (buffers, totalLength) {
function copy (line 14149) | function copy (source, target, targetStart, start, end) {
function equals (line 14153) | function equals (a, b) {
function fill (line 14157) | function fill (buffer, value, offset, end, encoding) {
function from (line 14161) | function from (value, encodingOrOffset, length) {
function includes (line 14165) | function includes (buffer, value, byteOffset, encoding) {
function indexOf (line 14169) | function indexOf (buffer, value, byfeOffset, encoding) {
function lastIndexOf (line 14173) | function lastIndexOf (buffer, value, byteOffset, encoding) {
function swap16 (line 14177) | function swap16 (buffer) {
function swap32 (line 14181) | function swap32 (buffer) {
function swap64 (line 14185) | function swap64 (buffer) {
function toBuffer (line 14189) | function toBuffer (buffer) {
function toString (line 14194) | function toString (buffer, encoding, start, end) {
function write (line 14198) | function write (buffer, string, offset, length, encoding) {
function writeDoubleLE (line 14202) | function writeDoubleLE (buffer, value, offset) {
function writeFloatLE (line 14206) | function writeFloatLE (buffer, value, offset) {
function writeUInt32LE (line 14210) | function writeUInt32LE (buffer, value, offset) {
function writeInt32LE (line 14214) | function writeInt32LE (buffer, value, offset) {
function readDoubleLE (line 14218) | function readDoubleLE (buffer, offset) {
function readFloatLE (line 14222) | function readFloatLE (buffer, offset) {
function readUInt32LE (line 14226) | function readUInt32LE (buffer, offset) {
function readInt32LE (line 14230) | function readInt32LE (buffer, offset) {
function balanced (line 14274) | function balanced(a, b, str) {
function maybeMatch (line 14289) | function maybeMatch(reg, str) {
function range (line 14295) | function range(a, b, str) {
function getBytes (line 14372) | function getBytes (bytes, cb, skip) {
function dispatch (line 14385) | function dispatch () {
function builder (line 14421) | function builder (saw) {
function decodeLEu (line 14676) | function decodeLEu (bytes) {
function decodeBEu (line 14685) | function decodeBEu (bytes) {
function decodeBEs (line 14694) | function decodeBEs (bytes) {
function decodeLEs (line 14703) | function decodeLEs (bytes) {
function words (line 14711) | function words (decode) {
function getset (line 14746) | function getset (name, value) {
function getCjsExportFromNamespace (line 14791) | function getCjsExportFromNamespace (n) {
method constructor (line 14823) | constructor(incr, decr) {
method push (line 14831) | push(value) {
method shift (line 14851) | shift() {
method first (line 14870) | first() {
method getArray (line 14876) | getArray() {
method forEachShift (line 14886) | forEachShift(cb) {
method debug (line 14895) | debug() {
method constructor (line 14916) | constructor(instance) {
method _addListener (line 14937) | _addListener(name, status, cb) {
method listenerCount (line 14946) | listenerCount(name) {
method trigger (line 14954) | async trigger(name, ...args) {
method constructor (line 15012) | constructor(num_priorities) {
method incr (line 15030) | incr() {
method decr (line 15036) | decr() {
method push (line 15042) | push(job) {
method queued (line 15046) | queued(priority) {
method shiftAll (line 15054) | shiftAll(fn) {
method getFirst (line 15060) | getFirst(arr = this._lists) {
method shiftLastFrom (line 15071) | shiftLastFrom(priority) {
method constructor (line 15096) | constructor(task, args, options, jobDefaults, rejectOnDrop, Events, _sta...
method _sanitizePriority (line 15115) | _sanitizePriority(priority) {
method _randomIndex (line 15127) | _randomIndex() {
method doDrop (line 15131) | doDrop({error, message = "This job has been dropped by Bottleneck"} = {}) {
method _assertStatus (line 15143) | _assertStatus(expected) {
method doReceive (line 15151) | doReceive() {
method doQueue (line 15156) | doQueue(reachedHWM, blocked) {
method doRun (line 15162) | doRun() {
method doExecute (line 15172) | async doExecute(chained, clearGlobalState, run, free) {
method doExpire (line 15196) | doExpire(clearGlobalState, run, free) {
method _onFailure (line 15207) | async _onFailure(error, eventInfo, clearGlobalState, run, free) {
method doDone (line 15225) | doDone(eventInfo) {
method constructor (line 15242) | constructor(instance, storeOptions, storeInstanceOptions) {
method _startHeartbeat (line 15256) | _startHeartbeat() {
method __publish__ (line 15286) | async __publish__(message) {
method __disconnect__ (line 15291) | async __disconnect__(flush) {
method yieldLoop (line 15297) | yieldLoop(t = 0) {
method computePenalty (line 15303) | computePenalty() {
method __updateSettings__ (line 15308) | async __updateSettings__(options) {
method __running__ (line 15316) | async __running__() {
method __queued__ (line 15321) | async __queued__() {
method __done__ (line 15326) | async __done__() {
method __groupCheck__ (line 15331) | async __groupCheck__(time) {
method computeCapacity (line 15336) | computeCapacity() {
method conditionsCheck (line 15350) | conditionsCheck(weight) {
method __incrementReservoir__ (line 15356) | async __incrementReservoir__(incr) {
method __currentReservoir__ (line 15364) | async __currentReservoir__() {
method isBlocked (line 15369) | isBlocked(now) {
method check (line 15373) | check(weight, now) {
method __check__ (line 15377) | async __check__(weight) {
method __register__ (line 15384) | async __register__(index, weight, expiration) {
method strategyIsBlock (line 15407) | strategyIsBlock() {
method __submit__ (line 15411) | async __submit__(queueLength, weight) {
method __free__ (line 15432) | async __free__(index, weight) {
method constructor (line 15451) | constructor(status1) {
method next (line 15459) | next(id) {
method start (line 15473) | start(id) {
method remove (line 15480) | remove(id) {
method jobStatus (line 15490) | jobStatus(id) {
method statusJobs (line 15495) | statusJobs(status) {
method statusCounts (line 15516) | statusCounts() {
method constructor (line 15532) | constructor(name, Promise) {
method isEmpty (line 15540) | isEmpty() {
method _tryToRun (line 15544) | async _tryToRun() {
method schedule (line 15568) | schedule(task, ...args) {
class Group (line 15613) | class Group {
method constructor (line 15614) | constructor(limiterOptions = {}) {
method key (line 15632) | key(key = "") {
method deleteKey (line 15646) | async deleteKey(key = "") {
method limiters (line 15659) | limiters() {
method keys (line 15673) | keys() {
method clusterKeys (line 15677) | async clusterKeys() {
method _startAutoCleanup (line 15697) | _startAutoCleanup() {
method updateSettings (line 15722) | updateSettings(options = {}) {
method disconnect (line 15730) | disconnect(flush = true) {
class Batcher (line 15758) | class Batcher {
method constructor (line 15759) | constructor(options = {}) {
method _resetPromise (line 15768) | _resetPromise() {
method _flush (line 15774) | _flush() {
method add (line 15783) | add(data) {
class Bottleneck (line 15838) | class Bottleneck {
method constructor (line 15839) | constructor(options = {}, ...invalid) {
method _validateOptions (line 15873) | _validateOptions(options, invalid) {
method ready (line 15879) | ready() {
method clients (line 15883) | clients() {
method channel (line 15887) | channel() {
method channel_client (line 15891) | channel_client() {
method publish (line 15895) | publish(message) {
method disconnect (line 15899) | disconnect(flush = true) {
method chain (line 15903) | chain(_limiter) {
method queued (line 15908) | queued(priority) {
method clusterQueued (line 15912) | clusterQueued() {
method empty (line 15916) | empty() {
method running (line 15920) | running() {
method done (line 15924) | done() {
method jobStatus (line 15928) | jobStatus(id) {
method jobs (line 15932) | jobs(status) {
method counts (line 15936) | counts() {
method _randomIndex (line 15940) | _randomIndex() {
method check (line 15944) | check(weight = 1) {
method _clearGlobalState (line 15948) | _clearGlobalState(index) {
method _free (line 15958) | async _free(index, job, options, eventInfo) {
method _run (line 15972) | _run(index, job, wait) {
method _drainOne (line 15989) | _drainOne(capacity) {
method _drainAll (line 16023) | _drainAll(capacity, total = 0) {
method _dropAllQueued (line 16037) | _dropAllQueued(message) {
method stop (line 16043) | stop(options = {}) {
method _addToQueue (line 16104) | async _addToQueue(job) {
method _receive (line 16136) | _receive(job) {
method submit (line 16146) | submit(...args) {
method schedule (line 16175) | schedule(...args) {
method wrap (line 16188) | wrap(fn) {
method updateSettings (line 16200) | async updateSettings(options = {}) {
method currentReservoir (line 16206) | currentReservoir() {
method incrementReservoir (line 16210) | incrementReservoir(incr = 0) {
function numeric (line 16320) | function numeric(str) {
function escapeBraces (line 16326) | function escapeBraces(str) {
function unescapeBraces (line 16334) | function unescapeBraces(str) {
function parseCommaParts (line 16346) | function parseCommaParts(str) {
function expandTop (line 16373) | function expandTop(str) {
function embrace (line 16390) | function embrace(str) {
function isPadded (line 16393) | function isPadded(el) {
function lte (line 16397) | function lte(i, y) {
function gte (line 16400) | function gte(i, y) {
function expand (line 16404) | function expand(str, isTop) {
function Buffers (line 16522) | function Buffers (bufs) {
function Chainsaw (line 16800) | function Chainsaw (builder) {
function upgradeChainsaw (line 16899) | function upgradeChainsaw(saw) {
function handleStuff (line 18007) | function handleStuff() {
function isArray (line 18358) | function isArray(arg) {
function isBoolean (line 18366) | function isBoolean(arg) {
function isNull (line 18371) | function isNull(arg) {
function isNullOrUndefined (line 18376) | function isNullOrUndefined(arg) {
function isNumber (line 18381) | function isNumber(arg) {
function isString (line 18386) | function isString(arg) {
function isSymbol (line 18391) | function isSymbol(arg) {
function isUndefined (line 18396) | function isUndefined(arg) {
function isRegExp (line 18401) | function isRegExp(re) {
function isObject (line 18406) | function isObject(arg) {
function isDate (line 18411) | function isDate(d) {
function isError (line 18416) | function isError(e) {
function isFunction (line 18421) | function isFunction(arg) {
function isPrimitive (line 18426) | function isPrimitive(arg) {
function objectToString (line 18438) | function objectToString(o) {
function signed_crc_table (line 18467) | function signed_crc_table() {
function slice_by_16_tables (line 18487) | function slice_by_16_tables(T) {
function crc32_bstr (line 18503) | function crc32_bstr(bstr, seed) {
function crc32_buf (line 18509) | function crc32_buf(B, seed) {
function crc32_str (line 18524) | function crc32_str(str, seed) {
class CRC32Stream (line 18576) | class CRC32Stream extends Transform {
method constructor (line 18577) | constructor(options) {
method _transform (line 18585) | _transform(chunk, encoding, callback) {
method digest (line 18594) | digest(encoding) {
method hex (line 18600) | hex() {
method size (line 18604) | size() {
class DeflateCRC32Stream (line 18631) | class DeflateCRC32Stream extends DeflateRaw {
method constructor (line 18632) | constructor(options) {
method push (line 18642) | push(chunk, encoding) {
method _transform (line 18650) | _transform(chunk, encoding, callback) {
method digest (line 18659) | digest(encoding) {
method hex (line 18665) | hex() {
method size (line 18669) | size(compressed = false) {
function useColors (line 18821) | function useColors() {
function formatArgs (line 18855) | function formatArgs(args) {
function save (line 18906) | function save(namespaces) {
function load (line 18925) | function load() {
function localstorage (line 18953) | function localstorage() {
function setup (line 18992) | function setup(env) {
function useColors (line 19456) | function useColors() {
function formatArgs (line 19468) | function formatArgs(args) {
function getDate (line 19483) | function getDate() {
function log (line 19494) | function log(...args) {
function save (line 19504) | function save(namespaces) {
function load (line 19521) | function load() {
function init (line 19532) | function init(debug) {
function pd (line 19615) | function pd(event) {
function setCancelFlag (line 19629) | function setCancelFlag(data) {
function Event (line 19662) | function Event(eventTarget, event) {
method type (line 19694) | get type() {
method target (line 19702) | get target() {
method currentTarget (line 19710) | get currentTarget() {
method composedPath (line 19717) | composedPath() {
method NONE (line 19729) | get NONE() {
method CAPTURING_PHASE (line 19737) | get CAPTURING_PHASE() {
method AT_TARGET (line 19745) | get AT_TARGET() {
method BUBBLING_PHASE (line 19753) | get BUBBLING_PHASE() {
method eventPhase (line 19761) | get eventPhase() {
method stopPropagation (line 19769) | stopPropagation() {
method stopImmediatePropagation (line 19782) | stopImmediatePropagation() {
method bubbles (line 19796) | get bubbles() {
method cancelable (line 19804) | get cancelable() {
method preventDefault (line 19812) | preventDefault() {
method defaultPrevented (line 19820) | get defaultPrevented() {
method composed (line 19828) | get composed() {
method timeStamp (line 19836) | get timeStamp() {
method srcElement (line 19845) | get srcElement() {
method cancelBubble (line 19854) | get cancelBubble() {
method cancelBubble (line 19857) | set cancelBubble(value) {
method returnValue (line 19874) | get returnValue() {
method returnValue (line 19877) | set returnValue(value) {
method initEvent (line 19890) | initEvent() {
function defineRedirectDescriptor (line 19916) | function defineRedirectDescriptor(key) {
function defineCallDescriptor (line 19935) | function defineCallDescriptor(key) {
function defineWrapper (line 19953) | function defineWrapper(BaseEvent, proto) {
function getWrapper (line 19993) | function getWrapper(proto) {
function wrapEvent (line 20013) | function wrapEvent(eventTarget, event) {
function isStopped (line 20024) | function isStopped(event) {
function setEventPhase (line 20035) | function setEventPhase(event, eventPhase) {
function setCurrentTarget (line 20046) | function setCurrentTarget(event, currentTarget) {
function setPassiveListener (line 20057) | function setPassiveListener(event, passiveListener) {
function isObject (line 20087) | function isObject(x) {
function getListeners (line 20097) | function getListeners(eventTarget) {
function defineEventAttributeDescriptor (line 20113) | function defineEventAttributeDescriptor(eventName) {
function defineEventAttribute (line 20180) | function defineEventAttribute(eventTargetPrototype, eventName) {
function defineCustomEventTarget (line 20194) | function defineCustomEventTarget(eventNames) {
function EventTarget (line 20228) | function EventTarget() {
method addEventListener (line 20257) | addEventListener(eventName, listener, options) {
method removeEventListener (line 20311) | removeEventListener(eventName, listener, options) {
method dispatchEvent (line 20349) | dispatchEvent(event) {
method constructor (line 20451) | constructor (hwm) {
method clear (line 20460) | clear () {
method push (line 20466) | push (data) {
method shift (line 20473) | shift () {
method peek (line 20481) | peek () {
method isEmpty (line 20485) | isEmpty () {
method constructor (line 20499) | constructor (hwm) {
method clear (line 20506) | clear () {
method push (line 20512) | push (val) {
method shift (line 20521) | shift () {
method peek (line 20534) | peek () {
method isEmpty (line 20540) | isEmpty () {
function clone (line 20559) | function clone (obj) {
function noop (line 20602) | function noop () {}
function publishQueue (line 20604) | function publishQueue(context, queue) {
function close (line 20633) | function close (fd, cb) {
function closeSync (line 20652) | function closeSync (fd) {
function patch (line 20682) | function patch (fs) {
function enqueue (line 20951) | function enqueue (elem) {
function resetQueue (line 20963) | function resetQueue () {
function retry (line 20977) | function retry () {
function legacy (line 21040) | function legacy (fs) {
function patch (line 21189) | function patch (fs) {
class HttpProxyAgent (line 21563) | class HttpProxyAgent extends agent_base_1.Agent {
method constructor (line 21564) | constructor(proxy, opts) {
method addRequest (line 21582) | addRequest(req, opts) {
method setRequestProps (line 21588) | setRequestProps(req, opts) {
method connect (line 21620) | async connect(req, opts) {
function omit (line 21660) | function omit(obj, ...keys) {
class HttpsProxyAgent (line 21737) | class HttpsProxyAgent extends agent_base_1.Agent {
method constructor (line 21738) | constructor(proxy, opts) {
method connect (line 21763) | async connect(req, opts) {
function resume (line 21843) | function resume(socket) {
function omit (line 21846) | function omit(obj, ...keys) {
function parseProxyResponse (line 21871) | function parseProxyResponse(socket) {
function beforeFirstCall (line 22081) | function beforeFirstCall(instance, method, callback) {
function Readable (line 22089) | function Readable(fn, options) {
method constructor (line 37125) | constructor (opts) {
method setEncoding (line 37139) | setEncoding (encoding) {
method _read (line 37151) | _read (cb) {
method pipe (line 37155) | pipe (dest, cb) {
method read (line 37161) | read () {
method push (line 37166) | push (data) {
method unshift (line 37171) | unshift (data) {
method resume (line 37176) | resume () {
method pause (line 37182) | pause () {
method _fromAsyncIterator (line 37187) | static _fromAsyncIterator (ite, opts) {
method from (line 37212) | static from (data, opts) {
method isBackpressured (line 37227) | static isBackpressured (rs) {
method isPaused (line 37231) | static isPaused (rs) {
method [asyncIterator] (line 37235) | [asyncIterator] () {
function Writable (line 22105) | function Writable(fn, options) {
method constructor (line 37297) | constructor (opts) {
method cork (line 37311) | cork () {
method uncork (line 37315) | uncork () {
method _writev (line 37320) | _writev (batch, cb) {
method _write (line 37324) | _write (data, cb) {
method _final (line 37328) | _final (cb) {
method isBackpressured (line 37332) | static isBackpressured (ws) {
method drained (line 37336) | static drained (ws) {
method write (line 37348) | write (data) {
method end (line 37353) | end (data) {
function Duplex (line 22191) | function Duplex(options) {
method constructor (line 37361) | constructor (opts) {
method cork (line 37374) | cork () {
method uncork (line 37378) | uncork () {
method _writev (line 37383) | _writev (batch, cb) {
method _write (line 37387) | _write (data, cb) {
method _final (line 37391) | _final (cb) {
method write (line 37395) | write (data) {
method end (line 37400) | end (data) {
function onend (line 22218) | function onend() {
function onEndNT (line 22228) | function onEndNT(self) {
function PassThrough (line 22303) | function PassThrough(options) {
function _uint8ArrayToBuffer (line 22374) | function _uint8ArrayToBuffer(chunk) {
function _isUint8Array (line 22377) | function _isUint8Array(obj) {
function prependListener (line 22406) | function prependListener(emitter, event, fn) {
function ReadableState (line 22418) | function ReadableState(options, stream) {
method constructor (line 36676) | constructor (stream, { highWaterMark = 16384, map = null, mapReadable,...
method ended (line 36691) | get ended () {
method pipe (line 36695) | pipe (pipeTo, cb) {
method push (line 36722) | push (data) {
method shift (line 36747) | shift () {
method unshift (line 36755) | unshift (data) {
method read (line 36768) | read () {
method drain (line 36786) | drain () {
method update (line 36796) | update () {
method updateNonPrimary (line 36821) | updateNonPrimary () {
method continueUpdate (line 36845) | continueUpdate () {
method updateCallback (line 36851) | updateCallback () {
method updateNextTick (line 36856) | updateNextTick () {
function Readable (line 22495) | function Readable(options) {
method constructor (line 37125) | constructor (opts) {
method setEncoding (line 37139) | setEncoding (encoding) {
method _read (line 37151) | _read (cb) {
method pipe (line 37155) | pipe (dest, cb) {
method read (line 37161) | read () {
method push (line 37166) | push (data) {
method unshift (line 37171) | unshift (data) {
method resume (line 37176) | resume () {
method pause (line 37182) | pause () {
method _fromAsyncIterator (line 37187) | static _fromAsyncIterator (ite, opts) {
method from (line 37212) | static from (data, opts) {
method isBackpressured (line 37227) | static isBackpressured (rs) {
method isPaused (line 37231) | static isPaused (rs) {
method [asyncIterator] (line 37235) | [asyncIterator] () {
function readableAddChunk (line 22570) | function readableAddChunk(stream, chunk, encoding, addToFront, skipChunk...
function addChunk (line 22606) | function addChunk(stream, state, chunk, addToFront) {
function chunkInvalid (line 22620) | function chunkInvalid(state, chunk) {
function needMoreData (line 22635) | function needMoreData(state) {
function computeNewHighWaterMark (line 22653) | function computeNewHighWaterMark(n) {
function howMuchToRead (line 22672) | function howMuchToRead(n, state) {
function onEofChunk (line 22791) | function onEofChunk(stream, state) {
function emitReadable (line 22809) | function emitReadable(stream) {
function emitReadable_ (line 22819) | function emitReadable_(stream) {
function maybeReadMore (line 22831) | function maybeReadMore(stream, state) {
function maybeReadMore_ (line 22838) | function maybeReadMore_(stream, state) {
function onunpipe (line 22882) | function onunpipe(readable, unpipeInfo) {
function onend (line 22892) | function onend() {
function cleanup (line 22905) | function cleanup() {
function ondata (line 22933) | function ondata(chunk) {
function onerror (line 22953) | function onerror(er) {
function onclose (line 22964) | function onclose() {
function onfinish (line 22969) | function onfinish() {
function unpipe (line 22976) | function unpipe() {
function pipeOnDrain (line 22993) | function pipeOnDrain(src) {
function nReadingNextTick (line 23080) | function nReadingNextTick(self) {
function resume (line 23097) | function resume(stream, state) {
function resume_ (line 23104) | function resume_(stream, state) {
function flow (line 23127) | function flow(stream) {
function fromList (line 23213) | function fromList(n, state) {
function fromListPartial (line 23233) | function fromListPartial(n, list, hasStrings) {
function copyFromBufferString (line 23253) | function copyFromBufferString(n, list) {
function copyFromBuffer (line 23282) | function copyFromBuffer(n, list) {
function endReadable (line 23309) | function endReadable(stream) {
function endReadableNT (line 23322) | function endReadableNT(state, stream) {
function indexOf (line 23331) | function indexOf(xs, x) {
function afterTransform (line 23419) | function afterTransform(er, data) {
function Transform (line 23444) | function Transform(options) {
method constructor (line 37408) | constructor (opts) {
method _write (line 37418) | _write (data, cb) {
method _read (line 37426) | _read (cb) {
method destroy (line 37437) | destroy (err) {
method _transform (line 37445) | _transform (data, cb) {
method _flush (line 37449) | _flush (cb) {
method _final (line 37453) | _final (cb) {
function prefinish (line 23476) | function prefinish() {
function done (line 23543) | function done(stream, er, data) {
function WriteReq (line 23598) | function WriteReq(chunk, encoding, cb) {
function CorkedRequest (line 23607) | function CorkedRequest(state) {
function _uint8ArrayToBuffer (line 23647) | function _uint8ArrayToBuffer(chunk) {
function _isUint8Array (line 23650) | function _isUint8Array(obj) {
function nop (line 23660) | function nop() {}
function WritableState (line 23662) | function WritableState(options, stream) {
method constructor (line 36555) | constructor (stream, { highWaterMark = 16384, map = null, mapWritable,...
method ended (line 36569) | get ended () {
method push (line 36573) | push (data) {
method shift (line 36588) | shift () {
method end (line 36597) | end (data) {
method autoBatch (line 36603) | autoBatch (data, cb) {
method update (line 36616) | update () {
method updateNonPrimary (line 36634) | updateNonPrimary () {
method continueUpdate (line 36657) | continueUpdate () {
method updateCallback (line 36663) | updateCallback () {
method updateNextTick (line 36668) | updateNextTick () {
function Writable (line 23812) | function Writable(options) {
method constructor (line 37297) | constructor (opts) {
method cork (line 37311) | cork () {
method uncork (line 37315) | uncork () {
method _writev (line 37320) | _writev (batch, cb) {
method _write (line 37324) | _write (data, cb) {
method _final (line 37328) | _final (cb) {
method isBackpressured (line 37332) | static isBackpressured (ws) {
method drained (line 37336) | static drained (ws) {
method write (line 37348) | write (data) {
method end (line 37353) | end (data) {
function writeAfterEnd (line 23849) | function writeAfterEnd(stream, cb) {
function validChunk (line 23859) | function validChunk(stream, state, chunk, cb) {
function decodeChunk (line 23926) | function decodeChunk(state, chunk, encoding) {
function writeOrBuffer (line 23946) | function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
function doWrite (line 23985) | function doWrite(stream, state, writev, len, chunk, encoding, cb) {
function onwriteError (line 23994) | function onwriteError(stream, state, sync, er, cb) {
function onwriteStateUpdate (line 24018) | function onwriteStateUpdate(state) {
function onwrite (line 24025) | function onwrite(stream, er) {
function afterWrite (line 24050) | function afterWrite(stream, state, finished, cb) {
function onwriteDrain (line 24060) | function onwriteDrain(stream, state) {
function clearBuffer (line 24068) | function clearBuffer(stream, state) {
function needFinish (line 24159) | function needFinish(state) {
function callFinal (line 24162) | function callFinal(stream, state) {
function prefinish (line 24173) | function prefinish(stream, state) {
function finishMaybe (line 24186) | function finishMaybe(stream, state) {
function endWritable (line 24198) | function endWritable(stream, state, cb) {
function onCorkedFinish (line 24208) | function onCorkedFinish(corkReq, state, err) {
function _classCallCheck (line 24256) | function _classCallCheck(instance, Constructor) { if (!(instance instanc...
function copyBuffer (line 24261) | function copyBuffer(src, target, offset) {
function BufferList (line 24266) | function BufferList() {
method constructor (line 37643) | constructor () {
method push (line 37651) | push (buffer) {
method shiftFirst (line 37656) | shiftFirst (size) {
method shift (line 37660) | shift (size) {
method _next (line 37678) | _next (size) {
function destroy (line 24346) | function destroy(err, cb) {
function undestroy (line 24395) | function undestroy() {
function emitErrorNT (line 24414) | function emitErrorNT(self, err) {
function copyProps (line 24475) | function copyProps (src, dst) {
function SafeBuffer (line 24488) | function SafeBuffer (arg, encodingOrOffset, length) {
function _normalizeEncoding (line 24577) | function _normalizeEncoding(enc) {
function normalizeEncoding (line 24607) | function normalizeEncoding(enc) {
function StringDecoder (line 24617) | function StringDecoder(encoding) {
function utf8CheckByte (line 24678) | function utf8CheckByte(byte) {
function utf8CheckIncomplete (line 24686) | function utf8CheckIncomplete(self, buf, i) {
function utf8CheckExtraBytes (line 24719) | function utf8CheckExtraBytes(self, buf, p) {
function utf8FillLast (line 24739) | function utf8FillLast(buf) {
function utf8Text (line 24754) | function utf8Text(buf, i) {
function utf8End (line 24765) | function utf8End(buf) {
function utf16Text (line 24775) | function utf16Text(buf, i) {
function utf16End (line 24798) | function utf16End(buf) {
function base64Text (line 24807) | function base64Text(buf, i) {
function base64End (line 24821) | function base64End(buf) {
function simpleWrite (line 24828) | function simpleWrite(buf) {
function simpleEnd (line 24832) | function simpleEnd(buf) {
function Hash (line 24854) | function Hash(entries) {
function ListCache (line 24893) | function ListCache(entries) {
function MapCache (line 24946) | function MapCache(entries) {
function SetCache (line 24998) | function SetCache(values) {
function apply (line 25043) | function apply(func, thisArg, args) {
function arrayIncludes (line 25072) | function arrayIncludes(array, value) {
function arrayIncludesWith (line 25094) | function arrayIncludesWith(array, value, comparator) {
function arrayLikeKeys (line 25135) | function arrayLikeKeys(value, inherited) {
function arrayMap (line 25179) | function arrayMap(array, iteratee) {
function arrayPush (line 25206) | function arrayPush(array, values) {
function assocIndexOf (line 25235) | function assocIndexOf(array, key) {
function baseDifference (line 25274) | function baseDifference(array, values, iteratee, comparator) {
function baseFindIndex (line 25338) | function baseFindIndex(array, predicate, fromIndex, fromRight) {
function baseFlatten (line 25372) | function baseFlatten(array, depth, predicate, isStrict, result) {
function baseGetTag (line 25421) | function baseGetTag(value) {
function baseIndexOf (line 25451) | function baseIndexOf(array, value, fromIndex) {
function baseIsArguments (line 25478) | function baseIsArguments(value) {
function baseIsNaN (line 25497) | function baseIsNaN(value) {
function baseIsNative (line 25547) | function baseIsNative(value) {
function baseIsTypedArray (line 25617) | function baseIsTypedArray(value) {
function baseKeysIn (line 25647) | function baseKeysIn(object) {
function baseRest (line 25682) | function baseRest(func, start) {
function baseTimes (line 25732) | function baseTimes(n, iteratee) {
function baseUnary (line 25757) | function baseUnary(func) {
function baseUniq (line 25790) | function baseUniq(array, iteratee, comparator) {
function cacheHas (line 25858) | function cacheHas(cache, key) {
function getMapData (line 25948) | function getMapData(map, key) {
function getNative (line 25974) | function getNative(object, key) {
function getRawTag (line 26025) | function getRawTag(value) {
function getValue (line 26061) | function getValue(object, key) {
function hashClear (line 26082) | function hashClear() {
function hashDelete (line 26105) | function hashDelete(key) {
function hashGet (line 26139) | function hashGet(key) {
function hashHas (line 26173) | function hashHas(key) {
function hashSet (line 26201) | function hashSet(key, value) {
function isFlattenable (line 26230) | function isFlattenable(value) {
function isIndex (line 26257) | function isIndex(value, length) {
function isIterateeCall (line 26290) | function isIterateeCall(value, index, object) {
function isKeyable (line 26319) | function isKeyable(value) {
function isMasked (line 26349) | function isMasked(func) {
function isPrototype (line 26371) | function isPrototype(value) {
function listCacheClear (line 26393) | function listCacheClear() {
function listCacheDelete (line 26423) | function listCacheDelete(key) {
function listCacheGet (line 26459) | function listCacheGet(key) {
function listCacheHas (line 26485) | function listCacheHas(key) {
function listCacheSet (line 26509) | function listCacheSet(key, value) {
function mapCacheClear (line 26541) | function mapCacheClear() {
function mapCacheDelete (line 26569) | function mapCacheDelete(key) {
function mapCacheGet (line 26594) | function mapCacheGet(key) {
function mapCacheHas (line 26617) | function mapCacheHas(key) {
function mapCacheSet (line 26641) | function mapCacheSet(key, value) {
function nativeKeysIn (line 26680) | function nativeKeysIn(object) {
function objectToString (line 26753) | function objectToString(value) {
function overArg (line 26773) | function overArg(func, transform) {
function overRest (line 26801) | function overRest(func, start, transform) {
function setCacheAdd (line 26859) | function setCacheAdd(value) {
function setCacheHas (line 26881) | function setCacheHas(value) {
function setToArray (line 26900) | function setToArray(set) {
function shortOut (line 26955) | function shortOut(func) {
function strictIndexOf (line 26993) | function strictIndexOf(array, value, fromIndex) {
function toSource (line 27026) | function toSource(func) {
function constant (line 27065) | function constant(value) {
function eq (line 27222) | function eq(value, other) {
function flatten (line 27250) | function flatten(array) {
function identity (line 27279) | function identity(value) {
function isArrayLike (line 27395) | function isArrayLike(value) {
function isArrayLikeObject (line 27435) | function isArrayLikeObject(value) {
function isFunction (line 27519) | function isFunction(value) {
function isLength (line 27566) | function isLength(value) {
function isObject (line 27604) | function isObject(value) {
function isObjectLike (line 27641) | function isObjectLike(value) {
function isPlainObject (line 27701) | function isPlainObject(value) {
function keysIn (line 27783) | function keysIn(object) {
function noop (line 27807) | function noop() {
function stubFalse (line 27832) | function stubFalse() {
function mkdirP (line 27883) | function mkdirP (p, opts, f, made) {
function parse (line 28033) | function parse(str) {
function fmtShort (line 28098) | function fmtShort(ms) {
function fmtLong (line 28123) | function fmtLong(ms) {
function plural (line 28144) | function plural(ms, msAbs, n, name) {
function nextTick (line 28208) | function nextTick(fn, arg1, arg2, arg3) {
method constructor (line 28341) | constructor() {
method push (line 28346) | push(v) {
method unshift (line 28356) | unshift(v) {
method shift (line 28365) | shift() {
method clear (line 28373) | clear() {
method join (line 28377) | join(s) {
method concat (line 28384) | concat(n) {
method consume (line 28398) | consume(n, hasStrings) {
method first (line 28413) | first() {
method [SymbolIterator] (line 28416) | *[SymbolIterator]() {
method _getString (line 28423) | _getString(n) {
method _getBuffer (line 28452) | _getBuffer(n) {
method [Symbol.for('nodejs.util.inspect.custom')] (line 28482) | [Symbol.for('nodejs.util.inspect.custom')](_, options) {
function onfinished (line 28553) | function onfinished(err) {
function checkError (line 28717) | function checkError(err, w, r) {
function destroy (line 28733) | function destroy(err, cb) {
function _destroy (line 28765) | function _destroy(self, err, cb) {
function emitErrorCloseNT (line 28796) | function emitErrorCloseNT(self, err) {
function emitCloseNT (line 28800) | function emitCloseNT(self) {
function emitErrorNT (line 28813) | function emitErrorNT(self, err) {
function undestroy (line 28827) | function undestroy() {
function errorOrDestroy (line 28855) | function errorOrDestroy(stream, err, sync) {
function construct (line 28886) | function construct(stream, cb) {
function constructNT (line 28905) | function constructNT(stream) {
function emitConstructNT (line 28938) | function emitConstructNT(stream) {
function isRequest (line 28941) | function isRequest(stream) {
function emitCloseLegacy (line 28944) | function emitCloseLegacy(stream) {
function emitErrorCloseLegacy (line 28947) | function emitErrorCloseLegacy(stream, err) {
function destroyer (line 28953) | function destroyer(stream, err) {
function Duplex (line 29044) | function Duplex(options) {
method constructor (line 37361) | constructor (opts) {
method cork (line 37374) | cork () {
method uncork (line 37378) | uncork () {
method _writev (line 37383) | _writev (batch, cb) {
method _write (line 37387) | _write (data, cb) {
method _final (line 37391) | _final (cb) {
method write (line 37395) | write (data) {
method end (line 37400) | end (data) {
method get (line 29104) | get() {
method set (line 29110) | set(value) {
function lazyWebStreams (line 29123) | function lazyWebStreams() {
class Duplexify (line 29190) | class Duplexify extends Duplex {
method constructor (line 29191) | constructor(options) {
method final (line 29270) | final(cb) {
method read (line 29345) | read() {}
function fromAsyncGen (line 29364) | function fromAsyncGen(fn) {
function _duplexify (line 29413) | function _duplexify(pair) {
function isRequest (line 29563) | function isRequest(stream) {
function eos (line 29567) | function eos(stream, options, callback) {
function eosWeb (line 29758) | function eosWeb(stream, options, callback) {
function finished (line 29791) | function finished(stream, opts) {
function from (line 29834) | function from(Readable, iterable, opts) {
function Stream (line 29932) | function Stream(opts) {
method constructor (line 37053) | constructor (opts) {
method _open (line 37072) | _open (cb) {
method _destroy (line 37076) | _destroy (cb) {
method _predestroy (line 37080) | _predestroy () {
method readable (line 37084) | get readable () {
method writable (line 37088) | get writable () {
method destroyed (line 37092) | get destroyed () {
method destroying (line 37096) | get destroying () {
method destroy (line 37100) | destroy (err) {
function ondata (line 29939) | function ondata(chunk) {
function ondrain (line 29945) | function ondrain() {
function onend (line 29959) | function onend() {
function onclose (line 29964) | function onclose() {
function onerror (line 29971) | function onerror(er) {
function cleanup (line 29981) | function cleanup() {
function prependListener (line 30000) | function prependListener(emitter, event, fn) {
function compose (line 30053) | function compose(stream, options) {
function map (line 30070) | function map(fn, options) {
function asIndexedPairs (line 30192) | function asIndexedPairs(options = undefined) {
function some (line 30218) | async function some(fn, options = undefined) {
function every (line 30224) | async function every(fn, options = undefined) {
function find (line 30237) | async function find(fn, options) {
function forEach (line 30243) | async function forEach(fn, options) {
function filter (line 30254) | function filter(fn, options) {
class ReduceAwareErrMissingArgs (line 30269) | class ReduceAwareErrMissingArgs extends ERR_MISSING_ARGS {
method constructor (line 30270) | constructor() {
function reduce (line 30275) | async function reduce(reducer, initialValue, options) {
function toArray (line 30342) | async function toArray(options) {
function flatMap (line 30367) | function flatMap(fn, options) {
function toIntegerOrInfinity (line 30375) | function toIntegerOrInfinity(number) {
function drop (line 30387) | function drop(number, options = undefined) {
function take (line 30423) | function take(number, options = undefined) {
function PassThrough (line 30520) | function PassThrough(options) {
function destroyer (line 30574) | function destroyer(stream, reading, writing) {
function popCallback (line 30598) | function popCallback(streams) {
function makeAsyncIterable (line 30605) | function makeAsyncIterable(val) {
function pumpToNode (line 30620) | async function pumpToNode(iterable, writable, finish, { end }) {
function pumpToWeb (line 30676) | async function pumpToWeb(readable, writable, finish, { end }) {
function pipeline (line 30701) | function pipeline(...streams) {
function pipelineImpl (line 30704) | function pipelineImpl(streams, callback, opts) {
function pipe (line 30932) | function pipe(src, dst, finish, { end }) {
function makeBitMapDescriptor (line 31106) | function makeBitMapDescriptor(bit) {
function ReadableState (line 31155) | function ReadableState(options, stream, isDuplex) {
method constructor (line 36676) | constructor (stream, { highWaterMark = 16384, map = null, mapReadable,...
method ended (line 36691) | get ended () {
method pipe (line 36695) | pipe (pipeTo, cb) {
method push (line 36722) | push (data) {
method shift (line 36747) | shift () {
method unshift (line 36755) | unshift (data) {
method read (line 36768) | read () {
method drain (line 36786) | drain () {
method update (line 36796) | update () {
method updateNonPrimary (line 36821) | updateNonPrimary () {
method continueUpdate (line 36845) | continueUpdate () {
method updateCallback (line 36851) | updateCallback () {
method updateNextTick (line 36856) | updateNextTick () {
function Readable (line 31213) | function Readable(options) {
method constructor (line 37125) | constructor (opts) {
method setEncoding (line 37139) | setEncoding (encoding) {
method _read (line 37151) | _read (cb) {
method pipe (line 37155) | pipe (dest, cb) {
method read (line 37161) | read () {
method push (line 37166) | push (data) {
method unshift (line 37171) | unshift (data) {
method resume (line 37176) | resume () {
method pause (line 37182) | pause () {
method _fromAsyncIterator (line 37187) | static _fromAsyncIterator (ite, opts) {
method from (line 37212) | static from (data, opts) {
method isBackpressured (line 37227) | static isBackpressured (rs) {
method isPaused (line 37231) | static isPaused (rs) {
method [asyncIterator] (line 37235) | [asyncIterator] () {
function readableAddChunk (line 31262) | function readableAddChunk(stream, chunk, encoding, addToFront) {
function addChunk (line 31322) | function addChunk(stream, state, chunk, addToFront) {
function computeNewHighWaterMark (line 31367) | function computeNewHighWaterMark(n) {
function howMuchToRead (line 31386) | function howMuchToRead(n, state) {
function onEofChunk (line 31520) | function onEofChunk(stream, state) {
function emitReadable (line 31549) | function emitReadable(stream) {
function emitReadable_ (line 31559) | function emitReadable_(stream) {
function maybeReadMore (line 31583) | function maybeReadMore(stream, state) {
function maybeReadMore_ (line 31589) | function maybeReadMore_(stream, state) {
function onunpipe (line 31651) | function onunpipe(readable, unpipeInfo) {
function onend (line 31660) | function onend() {
function cleanup (line 31666) | function cleanup() {
function pause (line 31688) | function pause() {
function ondata (line 31714) | function ondata(chunk) {
function onerror (line 31725) | function onerror(er) {
function onclose (line 31744) | function onclose() {
function onfinish (line 31749) | function onfinish() {
function unpipe (line 31755) | function unpipe() {
function pipeOnDrain (line 31773) | function pipeOnDrain(src, dest) {
function updateReadableListening (line 31876) | function updateReadableListening(self) {
function nReadingNextTick (line 31891) | function nReadingNextTick(self) {
function resume (line 31911) | function resume(stream, state) {
function resume_ (line 31917) | function resume_(stream, state) {
function flow (line 31937) | function flow(stream) {
function streamToAsyncIterator (line 31997) | function streamToAsyncIterator(stream, options) {
function next (line 32009) | function next(resolve) {
method get (line 32065) | get() {
method set (line 32073) | set(val) {
method get (line 32127) | get() {
method get (line 32134) | get() {
method get (line 32141) | get() {
method get (line 32148) | get() {
method get (line 32154) | get() {
method get (line 32161) | get() {
method set (line 32164) | set(value) {
method get (line 32179) | get() {
method get (line 32188) | get() {
method get (line 32195) | get() {
method set (line 32198) | set(value) {
function fromList (line 32211) | function fromList(n, state) {
function endReadable (line 32228) | function endReadable(stream) {
function endReadableNT (line 32236) | function endReadableNT(state, stream) {
function endWritableNT (line 32261) | function endWritableNT(stream) {
function lazyWebStreams (line 32273) | function lazyWebStreams() {
method destroy (line 32294) | destroy(err, callback) {
function highWaterMarkFrom (line 32314) | function highWaterMarkFrom(options, isDuplex, duplexKey) {
function getDefaultHighWaterMark (line 32317) | function getDefaultHighWaterMark(objectMode) {
function setDefaultHighWaterMark (line 32320) | function setDefaultHighWaterMark(objectMode, value) {
function getHighWaterMark (line 32328) | function getHighWaterMark(state, options, duplexKey, isDuplex) {
function Transform (line 32426) | function Transform(options) {
method constructor (line 37408) | constructor (opts) {
method _write (line 37418) | _write (data, cb) {
method _read (line 37426) | _read (cb) {
method destroy (line 37437) | destroy (err) {
method _transform (line 37445) | _transform (data, cb) {
method _flush (line 37449) | _flush (cb) {
method _final (line 37453) | _final (cb) {
function final (line 32466) | function final(cb) {
function prefinish (line 32492) | function prefinish() {
function isReadableNodeStream (line 32555) | function isReadableNodeStream(obj, strict = false) {
function isWritableNodeStream (line 32573) | function isWritableNodeStream(obj) {
function isDuplexNodeStream (line 32588) | function isDuplexNodeStream(obj) {
function isNodeStream (line 32597) | function isNodeStream(obj) {
function isReadableStream (line 32606) | function isReadableStream(obj) {
function isWritableStream (line 32615) | function isWritableStream(obj) {
function isTransformStream (line 32618) | function isTransformStream(obj) {
function isWebStream (line 32621) | function isWebStream(obj) {
function isIterable (line 32624) | function isIterable(obj, isAsync) {
function isDestroyed (line 32630) | function isDestroyed(stream) {
function isWritableEnded (line 32639) | function isWritableEnded(stream) {
function isWritableFinished (line 32649) | function isWritableFinished(stream, strict) {
function isReadableEnded (line 32659) | function isReadableEnded(stream) {
function isReadableFinished (line 32669) | function isReadableFinished(stream, strict) {
function isReadable (line 32676) | function isReadable(stream) {
function isWritable (line 32682) | function isWritable(stream) {
function isFinished (line 32688) | function isFinished(stream, opts) {
function isWritableErrored (line 32703) | function isWritableErrored(stream) {
function isReadableErrored (line 32718) | function isReadableErrored(stream) {
function isClosed (line 32733) | function isClosed(stream) {
function isOutgoingMessage (line 32756) | function isOutgoingMessage(stream) {
function isServerResponse (line 32764) | function isServerResponse(stream) {
function isServerRequest (line 32767) | function isServerRequest(stream) {
function willEmitClose (line 32776) | function willEmitClose(stream) {
function isDisturbed (line 32785) | function isDisturbed(stream) {
function isErrored (line 32794) | function isErrored(stream) {
function nop (line 32940) | function nop() {}
function WritableState (line 32942) | function WritableState(options, stream, isDuplex) {
method constructor (line 36555) | constructor (stream, { highWaterMark = 16384, map = null, mapWritable,...
method ended (line 36569) | get ended () {
method push (line 36573) | push (data) {
method shift (line 36588) | shift () {
method end (line 36597) | end (data) {
method autoBatch (line 36603) | autoBatch (data, cb) {
method update (line 36616) | update () {
method updateNonPrimary (line 36634) | updateNonPrimary () {
method continueUpdate (line 36657) | continueUpdate () {
method updateCallback (line 36663) | updateCallback () {
method updateNextTick (line 36668) | updateNextTick () {
function resetBuffer (line 33060) | function resetBuffer(state) {
method get (line 33071) | get() {
function Writable (line 33075) | function Writable(options) {
method constructor (line 37297) | constructor (opts) {
method cork (line 37311) | cork () {
method uncork (line 37315) | uncork () {
method _writev (line 37320) | _writev (batch, cb) {
method _write (line 37324) | _write (data, cb) {
method _final (line 37328) | _final (cb) {
method isBackpressured (line 37332) | static isBackpressured (ws) {
method drained (line 37336) | static drained (ws) {
method write (line 37348) | write (data) {
method end (line 37353) | end (data) {
function _write (line 33119) | function _write(stream, chunk, encoding, cb) {
function writeOrBuffer (line 33184) | function writeOrBuffer(stream, state, chunk, encoding, callback) {
function doWrite (line 33217) | function doWrite(stream, state, writev, len, chunk, encoding, cb) {
function onwriteError (line 33227) | function onwriteError(stream, state, er, cb) {
function onwrite (line 33238) | function onwrite(stream, er) {
function afterWriteTick (line 33293) | function afterWriteTick({ stream, state, count, cb }) {
function afterWrite (line 33297) | function afterWrite(stream, state, count, cb) {
function errorBuffer (line 33314) | function errorBuffer(state) {
function clearBuffer (line 33342) | function clearBuffer(stream, state) {
function needFinish (line 33451) | function needFinish(state) {
function callFinal (line 33465) | function callFinal(stream, state) {
function prefinish (line 33499) | function prefinish(stream, state) {
function finishMaybe (line 33510) | function finishMaybe(stream, state, sync) {
function finish (line 33534) | function finish(stream, state) {
method get (line 33560) | get() {
method get (line 33566) | get() {
method set (line 33569) | set(value) {
method get (line 33578) | get() {
method set (line 33586) | set(val) {
method get (line 33595) | get() {
method get (line 33601) | get() {
method get (line 33607) | get() {
method get (line 33613) | get() {
method get (line 33619) | get() {
method get (line 33627) | get() {
method get (line 33633) | get() {
method get (line 33639) | get() {
method get (line 33646) | get() {
function lazyWebStreams (line 33683) | function lazyWebStreams() {
function isInt32 (line 33732) | function isInt32(value) {
function isUint32 (line 33740) | function isUint32(value) {
function parseFileMode (line 33757) | function parseFileMode(value, name, def) {
function validateString (line 33842) | function validateString(value, name) {
function validateNumber (line 33856) | function validateNumber(value, name, min = undefined, max) {
function validateBoolean (line 33899) | function validateBoolean(value, name) {
function getOwnPropertyValueOrDefault (line 33909) | function getOwnPropertyValueOrDefault(options, key, defaultValue) {
function validateStringArray (line 33983) | function validateStringArray(value, name) {
function validateBooleanArray (line 33998) | function validateBooleanArray(value, name) {
function validateAbortSignalArray (line 34013) | function validateAbortSignalArray(value, name) {
function validateSignalName (line 34030) | function validateSignalName(signal, name = 'signal') {
function validateEncoding (line 34058) | function validateEncoding(data, encoding) {
function validatePort (line 34074) | function validatePort(port, name = 'Port', allowZero = true) {
function validateUnion (line 34142) | function validateUnion(value, name, union) {
function validateLinkHeaderFormat (line 34162) | function validateLinkHeaderFormat(value, name) {
function validateLinkHeaderValue (line 34176) | function validateLinkHeaderValue(hints) {
function assert (line 34267) | function assert(value, message) {
function addNumericalSeparator (line 34274) | function addNumericalSeparator(val) {
function getMessage (line 34283) | function getMessage(key, msg, args) {
function E (line 34302) | function E(code, message, Base) {
function hideStackFrames (line 34334) | function hideStackFrames(fn) {
function aggregateTwoErrors (line 34343) | function aggregateTwoErrors(innerError, outerError) {
class AbortError (line 34356) | class AbortError extends Error {
method constructor (line 34357) | constructor(message = 'The operation was aborted', options = undefined) {
method constructor (line 41877) | constructor (message) {
method constructor (line 82419) | constructor(message) {
method get (line 34610) | get() {
method get (line 34641) | get() {
method ArrayIsArray (line 34667) | ArrayIsArray(self) {
method ArrayPrototypeIncludes (line 34670) | ArrayPrototypeIncludes(self, el) {
method ArrayPrototypeIndexOf (line 34673) | ArrayPrototypeIndexOf(self, el) {
method ArrayPrototypeJoin (line 34676) | ArrayPrototypeJoin(self, sep) {
method ArrayPrototypeMap (line 34679) | ArrayPrototypeMap(self, fn) {
method ArrayPrototypePop (line 34682) | ArrayPrototypePop(self, el) {
method ArrayPrototypePush (line 34685) | ArrayPrototypePush(self, el) {
method ArrayPrototypeSlice (line 34688) | ArrayPrototypeSlice(self, start, end) {
method FunctionPrototypeCall (line 34692) | FunctionPrototypeCall(fn, thisArgs, ...args) {
method FunctionPrototypeSymbolHasInstance (line 34695) | FunctionPrototypeSymbolHasInstance(self, instance) {
method ObjectDefineProperties (line 34705) | ObjectDefineProperties(self, props) {
method ObjectDefineProperty (line 34708) | ObjectDefineProperty(self, name, prop) {
method ObjectGetOwnPropertyDescriptor (line 34711) | ObjectGetOwnPropertyDescriptor(self, name) {
method ObjectKeys (line 34714) | ObjectKeys(obj) {
method ObjectSetPrototypeOf (line 34717) | ObjectSetPrototypeOf(target, proto) {
method PromisePrototypeCatch (line 34721) | PromisePrototypeCatch(self, fn) {
method PromisePrototypeThen (line 34724) | PromisePrototypeThen(self, thenFn, catchFn) {
method PromiseReject (line 34727) | PromiseReject(err) {
method PromiseResolve (line 34730) | PromiseResolve(val) {
method RegExpPrototypeTest (line 34734) | RegExpPrototypeTest(self, value) {
method StringPrototypeSlice (line 34739) | StringPrototypeSlice(self, start, end) {
method StringPrototypeToLowerCase (line 34742) | StringPrototypeToLowerCase(self) {
method StringPrototypeToUpperCase (line 34745) | StringPrototypeToUpperCase(self) {
method StringPrototypeTrim (line 34748) | StringPrototypeTrim(self) {
method TypedArrayPrototypeSet (line 34758) | TypedArrayPrototypeSet(self, buf, len) {
class AggregateError (line 34801) | class AggregateError extends Error {
method constructor (line 34802) | constructor(errors) {
method once (line 34818) | once(callback) {
method promisify (line 34843) | promisify(fn) {
method debuglog (line 34853) | debuglog() {
method format (line 34856) | format(format, ...args) {
method inspect (line 34872) | inspect(value) {
method isAsyncFunction (line 34901) | isAsyncFunction(fn) {
method isArrayBufferView (line 34904) | isArrayBufferView(arr) {
method deprecate (line 34909) | deprecate(fn, message) {
method [SymbolDispose] (line 34935) | [SymbolDispose]() {
function fn (line 35030) | function fn(...args) {
function fn (line 35054) | function fn(...args) {
method get (line 35092) | get() {
method get (line 35099) | get() {
method get (line 35106) | get() {
function pipeline (line 35133) | function pipeline(...streams) {
function readdir (line 35183) | function readdir(dir, strict) {
function stat (line 35212) | function stat(file, followSymlinks) {
function readOptions (line 35276) | function readOptions(options) {
class ReaddirGlob (line 35295) | class ReaddirGlob extends EventEmitter {
method constructor (line 35296) | constructor(cwd, options, cb) {
method _shouldSkipDirectory (line 35349) | _shouldSkipDirectory(relative) {
method _fileMatches (line 35354) | _fileMatches(relative, isDirectory) {
method _next (line 35361) | _next() {
method abort (line 35397) | abort() {
method pause (line 35401) | pause() {
method resume (line 35405) | resume() {
function readdirGlob (line 35415) | function readdirGlob(pattern, options, cb) {
method constructor (line 35514) | constructor (pattern, options) {
class Minimatch (line 35599) | class Minimatch {
method constructor (line 35600) | constructor (pattern, options) {
method debug (line 35625) | debug () {}
method make (line 35627) | make () {
method parseNegate (line 35673) | parseNegate () {
method matchOne (line 35694) | matchOne (file, pattern, partial) {
method _matchGlobstar (line 35701) | _matchGlobstar (file, pattern, partial, fileIndex, patternIndex) {
method _matchGlobStarBodySections (line 35791) | _matchGlobStarBodySections (
method _matchOne (line 35839) | _matchOne (file, pattern, partial, fileIndex, patternIndex) {
method braceExpand (line 35895) | braceExpand () {
method parse (line 35899) | parse (pattern, isSub) {
method makeRe (line 36298) | makeRe () {
method match (line 36372) | match (f, partial = this.partial) {
method defaults (line 36426) | static defaults (def) {
method constructor (line 71128) | constructor(pattern, options = {}) {
method hasMagic (line 71159) | hasMagic() {
method debug (line 71171) | debug(..._) { }
method make (line 71172) | make() {
method preprocess (line 71245) | preprocess(globParts) {
method adjascentGlobstarOptimize (line 71273) | adjascentGlobstarOptimize(globParts) {
method levelOneOptimize (line 71289) | levelOneOptimize(globParts) {
method levelTwoFileOptimize (line 71308) | levelTwoFileOptimize(parts) {
method firstPhasePreProcess (line 71366) | firstPhasePreProcess(globParts) {
method secondPhasePreProcess (line 71450) | secondPhasePreProcess(globParts) {
method partsMatch (line 71463) | partsMatch(a, b, emptyGSMatch = false) {
method parseNegate (line 71512) | parseNegate() {
method matchOne (line 71531) | matchOne(file, pattern, partial = false) {
method #matchGlobstar (line 71576) | #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
method #matchGlobStarBodySections (line 71647) | #matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, p...
method #matchOne (line 71677) | #matchOne(file, pattern, partial, fileIndex, patternIndex) {
method braceExpand (line 71719) | braceExpand() {
method parse (line 71722) | parse(pattern) {
method makeRe (line 71768) | makeRe() {
method slashSplit (line 71853) | slashSplit(p) {
method match (line 71869) | match(f, partial = this.partial) {
method defaults (line 71924) | static defaults(def) {
method constructor (line 129875) | constructor(pattern, options = {}) {
method hasMagic (line 129908) | hasMagic() {
method debug (line 129920) | debug(..._) { }
method make (line 129921) | make() {
method preprocess (line 129997) | preprocess(globParts) {
method adjascentGlobstarOptimize (line 130025) | adjascentGlobstarOptimize(globParts) {
method levelOneOptimize (line 130041) | levelOneOptimize(globParts) {
method levelTwoFileOptimize (line 130060) | levelTwoFileOptimize(parts) {
method firstPhasePreProcess (line 130118) | firstPhasePreProcess(globParts) {
method secondPhasePreProcess (line 130202) | secondPhasePreProcess(globParts) {
method partsMatch (line 130215) | partsMatch(a, b, emptyGSMatch = false) {
method parseNegate (line 130264) | parseNegate() {
method matchOne (line 130283) | matchOne(file, pattern, partial = false) {
method #matchGlobstar (line 130333) | #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
method #matchGlobStarBodySections (line 130437) | #matchGlobStarBodySections(file,
method #matchOne (line 130487) | #matchOne(file, pattern, partial, fileIndex, patternIndex) {
method braceExpand (line 130558) | braceExpand() {
method parse (line 130561) | parse(pattern) {
method makeRe (line 130605) | makeRe() {
method slashSplit (line 130701) | slashSplit(p) {
method match (line 130717) | match(f, partial = this.partial) {
method defaults (line 130772) | static defaults(def) {
class WritableState (line 36554) | class WritableState {
method constructor (line 36555) | constructor (stream, { highWaterMark = 16384, map = null, mapWritable,...
method ended (line 36569) | get ended () {
method push (line 36573) | push (data) {
method shift (line 36588) | shift () {
method end (line 36597) | end (data) {
method autoBatch (line 36603) | autoBatch (data, cb) {
method update (line 36616) | update () {
method updateNonPrimary (line 36634) | updateNonPrimary () {
method continueUpdate (line 36657) | continueUpdate () {
method updateCallback (line 36663) | updateCallback () {
method updateNextTick (line 36668) | updateNextTick () {
class ReadableState (line 36675) | class ReadableState {
method constructor (line 36676) | constructor (stream, { highWaterMark = 16384, map = null, mapReadable,...
method ended (line 36691) | get ended () {
method pipe (line 36695) | pipe (pipeTo, cb) {
method push (line 36722) | push (data) {
method shift (line 36747) | shift () {
method unshift (line 36755) | unshift (data) {
method read (line 36768) | read () {
method drain (line 36786) | drain () {
method update (line 36796) | update () {
method updateNonPrimary (line 36821) | updateNonPrimary () {
method continueUpdate (line 36845) | continueUpdate () {
method updateCallback (line 36851) | updateCallback () {
method updateNextTick (line 36856) | updateNextTick () {
class TransformState (line 36863) | class TransformState {
method constructor (line 36864) | constructor (stream) {
class Pipeline (line 36871) | class Pipeline {
method constructor (line 36872) | constructor (src, dst, cb) {
method finished (line 36880) | finished () {
method done (line 36884) | done (stream, err) {
method constructor (line 97178) | constructor(factories, options = {}) {
method toServiceClientOptions (line 97188) | toServiceClientOptions() {
function afterDrain (line 36914) | function afterDrain () {
function afterFinal (line 36919) | function afterFinal (err) {
function afterDestroy (line 36937) | function afterDestroy (err) {
function afterWrite (line 36956) | function afterWrite (err) {
function afterRead (line 36974) | function afterRead (err) {
function updateReadNT (line 36981) | function updateReadNT () {
function updateWriteNT (line 36988) | function updateWriteNT () {
function tickDrains (line 36995) | function tickDrains (drains) {
function afterOpen (line 37005) | function afterOpen (err) {
function afterTransform (line 37027) | function afterTransform (err, data) {
function newListener (line 37032) | function newListener (name) {
class Stream (line 37052) | class Stream extends EventEmitter {
method constructor (line 37053) | constructor (opts) {
method _open (line 37072) | _open (cb) {
method _destroy (line 37076) | _destroy (cb) {
method _predestroy (line 37080) | _predestroy () {
method readable (line 37084) | get readable () {
method writable (line 37088) | get writable () {
method destroyed (line 37092) | get destroyed () {
method destroying (line 37096) | get destroying () {
method destroy (line 37100) | destroy (err) {
class Readable (line 37124) | class Readable extends Stream {
method constructor (line 37125) | constructor (opts) {
method setEncoding (line 37139) | setEncoding (encoding) {
method _read (line 37151) | _read (cb) {
method pipe (line 37155) | pipe (dest, cb) {
method read (line 37161) | read () {
method push (line 37166) | push (data) {
method unshift (line 37171) | unshift (data) {
method resume (line 37176) | resume () {
method pause (line 37182) | pause () {
method _fromAsyncIterator (line 37187) | static _fromAsyncIterator (ite, opts) {
method from (line 37212) | static from (data, opts) {
method isBackpressured (line 37227) | static isBackpressured (rs) {
method isPaused (line 37231) | static isPaused (rs) {
method [asyncIterator] (line 37235) | [asyncIterator] () {
class Writable (line 37296) | class Writable extends Stream {
method constructor (line 37297) | constructor (opts) {
method cork (line 37311) | cork () {
method uncork (line 37315) | uncork () {
method _writev (line 37320) | _writev (batch, cb) {
method _write (line 37324) | _write (data, cb) {
method _final (line 37328) | _final (cb) {
method isBackpressured (line 37332) | static isBackpressured (ws) {
method drained (line 37336) | static drained (ws) {
method write (line 37348) | write (data) {
method end (line 37353) | end (data) {
class Duplex (line 37360) | class Duplex extends Readable { // and Writable
method constructor (line 37361) | constructor (opts) {
method cork (line 37374) | cork () {
method uncork (line 37378) | uncork () {
method _writev (line 37383) | _writev (batch, cb) {
method _write (line 37387) | _write (data, cb) {
method _final (line 37391) | _final (cb) {
method write (line 37395) | write (data) {
method end (line 37400) | end (data) {
class Transform (line 37407) | class Transform extends Duplex {
method constructor (line 37408) | constructor (opts) {
method _write (line 37418) | _write (data, cb) {
method _read (line 37426) | _read (cb) {
method destroy (line 37437) | destroy (err) {
method _transform (line 37445) | _transform (data, cb) {
method _flush (line 37449) | _flush (cb) {
method _final (line 37453) | _final (cb) {
class PassThrough (line 37459) | class PassThrough extends Transform {}
function transformAfterFlush (line 37461) | function transformAfterFlush (err, data) {
function pipelinePromise (line 37469) | function pipelinePromise (...streams) {
function pipeline (line 37478) | function pipeline (stream, ...streams) {
function echo (line 37542) | function echo (s) {
function isStream (line 37546) | function isStream (stream) {
function isStreamx (line 37550) | function isStreamx (stream) {
function isEnded (line 37554) | function isEnded (stream) {
function isFinished (line 37558) | function isFinished (stream) {
function getStreamError (line 37562) | function getStreamError (stream, opts = {}) {
function isReadStreamx (line 37569) | function isReadStreamx (stream) {
function isTypedArray (line 37573) | function isTypedArray (data) {
function defaultByteLength (line 37577) | function defaultByteLength (data) {
function noop (line 37581) | function noop () {}
function abort (line 37583) | function abort () {
function isWritev (line 37587) | function isWritev (s) {
class BufferList (line 37642) | class BufferList {
method constructor (line 37643) | constructor () {
method push (line 37651) | push (buffer) {
method shiftFirst (line 37656) | shiftFirst (size) {
method shift (line 37660) | shift (size) {
method _next (line 37678) | _next (size) {
class Source (line 37698) | class Source extends Readable {
method constructor (line 37699) | constructor (self, header, offset) {
method _read (line 37708) | _read (cb) {
method _predestroy (line 37718) | _predestroy () {
method _detach (line 37722) | _detach () {
method _destroy (line 37730) | _destroy (cb) {
class Extract (line 37736) | class Extract extends Writable {
method constructor (line 37737) | constructor (opts) {
method _unlock (line 37760) | _unlock (err) {
method _consumeHeader (line 37772) | _consumeHeader () {
method _applyLongHeaders (line 37811) | _applyLongHeaders () {
method _decodeLongHeader (line 37831) | _decodeLongHeader (buf) {
method _consumeLongHeader (line 37850) | _consumeLongHeader () {
method _consumeStream (line 37866) | _consumeStream () {
method _createStream (line 37882) | _createStream () {
method _update (line 37886) | _update () {
method _continueWrite (line 37912) | _continueWrite (err) {
method _write (line 37918) | _write (data, cb) {
method _final (line 37924) | _final (cb) {
method _predestroy (line 37929) | _predestroy () {
method _destroy (line 37933) | _destroy (cb) {
method [Symbol.asyncIterator] (line 37938) | [Symbol.asyncIterator] () {
function noop (line 38035) | function noop () {}
function overflow (line 38037) | function overflow (size) {
function isUSTAR (line 38198) | function isUSTAR (buf) {
function isGNU (line 38202) | function isGNU (buf) {
function clamp (line 38207) | function clamp (index, len, defaultValue) {
function toType (line 38217) | function toType (flag) {
function toTypeflag (line 38249) | function toTypeflag (flag) {
function indexOf (line 38274) | function indexOf (block, num, offset, end) {
function cksum (line 38281) | function cksum (block) {
function encodeOct (line 38288) | function encodeOct (val, n) {
function encodeSizeBin (line 38294) | function encodeSizeBin (num, buf, off) {
function encodeSize (line 38302) | function encodeSize (num, buf, off) {
function parse256 (line 38315) | function parse256 (buf) {
function decodeOct (line 38341) | function decodeOct (val, offset, length) {
function decodeStr (line 38358) | function decodeStr (val, offset, length, encoding) {
function addLength (line 38362) | function addLength (str) {
class Sink (line 38396) | class Sink extends Writable {
method constructor (line 38397) | constructor (pack, header, callback) {
method _open (line 38415) | _open (cb) {
method _continuePack (line 38420) | _continuePack (err) {
method _continueOpen (line 38429) | _continueOpen () {
method _write (line 38453) | _write (data, cb) {
method _finish (line 38471) | _finish () {
method _final (line 38485) | _final (cb) {
method _getError (line 38494) | _getError () {
method _predestroy (line 38498) | _predestroy () {
method _destroy (line 38502) | _destroy (cb) {
class Pack (line 38511) | class Pack extends Readable {
method constructor (line 38512) | constructor (opts) {
method entry (line 38521) | entry (header, buffer, callback) {
method finalize (line 38556) | finalize () {
method _done (line 38569) | _done (stream) {
method _encode (line 38578) | _encode (header) {
method _encodePax (line 38589) | _encodePax (header) {
method _doDrain (line 38620) | _doDrain () {
method _predestroy (line 38626) | _predestroy () {
method _read (line 38640) | _read (cb) {
function modeToType (line 38650) | function modeToType (mode) {
function noop (line 38662) | function noop () {}
function overflow (line 38664) | function overflow (self, size) {
function mapWritable (line 38669) | function mapWritable (buf) {
method constructor (line 38683) | constructor (encoding = 'utf8') {
method push (line 38698) | push (data) {
method write (line 38704) | write (data) {
method end (line 38708) | end (data) {
function normalizeEncoding (line 38716) | function normalizeEncoding (encoding) {
method constructor (line 38749) | constructor (encoding) {
method decode (line 38753) | decode (tail) {
method flush (line 38757) | flush () {
method constructor (line 38774) | constructor () {
method decode (line 38782) | decode (data) {
method flush (line 38852) | flush () {
function Traverse (line 38872) | function Traverse (obj) {
function walk (line 39058) | function walk (root, cb, immutable) {
function copy (line 39163) | function copy (src) {
function httpOverHttp (line 39225) | function httpOverHttp(options) {
function httpsOverHttp (line 39231) | function httpsOverHttp(options) {
function httpOverHttps (line 39239) | function httpOverHttps(options) {
function httpsOverHttps (line 39245) | function httpsOverHttps(options) {
function TunnelingAgent (line 39254) | function TunnelingAgent(options) {
function onFree (line 39297) | function onFree() {
function onCloseOrRemove (line 39301) | function onCloseOrRemove(err) {
function onResponse (line 39341) | function onResponse(res) {
function onUpgrade (line 39346) | function onUpgrade(res, socket, head) {
function onConnect (line 39353) | function onConnect(res, socket, head) {
function onError (line 39382) | function onError(cause) {
function createSecureSocket (line 39412) | function createSecureSocket(options, cb) {
function toOptions (line 39429) | function toOptions(host, port, localAddress) {
function mergeOptions (line 39440) | function mergeOptions(target) {
function makeDispatcher (line 39533) | function makeDispatcher (fn) {
function abort (line 39661) | function abort (self) {
function addSignal (line 39670) | function addSignal (self, signal) {
function removeSignal (line 39693) | function removeSignal (self) {
class ConnectHandler (line 39727) | class ConnectHandler extends AsyncResource {
method constructor (line 39728) | constructor (opts, callback) {
method onConnect (line 39753) | onConnect (abort, context) {
method onHeaders (line 39765) | onHeaders () {
method onUpgrade (line 39769) | onUpgrade (statusCode, rawHeaders, socket) {
method onError (line 39791) | onError (err) {
function connect (line 39805) | function connect (opts, callback) {
class PipelineRequest (line 39853) | class PipelineRequest extends Readable {
method constructor (line 39854) | constructor () {
method _read (line 39860) | _read () {
method _destroy (line 39869) | _destroy (err, callback) {
class PipelineResponse (line 39876) | class PipelineResponse extends Readable {
method constructor (line 39877) | constructor (resume) {
method _read (line 39882) | _read () {
method _destroy (line 39886) | _destroy (err, callback) {
class PipelineHandler (line 39895) | class PipelineHandler extends AsyncResource {
method constructor (line 39896) | constructor (opts, handler) {
method onConnect (line 39980) | onConnect (abort, context) {
method onHeaders (line 39995) | onHeaders (statusCode, rawHeaders, resume) {
method onData (line 40057) | onData (chunk) {
method onComplete (line 40062) | onComplete (trailers) {
method onError (line 40067) | onError (err) {
function pipeline (line 40074) | function pipeline (opts, handler) {
class RequestHandler (line 40101) | class RequestHandler extends AsyncResource {
method constructor (line 40102) | constructor (opts, callback) {
method onConnect (line 40182) | onConnect (abort, context) {
method onHeaders (line 40194) | onHeaders (statusCode, rawHeaders, resume, statusMessage) {
method onData (line 40243) | onData (chunk) {
method onComplete (line 40247) | onComplete (trailers) {
method onError (line 40252) | onError (err) {
function request (line 40284) | function request (opts, callback) {
class StreamHandler (line 40323) | class StreamHandler extends AsyncResource {
method constructor (line 40324) | constructor (opts, factory, callback) {
method onConnect (line 40381) | onConnect (abort, context) {
method onHeaders (line 40393) | onHeaders (statusCode, rawHeaders, resume, statusMessage) {
method onData (line 40468) | onData (chunk) {
method onComplete (line 40474) | onComplete (trailers) {
method onError (line 40488) | onError (err) {
function stream (line 40512) | function stream (opts, factory, callback) {
class UpgradeHandler (line 40548) | class UpgradeHandler extends AsyncResource {
method constructor (line 40549) | constructor (opts, callback) {
method onConnect (line 40575) | onConnect (abort, context) {
method onHeaders (line 40587) | onHeaders () {
method onUpgrade (line 40591) | onUpgrade (statusCode, rawHeaders, socket) {
method onError (line 40608) | onError (err) {
function upgrade (line 40622) | function upgrade (opts, callback) {
class BodyReadable (line 40688) | class BodyReadable extends Readable {
method constructor (line 40689) | constructor ({
method destroy (line 40717) | destroy (err) {
method _destroy (line 40729) | _destroy (err, callback) {
method on (line 40743) | on (ev, ...args) {
method addListener (line 40750) | addListener (ev, ...args) {
method off (line 40754) | off (ev, ...args) {
method removeListener (line 40765) | removeListener (ev, ...args) {
method push (line 40769) | push (chunk) {
method text (line 40778) | async text () {
method json (line 40783) | async json () {
method blob (line 40788) | async blob () {
method bytes (line 40793) | async bytes () {
method arrayBuffer (line 40798) | async arrayBuffer () {
method formData (line 40803) | async formData () {
method bodyUsed (line 40809) | get bodyUsed () {
method body (line 40814) | get body () {
method dump (line 40826) | async dump (opts) {
function isLocked (line 40872) | function isLocked (self) {
function isUnusable (line 40878) | function isUnusable (self) {
function consume (line 40882) | async function consume (stream, type) {
function consumeStart (line 40926) | function consumeStart (consume) {
function chunksDecode (line 40964) | function chunksDecode (chunks, length) {
function chunksConcat (line 40987) | function chunksConcat (chunks, length) {
function consumeEnd (line 41007) | function consumeEnd (consume) {
function consumePush (line 41029) | function consumePush (consume, chunk) {
function consumeFinish (line 41034) | function consumeFinish (consume, err) {
function getResolveErrorBodyCallback (line 41069) | async function getResolveErrorBodyCallback ({ callback, body, contentTyp...
function noop (line 41169) | function noop () {}
method constructor (line 41183) | constructor (maxCachedSessions) {
method get (line 41198) | get (sessionKey) {
method set (line 41203) | set (sessionKey, session) {
method constructor (line 41214) | constructor (maxCachedSessions) {
method get (line 41219) | get (sessionKey) {
method set (line 41223) | set (sessionKey, session) {
function buildConnector (line 41239) | function buildConnector ({ allowH2, maxCachedSessions, socketPath, timeo...
function onConnectTimeout (line 41382) | function onConnectTimeout (socket, opts) {
class UndiciError (line 41745) | class UndiciError extends Error {
method constructor (line 41746) | constructor (message) {
method [Symbol.hasInstance] (line 41752) | static [Symbol.hasInstance] (instance) {
class ConnectTimeoutError (line 41760) | class ConnectTimeoutError extends UndiciError {
method constructor (line 41761) | constructor (message) {
method [Symbol.hasInstance] (line 41768) | static [Symbol.hasInstance] (instance) {
class HeadersTimeoutError (line 41776) | class HeadersTimeoutError extends UndiciError {
method constructor (line 41777) | constructor (message) {
method [Symbol.hasInstance] (line 41784) | static [Symbol.hasInstance] (instance) {
class HeadersOverflowError (line 41792) | class HeadersOverflowError extends UndiciError {
method constructor (line 41793) | constructor (message) {
method [Symbol.hasInstance] (line 41800) | static [Symbol.hasInstance] (instance) {
class BodyTimeoutError (line 41808) | class BodyTimeoutError extends UndiciError {
method constructor (line 41809) | constructor (message) {
method [Symbol.hasInstance] (line 41816) | static [Symbol.hasInstance] (instance) {
class ResponseStatusCodeError (line 41824) | class ResponseStatusCodeError extends UndiciError {
method constructor (line 41825) | constructor (message, statusCode, headers, body) {
method [Symbol.hasInstance] (line 41836) | static [Symbol.hasInstance] (instance) {
class InvalidArgumentError (line 41844) | class InvalidArgumentError extends UndiciError {
method constructor (line 41845) | constructor (message) {
method [Symbol.hasInstance] (line 41852) | static [Symbol.hasInstance] (instance) {
class InvalidReturnValueError (line 41860) | class InvalidReturnValueError extends UndiciError {
method constructor (line 41861) | constructor (message) {
method [Symbol.hasInstance] (line 41868) | static [Symbol.hasInstance] (instance) {
class AbortError (line 41876) | class AbortError extends UndiciError {
method constructor (line 34357) | constructor(message = 'The operation was aborted', options = undefined) {
method constructor (line 41877) | constructor (message) {
method constructor (line 82419) | constructor(message) {
method [Symbol.hasInstance] (line 41884) | static [Symbol.hasInstance] (instance) {
class RequestAbortedError (line 41892) | class RequestAbortedError extends AbortError {
method constructor (line 41893) | constructor (message) {
method [Symbol.hasInstance] (line 41900) | static [Symbol.hasInstance] (instance) {
class InformationalError (line 41908) | class InformationalError extends UndiciError {
method constructor (line 41909) | constructor (message) {
method [Symbol.hasInstance] (line 41916) | static [Symbol.hasInstance] (instance) {
class RequestContentLengthMismatchError (line 41924) | class RequestContentLengthMismatchError extends UndiciError {
method constructor (line 41925) | constructor (message) {
method [Symbol.hasInstance] (line 41932) | static [Symbol.hasInstance] (instance) {
class ResponseContentLengthMismatchError (line 41940) | class ResponseContentLengthMismatchError extends UndiciError {
method constructor (line 41941) | constructor (message) {
method [Symbol.hasInstance] (line 41948) | static [Symbol.hasInstance] (instance) {
class ClientDestroyedError (line 41956) | class ClientDestroyedError extends UndiciError {
method constructor (line 41957) | constructor (message) {
method [Symbol.hasInstance] (line 41964) | static [Symbol.hasInstance] (instance) {
class ClientClosedError (line 41972) | class ClientClosedError extends UndiciError {
method constructor (line 41973) | constructor (message) {
method [Symbol.hasInstance] (line 41980) | static [Symbol.hasInstance] (instance) {
class SocketError (line 41988) | class SocketError extends UndiciError {
method constructor (line 41989) | constructor (message, socket) {
method [Symbol.hasInstance] (line 41997) | static [Symbol.hasInstance] (instance) {
class NotSupportedError (line 42005) | class NotSupportedError extends UndiciError {
method constructor (line 42006) | constructor (message) {
method [Symbol.hasInstance] (line 42013) | static [Symbol.hasInstance] (instance) {
class BalancedPoolMissingUpstreamError (line 42021) | class BalancedPoolMissingUpstreamError extends UndiciError {
method constructor (line 42022) | constructor (message) {
method [Symbol.hasInstance] (line 42029) | static [Symbol.hasInstance] (instance) {
class HTTPParserError (line 42037) | class HTTPParserError extends Error {
method constructor (line 42038) | constructor (message, code, data) {
method [Symbol.hasInstance] (line 42045) | static [Symbol.hasInstance] (instance) {
class ResponseExceededMaxSizeError (line 42053) | class ResponseExceededMaxSizeError extends UndiciError {
method constructor (line 42054) | constructor (message) {
method [Symbol.hasInstance] (line 42061) | static [Symbol.hasInstance] (instance) {
class RequestRetryError (line 42069) | class RequestRetryError extends UndiciError {
method constructor (line 42070) | constructor (message, code, { headers, data }) {
method [Symbol.hasInstance] (line 42080) | static [Symbol.hasInstance] (instance) {
class ResponseError (line 42088) | class ResponseError extends UndiciError {
method constructor (line 42089) | constructor (message, code, { headers, data }) {
method [Symbol.hasInstance] (line 42099) | static [Symbol.hasInstance] (instance) {
class SecureProxyConnectionError (line 42107) | class SecureProxyConnectionError extends UndiciError {
method constructor (line 42108) | constructor (cause, message, options) {
method [Symbol.hasInstance] (line 42116) | static [Symbol.hasInstance] (instance) {
class Request (line 42184) | class Request {
method constructor (line 42185) | constructor (origin, {
method onBodySent (line 42349) | onBodySent (chunk) {
method onRequestSent (line 42359) | onRequestSent () {
method onConnect (line 42373) | onConnect (abort) {
method onResponseStarted (line 42385) | onResponseStarted () {
method onHeaders (line 42389) | onHeaders (statusCode, headers, resume, statusText) {
method onData (line 42404) | onData (chunk) {
method onUpgrade (line 42416) | onUpgrade (statusCode, headers, socket) {
method onComplete (line 42423) | onComplete (trailers) {
method onError (line 42441) | onError (error) {
method onFinally (line 42456) | onFinally () {
method addHeader (line 42468) | addHeader (key, value) {
method constructor (line 59263) | constructor (input, init = {}) {
method method (line 59762) | get method () {
method url (line 59770) | get url () {
method headers (line 59780) | get headers () {
method destination (line 59789) | get destination () {
method referrer (line 59801) | get referrer () {
method referrerPolicy (line 59823) | get referrerPolicy () {
method mode (line 59833) | get mode () {
method credentials (line 59843) | get credentials () {
method cache (line 59851) | get cache () {
method redirect (line 59862) | get redirect () {
method integrity (line 59872) | get integrity () {
method keepalive (line 59882) | get keepalive () {
method isReloadNavigation (line 59891) | get isReloadNavigation () {
method isHistoryNavigation (line 59901) | get isHistoryNavigation () {
method signal (line 59912) | get signal () {
method body (line 59919) | get body () {
method bodyUsed (line 59925) | get bodyUsed () {
method duplex (line 59931) | get duplex () {
method clone (line 59938) | clone () {
function processHeader (line 42474) | function processHeader (request, key, val) {
class TstNode (line 42638) | class TstNode {
method constructor (line 42654) | constructor (key, value, index) {
method add (line 42674) | add (key, value) {
method search (line 42717) | search (key) {
class TernarySearchTree (line 42747) | class TernarySearchTree {
method insert (line 42755) | insert (key, value) {
method lookup (line 42767) | lookup (key) {
class BodyAsyncIterable (line 42807) | class BodyAsyncIterable {
method constructor (line 42808) | constructor (body) {
method constructor (line 47967) | constructor (body) {
method [Symbol.asyncIterator] (line 42813) | async * [Symbol.asyncIterator] () {
function wrapRequestBody (line 42820) | function wrapRequestBody (body) {
function nop (line 42859) | function nop () {}
function isStream (line 42861) | function isStream (obj) {
function isBlobLike (line 42866) | function isBlobLike (object) {
function buildURL (line 42883) | function buildURL (url, queryParams) {
function isValidPort (line 42897) | function isValidPort (port) {
function isHttpOrHttpsPrefixed (line 42906) | function isHttpOrHttpsPrefixed (value) {
function parseURL (line 42923) | function parseURL (url) {
function parseOrigin (line 42994) | function parseOrigin (url) {
function getHostname (line 43004) | function getHostname (host) {
function getServerName (line 43020) | function getServerName (host) {
function deepClone (line 43035) | function deepClone (obj) {
function isAsyncIterable (line 43039) | function isAsyncIterable (obj) {
function isIterable (line 43043) | function isIterable (obj) {
function bodyLength (line 43047) | function bodyLength (body) {
function isDestroyed (line 43064) | function isDestroyed (body) {
function destroy (line 43068) | function destroy (stream, err) {
function parseKeepAliveTimeout (line 43092) | function parseKeepAliveTimeout (val) {
function headerNameToString (line 43102) | function headerNameToString (value) {
function bufferToLowerCasedHeaderName (line 43113) | function bufferToLowerCasedHeaderName (value) {
function parseHeaders (line 43122) | function parseHeaders (headers, obj) {
function parseRawHeaders (line 43152) | function parseRawHeaders (headers) {
function isBuffer (line 43187) | function isBuffer (buffer) {
function validateHandler (line 43192) | function validateHandler (handler, method, upgrade) {
function isDisturbed (line 43230) | function isDisturbed (body) {
function isErrored (line 43235) | function isErrored (body) {
function isReadable (line 43239) | function isReadable (body) {
function getSocketInfo (line 43243) | function getSocketInfo (socket) {
function ReadableStreamFrom (line 43257) | function ReadableStreamFrom (iterable) {
function isFormDataLike (line 43291) | function isFormDataLike (object) {
function addAbortListener (line 43305) | function addAbortListener (signal, listener) {
function toUSVString (line 43320) | function toUSVString (val) {
function isUSVString (line 43328) | function isUSVString (val) {
function isTokenCharCode (line 43336) | function isTokenCharCode (c) {
function isValidHTTPToken (line 43366) | function isValidHTTPToken (characters) {
function isValidHeaderValue (line 43392) | function isValidHeaderValue (characters) {
function parseRangeHeader (line 43398) | function parseRangeHeader (range) {
function addListener (line 43411) | function addListener (obj, name, listener) {
function removeAllListeners (line 43418) | function removeAllListeners (obj) {
function errorRequest (line 43425) | function errorRequest (client, request, err) {
function defaultFactory (line 43534) | function defaultFactory (origin, opts) {
class Agent (line 43540) | class Agent extends DispatcherBase {
method constructor (line 5988) | constructor(opts) {
method isSecureEndpoint (line 5995) | isSecureEndpoint(options) {
method incrementSockets (line 6027) | incrementSockets(name) {
method decrementSockets (line 6047) | decrementSockets(name, socket) {
method getName (line 6065) | getName(options) {
method createSocket (line 6074) | createSocket(req, options, cb) {
method createConnection (line 6102) | createConnection() {
method defaultPort (line 6110) | get defaultPort() {
method defaultPort (line 6114) | set defaultPort(v) {
method protocol (line 6119) | get protocol() {
method protocol (line 6123) | set protocol(v) {
method constructor (line 43541) | constructor ({ factory = defaultFactory, maxRedirections = 0, connect,...
method [kRunning] (line 43589) | get [kRunning] () {
method [kDispatch] (line 43597) | [kDispatch] (opts, handler) {
method [kClose] (line 43623) | async [kClose] () {
method [kDestroy] (line 43633) | async [kDestroy] (err) {
function getGreatestCommonDivisor (line 43687) | function getGreatestCommonDivisor (a, b) {
function defaultFactory (line 43698) | function defaultFactory (origin, opts) {
class BalancedPool (line 43702) | class BalancedPool extends PoolBase {
method constructor (line 43703) | constructor (upstreams = [], { factory = defaultFactory, ...opts } = {...
method addUpstream (line 43732) | addUpstream (upstream) {
method _updateBalancedPoolStats (line 43772) | _updateBalancedPoolStats () {
method removeUpstream (line 43781) | removeUpstream (upstream) {
method upstreams (line 43797) | get upstreams () {
method [kGetDispatcher] (line 43803) | [kGetDispatcher] () {
function lazyllhttp (line 43930) | async function lazyllhttp () {
class Parser (line 44013) | class Parser {
method constructor (line 44014) | constructor (client, socket, { exports }) {
method setTimeout (line 44042) | setTimeout (delay, type) {
method resume (line 44077) | resume () {
method readMore (line 44100) | readMore () {
method execute (line 44110) | execute (data) {
method destroy (line 44172) | destroy () {
method onStatus (line 44187) | onStatus (buf) {
method onMessageBegin (line 44191) | onMessageBegin () {
method onHeaderField (line 44206) | onHeaderField (buf) {
method onHeaderValue (line 44218) | onHeaderValue (buf) {
method trackHeader (line 44243) | trackHeader (len) {
method onUpgrade (line 44250) | onUpgrade (head) {
method onHeadersComplete (line 44294) | onHeadersComplete (statusCode, upgrade, shouldKeepAlive) {
method onBody (line 44403) | onBody (buf) {
method onMessageComplete (line 44435) | onMessageComplete () {
function onParserTimeout (line 44502) | function onParserTimeout (parser) {
function connectH1 (line 44521) | async function connectH1 (client, socket) {
function resumeH1 (line 44678) | function resumeH1 (client) {
function shouldSendContentLength (line 44709) | function shouldSendContentLength (method) {
function writeH1 (line 44713) | function writeH1 (client, request) {
function writeStream (line 44891) | function writeStream (abort, body, client, request, socket, contentLengt...
function writeBuffer (line 44994) | function writeBuffer (abort, body, client, request, socket, contentLengt...
function writeBlob (line 45024) | async function writeBlob (abort, body, client, request, socket, contentL...
function writeIterable (line 45052) | async function writeIterable (abort, body, client, request, socket, cont...
class AsyncWriter (line 45101) | class AsyncWriter {
method constructor (line 45102) | constructor ({ abort, socket, request, contentLength, client, expectsP...
method write (line 45115) | write (chunk) {
method end (line 45178) | end () {
method destroy (line 45225) | destroy (err) {
function parseH2Headers (line 45304) | function parseH2Headers (headers) {
function connectH2 (line 45324) | async function connectH2 (client, socket) {
function resumeH2 (line 45433) | function resumeH2 (client) {
function onHttp2SessionError (line 45447) | function onHttp2SessionError (err) {
function onHttp2FrameError (line 45454) | function onHttp2FrameError (type, code, id) {
function onHttp2SessionEnd (line 45462) | function onHttp2SessionEnd () {
function onHTTP2GoAway (line 45473) | function onHTTP2GoAway (code) {
function shouldSendContentLength (line 45504) | function shouldSendContentLength (method) {
function writeH2 (line 45508) | function writeH2 (client, request) {
function writeBuffer (line 45848) | function writeBuffer (abort, h2stream, body, client, request, socket, co...
function writeStream (line 45871) | function writeStream (abort, socket, expectsPayload, h2stream, body, cli...
function writeBlob (line 45902) | async function writeBlob (abort, h2stream, body, client, request, socket...
function writeIterable (line 45930) | async function writeIterable (abort, h2stream, body, client, request, so...
function getPipelining (line 46063) | function getPipelining (client) {
class Client (line 46070) | class Client extends DispatcherBase {
method constructor (line 46076) | constructor (url, {
method pipelining (line 46260) | get pipelining () {
method pipelining (line 46264) | set pipelining (value) {
method [kPending] (line 46269) | get [kPending] () {
method [kRunning] (line 46273) | get [kRunning] () {
method [kSize] (line 46277) | get [kSize] () {
method [kConnected] (line 46281) | get [kConnected] () {
method [kBusy] (line 46285) | get [kBusy] () {
method [kConnect] (line 46294) | [kConnect] (cb) {
method [kDispatch] (line 46299) | [kDispatch] (opts, handler) {
method [kClose] (line 46321) | async [kClose] () {
method [kDestroy] (line 46333) | async [kDestroy] (err) {
function onError (line 46364) | function onError (client, err) {
function connect (line 46389) | async function connect (client) {
function emitDrain (line 46519) | function emitDrain (client) {
function resume (line 46524) | function resume (client, sync) {
function _resume (line 46541) | function _resume (client, sync) {
class DispatcherBase (line 46639) | class DispatcherBase extends Dispatcher {
method constructor (line 46640) | constructor () {
method destroyed (line 46649) | get destroyed () {
method closed (line 46653) | get closed () {
method interceptors (line 46657) | get interceptors () {
method interceptors (line 46661) | set interceptors (newInterceptors) {
method close (line 46674) | close (callback) {
method destroy (line 46720) | destroy (err, callback) {
method [kInterceptedDispatch] (line 46769) | [kInterceptedDispatch] (opts, handler) {
method dispatch (line 46783) | dispatch (opts, handler) {
class Dispatcher (line 46825) | class Dispatcher extends EventEmitter {
method dispatch (line 46826) | dispatch () {
method close (line 46830) | close () {
method destroy (line 46834) | destroy () {
method compose (line 46838) | compose (...args) {
class ComposedDispatcher (line 46863) | class ComposedDispatcher extends Dispatcher {
method constructor (line 46867) | constructor (dispatcher, dispatch) {
method dispatch (line 46873) | dispatch (...args) {
method close (line 46877) | close (...args) {
method destroy (line 46881) | destroy (...args) {
class EnvHttpProxyAgent (line 46908) | class EnvHttpProxyAgent extends DispatcherBase {
method constructor (line 46913) | constructor (opts = {}) {
method [kDispatch] (line 46945) | [kDispatch] (opts, handler) {
method [kClose] (line 46951) | async [kClose] () {
method [kDestroy] (line 46961) | async [kDestroy] (err) {
method #getProxyAgentForUrl (line 46971) | #getProxyAgentForUrl (url) {
method #shouldProxy (line 46987) | #shouldProxy (hostname, port) {
method #parseNoProxy (line 47020) | #parseNoProxy () {
method #noProxyChanged (line 47041) | get #noProxyChanged () {
method #noProxyEnv (line 47048) | get #noProxyEnv () {
class FixedCircularBuffer (line 47119) | class FixedCircularBuffer {
method constructor (line 47120) | constructor() {
method isEmpty (line 47127) | isEmpty() {
method isFull (line 47131) | isFull() {
method push (line 47135) | push(data) {
method shift (line 47140) | shift() {
method constructor (line 47151) | constructor() {
method isEmpty (line 47155) | isEmpty() {
method push (line 47159) | push(data) {
method shift (line 47168) | shift() {
class PoolBase (line 47205) | class PoolBase extends DispatcherBase {
method constructor (line 47206) | constructor () {
method [kBusy] (line 47258) | get [kBusy] () {
method [kConnected] (line 47262) | get [kConnected] () {
method [kFree] (line 47266) | get [kFree] () {
method [kPending] (line 47270) | get [kPending] () {
method [kRunning] (line 47278) | get [kRunning] () {
method [kSize] (line 47286) | get [kSize] () {
method stats (line 47294) | get stats () {
method [kClose] (line 47298) | async [kClose] () {
method [kDestroy] (line 47308) | async [kDestroy] (err) {
method [kDispatch] (line 47320) | [kDispatch] (opts, handler) {
method [kAddClient] (line 47335) | [kAddClient] (client) {
method [kRemoveClient] (line 47355) | [kRemoveClient] (client) {
class PoolStats (line 47389) | class PoolStats {
method constructor (line 47390) | constructor (pool) {
method connected (line 47394) | get connected () {
method free (line 47398) | get free () {
method pending (line 47402) | get pending () {
method queued (line 47406) | get queued () {
method running (line 47410) | get running () {
method size (line 47414) | get size () {
function defaultFactory (line 47448) | function defaultFactory (origin, opts) {
class Pool (line 47452) | class Pool extends PoolBase {
method constructor (line 47453) | constructor (origin, {
method [kGetDispatcher] (line 47518) | [kGetDispatcher] () {
function defaultProtocolPort (line 47560) | function defaultProtocolPort (protocol) {
function defaultFactory (line 47564) | function defaultFactory (origin, opts) {
function defaultAgentFactory (line 47570) | function defaultAgentFactory (origin, opts) {
class Http1ProxyWrapper (line 47577) | class Http1ProxyWrapper extends DispatcherBase {
method constructor (line 47580) | constructor (proxyUrl, { headers = {}, connect, factory }) {
method [kDispatch] (line 47594) | [kDispatch] (opts, handler) {
method [kClose] (line 47624) | async [kClose] () {
method [kDestroy] (line 47628) | async [kDestroy] (err) {
class ProxyAgent (line 47633) | class ProxyAgent extends DispatcherBase {
method constructor (line 47634) | constructor (opts) {
method dispatch (line 47734) | dispatch (opts, handler) {
method #getUrl (line 47756) | #getUrl (opts) {
method [kClose] (line 47766) | async [kClose] () {
method [kDestroy] (line 47771) | async [kDestroy] () {
function buildHeaders (line 47781) | function buildHeaders (headers) {
function throwIfProxyAuthIsSent (line 47806) | function throwIfProxyAuthIsSent (headers) {
class RetryAgent (line 47827) | class RetryAgent extends Dispatcher {
method constructor (line 47830) | constructor (agent, options = {}) {
method dispatch (line 47836) | dispatch (opts, handler) {
method close (line 47847) | close () {
method destroy (line 47851) | destroy () {
function setGlobalDispatcher (line 47876) | function setGlobalDispatcher (agent) {
function getGlobalDispatcher (line 47888) | function getGlobalDispatcher () {
method constructor (line 47908) | constructor (handler) {
method onConnect (line 47915) | onConnect (...args) {
method onError (line 47919) | onError (...args) {
method onUpgrade (line 47923) | onUpgrade (...args) {
method onResponseStarted (line 47927) | onResponseStarted (...args) {
method onHeaders (line 47931) | onHeaders (...args) {
method onData (line 47935) | onData (...args) {
method onComplete (line 47939) | onComplete (...args) {
method onBodySent (line 47943) | onBodySent (...args) {
class BodyAsyncIterable (line 47966) | class BodyAsyncIterable {
method constructor (line 42808) | constructor (body) {
method constructor (line 47967) | constructor (body) {
method [Symbol.asyncIterator] (line 47972) | async * [Symbol.asyncIterator] () {
class RedirectHandler (line 47979) | class RedirectHandler {
method constructor (line 47980) | constructor (dispatch, maxRedirections, opts, handler) {
method onConnect (line 48030) | onConnect (abort) {
method onUpgrade (line 48035) | onUpgrade (statusCode, headers, socket) {
method onError (line 48039) | onError (error) {
method onHeaders (line 48043) | onHeaders (statusCode, headers, resume, statusText) {
method onData (line 48086) | onData (chunk) {
method onComplete (line 48110) | onComplete (trailers) {
method onBodySent (line 48130) | onBodySent (chunk) {
function parseLocation (line 48137) | function parseLocation (statusCode, headers) {
function shouldRemoveHeader (line 48150) | function shouldRemoveHeader (header, removeContent, unknownOrigin) {
function cleanRequestHeaders (line 48165) | function cleanRequestHeaders (headers, removeContent, unknownOrigin) {
function calculateRetryAfterHeader (line 48205) | function calculateRetryAfterHeader (retryAfter) {
class RetryHandler (line 48210) | class RetryHandler {
method constructor (line 48211) | constructor (opts, handlers) {
method onRequestSent (line 48275) | onRequestSent () {
method onUpgrade (line 48281) | onUpgrade (statusCode, headers, socket) {
method onConnect (line 48287) | onConnect (abort) {
method onBodySent (line 48295) | onBodySent (chunk) {
method [kRetryHandlerDefaultRetry] (line 48299) | static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) {
method onHeaders (line 48357) | onHeaders (statusCode, rawHeaders, resume, statusMessage) {
method onData (line 48498) | onData (chunk) {
method onComplete (line 48504) | onComplete (rawTrailers) {
method onError (line 48509) | onError (err) {
class DNSInstance (line 48581) | class DNSInstance {
method constructor (line 48590) | constructor (opts) {
method full (line 48599) | get full () {
method runLookup (line 48603) | runLookup (origin, opts, cb) {
method #defaultLookup (line 48688) | #defaultLookup (origin, opts, cb) {
method #defaultPick (line 48714) | #defaultPick (origin, hostnameRecords, affinity) {
method setRecords (line 48768) | setRecords (origin, addresses) {
method getHandler (line 48789) | getHandler (meta, opts) {
class DNSDispatchHandler (line 48794) | class DNSDispatchHandler extends DecoratorHandler {
method constructor (line 48801) | constructor (state, { origin, handler, dispatch }, opts) {
method onError (line 48810) | onError (err) {
class DumpHandler (line 48962) | class DumpHandler extends DecoratorHandler {
method constructor (line 48971) | constructor ({ maxSize }, handler) {
method onConnect (line 48982) | onConnect (abort) {
method #customAbort (line 48988) | #customAbort (reason) {
method onHeaders (line 48994) | onHeaders (statusCode, rawHeaders, resume, statusMessage) {
method onError (line 49018) | onError (err) {
method onData (line 49028) | onData (chunk) {
method onComplete (line 49044) | onComplete (trailers) {
function createDumpInterceptor (line 49058) | function createDumpInterceptor (
function createRedirectInterceptor (line 49090) | function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirec...
function enumToMap (line 49482) | function enumToMap(obj) {
class MockAgent (line 49523) | class MockAgent extends Dispatcher {
method constructor (line 49524) | constructor (opts) {
method get (line 49541) | get (origin) {
method dispatch (line 49551) | dispatch (opts, handler) {
method close (line 49557) | async close () {
method deactivate (line 49562) | deactivate () {
method activate (line 49566) | activate () {
method enableNetConnect (line 49570) | enableNetConnect (matcher) {
method disableNetConnect (line 49584) | disableNetConnect () {
method isMockActive (line 49590) | get isMockActive () {
method [kMockAgentSet] (line 49594) | [kMockAgentSet] (origin, dispatcher) {
method [kFactory] (line 49598) | [kFactory] (origin) {
method [kMockAgentGet] (line 49605) | [kMockAgentGet] (origin) {
method [kGetNetConnect] (line 49630) | [kGetNetConnect] () {
method pendingInterceptors (line 49634) | pendingInterceptors () {
method assertNoPendingInterceptors (line 49642) | assertNoPendingInterceptors ({ pendingInterceptorsFormatter = new Pend...
class MockClient (line 49688) | class MockClient extends Client {
method constructor (line 49689) | constructor (origin, opts) {
method intercept (line 49714) | intercept (opts) {
method [kClose] (line 49718) | async [kClose] () {
method [Symbols.kConnected] (line 49707) | get [Symbols.kConnected] () {
class MockNotMatchedError (line 49742) | class MockNotMatchedError extends UndiciError {
method constructor (line 49743) | constructor (message) {
method [Symbol.hasInstance] (line 49751) | static [Symbol.hasInstance] (instance) {
class MockScope (line 49785) | class MockScope {
method constructor (line 49786) | constructor (mockDispatch) {
method delay (line 49793) | delay (waitInMs) {
method persist (line 49805) | persist () {
method times (line 49813) | times (repeatTimes) {
class MockInterceptor (line 49826) | class MockInterceptor {
method constructor (line 49827) | constructor (opts, mockDispatches) {
method createMockScopeDispatchData (line 49860) | createMockScopeDispatchData ({ statusCode, data, responseOptions }) {
method validateReplyParameters (line 49869) | validateReplyParameters (replyParameters) {
method reply (line 49881) | reply (replyOptionsCallbackOrStatusCode) {
method replyWithError (line 49931) | replyWithError (error) {
method defaultReplyHeaders (line 49943) | defaultReplyHeaders (headers) {
method defaultReplyTrailers (line 49955) | defaultReplyTrailers (trailers) {
method replyContentLength (line 49967) | replyContentLength () {
class MockPool (line 50003) | class MockPool extends Pool {
method constructor (line 50004) | constructor (origin, opts) {
method intercept (line 50029) | intercept (opts) {
method [kClose] (line 50033) | async [kClose] () {
method [Symbols.kConnected] (line 50022) | get [Symbols.kConnected] () {
function matchValue (line 50096) | function matchValue (match, value) {
function lowerCaseEntries (line 50109) | function lowerCaseEntries (headers) {
function getHeaderByName (line 50121) | function getHeaderByName (headers, key) {
function buildHeadersFromArray (line 50138) | function buildHeadersFromArray (headers) { // fetch HeadersList
function matchHeaders (line 50147) | function matchHeaders (mockDispatch, headers) {
function safeUrl (line 50171) | function safeUrl (path) {
function matchKey (line 50187) | function matchKey (mockDispatch, { path, method, body, headers }) {
function getResponseData (line 50195) | function getResponseData (data) {
function getMockDispatch (line 50209) | function getMockDispatch (mockDispatches, key) {
function addMockDispatch (line 50241) | function addMockDispatch (mockDispatches, key, data) {
function deleteMockDispatch (line 50249) | function deleteMockDispatch (mockDispatches, key) {
function buildKey (line 50261) | function buildKey (opts) {
function generateKeyValues (line 50272) | function generateKeyValues (data) {
function getStatusText (line 50294) | function getStatusText (statusCode) {
function getResponse (line 50298) | async function getResponse (body) {
function mockDispatch (line 50309) | function mockDispatch (opts, handler) {
function buildMockDispatch (line 50381) | function buildMockDispatch () {
function checkNetConnect (line 50411) | function checkNetConnect (netConnect, origin) {
function buildMockOptions (line 50421) | function buildMockOptions (opts) {
method constructor (line 50464) | constructor ({ disableColors } = {}) {
method format (line 50479) | format (pendingInterceptors) {
method constructor (line 50519) | constructor (singular, plural) {
method pluralize (line 50524) | pluralize (count) {
function onTick (line 50652) | function onTick () {
function refreshTimeout (line 50727) | function refreshTimeout () {
class FastTimer (line 50748) | class FastTimer {
method constructor (line 50804) | constructor (callback, delay, arg) {
method refresh (line 50821) | refresh () {
method clear (line 50846) | clear () {
method setTimeout (line 50873) | setTimeout (callback, delay, arg) {
method clearTimeout (line 50886) | clearTimeout (timeout) {
method setFastTimeout (line 50910) | setFastTimeout (callback, delay, arg) {
method clearFastTimeout (line 50919) | clearFastTimeout (timeout) {
method now (line 50927) | now () {
method tick (line 50937) | tick (delay = 0) {
method reset (line 50948) | reset () {
class Cache (line 50995) | class Cache {
method constructor (line 51002) | constructor () {
method match (line 51011) | async match (request, options = {}) {
method matchAll (line 51029) | async matchAll (request = undefined, options = {}) {
method add (line 51039) | async add (request) {
method addAll (line 51057) | async addAll (requests) {
method put (line 51227) | async put (request, response) {
method delete (line 51358) | async delete (request, options = {}) {
method keys (line 51424) | async keys (request = undefined, options = {}) {
method #batchCacheOperations (line 51504) | #batchCacheOperations (operations) {
method #queryCache (line 51642) | #queryCache (requestQuery, options, targetStorage) {
method #requestMatchesCachedItem (line 51666) | #requestMatchesCachedItem (requestQuery, request, response = null, opt...
method #internalMatchAll (line 51713) | #internalMatchAll (request, options, maxResponses = Infinity) {
class CacheStorage (line 51841) | class CacheStorage {
method constructor (line 51848) | constructor () {
method match (line 51856) | async match (request, options = {}) {
method has (line 51893) | async has (cacheName) {
method open (line 51911) | async open (cacheName) {
method delete (line 51945) | async delete (cacheName) {
method keys (line 51960) | async keys () {
function urlEquals (line 52018) | function urlEquals (A, B, excludeFragment = false) {
function getFieldValues (line 52030) | function getFieldValues (header) {
function getCookies (line 52101) | function getCookies (headers) {
function deleteCookie (line 52128) | function deleteCookie (headers, name, attributes) {
function getSetCookies (line 52151) | function getSetCookies (headers) {
function setCookie (line 52170) | function setCookie (headers, cookie) {
function parseSetCookie (line 52280) | function parseSetCookie (header) {
function parseUnparsedAttributes (line 52356) | function parseUnparsedAttributes (unparsedAttributes, cookieAttributeLis...
function isCTLExcludingHtab (line 52597) | function isCTLExcludingHtab (value) {
function validateCookieName (line 52621) | function validateCookieName (name) {
function validateCookieValue (line 52659) | function validateCookieValue (value) {
function validateCookiePath (line 52692) | function validateCookiePath (path) {
function validateCookieDomain (line 52711) | function validateCookieDomain (domain) {
function toIMFDate (line 52774) | function toIMFDate (date) {
function validateCookieMaxAge (line 52789) | function validateCookieMaxAge (maxAge) {
function stringify (line 52799) | function stringify (cookie) {
class EventSourceStream (line 52922) | class EventSourceStream extends Transform {
method constructor (line 52963) | constructor (options = {}) {
method _transform (line 52982) | _transform (chunk, _encoding, callback) {
method parseLine (line 53164) | parseLine (line, event) {
method processEvent (line 53243) | processEvent (event) {
method clearEvent (line 53265) | clearEvent () {
class EventSource (line 53360) | class EventSource extends EventTarget {
method constructor (line 53388) | constructor (url, eventSourceInitDict = {}) {
method readyState (line 53481) | get readyState () {
method url (line 53490) | get url () {
method withCredentials (line 53498) | get withCredentials () {
method #connect (line 53502) | #connect () {
method #reconnect (line 53606) | async #reconnect () {
method close (line 53651) | close () {
method onopen (line 53660) | get onopen () {
method onopen (line 53664) | set onopen (fn) {
method onmessage (line 53677) | get onmessage () {
method onmessage (line 53681) | set onmessage (fn) {
method onerror (line 53694) | get onerror () {
method onerror (line 53698) | set onerror (fn) {
function isValidLastEventId (line 53779) | function isValidLastEventId (value) {
function isASCIINumber (line 53789) | function isASCIINumber (value) {
function delay (line 53798) | function delay (ms) {
function noop (line 53848) | function noop () {}
function extractBody (line 53863) | function extractBody (object, keepalive = false) {
function safelyExtractBody (line 54089) | function safelyExtractBody (object, keepalive = false) {
function cloneBody (line 54106) | function cloneBody (instance, body) {
function throwIfAborted (line 54125) | function throwIfAborted (state) {
function bodyMixinMethods (line 54131) | function bodyMixinMethods (instance) {
function mixinBody (line 54241) | function mixinBody (prototype) {
function consumeBody (line 54251) | async function consumeBody (object, convertBytesToJSValue, instance) {
function bodyUnusable (line 54296) | function bodyUnusable (object) {
function parseJSONFromBytes (line 54309) | function parseJSONFromBytes (bytes) {
function bodyMimeType (line 54317) | function bodyMimeType (requestOrResponse) {
function dataURLProcessor (line 54502) | function dataURLProcessor (dataURL) {
function URLSerializer (line 54604) | function URLSerializer (url, excludeFragment = false) {
function collectASequenceOfCodePoints (line 54627) | function collectASequenceOfCodePoints (condition, input, position) {
function collectASequenceOfCodePointsFast (line 54651) | function collectASequenceOfCodePointsFast (char, input, position) {
function stringPercentDecode (line 54666) | function stringPercentDecode (input) {
function isHexCharByte (line 54677) | function isHexCharByte (byte) {
function hexByteToNumber (line 54685) | function hexByteToNumber (byte) {
function percentDecode (line 54698) | function percentDecode (input) {
function parseMIMEType (line 54741) | function parseMIMEType (input) {
function forgivingBase64 (line 54914) | function forgivingBase64 (data) {
function collectAnHTTPQuotedString (line 54958) | function collectAnHTTPQuotedString (input, position, extractValue) {
function serializeAMimeType (line 55033) | function serializeAMimeType (mimeType) {
function isHTTPWhiteSpace (line 55078) | function isHTTPWhiteSpace (char) {
function removeHTTPWhitespace (line 55089) | function removeHTTPWhitespace (str, leading = true, trailing = true) {
function isASCIIWhitespace (line 55097) | function isASCIIWhitespace (char) {
function removeASCIIWhitespace (line 55108) | function removeASCIIWhitespace (str, leading = true, trailing = true) {
function removeChars (line 55119) | function removeChars (str, leading, trailing, predicate) {
function isomorphicDecode (line 55139) | function isomorphicDecode (input) {
function minimizeSupportedMimeType (line 55162) | function minimizeSupportedMimeType (mimeType) {
class CompatWeakRef (line 55238) | class CompatWeakRef {
method constructor (line 55239) | constructor (value) {
method deref (line 55243) | deref () {
class CompatFinalizer (line 55250) | class CompatFinalizer {
method constructor (line 55251) | constructor (finalizer) {
method register (line 55255) | register (dispatcher, key) {
method unregister (line 55265) | unregister (key) {}
class FileLike (line 55294) | class FileLike {
method constructor (line 55295) | constructor (blobLike, fileName, options = {}) {
method stream (line 55342) | stream (...args) {
method arrayBuffer (line 55348) | arrayBuffer (...args) {
method slice (line 55354) | slice (...args) {
method text (line 55360) | text (...args) {
method size (line 55366) | get size () {
method type (line 55372) | get type () {
method name (line 55378) | get name () {
method lastModified (line 55384) | get lastModified () {
method [Symbol.toStringTag] (line 55390) | get [Symbol.toStringTag] () {
function isFileLike (line 55400) | function isFileLike (object) {
function isAsciiString (line 55440) | function isAsciiString (chars) {
function validateBoundary (line 55453) | function validateBoundary (boundary) {
function multipartFormDataParser (line 55487) | function multipartFormDataParser (input, mimeType) {
function parseMultipartFormDataHeaders (line 55639) | function parseMultipartFormDataHeaders (input, position) {
function parseMultipartFormDataName (line 55801) | function parseMultipartFormDataName (input, position) {
function collectASequenceOfBytes (line 55838) | function collectASequenceOfBytes (condition, input, position) {
function removeChars (line 55855) | function removeChars (buf, leading, trailing, predicate) {
function bufferStartsWith (line 55876) | function bufferStartsWith (buffer, start, position) {
class FormData (line 55915) | class FormData {
method constructor (line 55916) | constructor (form) {
method append (line 55930) | append (name, value, filename = undefined) {
method delete (line 55960) | delete (name) {
method get (line 55973) | get (name) {
method getAll (line 55993) | getAll (name) {
method has (line 56010) | has (name) {
method set (line 56023) | set (name, value, filename = undefined) {
method [nodeUtil.inspect.custom] (line 56067) | [nodeUtil.inspect.custom] (depth, options) {
function makeEntry (line 56114) | function makeEntry (name, value, filename) {
function getGlobalOrigin (line 56166) | function getGlobalOrigin () {
function setGlobalOrigin (line 56170) | function setGlobalOrigin (newOrigin) {
function isHTTPWhiteSpaceCharCode (line 56228) | function isHTTPWhiteSpaceCharCode (code) {
function headerValueNormalize (line 56236) | function headerValueNormalize (potentialValue) {
function fill (line 56248) | function fill (headers, object) {
function appendHeader (line 56288) | function appendHeader (headers, name, value) {
function compareHeaderName (line 56328) | function compareHeaderName (a, b) {
class HeadersList (line 56332) | class HeadersList {
method constructor (line 56336) | constructor (init) {
method contains (line 56352) | contains (name, isLowerCase) {
method clear (line 56360) | clear () {
method append (line 56372) | append (name, value, isLowerCase) {
method set (line 56402) | set (name, value, isLowerCase) {
method delete (line 56422) | delete (name, isLowerCase) {
method get (line 56439) | get (name, isLowerCase) {
method entries (line 56454) | get entries () {
method rawValues (line 56466) | rawValues () {
method entriesList (line 56470) | get entriesList () {
method toSortedArray (line 56489) | toSortedArray () {
method [Symbol.iterator] (line 56447) | * [Symbol.iterator] () {
class Headers (line 56563) | class Headers {
method constructor (line 56567) | constructor (init = undefined) {
method append (line 56589) | append (name, value) {
method delete (line 56602) | delete (name) {
method get (line 56646) | get (name) {
method has (line 56669) | has (name) {
method set (line 56692) | set (name, value) {
method getSetCookie (line 56740) | getSetCookie () {
method [kHeadersSortedMap] (line 56757) | get [kHeadersSortedMap] () {
method getHeadersGuard (line 56814) | static getHeadersGuard (o) {
method setHeadersGuard (line 56818) | static setHeadersGuard (o, guard) {
method getHeadersList (line 56822) | static getHeadersList (o) {
method setHeadersList (line 56826) | static setHeadersList (o, list) {
method [util.inspect.custom] (line 56808) | [util.inspect.custom] (depth, options) {
class Fetch (line 56976) | class Fetch extends EE {
method constructor (line 56977) | constructor (dispatcher) {
method terminate (line 56986) | terminate (reason) {
method abort (line 56997) | abort (error) {
function handleFetchDone (line 57023) | function handleFetchDone (response) {
function fetch (line 57028) | function fetch (input, init = undefined) {
function finalizeAndReportTiming (line 57155) | function finalizeAndReportTiming (response, initiatorType = 'other') {
function abortFetch (line 57221) | function abortFetch (p, request, responseObject, error) {
function fetching (line 57262) | function fetching ({
function mainFetch (line 57419) | async function mainFetch (fetchParams, recursive = false) {
function schemeFetch (line 57671) | function schemeFetch (fetchParams) {
function finalizeResponse (line 57868) | function finalizeResponse (fetchParams, response) {
function fetchFinale (line 57881) | function fetchFinale (fetchParams, response) {
function httpFetch (line 58008) | async function httpFetch (fetchParams) {
function httpRedirectFetch (line 58111) | function httpRedirectFetch (fetchParams, response) {
function httpNetworkOrCacheFetch (line 58255) | async function httpNetworkOrCacheFetch (
function httpNetworkFetch (line 58585) | async function httpNetworkFetch (
function buildAbort (line 59220) | function buildAbort (acRef) {
class Request (line 59261) | class Request {
method constructor (line 42185) | constructor (origin, {
method onBodySent (line 42349) | onBodySent (chunk) {
method onRequestSent (line 42359) | onRequestSent () {
method onConnect (line 42373) | onConnect (abort) {
method onResponseStarted (line 42385) | onResponseStarted () {
method onHeaders (line 42389) | onHeaders (statusCode, headers, resume, statusText) {
method onData (line 42404) | onData (chunk) {
method onUpgrade (line 42416) | onUpgrade (statusCode, headers, socket) {
method onComplete (line 42423) | onComplete (trailers) {
method onError (line 42441) | onError (error) {
method onFinally (line 42456) | onFinally () {
method addHeader (line 42468) | addHeader (key, value) {
method constructor (line 59263) | constructor (input, init = {}) {
method method (line 59762) | get method () {
method url (line 59770) | get url () {
method headers (line 59780) | get headers () {
method destination (line 59789) | get destination () {
method referrer (line 59801) | get referrer () {
method referrerPolicy (line 59823) | get referrerPolicy () {
method mode (line 59833) | get mode () {
method credentials (line 59843) | get credentials () {
method cache (line 59851) | get cache () {
method redirect (line 59862) | get redirect () {
method integrity (line 59872) | get integrity () {
method keepalive (line 59882) | get keepalive () {
method isReloadNavigation (line 59891) | get isReloadNavigation () {
method isHistoryNavigation (line 59901) | get isHistoryNavigation () {
method signal (line 59912) | get signal () {
method body (line 59919) | get body () {
method bodyUsed (line 59925) | get bodyUsed () {
method duplex (line 59931) | get duplex () {
method clone (line 59938) | clone () {
method [nodeUtil.inspect.custom] (line 59973) | [nodeUtil.inspect.custom] (depth, options) {
function makeRequest (line 60005) | function makeRequest (init) {
function cloneRequest (line 60051) | function cloneRequest (request) {
function fromInnerRequest (line 60074) | function fromInnerRequest (innerRequest, signal, guard) {
class Response (line 60256) | class Response {
method error (line 60258) | static error () {
method json (line 60268) | static json (data, init = {}) {
method redirect (line 60295) | static redirect (url, status = 302) {
method constructor (line 60335) | constructor (body = null, init = {}) {
method type (line 60371) | get type () {
method url (line 60379) | get url () {
method redirected (line 60397) | get redirected () {
method status (line 60406) | get status () {
method ok (line 60414) | get ok () {
method statusText (line 60423) | get statusText () {
method headers (line 60432) | get headers () {
method body (line 60439) | get body () {
method bodyUsed (line 60445) | get bodyUsed () {
method clone (line 60452) | clone () {
method [nodeUtil.inspect.custom] (line 60476) | [nodeUtil.inspect.custom] (depth, options) {
function cloneResponse (line 60525) | function cloneResponse (response) {
function makeResponse (line 60551) | function makeResponse (init) {
function makeNetworkError (line 60570) | function makeNetworkError (reason) {
function isNetworkError (line 60583) | function isNetworkError (response) {
function makeFilteredResponse (line 60592) | function makeFilteredResponse (response, state) {
function filterResponse (line 60611) | function filterResponse (response, type) {
function makeAppropriateNetworkError (line 60665) | function makeAppropriateNetworkError (fetchParams, err = null) {
function initializeResponse (line 60677) | function initializeResponse (response, init, body) {
function fromInnerResponse (line 60736) | function fromInnerResponse (innerResponse, guard) {
function responseURL (line 60884) | function responseURL (response) {
function responseLocationURL (line 60894) | function responseLocationURL (response, requestFragment) {
function isValidEncodedURL (line 60931) | function isValidEncodedURL (url) {
function normalizeBinaryStringToUtf8 (line 60951) | function normalizeBinaryStringToUtf8 (value) {
function requestCurrentURL (line 60956) | function requestCurrentURL (request) {
function requestBadPort (line 60960) | function requestBadPort (request) {
function isErrorLike (line 60974) | function isErrorLike (object) {
function isValidReasonPhrase (line 60987) | function isValidReasonPhrase (statusText) {
function isValidHeaderValue (line 61015) | function isValidHeaderValue (potentialValue) {
function setRequestReferrerPolicyOnRedirect (line 61030) | function setRequestReferrerPolicyOnRedirect (request, actualResponse) {
function crossOriginResourcePolicyCheck (line 61070) | function crossOriginResourcePolicyCheck () {
function corsCheck (line 61076) | function corsCheck () {
function TAOCheck (line 61082) | function TAOCheck () {
function appendFetchMetadata (line 61087) | function appendFetchMetadata (httpRequest) {
function appendRequestOriginHeader (line 61113) | function appendRequestOriginHeader (request) {
function coarsenTime (line 61168) | function coarsenTime (timestamp, crossOriginIsolatedCapability) {
function clampAndCoarsenConnectionTimingInfo (line 61174) | function clampAndCoarsenConnectionTimingInfo (connectionTimingInfo, defa...
function coarsenedSharedCurrentTime (line 61197) | function coarsenedSharedCurrentTime (crossOriginIsolatedCapability) {
function createOpaqueTimingInfo (line 61202) | function createOpaqueTimingInfo (timingInfo) {
function makePolicyContainer (line 61219) | function makePolicyContainer () {
function clonePolicyContainer (line 61227) | function clonePolicyContainer (policyContainer) {
function determineRequestsReferrer (line 61234) | function determineRequestsReferrer (request) {
function stripURLForReferrer (line 61333) | function stripURLForReferrer (url, originOnly) {
function isURLPotentiallyTrustworthy (line 61366) | function isURLPotentiallyTrustworthy (url) {
function bytesMatch (line 61412) | function bytesMatch (bytes, metadataList) {
function parseMetadata (line 61484) | function parseMetadata (metadata) {
function getStrongestMetadata (line 61534) | function getStrongestMetadata (metadataList) {
function filterMetadataListByAlgorithm (line 61563) | function filterMetadataListByAlgorithm (metadataList, algorithm) {
function compareBase64Mixed (line 61588) | function compareBase64Mixed (actualValue, expectedValue) {
function tryUpgradeRequestToAPotentiallyTrustworthyURL (line 61608) | function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
function sameOrigin (line 61617) | function sameOrigin (A, B) {
function createDeferredPromise (line 61633) | function createDeferredPromise () {
function isAborted (line 61644) | function isAborted (fetchParams) {
function isCancelled (line 61648) | function isCancelled (fetchParams) {
function normalizeMethod (line 61657) | function normalizeMethod (method) {
function serializeJavascriptValueToJSONString (line 61662) | function serializeJavascriptValueToJSONString (value) {
function createIterator (line 61688) | function createIterator (name, kInternalIterator, keyIndex = 0, valueInd...
function iteratorMixin (line 61824) | function iteratorMixin (name, object, kInternalIterator, keyIndex = 0, v...
function fullyReadBody (line 61888) | async function fullyReadBody (body, processBody, processBodyError) {
function isReadableStreamLike (line 61920) | function isReadableStreamLike (stream) {
function readableStreamClose (line 61930) | function readableStreamClose (controller) {
function isomorphicEncode (line 61948) | function isomorphicEncode (input) {
function readAllBytes (line 61963) | async function readAllBytes (reader) {
function urlIsLocal (line 61993) | function urlIsLocal (url) {
function urlHasHttpsScheme (line 62005) | function urlHasHttpsScheme (url) {
function urlIsHttpHttpsScheme (line 62024) | function urlIsHttpHttpsScheme (url) {
function simpleRangeHeaderValue (line 62037) | function simpleRangeHeaderValue (value, allowWhitespace) {
function buildContentRange (line 62170) | function buildContentRange (rangeStart, rangeEnd, fullLength) {
class InflateStream (line 62198) | class InflateStream extends Transform {
method constructor (line 62202) | constructor (zlibOptions) {
method _transform (line 62207) | _transform (chunk, encoding, callback) {
method _final (line 62225) | _final (callback) {
function createInflate (line 62238) | function createInflate (zlibOptions) {
function extractMimeType (line 62246) | function extractMimeType (headers) {
function gettingDecodingSplitting (line 62310) | function gettingDecodingSplitting (value) {
function getDecodeSplit (line 62377) | function getDecodeSplit (name, list) {
function utf8DecodeBytes (line 62396) | function utf8DecodeBytes (buffer) {
class EnvironmentSettingsObjectBase (line 62418) | class EnvironmentSettingsObjectBase {
method baseUrl (line 62419) | get baseUrl () {
method origin (line 62423) | get origin () {
class EnvironmentSettingsObject (line 62430) | class EnvironmentSettingsObject {
function getEncoding (line 63204) | function getEncoding (label) {
class FileReader (line 63512) | class FileReader extends EventTarget {
method constructor (line 63513) | constructor () {
method readAsArrayBuffer (line 63533) | readAsArrayBuffer (blob) {
method readAsBinaryString (line 63549) | readAsBinaryString (blob) {
method readAsText (line 63566) | readAsText (blob, encoding = undefined) {
method readAsDataURL (line 63586) | readAsDataURL (blob) {
method abort (line 63601) | abort () {
method readyState (line 63638) | get readyState () {
method result (line 63651) | get result () {
method error (line 63662) | get error () {
method onloadend (line 63670) | get onloadend () {
method onloadend (line 63676) | set onloadend (fn) {
method onerror (line 63691) | get onerror () {
method onerror (line 63697) | set onerror (fn) {
method onloadstart (line 63712) | get onloadstart () {
method onloadstart (line 63718) | set onloadstart (fn) {
method onprogress (line 63733) | get onprogress () {
method onprogress (line 63739) | set onprogress (fn) {
method onload (line 63754) | get onload () {
method onload (line 63760) | set onload (fn) {
method onabort (line 63775) | get onabort () {
method onabort (line 63781) | set onabort (fn) {
class ProgressEvent (line 63855) | class ProgressEvent extends Event {
method constructor (line 63856) | constructor (type, eventInitDict = {}) {
method lengthComputable (line 63869) | get lengthComputable () {
method loaded (line 63875) | get loaded () {
method total (line 63881) | get total () {
function readOperation (line 63978) | function readOperation (fr, blob, type, encodingName) {
function fireAProgressEvent (line 64144) | function fireAProgressEvent (e, reader) {
function packageData (line 64162) | function packageData (bytes, type, mimeType, encodingName) {
function decode (line 64264) | function decode (ioQueue, encoding) {
function BOMSniffing (line 64296) | function BOMSniffing (ioQueue) {
function combineByteSequences (line 64320) | function combineByteSequences (sequences) {
function establishWebSocketConnection (line 64382) | function establishWebSocketConnection (url, protocols, client, ws, onEst...
function closeWebSocketConnection (line 64565) | function closeWebSocketConnection (ws, code, reason, reasonByteLength) {
function onSocketData (line 64630) | function onSocketData (chunk) {
function onSocketClose (line 64640) | function onSocketClose () {
function onSocketError (line 64701) | function onSocketError (error) {
class MessageEvent (line 64807) | class MessageEvent extends Event {
method constructor (line 64810) | constructor (type, eventInitDict = {}) {
method data (line 64829) | get data () {
method origin (line 64835) | get origin () {
method lastEventId (line 64841) | get lastEventId () {
method source (line 64847) | get source () {
method ports (line 64853) | get ports () {
method initMessageEvent (line 64863) | initMessageEvent (
method createFastMessageEvent (line 64882) | static createFastMessageEvent (type, init) {
class CloseEvent (line 64900) | class CloseEvent extends Event {
method constructor (line 64903) | constructor (type, eventInitDict = {}) {
method wasClean (line 64916) | get wasClean () {
method code (line 64922) | get code () {
method reason (line 64928) | get reason () {
class ErrorEvent (line 64936) | class ErrorEvent extends Event {
method constructor (line 64939) | constructor (type, eventInitDict) {
method message (line 64952) | get message () {
method filename (line 64958) | get filename () {
method lineno (line 64964) | get lineno () {
method colno (line 64970) | get colno () {
method error (line 64976) | get error () {
function generateMask (line 65159) | function generateMask () {
class WebsocketFrameSend (line 65167) | class WebsocketFrameSend {
method constructor (line 65171) | constructor (data) {
method createFrame (line 65175) | createFrame (opcode) {
class PerMessageDeflate (line 65245) | class PerMessageDeflate {
method constructor (line 65251) | constructor (extensions) {
method decompress (line 65256) | decompress (chunk, fin, callback) {
class ByteParser (line 65339) | class ByteParser extends Writable {
method constructor (line 65352) | constructor (ws, extensions) {
method _write (line 65367) | _write (chunk, _, callback) {
method run (line 65380) | run (callback) {
method consume (line 65572) | consume (n) {
method parseCloseBody (line 65609) | parseCloseBody (data) {
method parseControlFrame (line 65649) | parseControlFrame (body) {
method closingInfo (line 65729) | get closingInfo () {
class SendQueue (line 65760) | class SendQueue {
method constructor (line 65774) | constructor (socket) {
method add (line 65778) | add (item, cb, hint) {
method #run (line 65813) | async #run () {
function createFrame (line 65831) | function createFrame (data, hint) {
function toBuffer (line 65835) | function toBuffer (data, hint) {
function isConnecting (line 65888) | function isConnecting (ws) {
function isEstablished (line 65898) | function isEstablished (ws) {
function isClosing (line 65909) | function isClosing (ws) {
function isClosed (line 65920) | function isClosed (ws) {
function fireEvent (line 65931) | function fireEvent (e, target, eventFactory = (type, init) => new Event(...
function websocketMessageReceived (line 65953) | function websocketMessageReceived (ws, type, data) {
function toArrayBuffer (line 65994) | function toArrayBuffer (buffer) {
function isValidSubprotocol (line 66007) | function isValidSubprotocol (protocol) {
function isValidStatusCode (line 66053) | function isValidStatusCode (code) {
function failWebsocketConnection (line 66069) | function failWebsocketConnection (ws, reason) {
function isControlFrame (line 66091) | function isControlFrame (opcode) {
function isContinuationFrame (line 66099) | function isContinuationFrame (opcode) {
function isTextBinaryFrame (line 66103) | function isTextBinaryFrame (opcode) {
function isValidOpcode (line 66107) | function isValidOpcode (opcode) {
function parseExtensions (line 66117) | function parseExtensions (extensions) {
function isValidClientWindowBits (line 66141) | function isValidClientWindowBits (value) {
class WebSocket (line 66226) | class WebSocket extends EventTarget {
method constructor (line 66245) | constructor (url, protocols = []) {
method close (line 66351) | close (code = undefined, reason = undefined) {
method send (line 66398) | send (data) {
method readyState (line 66492) | get readyState () {
method bufferedAmount (line 66499) | get bufferedAmount () {
method url (line 66505) | get url () {
method extensions (line 66512) | get extensions () {
method protocol (line 66518) | get protocol () {
method onopen (line 66524) | get onopen () {
method onopen (line 66530) | set onopen (fn) {
method onerror (line 66545) | get onerror () {
method onerror (line 66551) | set onerror (fn) {
method onclose (line 66566) | get onclose () {
method onclose (line 66572) | set onclose (fn) {
method onmessage (line 66587) | get onmessage () {
method onmessage (line 66593) | set onmessage (fn) {
method binaryType (line 66608) | get binaryType () {
method binaryType (line 66614) | set binaryType (type) {
method #onConnectionEstablished (line 66627) | #onConnectionEstablished (response, parsedExtensions) {
function onParserDrain (line 66760) | function onParserDrain () {
function onParserError (line 66764) | function onParserError (err) {
function Entry (line 66795) | function Entry() {
function Extract (line 66827) | function Extract (opts) {
method constructor (line 37737) | constructor (opts) {
method _unlock (line 37760) | _unlock (err) {
method _consumeHeader (line 37772) | _consumeHeader () {
method _applyLongHeaders (line 37811) | _applyLongHeaders () {
method _decodeLongHeader (line 37831) | _decodeLongHeader (buf) {
method _consumeLongHeader (line 37850) | _consumeLongHeader () {
method _consumeStream (line 37866) | _consumeStream () {
method _createStream (line 37882) | _createStream () {
method _update (line 37886) | _update () {
method _continueWrite (line 37912) | _continueWrite (err) {
method _write (line 37918) | _write (data, cb) {
method _final (line 37924) | _final (cb) {
method _predestroy (line 37929) | _predestroy () {
method _destroy (line 37933) | _destroy (cb) {
function MatcherStream (line 66926) | function MatcherStream(patternDesc, matchFn) {
function ParserStream (line 67027) | function ParserStream(opts) {
function UnzipStream (line 67119) | function UnzipStream(options) {
function parse (line 68425) | function parse (header) {
function safeParse (line 68482) | function safeParse (header) {
class Glob (line 68568) | class Glob {
method constructor (line 68614) | constructor(pattern, opts) {
method walk (line 68722) | async walk() {
method walkSync (line 68739) | walkSync() {
method stream (line 68752) | stream() {
method streamSync (line 68763) | streamSync() {
method iterateSync (line 68778) | iterateSync() {
method iterate (line 68788) | iterate() {
method [Symbol.iterator] (line 68781) | [Symbol.iterator]() {
method [Symbol.asyncIterator] (line 68791) | [Symbol.asyncIterator]() {
class Ignore (line 68853) | class Ignore {
method constructor (line 68860) | constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = ...
method add (line 68880) | add(ign) {
method ignored (line 68924) | ignored(p) {
method childrenIgnored (line 68939) | childrenIgnored(p) {
function globStreamSync (line 68981) | function globStreamSync(pattern, options = {}) {
function globStream (line 68984) | function globStream(pattern, options = {}) {
function globSync (line 68987) | function globSync(pattern, options = {}) {
function glob_ (line 68990) | async function glob_(pattern, options = {}) {
function globIterateSync (line 68993) | function globIterateSync(pattern, options = {}) {
function globIterate (line 68996) | function globIterate(pattern, options = {}) {
class Pattern (line 69046) | class Pattern {
method constructor (line 69058) | constructor(patternList, globList, index, platform) {
method pattern (line 69120) | pattern() {
method isString (line 69126) | isString() {
method isGlobstar (line 69132) | isGlobstar() {
method isRegExp (line 69138) | isRegExp() {
method globString (line 69144) | globString() {
method hasMore (line 69156) | hasMore() {
method rest (line 69162) | rest() {
method isUNC (line 69176) | isUNC() {
method isDrive (line 69198) | isDrive() {
method isAbsolute (line 69215) | isAbsolute() {
method root (line 69227) | root() {
method checkFollowGlobstar (line 69237) | checkFollowGlobstar() {
method markFollowGlobstar (line 69245) | markFollowGlobstar() {
class HasWalkedCache (line 69268) | class HasWalkedCache {
method constructor (line 69270) | constructor(store = new Map()) {
method copy (line 69273) | copy() {
method hasWalked (line 69276) | hasWalked(target, pattern) {
method storeWalked (line 69279) | storeWalked(target, pattern) {
class MatchRecord (line 69294) | class MatchRecord {
method add (line 69296) | add(target, absolute, ifDir) {
method entries (line 69302) | entries() {
class SubWalks (line 69315) | class SubWalks {
method add (line 69317) | add(target, pattern) {
method get (line 69330) | get(target) {
method entries (line 69339) | entries() {
method keys (line 69342) | keys() {
class Processor (line 69353) | class Processor {
method constructor (line 69361) | constructor(opts, hasWalkedCache) {
method processPatterns (line 69368) | processPatterns(target, patterns) {
method subwalkTargets (line 69459) | subwalkTargets() {
method child (line 69462) | child() {
method filterEntries (line 69469) | filterEntries(parent, entries) {
method testGlobstar (line 69491) | testGlobstar(e, pattern, rest, absolute) {
method testRegExp (line 69537) | testRegExp(e, p, rest, absolute) {
method testString (line 69547) | testString(e, p, rest, absolute) {
class GlobUtil (line 69585) | class GlobUtil {
method constructor (line 69598) | constructor(patterns, path, opts) {
method #ignored (line 69624) | #ignored(path) {
method #childrenIgnored (line 69627) | #childrenIgnored(path) {
method pause (line 69631) | pause() {
method resume (line 69634) | resume() {
method onResume (line 69645) | onResume(fn) {
method matchCheck (line 69659) | async matchCheck(e, ifDir) {
method matchCheckTest (line 69681) | matchCheckTest(e, ifDir) {
method matchCheckSync (line 69694) | matchCheckSync(e, ifDir) {
method matchFinish (line 69714) | matchFinish(e, absolute) {
method match (line 69741) | async match(e, absolute, ifDir) {
method matchSync (line 69746) | matchSync(e, absolute, ifDir) {
method walkCB (line 69751) | walkCB(target, patterns, cb) {
method walkCB2 (line 69758) | walkCB2(target, patterns, processor, cb) {
method walkCB3 (line 69796) | walkCB3(target, entries, processor, cb) {
method walkCBSync (line 69815) | walkCBSync(target, patterns, cb) {
method walkCB2Sync (line 69822) | walkCB2Sync(target, patterns, processor, cb) {
method walkCB3Sync (line 69855) | walkCB3Sync(target, entries, processor, cb) {
class GlobWalker (line 69875) | class GlobWalker extends GlobUtil {
method constructor (line 69877) | constructor(patterns, path, opts) {
method matchEmit (line 69880) | matchEmit(e) {
method walk (line 69883) | async walk() {
method walkSync (line 69901) | walkSync() {
class GlobStream (line 69916) | class GlobStream extends GlobUtil {
method constructor (line 69918) | constructor(patterns, path, opts) {
method matchEmit (line 69927) | matchEmit(e) {
method stream (line 69932) | stream() {
method streamSync (line 69944) | streamSync() {
class AST (line 70038) | class AST {
method constructor (line 70053) | constructor(type, parent, options = {}) {
method hasMagic (line 70066) | get hasMagic() {
method toString (line 70081) | toString() {
method #fillNegs (line 70092) | #fillNegs() {
method push (line 70126) | push(...parts) {
method toJSON (line 70138) | toJSON() {
method isStart (line 70151) | isStart() {
method isEnd (line 70169) | isEnd() {
method copyIn (line 70184) | copyIn(part) {
method clone (line 70190) | clone(parent) {
method #parseAST (line 70197) | static #parseAST(str, ast, pos, opt, extDepth) {
method #canAdoptWithSpace (line 70326) | #canAdoptWithSpace(child) {
method #canAdopt (line 70329) | #canAdopt(child, map = adoptionMap) {
method #canAdoptType (line 70343) | #canAdoptType(c, map = adoptionAnyMap) {
method #adoptWithSpace (line 70346) | #adoptWithSpace(child, index) {
method #adopt (line 70353) | #adopt(child, index) {
method #canUsurpType (line 70362) | #canUsurpType(c) {
method #canUsurp (line 70366) | #canUsurp(child) {
method #usurp (line 70381) | #usurp(child) {
method #flatten (line 70398) | #flatten() {
method fromGlob (line 70432) | static fromGlob(pattern, options = {}) {
method toMMPattern (line 70439) | toMMPattern() {
method options (line 70464) | get options() {
method toRegExpSource (line 70536) | toRegExpSource(allowDot) {
method #partsToRegExp (line 70652) | #partsToRegExp(dot) {
method #parseGlob (line 70669) | static #parseGlob(glob, hasMagic, noEmpty = false) {
method depth (line 128955) | get depth() {
method constructor (line 128970) | constructor(type, parent, options = {}) {
method hasMagic (line 128983) | get hasMagic() {
method toString (line 128998) | toString() {
method #fillNegs (line 129009) | #fillNegs() {
method push (line 129043) | push(...parts) {
method toJSON (line 129056) | toJSON() {
method isStart (line 129071) | isStart() {
method isEnd (line 129089) | isEnd() {
method copyIn (line 129104) | copyIn(part) {
method clone (line 129110) | clone(parent) {
method #parseAST (line 129117) | static #parseAST(str, ast, pos, opt, extDepth) {
method #canAdoptWithSpace (line 129249) | #canAdoptWithSpace(child) {
method #canAdopt (line 129252) | #canAdopt(child, map = adoptionMap) {
method #canAdoptType (line 129266) | #canAdoptType(c, map = adoptionAnyMap) {
method #adoptWithSpace (line 129269) | #adoptWithSpace(child, index) {
method #adopt (line 129276) | #adopt(child, index) {
method #canUsurpType (line 129285) | #canUsurpType(c) {
method #canUsurp (line 129289) | #canUsurp(child) {
method #usurp (line 129304) | #usurp(child) {
method fromGlob (line 129322) | static fromGlob(pattern, options = {}) {
method toMMPattern (line 129329) | toMMPattern() {
method options (line 129354) | get options() {
method toRegExpSource (line 129426) | toRegExpSource(allowDot) {
method #flatten (line 129542) | #flatten() {
method #partsToRegExp (line 129578) | #partsToRegExp(dot) {
method #parseGlob (line 129595) | static #parseGlob(glob, hasMagic, noEmpty = false) {
method constructor (line 71030) | constructor(pattern, options = {}) {
method defaults (line 71033) | static defaults(options) {
method constructor (line 71039) | constructor(type, parent, options = {}) {
method fromGlob (line 71043) | static fromGlob(pattern, options = {}) {
class Minimatch (line 71109) | class Minimatch {
method constructor (line 35600) | constructor (pattern, options) {
method debug (line 35625) | debug () {}
method make (line 35627) | make () {
method parseNegate (line 35673) | parseNegate () {
method matchOne (line 35694) | matchOne (file, pattern, partial) {
method _matchGlobstar (line 35701) | _matchGlobstar (file, pattern, partial, fileIndex, patternIndex) {
method _matchGlobStarBodySections (line 35791) | _matchGlobStarBodySections (
method _matchOne (line 35839) | _matchOne (file, pattern, partial, fileIndex, patternIndex) {
method braceExpand (line 35895) | braceExpand () {
method parse (line 35899) | parse (pattern, isSub) {
method makeRe (line 36298) | makeRe () {
method match (line 36372) | match (f, partial = this.partial) {
method defaults (line 36426) | static defaults (def) {
method constructor (line 71128) | constructor(pattern, options = {}) {
method hasMagic (line 71159) | hasMagic() {
method debug (line 71171) | debug(..._) { }
method make (line 71172) | make() {
method preprocess (line 71245) | preprocess(globParts) {
method adjascentGlobstarOptimize (line 71273) | adjascentGlobstarOptimize(globParts) {
method levelOneOptimize (line 71289) | levelOneOptimize(globParts) {
method levelTwoFileOptimize (line 71308) | levelTwoFileOptimize(parts) {
method firstPhasePreProcess (line 71366) | firstPhasePreProcess(globParts) {
method secondPhasePreProcess (line 71450) | secondPhasePreProcess(globParts) {
method partsMatch (line 71463) | partsMatch(a, b, emptyGSMatch = false) {
method parseNegate (line 71512) | parseNegate() {
method matchOne (line 71531) | matchOne(file, pattern, partial = false) {
method #matchGlobstar (line 71576) | #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
method #matchGlobStarBodySections (line 71647) | #matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, p...
method #matchOne (line 71677) | #matchOne(file, pattern, partial, fileIndex, patternIndex) {
method braceExpand (line 71719) | braceExpand() {
method parse (line 71722) | parse(pattern) {
method makeRe (line 71768) | makeRe() {
method slashSplit (line 71853) | slashSplit(p) {
method match (line 71869) | match(f, partial = this.partial) {
method defaults (line 71924) | static defaults(def) {
method constructor (line 129875) | constructor(pattern, options = {}) {
method hasMagic (line 129908) | hasMagic() {
method debug (line 129920) | debug(..._) { }
method make (line 129921) | make() {
method preprocess (line 129997) | preprocess(globParts) {
method adjascentGlobstarOptimize (line 130025) | adjascentGlobstarOptimize(globParts) {
method levelOneOptimize (line 130041) | levelOneOptimize(globParts) {
method levelTwoFileOptimize (line 130060) | levelTwoFileOptimize(parts) {
method firstPhasePreProcess (line 130118) | firstPhasePreProcess(globParts) {
method secondPhasePreProcess (line 130202) | secondPhasePreProcess(globParts) {
method partsMatch (line 130215) | partsMatch(a, b, emptyGSMatch = false) {
method parseNegate (line 130264) | parseNegate() {
method matchOne (line 130283) | matchOne(file, pattern, partial = false) {
method #matchGlobstar (line 130333) | #matchGlobstar(file, pattern, partial, fileIndex, patternIndex) {
method #matchGlobStarBodySections (line 130437) | #matchGlobStarBodySections(file,
method #matchOne (line 130487) | #matchOne(file, pattern, partial, fileIndex, patternIndex) {
method braceExpand (line 130558) | braceExpand() {
method parse (line 130561) | parse(pattern) {
method makeRe (line 130605) | makeRe() {
method slashSplit (line 130701) | slashSplit(p) {
method match (line 130717) | match(f, partial = this.partial) {
method defaults (line 130772) | static defaults(def) {
method addEventListener (line 72008) | addEventListener(_, fn) {
method constructor (line 72014) | constructor() {
method abort (line 72018) | abort(reason) {
class ZeroArray (line 72071) | class ZeroArray extends Array {
method constructor (line 72072) | constructor(size) {
class Stack (line 72077) | class Stack {
method create (line 72082) | static create(max) {
method constructor (line 72091) | constructor(max, HeapCls) {
method push (line 72100) | push(n) {
method pop (line 72103) | pop() {
class LRUCache (line 72122) | class LRUCache {
method unsafeExposeInternals (line 72217) | static unsafeExposeInternals(c) {
method max (line 72248) | get max() {
method maxSize (line 72254) | get maxSize() {
method calculatedSize (line 72260) | get calculatedSize() {
method size (line 72266) | get size() {
method fetchMethod (line 72272) | get fetchMethod() {
method memoMethod (line 72275) | get memoMethod() {
method dispose (line 72281) | get dispose() {
method disposeAfter (line 72287) | get disposeAfter() {
method constructor (line 72290) | constructor(options) {
method getRemainingTTL (line 72397) | getRemainingTTL(key) {
method #initializeTTLTracking (line 72400) | #initializeTTLTracking() {
method #initializeSizeTracking (line 72481) | #initializeSizeTracking() {
method #indexes (line 72536) | *#indexes({ allowStale = this.allowStale } = {}) {
method #rindexes (line 72554) | *#rindexes({ allowStale = this.allowStale } = {}) {
method #isValidIndex (line 72572) | #isValidIndex(index) {
method entries (line 72580) | *entries() {
method rentries (line 72595) | *rentries() {
method keys (line 72608) | *keys() {
method rkeys (line 72623) | *rkeys() {
method values (line 72636) | *values() {
method rvalues (line 72651) | *rvalues() {
method find (line 72677) | find(fn, getOptions = {}) {
method forEach (line 72701) | forEach(fn, thisp = this) {
method rforEach (line 72716) | rforEach(fn, thisp = this) {
method purgeStale (line 72731) | purgeStale() {
method info (line 72753) | info(key) {
method dump (line 72791) | dump() {
method load (line 72825) | load(arr) {
method set (line 72871) | set(k, v, setOptions = {}) {
method pop (line 72976) | pop() {
method #evict (line 73001) | #evict(free) {
method has (line 73050) | has(k, hasOptions = {}) {
method peek (line 73086) | peek(k, peekOptions = {}) {
method #backgroundFetch (line 73097) | #backgroundFetch(k, index, options, context) {
method #isBackgroundFetch (line 73224) | #isBackgroundFetch(p) {
method fetch (line 73233) | async fetch(k, fetchOptions = {}) {
method forceFetch (line 73313) | async forceFetch(k, fetchOptions = {}) {
method memo (line 73319) | memo(k, memoOptions = {}) {
method get (line 73341) | get(k, getOptions = {}) {
method #connect (line 73392) | #connect(p, n) {
method #moveToTail (line 73396) | #moveToTail(index) {
method delete (line 73421) | delete(k) {
method #delete (line 73424) | #delete(k, reason) {
method clear (line 73479) | clear() {
method #clear (line 73482) | #clear(reason) {
method [Symbol.iterator] (line 72664) | [Symbol.iterator]() {
class Pipe (line 73623) | class Pipe {
method constructor (line 73628) | constructor(src, dest, opts) {
method unpipe (line 73635) | unpipe() {
method proxyErrors (line 73640) | proxyErrors(_er) { }
method end (line 73642) | end() {
class PipeProxyErrors (line 73654) | class PipeProxyErrors extends Pipe {
method unpipe (line 73655) | unpipe() {
method constructor (line 73659) | constructor(src, dest, opts) {
class Minipass (line 73678) | class Minipass extends node_events_1.EventEmitter {
method constructor (line 73712) | constructor(...args) {
method bufferLength (line 73763) | get bufferLength() {
method encoding (line 73769) | get encoding() {
method encoding (line 73775) | set encoding(_enc) {
method setEncoding (line 73781) | setEncoding(_enc) {
method objectMode (line 73787) | get objectMode() {
method objectMode (line 73793) | set objectMode(_om) {
method ['async'] (line 73799) | get ['async']() {
method ['async'] (line 73809) | set ['async'](a) {
method [ABORT] (line 73813) | [ABORT]() {
method aborted (line 73821) | get aborted() {
method aborted (line 73828) | set aborted(_) { }
method write (line 73829) | write(chunk, encoding, cb) {
method read (line 73927) | read(n) {
method [READ] (line 73952) | [READ](n, chunk) {
method end (line 73975) | end(chunk, encoding, cb) {
method [RESUME] (line 73999) | [RESUME]() {
method resume (line 74024) | resume() {
method pause (line 74030) | pause() {
method destroyed (line 74038) | get destroyed() {
method flowing (line 74045) | get flowing() {
method paused (line 74051) | get paused() {
method [BUFFERPUSH] (line 74054) | [BUFFERPUSH](chunk) {
method [BUFFERSHIFT] (line 74061) | [BUFFERSHIFT]() {
method [FLUSH] (line 74068) | [FLUSH](noDrain = false) {
method [FLUSHCHUNK] (line 74074) | [FLUSHCHUNK](chunk) {
method pipe (line 74083) | pipe(dest, opts) {
method unpipe (line 74120) | unpipe(dest) {
method addListener (line 74137) | addListener(ev, handler) {
method on (line 74157) | on(ev, handler) {
method removeListener (line 74185) | removeListener(ev, handler) {
method off (line 74196) | off(ev, handler) {
method removeAllListeners (line 74219) | removeAllListeners(ev) {
method emittedEnd (line 74232) | get emittedEnd() {
method [MAYBE_EMIT_END] (line 74235) | [MAYBE_EMIT_END]() {
method emit (line 74274) | emit(ev, ...args) {
method [EMITDATA] (line 74326) | [EMITDATA](data) {
method [EMITEND] (line 74335) | [EMITEND]() {
method [EMITEND2] (line 74344) | [EMITEND2]() {
method collect (line 74366) | async collect() {
method concat (line 74389) | async concat() {
method promise (line 74401) | async promise() {
method destroy (line 74522) | destroy(er) {
method isStream (line 74552) | static get isStream() {
method [Symbol.asyncIterator] (line 74413) | [Symbol.asyncIterator]() {
method [Symbol.iterator] (line 74479) | [Symbol.iterator]() {
class ResolveCache (line 74687) | class ResolveCache extends lru_cache_1.LRUCache {
method constructor (line 74688) | constructor() {
class ChildrenCache (line 74708) | class ChildrenCache extends lru_cache_1.LRUCache {
method constructor (line 74709) | constructor(maxSize = 16 * 1024) {
class PathBase (line 74732) | class PathBase {
method dev (line 74775) | get dev() {
method mode (line 74779) | get mode() {
method nlink (line 74783) | get nlink() {
method uid (line 74787) | get uid() {
method gid (line 74791) | get gid() {
method rdev (line 74795) | get rdev() {
method blksize (line 74799) | get blksize() {
method ino (line 74803) | get ino() {
method size (line 74807) | get size() {
method blocks (line 74811) | get blocks() {
method atimeMs (line 74815) | get atimeMs() {
method mtimeMs (line 74819) | get mtimeMs() {
method ctimeMs (line 74823) | get ctimeMs() {
method birthtimeMs
Condensed preview — 16 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (4,645K chars).
[
{
"path": ".editorconfig",
"chars": 163,
"preview": "root = true\n\n[*]\ncharset = utf-8\ninsert_final_newline = true\nend_of_line = crlf\nindent_style = space\nindent_size = 4\n\n[*"
},
{
"path": ".github/FUNDING.yml",
"chars": 737,
"preview": "# These are supported funding model platforms\n\ngithub: [GeekyEggo]\npatreon: # Replace with a single Patreon username\nope"
},
{
"path": ".github/workflows/ci.yml",
"chars": 826,
"preview": "name: CI\n\non:\n push:\n branches:\n - main\n\ndefaults:\n run:\n shell: bash\n\njobs:\n test:\n runs-on: ubuntu-la"
},
{
"path": ".github/workflows/example.yml",
"chars": 1022,
"preview": "name: Example\r\n# an example workflow that also monitors success of the preview api\r\n\r\non:\r\n schedule:\r\n - cron: \"0 *"
},
{
"path": ".gitignore",
"chars": 38,
"preview": "# Dependency directories\nnode_modules\n"
},
{
"path": "CHANGELOG.md",
"chars": 1021,
"preview": "<!--\n\n## {version}\n\n🚨 Break\n✨ Add\n🐞 Fix\n♻️ Update\n\n-->\n\n# Change Log\n\n## v5.1\n\n- Mark deprecated token parameter as op"
},
{
"path": "LICENSE",
"chars": 1067,
"preview": "MIT License\n\nCopyright (c) Richard Herman\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\n"
},
{
"path": "README.md",
"chars": 1931,
"preview": "\n. The extraction includes 16 files (4.3 MB), approximately 1.1M tokens, and a symbol index with 4617 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.