David Thomas commited on
Commit
beee387
·
1 Parent(s): 77731d1

deleted unnecessary files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. app.py +1 -1
  2. tests/audio.mp3 +0 -0
  3. tests/backend.py +0 -59
  4. tests/chat.js +0 -21
  5. tests/hello-chatgpt.mp3 +0 -0
  6. tests/node_modules/.bin/mime +0 -12
  7. tests/node_modules/.bin/mime.cmd +0 -17
  8. tests/node_modules/.bin/mime.ps1 +0 -28
  9. tests/node_modules/.bin/openai +0 -12
  10. tests/node_modules/.bin/openai.cmd +0 -17
  11. tests/node_modules/.bin/openai.ps1 +0 -28
  12. tests/node_modules/.bin/proto-loader-gen-types +0 -12
  13. tests/node_modules/.bin/proto-loader-gen-types.cmd +0 -17
  14. tests/node_modules/.bin/proto-loader-gen-types.ps1 +0 -28
  15. tests/node_modules/.package-lock.json +0 -1385
  16. tests/node_modules/@grpc/grpc-js/LICENSE +0 -201
  17. tests/node_modules/@grpc/grpc-js/README.md +0 -79
  18. tests/node_modules/@grpc/grpc-js/build/src/admin.d.ts +0 -11
  19. tests/node_modules/@grpc/grpc-js/build/src/admin.js +0 -31
  20. tests/node_modules/@grpc/grpc-js/build/src/admin.js.map +0 -1
  21. tests/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts +0 -90
  22. tests/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +0 -174
  23. tests/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map +0 -1
  24. tests/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts +0 -56
  25. tests/node_modules/@grpc/grpc-js/build/src/call-credentials.js +0 -153
  26. tests/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map +0 -1
  27. tests/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts +0 -86
  28. tests/node_modules/@grpc/grpc-js/build/src/call-interface.js +0 -84
  29. tests/node_modules/@grpc/grpc-js/build/src/call-interface.js.map +0 -1
  30. tests/node_modules/@grpc/grpc-js/build/src/call-number.d.ts +0 -1
  31. tests/node_modules/@grpc/grpc-js/build/src/call-number.js +0 -25
  32. tests/node_modules/@grpc/grpc-js/build/src/call-number.js.map +0 -1
  33. tests/node_modules/@grpc/grpc-js/build/src/call.d.ts +0 -83
  34. tests/node_modules/@grpc/grpc-js/build/src/call.js +0 -136
  35. tests/node_modules/@grpc/grpc-js/build/src/call.js.map +0 -1
  36. tests/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts +0 -83
  37. tests/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +0 -177
  38. tests/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map +0 -1
  39. tests/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts +0 -72
  40. tests/node_modules/@grpc/grpc-js/build/src/channel-options.js +0 -69
  41. tests/node_modules/@grpc/grpc-js/build/src/channel-options.js.map +0 -1
  42. tests/node_modules/@grpc/grpc-js/build/src/channel.d.ts +0 -76
  43. tests/node_modules/@grpc/grpc-js/build/src/channel.js +0 -68
  44. tests/node_modules/@grpc/grpc-js/build/src/channel.js.map +0 -1
  45. tests/node_modules/@grpc/grpc-js/build/src/channelz.d.ts +0 -109
  46. tests/node_modules/@grpc/grpc-js/build/src/channelz.js +0 -637
  47. tests/node_modules/@grpc/grpc-js/build/src/channelz.js.map +0 -1
  48. tests/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts +0 -120
  49. tests/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +0 -428
  50. tests/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map +0 -1
app.py CHANGED
@@ -1568,7 +1568,7 @@ with gr.Blocks(title='RVC First Rule v1', theme=theme) as app:
1568
  with gr.Tabs():
1569
  with gr.TabItem("Inference"):
1570
  gr.HTML("<h1> First Rule -- Humanity First </h1>")
1571
- gr.HTML("""<h3> A few notes on the flow of the vocal cloning features:
1572
  First, an audio clip needs to be either recorded or uploaded. These should
1573
  be vocals only, preferable under 30 seconds in length. Longer clips
1574
  can be cloned, but will take longer. Second, a model needs to be chosen --
 
1568
  with gr.Tabs():
1569
  with gr.TabItem("Inference"):
1570
  gr.HTML("<h1> First Rule -- Humanity First </h1>")
1571
+ gr.HTML("""<h3> A few notes on the flow of the vocal cloning features:
1572
  First, an audio clip needs to be either recorded or uploaded. These should
1573
  be vocals only, preferable under 30 seconds in length. Longer clips
1574
  can be cloned, but will take longer. Second, a model needs to be chosen --
tests/audio.mp3 DELETED
Binary file (5.33 kB)
 
tests/backend.py DELETED
@@ -1,59 +0,0 @@
1
- """ Backend API for chatbot """
2
- import os
3
- import openai
4
- from fastapi import FastAPI
5
- from fastapi.responses import StreamingResponse
6
- import httpx
7
- from dotenv import load_dotenv
8
-
9
- # Load environment variables
10
- load_dotenv()
11
-
12
- openai.api_key = os.getenv("OPENAI_KEY2")
13
- openai.organization = os.getenv("OPENAI_ORG2")
14
-
15
- playht_api_key = os.getenv("PLAY_HT_KEY")
16
- playht_user_id = os.getenv("PLAY_HT_ID")
17
-
18
- # Initialize FastAPI app
19
- app = FastAPI()
20
-
21
-
22
- # Generate audio stream
23
- async def generate_audio_stream(completion):
24
- """ Generate audio stream from Play.ht API """
25
- async with httpx.AsyncClient(timeout=400) as client:
26
- payload = {
27
- "quality": "draft",
28
- "output_format": "mp3",
29
- "speed": 1,
30
- "sample_rate": 24000,
31
- "text": f"{completion}",
32
- "voice": "mark"
33
- }
34
- headers = {
35
- "Accept": "audio/mpeg",
36
- "Content-Type": "application/json",
37
- "Authorization": f"Bearer {playht_api_key}",
38
- "X-USER-ID": f"{playht_user_id}"
39
- }
40
- response = await client.post("https://play.ht/api/v2/tts/stream", json=payload, headers=headers)
41
- for block in response.iter_bytes(1024):
42
- yield block
43
-
44
- # API endpoint to handle chat and audio streaming
45
- @app.get("/chat", response_class=StreamingResponse)
46
- async def chat(query: str):
47
- FULL_RESPONSE = ""
48
- for completion in openai.ChatCompletion.create(
49
- model="gpt-3.5-turbo-0613",
50
- messages=[
51
- {"role": "system", "content": "You are a helpful assistant."},
52
- {"role": "user", "content": query}
53
- ],
54
- stream=True,
55
- max_tokens=150
56
- ):
57
- FULL_RESPONSE += completion.choices[0].delta.get("content", "")
58
-
59
- return StreamingResponse(generate_audio_stream(FULL_RESPONSE), media_type="audio/mpeg")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/chat.js DELETED
@@ -1,21 +0,0 @@
1
- async function sendMessage() {
2
- const userInput = document.getElementById('userInput').value;
3
- const chatBox = document.getElementById('chatBox');
4
-
5
- // Append user's message to chatBox
6
- chatBox.innerHTML += `<div>User: ${userInput}</div>`;
7
-
8
- // Send the user's message to the back-end and get LLM's response
9
- // Replace this with actual API call logic
10
- const llmResponse = await fetch('http://localhost:3000/chat', {
11
- method: 'POST',
12
- body: JSON.stringify({ message: userInput }),
13
- headers: { 'Content-Type': 'application/json' },
14
- // disable cors
15
- mode: 'no-cors',
16
- }).then(response => response.json());
17
-
18
- // Append LLM's response to chatBox
19
- chatBox.innerHTML += `<div>LLM: ${llmResponse.message}</div>`;
20
- }
21
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/hello-chatgpt.mp3 DELETED
File without changes
tests/node_modules/.bin/mime DELETED
@@ -1,12 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -x "$basedir/node" ]; then
9
- exec "$basedir/node" "$basedir/../mime/cli.js" "$@"
10
- else
11
- exec node "$basedir/../mime/cli.js" "$@"
12
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/mime.cmd DELETED
@@ -1,17 +0,0 @@
1
- @ECHO off
2
- GOTO start
3
- :find_dp0
4
- SET dp0=%~dp0
5
- EXIT /b
6
- :start
7
- SETLOCAL
8
- CALL :find_dp0
9
-
10
- IF EXIST "%dp0%\node.exe" (
11
- SET "_prog=%dp0%\node.exe"
12
- ) ELSE (
13
- SET "_prog=node"
14
- SET PATHEXT=%PATHEXT:;.JS;=;%
15
- )
16
-
17
- endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/mime.ps1 DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
-
4
- $exe=""
5
- if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
- # Fix case when both the Windows and Linux builds of Node
7
- # are installed in the same directory
8
- $exe=".exe"
9
- }
10
- $ret=0
11
- if (Test-Path "$basedir/node$exe") {
12
- # Support pipeline input
13
- if ($MyInvocation.ExpectingInput) {
14
- $input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
15
- } else {
16
- & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
17
- }
18
- $ret=$LASTEXITCODE
19
- } else {
20
- # Support pipeline input
21
- if ($MyInvocation.ExpectingInput) {
22
- $input | & "node$exe" "$basedir/../mime/cli.js" $args
23
- } else {
24
- & "node$exe" "$basedir/../mime/cli.js" $args
25
- }
26
- $ret=$LASTEXITCODE
27
- }
28
- exit $ret
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/openai DELETED
@@ -1,12 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -x "$basedir/node" ]; then
9
- exec "$basedir/node" "$basedir/../openai/bin/cli" "$@"
10
- else
11
- exec node "$basedir/../openai/bin/cli" "$@"
12
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/openai.cmd DELETED
@@ -1,17 +0,0 @@
1
- @ECHO off
2
- GOTO start
3
- :find_dp0
4
- SET dp0=%~dp0
5
- EXIT /b
6
- :start
7
- SETLOCAL
8
- CALL :find_dp0
9
-
10
- IF EXIST "%dp0%\node.exe" (
11
- SET "_prog=%dp0%\node.exe"
12
- ) ELSE (
13
- SET "_prog=node"
14
- SET PATHEXT=%PATHEXT:;.JS;=;%
15
- )
16
-
17
- endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\openai\bin\cli" %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/openai.ps1 DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
-
4
- $exe=""
5
- if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
- # Fix case when both the Windows and Linux builds of Node
7
- # are installed in the same directory
8
- $exe=".exe"
9
- }
10
- $ret=0
11
- if (Test-Path "$basedir/node$exe") {
12
- # Support pipeline input
13
- if ($MyInvocation.ExpectingInput) {
14
- $input | & "$basedir/node$exe" "$basedir/../openai/bin/cli" $args
15
- } else {
16
- & "$basedir/node$exe" "$basedir/../openai/bin/cli" $args
17
- }
18
- $ret=$LASTEXITCODE
19
- } else {
20
- # Support pipeline input
21
- if ($MyInvocation.ExpectingInput) {
22
- $input | & "node$exe" "$basedir/../openai/bin/cli" $args
23
- } else {
24
- & "node$exe" "$basedir/../openai/bin/cli" $args
25
- }
26
- $ret=$LASTEXITCODE
27
- }
28
- exit $ret
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/proto-loader-gen-types DELETED
@@ -1,12 +0,0 @@
1
- #!/bin/sh
2
- basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
-
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
6
- esac
7
-
8
- if [ -x "$basedir/node" ]; then
9
- exec "$basedir/node" "$basedir/../@grpc/proto-loader/build/bin/proto-loader-gen-types.js" "$@"
10
- else
11
- exec node "$basedir/../@grpc/proto-loader/build/bin/proto-loader-gen-types.js" "$@"
12
- fi
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/proto-loader-gen-types.cmd DELETED
@@ -1,17 +0,0 @@
1
- @ECHO off
2
- GOTO start
3
- :find_dp0
4
- SET dp0=%~dp0
5
- EXIT /b
6
- :start
7
- SETLOCAL
8
- CALL :find_dp0
9
-
10
- IF EXIST "%dp0%\node.exe" (
11
- SET "_prog=%dp0%\node.exe"
12
- ) ELSE (
13
- SET "_prog=node"
14
- SET PATHEXT=%PATHEXT:;.JS;=;%
15
- )
16
-
17
- endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\@grpc\proto-loader\build\bin\proto-loader-gen-types.js" %*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.bin/proto-loader-gen-types.ps1 DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env pwsh
2
- $basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3
-
4
- $exe=""
5
- if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6
- # Fix case when both the Windows and Linux builds of Node
7
- # are installed in the same directory
8
- $exe=".exe"
9
- }
10
- $ret=0
11
- if (Test-Path "$basedir/node$exe") {
12
- # Support pipeline input
13
- if ($MyInvocation.ExpectingInput) {
14
- $input | & "$basedir/node$exe" "$basedir/../@grpc/proto-loader/build/bin/proto-loader-gen-types.js" $args
15
- } else {
16
- & "$basedir/node$exe" "$basedir/../@grpc/proto-loader/build/bin/proto-loader-gen-types.js" $args
17
- }
18
- $ret=$LASTEXITCODE
19
- } else {
20
- # Support pipeline input
21
- if ($MyInvocation.ExpectingInput) {
22
- $input | & "node$exe" "$basedir/../@grpc/proto-loader/build/bin/proto-loader-gen-types.js" $args
23
- } else {
24
- & "node$exe" "$basedir/../@grpc/proto-loader/build/bin/proto-loader-gen-types.js" $args
25
- }
26
- $ret=$LASTEXITCODE
27
- }
28
- exit $ret
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/.package-lock.json DELETED
@@ -1,1385 +0,0 @@
1
- {
2
- "name": "tests",
3
- "lockfileVersion": 2,
4
- "requires": true,
5
- "packages": {
6
- "node_modules/@grpc/grpc-js": {
7
- "version": "1.9.7",
8
- "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.7.tgz",
9
- "integrity": "sha512-yMaA/cIsRhGzW3ymCNpdlPcInXcovztlgu/rirThj2b87u3RzWUszliOqZ/pldy7yhmJPS8uwog+kZSTa4A0PQ==",
10
- "dependencies": {
11
- "@grpc/proto-loader": "^0.7.8",
12
- "@types/node": ">=12.12.47"
13
- },
14
- "engines": {
15
- "node": "^8.13.0 || >=10.10.0"
16
- }
17
- },
18
- "node_modules/@grpc/proto-loader": {
19
- "version": "0.7.10",
20
- "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.10.tgz",
21
- "integrity": "sha512-CAqDfoaQ8ykFd9zqBDn4k6iWT9loLAlc2ETmDFS9JCD70gDcnA4L3AFEo2iV7KyAtAAHFW9ftq1Fz+Vsgq80RQ==",
22
- "dependencies": {
23
- "lodash.camelcase": "^4.3.0",
24
- "long": "^5.0.0",
25
- "protobufjs": "^7.2.4",
26
- "yargs": "^17.7.2"
27
- },
28
- "bin": {
29
- "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"
30
- },
31
- "engines": {
32
- "node": ">=6"
33
- }
34
- },
35
- "node_modules/@protobufjs/aspromise": {
36
- "version": "1.1.2",
37
- "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
38
- "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="
39
- },
40
- "node_modules/@protobufjs/base64": {
41
- "version": "1.1.2",
42
- "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",
43
- "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="
44
- },
45
- "node_modules/@protobufjs/codegen": {
46
- "version": "2.0.4",
47
- "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",
48
- "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg=="
49
- },
50
- "node_modules/@protobufjs/eventemitter": {
51
- "version": "1.1.0",
52
- "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
53
- "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q=="
54
- },
55
- "node_modules/@protobufjs/fetch": {
56
- "version": "1.1.0",
57
- "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",
58
- "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",
59
- "dependencies": {
60
- "@protobufjs/aspromise": "^1.1.1",
61
- "@protobufjs/inquire": "^1.1.0"
62
- }
63
- },
64
- "node_modules/@protobufjs/float": {
65
- "version": "1.0.2",
66
- "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",
67
- "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ=="
68
- },
69
- "node_modules/@protobufjs/inquire": {
70
- "version": "1.1.0",
71
- "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",
72
- "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q=="
73
- },
74
- "node_modules/@protobufjs/path": {
75
- "version": "1.1.2",
76
- "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
77
- "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA=="
78
- },
79
- "node_modules/@protobufjs/pool": {
80
- "version": "1.1.0",
81
- "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",
82
- "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw=="
83
- },
84
- "node_modules/@protobufjs/utf8": {
85
- "version": "1.1.0",
86
- "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",
87
- "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="
88
- },
89
- "node_modules/@tokenizer/token": {
90
- "version": "0.3.0",
91
- "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz",
92
- "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A=="
93
- },
94
- "node_modules/@types/node": {
95
- "version": "20.8.7",
96
- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.7.tgz",
97
- "integrity": "sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==",
98
- "dependencies": {
99
- "undici-types": "~5.25.1"
100
- }
101
- },
102
- "node_modules/@types/node-fetch": {
103
- "version": "2.6.7",
104
- "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.7.tgz",
105
- "integrity": "sha512-lX17GZVpJ/fuCjguZ5b3TjEbSENxmEk1B2z02yoXSK9WMEWRivhdSY73wWMn6bpcCDAOh6qAdktpKHIlkDk2lg==",
106
- "dependencies": {
107
- "@types/node": "*",
108
- "form-data": "^4.0.0"
109
- }
110
- },
111
- "node_modules/abort-controller": {
112
- "version": "3.0.0",
113
- "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",
114
- "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",
115
- "dependencies": {
116
- "event-target-shim": "^5.0.0"
117
- },
118
- "engines": {
119
- "node": ">=6.5"
120
- }
121
- },
122
- "node_modules/accepts": {
123
- "version": "1.3.8",
124
- "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
125
- "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
126
- "dependencies": {
127
- "mime-types": "~2.1.34",
128
- "negotiator": "0.6.3"
129
- },
130
- "engines": {
131
- "node": ">= 0.6"
132
- }
133
- },
134
- "node_modules/agentkeepalive": {
135
- "version": "4.5.0",
136
- "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz",
137
- "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==",
138
- "dependencies": {
139
- "humanize-ms": "^1.2.1"
140
- },
141
- "engines": {
142
- "node": ">= 8.0.0"
143
- }
144
- },
145
- "node_modules/ansi-regex": {
146
- "version": "5.0.1",
147
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
148
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
149
- "engines": {
150
- "node": ">=8"
151
- }
152
- },
153
- "node_modules/ansi-styles": {
154
- "version": "4.3.0",
155
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
156
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
157
- "dependencies": {
158
- "color-convert": "^2.0.1"
159
- },
160
- "engines": {
161
- "node": ">=8"
162
- },
163
- "funding": {
164
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
165
- }
166
- },
167
- "node_modules/array-flatten": {
168
- "version": "1.1.1",
169
- "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
170
- "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="
171
- },
172
- "node_modules/asynckit": {
173
- "version": "0.4.0",
174
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
175
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
176
- },
177
- "node_modules/axios": {
178
- "version": "1.5.1",
179
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz",
180
- "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==",
181
- "dependencies": {
182
- "follow-redirects": "^1.15.0",
183
- "form-data": "^4.0.0",
184
- "proxy-from-env": "^1.1.0"
185
- }
186
- },
187
- "node_modules/base-64": {
188
- "version": "0.1.0",
189
- "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz",
190
- "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA=="
191
- },
192
- "node_modules/body-parser": {
193
- "version": "1.20.1",
194
- "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
195
- "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==",
196
- "dependencies": {
197
- "bytes": "3.1.2",
198
- "content-type": "~1.0.4",
199
- "debug": "2.6.9",
200
- "depd": "2.0.0",
201
- "destroy": "1.2.0",
202
- "http-errors": "2.0.0",
203
- "iconv-lite": "0.4.24",
204
- "on-finished": "2.4.1",
205
- "qs": "6.11.0",
206
- "raw-body": "2.5.1",
207
- "type-is": "~1.6.18",
208
- "unpipe": "1.0.0"
209
- },
210
- "engines": {
211
- "node": ">= 0.8",
212
- "npm": "1.2.8000 || >= 1.4.16"
213
- }
214
- },
215
- "node_modules/bytes": {
216
- "version": "3.1.2",
217
- "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
218
- "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
219
- "engines": {
220
- "node": ">= 0.8"
221
- }
222
- },
223
- "node_modules/call-bind": {
224
- "version": "1.0.5",
225
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz",
226
- "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==",
227
- "dependencies": {
228
- "function-bind": "^1.1.2",
229
- "get-intrinsic": "^1.2.1",
230
- "set-function-length": "^1.1.1"
231
- },
232
- "funding": {
233
- "url": "https://github.com/sponsors/ljharb"
234
- }
235
- },
236
- "node_modules/charenc": {
237
- "version": "0.0.2",
238
- "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
239
- "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==",
240
- "engines": {
241
- "node": "*"
242
- }
243
- },
244
- "node_modules/cliui": {
245
- "version": "8.0.1",
246
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
247
- "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
248
- "dependencies": {
249
- "string-width": "^4.2.0",
250
- "strip-ansi": "^6.0.1",
251
- "wrap-ansi": "^7.0.0"
252
- },
253
- "engines": {
254
- "node": ">=12"
255
- }
256
- },
257
- "node_modules/color-convert": {
258
- "version": "2.0.1",
259
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
260
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
261
- "dependencies": {
262
- "color-name": "~1.1.4"
263
- },
264
- "engines": {
265
- "node": ">=7.0.0"
266
- }
267
- },
268
- "node_modules/color-name": {
269
- "version": "1.1.4",
270
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
271
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
272
- },
273
- "node_modules/combined-stream": {
274
- "version": "1.0.8",
275
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
276
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
277
- "dependencies": {
278
- "delayed-stream": "~1.0.0"
279
- },
280
- "engines": {
281
- "node": ">= 0.8"
282
- }
283
- },
284
- "node_modules/content-disposition": {
285
- "version": "0.5.4",
286
- "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
287
- "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
288
- "dependencies": {
289
- "safe-buffer": "5.2.1"
290
- },
291
- "engines": {
292
- "node": ">= 0.6"
293
- }
294
- },
295
- "node_modules/content-type": {
296
- "version": "1.0.5",
297
- "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
298
- "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
299
- "engines": {
300
- "node": ">= 0.6"
301
- }
302
- },
303
- "node_modules/cookie": {
304
- "version": "0.5.0",
305
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",
306
- "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==",
307
- "engines": {
308
- "node": ">= 0.6"
309
- }
310
- },
311
- "node_modules/cookie-signature": {
312
- "version": "1.0.6",
313
- "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
314
- "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="
315
- },
316
- "node_modules/cors": {
317
- "version": "2.8.5",
318
- "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
319
- "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
320
- "dependencies": {
321
- "object-assign": "^4",
322
- "vary": "^1"
323
- },
324
- "engines": {
325
- "node": ">= 0.10"
326
- }
327
- },
328
- "node_modules/cross-fetch": {
329
- "version": "4.0.0",
330
- "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz",
331
- "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==",
332
- "dependencies": {
333
- "node-fetch": "^2.6.12"
334
- }
335
- },
336
- "node_modules/crypt": {
337
- "version": "0.0.2",
338
- "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
339
- "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==",
340
- "engines": {
341
- "node": "*"
342
- }
343
- },
344
- "node_modules/debug": {
345
- "version": "2.6.9",
346
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
347
- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
348
- "dependencies": {
349
- "ms": "2.0.0"
350
- }
351
- },
352
- "node_modules/debug/node_modules/ms": {
353
- "version": "2.0.0",
354
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
355
- "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
356
- },
357
- "node_modules/define-data-property": {
358
- "version": "1.1.1",
359
- "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz",
360
- "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==",
361
- "dependencies": {
362
- "get-intrinsic": "^1.2.1",
363
- "gopd": "^1.0.1",
364
- "has-property-descriptors": "^1.0.0"
365
- },
366
- "engines": {
367
- "node": ">= 0.4"
368
- }
369
- },
370
- "node_modules/delayed-stream": {
371
- "version": "1.0.0",
372
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
373
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
374
- "engines": {
375
- "node": ">=0.4.0"
376
- }
377
- },
378
- "node_modules/depd": {
379
- "version": "2.0.0",
380
- "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
381
- "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
382
- "engines": {
383
- "node": ">= 0.8"
384
- }
385
- },
386
- "node_modules/destroy": {
387
- "version": "1.2.0",
388
- "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
389
- "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
390
- "engines": {
391
- "node": ">= 0.8",
392
- "npm": "1.2.8000 || >= 1.4.16"
393
- }
394
- },
395
- "node_modules/digest-fetch": {
396
- "version": "1.3.0",
397
- "resolved": "https://registry.npmjs.org/digest-fetch/-/digest-fetch-1.3.0.tgz",
398
- "integrity": "sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==",
399
- "dependencies": {
400
- "base-64": "^0.1.0",
401
- "md5": "^2.3.0"
402
- }
403
- },
404
- "node_modules/ee-first": {
405
- "version": "1.1.1",
406
- "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
407
- "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
408
- },
409
- "node_modules/emoji-regex": {
410
- "version": "8.0.0",
411
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
412
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="
413
- },
414
- "node_modules/encodeurl": {
415
- "version": "1.0.2",
416
- "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
417
- "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
418
- "engines": {
419
- "node": ">= 0.8"
420
- }
421
- },
422
- "node_modules/escalade": {
423
- "version": "3.1.1",
424
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
425
- "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
426
- "engines": {
427
- "node": ">=6"
428
- }
429
- },
430
- "node_modules/escape-html": {
431
- "version": "1.0.3",
432
- "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
433
- "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="
434
- },
435
- "node_modules/etag": {
436
- "version": "1.8.1",
437
- "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
438
- "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
439
- "engines": {
440
- "node": ">= 0.6"
441
- }
442
- },
443
- "node_modules/event-target-shim": {
444
- "version": "5.0.1",
445
- "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
446
- "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",
447
- "engines": {
448
- "node": ">=6"
449
- }
450
- },
451
- "node_modules/express": {
452
- "version": "4.18.2",
453
- "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
454
- "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==",
455
- "dependencies": {
456
- "accepts": "~1.3.8",
457
- "array-flatten": "1.1.1",
458
- "body-parser": "1.20.1",
459
- "content-disposition": "0.5.4",
460
- "content-type": "~1.0.4",
461
- "cookie": "0.5.0",
462
- "cookie-signature": "1.0.6",
463
- "debug": "2.6.9",
464
- "depd": "2.0.0",
465
- "encodeurl": "~1.0.2",
466
- "escape-html": "~1.0.3",
467
- "etag": "~1.8.1",
468
- "finalhandler": "1.2.0",
469
- "fresh": "0.5.2",
470
- "http-errors": "2.0.0",
471
- "merge-descriptors": "1.0.1",
472
- "methods": "~1.1.2",
473
- "on-finished": "2.4.1",
474
- "parseurl": "~1.3.3",
475
- "path-to-regexp": "0.1.7",
476
- "proxy-addr": "~2.0.7",
477
- "qs": "6.11.0",
478
- "range-parser": "~1.2.1",
479
- "safe-buffer": "5.2.1",
480
- "send": "0.18.0",
481
- "serve-static": "1.15.0",
482
- "setprototypeof": "1.2.0",
483
- "statuses": "2.0.1",
484
- "type-is": "~1.6.18",
485
- "utils-merge": "1.0.1",
486
- "vary": "~1.1.2"
487
- },
488
- "engines": {
489
- "node": ">= 0.10.0"
490
- }
491
- },
492
- "node_modules/file-type": {
493
- "version": "18.5.0",
494
- "resolved": "https://registry.npmjs.org/file-type/-/file-type-18.5.0.tgz",
495
- "integrity": "sha512-yvpl5U868+V6PqXHMmsESpg6unQ5GfnPssl4dxdJudBrr9qy7Fddt7EVX1VLlddFfe8Gj9N7goCZH22FXuSQXQ==",
496
- "dependencies": {
497
- "readable-web-to-node-stream": "^3.0.2",
498
- "strtok3": "^7.0.0",
499
- "token-types": "^5.0.1"
500
- },
501
- "engines": {
502
- "node": ">=14.16"
503
- },
504
- "funding": {
505
- "url": "https://github.com/sindresorhus/file-type?sponsor=1"
506
- }
507
- },
508
- "node_modules/finalhandler": {
509
- "version": "1.2.0",
510
- "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz",
511
- "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==",
512
- "dependencies": {
513
- "debug": "2.6.9",
514
- "encodeurl": "~1.0.2",
515
- "escape-html": "~1.0.3",
516
- "on-finished": "2.4.1",
517
- "parseurl": "~1.3.3",
518
- "statuses": "2.0.1",
519
- "unpipe": "~1.0.0"
520
- },
521
- "engines": {
522
- "node": ">= 0.8"
523
- }
524
- },
525
- "node_modules/follow-redirects": {
526
- "version": "1.15.3",
527
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz",
528
- "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==",
529
- "funding": [
530
- {
531
- "type": "individual",
532
- "url": "https://github.com/sponsors/RubenVerborgh"
533
- }
534
- ],
535
- "engines": {
536
- "node": ">=4.0"
537
- },
538
- "peerDependenciesMeta": {
539
- "debug": {
540
- "optional": true
541
- }
542
- }
543
- },
544
- "node_modules/form-data": {
545
- "version": "4.0.0",
546
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
547
- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
548
- "dependencies": {
549
- "asynckit": "^0.4.0",
550
- "combined-stream": "^1.0.8",
551
- "mime-types": "^2.1.12"
552
- },
553
- "engines": {
554
- "node": ">= 6"
555
- }
556
- },
557
- "node_modules/form-data-encoder": {
558
- "version": "1.7.2",
559
- "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz",
560
- "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A=="
561
- },
562
- "node_modules/formdata-node": {
563
- "version": "4.4.1",
564
- "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",
565
- "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",
566
- "dependencies": {
567
- "node-domexception": "1.0.0",
568
- "web-streams-polyfill": "4.0.0-beta.3"
569
- },
570
- "engines": {
571
- "node": ">= 12.20"
572
- }
573
- },
574
- "node_modules/formdata-node/node_modules/web-streams-polyfill": {
575
- "version": "4.0.0-beta.3",
576
- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
577
- "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",
578
- "engines": {
579
- "node": ">= 14"
580
- }
581
- },
582
- "node_modules/forwarded": {
583
- "version": "0.2.0",
584
- "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
585
- "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
586
- "engines": {
587
- "node": ">= 0.6"
588
- }
589
- },
590
- "node_modules/fresh": {
591
- "version": "0.5.2",
592
- "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
593
- "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
594
- "engines": {
595
- "node": ">= 0.6"
596
- }
597
- },
598
- "node_modules/function-bind": {
599
- "version": "1.1.2",
600
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
601
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
602
- "funding": {
603
- "url": "https://github.com/sponsors/ljharb"
604
- }
605
- },
606
- "node_modules/get-caller-file": {
607
- "version": "2.0.5",
608
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
609
- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
610
- "engines": {
611
- "node": "6.* || 8.* || >= 10.*"
612
- }
613
- },
614
- "node_modules/get-intrinsic": {
615
- "version": "1.2.2",
616
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz",
617
- "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==",
618
- "dependencies": {
619
- "function-bind": "^1.1.2",
620
- "has-proto": "^1.0.1",
621
- "has-symbols": "^1.0.3",
622
- "hasown": "^2.0.0"
623
- },
624
- "funding": {
625
- "url": "https://github.com/sponsors/ljharb"
626
- }
627
- },
628
- "node_modules/gopd": {
629
- "version": "1.0.1",
630
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",
631
- "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==",
632
- "dependencies": {
633
- "get-intrinsic": "^1.1.3"
634
- },
635
- "funding": {
636
- "url": "https://github.com/sponsors/ljharb"
637
- }
638
- },
639
- "node_modules/has-property-descriptors": {
640
- "version": "1.0.1",
641
- "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz",
642
- "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==",
643
- "dependencies": {
644
- "get-intrinsic": "^1.2.2"
645
- },
646
- "funding": {
647
- "url": "https://github.com/sponsors/ljharb"
648
- }
649
- },
650
- "node_modules/has-proto": {
651
- "version": "1.0.1",
652
- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
653
- "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
654
- "engines": {
655
- "node": ">= 0.4"
656
- },
657
- "funding": {
658
- "url": "https://github.com/sponsors/ljharb"
659
- }
660
- },
661
- "node_modules/has-symbols": {
662
- "version": "1.0.3",
663
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
664
- "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
665
- "engines": {
666
- "node": ">= 0.4"
667
- },
668
- "funding": {
669
- "url": "https://github.com/sponsors/ljharb"
670
- }
671
- },
672
- "node_modules/hasown": {
673
- "version": "2.0.0",
674
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz",
675
- "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==",
676
- "dependencies": {
677
- "function-bind": "^1.1.2"
678
- },
679
- "engines": {
680
- "node": ">= 0.4"
681
- }
682
- },
683
- "node_modules/http-errors": {
684
- "version": "2.0.0",
685
- "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
686
- "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
687
- "dependencies": {
688
- "depd": "2.0.0",
689
- "inherits": "2.0.4",
690
- "setprototypeof": "1.2.0",
691
- "statuses": "2.0.1",
692
- "toidentifier": "1.0.1"
693
- },
694
- "engines": {
695
- "node": ">= 0.8"
696
- }
697
- },
698
- "node_modules/humanize-ms": {
699
- "version": "1.2.1",
700
- "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",
701
- "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",
702
- "dependencies": {
703
- "ms": "^2.0.0"
704
- }
705
- },
706
- "node_modules/iconv-lite": {
707
- "version": "0.4.24",
708
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
709
- "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
710
- "dependencies": {
711
- "safer-buffer": ">= 2.1.2 < 3"
712
- },
713
- "engines": {
714
- "node": ">=0.10.0"
715
- }
716
- },
717
- "node_modules/ieee754": {
718
- "version": "1.2.1",
719
- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
720
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
721
- "funding": [
722
- {
723
- "type": "github",
724
- "url": "https://github.com/sponsors/feross"
725
- },
726
- {
727
- "type": "patreon",
728
- "url": "https://www.patreon.com/feross"
729
- },
730
- {
731
- "type": "consulting",
732
- "url": "https://feross.org/support"
733
- }
734
- ]
735
- },
736
- "node_modules/inherits": {
737
- "version": "2.0.4",
738
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
739
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
740
- },
741
- "node_modules/ipaddr.js": {
742
- "version": "1.9.1",
743
- "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
744
- "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
745
- "engines": {
746
- "node": ">= 0.10"
747
- }
748
- },
749
- "node_modules/is-buffer": {
750
- "version": "1.1.6",
751
- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",
752
- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
753
- },
754
- "node_modules/is-fullwidth-code-point": {
755
- "version": "3.0.0",
756
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
757
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
758
- "engines": {
759
- "node": ">=8"
760
- }
761
- },
762
- "node_modules/lodash.camelcase": {
763
- "version": "4.3.0",
764
- "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
765
- "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA=="
766
- },
767
- "node_modules/long": {
768
- "version": "5.2.3",
769
- "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz",
770
- "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q=="
771
- },
772
- "node_modules/md5": {
773
- "version": "2.3.0",
774
- "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz",
775
- "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==",
776
- "dependencies": {
777
- "charenc": "0.0.2",
778
- "crypt": "0.0.2",
779
- "is-buffer": "~1.1.6"
780
- }
781
- },
782
- "node_modules/media-typer": {
783
- "version": "0.3.0",
784
- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
785
- "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
786
- "engines": {
787
- "node": ">= 0.6"
788
- }
789
- },
790
- "node_modules/merge-descriptors": {
791
- "version": "1.0.1",
792
- "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz",
793
- "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w=="
794
- },
795
- "node_modules/methods": {
796
- "version": "1.1.2",
797
- "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
798
- "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
799
- "engines": {
800
- "node": ">= 0.6"
801
- }
802
- },
803
- "node_modules/mime": {
804
- "version": "1.6.0",
805
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
806
- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
807
- "bin": {
808
- "mime": "cli.js"
809
- },
810
- "engines": {
811
- "node": ">=4"
812
- }
813
- },
814
- "node_modules/mime-db": {
815
- "version": "1.52.0",
816
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
817
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
818
- "engines": {
819
- "node": ">= 0.6"
820
- }
821
- },
822
- "node_modules/mime-types": {
823
- "version": "2.1.35",
824
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
825
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
826
- "dependencies": {
827
- "mime-db": "1.52.0"
828
- },
829
- "engines": {
830
- "node": ">= 0.6"
831
- }
832
- },
833
- "node_modules/ms": {
834
- "version": "2.1.3",
835
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
836
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
837
- },
838
- "node_modules/negotiator": {
839
- "version": "0.6.3",
840
- "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
841
- "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
842
- "engines": {
843
- "node": ">= 0.6"
844
- }
845
- },
846
- "node_modules/node-domexception": {
847
- "version": "1.0.0",
848
- "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
849
- "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
850
- "funding": [
851
- {
852
- "type": "github",
853
- "url": "https://github.com/sponsors/jimmywarting"
854
- },
855
- {
856
- "type": "github",
857
- "url": "https://paypal.me/jimmywarting"
858
- }
859
- ],
860
- "engines": {
861
- "node": ">=10.5.0"
862
- }
863
- },
864
- "node_modules/node-fetch": {
865
- "version": "2.7.0",
866
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
867
- "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
868
- "dependencies": {
869
- "whatwg-url": "^5.0.0"
870
- },
871
- "engines": {
872
- "node": "4.x || >=6.0.0"
873
- },
874
- "peerDependencies": {
875
- "encoding": "^0.1.0"
876
- },
877
- "peerDependenciesMeta": {
878
- "encoding": {
879
- "optional": true
880
- }
881
- }
882
- },
883
- "node_modules/object-assign": {
884
- "version": "4.1.1",
885
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
886
- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
887
- "engines": {
888
- "node": ">=0.10.0"
889
- }
890
- },
891
- "node_modules/object-inspect": {
892
- "version": "1.13.1",
893
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz",
894
- "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==",
895
- "funding": {
896
- "url": "https://github.com/sponsors/ljharb"
897
- }
898
- },
899
- "node_modules/on-finished": {
900
- "version": "2.4.1",
901
- "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
902
- "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
903
- "dependencies": {
904
- "ee-first": "1.1.1"
905
- },
906
- "engines": {
907
- "node": ">= 0.8"
908
- }
909
- },
910
- "node_modules/openai": {
911
- "version": "4.12.4",
912
- "resolved": "https://registry.npmjs.org/openai/-/openai-4.12.4.tgz",
913
- "integrity": "sha512-oPNVJkpgxDUKF6WGGdHEZh5m/kjmYxS2Y1q7YVFCkvKUGthb8OGYRGCFBRPq5CQJezifzABTZRlVYnXLd6L4vQ==",
914
- "dependencies": {
915
- "@types/node": "^18.11.18",
916
- "@types/node-fetch": "^2.6.4",
917
- "abort-controller": "^3.0.0",
918
- "agentkeepalive": "^4.2.1",
919
- "digest-fetch": "^1.3.0",
920
- "form-data-encoder": "1.7.2",
921
- "formdata-node": "^4.3.2",
922
- "node-fetch": "^2.6.7",
923
- "web-streams-polyfill": "^3.2.1"
924
- },
925
- "bin": {
926
- "openai": "bin/cli"
927
- }
928
- },
929
- "node_modules/openai/node_modules/@types/node": {
930
- "version": "18.18.6",
931
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.6.tgz",
932
- "integrity": "sha512-wf3Vz+jCmOQ2HV1YUJuCWdL64adYxumkrxtc+H1VUQlnQI04+5HtH+qZCOE21lBE7gIrt+CwX2Wv8Acrw5Ak6w=="
933
- },
934
- "node_modules/parseurl": {
935
- "version": "1.3.3",
936
- "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
937
- "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
938
- "engines": {
939
- "node": ">= 0.8"
940
- }
941
- },
942
- "node_modules/path-to-regexp": {
943
- "version": "0.1.7",
944
- "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz",
945
- "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ=="
946
- },
947
- "node_modules/peek-readable": {
948
- "version": "5.0.0",
949
- "resolved": "https://registry.npmjs.org/peek-readable/-/peek-readable-5.0.0.tgz",
950
- "integrity": "sha512-YtCKvLUOvwtMGmrniQPdO7MwPjgkFBtFIrmfSbYmYuq3tKDV/mcfAhBth1+C3ru7uXIZasc/pHnb+YDYNkkj4A==",
951
- "engines": {
952
- "node": ">=14.16"
953
- },
954
- "funding": {
955
- "type": "github",
956
- "url": "https://github.com/sponsors/Borewit"
957
- }
958
- },
959
- "node_modules/playht": {
960
- "version": "0.9.3",
961
- "resolved": "https://registry.npmjs.org/playht/-/playht-0.9.3.tgz",
962
- "integrity": "sha512-MLYq4ulHjakAy0uTFyx54ZjdyxZ4pbsA7D1r7XO/gu89OSCBYViNZPM6ux1OEsnk2dwtqwmC8Cof6FCveOzL8Q==",
963
- "dependencies": {
964
- "@grpc/grpc-js": "^1.9.4",
965
- "axios": "^1.4.0",
966
- "cross-fetch": "^4.0.0",
967
- "file-type": "^18.5.0",
968
- "protobufjs": "^7.2.5",
969
- "tslib": "^2.1.0"
970
- }
971
- },
972
- "node_modules/protobufjs": {
973
- "version": "7.2.5",
974
- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz",
975
- "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==",
976
- "hasInstallScript": true,
977
- "dependencies": {
978
- "@protobufjs/aspromise": "^1.1.2",
979
- "@protobufjs/base64": "^1.1.2",
980
- "@protobufjs/codegen": "^2.0.4",
981
- "@protobufjs/eventemitter": "^1.1.0",
982
- "@protobufjs/fetch": "^1.1.0",
983
- "@protobufjs/float": "^1.0.2",
984
- "@protobufjs/inquire": "^1.1.0",
985
- "@protobufjs/path": "^1.1.2",
986
- "@protobufjs/pool": "^1.1.0",
987
- "@protobufjs/utf8": "^1.1.0",
988
- "@types/node": ">=13.7.0",
989
- "long": "^5.0.0"
990
- },
991
- "engines": {
992
- "node": ">=12.0.0"
993
- }
994
- },
995
- "node_modules/proxy-addr": {
996
- "version": "2.0.7",
997
- "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
998
- "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
999
- "dependencies": {
1000
- "forwarded": "0.2.0",
1001
- "ipaddr.js": "1.9.1"
1002
- },
1003
- "engines": {
1004
- "node": ">= 0.10"
1005
- }
1006
- },
1007
- "node_modules/proxy-from-env": {
1008
- "version": "1.1.0",
1009
- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
1010
- "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
1011
- },
1012
- "node_modules/qs": {
1013
- "version": "6.11.0",
1014
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
1015
- "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==",
1016
- "dependencies": {
1017
- "side-channel": "^1.0.4"
1018
- },
1019
- "engines": {
1020
- "node": ">=0.6"
1021
- },
1022
- "funding": {
1023
- "url": "https://github.com/sponsors/ljharb"
1024
- }
1025
- },
1026
- "node_modules/range-parser": {
1027
- "version": "1.2.1",
1028
- "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
1029
- "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
1030
- "engines": {
1031
- "node": ">= 0.6"
1032
- }
1033
- },
1034
- "node_modules/raw-body": {
1035
- "version": "2.5.1",
1036
- "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz",
1037
- "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==",
1038
- "dependencies": {
1039
- "bytes": "3.1.2",
1040
- "http-errors": "2.0.0",
1041
- "iconv-lite": "0.4.24",
1042
- "unpipe": "1.0.0"
1043
- },
1044
- "engines": {
1045
- "node": ">= 0.8"
1046
- }
1047
- },
1048
- "node_modules/readable-stream": {
1049
- "version": "3.6.2",
1050
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
1051
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
1052
- "dependencies": {
1053
- "inherits": "^2.0.3",
1054
- "string_decoder": "^1.1.1",
1055
- "util-deprecate": "^1.0.1"
1056
- },
1057
- "engines": {
1058
- "node": ">= 6"
1059
- }
1060
- },
1061
- "node_modules/readable-web-to-node-stream": {
1062
- "version": "3.0.2",
1063
- "resolved": "https://registry.npmjs.org/readable-web-to-node-stream/-/readable-web-to-node-stream-3.0.2.tgz",
1064
- "integrity": "sha512-ePeK6cc1EcKLEhJFt/AebMCLL+GgSKhuygrZ/GLaKZYEecIgIECf4UaUuaByiGtzckwR4ain9VzUh95T1exYGw==",
1065
- "dependencies": {
1066
- "readable-stream": "^3.6.0"
1067
- },
1068
- "engines": {
1069
- "node": ">=8"
1070
- },
1071
- "funding": {
1072
- "type": "github",
1073
- "url": "https://github.com/sponsors/Borewit"
1074
- }
1075
- },
1076
- "node_modules/require-directory": {
1077
- "version": "2.1.1",
1078
- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
1079
- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
1080
- "engines": {
1081
- "node": ">=0.10.0"
1082
- }
1083
- },
1084
- "node_modules/safe-buffer": {
1085
- "version": "5.2.1",
1086
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
1087
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
1088
- "funding": [
1089
- {
1090
- "type": "github",
1091
- "url": "https://github.com/sponsors/feross"
1092
- },
1093
- {
1094
- "type": "patreon",
1095
- "url": "https://www.patreon.com/feross"
1096
- },
1097
- {
1098
- "type": "consulting",
1099
- "url": "https://feross.org/support"
1100
- }
1101
- ]
1102
- },
1103
- "node_modules/safer-buffer": {
1104
- "version": "2.1.2",
1105
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
1106
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
1107
- },
1108
- "node_modules/send": {
1109
- "version": "0.18.0",
1110
- "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz",
1111
- "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==",
1112
- "dependencies": {
1113
- "debug": "2.6.9",
1114
- "depd": "2.0.0",
1115
- "destroy": "1.2.0",
1116
- "encodeurl": "~1.0.2",
1117
- "escape-html": "~1.0.3",
1118
- "etag": "~1.8.1",
1119
- "fresh": "0.5.2",
1120
- "http-errors": "2.0.0",
1121
- "mime": "1.6.0",
1122
- "ms": "2.1.3",
1123
- "on-finished": "2.4.1",
1124
- "range-parser": "~1.2.1",
1125
- "statuses": "2.0.1"
1126
- },
1127
- "engines": {
1128
- "node": ">= 0.8.0"
1129
- }
1130
- },
1131
- "node_modules/serve-static": {
1132
- "version": "1.15.0",
1133
- "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz",
1134
- "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==",
1135
- "dependencies": {
1136
- "encodeurl": "~1.0.2",
1137
- "escape-html": "~1.0.3",
1138
- "parseurl": "~1.3.3",
1139
- "send": "0.18.0"
1140
- },
1141
- "engines": {
1142
- "node": ">= 0.8.0"
1143
- }
1144
- },
1145
- "node_modules/set-function-length": {
1146
- "version": "1.1.1",
1147
- "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz",
1148
- "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==",
1149
- "dependencies": {
1150
- "define-data-property": "^1.1.1",
1151
- "get-intrinsic": "^1.2.1",
1152
- "gopd": "^1.0.1",
1153
- "has-property-descriptors": "^1.0.0"
1154
- },
1155
- "engines": {
1156
- "node": ">= 0.4"
1157
- }
1158
- },
1159
- "node_modules/setprototypeof": {
1160
- "version": "1.2.0",
1161
- "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
1162
- "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="
1163
- },
1164
- "node_modules/side-channel": {
1165
- "version": "1.0.4",
1166
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
1167
- "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
1168
- "dependencies": {
1169
- "call-bind": "^1.0.0",
1170
- "get-intrinsic": "^1.0.2",
1171
- "object-inspect": "^1.9.0"
1172
- },
1173
- "funding": {
1174
- "url": "https://github.com/sponsors/ljharb"
1175
- }
1176
- },
1177
- "node_modules/statuses": {
1178
- "version": "2.0.1",
1179
- "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
1180
- "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
1181
- "engines": {
1182
- "node": ">= 0.8"
1183
- }
1184
- },
1185
- "node_modules/string_decoder": {
1186
- "version": "1.3.0",
1187
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
1188
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
1189
- "dependencies": {
1190
- "safe-buffer": "~5.2.0"
1191
- }
1192
- },
1193
- "node_modules/string-width": {
1194
- "version": "4.2.3",
1195
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
1196
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
1197
- "dependencies": {
1198
- "emoji-regex": "^8.0.0",
1199
- "is-fullwidth-code-point": "^3.0.0",
1200
- "strip-ansi": "^6.0.1"
1201
- },
1202
- "engines": {
1203
- "node": ">=8"
1204
- }
1205
- },
1206
- "node_modules/strip-ansi": {
1207
- "version": "6.0.1",
1208
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
1209
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
1210
- "dependencies": {
1211
- "ansi-regex": "^5.0.1"
1212
- },
1213
- "engines": {
1214
- "node": ">=8"
1215
- }
1216
- },
1217
- "node_modules/strtok3": {
1218
- "version": "7.0.0",
1219
- "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-7.0.0.tgz",
1220
- "integrity": "sha512-pQ+V+nYQdC5H3Q7qBZAz/MO6lwGhoC2gOAjuouGf/VO0m7vQRh8QNMl2Uf6SwAtzZ9bOw3UIeBukEGNJl5dtXQ==",
1221
- "dependencies": {
1222
- "@tokenizer/token": "^0.3.0",
1223
- "peek-readable": "^5.0.0"
1224
- },
1225
- "engines": {
1226
- "node": ">=14.16"
1227
- },
1228
- "funding": {
1229
- "type": "github",
1230
- "url": "https://github.com/sponsors/Borewit"
1231
- }
1232
- },
1233
- "node_modules/toidentifier": {
1234
- "version": "1.0.1",
1235
- "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
1236
- "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
1237
- "engines": {
1238
- "node": ">=0.6"
1239
- }
1240
- },
1241
- "node_modules/token-types": {
1242
- "version": "5.0.1",
1243
- "resolved": "https://registry.npmjs.org/token-types/-/token-types-5.0.1.tgz",
1244
- "integrity": "sha512-Y2fmSnZjQdDb9W4w4r1tswlMHylzWIeOKpx0aZH9BgGtACHhrk3OkT52AzwcuqTRBZtvvnTjDBh8eynMulu8Vg==",
1245
- "dependencies": {
1246
- "@tokenizer/token": "^0.3.0",
1247
- "ieee754": "^1.2.1"
1248
- },
1249
- "engines": {
1250
- "node": ">=14.16"
1251
- },
1252
- "funding": {
1253
- "type": "github",
1254
- "url": "https://github.com/sponsors/Borewit"
1255
- }
1256
- },
1257
- "node_modules/tr46": {
1258
- "version": "0.0.3",
1259
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
1260
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
1261
- },
1262
- "node_modules/tslib": {
1263
- "version": "2.6.2",
1264
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
1265
- "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
1266
- },
1267
- "node_modules/type-is": {
1268
- "version": "1.6.18",
1269
- "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
1270
- "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
1271
- "dependencies": {
1272
- "media-typer": "0.3.0",
1273
- "mime-types": "~2.1.24"
1274
- },
1275
- "engines": {
1276
- "node": ">= 0.6"
1277
- }
1278
- },
1279
- "node_modules/undici-types": {
1280
- "version": "5.25.3",
1281
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz",
1282
- "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA=="
1283
- },
1284
- "node_modules/unpipe": {
1285
- "version": "1.0.0",
1286
- "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
1287
- "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
1288
- "engines": {
1289
- "node": ">= 0.8"
1290
- }
1291
- },
1292
- "node_modules/util-deprecate": {
1293
- "version": "1.0.2",
1294
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
1295
- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
1296
- },
1297
- "node_modules/utils-merge": {
1298
- "version": "1.0.1",
1299
- "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
1300
- "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
1301
- "engines": {
1302
- "node": ">= 0.4.0"
1303
- }
1304
- },
1305
- "node_modules/vary": {
1306
- "version": "1.1.2",
1307
- "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
1308
- "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
1309
- "engines": {
1310
- "node": ">= 0.8"
1311
- }
1312
- },
1313
- "node_modules/web-streams-polyfill": {
1314
- "version": "3.2.1",
1315
- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz",
1316
- "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==",
1317
- "engines": {
1318
- "node": ">= 8"
1319
- }
1320
- },
1321
- "node_modules/webidl-conversions": {
1322
- "version": "3.0.1",
1323
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
1324
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
1325
- },
1326
- "node_modules/whatwg-url": {
1327
- "version": "5.0.0",
1328
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
1329
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
1330
- "dependencies": {
1331
- "tr46": "~0.0.3",
1332
- "webidl-conversions": "^3.0.0"
1333
- }
1334
- },
1335
- "node_modules/wrap-ansi": {
1336
- "version": "7.0.0",
1337
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
1338
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
1339
- "dependencies": {
1340
- "ansi-styles": "^4.0.0",
1341
- "string-width": "^4.1.0",
1342
- "strip-ansi": "^6.0.0"
1343
- },
1344
- "engines": {
1345
- "node": ">=10"
1346
- },
1347
- "funding": {
1348
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
1349
- }
1350
- },
1351
- "node_modules/y18n": {
1352
- "version": "5.0.8",
1353
- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
1354
- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
1355
- "engines": {
1356
- "node": ">=10"
1357
- }
1358
- },
1359
- "node_modules/yargs": {
1360
- "version": "17.7.2",
1361
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
1362
- "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
1363
- "dependencies": {
1364
- "cliui": "^8.0.1",
1365
- "escalade": "^3.1.1",
1366
- "get-caller-file": "^2.0.5",
1367
- "require-directory": "^2.1.1",
1368
- "string-width": "^4.2.3",
1369
- "y18n": "^5.0.5",
1370
- "yargs-parser": "^21.1.1"
1371
- },
1372
- "engines": {
1373
- "node": ">=12"
1374
- }
1375
- },
1376
- "node_modules/yargs-parser": {
1377
- "version": "21.1.1",
1378
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
1379
- "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
1380
- "engines": {
1381
- "node": ">=12"
1382
- }
1383
- }
1384
- }
1385
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "{}"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright {yyyy} {name of copyright owner}
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/README.md DELETED
@@ -1,79 +0,0 @@
1
- # Pure JavaScript gRPC Client
2
-
3
- ## Installation
4
-
5
- Node 12 is recommended. The exact set of compatible Node versions can be found in the `engines` field of the `package.json` file.
6
-
7
- ```sh
8
- npm install @grpc/grpc-js
9
- ```
10
-
11
- ## Documentation
12
-
13
- Documentation specifically for the `@grpc/grpc-js` package is currently not available. However, [documentation is available for the `grpc` package](https://grpc.github.io/grpc/node/grpc.html), and the two packages contain mostly the same interface. There are a few notable differences, however, and these differences are noted in the "Migrating from grpc" section below.
14
-
15
- ## Features
16
-
17
- - Clients
18
- - Automatic reconnection
19
- - Servers
20
- - Streaming
21
- - Metadata
22
- - Partial compression support: clients can compress and decompress messages, and servers can decompress request messages
23
- - Pick first and round robin load balancing policies
24
- - Client Interceptors
25
- - Connection Keepalives
26
- - HTTP Connect support (proxies)
27
-
28
- If you need a feature from the `grpc` package that is not provided by the `@grpc/grpc-js`, please file a feature request with that information.
29
-
30
- This library does not directly handle `.proto` files. To use `.proto` files with this library we recommend using the `@grpc/proto-loader` package.
31
-
32
- ## Migrating from [`grpc`](https://www.npmjs.com/package/grpc)
33
-
34
- `@grpc/grpc-js` is almost a drop-in replacement for `grpc`, but you may need to make a few code changes to use it:
35
-
36
- - If you are currently loading `.proto` files using `grpc.load`, that function is not available in this library. You should instead load your `.proto` files using `@grpc/proto-loader` and load the resulting package definition objects into `@grpc/grpc-js` using `grpc.loadPackageDefinition`.
37
- - If you are currently loading packages generated by `grpc-tools`, you should instead generate your files using the `generate_package_definition` option in `grpc-tools`, then load the object exported by the generated file into `@grpc/grpc-js` using `grpc.loadPackageDefinition`.
38
- - If you have a server and you are using `Server#bind` to bind ports, you will need to use `Server#bindAsync` instead.
39
- - If you are using any channel options supported in `grpc` but not supported in `@grpc/grpc-js`, you may need to adjust your code to handle the different behavior. Refer to [the list of supported options](#supported-channel-options) below.
40
- - Refer to the [detailed package comparison](https://github.com/grpc/grpc-node/blob/master/PACKAGE-COMPARISON.md) for more details on the differences between `grpc` and `@grpc/grpc-js`.
41
-
42
- ## Supported Channel Options
43
- Many channel arguments supported in `grpc` are not supported in `@grpc/grpc-js`. The channel arguments supported by `@grpc/grpc-js` are:
44
- - `grpc.ssl_target_name_override`
45
- - `grpc.primary_user_agent`
46
- - `grpc.secondary_user_agent`
47
- - `grpc.default_authority`
48
- - `grpc.keepalive_time_ms`
49
- - `grpc.keepalive_timeout_ms`
50
- - `grpc.keepalive_permit_without_calls`
51
- - `grpc.service_config`
52
- - `grpc.max_concurrent_streams`
53
- - `grpc.initial_reconnect_backoff_ms`
54
- - `grpc.max_reconnect_backoff_ms`
55
- - `grpc.use_local_subchannel_pool`
56
- - `grpc.max_send_message_length`
57
- - `grpc.max_receive_message_length`
58
- - `grpc.enable_http_proxy`
59
- - `grpc.default_compression_algorithm`
60
- - `grpc.enable_channelz`
61
- - `grpc.dns_min_time_between_resolutions_ms`
62
- - `grpc.enable_retries`
63
- - `grpc.per_rpc_retry_buffer_size`
64
- - `grpc.retry_buffer_size`
65
- - `grpc.service_config_disable_resolution`
66
- - `grpc.client_idle_timeout_ms`
67
- - `grpc-node.max_session_memory`
68
- - `grpc-node.tls_enable_trace`
69
- - `channelOverride`
70
- - `channelFactoryOverride`
71
-
72
- ## Some Notes on API Guarantees
73
-
74
- The public API of this library follows semantic versioning, with some caveats:
75
-
76
- - Some methods are prefixed with an underscore. These methods are internal and should not be considered part of the public API.
77
- - The class `Call` is only exposed due to limitations of TypeScript. It should not be considered part of the public API.
78
- - In general, any API that is exposed by this library but is not exposed by the `grpc` library is likely an error and should not be considered part of the public API.
79
- - The `grpc.experimental` namespace contains APIs that have not stabilized. Any API in that namespace may break in any minor version update.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/admin.d.ts DELETED
@@ -1,11 +0,0 @@
1
- import { ServiceDefinition } from './make-client';
2
- import { Server, UntypedServiceImplementation } from './server';
3
- interface GetServiceDefinition {
4
- (): ServiceDefinition;
5
- }
6
- interface GetHandlers {
7
- (): UntypedServiceImplementation;
8
- }
9
- export declare function registerAdminService(getServiceDefinition: GetServiceDefinition, getHandlers: GetHandlers): void;
10
- export declare function addAdminServicesToServer(server: Server): void;
11
- export {};
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/admin.js DELETED
@@ -1,31 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2021 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.addAdminServicesToServer = exports.registerAdminService = void 0;
20
- const registeredAdminServices = [];
21
- function registerAdminService(getServiceDefinition, getHandlers) {
22
- registeredAdminServices.push({ getServiceDefinition, getHandlers });
23
- }
24
- exports.registerAdminService = registerAdminService;
25
- function addAdminServicesToServer(server) {
26
- for (const { getServiceDefinition, getHandlers } of registeredAdminServices) {
27
- server.addService(getServiceDefinition(), getHandlers());
28
- }
29
- }
30
- exports.addAdminServicesToServer = addAdminServicesToServer;
31
- //# sourceMappingURL=admin.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/admin.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.js","sourceRoot":"","sources":["../../src/admin.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAaH,MAAM,uBAAuB,GAGvB,EAAE,CAAC;AAET,SAAgB,oBAAoB,CAClC,oBAA0C,EAC1C,WAAwB;IAExB,uBAAuB,CAAC,IAAI,CAAC,EAAE,oBAAoB,EAAE,WAAW,EAAE,CAAC,CAAC;AACtE,CAAC;AALD,oDAKC;AAED,SAAgB,wBAAwB,CAAC,MAAc;IACrD,KAAK,MAAM,EAAE,oBAAoB,EAAE,WAAW,EAAE,IAAI,uBAAuB,EAAE;QAC3E,MAAM,CAAC,UAAU,CAAC,oBAAoB,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;KAC1D;AACH,CAAC;AAJD,4DAIC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/backoff-timeout.d.ts DELETED
@@ -1,90 +0,0 @@
1
- export interface BackoffOptions {
2
- initialDelay?: number;
3
- multiplier?: number;
4
- jitter?: number;
5
- maxDelay?: number;
6
- }
7
- export declare class BackoffTimeout {
8
- private callback;
9
- /**
10
- * The delay time at the start, and after each reset.
11
- */
12
- private readonly initialDelay;
13
- /**
14
- * The exponential backoff multiplier.
15
- */
16
- private readonly multiplier;
17
- /**
18
- * The maximum delay time
19
- */
20
- private readonly maxDelay;
21
- /**
22
- * The maximum fraction by which the delay time can randomly vary after
23
- * applying the multiplier.
24
- */
25
- private readonly jitter;
26
- /**
27
- * The delay time for the next time the timer runs.
28
- */
29
- private nextDelay;
30
- /**
31
- * The handle of the underlying timer. If running is false, this value refers
32
- * to an object representing a timer that has ended, but it can still be
33
- * interacted with without error.
34
- */
35
- private timerId;
36
- /**
37
- * Indicates whether the timer is currently running.
38
- */
39
- private running;
40
- /**
41
- * Indicates whether the timer should keep the Node process running if no
42
- * other async operation is doing so.
43
- */
44
- private hasRef;
45
- /**
46
- * The time that the currently running timer was started. Only valid if
47
- * running is true.
48
- */
49
- private startTime;
50
- /**
51
- * The approximate time that the currently running timer will end. Only valid
52
- * if running is true.
53
- */
54
- private endTime;
55
- constructor(callback: () => void, options?: BackoffOptions);
56
- private runTimer;
57
- /**
58
- * Call the callback after the current amount of delay time
59
- */
60
- runOnce(): void;
61
- /**
62
- * Stop the timer. The callback will not be called until `runOnce` is called
63
- * again.
64
- */
65
- stop(): void;
66
- /**
67
- * Reset the delay time to its initial value. If the timer is still running,
68
- * retroactively apply that reset to the current timer.
69
- */
70
- reset(): void;
71
- /**
72
- * Check whether the timer is currently running.
73
- */
74
- isRunning(): boolean;
75
- /**
76
- * Set that while the timer is running, it should keep the Node process
77
- * running.
78
- */
79
- ref(): void;
80
- /**
81
- * Set that while the timer is running, it should not keep the Node process
82
- * running.
83
- */
84
- unref(): void;
85
- /**
86
- * Get the approximate timestamp of when the timer will fire. Only valid if
87
- * this.isRunning() is true.
88
- */
89
- getEndTime(): Date;
90
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js DELETED
@@ -1,174 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2019 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.BackoffTimeout = void 0;
20
- const INITIAL_BACKOFF_MS = 1000;
21
- const BACKOFF_MULTIPLIER = 1.6;
22
- const MAX_BACKOFF_MS = 120000;
23
- const BACKOFF_JITTER = 0.2;
24
- /**
25
- * Get a number uniformly at random in the range [min, max)
26
- * @param min
27
- * @param max
28
- */
29
- function uniformRandom(min, max) {
30
- return Math.random() * (max - min) + min;
31
- }
32
- class BackoffTimeout {
33
- constructor(callback, options) {
34
- this.callback = callback;
35
- /**
36
- * The delay time at the start, and after each reset.
37
- */
38
- this.initialDelay = INITIAL_BACKOFF_MS;
39
- /**
40
- * The exponential backoff multiplier.
41
- */
42
- this.multiplier = BACKOFF_MULTIPLIER;
43
- /**
44
- * The maximum delay time
45
- */
46
- this.maxDelay = MAX_BACKOFF_MS;
47
- /**
48
- * The maximum fraction by which the delay time can randomly vary after
49
- * applying the multiplier.
50
- */
51
- this.jitter = BACKOFF_JITTER;
52
- /**
53
- * Indicates whether the timer is currently running.
54
- */
55
- this.running = false;
56
- /**
57
- * Indicates whether the timer should keep the Node process running if no
58
- * other async operation is doing so.
59
- */
60
- this.hasRef = true;
61
- /**
62
- * The time that the currently running timer was started. Only valid if
63
- * running is true.
64
- */
65
- this.startTime = new Date();
66
- /**
67
- * The approximate time that the currently running timer will end. Only valid
68
- * if running is true.
69
- */
70
- this.endTime = new Date();
71
- if (options) {
72
- if (options.initialDelay) {
73
- this.initialDelay = options.initialDelay;
74
- }
75
- if (options.multiplier) {
76
- this.multiplier = options.multiplier;
77
- }
78
- if (options.jitter) {
79
- this.jitter = options.jitter;
80
- }
81
- if (options.maxDelay) {
82
- this.maxDelay = options.maxDelay;
83
- }
84
- }
85
- this.nextDelay = this.initialDelay;
86
- this.timerId = setTimeout(() => { }, 0);
87
- clearTimeout(this.timerId);
88
- }
89
- runTimer(delay) {
90
- var _a, _b;
91
- this.endTime = this.startTime;
92
- this.endTime.setMilliseconds(this.endTime.getMilliseconds() + this.nextDelay);
93
- clearTimeout(this.timerId);
94
- this.timerId = setTimeout(() => {
95
- this.callback();
96
- this.running = false;
97
- }, delay);
98
- if (!this.hasRef) {
99
- (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a);
100
- }
101
- }
102
- /**
103
- * Call the callback after the current amount of delay time
104
- */
105
- runOnce() {
106
- this.running = true;
107
- this.startTime = new Date();
108
- this.runTimer(this.nextDelay);
109
- const nextBackoff = Math.min(this.nextDelay * this.multiplier, this.maxDelay);
110
- const jitterMagnitude = nextBackoff * this.jitter;
111
- this.nextDelay =
112
- nextBackoff + uniformRandom(-jitterMagnitude, jitterMagnitude);
113
- }
114
- /**
115
- * Stop the timer. The callback will not be called until `runOnce` is called
116
- * again.
117
- */
118
- stop() {
119
- clearTimeout(this.timerId);
120
- this.running = false;
121
- }
122
- /**
123
- * Reset the delay time to its initial value. If the timer is still running,
124
- * retroactively apply that reset to the current timer.
125
- */
126
- reset() {
127
- this.nextDelay = this.initialDelay;
128
- if (this.running) {
129
- const now = new Date();
130
- const newEndTime = this.startTime;
131
- newEndTime.setMilliseconds(newEndTime.getMilliseconds() + this.nextDelay);
132
- clearTimeout(this.timerId);
133
- if (now < newEndTime) {
134
- this.runTimer(newEndTime.getTime() - now.getTime());
135
- }
136
- else {
137
- this.running = false;
138
- }
139
- }
140
- }
141
- /**
142
- * Check whether the timer is currently running.
143
- */
144
- isRunning() {
145
- return this.running;
146
- }
147
- /**
148
- * Set that while the timer is running, it should keep the Node process
149
- * running.
150
- */
151
- ref() {
152
- var _a, _b;
153
- this.hasRef = true;
154
- (_b = (_a = this.timerId).ref) === null || _b === void 0 ? void 0 : _b.call(_a);
155
- }
156
- /**
157
- * Set that while the timer is running, it should not keep the Node process
158
- * running.
159
- */
160
- unref() {
161
- var _a, _b;
162
- this.hasRef = false;
163
- (_b = (_a = this.timerId).unref) === null || _b === void 0 ? void 0 : _b.call(_a);
164
- }
165
- /**
166
- * Get the approximate timestamp of when the timer will fire. Only valid if
167
- * this.isRunning() is true.
168
- */
169
- getEndTime() {
170
- return this.endTime;
171
- }
172
- }
173
- exports.BackoffTimeout = BackoffTimeout;
174
- //# sourceMappingURL=backoff-timeout.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"backoff-timeout.js","sourceRoot":"","sources":["../../src/backoff-timeout.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAChC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,cAAc,GAAG,MAAM,CAAC;AAC9B,MAAM,cA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AI,CAAC,YAAY,CAAC;QACnC,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;YAClC,UAAU,CAAC,eAAe,CAAC,UAAU,CAAC,eAAe,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;YAC1E,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC3B,IAAI,GAAG,GAAG,UAAU,EAAE;gBACpB,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;aACrD;iBAAM;gBACL,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;aACtB;SACF;IACH,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,GAAG;;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,MAAA,MAAA,IAAI,CAAC,OAAO,EAAC,GAAG,kDAAI,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK;;QACH,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,MAAA,MAAA,IAAI,CAAC,OAAO,EAAC,KAAK,kDAAI,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;CACF;AA7JD,wCA6JC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts DELETED
@@ -1,56 +0,0 @@
1
- import { Metadata } from './metadata';
2
- export interface CallMetadataOptions {
3
- service_url: string;
4
- }
5
- export type CallMetadataGenerator = (options: CallMetadataOptions, cb: (err: Error | null, metadata?: Metadata) => void) => void;
6
- export interface OldOAuth2Client {
7
- getRequestMetadata: (url: string, callback: (err: Error | null, headers?: {
8
- [index: string]: string;
9
- }) => void) => void;
10
- }
11
- export interface CurrentOAuth2Client {
12
- getRequestHeaders: (url?: string) => Promise<{
13
- [index: string]: string;
14
- }>;
15
- }
16
- export type OAuth2Client = OldOAuth2Client | CurrentOAuth2Client;
17
- /**
18
- * A class that represents a generic method of adding authentication-related
19
- * metadata on a per-request basis.
20
- */
21
- export declare abstract class CallCredentials {
22
- /**
23
- * Asynchronously generates a new Metadata object.
24
- * @param options Options used in generating the Metadata object.
25
- */
26
- abstract generateMetadata(options: CallMetadataOptions): Promise<Metadata>;
27
- /**
28
- * Creates a new CallCredentials object from properties of both this and
29
- * another CallCredentials object. This object's metadata generator will be
30
- * called first.
31
- * @param callCredentials The other CallCredentials object.
32
- */
33
- abstract compose(callCredentials: CallCredentials): CallCredentials;
34
- /**
35
- * Check whether two call credentials objects are equal. Separate
36
- * SingleCallCredentials with identical metadata generator functions are
37
- * equal.
38
- * @param other The other CallCredentials object to compare with.
39
- */
40
- abstract _equals(other: CallCredentials): boolean;
41
- /**
42
- * Creates a new CallCredentials object from a given function that generates
43
- * Metadata objects.
44
- * @param metadataGenerator A function that accepts a set of options, and
45
- * generates a Metadata object based on these options, which is passed back
46
- * to the caller via a supplied (err, metadata) callback.
47
- */
48
- static createFromMetadataGenerator(metadataGenerator: CallMetadataGenerator): CallCredentials;
49
- /**
50
- * Create a gRPC credential from a Google credential object.
51
- * @param googleCredentials The authentication client to use.
52
- * @return The resulting CallCredentials object.
53
- */
54
- static createFromGoogleCredential(googleCredentials: OAuth2Client): CallCredentials;
55
- static createEmpty(): CallCredentials;
56
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-credentials.js DELETED
@@ -1,153 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2019 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CallCredentials = void 0;
20
- const metadata_1 = require("./metadata");
21
- function isCurrentOauth2Client(client) {
22
- return ('getRequestHeaders' in client &&
23
- typeof client.getRequestHeaders === 'function');
24
- }
25
- /**
26
- * A class that represents a generic method of adding authentication-related
27
- * metadata on a per-request basis.
28
- */
29
- class CallCredentials {
30
- /**
31
- * Creates a new CallCredentials object from a given function that generates
32
- * Metadata objects.
33
- * @param metadataGenerator A function that accepts a set of options, and
34
- * generates a Metadata object based on these options, which is passed back
35
- * to the caller via a supplied (err, metadata) callback.
36
- */
37
- static createFromMetadataGenerator(metadataGenerator) {
38
- return new SingleCallCredentials(metadataGenerator);
39
- }
40
- /**
41
- * Create a gRPC credential from a Google credential object.
42
- * @param googleCredentials The authentication client to use.
43
- * @return The resulting CallCredentials object.
44
- */
45
- static createFromGoogleCredential(googleCredentials) {
46
- return CallCredentials.createFromMetadataGenerator((options, callback) => {
47
- let getHeaders;
48
- if (isCurrentOauth2Client(googleCredentials)) {
49
- getHeaders = googleCredentials.getRequestHeaders(options.service_url);
50
- }
51
- else {
52
- getHeaders = new Promise((resolve, reject) => {
53
- googleCredentials.getRequestMetadata(options.service_url, (err, headers) => {
54
- if (err) {
55
- reject(err);
56
- return;
57
- }
58
- if (!headers) {
59
- reject(new Error('Headers not set by metadata plugin'));
60
- return;
61
- }
62
- resolve(headers);
63
- });
64
- });
65
- }
66
- getHeaders.then(headers => {
67
- const metadata = new metadata_1.Metadata();
68
- for (const key of Object.keys(headers)) {
69
- metadata.add(key, headers[key]);
70
- }
71
- callback(null, metadata);
72
- }, err => {
73
- callback(err);
74
- });
75
- });
76
- }
77
- static createEmpty() {
78
- return new EmptyCallCredentials();
79
- }
80
- }
81
- exports.CallCredentials = CallCredentials;
82
- class ComposedCallCredentials extends CallCredentials {
83
- constructor(creds) {
84
- super();
85
- this.creds = creds;
86
- }
87
- async generateMetadata(options) {
88
- const base = new metadata_1.Metadata();
89
- const generated = await Promise.all(this.creds.map(cred => cred.generateMetadata(options)));
90
- for (const gen of generated) {
91
- base.merge(gen);
92
- }
93
- return base;
94
- }
95
- compose(other) {
96
- return new ComposedCallCredentials(this.creds.concat([other]));
97
- }
98
- _equals(other) {
99
- if (this === other) {
100
- return true;
101
- }
102
- if (other instanceof ComposedCallCredentials) {
103
- return this.creds.every((value, index) => value._equals(other.creds[index]));
104
- }
105
- else {
106
- return false;
107
- }
108
- }
109
- }
110
- class SingleCallCredentials extends CallCredentials {
111
- constructor(metadataGenerator) {
112
- super();
113
- this.metadataGenerator = metadataGenerator;
114
- }
115
- generateMetadata(options) {
116
- return new Promise((resolve, reject) => {
117
- this.metadataGenerator(options, (err, metadata) => {
118
- if (metadata !== undefined) {
119
- resolve(metadata);
120
- }
121
- else {
122
- reject(err);
123
- }
124
- });
125
- });
126
- }
127
- compose(other) {
128
- return new ComposedCallCredentials([this, other]);
129
- }
130
- _equals(other) {
131
- if (this === other) {
132
- return true;
133
- }
134
- if (other instanceof SingleCallCredentials) {
135
- return this.metadataGenerator === other.metadataGenerator;
136
- }
137
- else {
138
- return false;
139
- }
140
- }
141
- }
142
- class EmptyCallCredentials extends CallCredentials {
143
- generateMetadata(options) {
144
- return Promise.resolve(new metadata_1.Metadata());
145
- }
146
- compose(other) {
147
- return other;
148
- }
149
- _equals(other) {
150
- return other instanceof EmptyCallCredentials;
151
- }
152
- }
153
- //# sourceMappingURL=call-credentials.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-credentials.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"call-credentials.js","sourceRoot":"","sources":["../../src/call-credentials.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAsC;AA+BtC,SAAS,qBAAqB,CAC5B,MAAoB;IAEpB,OAAO,CACL,mBAAmB,IAAI,MAAM;QAC7B,OAAO,MAAM,CAAC,iBAAiB,KAAK,UAAU,CAC/C,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAsB,eAAe;IAsBnC;;;;;;OAMG;IACH,MAAM,CAAC,2BAA2B,CAChC,iBAAwC;QAExC,OAAO,IAAI,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,0BAA0B,CAC/B,iBAA+B;QAE/B,OAAO,eAAe,CAAC,2BAA2B,CAAC,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;YACvE,IAAI,UAAgD,CAAC;YACrD,IAAI,qBAAqB,CAAC,iBAAiB,CAAC,EAAE;gBAC5C,UAAU,GAAG,iBAAiB,CAAC,iBAAiB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;aACvE;iBAAM;gBACL,UAAU,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBAC3C,iBAAiB,CAAC,kBAAkB,CAClC,OAAO,CAAC,WAAW,EACnB,CAAC,GAAG,EAAE,OAAO,EAAE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;QAC5B,IAAI,IAAI,KAAK,KAAK,EAAE;YAClB,OAAO,IAAI,CAAC;SACb;QACD,IAAI,KAAK,YAAY,qBAAqB,EAAE;YAC1C,OAAO,IAAI,CAAC,iBAAiB,KAAK,KAAK,CAAC,iBAAiB,CAAC;SAC3D;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC;CACF;AAED,MAAM,oBAAqB,SAAQ,eAAe;IAChD,gBAAgB,CAAC,OAA4B;QAC3C,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,mBAAQ,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,CAAC,KAAsB;QAC5B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CAAC,KAAsB;QAC5B,OAAO,KAAK,YAAY,oBAAoB,CAAC;IAC/C,CAAC;CACF"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-interface.d.ts DELETED
@@ -1,86 +0,0 @@
1
- /// <reference types="node" />
2
- import { CallCredentials } from './call-credentials';
3
- import { Status } from './constants';
4
- import { Deadline } from './deadline';
5
- import { Metadata } from './metadata';
6
- import { ServerSurfaceCall } from './server-call';
7
- export interface CallStreamOptions {
8
- deadline: Deadline;
9
- flags: number;
10
- host: string;
11
- parentCall: ServerSurfaceCall | null;
12
- }
13
- export type PartialCallStreamOptions = Partial<CallStreamOptions>;
14
- export interface StatusObject {
15
- code: Status;
16
- details: string;
17
- metadata: Metadata;
18
- }
19
- export type PartialStatusObject = Pick<StatusObject, 'code' | 'details'> & {
20
- metadata: Metadata | null;
21
- };
22
- export declare const enum WriteFlags {
23
- BufferHint = 1,
24
- NoCompress = 2,
25
- WriteThrough = 4
26
- }
27
- export interface WriteObject {
28
- message: Buffer;
29
- flags?: number;
30
- }
31
- export interface MetadataListener {
32
- (metadata: Metadata, next: (metadata: Metadata) => void): void;
33
- }
34
- export interface MessageListener {
35
- (message: any, next: (message: any) => void): void;
36
- }
37
- export interface StatusListener {
38
- (status: StatusObject, next: (status: StatusObject) => void): void;
39
- }
40
- export interface FullListener {
41
- onReceiveMetadata: MetadataListener;
42
- onReceiveMessage: MessageListener;
43
- onReceiveStatus: StatusListener;
44
- }
45
- export type Listener = Partial<FullListener>;
46
- /**
47
- * An object with methods for handling the responses to a call.
48
- */
49
- export interface InterceptingListener {
50
- onReceiveMetadata(metadata: Metadata): void;
51
- onReceiveMessage(message: any): void;
52
- onReceiveStatus(status: StatusObject): void;
53
- }
54
- export declare function isInterceptingListener(listener: Listener | InterceptingListener): listener is InterceptingListener;
55
- export declare class InterceptingListenerImpl implements InterceptingListener {
56
- private listener;
57
- private nextListener;
58
- private processingMetadata;
59
- private hasPendingMessage;
60
- private pendingMessage;
61
- private processingMessage;
62
- private pendingStatus;
63
- constructor(listener: FullListener, nextListener: InterceptingListener);
64
- private processPendingMessage;
65
- private processPendingStatus;
66
- onReceiveMetadata(metadata: Metadata): void;
67
- onReceiveMessage(message: any): void;
68
- onReceiveStatus(status: StatusObject): void;
69
- }
70
- export interface WriteCallback {
71
- (error?: Error | null): void;
72
- }
73
- export interface MessageContext {
74
- callback?: WriteCallback;
75
- flags?: number;
76
- }
77
- export interface Call {
78
- cancelWithStatus(status: Status, details: string): void;
79
- getPeer(): string;
80
- start(metadata: Metadata, listener: InterceptingListener): void;
81
- sendMessageWithContext(context: MessageContext, message: Buffer): void;
82
- startRead(): void;
83
- halfClose(): void;
84
- getCallNumber(): number;
85
- setCredentials(credentials: CallCredentials): void;
86
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-interface.js DELETED
@@ -1,84 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2022 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.InterceptingListenerImpl = exports.isInterceptingListener = void 0;
20
- function isInterceptingListener(listener) {
21
- return (listener.onReceiveMetadata !== undefined &&
22
- listener.onReceiveMetadata.length === 1);
23
- }
24
- exports.isInterceptingListener = isInterceptingListener;
25
- class InterceptingListenerImpl {
26
- constructor(listener, nextListener) {
27
- this.listener = listener;
28
- this.nextListener = nextListener;
29
- this.processingMetadata = false;
30
- this.hasPendingMessage = false;
31
- this.processingMessage = false;
32
- this.pendingStatus = null;
33
- }
34
- processPendingMessage() {
35
- if (this.hasPendingMessage) {
36
- this.nextListener.onReceiveMessage(this.pendingMessage);
37
- this.pendingMessage = null;
38
- this.hasPendingMessage = false;
39
- }
40
- }
41
- processPendingStatus() {
42
- if (this.pendingStatus) {
43
- this.nextListener.onReceiveStatus(this.pendingStatus);
44
- }
45
- }
46
- onReceiveMetadata(metadata) {
47
- this.processingMetadata = true;
48
- this.listener.onReceiveMetadata(metadata, metadata => {
49
- this.processingMetadata = false;
50
- this.nextListener.onReceiveMetadata(metadata);
51
- this.processPendingMessage();
52
- this.processPendingStatus();
53
- });
54
- }
55
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
56
- onReceiveMessage(message) {
57
- /* If this listener processes messages asynchronously, the last message may
58
- * be reordered with respect to the status */
59
- this.processingMessage = true;
60
- this.listener.onReceiveMessage(message, msg => {
61
- this.processingMessage = false;
62
- if (this.processingMetadata) {
63
- this.pendingMessage = msg;
64
- this.hasPendingMessage = true;
65
- }
66
- else {
67
- this.nextListener.onReceiveMessage(msg);
68
- this.processPendingStatus();
69
- }
70
- });
71
- }
72
- onReceiveStatus(status) {
73
- this.listener.onReceiveStatus(status, processedStatus => {
74
- if (this.processingMetadata || this.processingMessage) {
75
- this.pendingStatus = processedStatus;
76
- }
77
- else {
78
- this.nextListener.onReceiveStatus(processedStatus);
79
- }
80
- });
81
- }
82
- }
83
- exports.InterceptingListenerImpl = InterceptingListenerImpl;
84
- //# sourceMappingURL=call-interface.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-interface.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"call-interface.js","sourceRoot":"","sources":["../../src/call-interface.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAqEH,SAAgB,sBAAsB,CACpC,QAAyC;IAEzC,OAAO,CACL,QAAQ,CAAC,iBAAiB,KAAK,SAAS;QACxC,QAAQ,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CACxC,CAAC;AACJ,CAAC;AAPD,wDAOC;AAED,MAAa,wBAAwB;IAMnC,YACU,QAAsB,EACtB,YAAkC;QADlC,aAAQ,GAAR,QAAQ,CAAc;QACtB,iBAAY,GAAZ,YAAY,CAAsB;QAPpC,uBAAkB,GAAG,KAAK,CAAC;QAC3B,sBAAiB,GAAG,KAAK,CAAC;QAE1B,sBAAiB,GAAG,KAAK,CAAC;QAC1B,kBAAa,GAAwB,IAAI,CAAC;IAI/C,CAAC;IAEI,qBAAqB;QAC3B,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAA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;YACtD,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBACrD,IAAI,CAAC,aAAa,GAAG,eAAe,CAAC;aACtC;iBAAM;gBACL,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,eAAe,CAAC,CAAC;aACpD;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,4DA2DC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-number.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function getNextCallNumber(): number;
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-number.js DELETED
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2022 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.getNextCallNumber = void 0;
20
- let nextCallNumber = 0;
21
- function getNextCallNumber() {
22
- return nextCallNumber++;
23
- }
24
- exports.getNextCallNumber = getNextCallNumber;
25
- //# sourceMappingURL=call-number.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/call-number.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"call-number.js","sourceRoot":"","sources":["../../src/call-number.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,IAAI,cAAc,GAAG,CAAC,CAAC;AAEvB,SAAgB,iBAAiB;IAC/B,OAAO,cAAc,EAAE,CAAC;AAC1B,CAAC;AAFD,8CAEC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/call.d.ts DELETED
@@ -1,83 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import { EventEmitter } from 'events';
5
- import { Duplex, Readable, Writable } from 'stream';
6
- import { StatusObject } from './call-interface';
7
- import { EmitterAugmentation1 } from './events';
8
- import { Metadata } from './metadata';
9
- import { ObjectReadable, ObjectWritable, WriteCallback } from './object-stream';
10
- import { InterceptingCallInterface } from './client-interceptors';
11
- /**
12
- * A type extending the built-in Error object with additional fields.
13
- */
14
- export type ServiceError = StatusObject & Error;
15
- /**
16
- * A base type for all user-facing values returned by client-side method calls.
17
- */
18
- export type SurfaceCall = {
19
- call?: InterceptingCallInterface;
20
- cancel(): void;
21
- getPeer(): string;
22
- } & EmitterAugmentation1<'metadata', Metadata> & EmitterAugmentation1<'status', StatusObject> & EventEmitter;
23
- /**
24
- * A type representing the return value of a unary method call.
25
- */
26
- export type ClientUnaryCall = SurfaceCall;
27
- /**
28
- * A type representing the return value of a server stream method call.
29
- */
30
- export type ClientReadableStream<ResponseType> = {
31
- deserialize: (chunk: Buffer) => ResponseType;
32
- } & SurfaceCall & ObjectReadable<ResponseType>;
33
- /**
34
- * A type representing the return value of a client stream method call.
35
- */
36
- export type ClientWritableStream<RequestType> = {
37
- serialize: (value: RequestType) => Buffer;
38
- } & SurfaceCall & ObjectWritable<RequestType>;
39
- /**
40
- * A type representing the return value of a bidirectional stream method call.
41
- */
42
- export type ClientDuplexStream<RequestType, ResponseType> = ClientWritableStream<RequestType> & ClientReadableStream<ResponseType>;
43
- /**
44
- * Construct a ServiceError from a StatusObject. This function exists primarily
45
- * as an attempt to make the error stack trace clearly communicate that the
46
- * error is not necessarily a problem in gRPC itself.
47
- * @param status
48
- */
49
- export declare function callErrorFromStatus(status: StatusObject, callerStack: string): ServiceError;
50
- export declare class ClientUnaryCallImpl extends EventEmitter implements ClientUnaryCall {
51
- call?: InterceptingCallInterface;
52
- constructor();
53
- cancel(): void;
54
- getPeer(): string;
55
- }
56
- export declare class ClientReadableStreamImpl<ResponseType> extends Readable implements ClientReadableStream<ResponseType> {
57
- readonly deserialize: (chunk: Buffer) => ResponseType;
58
- call?: InterceptingCallInterface;
59
- constructor(deserialize: (chunk: Buffer) => ResponseType);
60
- cancel(): void;
61
- getPeer(): string;
62
- _read(_size: number): void;
63
- }
64
- export declare class ClientWritableStreamImpl<RequestType> extends Writable implements ClientWritableStream<RequestType> {
65
- readonly serialize: (value: RequestType) => Buffer;
66
- call?: InterceptingCallInterface;
67
- constructor(serialize: (value: RequestType) => Buffer);
68
- cancel(): void;
69
- getPeer(): string;
70
- _write(chunk: RequestType, encoding: string, cb: WriteCallback): void;
71
- _final(cb: Function): void;
72
- }
73
- export declare class ClientDuplexStreamImpl<RequestType, ResponseType> extends Duplex implements ClientDuplexStream<RequestType, ResponseType> {
74
- readonly serialize: (value: RequestType) => Buffer;
75
- readonly deserialize: (chunk: Buffer) => ResponseType;
76
- call?: InterceptingCallInterface;
77
- constructor(serialize: (value: RequestType) => Buffer, deserialize: (chunk: Buffer) => ResponseType);
78
- cancel(): void;
79
- getPeer(): string;
80
- _read(_size: number): void;
81
- _write(chunk: RequestType, encoding: string, cb: WriteCallback): void;
82
- _final(cb: Function): void;
83
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/call.js DELETED
@@ -1,136 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2019 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = exports.callErrorFromStatus = void 0;
20
- const events_1 = require("events");
21
- const stream_1 = require("stream");
22
- const constants_1 = require("./constants");
23
- /**
24
- * Construct a ServiceError from a StatusObject. This function exists primarily
25
- * as an attempt to make the error stack trace clearly communicate that the
26
- * error is not necessarily a problem in gRPC itself.
27
- * @param status
28
- */
29
- function callErrorFromStatus(status, callerStack) {
30
- const message = `${status.code} ${constants_1.Status[status.code]}: ${status.details}`;
31
- const error = new Error(message);
32
- const stack = `${error.stack}\nfor call at\n${callerStack}`;
33
- return Object.assign(new Error(message), status, { stack });
34
- }
35
- exports.callErrorFromStatus = callErrorFromStatus;
36
- class ClientUnaryCallImpl extends events_1.EventEmitter {
37
- constructor() {
38
- super();
39
- }
40
- cancel() {
41
- var _a;
42
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client');
43
- }
44
- getPeer() {
45
- var _a, _b;
46
- return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown';
47
- }
48
- }
49
- exports.ClientUnaryCallImpl = ClientUnaryCallImpl;
50
- class ClientReadableStreamImpl extends stream_1.Readable {
51
- constructor(deserialize) {
52
- super({ objectMode: true });
53
- this.deserialize = deserialize;
54
- }
55
- cancel() {
56
- var _a;
57
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client');
58
- }
59
- getPeer() {
60
- var _a, _b;
61
- return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown';
62
- }
63
- _read(_size) {
64
- var _a;
65
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead();
66
- }
67
- }
68
- exports.ClientReadableStreamImpl = ClientReadableStreamImpl;
69
- class ClientWritableStreamImpl extends stream_1.Writable {
70
- constructor(serialize) {
71
- super({ objectMode: true });
72
- this.serialize = serialize;
73
- }
74
- cancel() {
75
- var _a;
76
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client');
77
- }
78
- getPeer() {
79
- var _a, _b;
80
- return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown';
81
- }
82
- _write(chunk, encoding, cb) {
83
- var _a;
84
- const context = {
85
- callback: cb,
86
- };
87
- const flags = Number(encoding);
88
- if (!Number.isNaN(flags)) {
89
- context.flags = flags;
90
- }
91
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk);
92
- }
93
- _final(cb) {
94
- var _a;
95
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose();
96
- cb();
97
- }
98
- }
99
- exports.ClientWritableStreamImpl = ClientWritableStreamImpl;
100
- class ClientDuplexStreamImpl extends stream_1.Duplex {
101
- constructor(serialize, deserialize) {
102
- super({ objectMode: true });
103
- this.serialize = serialize;
104
- this.deserialize = deserialize;
105
- }
106
- cancel() {
107
- var _a;
108
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.cancelWithStatus(constants_1.Status.CANCELLED, 'Cancelled on client');
109
- }
110
- getPeer() {
111
- var _a, _b;
112
- return (_b = (_a = this.call) === null || _a === void 0 ? void 0 : _a.getPeer()) !== null && _b !== void 0 ? _b : 'unknown';
113
- }
114
- _read(_size) {
115
- var _a;
116
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.startRead();
117
- }
118
- _write(chunk, encoding, cb) {
119
- var _a;
120
- const context = {
121
- callback: cb,
122
- };
123
- const flags = Number(encoding);
124
- if (!Number.isNaN(flags)) {
125
- context.flags = flags;
126
- }
127
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk);
128
- }
129
- _final(cb) {
130
- var _a;
131
- (_a = this.call) === null || _a === void 0 ? void 0 : _a.halfClose();
132
- cb();
133
- }
134
- }
135
- exports.ClientDuplexStreamImpl = ClientDuplexStreamImpl;
136
- //# sourceMappingURL=call.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/call.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/call.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,mCAAsC;AACtC,mCAAoD;AAGpD,2CAAqC;AAiDrC;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,MAAoB,EACpB,WAAmB;IAEnB,MAAM,OAAO,GAAG,GAAG,MAAM,CAAC,IAAI,IAAI,kBAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC;IAC3E,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;IACjC,MAAM,KAAK,GAAG,GAAG,KAAK,CAAC,KAAK,kBAAkB,WAAW,EAAE,CAAC;IAC5D,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,O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,CAAC,CAAC;QAC/B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACxB,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC;SACvB;QACD,MAAA,IAAI,CAAC,IAAI,0CAAE,sBAAsB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpD,CAAC;IAED,MAAM,CAAC,EAAY;;QACjB,MAAA,IAAI,CAAC,IAAI,0CAAE,SAAS,EAAE,CAAC;QACvB,EAAE,EAAE,CAAC;IACP,CAAC;CACF;AAvCD,wDAuCC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel-credentials.d.ts DELETED
@@ -1,83 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { ConnectionOptions, PeerCertificate, SecureContext } from 'tls';
4
- import { CallCredentials } from './call-credentials';
5
- /**
6
- * A callback that will receive the expected hostname and presented peer
7
- * certificate as parameters. The callback should return an error to
8
- * indicate that the presented certificate is considered invalid and
9
- * otherwise returned undefined.
10
- */
11
- export type CheckServerIdentityCallback = (hostname: string, cert: PeerCertificate) => Error | undefined;
12
- /**
13
- * Additional peer verification options that can be set when creating
14
- * SSL credentials.
15
- */
16
- export interface VerifyOptions {
17
- /**
18
- * If set, this callback will be invoked after the usual hostname verification
19
- * has been performed on the peer certificate.
20
- */
21
- checkServerIdentity?: CheckServerIdentityCallback;
22
- }
23
- /**
24
- * A class that contains credentials for communicating over a channel, as well
25
- * as a set of per-call credentials, which are applied to every method call made
26
- * over a channel initialized with an instance of this class.
27
- */
28
- export declare abstract class ChannelCredentials {
29
- protected callCredentials: CallCredentials;
30
- protected constructor(callCredentials?: CallCredentials);
31
- /**
32
- * Returns a copy of this object with the included set of per-call credentials
33
- * expanded to include callCredentials.
34
- * @param callCredentials A CallCredentials object to associate with this
35
- * instance.
36
- */
37
- abstract compose(callCredentials: CallCredentials): ChannelCredentials;
38
- /**
39
- * Gets the set of per-call credentials associated with this instance.
40
- */
41
- _getCallCredentials(): CallCredentials;
42
- /**
43
- * Gets a SecureContext object generated from input parameters if this
44
- * instance was created with createSsl, or null if this instance was created
45
- * with createInsecure.
46
- */
47
- abstract _getConnectionOptions(): ConnectionOptions | null;
48
- /**
49
- * Indicates whether this credentials object creates a secure channel.
50
- */
51
- abstract _isSecure(): boolean;
52
- /**
53
- * Check whether two channel credentials objects are equal. Two secure
54
- * credentials are equal if they were constructed with the same parameters.
55
- * @param other The other ChannelCredentials Object
56
- */
57
- abstract _equals(other: ChannelCredentials): boolean;
58
- /**
59
- * Return a new ChannelCredentials instance with a given set of credentials.
60
- * The resulting instance can be used to construct a Channel that communicates
61
- * over TLS.
62
- * @param rootCerts The root certificate data.
63
- * @param privateKey The client certificate private key, if available.
64
- * @param certChain The client certificate key chain, if available.
65
- * @param verifyOptions Additional options to modify certificate verification
66
- */
67
- static createSsl(rootCerts?: Buffer | null, privateKey?: Buffer | null, certChain?: Buffer | null, verifyOptions?: VerifyOptions): ChannelCredentials;
68
- /**
69
- * Return a new ChannelCredentials instance with credentials created using
70
- * the provided secureContext. The resulting instances can be used to
71
- * construct a Channel that communicates over TLS. gRPC will not override
72
- * anything in the provided secureContext, so the environment variables
73
- * GRPC_SSL_CIPHER_SUITES and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH will
74
- * not be applied.
75
- * @param secureContext The return value of tls.createSecureContext()
76
- * @param verifyOptions Additional options to modify certificate verification
77
- */
78
- static createFromSecureContext(secureContext: SecureContext, verifyOptions?: VerifyOptions): ChannelCredentials;
79
- /**
80
- * Return a new ChannelCredentials instance with no credentials.
81
- */
82
- static createInsecure(): ChannelCredentials;
83
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel-credentials.js DELETED
@@ -1,177 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2019 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.ChannelCredentials = void 0;
20
- const tls_1 = require("tls");
21
- const call_credentials_1 = require("./call-credentials");
22
- const tls_helpers_1 = require("./tls-helpers");
23
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
- function verifyIsBufferOrNull(obj, friendlyName) {
25
- if (obj && !(obj instanceof Buffer)) {
26
- throw new TypeError(`${friendlyName}, if provided, must be a Buffer.`);
27
- }
28
- }
29
- /**
30
- * A class that contains credentials for communicating over a channel, as well
31
- * as a set of per-call credentials, which are applied to every method call made
32
- * over a channel initialized with an instance of this class.
33
- */
34
- class ChannelCredentials {
35
- constructor(callCredentials) {
36
- this.callCredentials = callCredentials || call_credentials_1.CallCredentials.createEmpty();
37
- }
38
- /**
39
- * Gets the set of per-call credentials associated with this instance.
40
- */
41
- _getCallCredentials() {
42
- return this.callCredentials;
43
- }
44
- /**
45
- * Return a new ChannelCredentials instance with a given set of credentials.
46
- * The resulting instance can be used to construct a Channel that communicates
47
- * over TLS.
48
- * @param rootCerts The root certificate data.
49
- * @param privateKey The client certificate private key, if available.
50
- * @param certChain The client certificate key chain, if available.
51
- * @param verifyOptions Additional options to modify certificate verification
52
- */
53
- static createSsl(rootCerts, privateKey, certChain, verifyOptions) {
54
- var _a;
55
- verifyIsBufferOrNull(rootCerts, 'Root certificate');
56
- verifyIsBufferOrNull(privateKey, 'Private key');
57
- verifyIsBufferOrNull(certChain, 'Certificate chain');
58
- if (privateKey && !certChain) {
59
- throw new Error('Private key must be given with accompanying certificate chain');
60
- }
61
- if (!privateKey && certChain) {
62
- throw new Error('Certificate chain must be given with accompanying private key');
63
- }
64
- const secureContext = (0, tls_1.createSecureContext)({
65
- ca: (_a = rootCerts !== null && rootCerts !== void 0 ? rootCerts : (0, tls_helpers_1.getDefaultRootsData)()) !== null && _a !== void 0 ? _a : undefined,
66
- key: privateKey !== null && privateKey !== void 0 ? privateKey : undefined,
67
- cert: certChain !== null && certChain !== void 0 ? certChain : undefined,
68
- ciphers: tls_helpers_1.CIPHER_SUITES,
69
- });
70
- return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {});
71
- }
72
- /**
73
- * Return a new ChannelCredentials instance with credentials created using
74
- * the provided secureContext. The resulting instances can be used to
75
- * construct a Channel that communicates over TLS. gRPC will not override
76
- * anything in the provided secureContext, so the environment variables
77
- * GRPC_SSL_CIPHER_SUITES and GRPC_DEFAULT_SSL_ROOTS_FILE_PATH will
78
- * not be applied.
79
- * @param secureContext The return value of tls.createSecureContext()
80
- * @param verifyOptions Additional options to modify certificate verification
81
- */
82
- static createFromSecureContext(secureContext, verifyOptions) {
83
- return new SecureChannelCredentialsImpl(secureContext, verifyOptions !== null && verifyOptions !== void 0 ? verifyOptions : {});
84
- }
85
- /**
86
- * Return a new ChannelCredentials instance with no credentials.
87
- */
88
- static createInsecure() {
89
- return new InsecureChannelCredentialsImpl();
90
- }
91
- }
92
- exports.ChannelCredentials = ChannelCredentials;
93
- class InsecureChannelCredentialsImpl extends ChannelCredentials {
94
- constructor(callCredentials) {
95
- super(callCredentials);
96
- }
97
- compose(callCredentials) {
98
- throw new Error('Cannot compose insecure credentials');
99
- }
100
- _getConnectionOptions() {
101
- return null;
102
- }
103
- _isSecure() {
104
- return false;
105
- }
106
- _equals(other) {
107
- return other instanceof InsecureChannelCredentialsImpl;
108
- }
109
- }
110
- class SecureChannelCredentialsImpl extends ChannelCredentials {
111
- constructor(secureContext, verifyOptions) {
112
- super();
113
- this.secureContext = secureContext;
114
- this.verifyOptions = verifyOptions;
115
- this.connectionOptions = {
116
- secureContext,
117
- };
118
- // Node asserts that this option is a function, so we cannot pass undefined
119
- if (verifyOptions === null || verifyOptions === void 0 ? void 0 : verifyOptions.checkServerIdentity) {
120
- this.connectionOptions.checkServerIdentity =
121
- verifyOptions.checkServerIdentity;
122
- }
123
- }
124
- compose(callCredentials) {
125
- const combinedCallCredentials = this.callCredentials.compose(callCredentials);
126
- return new ComposedChannelCredentialsImpl(this, combinedCallCredentials);
127
- }
128
- _getConnectionOptions() {
129
- // Copy to prevent callers from mutating this.connectionOptions
130
- return Object.assign({}, this.connectionOptions);
131
- }
132
- _isSecure() {
133
- return true;
134
- }
135
- _equals(other) {
136
- if (this === other) {
137
- return true;
138
- }
139
- if (other instanceof SecureChannelCredentialsImpl) {
140
- return (this.secureContext === other.secureContext &&
141
- this.verifyOptions.checkServerIdentity ===
142
- other.verifyOptions.checkServerIdentity);
143
- }
144
- else {
145
- return false;
146
- }
147
- }
148
- }
149
- class ComposedChannelCredentialsImpl extends ChannelCredentials {
150
- constructor(channelCredentials, callCreds) {
151
- super(callCreds);
152
- this.channelCredentials = channelCredentials;
153
- }
154
- compose(callCredentials) {
155
- const combinedCallCredentials = this.callCredentials.compose(callCredentials);
156
- return new ComposedChannelCredentialsImpl(this.channelCredentials, combinedCallCredentials);
157
- }
158
- _getConnectionOptions() {
159
- return this.channelCredentials._getConnectionOptions();
160
- }
161
- _isSecure() {
162
- return true;
163
- }
164
- _equals(other) {
165
- if (this === other) {
166
- return true;
167
- }
168
- if (other instanceof ComposedChannelCredentialsImpl) {
169
- return (this.channelCredentials._equals(other.channelCredentials) &&
170
- this.callCredentials._equals(other.callCredentials));
171
- }
172
- else {
173
- return false;
174
- }
175
- }
176
- }
177
- //# sourceMappingURL=channel-credentials.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel-credentials.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"channel-credentials.js","sourceRoot":"","sources":["../../src/channel-credentials.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,6BAKa;AAEb,yDAAqD;AACrD,+CAAmE;AAEnE,8DAA8D;AAC9D,SAAS,oBAAoB,CAAC,GAAQ,EAAE,YAAoB;IAC1D,IAAI,GAAG,IAAI,CAAC,CAAC,GAAG,YAAY,MAAM,CAAC,EAAE;QACnC,MAAM,IAAI,SAAS,CAAC,GAAG,YAAY,kCAAkC,CAAC,CAAC;KACxE;AACH,CAAC;AAyBD;;;;GAIG;AACH,MAAsB,kBAAkB;IAGtC,YAAsB,eAAiC;QACrD,IAAI,CAAC,eAAe,GAAG,eAAe,IAAI,kCAAe,CAAC,WAAW,EAAE,CAAC;IAC1E,CAAC;IASD;;OAEG;IACH,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAqBD;;;;;;;;OAQG;IACH,MAAM,CAAC,SAAS,CACd,SAAyB,EACzB,UAA0B,EAC1B,SAAyB,EACzB,aAA6B;;QAE7B,oBAAoB,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAAC;QACpD,oBAAoB,CAAC,UAAU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CAAC,CAAC;QAHT,uBAAkB,GAAlB,kBAAkB,CAA8B;IAI1D,CAAC;IACD,OAAO,CAAC,eAAgC;QACtC,MAAM,uBAAuB,GAC3B,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAChD,OAAO,IAAI,8BAA8B,CACvC,IAAI,CAAC,kBAAkB,EACvB,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAED,qBAAqB;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC,qBAAqB,EAAE,CAAC;IACzD,CAAC;IACD,SAAS;QACP,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CAAC,KAAyB;QAC/B,IAAI,IAAI,KAAK,KAAK,EAAE;YAClB,OAAO,IAAI,CAAC;SACb;QACD,IAAI,KAAK,YAAY,8BAA8B,EAAE;YACnD,OAAO,CACL,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC;gBACzD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,CACpD,CAAC;SACH;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC;CACF"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel-options.d.ts DELETED
@@ -1,72 +0,0 @@
1
- import { CompressionAlgorithms } from './compression-algorithms';
2
- /**
3
- * An interface that contains options used when initializing a Channel instance.
4
- */
5
- export interface ChannelOptions {
6
- 'grpc.ssl_target_name_override'?: string;
7
- 'grpc.primary_user_agent'?: string;
8
- 'grpc.secondary_user_agent'?: string;
9
- 'grpc.default_authority'?: string;
10
- 'grpc.keepalive_time_ms'?: number;
11
- 'grpc.keepalive_timeout_ms'?: number;
12
- 'grpc.keepalive_permit_without_calls'?: number;
13
- 'grpc.service_config'?: string;
14
- 'grpc.max_concurrent_streams'?: number;
15
- 'grpc.initial_reconnect_backoff_ms'?: number;
16
- 'grpc.max_reconnect_backoff_ms'?: number;
17
- 'grpc.use_local_subchannel_pool'?: number;
18
- 'grpc.max_send_message_length'?: number;
19
- 'grpc.max_receive_message_length'?: number;
20
- 'grpc.enable_http_proxy'?: number;
21
- 'grpc.http_connect_target'?: string;
22
- 'grpc.http_connect_creds'?: string;
23
- 'grpc.default_compression_algorithm'?: CompressionAlgorithms;
24
- 'grpc.enable_channelz'?: number;
25
- 'grpc.dns_min_time_between_resolutions_ms'?: number;
26
- 'grpc.enable_retries'?: number;
27
- 'grpc.per_rpc_retry_buffer_size'?: number;
28
- 'grpc.retry_buffer_size'?: number;
29
- 'grpc.max_connection_age_ms'?: number;
30
- 'grpc.max_connection_age_grace_ms'?: number;
31
- 'grpc-node.max_session_memory'?: number;
32
- 'grpc.service_config_disable_resolution'?: number;
33
- 'grpc.client_idle_timeout_ms'?: number;
34
- /**
35
- * Set the enableTrace option in TLS clients and servers
36
- */
37
- 'grpc-node.tls_enable_trace'?: number;
38
- [key: string]: any;
39
- }
40
- /**
41
- * This is for checking provided options at runtime. This is an object for
42
- * easier membership checking.
43
- */
44
- export declare const recognizedOptions: {
45
- 'grpc.ssl_target_name_override': boolean;
46
- 'grpc.primary_user_agent': boolean;
47
- 'grpc.secondary_user_agent': boolean;
48
- 'grpc.default_authority': boolean;
49
- 'grpc.keepalive_time_ms': boolean;
50
- 'grpc.keepalive_timeout_ms': boolean;
51
- 'grpc.keepalive_permit_without_calls': boolean;
52
- 'grpc.service_config': boolean;
53
- 'grpc.max_concurrent_streams': boolean;
54
- 'grpc.initial_reconnect_backoff_ms': boolean;
55
- 'grpc.max_reconnect_backoff_ms': boolean;
56
- 'grpc.use_local_subchannel_pool': boolean;
57
- 'grpc.max_send_message_length': boolean;
58
- 'grpc.max_receive_message_length': boolean;
59
- 'grpc.enable_http_proxy': boolean;
60
- 'grpc.enable_channelz': boolean;
61
- 'grpc.dns_min_time_between_resolutions_ms': boolean;
62
- 'grpc.enable_retries': boolean;
63
- 'grpc.per_rpc_retry_buffer_size': boolean;
64
- 'grpc.retry_buffer_size': boolean;
65
- 'grpc.max_connection_age_ms': boolean;
66
- 'grpc.max_connection_age_grace_ms': boolean;
67
- 'grpc-node.max_session_memory': boolean;
68
- 'grpc.service_config_disable_resolution': boolean;
69
- 'grpc.client_idle_timeout_ms': boolean;
70
- 'grpc-node.tls_enable_trace': boolean;
71
- };
72
- export declare function channelOptionsEqual(options1: ChannelOptions, options2: ChannelOptions): boolean;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel-options.js DELETED
@@ -1,69 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2019 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.channelOptionsEqual = exports.recognizedOptions = void 0;
20
- /**
21
- * This is for checking provided options at runtime. This is an object for
22
- * easier membership checking.
23
- */
24
- exports.recognizedOptions = {
25
- 'grpc.ssl_target_name_override': true,
26
- 'grpc.primary_user_agent': true,
27
- 'grpc.secondary_user_agent': true,
28
- 'grpc.default_authority': true,
29
- 'grpc.keepalive_time_ms': true,
30
- 'grpc.keepalive_timeout_ms': true,
31
- 'grpc.keepalive_permit_without_calls': true,
32
- 'grpc.service_config': true,
33
- 'grpc.max_concurrent_streams': true,
34
- 'grpc.initial_reconnect_backoff_ms': true,
35
- 'grpc.max_reconnect_backoff_ms': true,
36
- 'grpc.use_local_subchannel_pool': true,
37
- 'grpc.max_send_message_length': true,
38
- 'grpc.max_receive_message_length': true,
39
- 'grpc.enable_http_proxy': true,
40
- 'grpc.enable_channelz': true,
41
- 'grpc.dns_min_time_between_resolutions_ms': true,
42
- 'grpc.enable_retries': true,
43
- 'grpc.per_rpc_retry_buffer_size': true,
44
- 'grpc.retry_buffer_size': true,
45
- 'grpc.max_connection_age_ms': true,
46
- 'grpc.max_connection_age_grace_ms': true,
47
- 'grpc-node.max_session_memory': true,
48
- 'grpc.service_config_disable_resolution': true,
49
- 'grpc.client_idle_timeout_ms': true,
50
- 'grpc-node.tls_enable_trace': true,
51
- };
52
- function channelOptionsEqual(options1, options2) {
53
- const keys1 = Object.keys(options1).sort();
54
- const keys2 = Object.keys(options2).sort();
55
- if (keys1.length !== keys2.length) {
56
- return false;
57
- }
58
- for (let i = 0; i < keys1.length; i += 1) {
59
- if (keys1[i] !== keys2[i]) {
60
- return false;
61
- }
62
- if (options1[keys1[i]] !== options2[keys2[i]]) {
63
- return false;
64
- }
65
- }
66
- return true;
67
- }
68
- exports.channelOptionsEqual = channelOptionsEqual;
69
- //# sourceMappingURL=channel-options.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel-options.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"channel-options.js","sourceRoot":"","sources":["../../src/channel-options.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAoDH;;;GAGG;AACU,QAAA,iBAAiB,GAAG;IAC/B,+BAA+B,EAAE,IAAI;IACrC,yBAAyB,EAAE,IAAI;IAC/B,2BAA2B,EAAE,IAAI;IACjC,wBAAwB,EAAE,IAAI;IAC9B,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,KAAK,CAAC;SACd;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAlBD,kDAkBC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel.d.ts DELETED
@@ -1,76 +0,0 @@
1
- import { ChannelCredentials } from './channel-credentials';
2
- import { ChannelOptions } from './channel-options';
3
- import { ServerSurfaceCall } from './server-call';
4
- import { ConnectivityState } from './connectivity-state';
5
- import { ChannelRef } from './channelz';
6
- import { Call } from './call-interface';
7
- import { Deadline } from './deadline';
8
- /**
9
- * An interface that represents a communication channel to a server specified
10
- * by a given address.
11
- */
12
- export interface Channel {
13
- /**
14
- * Close the channel. This has the same functionality as the existing
15
- * grpc.Client.prototype.close
16
- */
17
- close(): void;
18
- /**
19
- * Return the target that this channel connects to
20
- */
21
- getTarget(): string;
22
- /**
23
- * Get the channel's current connectivity state. This method is here mainly
24
- * because it is in the existing internal Channel class, and there isn't
25
- * another good place to put it.
26
- * @param tryToConnect If true, the channel will start connecting if it is
27
- * idle. Otherwise, idle channels will only start connecting when a
28
- * call starts.
29
- */
30
- getConnectivityState(tryToConnect: boolean): ConnectivityState;
31
- /**
32
- * Watch for connectivity state changes. This is also here mainly because
33
- * it is in the existing external Channel class.
34
- * @param currentState The state to watch for transitions from. This should
35
- * always be populated by calling getConnectivityState immediately
36
- * before.
37
- * @param deadline A deadline for waiting for a state change
38
- * @param callback Called with no error when a state change, or with an
39
- * error if the deadline passes without a state change.
40
- */
41
- watchConnectivityState(currentState: ConnectivityState, deadline: Date | number, callback: (error?: Error) => void): void;
42
- /**
43
- * Get the channelz reference object for this channel. A request to the
44
- * channelz service for the id in this object will provide information
45
- * about this channel.
46
- */
47
- getChannelzRef(): ChannelRef;
48
- /**
49
- * Create a call object. Call is an opaque type that is used by the Client
50
- * class. This function is called by the gRPC library when starting a
51
- * request. Implementers should return an instance of Call that is returned
52
- * from calling createCall on an instance of the provided Channel class.
53
- * @param method The full method string to request.
54
- * @param deadline The call deadline
55
- * @param host A host string override for making the request
56
- * @param parentCall A server call to propagate some information from
57
- * @param propagateFlags A bitwise combination of elements of grpc.propagate
58
- * that indicates what information to propagate from parentCall.
59
- */
60
- createCall(method: string, deadline: Deadline, host: string | null | undefined, parentCall: ServerSurfaceCall | null, propagateFlags: number | null | undefined): Call;
61
- }
62
- export declare class ChannelImplementation implements Channel {
63
- private internalChannel;
64
- constructor(target: string, credentials: ChannelCredentials, options: ChannelOptions);
65
- close(): void;
66
- getTarget(): string;
67
- getConnectivityState(tryToConnect: boolean): ConnectivityState;
68
- watchConnectivityState(currentState: ConnectivityState, deadline: Date | number, callback: (error?: Error) => void): void;
69
- /**
70
- * Get the channelz reference object for this channel. The returned value is
71
- * garbage if channelz is disabled for this channel.
72
- * @returns
73
- */
74
- getChannelzRef(): ChannelRef;
75
- createCall(method: string, deadline: Deadline, host: string | null | undefined, parentCall: ServerSurfaceCall | null, propagateFlags: number | null | undefined): Call;
76
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel.js DELETED
@@ -1,68 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2019 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.ChannelImplementation = void 0;
20
- const channel_credentials_1 = require("./channel-credentials");
21
- const internal_channel_1 = require("./internal-channel");
22
- class ChannelImplementation {
23
- constructor(target, credentials, options) {
24
- if (typeof target !== 'string') {
25
- throw new TypeError('Channel target must be a string');
26
- }
27
- if (!(credentials instanceof channel_credentials_1.ChannelCredentials)) {
28
- throw new TypeError('Channel credentials must be a ChannelCredentials object');
29
- }
30
- if (options) {
31
- if (typeof options !== 'object') {
32
- throw new TypeError('Channel options must be an object');
33
- }
34
- }
35
- this.internalChannel = new internal_channel_1.InternalChannel(target, credentials, options);
36
- }
37
- close() {
38
- this.internalChannel.close();
39
- }
40
- getTarget() {
41
- return this.internalChannel.getTarget();
42
- }
43
- getConnectivityState(tryToConnect) {
44
- return this.internalChannel.getConnectivityState(tryToConnect);
45
- }
46
- watchConnectivityState(currentState, deadline, callback) {
47
- this.internalChannel.watchConnectivityState(currentState, deadline, callback);
48
- }
49
- /**
50
- * Get the channelz reference object for this channel. The returned value is
51
- * garbage if channelz is disabled for this channel.
52
- * @returns
53
- */
54
- getChannelzRef() {
55
- return this.internalChannel.getChannelzRef();
56
- }
57
- createCall(method, deadline, host, parentCall, propagateFlags) {
58
- if (typeof method !== 'string') {
59
- throw new TypeError('Channel#createCall: method must be a string');
60
- }
61
- if (!(typeof deadline === 'number' || deadline instanceof Date)) {
62
- throw new TypeError('Channel#createCall: deadline must be a number or Date');
63
- }
64
- return this.internalChannel.createCall(method, deadline, host, parentCall, propagateFlags);
65
- }
66
- }
67
- exports.ChannelImplementation = ChannelImplementation;
68
- //# sourceMappingURL=channel.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/channel.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"channel.js","sourceRoot":"","sources":["../../src/channel.ts"],"names":[],"mappings":";AAAA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AAC,CAAC;SACpE;QACD,IAAI,CAAC,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,YAAY,IAAI,CAAC,EAAE;YAC/D,MAAM,IAAI,SAAS,CACjB,uDAAuD,CACxD,CAAC;SACH;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CACpC,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,CACf,CAAC;IACJ,CAAC;CACF;AAjFD,sDAiFC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/channelz.d.ts DELETED
@@ -1,109 +0,0 @@
1
- /// <reference types="node" />
2
- import { ConnectivityState } from './connectivity-state';
3
- import { ChannelTrace } from './generated/grpc/channelz/v1/ChannelTrace';
4
- import { SubchannelAddress } from './subchannel-address';
5
- import { ChannelzDefinition, ChannelzHandlers } from './generated/grpc/channelz/v1/Channelz';
6
- export type TraceSeverity = 'CT_UNKNOWN' | 'CT_INFO' | 'CT_WARNING' | 'CT_ERROR';
7
- export interface ChannelRef {
8
- kind: 'channel';
9
- id: number;
10
- name: string;
11
- }
12
- export interface SubchannelRef {
13
- kind: 'subchannel';
14
- id: number;
15
- name: string;
16
- }
17
- export interface ServerRef {
18
- kind: 'server';
19
- id: number;
20
- }
21
- export interface SocketRef {
22
- kind: 'socket';
23
- id: number;
24
- name: string;
25
- }
26
- interface TraceEvent {
27
- description: string;
28
- severity: TraceSeverity;
29
- timestamp: Date;
30
- childChannel?: ChannelRef;
31
- childSubchannel?: SubchannelRef;
32
- }
33
- export declare class ChannelzTrace {
34
- events: TraceEvent[];
35
- creationTimestamp: Date;
36
- eventsLogged: number;
37
- constructor();
38
- addTrace(severity: TraceSeverity, description: string, child?: ChannelRef | SubchannelRef): void;
39
- getTraceMessage(): ChannelTrace;
40
- }
41
- export declare class ChannelzChildrenTracker {
42
- private channelChildren;
43
- private subchannelChildren;
44
- private socketChildren;
45
- refChild(child: ChannelRef | SubchannelRef | SocketRef): void;
46
- unrefChild(child: ChannelRef | SubchannelRef | SocketRef): void;
47
- getChildLists(): ChannelzChildren;
48
- }
49
- export declare class ChannelzCallTracker {
50
- callsStarted: number;
51
- callsSucceeded: number;
52
- callsFailed: number;
53
- lastCallStartedTimestamp: Date | null;
54
- addCallStarted(): void;
55
- addCallSucceeded(): void;
56
- addCallFailed(): void;
57
- }
58
- export interface ChannelzChildren {
59
- channels: ChannelRef[];
60
- subchannels: SubchannelRef[];
61
- sockets: SocketRef[];
62
- }
63
- export interface ChannelInfo {
64
- target: string;
65
- state: ConnectivityState;
66
- trace: ChannelzTrace;
67
- callTracker: ChannelzCallTracker;
68
- children: ChannelzChildren;
69
- }
70
- export type SubchannelInfo = ChannelInfo;
71
- export interface ServerInfo {
72
- trace: ChannelzTrace;
73
- callTracker: ChannelzCallTracker;
74
- listenerChildren: ChannelzChildren;
75
- sessionChildren: ChannelzChildren;
76
- }
77
- export interface TlsInfo {
78
- cipherSuiteStandardName: string | null;
79
- cipherSuiteOtherName: string | null;
80
- localCertificate: Buffer | null;
81
- remoteCertificate: Buffer | null;
82
- }
83
- export interface SocketInfo {
84
- localAddress: SubchannelAddress | null;
85
- remoteAddress: SubchannelAddress | null;
86
- security: TlsInfo | null;
87
- remoteName: string | null;
88
- streamsStarted: number;
89
- streamsSucceeded: number;
90
- streamsFailed: number;
91
- messagesSent: number;
92
- messagesReceived: number;
93
- keepAlivesSent: number;
94
- lastLocalStreamCreatedTimestamp: Date | null;
95
- lastRemoteStreamCreatedTimestamp: Date | null;
96
- lastMessageSentTimestamp: Date | null;
97
- lastMessageReceivedTimestamp: Date | null;
98
- localFlowControlWindow: number | null;
99
- remoteFlowControlWindow: number | null;
100
- }
101
- export declare function registerChannelzChannel(name: string, getInfo: () => ChannelInfo, channelzEnabled: boolean): ChannelRef;
102
- export declare function registerChannelzSubchannel(name: string, getInfo: () => SubchannelInfo, channelzEnabled: boolean): SubchannelRef;
103
- export declare function registerChannelzServer(getInfo: () => ServerInfo, channelzEnabled: boolean): ServerRef;
104
- export declare function registerChannelzSocket(name: string, getInfo: () => SocketInfo, channelzEnabled: boolean): SocketRef;
105
- export declare function unregisterChannelzRef(ref: ChannelRef | SubchannelRef | ServerRef | SocketRef): void;
106
- export declare function getChannelzHandlers(): ChannelzHandlers;
107
- export declare function getChannelzServiceDefinition(): ChannelzDefinition;
108
- export declare function setup(): void;
109
- export {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/channelz.js DELETED
@@ -1,637 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2021 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.setup = exports.getChannelzServiceDefinition = exports.getChannelzHandlers = exports.unregisterChannelzRef = exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTracker = exports.ChannelzChildrenTracker = exports.ChannelzTrace = void 0;
20
- const net_1 = require("net");
21
- const connectivity_state_1 = require("./connectivity-state");
22
- const constants_1 = require("./constants");
23
- const subchannel_address_1 = require("./subchannel-address");
24
- const admin_1 = require("./admin");
25
- const make_client_1 = require("./make-client");
26
- function channelRefToMessage(ref) {
27
- return {
28
- channel_id: ref.id,
29
- name: ref.name,
30
- };
31
- }
32
- function subchannelRefToMessage(ref) {
33
- return {
34
- subchannel_id: ref.id,
35
- name: ref.name,
36
- };
37
- }
38
- function serverRefToMessage(ref) {
39
- return {
40
- server_id: ref.id,
41
- };
42
- }
43
- function socketRefToMessage(ref) {
44
- return {
45
- socket_id: ref.id,
46
- name: ref.name,
47
- };
48
- }
49
- /**
50
- * The loose upper bound on the number of events that should be retained in a
51
- * trace. This may be exceeded by up to a factor of 2. Arbitrarily chosen as a
52
- * number that should be large enough to contain the recent relevant
53
- * information, but small enough to not use excessive memory.
54
- */
55
- const TARGET_RETAINED_TRACES = 32;
56
- class ChannelzTrace {
57
- constructor() {
58
- this.events = [];
59
- this.eventsLogged = 0;
60
- this.creationTimestamp = new Date();
61
- }
62
- addTrace(severity, description, child) {
63
- const timestamp = new Date();
64
- this.events.push({
65
- description: description,
66
- severity: severity,
67
- timestamp: timestamp,
68
- childChannel: (child === null || child === void 0 ? void 0 : child.kind) === 'channel' ? child : undefined,
69
- childSubchannel: (child === null || child === void 0 ? void 0 : child.kind) === 'subchannel' ? child : undefined,
70
- });
71
- // Whenever the trace array gets too large, discard the first half
72
- if (this.events.length >= TARGET_RETAINED_TRACES * 2) {
73
- this.events = this.events.slice(TARGET_RETAINED_TRACES);
74
- }
75
- this.eventsLogged += 1;
76
- }
77
- getTraceMessage() {
78
- return {
79
- creation_timestamp: dateToProtoTimestamp(this.creationTimestamp),
80
- num_events_logged: this.eventsLogged,
81
- events: this.events.map(event => {
82
- return {
83
- description: event.description,
84
- severity: event.severity,
85
- timestamp: dateToProtoTimestamp(event.timestamp),
86
- channel_ref: event.childChannel
87
- ? channelRefToMessage(event.childChannel)
88
- : null,
89
- subchannel_ref: event.childSubchannel
90
- ? subchannelRefToMessage(event.childSubchannel)
91
- : null,
92
- };
93
- }),
94
- };
95
- }
96
- }
97
- exports.ChannelzTrace = ChannelzTrace;
98
- class ChannelzChildrenTracker {
99
- constructor() {
100
- this.channelChildren = new Map();
101
- this.subchannelChildren = new Map();
102
- this.socketChildren = new Map();
103
- }
104
- refChild(child) {
105
- var _a, _b, _c;
106
- switch (child.kind) {
107
- case 'channel': {
108
- const trackedChild = (_a = this.channelChildren.get(child.id)) !== null && _a !== void 0 ? _a : {
109
- ref: child,
110
- count: 0,
111
- };
112
- trackedChild.count += 1;
113
- this.channelChildren.set(child.id, trackedChild);
114
- break;
115
- }
116
- case 'subchannel': {
117
- const trackedChild = (_b = this.subchannelChildren.get(child.id)) !== null && _b !== void 0 ? _b : {
118
- ref: child,
119
- count: 0,
120
- };
121
- trackedChild.count += 1;
122
- this.subchannelChildren.set(child.id, trackedChild);
123
- break;
124
- }
125
- case 'socket': {
126
- const trackedChild = (_c = this.socketChildren.get(child.id)) !== null && _c !== void 0 ? _c : {
127
- ref: child,
128
- count: 0,
129
- };
130
- trackedChild.count += 1;
131
- this.socketChildren.set(child.id, trackedChild);
132
- break;
133
- }
134
- }
135
- }
136
- unrefChild(child) {
137
- switch (child.kind) {
138
- case 'channel': {
139
- const trackedChild = this.channelChildren.get(child.id);
140
- if (trackedChild !== undefined) {
141
- trackedChild.count -= 1;
142
- if (trackedChild.count === 0) {
143
- this.channelChildren.delete(child.id);
144
- }
145
- else {
146
- this.channelChildren.set(child.id, trackedChild);
147
- }
148
- }
149
- break;
150
- }
151
- case 'subchannel': {
152
- const trackedChild = this.subchannelChildren.get(child.id);
153
- if (trackedChild !== undefined) {
154
- trackedChild.count -= 1;
155
- if (trackedChild.count === 0) {
156
- this.subchannelChildren.delete(child.id);
157
- }
158
- else {
159
- this.subchannelChildren.set(child.id, trackedChild);
160
- }
161
- }
162
- break;
163
- }
164
- case 'socket': {
165
- const trackedChild = this.socketChildren.get(child.id);
166
- if (trackedChild !== undefined) {
167
- trackedChild.count -= 1;
168
- if (trackedChild.count === 0) {
169
- this.socketChildren.delete(child.id);
170
- }
171
- else {
172
- this.socketChildren.set(child.id, trackedChild);
173
- }
174
- }
175
- break;
176
- }
177
- }
178
- }
179
- getChildLists() {
180
- const channels = [];
181
- for (const { ref } of this.channelChildren.values()) {
182
- channels.push(ref);
183
- }
184
- const subchannels = [];
185
- for (const { ref } of this.subchannelChildren.values()) {
186
- subchannels.push(ref);
187
- }
188
- const sockets = [];
189
- for (const { ref } of this.socketChildren.values()) {
190
- sockets.push(ref);
191
- }
192
- return { channels, subchannels, sockets };
193
- }
194
- }
195
- exports.ChannelzChildrenTracker = ChannelzChildrenTracker;
196
- class ChannelzCallTracker {
197
- constructor() {
198
- this.callsStarted = 0;
199
- this.callsSucceeded = 0;
200
- this.callsFailed = 0;
201
- this.lastCallStartedTimestamp = null;
202
- }
203
- addCallStarted() {
204
- this.callsStarted += 1;
205
- this.lastCallStartedTimestamp = new Date();
206
- }
207
- addCallSucceeded() {
208
- this.callsSucceeded += 1;
209
- }
210
- addCallFailed() {
211
- this.callsFailed += 1;
212
- }
213
- }
214
- exports.ChannelzCallTracker = ChannelzCallTracker;
215
- let nextId = 1;
216
- function getNextId() {
217
- return nextId++;
218
- }
219
- const channels = [];
220
- const subchannels = [];
221
- const servers = [];
222
- const sockets = [];
223
- function registerChannelzChannel(name, getInfo, channelzEnabled) {
224
- const id = getNextId();
225
- const ref = { id, name, kind: 'channel' };
226
- if (channelzEnabled) {
227
- channels[id] = { ref, getInfo };
228
- }
229
- return ref;
230
- }
231
- exports.registerChannelzChannel = registerChannelzChannel;
232
- function registerChannelzSubchannel(name, getInfo, channelzEnabled) {
233
- const id = getNextId();
234
- const ref = { id, name, kind: 'subchannel' };
235
- if (channelzEnabled) {
236
- subchannels[id] = { ref, getInfo };
237
- }
238
- return ref;
239
- }
240
- exports.registerChannelzSubchannel = registerChannelzSubchannel;
241
- function registerChannelzServer(getInfo, channelzEnabled) {
242
- const id = getNextId();
243
- const ref = { id, kind: 'server' };
244
- if (channelzEnabled) {
245
- servers[id] = { ref, getInfo };
246
- }
247
- return ref;
248
- }
249
- exports.registerChannelzServer = registerChannelzServer;
250
- function registerChannelzSocket(name, getInfo, channelzEnabled) {
251
- const id = getNextId();
252
- const ref = { id, name, kind: 'socket' };
253
- if (channelzEnabled) {
254
- sockets[id] = { ref, getInfo };
255
- }
256
- return ref;
257
- }
258
- exports.registerChannelzSocket = registerChannelzSocket;
259
- function unregisterChannelzRef(ref) {
260
- switch (ref.kind) {
261
- case 'channel':
262
- delete channels[ref.id];
263
- return;
264
- case 'subchannel':
265
- delete subchannels[ref.id];
266
- return;
267
- case 'server':
268
- delete servers[ref.id];
269
- return;
270
- case 'socket':
271
- delete sockets[ref.id];
272
- return;
273
- }
274
- }
275
- exports.unregisterChannelzRef = unregisterChannelzRef;
276
- /**
277
- * Parse a single section of an IPv6 address as two bytes
278
- * @param addressSection A hexadecimal string of length up to 4
279
- * @returns The pair of bytes representing this address section
280
- */
281
- function parseIPv6Section(addressSection) {
282
- const numberValue = Number.parseInt(addressSection, 16);
283
- return [(numberValue / 256) | 0, numberValue % 256];
284
- }
285
- /**
286
- * Parse a chunk of an IPv6 address string to some number of bytes
287
- * @param addressChunk Some number of segments of up to 4 hexadecimal
288
- * characters each, joined by colons.
289
- * @returns The list of bytes representing this address chunk
290
- */
291
- function parseIPv6Chunk(addressChunk) {
292
- if (addressChunk === '') {
293
- return [];
294
- }
295
- const bytePairs = addressChunk
296
- .split(':')
297
- .map(section => parseIPv6Section(section));
298
- const result = [];
299
- return result.concat(...bytePairs);
300
- }
301
- /**
302
- * Converts an IPv4 or IPv6 address from string representation to binary
303
- * representation
304
- * @param ipAddress an IP address in standard IPv4 or IPv6 text format
305
- * @returns
306
- */
307
- function ipAddressStringToBuffer(ipAddress) {
308
- if ((0, net_1.isIPv4)(ipAddress)) {
309
- return Buffer.from(Uint8Array.from(ipAddress.split('.').map(segment => Number.parseInt(segment))));
310
- }
311
- else if ((0, net_1.isIPv6)(ipAddress)) {
312
- let leftSection;
313
- let rightSection;
314
- const doubleColonIndex = ipAddress.indexOf('::');
315
- if (doubleColonIndex === -1) {
316
- leftSection = ipAddress;
317
- rightSection = '';
318
- }
319
- else {
320
- leftSection = ipAddress.substring(0, doubleColonIndex);
321
- rightSection = ipAddress.substring(doubleColonIndex + 2);
322
- }
323
- const leftBuffer = Buffer.from(parseIPv6Chunk(leftSection));
324
- const rightBuffer = Buffer.from(parseIPv6Chunk(rightSection));
325
- const middleBuffer = Buffer.alloc(16 - leftBuffer.length - rightBuffer.length, 0);
326
- return Buffer.concat([leftBuffer, middleBuffer, rightBuffer]);
327
- }
328
- else {
329
- return null;
330
- }
331
- }
332
- function connectivityStateToMessage(state) {
333
- switch (state) {
334
- case connectivity_state_1.ConnectivityState.CONNECTING:
335
- return {
336
- state: 'CONNECTING',
337
- };
338
- case connectivity_state_1.ConnectivityState.IDLE:
339
- return {
340
- state: 'IDLE',
341
- };
342
- case connectivity_state_1.ConnectivityState.READY:
343
- return {
344
- state: 'READY',
345
- };
346
- case connectivity_state_1.ConnectivityState.SHUTDOWN:
347
- return {
348
- state: 'SHUTDOWN',
349
- };
350
- case connectivity_state_1.ConnectivityState.TRANSIENT_FAILURE:
351
- return {
352
- state: 'TRANSIENT_FAILURE',
353
- };
354
- default:
355
- return {
356
- state: 'UNKNOWN',
357
- };
358
- }
359
- }
360
- function dateToProtoTimestamp(date) {
361
- if (!date) {
362
- return null;
363
- }
364
- const millisSinceEpoch = date.getTime();
365
- return {
366
- seconds: (millisSinceEpoch / 1000) | 0,
367
- nanos: (millisSinceEpoch % 1000) * 1000000,
368
- };
369
- }
370
- function getChannelMessage(channelEntry) {
371
- const resolvedInfo = channelEntry.getInfo();
372
- return {
373
- ref: channelRefToMessage(channelEntry.ref),
374
- data: {
375
- target: resolvedInfo.target,
376
- state: connectivityStateToMessage(resolvedInfo.state),
377
- calls_started: resolvedInfo.callTracker.callsStarted,
378
- calls_succeeded: resolvedInfo.callTracker.callsSucceeded,
379
- calls_failed: resolvedInfo.callTracker.callsFailed,
380
- last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp),
381
- trace: resolvedInfo.trace.getTraceMessage(),
382
- },
383
- channel_ref: resolvedInfo.children.channels.map(ref => channelRefToMessage(ref)),
384
- subchannel_ref: resolvedInfo.children.subchannels.map(ref => subchannelRefToMessage(ref)),
385
- };
386
- }
387
- function GetChannel(call, callback) {
388
- const channelId = Number.parseInt(call.request.channel_id);
389
- const channelEntry = channels[channelId];
390
- if (channelEntry === undefined) {
391
- callback({
392
- code: constants_1.Status.NOT_FOUND,
393
- details: 'No channel data found for id ' + channelId,
394
- });
395
- return;
396
- }
397
- callback(null, { channel: getChannelMessage(channelEntry) });
398
- }
399
- function GetTopChannels(call, callback) {
400
- const maxResults = Number.parseInt(call.request.max_results);
401
- const resultList = [];
402
- let i = Number.parseInt(call.request.start_channel_id);
403
- for (; i < channels.length; i++) {
404
- const channelEntry = channels[i];
405
- if (channelEntry === undefined) {
406
- continue;
407
- }
408
- resultList.push(getChannelMessage(channelEntry));
409
- if (resultList.length >= maxResults) {
410
- break;
411
- }
412
- }
413
- callback(null, {
414
- channel: resultList,
415
- end: i >= servers.length,
416
- });
417
- }
418
- function getServerMessage(serverEntry) {
419
- const resolvedInfo = serverEntry.getInfo();
420
- return {
421
- ref: serverRefToMessage(serverEntry.ref),
422
- data: {
423
- calls_started: resolvedInfo.callTracker.callsStarted,
424
- calls_succeeded: resolvedInfo.callTracker.callsSucceeded,
425
- calls_failed: resolvedInfo.callTracker.callsFailed,
426
- last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp),
427
- trace: resolvedInfo.trace.getTraceMessage(),
428
- },
429
- listen_socket: resolvedInfo.listenerChildren.sockets.map(ref => socketRefToMessage(ref)),
430
- };
431
- }
432
- function GetServer(call, callback) {
433
- const serverId = Number.parseInt(call.request.server_id);
434
- const serverEntry = servers[serverId];
435
- if (serverEntry === undefined) {
436
- callback({
437
- code: constants_1.Status.NOT_FOUND,
438
- details: 'No server data found for id ' + serverId,
439
- });
440
- return;
441
- }
442
- callback(null, { server: getServerMessage(serverEntry) });
443
- }
444
- function GetServers(call, callback) {
445
- const maxResults = Number.parseInt(call.request.max_results);
446
- const resultList = [];
447
- let i = Number.parseInt(call.request.start_server_id);
448
- for (; i < servers.length; i++) {
449
- const serverEntry = servers[i];
450
- if (serverEntry === undefined) {
451
- continue;
452
- }
453
- resultList.push(getServerMessage(serverEntry));
454
- if (resultList.length >= maxResults) {
455
- break;
456
- }
457
- }
458
- callback(null, {
459
- server: resultList,
460
- end: i >= servers.length,
461
- });
462
- }
463
- function GetSubchannel(call, callback) {
464
- const subchannelId = Number.parseInt(call.request.subchannel_id);
465
- const subchannelEntry = subchannels[subchannelId];
466
- if (subchannelEntry === undefined) {
467
- callback({
468
- code: constants_1.Status.NOT_FOUND,
469
- details: 'No subchannel data found for id ' + subchannelId,
470
- });
471
- return;
472
- }
473
- const resolvedInfo = subchannelEntry.getInfo();
474
- const subchannelMessage = {
475
- ref: subchannelRefToMessage(subchannelEntry.ref),
476
- data: {
477
- target: resolvedInfo.target,
478
- state: connectivityStateToMessage(resolvedInfo.state),
479
- calls_started: resolvedInfo.callTracker.callsStarted,
480
- calls_succeeded: resolvedInfo.callTracker.callsSucceeded,
481
- calls_failed: resolvedInfo.callTracker.callsFailed,
482
- last_call_started_timestamp: dateToProtoTimestamp(resolvedInfo.callTracker.lastCallStartedTimestamp),
483
- trace: resolvedInfo.trace.getTraceMessage(),
484
- },
485
- socket_ref: resolvedInfo.children.sockets.map(ref => socketRefToMessage(ref)),
486
- };
487
- callback(null, { subchannel: subchannelMessage });
488
- }
489
- function subchannelAddressToAddressMessage(subchannelAddress) {
490
- var _a;
491
- if ((0, subchannel_address_1.isTcpSubchannelAddress)(subchannelAddress)) {
492
- return {
493
- address: 'tcpip_address',
494
- tcpip_address: {
495
- ip_address: (_a = ipAddressStringToBuffer(subchannelAddress.host)) !== null && _a !== void 0 ? _a : undefined,
496
- port: subchannelAddress.port,
497
- },
498
- };
499
- }
500
- else {
501
- return {
502
- address: 'uds_address',
503
- uds_address: {
504
- filename: subchannelAddress.path,
505
- },
506
- };
507
- }
508
- }
509
- function GetSocket(call, callback) {
510
- var _a, _b, _c, _d, _e;
511
- const socketId = Number.parseInt(call.request.socket_id);
512
- const socketEntry = sockets[socketId];
513
- if (socketEntry === undefined) {
514
- callback({
515
- code: constants_1.Status.NOT_FOUND,
516
- details: 'No socket data found for id ' + socketId,
517
- });
518
- return;
519
- }
520
- const resolvedInfo = socketEntry.getInfo();
521
- const securityMessage = resolvedInfo.security
522
- ? {
523
- model: 'tls',
524
- tls: {
525
- cipher_suite: resolvedInfo.security.cipherSuiteStandardName
526
- ? 'standard_name'
527
- : 'other_name',
528
- standard_name: (_a = resolvedInfo.security.cipherSuiteStandardName) !== null && _a !== void 0 ? _a : undefined,
529
- other_name: (_b = resolvedInfo.security.cipherSuiteOtherName) !== null && _b !== void 0 ? _b : undefined,
530
- local_certificate: (_c = resolvedInfo.security.localCertificate) !== null && _c !== void 0 ? _c : undefined,
531
- remote_certificate: (_d = resolvedInfo.security.remoteCertificate) !== null && _d !== void 0 ? _d : undefined,
532
- },
533
- }
534
- : null;
535
- const socketMessage = {
536
- ref: socketRefToMessage(socketEntry.ref),
537
- local: resolvedInfo.localAddress
538
- ? subchannelAddressToAddressMessage(resolvedInfo.localAddress)
539
- : null,
540
- remote: resolvedInfo.remoteAddress
541
- ? subchannelAddressToAddressMessage(resolvedInfo.remoteAddress)
542
- : null,
543
- remote_name: (_e = resolvedInfo.remoteName) !== null && _e !== void 0 ? _e : undefined,
544
- security: securityMessage,
545
- data: {
546
- keep_alives_sent: resolvedInfo.keepAlivesSent,
547
- streams_started: resolvedInfo.streamsStarted,
548
- streams_succeeded: resolvedInfo.streamsSucceeded,
549
- streams_failed: resolvedInfo.streamsFailed,
550
- last_local_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastLocalStreamCreatedTimestamp),
551
- last_remote_stream_created_timestamp: dateToProtoTimestamp(resolvedInfo.lastRemoteStreamCreatedTimestamp),
552
- messages_received: resolvedInfo.messagesReceived,
553
- messages_sent: resolvedInfo.messagesSent,
554
- last_message_received_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageReceivedTimestamp),
555
- last_message_sent_timestamp: dateToProtoTimestamp(resolvedInfo.lastMessageSentTimestamp),
556
- local_flow_control_window: resolvedInfo.localFlowControlWindow
557
- ? { value: resolvedInfo.localFlowControlWindow }
558
- : null,
559
- remote_flow_control_window: resolvedInfo.remoteFlowControlWindow
560
- ? { value: resolvedInfo.remoteFlowControlWindow }
561
- : null,
562
- },
563
- };
564
- callback(null, { socket: socketMessage });
565
- }
566
- function GetServerSockets(call, callback) {
567
- const serverId = Number.parseInt(call.request.server_id);
568
- const serverEntry = servers[serverId];
569
- if (serverEntry === undefined) {
570
- callback({
571
- code: constants_1.Status.NOT_FOUND,
572
- details: 'No server data found for id ' + serverId,
573
- });
574
- return;
575
- }
576
- const startId = Number.parseInt(call.request.start_socket_id);
577
- const maxResults = Number.parseInt(call.request.max_results);
578
- const resolvedInfo = serverEntry.getInfo();
579
- // If we wanted to include listener sockets in the result, this line would
580
- // instead say
581
- // const allSockets = resolvedInfo.listenerChildren.sockets.concat(resolvedInfo.sessionChildren.sockets).sort((ref1, ref2) => ref1.id - ref2.id);
582
- const allSockets = resolvedInfo.sessionChildren.sockets.sort((ref1, ref2) => ref1.id - ref2.id);
583
- const resultList = [];
584
- let i = 0;
585
- for (; i < allSockets.length; i++) {
586
- if (allSockets[i].id >= startId) {
587
- resultList.push(socketRefToMessage(allSockets[i]));
588
- if (resultList.length >= maxResults) {
589
- break;
590
- }
591
- }
592
- }
593
- callback(null, {
594
- socket_ref: resultList,
595
- end: i >= allSockets.length,
596
- });
597
- }
598
- function getChannelzHandlers() {
599
- return {
600
- GetChannel,
601
- GetTopChannels,
602
- GetServer,
603
- GetServers,
604
- GetSubchannel,
605
- GetSocket,
606
- GetServerSockets,
607
- };
608
- }
609
- exports.getChannelzHandlers = getChannelzHandlers;
610
- let loadedChannelzDefinition = null;
611
- function getChannelzServiceDefinition() {
612
- if (loadedChannelzDefinition) {
613
- return loadedChannelzDefinition;
614
- }
615
- /* The purpose of this complexity is to avoid loading @grpc/proto-loader at
616
- * runtime for users who will not use/enable channelz. */
617
- const loaderLoadSync = require('@grpc/proto-loader')
618
- .loadSync;
619
- const loadedProto = loaderLoadSync('channelz.proto', {
620
- keepCase: true,
621
- longs: String,
622
- enums: String,
623
- defaults: true,
624
- oneofs: true,
625
- includeDirs: [`${__dirname}/../../proto`],
626
- });
627
- const channelzGrpcObject = (0, make_client_1.loadPackageDefinition)(loadedProto);
628
- loadedChannelzDefinition =
629
- channelzGrpcObject.grpc.channelz.v1.Channelz.service;
630
- return loadedChannelzDefinition;
631
- }
632
- exports.getChannelzServiceDefinition = getChannelzServiceDefinition;
633
- function setup() {
634
- (0, admin_1.registerAdminService)(getChannelzServiceDefinition, getChannelzHandlers);
635
- }
636
- exports.setup = setup;
637
- //# sourceMappingURL=channelz.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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AI;QACd,KAAK,EAAE,MAAM;QACb,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,WAAW,EAAE,CAAC,GAAG,SAAS,cAAc,CAAC;KAC1C,CAAC,CAAC;IACH,MAAM,kBAAkB,GAAG,IAAA,mCAAqB,EAC9C,WAAW,CACwB,CAAC;IACtC,wBAAwB;QACtB,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IACvD,OAAO,wBAAwB,CAAC;AAClC,CAAC;AAtBD,oEAsBC;AAED,SAAgB,KAAK;IACnB,IAAA,4BAAoB,EAAC,4BAA4B,EAAE,mBAAmB,CAAC,CAAC;AAC1E,CAAC;AAFD,sBAEC"}
 
 
tests/node_modules/@grpc/grpc-js/build/src/client-interceptors.d.ts DELETED
@@ -1,120 +0,0 @@
1
- import { Metadata } from './metadata';
2
- import { Listener, MetadataListener, MessageListener, StatusListener, InterceptingListener, MessageContext } from './call-interface';
3
- import { Status } from './constants';
4
- import { Channel } from './channel';
5
- import { CallOptions } from './client';
6
- import { ClientMethodDefinition } from './make-client';
7
- /**
8
- * Error class associated with passing both interceptors and interceptor
9
- * providers to a client constructor or as call options.
10
- */
11
- export declare class InterceptorConfigurationError extends Error {
12
- constructor(message: string);
13
- }
14
- export interface MetadataRequester {
15
- (metadata: Metadata, listener: InterceptingListener, next: (metadata: Metadata, listener: InterceptingListener | Listener) => void): void;
16
- }
17
- export interface MessageRequester {
18
- (message: any, next: (message: any) => void): void;
19
- }
20
- export interface CloseRequester {
21
- (next: () => void): void;
22
- }
23
- export interface CancelRequester {
24
- (next: () => void): void;
25
- }
26
- /**
27
- * An object with methods for intercepting and modifying outgoing call operations.
28
- */
29
- export interface FullRequester {
30
- start: MetadataRequester;
31
- sendMessage: MessageRequester;
32
- halfClose: CloseRequester;
33
- cancel: CancelRequester;
34
- }
35
- export type Requester = Partial<FullRequester>;
36
- export declare class ListenerBuilder {
37
- private metadata;
38
- private message;
39
- private status;
40
- withOnReceiveMetadata(onReceiveMetadata: MetadataListener): this;
41
- withOnReceiveMessage(onReceiveMessage: MessageListener): this;
42
- withOnReceiveStatus(onReceiveStatus: StatusListener): this;
43
- build(): Listener;
44
- }
45
- export declare class RequesterBuilder {
46
- private start;
47
- private message;
48
- private halfClose;
49
- private cancel;
50
- withStart(start: MetadataRequester): this;
51
- withSendMessage(sendMessage: MessageRequester): this;
52
- withHalfClose(halfClose: CloseRequester): this;
53
- withCancel(cancel: CancelRequester): this;
54
- build(): Requester;
55
- }
56
- export interface InterceptorOptions extends CallOptions {
57
- method_definition: ClientMethodDefinition<any, any>;
58
- }
59
- export interface InterceptingCallInterface {
60
- cancelWithStatus(status: Status, details: string): void;
61
- getPeer(): string;
62
- start(metadata: Metadata, listener?: Partial<InterceptingListener>): void;
63
- sendMessageWithContext(context: MessageContext, message: any): void;
64
- sendMessage(message: any): void;
65
- startRead(): void;
66
- halfClose(): void;
67
- }
68
- export declare class InterceptingCall implements InterceptingCallInterface {
69
- private nextCall;
70
- /**
71
- * The requester that this InterceptingCall uses to modify outgoing operations
72
- */
73
- private requester;
74
- /**
75
- * Indicates that metadata has been passed to the requester's start
76
- * method but it has not been passed to the corresponding next callback
77
- */
78
- private processingMetadata;
79
- /**
80
- * Message context for a pending message that is waiting for
81
- */
82
- private pendingMessageContext;
83
- private pendingMessage;
84
- /**
85
- * Indicates that a message has been passed to the requester's sendMessage
86
- * method but it has not been passed to the corresponding next callback
87
- */
88
- private processingMessage;
89
- /**
90
- * Indicates that a status was received but could not be propagated because
91
- * a message was still being processed.
92
- */
93
- private pendingHalfClose;
94
- constructor(nextCall: InterceptingCallInterface, requester?: Requester);
95
- cancelWithStatus(status: Status, details: string): void;
96
- getPeer(): string;
97
- private processPendingMessage;
98
- private processPendingHalfClose;
99
- start(metadata: Metadata, interceptingListener?: Partial<InterceptingListener>): void;
100
- sendMessageWithContext(context: MessageContext, message: any): void;
101
- sendMessage(message: any): void;
102
- startRead(): void;
103
- halfClose(): void;
104
- }
105
- export interface NextCall {
106
- (options: InterceptorOptions): InterceptingCallInterface;
107
- }
108
- export interface Interceptor {
109
- (options: InterceptorOptions, nextCall: NextCall): InterceptingCall;
110
- }
111
- export interface InterceptorProvider {
112
- (methodDefinition: ClientMethodDefinition<any, any>): Interceptor;
113
- }
114
- export interface InterceptorArguments {
115
- clientInterceptors: Interceptor[];
116
- clientInterceptorProviders: InterceptorProvider[];
117
- callInterceptors: Interceptor[];
118
- callInterceptorProviders: InterceptorProvider[];
119
- }
120
- export declare function getInterceptingCall(interceptorArgs: InterceptorArguments, methodDefinition: ClientMethodDefinition<any, any>, options: CallOptions, channel: Channel): InterceptingCallInterface;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/client-interceptors.js DELETED
@@ -1,428 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright 2019 gRPC authors.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- *
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.getInterceptingCall = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0;
20
- const metadata_1 = require("./metadata");
21
- const call_interface_1 = require("./call-interface");
22
- const constants_1 = require("./constants");
23
- const error_1 = require("./error");
24
- /**
25
- * Error class associated with passing both interceptors and interceptor
26
- * providers to a client constructor or as call options.
27
- */
28
- class InterceptorConfigurationError extends Error {
29
- constructor(message) {
30
- super(message);
31
- this.name = 'InterceptorConfigurationError';
32
- Error.captureStackTrace(this, InterceptorConfigurationError);
33
- }
34
- }
35
- exports.InterceptorConfigurationError = InterceptorConfigurationError;
36
- class ListenerBuilder {
37
- constructor() {
38
- this.metadata = undefined;
39
- this.message = undefined;
40
- this.status = undefined;
41
- }
42
- withOnReceiveMetadata(onReceiveMetadata) {
43
- this.metadata = onReceiveMetadata;
44
- return this;
45
- }
46
- withOnReceiveMessage(onReceiveMessage) {
47
- this.message = onReceiveMessage;
48
- return this;
49
- }
50
- withOnReceiveStatus(onReceiveStatus) {
51
- this.status = onReceiveStatus;
52
- return this;
53
- }
54
- build() {
55
- return {
56
- onReceiveMetadata: this.metadata,
57
- onReceiveMessage: this.message,
58
- onReceiveStatus: this.status,
59
- };
60
- }
61
- }
62
- exports.ListenerBuilder = ListenerBuilder;
63
- class RequesterBuilder {
64
- constructor() {
65
- this.start = undefined;
66
- this.message = undefined;
67
- this.halfClose = undefined;
68
- this.cancel = undefined;
69
- }
70
- withStart(start) {
71
- this.start = start;
72
- return this;
73
- }
74
- withSendMessage(sendMessage) {
75
- this.message = sendMessage;
76
- return this;
77
- }
78
- withHalfClose(halfClose) {
79
- this.halfClose = halfClose;
80
- return this;
81
- }
82
- withCancel(cancel) {
83
- this.cancel = cancel;
84
- return this;
85
- }
86
- build() {
87
- return {
88
- start: this.start,
89
- sendMessage: this.message,
90
- halfClose: this.halfClose,
91
- cancel: this.cancel,
92
- };
93
- }
94
- }
95
- exports.RequesterBuilder = RequesterBuilder;
96
- /**
97
- * A Listener with a default pass-through implementation of each method. Used
98
- * for filling out Listeners with some methods omitted.
99
- */
100
- const defaultListener = {
101
- onReceiveMetadata: (metadata, next) => {
102
- next(metadata);
103
- },
104
- onReceiveMessage: (message, next) => {
105
- next(message);
106
- },
107
- onReceiveStatus: (status, next) => {
108
- next(status);
109
- },
110
- };
111
- /**
112
- * A Requester with a default pass-through implementation of each method. Used
113
- * for filling out Requesters with some methods omitted.
114
- */
115
- const defaultRequester = {
116
- start: (metadata, listener, next) => {
117
- next(metadata, listener);
118
- },
119
- sendMessage: (message, next) => {
120
- next(message);
121
- },
122
- halfClose: next => {
123
- next();
124
- },
125
- cancel: next => {
126
- next();
127
- },
128
- };
129
- class InterceptingCall {
130
- constructor(nextCall, requester) {
131
- var _a, _b, _c, _d;
132
- this.nextCall = nextCall;
133
- /**
134
- * Indicates that metadata has been passed to the requester's start
135
- * method but it has not been passed to the corresponding next callback
136
- */
137
- this.processingMetadata = false;
138
- /**
139
- * Message context for a pending message that is waiting for
140
- */
141
- this.pendingMessageContext = null;
142
- /**
143
- * Indicates that a message has been passed to the requester's sendMessage
144
- * method but it has not been passed to the corresponding next callback
145
- */
146
- this.processingMessage = false;
147
- /**
148
- * Indicates that a status was received but could not be propagated because
149
- * a message was still being processed.
150
- */
151
- this.pendingHalfClose = false;
152
- if (requester) {
153
- this.requester = {
154
- start: (_a = requester.start) !== null && _a !== void 0 ? _a : defaultRequester.start,
155
- sendMessage: (_b = requester.sendMessage) !== null && _b !== void 0 ? _b : defaultRequester.sendMessage,
156
- halfClose: (_c = requester.halfClose) !== null && _c !== void 0 ? _c : defaultRequester.halfClose,
157
- cancel: (_d = requester.cancel) !== null && _d !== void 0 ? _d : defaultRequester.cancel,
158
- };
159
- }
160
- else {
161
- this.requester = defaultRequester;
162
- }
163
- }
164
- cancelWithStatus(status, details) {
165
- this.requester.cancel(() => {
166
- this.nextCall.cancelWithStatus(status, details);
167
- });
168
- }
169
- getPeer() {
170
- return this.nextCall.getPeer();
171
- }
172
- processPendingMessage() {
173
- if (this.pendingMessageContext) {
174
- this.nextCall.sendMessageWithContext(this.pendingMessageContext, this.pendingMessage);
175
- this.pendingMessageContext = null;
176
- this.pendingMessage = null;
177
- }
178
- }
179
- processPendingHalfClose() {
180
- if (this.pendingHalfClose) {
181
- this.nextCall.halfClose();
182
- }
183
- }
184
- start(metadata, interceptingListener) {
185
- var _a, _b, _c, _d, _e, _f;
186
- const fullInterceptingListener = {
187
- onReceiveMetadata: (_b = (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(interceptingListener)) !== null && _b !== void 0 ? _b : (metadata => { }),
188
- onReceiveMessage: (_d = (_c = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _c === void 0 ? void 0 : _c.bind(interceptingListener)) !== null && _d !== void 0 ? _d : (message => { }),
189
- onReceiveStatus: (_f = (_e = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _e === void 0 ? void 0 : _e.bind(interceptingListener)) !== null && _f !== void 0 ? _f : (status => { }),
190
- };
191
- this.processingMetadata = true;
192
- this.requester.start(metadata, fullInterceptingListener, (md, listener) => {
193
- var _a, _b, _c;
194
- this.processingMetadata = false;
195
- let finalInterceptingListener;
196
- if ((0, call_interface_1.isInterceptingListener)(listener)) {
197
- finalInterceptingListener = listener;
198
- }
199
- else {
200
- const fullListener = {
201
- onReceiveMetadata: (_a = listener.onReceiveMetadata) !== null && _a !== void 0 ? _a : defaultListener.onReceiveMetadata,
202
- onReceiveMessage: (_b = listener.onReceiveMessage) !== null && _b !== void 0 ? _b : defaultListener.onReceiveMessage,
203
- onReceiveStatus: (_c = listener.onReceiveStatus) !== null && _c !== void 0 ? _c : defaultListener.onReceiveStatus,
204
- };
205
- finalInterceptingListener = new call_interface_1.InterceptingListenerImpl(fullListener, fullInterceptingListener);
206
- }
207
- this.nextCall.start(md, finalInterceptingListener);
208
- this.processPendingMessage();
209
- this.processPendingHalfClose();
210
- });
211
- }
212
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
213
- sendMessageWithContext(context, message) {
214
- this.processingMessage = true;
215
- this.requester.sendMessage(message, finalMessage => {
216
- this.processingMessage = false;
217
- if (this.processingMetadata) {
218
- this.pendingMessageContext = context;
219
- this.pendingMessage = message;
220
- }
221
- else {
222
- this.nextCall.sendMessageWithContext(context, finalMessage);
223
- this.processPendingHalfClose();
224
- }
225
- });
226
- }
227
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
228
- sendMessage(message) {
229
- this.sendMessageWithContext({}, message);
230
- }
231
- startRead() {
232
- this.nextCall.startRead();
233
- }
234
- halfClose() {
235
- this.requester.halfClose(() => {
236
- if (this.processingMetadata || this.processingMessage) {
237
- this.pendingHalfClose = true;
238
- }
239
- else {
240
- this.nextCall.halfClose();
241
- }
242
- });
243
- }
244
- }
245
- exports.InterceptingCall = InterceptingCall;
246
- function getCall(channel, path, options) {
247
- var _a, _b;
248
- const deadline = (_a = options.deadline) !== null && _a !== void 0 ? _a : Infinity;
249
- const host = options.host;
250
- const parent = (_b = options.parent) !== null && _b !== void 0 ? _b : null;
251
- const propagateFlags = options.propagate_flags;
252
- const credentials = options.credentials;
253
- const call = channel.createCall(path, deadline, host, parent, propagateFlags);
254
- if (credentials) {
255
- call.setCredentials(credentials);
256
- }
257
- return call;
258
- }
259
- /**
260
- * InterceptingCall implementation that directly owns the underlying Call
261
- * object and handles serialization and deseraizliation.
262
- */
263
- class BaseInterceptingCall {
264
- constructor(call,
265
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
266
- methodDefinition) {
267
- this.call = call;
268
- this.methodDefinition = methodDefinition;
269
- }
270
- cancelWithStatus(status, details) {
271
- this.call.cancelWithStatus(status, details);
272
- }
273
- getPeer() {
274
- return this.call.getPeer();
275
- }
276
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
277
- sendMessageWithContext(context, message) {
278
- let serialized;
279
- try {
280
- serialized = this.methodDefinition.requestSerialize(message);
281
- }
282
- catch (e) {
283
- this.call.cancelWithStatus(constants_1.Status.INTERNAL, `Request message serialization failure: ${(0, error_1.getErrorMessage)(e)}`);
284
- return;
285
- }
286
- this.call.sendMessageWithContext(context, serialized);
287
- }
288
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
289
- sendMessage(message) {
290
- this.sendMessageWithContext({}, message);
291
- }
292
- start(metadata, interceptingListener) {
293
- let readError = null;
294
- this.call.start(metadata, {
295
- onReceiveMetadata: metadata => {
296
- var _a;
297
- (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, metadata);
298
- },
299
- onReceiveMessage: message => {
300
- var _a;
301
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
302
- let deserialized;
303
- try {
304
- deserialized = this.methodDefinition.responseDeserialize(message);
305
- }
306
- catch (e) {
307
- readError = {
308
- code: constants_1.Status.INTERNAL,
309
- details: `Response message parsing error: ${(0, error_1.getErrorMessage)(e)}`,
310
- metadata: new metadata_1.Metadata(),
311
- };
312
- this.call.cancelWithStatus(readError.code, readError.details);
313
- return;
314
- }
315
- (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, deserialized);
316
- },
317
- onReceiveStatus: status => {
318
- var _a, _b;
319
- if (readError) {
320
- (_a = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _a === void 0 ? void 0 : _a.call(interceptingListener, readError);
321
- }
322
- else {
323
- (_b = interceptingListener === null || interceptingListener === void 0 ? void 0 : interceptingListener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(interceptingListener, status);
324
- }
325
- },
326
- });
327
- }
328
- startRead() {
329
- this.call.startRead();
330
- }
331
- halfClose() {
332
- this.call.halfClose();
333
- }
334
- }
335
- /**
336
- * BaseInterceptingCall with special-cased behavior for methods with unary
337
- * responses.
338
- */
339
- class BaseUnaryInterceptingCall extends BaseInterceptingCall {
340
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
341
- constructor(call, methodDefinition) {
342
- super(call, methodDefinition);
343
- }
344
- start(metadata, listener) {
345
- var _a, _b;
346
- let receivedMessage = false;
347
- const wrapperListener = {
348
- onReceiveMetadata: (_b = (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMetadata) === null || _a === void 0 ? void 0 : _a.bind(listener)) !== null && _b !== void 0 ? _b : (metadata => { }),
349
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
350
- onReceiveMessage: (message) => {
351
- var _a;
352
- receivedMessage = true;
353
- (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, message);
354
- },
355
- onReceiveStatus: (status) => {
356
- var _a, _b;
357
- if (!receivedMessage) {
358
- (_a = listener === null || listener === void 0 ? void 0 : listener.onReceiveMessage) === null || _a === void 0 ? void 0 : _a.call(listener, null);
359
- }
360
- (_b = listener === null || listener === void 0 ? void 0 : listener.onReceiveStatus) === null || _b === void 0 ? void 0 : _b.call(listener, status);
361
- },
362
- };
363
- super.start(metadata, wrapperListener);
364
- this.call.startRead();
365
- }
366
- }
367
- /**
368
- * BaseInterceptingCall with special-cased behavior for methods with streaming
369
- * responses.
370
- */
371
- class BaseStreamingInterceptingCall extends BaseInterceptingCall {
372
- }
373
- function getBottomInterceptingCall(channel, options,
374
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
375
- methodDefinition) {
376
- const call = getCall(channel, methodDefinition.path, options);
377
- if (methodDefinition.responseStream) {
378
- return new BaseStreamingInterceptingCall(call, methodDefinition);
379
- }
380
- else {
381
- return new BaseUnaryInterceptingCall(call, methodDefinition);
382
- }
383
- }
384
- function getInterceptingCall(interceptorArgs,
385
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
386
- methodDefinition, options, channel) {
387
- if (interceptorArgs.clientInterceptors.length > 0 &&
388
- interceptorArgs.clientInterceptorProviders.length > 0) {
389
- throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as options ' +
390
- 'to the client constructor. Only one of these is allowed.');
391
- }
392
- if (interceptorArgs.callInterceptors.length > 0 &&
393
- interceptorArgs.callInterceptorProviders.length > 0) {
394
- throw new InterceptorConfigurationError('Both interceptors and interceptor_providers were passed as call ' +
395
- 'options. Only one of these is allowed.');
396
- }
397
- let interceptors = [];
398
- // Interceptors passed to the call override interceptors passed to the client constructor
399
- if (interceptorArgs.callInterceptors.length > 0 ||
400
- interceptorArgs.callInterceptorProviders.length > 0) {
401
- interceptors = []
402
- .concat(interceptorArgs.callInterceptors, interceptorArgs.callInterceptorProviders.map(provider => provider(methodDefinition)))
403
- .filter(interceptor => interceptor);
404
- // Filter out falsy values when providers return nothing
405
- }
406
- else {
407
- interceptors = []
408
- .concat(interceptorArgs.clientInterceptors, interceptorArgs.clientInterceptorProviders.map(provider => provider(methodDefinition)))
409
- .filter(interceptor => interceptor);
410
- // Filter out falsy values when providers return nothing
411
- }
412
- const interceptorOptions = Object.assign({}, options, {
413
- method_definition: methodDefinition,
414
- });
415
- /* For each interceptor in the list, the nextCall function passed to it is
416
- * based on the next interceptor in the list, using a nextCall function
417
- * constructed with the following interceptor in the list, and so on. The
418
- * initialValue, which is effectively at the end of the list, is a nextCall
419
- * function that invokes getBottomInterceptingCall, the result of which
420
- * handles (de)serialization and also gets the underlying call from the
421
- * channel. */
422
- const getCall = interceptors.reduceRight((nextCall, nextInterceptor) => {
423
- return currentOptions => nextInterceptor(currentOptions, nextCall);
424
- }, (finalOptions) => getBottomInterceptingCall(channel, finalOptions, methodDefinition));
425
- return getCall(interceptorOptions);
426
- }
427
- exports.getInterceptingCall = getInterceptingCall;
428
- //# sourceMappingURL=client-interceptors.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
tests/node_modules/@grpc/grpc-js/build/src/client-interceptors.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-interceptors.js","sourceRoot":"","sources":["../../src/client-interceptors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAAsC;AACtC,qDAY0B;AAC1B,2CAAqC;AAIrC,mCAA0C;AAE1C;;;GAGG;AACH,MAAa,6BAA8B,SAAQ,KAAK;IACtD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAA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