Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add data mocking [WIP]

Tomas Valenta0c0c861f7482
diff --git a/api-service/codegen/tools/playground/main.py b/api-service/codegen/tools/playground/main.py
index 3d6a4f568..7b6b7eb7e 100644
--- a/api-service/codegen/tools/playground/main.py
+++ b/api-service/codegen/tools/playground/main.py
@@ -17,7 +17,10 @@ def create_playground_tools(
) -> tuple[List[Any], Playground]:
playground = NodeJSPlayground(envs)
mock = MockRequestFactory(
- method=method, route=route, body_template=request_body_template
+ method=method,
+ route=route,
+ body_template=request_body_template,
+ playground=playground,
)
subtools = [
diff --git a/api-service/codegen/tools/playground/mock/request.py b/api-service/codegen/tools/playground/mock/request.py
index 1d5e177e0..fec0cfcf2 100644
--- a/api-service/codegen/tools/playground/mock/request.py
+++ b/api-service/codegen/tools/playground/mock/request.py
@@ -2,7 +2,9 @@ from enum import Enum
import json
import typing as t
+from codegen.tools import playground
+from codegen.tools.playground.playground import Playground
JSON = t.Union[str, int, float, bool, None, t.Mapping[str, "JSON"], t.List["JSON"]]
@@ -12,23 +14,30 @@ class MockRequestFactory:
method: str,
route: str,
body_template: str,
+ playground: Playground,
hostname: str = "http://localhost:3000",
) -> None:
self.hostname = hostname
self.method = method.upper()
self.route = route
self.body_template = body_template
+ self.playground = playground
def terminal_command(self) -> str:
body = self.generate_body_data()
return f"curl -X {self.method} {self.hostname}/{self.route} -H 'Content-Type: application/json' -d {json.dumps(body)}"
def generate_body_data(self) -> JSON:
- self.body_template
- # request_body_template = f"""interface RequestBody {{
- # {body_template}
- # }}
- # """
+ body_interface_name = "RequestBody"
+ request_body_template = f"""interface {body_interface_name} {{
+ {self.body_template}
+ }}
+ """
+
+ self.playground.api.
+
+
+
# https://github.com/joke2k/faker
# https://github.com/faker-js/faker
# https://github.com/google/intermock
diff --git a/api-service/codegen/tools/playground/playground.py b/api-service/codegen/tools/playground/playground.py
index 2d787d721..13fba2daf 100644
--- a/api-service/codegen/tools/playground/playground.py
+++ b/api-service/codegen/tools/playground/playground.py
@@ -7,6 +7,7 @@ from typing import List
from codegen.env import EnvVar
import playground_client
+from playground_client.models.create_mock_data_request import CreateMockDataRequest
configuration = playground_client.Configuration(
@@ -53,23 +54,31 @@ class Playground:
for open_port in open_ports
)
- def run_command(self, cmd: str, rootdir: str = "/", env_vars: dict[str, str] = {}):
+ def run_command(
+ self,
+ cmd: str,
+ rootdir: str = "/",
+ env_vars: dict[str, str] = {},
+ ):
return self.api.start_process(
self.session.id,
playground_client.StartProcessParams(
- cmd=cmd, envVars=env_vars, rootdir=rootdir
+ cmd=cmd, env_vars=env_vars, rootdir=rootdir,
),
wait=True,
)
def start_process(
- self, cmd: str, rootdir: str = "/", env_vars: dict[str, str] = {}
+ self,
+ cmd: str,
+ rootdir: str = "/",
+ env_vars: dict[str, str] = {},
):
"""Start process and return the process ID."""
response = self.api.start_process(
self.session.id,
playground_client.StartProcessParams(
- cmd=cmd, envVars=env_vars, rootdir=rootdir
+ cmd=cmd, env_vars=env_vars, rootdir=rootdir
),
)
return response.process_id
@@ -90,6 +99,11 @@ class Playground:
def delete_file(self, path: str):
self.api.delete_filesystem_entry(self.session.id, path)
+ def mock_data(self, code: str, interface: str):
+ self.api.create_mock_data(
+ CreateMockDataRequest(targetInterface=interface,files=[])
+ )
+
def delete_dir(self, path: str):
self.api.delete_filesystem_entry(self.session.id, path)
@@ -103,10 +117,10 @@ class Playground:
def make_dir(self, path: str):
self.api.make_filesystem_dir(self.session.id, path)
- def test_server_code(
+ def run_server_with_request(
self,
server_cmd: str,
- test_cmd: str,
+ request_cmd: str,
port: float,
rootdir: str,
env_vars: dict[str, str] = {},
@@ -120,9 +134,9 @@ class Playground:
break
time.sleep(self.port_check_interval)
- test_result = self.run_command(cmd=test_cmd, rootdir=rootdir)
+ request_result = self.run_command(cmd=request_cmd, rootdir=rootdir)
server_result = self.stop_process(server_process_id)
- return test_result, server_result
+ return request_result, server_result
@staticmethod
def format_env_vars(envs: List[EnvVar]):
@@ -166,11 +180,16 @@ class NodeJSPlayground(Playground):
def install_dependencies(self, dependencies: str):
return self.run_command(f"npm install {dependencies}", rootdir=self.rootdir)
- def test_javascript_server_code(self, code: str, test_cmd: str, port: float):
+ def run_javascript_server_code_with_request(
+ self,
+ code: str,
+ request_cmd: str,
+ port: float,
+ ):
self.write_file(self.default_javascript_code_file, code)
- return self.test_server_code(
+ return self.run_server_with_request(
server_cmd=f"node {self.default_javascript_code_file}",
- test_cmd=test_cmd,
+ request_cmd=request_cmd,
port=port,
rootdir=self.rootdir,
env_vars=self.env_vars,
diff --git a/api-service/codegen/tools/playground/tools/code.py b/api-service/codegen/tools/playground/tools/code.py
index c7dbfb4dc..00261c23f 100644
--- a/api-service/codegen/tools/playground/tools/code.py
+++ b/api-service/codegen/tools/playground/tools/code.py
@@ -67,22 +67,22 @@ def create_code_tools(playground: NodeJSPlayground, mock: MockRequestFactory):
@tool("RunJavaScriptCode")
def run_javascript_code(code: str) -> str:
"""
- Execute JavaScript code that should start a server then tests if server correctly handles needed requests.
+ Execute JavaScript code that should start a server then makes a request to see if server correctly handles needed requests.
The input should be a valid JavaScriptCode.
The server should run on http://localhost:3000.
- The returned result is a the testing request output followed by the server code output and errors.
+ The returned result is a the request's output followed by the server code output and errors.
"""
- mock_request_command = mock.terminal_command()
+ mock_request_cmd = mock.terminal_command()
port = 3000
- test_output, server_output = playground.test_javascript_server_code(
- code=code, test_cmd=mock_request_command, port=port
+ request_output, server_output = playground.run_javascript_server_code_with_request(
+ code=code, request_cmd=mock_request_cmd, port=port,
)
- test_result = encode_command_output(test_output)
+ request_result = encode_command_output(request_output)
server_result = encode_command_output(server_output)
- return f"Test request result:\n{test_result}\nCode execution result:\n{server_result}"
+ return f"Request result:\n{request_result}\nCode execution result:\n{server_result}"
yield run_javascript_code
diff --git a/api-service/playground/package.json b/api-service/playground/package.json
index 9565ae654..1df0817eb 100644
--- a/api-service/playground/package.json
+++ b/api-service/playground/package.json
@@ -5,6 +5,7 @@
"dependencies": {
"@devbookhq/sdk": "^2.6.74",
"express": "^4.18.2",
+ "intermock": "^0.2.5",
"node-cache": "^5.1.2",
"tsoa": "^5.1.1"
},
@@ -24,4 +25,4 @@
"build": "./scripts/build.js",
"start": "node lib/server.js"
}
-}
\ No newline at end of file
+}
diff --git a/api-service/playground/src/data/mockController.ts b/api-service/playground/src/data/mockController.ts
new file mode 100644
index 000000000..fa91e8b5a
--- /dev/null
+++ b/api-service/playground/src/data/mockController.ts
@@ -0,0 +1,36 @@
+import { mock } from 'intermock'
+import {
+ Controller,
+ Post,
+ BodyProp,
+ Route,
+} from 'tsoa'
+
+interface File {
+ name: string
+ content: string
+}
+
+interface MockDataResponse {
+ mockData: string | Record<string | number, {}>
+}
+
+@Route('data')
+export class SessionsController extends Controller {
+ @Post('mock')
+ public async createMockData(
+ @BodyProp('files') files: File[],
+ @BodyProp('targetInterface') targetInterface: string,
+ ): Promise<MockDataResponse> {
+
+ const data = mock({
+ files: files.map(f => [f.name, f.content]),
+ output: 'json',
+ interfaces: [targetInterface],
+ })
+
+ return {
+ mockData: data,
+ }
+ }
+}
diff --git a/api-service/playground/src/generated/routes.ts b/api-service/playground/src/generated/routes.ts
index 2d6534d2d..7d57d72da 100644
--- a/api-service/playground/src/generated/routes.ts
+++ b/api-service/playground/src/generated/routes.ts
@@ -3,6 +3,8 @@
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { Controller, ValidationService, FieldErrors, ValidateError, TsoaRoute, HttpStatusCodeLiteral, TsoaResponse, fetchMiddlewares } from '@tsoa/runtime';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+import { SessionsController } from './../data/mockController';
+// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { FilesystemController } from './../sessions/filesystemController';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
import { ProcessController } from './../sessions/processesController';
@@ -13,6 +15,28 @@ import type { RequestHandler, Router } from 'express';
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
const models: TsoaRoute.Models = {
+ "Record_string-or-number.___": {
+ "dataType": "refAlias",
+ "type": {"dataType":"nestedObjectLiteral","nestedProperties":{},"validators":{}},
+ },
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+ "MockDataResponse": {
+ "dataType": "refObject",
+ "properties": {
+ "mockData": {"dataType":"union","subSchemas":[{"dataType":"string"},{"ref":"Record_string-or-number.___"}],"required":true},
+ },
+ "additionalProperties": false,
+ },
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+ "File": {
+ "dataType": "refObject",
+ "properties": {
+ "name": {"dataType":"string","required":true},
+ "content": {"dataType":"string","required":true},
+ },
+ "additionalProperties": false,
+ },
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
"EntryInfo": {
"dataType": "refObject",
"properties": {
@@ -128,6 +152,32 @@ export function RegisterRoutes(app: Router) {
// NOTE: If you do not see routes for all of your controllers in this file, then you might not have informed tsoa of where to look
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
// ###########################################################################################################
+ app.post('/data/mock',
+ ...(fetchMiddlewares<RequestHandler>(SessionsController)),
+ ...(fetchMiddlewares<RequestHandler>(SessionsController.prototype.createMockData)),
+
+ function SessionsController_createMockData(request: any, response: any, next: any) {
+ const args = {
+ files: {"in":"body-prop","name":"files","required":true,"dataType":"array","array":{"dataType":"refObject","ref":"File"}},
+ targetInterface: {"in":"body-prop","name":"targetInterface","required":true,"dataType":"string"},
+ };
+
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
+
+ let validatedArgs: any[] = [];
+ try {
+ validatedArgs = getValidatedArgs(args, request, response);
+
+ const controller = new SessionsController();
+
+
+ const promise = controller.createMockData.apply(controller, validatedArgs as any);
+ promiseHandler(controller, promise, response, undefined, next);
+ } catch (err) {
+ return next(err);
+ }
+ });
+ // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.get('/sessions/:id/filesystem/dir',
...(fetchMiddlewares<RequestHandler>(FilesystemController)),
...(fetchMiddlewares<RequestHandler>(FilesystemController.prototype.listFilesystemDir)),
diff --git a/api-service/playground/yarn.lock b/api-service/playground/yarn.lock
index 3cb8e9349..e9b14d4ab 100644
--- a/api-service/playground/yarn.lock
+++ b/api-service/playground/yarn.lock
@@ -236,6 +236,13 @@ ansi-regex@^5.0.1:
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
+ansi-styles@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
+ integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==
+ dependencies:
+ color-convert "^1.9.0"
+
ansi-styles@^4.0.0, ansi-styles@^4.1.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
@@ -258,6 +265,21 @@ argparse@^1.0.7:
dependencies:
sprintf-js "~1.0.2"
+argv-tools@^0.1.1:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/argv-tools/-/argv-tools-0.1.2.tgz#fc4918a70775b8cc5f8296fa0cfea137bd8a8229"
+ integrity sha512-wxqoymY0BEu9NblZVQiOTOAiJUjPhaa/kbNMjC2h6bnrmUSgnxKgWJo3lzXvi3bHJRwXyqK/dHzMlZVRT89Cxg==
+ dependencies:
+ array-back "^2.0.0"
+ find-replace "^2.0.1"
+
+array-back@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/array-back/-/array-back-2.0.0.tgz#6877471d51ecc9c9bfa6136fb6c7d5fe69748022"
+ integrity sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==
+ dependencies:
+ typical "^2.6.1"
+
version "1.1.1"
resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
@@ -342,6 +364,15 @@ call-bind@^1.0.0, call-bind@^1.0.2:
function-bind "^1.1.1"
get-intrinsic "^1.0.2"
+chalk@^2.4.1:
+ version "2.4.2"
+ resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
+ integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
+ dependencies:
+ ansi-styles "^3.2.1"
+ escape-string-regexp "^1.0.5"
+ supports-color "^5.3.0"
+
chalk@^4.1.0:
version "4.1.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
@@ -379,6 +410,13 @@ [email protected]:
resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f"
integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==
+color-convert@^1.9.0:
+ version "1.9.3"
+ resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
+ integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==
+ dependencies:
+ color-name "1.1.3"
+
color-convert@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
@@ -386,11 +424,37 @@ color-convert@^2.0.1:
dependencies:
color-name "~1.1.4"
+ version "1.1.3"
+ resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
+ integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==
+
color-name@~1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+ version "5.0.2"
+ resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.0.2.tgz#c4e56b016636af1323cf485aa25c3cb203dfbbe4"
+ integrity sha512-/qPcbL8zpqg53x4rAaqMFlRV4opN3pbla7I7k9x8kyOBMQoGT6WltjN6sXZuxOXw6DgdK7Ad+ijYS5gjcr7vlA==
+ dependencies:
+ argv-tools "^0.1.1"
+ array-back "^2.0.0"
+ find-replace "^2.0.1"
+ lodash.camelcase "^4.3.0"
+ typical "^2.6.1"
+
+ version "5.0.5"
+ resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-5.0.5.tgz#5f25933ffe6dedd983c635d38a21d7e623fda357"
+ integrity sha512-d8NrGylA5oCXSbGoKz05FkehDAzSmIm4K03S5VDh4d5lZAtTWfc3D1RuETtuQCn8129nYfJfDdF7P/lwcz1BlA==
+ dependencies:
+ array-back "^2.0.0"
+ chalk "^2.4.1"
+ table-layout "^0.4.3"
+ typical "^2.6.1"
+
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -459,6 +523,11 @@ debug@^3.2.7:
dependencies:
ms "^2.1.1"
+deep-extend@~0.6.0:
+ version "0.6.0"
+ resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
+ integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==
+
deepmerge@^4.2.2:
version "4.3.0"
resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.0.tgz#65491893ec47756d44719ae520e0e2609233b59b"
@@ -625,6 +694,11 @@ escape-html@~1.0.3:
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==
+escape-string-regexp@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
+ integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==
+
etag@~1.8.1:
version "1.8.1"
resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
@@ -667,6 +741,11 @@ express@^4.18.2:
utils-merge "1.0.1"
vary "~1.1.2"
+ version "4.1.0"
+ resolved "https://registry.yarnpkg.com/faker/-/faker-4.1.0.tgz#1e45bbbecc6774b3c195fad2835109c6d748cc3f"
+ integrity sha512-ILKg69P6y/D8/wSmDXw35Ly0re8QzQ8pMfBCflsGiZG2ZjMUNLYNexA6lz5pkmJlepVdsiDFUxYAzPQ9/+iGLA==
+
fill-range@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
@@ -687,6 +766,14 @@ [email protected]:
statuses "2.0.1"
unpipe "~1.0.0"
+find-replace@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-2.0.1.tgz#6d9683a7ca20f8f9aabeabad07e4e2580f528550"
+ integrity sha512-LzDo3Fpa30FLIBsh6DCDnMN1KW2g4QKkqKmejlImgWY67dDFPX/x9Kh/op/GK522DchQXEvDi/wD48HKW49XOQ==
+ dependencies:
+ array-back "^2.0.0"
+ test-value "^3.0.0"
+
for-each@^0.3.3:
version "0.3.3"
resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e"
@@ -713,6 +800,13 @@ fs-extra@^10.1.0:
jsonfile "^6.0.1"
universalify "^2.0.0"
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/fs-readfile-promise/-/fs-readfile-promise-3.0.1.tgz#d0d307b7f6aedfc920c31fa6e5712efaa297c958"
+ integrity sha512-LsSxMeaJdYH27XrW7Dmq0Gx63mioULCRel63B5VeELYLavi1wF5s0XfsIdKDFdCL9hsfQ2qBvXJszQtQJ9h17A==
+ dependencies:
+ graceful-fs "^4.1.11"
+
fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -809,7 +903,7 @@ gopd@^1.0.1:
dependencies:
get-intrinsic "^1.1.3"
-graceful-fs@^4.1.6, graceful-fs@^4.2.0:
+graceful-fs@^4.1.11, graceful-fs@^4.1.6, graceful-fs@^4.2.0:
version "4.2.10"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c"
integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==
@@ -908,6 +1002,18 @@ inherits@2, [email protected]:
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
+intermock@^0.2.5:
+ version "0.2.5"
+ resolved "https://registry.yarnpkg.com/intermock/-/intermock-0.2.5.tgz#9fbd2003d30f061e28f917fecf5e6fb21f539aae"
+ integrity sha512-vba3vpjgfi+7ZFoEeBp7dkCuICuDg4isXAU7JIEv4exar505v48ZuYe6KsS6E4TNbQaV3qd0Bb8DOAQY+M9CGg==
+ dependencies:
+ command-line-args "5.0.2"
+ command-line-usage "5.0.5"
+ faker "4.1.0"
+ fs-readfile-promise "3.0.1"
+ tslib "1.10.0"
+ typescript "^3.7.5"
+
internal-slot@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986"
@@ -1096,6 +1202,16 @@ jsonfile@^6.0.1:
optionalDependencies:
graceful-fs "^4.1.6"
+lodash.camelcase@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
+ integrity sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==
+
+lodash.padend@^4.6.1:
+ version "4.6.1"
+ resolved "https://registry.yarnpkg.com/lodash.padend/-/lodash.padend-4.6.1.tgz#53ccba047d06e158d311f45da625f4e49e6f166e"
+ integrity sha512-sOQs2aqGpbl27tmCS1QNZA09Uqp01ZzWfDUoD+xzTii0E7dSQfRKcRetFwa+uXaxaqL+TKm7CgD2JdKP7aZBSw==
+
lodash@^4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
@@ -1333,6 +1449,11 @@ readdirp@~3.6.0:
dependencies:
picomatch "^2.2.1"
+reduce-flatten@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-1.0.1.tgz#258c78efd153ddf93cb561237f61184f3696e327"
+ integrity sha512-j5WfFJfc9CoXv/WbwVLHq74i/hdTUpy+iNC534LxczMRP67vJeK3V9JOdnL0N1cIRbn9mYhE2yVjvvKXDxvNXQ==
+
reflect-metadata@^0.1.13:
version "0.1.13"
resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08"
@@ -1513,7 +1634,7 @@ strip-ansi@^6.0.0, strip-ansi@^6.0.1:
dependencies:
ansi-regex "^5.0.1"
-supports-color@^5.5.0:
+supports-color@^5.3.0, supports-color@^5.5.0:
version "5.5.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
@@ -1534,6 +1655,25 @@ supports-color@^8.1.0:
dependencies:
has-flag "^4.0.0"
+table-layout@^0.4.3:
+ version "0.4.5"
+ resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-0.4.5.tgz#d906de6a25fa09c0c90d1d08ecd833ecedcb7378"
+ integrity sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==
+ dependencies:
+ array-back "^2.0.0"
+ deep-extend "~0.6.0"
+ lodash.padend "^4.6.1"
+ typical "^2.6.1"
+ wordwrapjs "^3.0.0"
+
+test-value@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/test-value/-/test-value-3.0.0.tgz#9168c062fab11a86b8d444dd968bb4b73851ce92"
+ integrity sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==
+ dependencies:
+ array-back "^2.0.0"
+ typical "^2.6.1"
+
to-regex-range@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
@@ -1563,6 +1703,11 @@ tree-kill@^1.2.2:
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"
integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==
+ version "1.10.0"
+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
+ integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
+
tslib@^2.1.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf"
@@ -1593,11 +1738,21 @@ typed-array-length@^1.0.4:
for-each "^0.3.3"
is-typed-array "^1.1.9"
+typescript@^3.7.5:
+ version "3.9.10"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8"
+ integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==
+
typescript@^4.9.5:
version "4.9.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
+typical@^2.6.1:
+ version "2.6.1"
+ resolved "https://registry.yarnpkg.com/typical/-/typical-2.6.1.tgz#5c080e5d661cbbe38259d2e70a3c7253e873881d"
+ integrity sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==
+
uglify-js@^3.1.4:
version "3.17.4"
resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c"
@@ -1689,6 +1844,14 @@ wordwrap@^1.0.0:
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==
+wordwrapjs@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-3.0.0.tgz#c94c372894cadc6feb1a66bff64e1d9af92c5d1e"
+ integrity sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==
+ dependencies:
+ reduce-flatten "^1.0.1"
+ typical "^2.6.1"
+
wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"