From 18fbc665a793e32d39b3913fba5a083d148c164d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Mon, 18 Nov 2024 11:35:38 +0100 Subject: [PATCH] refactor!: migrate to aws-sdk 3 (#447) --- README.md | 36 +- bin/dynamodb-admin.ts | 27 +- lib/actions/getPage.ts | 10 +- lib/actions/listAllTables.ts | 6 +- lib/actions/purgeTable.ts | 32 +- lib/backend.ts | 47 +- lib/config.ts | 93 +- lib/dynamoDbApi.ts | 80 +- lib/extractKey.test.ts | 21 +- lib/parseKey.test.ts | 4 +- lib/routes.ts | 73 +- lib/types.d.ts | 4 + lib/util.ts | 43 +- package-lock.json | 1655 +++++++++++++++++++++++++++------- package.json | 3 +- views/create-table.ejs | 40 +- 16 files changed, 1616 insertions(+), 558 deletions(-) create mode 100644 lib/types.d.ts diff --git a/README.md b/README.md index 3521e14..c6f7aaf 100644 --- a/README.md +++ b/README.md @@ -10,41 +10,41 @@ ```bash npm install -g dynamodb-admin -# For Windows: -set DYNAMO_ENDPOINT=http://localhost:8000 -dynamodb-admin - -# For Mac/Linux: -DYNAMO_ENDPOINT=http://localhost:8000 dynamodb-admin +dynamodb-admin --dynamo-endpoint=http://localhost:8000 ``` Options: - - --open / -o - opens server URL in a default browser on start - - --port PORT / -p PORT - Port to run on (default: 8001) - - --host HOST / -h HOST - Host to run on (default: localhost) + - `--open` / `-o` - opens server URL in a default browser on start + - `--port PORT` / `-p PORT` - Port to run on (default: 8001) + - `--host HOST` / `-h HOST` - Host to run on (default: localhost) + - `--dynamo-endpoint` - DynamoDB endpoint to connect to (default: http://localhost:8000). + - `--skip-default-credentials` - Skip setting default credentials and region. By default the accessKeyId/secretAccessKey are set to "key" and "secret" and the region is set to "us-east-1". If you specify this argument then you need to ensure that credentials are provided some other way. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html for more details on how default credentials provider works. -You can specify host & port to run on by setting environment variables `HOST` and `PORT` respectively. This will override value specified on the command line. This is legacy way to specify the HOST & PORT. +Environment variables `HOST`, `PORT` and `DYNAMO_ENDPOINT` can also be used to set the respective options. Those are not recommended. -If you use a local dynamodb that cares about credentials, you can configure them by using the following environment variables `AWS_REGION` `AWS_ACCESS_KEY_ID` `AWS_SECRET_ACCESS_KEY` +If you use a local dynamodb that cares about credentials, you can configure them by using the following environment variables `AWS_REGION` `AWS_ACCESS_KEY_ID` `AWS_SECRET_ACCESS_KEY` or specify the `--skip-default-credentials` argument and rely on the default AWS SDK credentials resolving behavior. For example with the `amazon/dynamodb-local` docker image you can launch `dynamodb-admin` with: ```bash AWS_REGION=eu-west-1 AWS_ACCESS_KEY_ID=local AWS_SECRET_ACCESS_KEY=local dynamodb-admin ``` - If you are accessing your database from another piece of software, the `AWS_ACCESS_KEY_ID` used by that application must match the `AWS_ACCESS_KEY_ID` you used with `dynamodb-admin` if you want both to see the same data. +By default `dynamodb-admin` sets a default key/secret to values "key" and "secret" and the region to "us-east-1". + ### Use as a library in your project +This requires AWS SDK v3. +If you depend on AWS SDK v2 then you need to use dynamodb-admin v4. + ```js -const AWS = require('aws-sdk'); -const {createServer} = require('dynamodb-admin'); +import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; +import { createServer } from 'dynamodb-admin'; -const dynamodb = new AWS.DynamoDB(); -const dynClient = new AWS.DynamoDB.DocumentClient({service: dynamodb}); +const dynamoDbClient = new DynamoDBClient(); -const app = createServer(dynamodb, dynClient); +const app = createServer({ dynamoDbClient }); const host = 'localhost'; const port = 8001; @@ -59,7 +59,7 @@ server.on('listening', () => { Run `npm run build` and then `DYNAMO_ENDPOINT=http://localhost:8000 npm run start` to start dynamodb-admin. -You can set up a build watcher in a separate terminal using `npm run build:watch` which will re-complile the code on change and restart the dynamodb-admin instance. +You can set up a build watcher in a separate terminal using `npm run build:watch` which will re-compile the code on change and cause the dynamodb-admin instance to restart. ## See also diff --git a/bin/dynamodb-admin.ts b/bin/dynamodb-admin.ts index 625c1d4..ea01d45 100755 --- a/bin/dynamodb-admin.ts +++ b/bin/dynamodb-admin.ts @@ -37,16 +37,27 @@ parser.add_argument('-p', '--port', { help: 'Port to run on (default: 8001)', }); -const args = parser.parse_args(); +parser.add_argument('--dynamo-endpoint', { + type: 'str', + default: 'http://localhost:8000', + help: 'DynamoDB endpoint to connect to.', +}); + +parser.add_argument('--skip-default-credentials', { + action: 'store_true', + help: 'Skip setting default credentials and region. By default the accessKeyId/secretAccessKey are set to "key" and "secret" and the region is set to "us-east-1". If you specify this argument then you need to ensure that credentials are provided some other way. See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html for more details on how default credentials provider works.', +}); + +const { host, port, open: openUrl, dynamo_endpoint: dynamoEndpoint, skip_default_credentials: skipDefaultCredentials } = parser.parse_args(); -const app = createServer(); -const host = process.env.HOST || args.host; -const port = process.env.PORT || args.port; -const server = app.listen(port, host); +const app = createServer({ dynamoEndpoint, skipDefaultCredentials }); +const resolvedHost = process.env.HOST || host; +const resolvedPort = process.env.PORT || port; +const server = app.listen(resolvedPort, resolvedHost); server.on('listening', () => { const address = server.address(); if (!address) { - throw new Error(`Not able to listen on host and port "${host}:${port}"`); + throw new Error(`Not able to listen on host and port "${resolvedHost}:${resolvedPort}"`); } let listenAddress; let listenPort; @@ -57,12 +68,12 @@ server.on('listening', () => { listenPort = address.port; } let url = `http://${listenAddress}${listenPort ? ':' + listenPort : ''}`; - if (!host && listenAddress !== '0.0.0.0') { + if (!resolvedHost && listenAddress !== '0.0.0.0') { url += ` (alternatively http://0.0.0.0:${listenPort})`; } console.info(` dynamodb-admin listening on ${url}`); - if (args.open) { + if (openUrl) { open(url); } }); diff --git a/lib/actions/getPage.ts b/lib/actions/getPage.ts index 0aa912c..7005bdf 100644 --- a/lib/actions/getPage.ts +++ b/lib/actions/getPage.ts @@ -1,19 +1,19 @@ -import type { DynamoDB } from 'aws-sdk'; +import type { KeySchemaElement } from '@aws-sdk/client-dynamodb'; import { extractKey, doSearch, type ScanParams } from '../util'; import type { DynamoDbApi } from '../dynamoDbApi'; +import type { ItemList, Key } from '../types'; export async function getPage( ddbApi: DynamoDbApi, - keySchema: DynamoDB.KeySchema, + keySchema: KeySchemaElement[], TableName: string, scanParams: ScanParams, pageSize: number, - startKey: DynamoDB.Key, operationType: 'query' | 'scan', ): Promise<{ pageItems: Record[]; nextKey: any }> { const pageItems: Record[] = []; - function onNewItems(items: DynamoDB.ItemList | undefined, lastStartKey: DynamoDB.Key | undefined): boolean { + function onNewItems(items: ItemList | undefined, lastStartKey: Key | undefined): boolean { if (items) { for (let i = 0; i < items.length && pageItems.length < pageSize + 1; i++) { pageItems.push(items[i]); @@ -26,7 +26,7 @@ export async function getPage( return pageItems.length > pageSize || !lastStartKey; } - let items = await doSearch(ddbApi, TableName, scanParams, 10, startKey, onNewItems, operationType); + let items = await doSearch(ddbApi, TableName, scanParams, 10, onNewItems, operationType); let nextKey = null; if (items.length > pageSize) { diff --git a/lib/actions/listAllTables.ts b/lib/actions/listAllTables.ts index b3658d9..b20eb6e 100644 --- a/lib/actions/listAllTables.ts +++ b/lib/actions/listAllTables.ts @@ -1,8 +1,8 @@ -import type { DynamoDB } from 'aws-sdk'; +import type { TableDescription } from '@aws-sdk/client-dynamodb'; import type { DynamoDbApi } from '../dynamoDbApi'; -export async function listAllTables(ddbApi: DynamoDbApi): Promise { - const allTableNames: DynamoDB.TableNameList = []; +export async function listAllTables(ddbApi: DynamoDbApi): Promise { + const allTableNames: string[] = []; let lastEvaluatedTableName: string | undefined = undefined; do { diff --git a/lib/actions/purgeTable.ts b/lib/actions/purgeTable.ts index 184d6c6..fa61850 100644 --- a/lib/actions/purgeTable.ts +++ b/lib/actions/purgeTable.ts @@ -1,6 +1,8 @@ -import type { DynamoDB } from 'aws-sdk'; +import type { BatchWriteItemOutput, KeySchemaElement } from '@aws-sdk/client-dynamodb'; +import type { BatchWriteCommandInput, BatchWriteCommandOutput } from '@aws-sdk/lib-dynamodb'; import { doSearch, type ScanParams } from '../util'; import type { DynamoDbApi } from '../dynamoDbApi'; +import type { ItemList } from '../types'; /** * This function deletes all record from a given table within dynamodb. @@ -27,12 +29,12 @@ async function findPrimaryKeys(tableName: string, ddbApi: DynamoDbApi): Promise< return ['HASH', 'RANGE'] .map(keyType => tableDescription.KeySchema!.find(element => element.KeyType === keyType)) - .filter(attribute => attribute !== undefined) - .map(attribute => attribute.AttributeName); + .filter(attribute => attribute !== undefined) + .map(attribute => attribute.AttributeName as string); } -async function findAllElements(tableName: string, primaryKeys: string[], ddbApi: DynamoDbApi): Promise { - const ExpressionAttributeNames: DynamoDB.ExpressionAttributeNameMap = {}; +async function findAllElements(tableName: string, primaryKeys: string[], ddbApi: DynamoDbApi): Promise { + const ExpressionAttributeNames: ScanParams['ExpressionAttributeNames'] = {}; for (const [index, key] of primaryKeys.entries()) { ExpressionAttributeNames[`#KEY${index}`] = key; @@ -46,18 +48,16 @@ async function findAllElements(tableName: string, primaryKeys: string[], ddbApi: return await doSearch(ddbApi, tableName, scanParams); } -async function deleteAllElements(tableName: string, items: DynamoDB.Key[], ddbApi: DynamoDbApi): Promise { - const deleteRequests: Promise[] = []; +async function deleteAllElements(tableName: string, items: ItemList, ddbApi: DynamoDbApi): Promise { + const deleteRequests: Promise[] = []; let counter = 0; const MAX_OPERATIONS = 25; - const params: DynamoDB.Types.BatchWriteItemInput = { - RequestItems: { - [tableName]: [], - }, + const requestItems: BatchWriteCommandInput['RequestItems'] = { + [tableName]: [], }; for (const item of items) { - params.RequestItems[tableName].push({ + requestItems[tableName].push({ DeleteRequest: { Key: item, }, @@ -66,14 +66,14 @@ async function deleteAllElements(tableName: string, items: DynamoDB.Key[], ddbAp counter++; if (counter % MAX_OPERATIONS === 0) { - deleteRequests.push(ddbApi.batchWriteItem(params)); - params.RequestItems[tableName] = []; + deleteRequests.push(ddbApi.batchWriteItem({ RequestItems: requestItems })); + requestItems[tableName] = []; } } if (counter % MAX_OPERATIONS !== 0) { - deleteRequests.push(ddbApi.batchWriteItem(params)); - params.RequestItems[tableName] = []; + deleteRequests.push(ddbApi.batchWriteItem({ RequestItems: requestItems })); + requestItems[tableName] = []; } return await Promise.all(deleteRequests); diff --git a/lib/backend.ts b/lib/backend.ts index e6fbaed..e8ff0ac 100644 --- a/lib/backend.ts +++ b/lib/backend.ts @@ -1,50 +1,31 @@ import path from 'node:path'; -import fs from 'node:fs'; -import os from 'node:os'; import express, { type Express } from 'express'; -import AWSSDK, { DynamoDB } from 'aws-sdk'; +import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; import { createAwsConfig } from './config'; import { setupRoutes } from './routes'; import { createDynamoDbApi } from './dynamoDbApi'; -function getHomeDir(): string | null { - const env = process.env; - const home = env.HOME || env.USERPROFILE - || (env.HOMEPATH ? (env.HOMEDRIVE || 'C:/') + env.HOMEPATH : null); +export type CreateServerOptions = { + dynamoDbClient?: DynamoDBClient; + expressInstance?: Express; + dynamoEndpoint?: string; + skipDefaultCredentials?: boolean; +}; - if (home) { - return home; - } - - if (typeof os.homedir === 'function') { - return os.homedir(); - } - - return null; -} +export function createServer(options?: CreateServerOptions): Express { + const { dynamoDbClient, expressInstance, dynamoEndpoint, skipDefaultCredentials } = options || {}; + const app = expressInstance || express(); + let dynamoClient = dynamoDbClient; -export function createServer(dynamodb?: DynamoDB, docClient?: DynamoDB.DocumentClient, expressInstance = express()): Express { - const app = expressInstance; app.set('json spaces', 2); app.set('view engine', 'ejs'); app.set('views', path.resolve(__dirname, '..', 'views')); - if (!dynamodb || !docClient) { - const homeDir = getHomeDir(); - - if (homeDir && fs.existsSync(path.join(homeDir, '.aws', 'credentials')) && - fs.existsSync(path.join(homeDir, '.aws', 'config'))) { - process.env.AWS_SDK_LOAD_CONFIG = '1'; - } - - if (!dynamodb) { - dynamodb = new DynamoDB(createAwsConfig(AWSSDK)); - } - - docClient = docClient || new DynamoDB.DocumentClient({ service: dynamodb }); + if (!dynamoClient) { + dynamoClient = new DynamoDBClient(createAwsConfig({ dynamoEndpoint, skipDefaultCredentials })); } - const ddbApi = createDynamoDbApi(dynamodb, docClient); + const ddbApi = createDynamoDbApi(dynamoClient); setupRoutes(app, ddbApi); diff --git a/lib/config.ts b/lib/config.ts index 30c03ce..641411e 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -1,84 +1,49 @@ -import AWSSDK from 'aws-sdk'; +import type { DynamoDBClientConfig } from '@aws-sdk/client-dynamodb'; import clc from 'cli-color'; -type DynamodbAdminConfig = { - accessKeyId: string; - endpoint: string; - region: string; - secretAccessKey: string; - sslEnabled: boolean; +type CreateAwsConfigOptions = { + dynamoEndpoint?: string; + skipDefaultCredentials?: boolean; }; -export function createAwsConfig(AWS: typeof AWSSDK): DynamodbAdminConfig { - const dynamoConfig = loadDynamoConfig(process.env, AWS); - - console.info(clc.blackBright(` database endpoint: \t${dynamoConfig.endpoint}`)); - console.info(clc.blackBright(` region: \t\t${dynamoConfig.region}`)); - console.info(clc.blackBright(` accessKey: \t\t${dynamoConfig.accessKeyId}\n`)); - - return dynamoConfig; -} - /** * Create the configuration for the local dynamodb instance. * - * Region and AccessKeyId are determined as follows: - * 1) Look at local aws configuration in ~/.aws/credentials - * 2) Look at env variables env.AWS_REGION and env.AWS_ACCESS_KEY_ID - * 3) Use default values 'us-east-1' and 'key' - * - * @param env - the process environment - * @param AWS - the AWS SDK object + * AWS SDK default credentials provider resolves configuration from the following sources: + * https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html */ -function loadDynamoConfig(env: NodeJS.ProcessEnv, AWS: typeof AWSSDK): DynamodbAdminConfig { - const dynamoConfig: DynamodbAdminConfig = { - endpoint: 'http://localhost:8000', - sslEnabled: false, - region: 'us-east-1', - accessKeyId: 'key', - secretAccessKey: env.AWS_SECRET_ACCESS_KEY || 'secret', +export function createAwsConfig({ dynamoEndpoint, skipDefaultCredentials }: CreateAwsConfigOptions): DynamoDBClientConfig { + const dynamoConfig: DynamoDBClientConfig = { + endpoint: dynamoEndpoint || 'http://localhost:8000', }; - loadDynamoEndpoint(env, dynamoConfig); - - if (AWS.config) { - if (AWS.config.region !== undefined) { - dynamoConfig.region = AWS.config.region; - } + if (!skipDefaultCredentials) { + dynamoConfig.region = process.env.AWS_REGION ?? 'us-east-1'; + dynamoConfig.credentials = { + accessKeyId: process.env.AWS_ACCESS_KEY_ID ?? 'key', + secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY ?? 'secret', + }; + } - if (AWS.config.credentials) { - if (AWS.config.credentials.accessKeyId !== undefined) { - dynamoConfig.accessKeyId = AWS.config.credentials.accessKeyId; + if (!dynamoEndpoint) { + if (typeof process.env.DYNAMO_ENDPOINT === 'string') { + if (process.env.DYNAMO_ENDPOINT.indexOf('.amazonaws.com') > -1) { + console.error(clc.red('dynamodb-admin is only intended for local development')); + process.exit(1); } + dynamoConfig.endpoint = process.env.DYNAMO_ENDPOINT; + } else { + console.info(clc.yellow(' DYNAMO_ENDPOINT is not defined (using default of http://localhost:8000)')); } } - if (env.AWS_REGION) { - dynamoConfig.region = env.AWS_REGION; + console.info(clc.blackBright(` database endpoint: \t${dynamoConfig.endpoint}`)); + if (dynamoConfig.region) { + console.info(clc.blackBright(` region: \t\t${dynamoConfig.region}`)); } - - if (env.AWS_ACCESS_KEY_ID) { - dynamoConfig.accessKeyId = env.AWS_ACCESS_KEY_ID; + if (dynamoConfig.credentials && 'accessKeyId' in dynamoConfig.credentials) { + console.info(clc.blackBright(` accessKey: \t\t${dynamoConfig.credentials.accessKeyId}\n`)); } return dynamoConfig; } - -function loadDynamoEndpoint(env: NodeJS.ProcessEnv, dynamoConfig: DynamodbAdminConfig): void { - if (typeof env.DYNAMO_ENDPOINT === 'string') { - if (env.DYNAMO_ENDPOINT.indexOf('.amazonaws.com') > -1) { - console.error( - clc.red('dynamodb-admin is only intended for local development'), - ); - process.exit(1); - } - dynamoConfig.endpoint = env.DYNAMO_ENDPOINT; - dynamoConfig.sslEnabled = env.DYNAMO_ENDPOINT.indexOf('https://') === 0; - } else { - console.info( - clc.yellow( - ' DYNAMO_ENDPOINT is not defined (using default of http://localhost:8000)', - ), - ); - } -} diff --git a/lib/dynamoDbApi.ts b/lib/dynamoDbApi.ts index ff63612..39feb79 100644 --- a/lib/dynamoDbApi.ts +++ b/lib/dynamoDbApi.ts @@ -1,36 +1,72 @@ -import type { DynamoDB } from 'aws-sdk'; +import { + CreateTableCommand, + DeleteTableCommand, + DescribeTableCommand, + ListTablesCommand, + type CreateTableInput, + type CreateTableOutput, + type DeleteTableInput, + type DeleteTableOutput, + type DescribeTableInput, + type DynamoDBClient, + type ListTablesInput, + type ListTablesOutput, + type TableDescription, +} from '@aws-sdk/client-dynamodb'; +import { + BatchWriteCommand, + type BatchWriteCommandInput, + type BatchWriteCommandOutput, + DeleteCommand, + type DeleteCommandInput, + type DeleteCommandOutput, + DynamoDBDocumentClient, + GetCommand, + type GetCommandInput, + type GetCommandOutput, + PutCommand, + type PutCommandInput, + type PutCommandOutput, + QueryCommand, + type QueryCommandInput, + type QueryCommandOutput, + ScanCommand, + type ScanCommandInput, + type ScanCommandOutput, +} from '@aws-sdk/lib-dynamodb'; import { DynamoDBAdminError } from './util'; export type DynamoDbApi = { - batchWriteItem: (input: DynamoDB.Types.BatchWriteItemInput) => Promise; - createTable: (input: DynamoDB.Types.CreateTableInput) => Promise; - deleteItem: (input: DynamoDB.DocumentClient.DeleteItemInput) => Promise; - deleteTable: (input: DynamoDB.Types.DeleteTableInput) => Promise; - describeTable: (input: DynamoDB.Types.DescribeTableInput) => Promise; - getItem: (input: DynamoDB.DocumentClient.GetItemInput) => Promise; - listTables: (input: DynamoDB.Types.ListTablesInput) => Promise; - putItem: (input: DynamoDB.DocumentClient.PutItemInput) => Promise; - query: (input: DynamoDB.DocumentClient.QueryInput) => Promise; - scan: (input: DynamoDB.DocumentClient.ScanInput) => Promise; + batchWriteItem: (input: BatchWriteCommandInput) => Promise; + createTable: (input: CreateTableInput) => Promise; + deleteItem: (input: DeleteCommandInput) => Promise; + deleteTable: (input: DeleteTableInput) => Promise; + describeTable: (input: DescribeTableInput) => Promise; + getItem: (input: GetCommandInput) => Promise; + listTables: (input: ListTablesInput) => Promise; + putItem: (input: PutCommandInput) => Promise; + query: (input: QueryCommandInput) => Promise; + scan: (input: ScanCommandInput) => Promise; }; -export function createDynamoDbApi(dynamodb: DynamoDB, documentClient: DynamoDB.DocumentClient): DynamoDbApi { +export function createDynamoDbApi(dynamodb: DynamoDBClient): DynamoDbApi { + const docClient = DynamoDBDocumentClient.from(dynamodb); return { - batchWriteItem: input => dynamodb.batchWriteItem(input).promise(), - createTable: input => dynamodb.createTable(input).promise(), - deleteItem: input => documentClient.delete(input).promise(), - deleteTable: input => dynamodb.deleteTable(input).promise(), + batchWriteItem: input => dynamodb.send(new BatchWriteCommand(input)), + createTable: input => dynamodb.send(new CreateTableCommand(input)), + deleteItem: input => docClient.send(new DeleteCommand(input)), + deleteTable: input => dynamodb.send(new DeleteTableCommand(input)), describeTable: async input => { - const description = await dynamodb.describeTable(input).promise(); + const description = await dynamodb.send(new DescribeTableCommand(input)); if (!description.Table) { throw new DynamoDBAdminError(`No table named ${input.TableName}`); } return description.Table; }, - getItem: input => documentClient.get(input).promise(), - listTables: input => dynamodb.listTables(input).promise(), - putItem: input => documentClient.put(input).promise(), - query: input => documentClient.query(input).promise(), - scan: input => documentClient.scan(input).promise(), + getItem: input => docClient.send(new GetCommand(input)), + listTables: input => dynamodb.send(new ListTablesCommand(input)), + putItem: input => docClient.send(new PutCommand(input)), + query: input => docClient.send(new QueryCommand(input)), + scan: input => docClient.send(new ScanCommand(input)), }; } diff --git a/lib/extractKey.test.ts b/lib/extractKey.test.ts index 8247cca..d28c1aa 100644 --- a/lib/extractKey.test.ts +++ b/lib/extractKey.test.ts @@ -1,4 +1,5 @@ import { describe, it, expect } from 'vitest'; +import type { TableDescription } from '@aws-sdk/client-dynamodb'; import { extractKey } from './util'; const item1 = { @@ -9,7 +10,7 @@ const item1 = { password_hash: 'xyz', }; -const table1 = { +const table1: TableDescription = { AttributeDefinitions: [ { AttributeName: 'username', @@ -28,10 +29,10 @@ const table1 = { }, ], TableStatus: 'ACTIVE', - CreationDateTime: '2016-08-29T22:24:58.739Z', + CreationDateTime: new Date('2016-08-29T22:24:58.739Z'), ProvisionedThroughput: { - LastIncreaseDateTime: '1970-01-01T00:00:00.000Z', - LastDecreaseDateTime: '1970-01-01T00:00:00.000Z', + LastIncreaseDateTime: new Date('1970-01-01T00:00:00.000Z'), + LastDecreaseDateTime: new Date('1970-01-01T00:00:00.000Z'), NumberOfDecreasesToday: 0, ReadCapacityUnits: 1, WriteCapacityUnits: 1, @@ -71,7 +72,7 @@ const item2 = { document_id: 'CfHhu6d1C_8W4JygfbBAc16UJeg2Bw', }; -const table2 = { +const table2: TableDescription = { AttributeDefinitions: [ { AttributeName: 'document_id', @@ -94,10 +95,10 @@ const table2 = { }, ], TableStatus: 'ACTIVE', - CreationDateTime: '2016-06-29T21:46:09.943Z', + CreationDateTime: new Date('2016-06-29T21:46:09.943Z'), ProvisionedThroughput: { - LastIncreaseDateTime: '1970-01-01T00:00:00.000Z', - LastDecreaseDateTime: '1970-01-01T00:00:00.000Z', + LastIncreaseDateTime: new Date('1970-01-01T00:00:00.000Z'), + LastDecreaseDateTime: new Date('1970-01-01T00:00:00.000Z'), NumberOfDecreasesToday: 0, ReadCapacityUnits: 5, WriteCapacityUnits: 5, @@ -108,14 +109,14 @@ const table2 = { describe('extractKey', () => { it('serializes item with 1 key attribute', () => { - const serializedKey = extractKey(item1, table1.KeySchema); + const serializedKey = extractKey(item1, table1.KeySchema!); expect(serializedKey).toEqual({ username: 'jdoe@domain.com', }); }); it('serializes item with 2 key attributes', () => { - const serializedKey = extractKey(item2, table2.KeySchema); + const serializedKey = extractKey(item2, table2.KeySchema!); expect(serializedKey).toEqual({ document_id: 'CfHhu6d1C_8W4JygfbBAc16UJeg2Bw', ctx_and_id: 'admin|0a5c7a9c-af15-2156-fd4f-80c20bca6414', diff --git a/lib/parseKey.test.ts b/lib/parseKey.test.ts index 072bfb7..4d45fde 100644 --- a/lib/parseKey.test.ts +++ b/lib/parseKey.test.ts @@ -1,8 +1,8 @@ import { describe, it, expect } from 'vitest'; -import type { DynamoDB } from 'aws-sdk'; +import type { TableDescription } from '@aws-sdk/client-dynamodb'; import { parseKey } from './util'; -const table1: DynamoDB.TableDescription = { +const table1: TableDescription = { AttributeDefinitions: [ { AttributeName: 'document_id', diff --git a/lib/routes.ts b/lib/routes.ts index 431bfa2..11cd90c 100644 --- a/lib/routes.ts +++ b/lib/routes.ts @@ -1,5 +1,5 @@ import path from 'node:path'; -import type { DynamoDB } from 'aws-sdk'; +import type { AttributeDefinition, KeySchemaElement, GlobalSecondaryIndex, LocalSecondaryIndex, ScanInput, QueryInput, ScalarAttributeType } from '@aws-sdk/client-dynamodb'; import express, { type Express, type ErrorRequestHandler } from 'express'; import errorhandler from 'errorhandler'; import bodyParser from 'body-parser'; @@ -43,20 +43,36 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { res.render('create-table', {}); }); + type TableDefinitionInput = { + TableName: string; + HashAttributeName: string; + HashAttributeType: ScalarAttributeType; + RangeAttributeName?: string; + RangeAttributeType?: ScalarAttributeType; + ReadCapacityUnits: number; + WriteCapacityUnits: number; + }; + + type SecondaryIndexesInput = Omit & { + IndexName: string; + IndexType: 'global' | 'local'; + }; + app.post( '/create-table', bodyParser.json({ limit: '500kb' }), asyncMiddleware(async(req, res) => { - const { TableName, HashAttributeName, HashAttributeType, RangeAttributeName, RangeAttributeType, SecondaryIndexes, ReadCapacityUnits, WriteCapacityUnits } = req.body; + const { TableName, HashAttributeName, HashAttributeType, RangeAttributeName, RangeAttributeType, ReadCapacityUnits, WriteCapacityUnits } = req.body.TableDefinition as TableDefinitionInput; + const SecondaryIndexes = req.body.SecondaryIndexes as SecondaryIndexesInput[]; - const attributeDefinitions: DynamoDB.AttributeDefinitions = [ + const attributeDefinitions: AttributeDefinition[] = [ { AttributeName: HashAttributeName, AttributeType: HashAttributeType, }, ]; - const keySchema: DynamoDB.KeySchema = [ + const keySchema: KeySchemaElement[] = [ { AttributeName: HashAttributeName, KeyType: 'HASH', @@ -64,6 +80,11 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { ]; if (RangeAttributeName) { + if (!RangeAttributeType) { + res.status(400).json({ message: `The attribute type of the range attribute "${RangeAttributeName}" is not specified` }); + return; + } + attributeDefinitions.push({ AttributeName: RangeAttributeName, AttributeType: RangeAttributeType, @@ -75,11 +96,11 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { }); } - const globalSecondaryIndexes: DynamoDB.GlobalSecondaryIndexList = []; - const localSecondaryIndexes: DynamoDB.LocalSecondaryIndexList = []; + const globalSecondaryIndexes: GlobalSecondaryIndex[] = []; + const localSecondaryIndexes: LocalSecondaryIndex[] = []; if (SecondaryIndexes) { for (const secondaryIndex of SecondaryIndexes) { - const secondaryIndexKeySchema: DynamoDB.KeySchema = [ + const secondaryIndexKeySchema: KeySchemaElement[] = [ { AttributeName: secondaryIndex.HashAttributeName, KeyType: 'HASH', @@ -93,8 +114,12 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { } if (secondaryIndex.RangeAttributeName) { - if (isAttributeNotAlreadyCreated( - attributeDefinitions, secondaryIndex.RangeAttributeName)) { + if (!secondaryIndex.RangeAttributeType) { + res.status(400).json({ message: `The attribute type of the range attribute "${secondaryIndex.RangeAttributeName}" is not specified` }); + return; + } + + if (isAttributeNotAlreadyCreated(attributeDefinitions, secondaryIndex.RangeAttributeName)) { attributeDefinitions.push({ AttributeName: secondaryIndex.RangeAttributeName, AttributeType: secondaryIndex.RangeAttributeType, @@ -107,7 +132,7 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { }); } - const index: DynamoDB.GlobalSecondaryIndex | DynamoDB.LocalSecondaryIndex = { + const index: GlobalSecondaryIndex | LocalSecondaryIndex = { IndexName: secondaryIndex.IndexName, KeySchema: secondaryIndexKeySchema, Projection: { @@ -119,8 +144,8 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { globalSecondaryIndexes.push({ ...index, ProvisionedThroughput: { - ReadCapacityUnits, - WriteCapacityUnits, + ReadCapacityUnits: secondaryIndex.ReadCapacityUnits, + WriteCapacityUnits: secondaryIndex.WriteCapacityUnits, }, }); } else { @@ -252,8 +277,8 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { } } - const ExpressionAttributeNames: DynamoDB.ExpressionAttributeNameMap = {}; - const ExpressionAttributeValues: DynamoDB.ExpressionAttributeValueMap = {}; + const ExpressionAttributeNames: ScanInput['ExpressionAttributeNames'] | QueryInput['ExpressionAttributeNames'] = {}; + const ExpressionAttributeValues: ScanInput['ExpressionAttributeValues'] | QueryInput['ExpressionAttributeValues'] = {}; const FilterExpressions: string[] = []; const KeyConditionExpression: string[] = []; @@ -294,16 +319,16 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { const params: ScanParams = { FilterExpression: FilterExpressions.length ? FilterExpressions.join(' AND ') : undefined, + ExclusiveStartKey: Object.keys(ExclusiveStartKey).length ? ExclusiveStartKey : undefined, ExpressionAttributeNames: Object.keys(ExpressionAttributeNames).length ? ExpressionAttributeNames : undefined, ExpressionAttributeValues: Object.keys(ExpressionAttributeValues).length ? ExpressionAttributeValues : undefined, KeyConditionExpression: KeyConditionExpression.length ? KeyConditionExpression.join(' AND ') : undefined, IndexName: queryableSelection !== 'table' ? queryableSelection : undefined, }; - const startKey = Object.keys(ExclusiveStartKey).length ? ExclusiveStartKey : undefined; const pageSize = typeof req.query.pageSize === 'string' ? Number.parseInt(req.query.pageSize) : 25; try { - const results = await getPage(ddbApi, tableDescription.KeySchema!, TableName, params, pageSize, startKey, operationType); + const results = await getPage(ddbApi, tableDescription.KeySchema!, TableName, params, pageSize, operationType); const { pageItems, nextKey } = results; const primaryKeys = tableDescription.KeySchema!.map(schema => schema.AttributeName); @@ -353,12 +378,10 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { app.delete('/tables/:TableName/items/:key', asyncMiddleware(async(req, res) => { const { TableName } = req.params; const tableDescription = await ddbApi.describeTable({ TableName }); - const params = { + await ddbApi.deleteItem({ TableName, Key: parseKey(req.params.key, tableDescription), - }; - - await ddbApi.deleteItem(params); + }); res.status(204).end(); })); @@ -367,8 +390,14 @@ export function setupRoutes(app: Express, ddbApi: DynamoDbApi): void { const tableDescription = await ddbApi.describeTable({ TableName }); const Item: Record = {}; for (const key of tableDescription.KeySchema!) { - const definition = tableDescription.AttributeDefinitions!.find(attribute => attribute.AttributeName === key.AttributeName); - Item[key.AttributeName] = definition!.AttributeType === 'S' ? '' : 0; + if (!key.AttributeName || !tableDescription.AttributeDefinitions) { + continue; + } + const definition = tableDescription.AttributeDefinitions.find(attribute => attribute.AttributeName === key.AttributeName); + if (!definition) { + continue; + } + Item[key.AttributeName] = definition.AttributeType === 'S' ? '' : 0; } res.render('item', { Table: tableDescription, diff --git a/lib/types.d.ts b/lib/types.d.ts new file mode 100644 index 0000000..f167881 --- /dev/null +++ b/lib/types.d.ts @@ -0,0 +1,4 @@ +import type { ScanCommandOutput, QueryCommandOutput } from '@aws-sdk/lib-dynamodb'; + +export type ItemList = NonNullable; +export type Key = NonNullable; diff --git a/lib/util.ts b/lib/util.ts index 522e612..3baa400 100644 --- a/lib/util.ts +++ b/lib/util.ts @@ -1,5 +1,7 @@ -import type { DynamoDB } from 'aws-sdk'; +import type { AttributeDefinition, KeySchemaElement, QueryInput, TableDescription } from '@aws-sdk/client-dynamodb'; +import type { ScanCommandInput, QueryCommandInput } from '@aws-sdk/lib-dynamodb'; import type { DynamoDbApi } from './dynamoDbApi'; +import type { ItemList, Key } from './types'; export class DynamoDBAdminError extends Error { public status: number; @@ -10,23 +12,25 @@ export class DynamoDBAdminError extends Error { } } -export type ScanParams = Omit; +export type ScanParams = Omit; -export function extractKey(item: Record, KeySchema: DynamoDB.KeySchema): Record { - return KeySchema.reduce((prev, current) => { - return Object.assign({}, prev, { - [current.AttributeName]: item[current.AttributeName], - }); +export function extractKey(item: Record, keySchema: KeySchemaElement[]): Record { + return keySchema.reduce((prev, current) => { + return { + ...prev, + ...current.AttributeName ? { [current.AttributeName]: item[current.AttributeName] } : {}, + }; }, {}); } -export function parseKey(keys: string, tableDescription: DynamoDB.TableDescription): Record { +export function parseKey(keys: string, tableDescription: TableDescription): Record { const splitKeys = keys.split(','); return tableDescription.KeySchema!.reduce((prev, current, index) => { - return Object.assign({}, prev, { - [current.AttributeName]: typecastKey(current.AttributeName, splitKeys[index], tableDescription), - }); + return { + ...prev, + ...current.AttributeName ? { [current.AttributeName]: typecastKey(current.AttributeName, splitKeys[index], tableDescription) } : {}, + }; }, {}); } @@ -53,29 +57,26 @@ export function extractKeysForItems(Items: Record[]): string[] { * @param startKey The key to start query from * @param progress Function to execute on each new items returned from query. Returns true to stop the query. * @param readOperation The read operation - * @return Promise with items or rejected promise with error. */ export async function doSearch( ddbApi: DynamoDbApi, tableName: string, scanParams: ScanParams, limit?: number, - startKey?: DynamoDB.Key, - progress?: (items: DynamoDB.ItemList | undefined, lastStartKey: DynamoDB.Key | undefined) => boolean, + progress?: (items: ItemList | undefined, lastStartKey: Key | undefined) => boolean, readOperation: 'query' | 'scan' = 'scan', -): Promise { - const params: DynamoDB.DocumentClient.ScanInput | DynamoDB.DocumentClient.QueryInput = { +): Promise { + const params: ScanCommandInput | QueryCommandInput = { TableName: tableName, ...scanParams ? scanParams : {}, ...limit !== undefined ? { Limit: limit } : {}, - ...startKey !== undefined ? { ExclusiveStartKey: startKey } : {}, }; const readMethod = ddbApi[readOperation]; - let items: DynamoDB.DocumentClient.ItemList = []; + let items: ItemList = []; - const getNextBite = async(params: DynamoDB.DocumentClient.ScanInput | DynamoDB.DocumentClient.QueryInput, nextKey: DynamoDB.Key | undefined = undefined): Promise => { + const getNextBite = async(params: ScanCommandInput | QueryCommandInput, nextKey: Key | undefined = undefined): Promise => { if (nextKey) { params.ExclusiveStartKey = nextKey; } @@ -108,7 +109,7 @@ export async function doSearch( return await getNextBite(params); } -function typecastKey(keyName: string, keyValue: string, table: DynamoDB.TableDescription): string | number { +function typecastKey(keyName: string, keyValue: string, table: TableDescription): string | number { const definition = table.AttributeDefinitions!.find(attribute => attribute.AttributeName === keyName); if (definition) { switch (definition.AttributeType) { @@ -121,6 +122,6 @@ function typecastKey(keyName: string, keyValue: string, table: DynamoDB.TableDes return keyValue; } -export function isAttributeNotAlreadyCreated(attributeDefinitions: DynamoDB.AttributeDefinitions, attributeName: string): boolean { +export function isAttributeNotAlreadyCreated(attributeDefinitions: AttributeDefinition[], attributeName: string): boolean { return !attributeDefinitions.find(attributeDefinition => attributeDefinition.AttributeName === attributeName); } diff --git a/package-lock.json b/package-lock.json index d558bd3..bd3d954 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,9 @@ "version": "4.6.2", "license": "MIT", "dependencies": { + "@aws-sdk/client-dynamodb": "^3.693.0", + "@aws-sdk/lib-dynamodb": "^3.693.0", "argparse": "^2.0.1", - "aws-sdk": "^2.1692.0", "body-parser": "^1.20.3", "cli-color": "^2.0.4", "cookie-parser": "^1.4.7", @@ -48,6 +49,705 @@ "vitest": "^2.1.5" } }, + "node_modules/@aws-crypto/sha256-browser": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", + "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", + "dependencies": { + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", + "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-dynamodb": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-dynamodb/-/client-dynamodb-3.693.0.tgz", + "integrity": "sha512-EmgFoE/wAxiOq/sfO/VFGlmvfq0FexUO4IMURr3deIpU/AuCsuU87HJH/UodFdKu88ykNZxMfHHku6o6BV2dAA==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/client-sts": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-endpoint-discovery": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "@smithy/util-waiter": "^3.1.8", + "@types/uuid": "^9.0.1", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.693.0.tgz", + "integrity": "sha512-QEynrBC26x6TG9ZMzApR/kZ3lmt4lEIs2D+cHuDxt6fDGzahBUsQFBwJqhizzsM97JJI5YvmJhmihoYjdSSaXA==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/client-sso-oidc": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso-oidc/-/client-sso-oidc-3.693.0.tgz", + "integrity": "sha512-UEDbYlYtK/e86OOMyFR4zEPyenIxDzO2DRdz3fwVW7RzZ94wfmSwBh/8skzPTuY1G7sI064cjHW0b0QG01Sdtg==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-sdk/client-sts": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.693.0.tgz", + "integrity": "sha512-4S2y7VEtvdnjJX4JPl4kDQlslxXEZFnC50/UXVUYSt/AMc5A/GgspFNA5FVz4E3Gwpfobbf23hR2NBF8AGvYoQ==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/client-sso-oidc": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-node": "3.693.0", + "@aws-sdk/middleware-host-header": "3.693.0", + "@aws-sdk/middleware-logger": "3.693.0", + "@aws-sdk/middleware-recursion-detection": "3.693.0", + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/region-config-resolver": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@aws-sdk/util-user-agent-browser": "3.693.0", + "@aws-sdk/util-user-agent-node": "3.693.0", + "@smithy/config-resolver": "^3.0.11", + "@smithy/core": "^2.5.2", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/hash-node": "^3.0.9", + "@smithy/invalid-dependency": "^3.0.9", + "@smithy/middleware-content-length": "^3.0.11", + "@smithy/middleware-endpoint": "^3.2.2", + "@smithy/middleware-retry": "^3.0.26", + "@smithy/middleware-serde": "^3.0.9", + "@smithy/middleware-stack": "^3.0.9", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/url-parser": "^3.0.9", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-body-length-node": "^3.0.0", + "@smithy/util-defaults-mode-browser": "^3.0.26", + "@smithy/util-defaults-mode-node": "^3.0.26", + "@smithy/util-endpoints": "^2.1.5", + "@smithy/util-middleware": "^3.0.9", + "@smithy/util-retry": "^3.0.9", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/core": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.693.0.tgz", + "integrity": "sha512-v6Z/kWmLFqRLDPEwl9hJGhtTgIFHjZugSfF1Yqffdxf4n1AWgtHS7qSegakuMyN5pP4K2tvUD8qHJ+gGe2Bw2A==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/core": "^2.5.2", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/signature-v4": "^4.2.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-middleware": "^3.0.9", + "fast-xml-parser": "4.4.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.693.0.tgz", + "integrity": "sha512-hMUZaRSF7+iBKZfBHNLihFs9zvpM1CB8MBOTnTp5NGCVkRYF3SB2LH+Kcippe0ats4qCyB1eEoyQX99rERp2iQ==", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.693.0.tgz", + "integrity": "sha512-sL8MvwNJU7ZpD7/d2VVb3by1GknIJUxzTIgYtVkDVA/ojo+KRQSSHxcj0EWWXF5DTSh2Tm+LrEug3y1ZyKHsDA==", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/fetch-http-handler": "^4.1.0", + "@smithy/node-http-handler": "^3.3.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/protocol-http": "^4.1.6", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "@smithy/util-stream": "^3.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.693.0.tgz", + "integrity": "sha512-kvaa4mXhCCOuW7UQnBhYqYfgWmwy7WSBSDClutwSLPZvgrhYj2l16SD2lN4IfYdxARYMJJ1lFYp3/jJG/9Yk4Q==", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.693.0.tgz", + "integrity": "sha512-42WMsBjTNnjYxYuM3qD/Nq+8b7UdMopUq5OduMDxoM3mFTV6PXMMnfI4Z1TNnR4tYRvPXAnuNltF6xmjKbSJRA==", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.693.0", + "@aws-sdk/credential-provider-http": "3.693.0", + "@aws-sdk/credential-provider-ini": "3.693.0", + "@aws-sdk/credential-provider-process": "3.693.0", + "@aws-sdk/credential-provider-sso": "3.693.0", + "@aws-sdk/credential-provider-web-identity": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/credential-provider-imds": "^3.2.6", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.693.0.tgz", + "integrity": "sha512-cvxQkrTWHHjeHrPlj7EWXPnFSq8x7vMx+Zn1oTsMpCY445N9KuzjfJTkmNGwU2GT6rSZI9/0MM02aQvl5bBBTQ==", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.693.0.tgz", + "integrity": "sha512-479UlJxY+BFjj3pJFYUNC0DCMrykuG7wBAXfsvZqQxKUa83DnH5Q1ID/N2hZLkxjGd4ZW0AC3lTOMxFelGzzpQ==", + "dependencies": { + "@aws-sdk/client-sso": "3.693.0", + "@aws-sdk/core": "3.693.0", + "@aws-sdk/token-providers": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.693.0.tgz", + "integrity": "sha512-8LB210Pr6VeCiSb2hIra+sAH4KUBLyGaN50axHtIgufVK8jbKIctTZcVY5TO9Se+1107TsruzeXS7VeqVdJfFA==", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sts": "^3.693.0" + } + }, + "node_modules/@aws-sdk/endpoint-cache": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/endpoint-cache/-/endpoint-cache-3.693.0.tgz", + "integrity": "sha512-/zK0ZZncBf5FbTfo8rJMcQIXXk4Ibhe5zEMiwFNivVPR2uNC0+oqfwXz7vjxwY0t6BPE3Bs4h9uFEz4xuGCY6w==", + "dependencies": { + "mnemonist": "0.38.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/lib-dynamodb": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/lib-dynamodb/-/lib-dynamodb-3.693.0.tgz", + "integrity": "sha512-LrGLXoioeT9xJQxJHmtV9MSQW5rl0Pv1wzgnWARIUsF+srkO2dA2UgTES0G1Sv3fXSFqPwplU6Knwe0yx+P2/w==", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/util-dynamodb": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/smithy-client": "^3.4.3", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-dynamodb": "^3.693.0" + } + }, + "node_modules/@aws-sdk/middleware-endpoint-discovery": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-endpoint-discovery/-/middleware-endpoint-discovery-3.693.0.tgz", + "integrity": "sha512-OG8WM8OzYuAt3Ueb8TZoBgA+vqNgPaXksHhiy8SFTQxNamSMMRvKrDSBbdUuV96mq0lcJq1mFgJ4oRXJ1HPh6A==", + "dependencies": { + "@aws-sdk/endpoint-cache": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/middleware-host-header": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.693.0.tgz", + "integrity": "sha512-BCki6sAZ5jYwIN/t3ElCiwerHad69ipHwPsDCxJQyeiOnJ8HG+lEpnVIfrnI8A0fLQNSF3Gtx6ahfBpKiv1Oug==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/middleware-logger": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.693.0.tgz", + "integrity": "sha512-dXnXDPr+wIiJ1TLADACI1g9pkSB21KkMIko2u4CJ2JCBoxi5IqeTnVoa6YcC8GdFNVRl+PorZ3Zqfmf1EOTC6w==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.693.0.tgz", + "integrity": "sha512-0LDmM+VxXp0u3rG0xQRWD/q6Ubi7G8I44tBPahevD5CaiDZTkmNTrVUf0VEJgVe0iCKBppACMBDkLB0/ETqkFw==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.693.0.tgz", + "integrity": "sha512-/KUq/KEpFFbQmNmpp7SpAtFAdViquDfD2W0QcG07zYBfz9MwE2ig48ALynXm5sMpRmnG7sJXjdvPtTsSVPfkiw==", + "dependencies": { + "@aws-sdk/core": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@aws-sdk/util-endpoints": "3.693.0", + "@smithy/core": "^2.5.2", + "@smithy/protocol-http": "^4.1.6", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/region-config-resolver": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.693.0.tgz", + "integrity": "sha512-YLUkMsUY0GLW/nfwlZ69cy1u07EZRmsv8Z9m0qW317/EZaVx59hcvmcvb+W4bFqj5E8YImTjoGfE4cZ0F9mkyw==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.9", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/token-providers": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.693.0.tgz", + "integrity": "sha512-nDBTJMk1l/YmFULGfRbToOA2wjf+FkQT4dMgYCv+V9uSYsMzQj8A7Tha2dz9yv4vnQgYaEiErQ8d7HVyXcVEoA==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/property-provider": "^3.1.9", + "@smithy/shared-ini-file-loader": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-sso-oidc": "^3.693.0" + } + }, + "node_modules/@aws-sdk/types": { + "version": "3.692.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.692.0.tgz", + "integrity": "sha512-RpNvzD7zMEhiKgmlxGzyXaEcg2khvM7wd5sSHVapOcrde1awQSOMGI4zKBQ+wy5TnDfrm170ROz/ERLYtrjPZA==", + "dependencies": { + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/util-dynamodb": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-dynamodb/-/util-dynamodb-3.693.0.tgz", + "integrity": "sha512-lwJnlQndVS7cGN1UmtG4s6IdVW3U/WheJ14Xc/mUeAH3vga7GTY3hGi+Jp1TbnaYQkad589tU+NQ5KUW7V8ZjA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@aws-sdk/client-dynamodb": "^3.693.0" + } + }, + "node_modules/@aws-sdk/util-endpoints": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.693.0.tgz", + "integrity": "sha512-eo4F6DRQ/kxS3gxJpLRv+aDNy76DxQJL5B3DPzpr9Vkq0ygVoi4GT5oIZLVaAVIJmi6k5qq9dLsYZfWLUxJJSg==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "@smithy/util-endpoints": "^2.1.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.693.0.tgz", + "integrity": "sha512-ttrag6haJLWABhLqtg1Uf+4LgHWIMOVSYL+VYZmAp2v4PUGOwWmWQH0Zk8RM7YuQcLfH/EoR72/Yxz6A4FKcuw==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.693.0.tgz", + "integrity": "sha512-6EUfuKOujtddy18OLJUaXfKBgs+UcbZ6N/3QV4iOkubCUdeM1maIqs++B9bhCbWeaeF5ORizJw5FTwnyNjE/mw==", + "dependencies": { + "@aws-sdk/types": "3.692.0", + "@smithy/types": "^3.7.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.693.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.693.0.tgz", + "integrity": "sha512-td0OVX8m5ZKiXtecIDuzY3Y3UZIzvxEr57Hp21NOwieqKCG2UeyQWWeGPv0FQaU7dpTkvFmVNI+tx9iB8V/Nhg==", + "dependencies": { + "@aws-sdk/middleware-user-agent": "3.693.0", + "@aws-sdk/types": "3.692.0", + "@smithy/node-config-provider": "^3.1.10", + "@smithy/types": "^3.7.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, "node_modules/@babel/code-frame": { "version": "7.26.2", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", @@ -999,68 +1699,595 @@ "linux" ] }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.27.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.27.2.tgz", - "integrity": "sha512-dOlWEMg2gI91Qx5I/HYqOD6iqlJspxLcS4Zlg3vjk1srE67z5T2Uz91yg/qA8sY0XcwQrFzWWiZhMNERylLrpQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ] + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.27.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.27.2.tgz", + "integrity": "sha512-dOlWEMg2gI91Qx5I/HYqOD6iqlJspxLcS4Zlg3vjk1srE67z5T2Uz91yg/qA8sY0XcwQrFzWWiZhMNERylLrpQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.27.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.27.2.tgz", + "integrity": "sha512-euMIv/4x5Y2/ImlbGl88mwKNXDsvzbWUlT7DFky76z2keajCtcbAsN9LUdmk31hAoVmJJYSThgdA0EsPeTr1+w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.27.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.27.2.tgz", + "integrity": "sha512-RsnE6LQkUHlkC10RKngtHNLxb7scFykEbEwOFDjr3CeCMG+Rr+cKqlkKc2/wJ1u4u990urRHCbjz31x84PBrSQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.27.2", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.27.2.tgz", + "integrity": "sha512-foJM5vv+z2KQmn7emYdDLyTbkoO5bkHZE1oth2tWbQNGW7mX32d46Hz6T0MqXdWS2vBZhaEtHqdy9WYwGfiliA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", + "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@smithy/abort-controller": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.8.tgz", + "integrity": "sha512-+3DOBcUn5/rVjlxGvUPKc416SExarAQ+Qe0bqk30YSUjbepwpS7QN0cyKUSifvLJhdMZ0WPzPP5ymut0oonrpQ==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/config-resolver": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.12.tgz", + "integrity": "sha512-YAJP9UJFZRZ8N+UruTeq78zkdjUHmzsY62J4qKWZ4SXB4QXJ/+680EfXXgkYA2xj77ooMqtUY9m406zGNqwivQ==", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/util-config-provider": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/core": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-2.5.3.tgz", + "integrity": "sha512-96uW8maifUSmehaeW7uydWn7wBc98NEeNI3zN8vqakGpyCQgzyJaA64Z4FCOUmAdCJkhppd/7SZ798Fo4Xx37g==", + "dependencies": { + "@smithy/middleware-serde": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-body-length-browser": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-stream": "^3.3.1", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.7.tgz", + "integrity": "sha512-cEfbau+rrWF8ylkmmVAObOmjbTIzKyUC5TkBL58SbLywD0RCBC4JAUKbmtSm2w5KUJNRPGgpGFMvE2FKnuNlWQ==", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/fetch-http-handler": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-4.1.1.tgz", + "integrity": "sha512-bH7QW0+JdX0bPBadXt8GwMof/jz0H28I84hU1Uet9ISpzUqXqRQ3fEZJ+ANPOhzSEczYvANNl3uDQDYArSFDtA==", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@smithy/hash-node": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.10.tgz", + "integrity": "sha512-3zWGWCHI+FlJ5WJwx73Mw2llYR8aflVyZN5JhoqLxbdPZi6UyKSdCeXAWJw9ja22m6S6Tzz1KZ+kAaSwvydi0g==", + "dependencies": { + "@smithy/types": "^3.7.1", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/invalid-dependency": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.10.tgz", + "integrity": "sha512-Lp2L65vFi+cj0vFMu2obpPW69DU+6O5g3086lmI4XcnRCG8PxvpWC7XyaVwJCxsZFzueHjXnrOH/E0pl0zikfA==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + } + }, + "node_modules/@smithy/is-array-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-3.0.0.tgz", + "integrity": "sha512-+Fsu6Q6C4RSJiy81Y8eApjEB5gVtM+oFKTffg+jSuwtvomJJrhUJBu2zS8wjXSgH/g1MKEWrzyChTBe6clb5FQ==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/middleware-content-length": { + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.12.tgz", + "integrity": "sha512-1mDEXqzM20yywaMDuf5o9ue8OkJ373lSPbaSjyEvkWdqELhFMyNNgKGWL/rCSf4KME8B+HlHKuR8u9kRj8HzEQ==", + "dependencies": { + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/middleware-endpoint": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.2.3.tgz", + "integrity": "sha512-Hdl9296i/EMptaX7agrSzJZDiz5Y8XPUeBbctTmMtnCguGpqfU3jVsTUan0VLaOhsnquqWLL8Bl5HrlbVGT1og==", + "dependencies": { + "@smithy/core": "^2.5.3", + "@smithy/middleware-serde": "^3.0.10", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "@smithy/url-parser": "^3.0.10", + "@smithy/util-middleware": "^3.0.10", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/middleware-retry": { + "version": "3.0.27", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-3.0.27.tgz", + "integrity": "sha512-H3J/PjJpLL7Tt+fxDKiOD25sMc94YetlQhCnYeNmina2LZscAdu0ZEZPas/kwePHABaEtqp7hqa5S4UJgMs1Tg==", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/protocol-http": "^4.1.7", + "@smithy/service-error-classification": "^3.0.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-retry": "^3.0.10", + "tslib": "^2.6.2", + "uuid": "^9.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/middleware-serde": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.10.tgz", + "integrity": "sha512-MnAuhh+dD14F428ubSJuRnmRsfOpxSzvRhaGVTvd/lrUDE3kxzCCmH8lnVTvoNQnV2BbJ4c15QwZ3UdQBtFNZA==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/middleware-stack": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.10.tgz", + "integrity": "sha512-grCHyoiARDBBGPyw2BeicpjgpsDFWZZxptbVKb3CRd/ZA15F/T6rZjCCuBUjJwdck1nwUuIxYtsS4H9DDpbP5w==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/node-config-provider": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.11.tgz", + "integrity": "sha512-URq3gT3RpDikh/8MBJUB+QGZzfS7Bm6TQTqoh4CqE8NBuyPkWa5eUXj0XFcFfeZVgg3WMh1u19iaXn8FvvXxZw==", + "dependencies": { + "@smithy/property-provider": "^3.1.10", + "@smithy/shared-ini-file-loader": "^3.1.11", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/node-http-handler": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.3.1.tgz", + "integrity": "sha512-fr+UAOMGWh6bn4YSEezBCpJn9Ukp9oR4D32sCjCo7U81evE11YePOQ58ogzyfgmjIO79YeOdfXXqr0jyhPQeMg==", + "dependencies": { + "@smithy/abort-controller": "^3.1.8", + "@smithy/protocol-http": "^4.1.7", + "@smithy/querystring-builder": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/property-provider": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.10.tgz", + "integrity": "sha512-n1MJZGTorTH2DvyTVj+3wXnd4CzjJxyXeOgnTlgNVFxaaMeT4OteEp4QrzF8p9ee2yg42nvyVK6R/awLCakjeQ==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/protocol-http": { + "version": "4.1.7", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.7.tgz", + "integrity": "sha512-FP2LepWD0eJeOTm0SjssPcgqAlDFzOmRXqXmGhfIM52G7Lrox/pcpQf6RP4F21k0+O12zaqQt5fCDOeBtqY6Cg==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/querystring-builder": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.10.tgz", + "integrity": "sha512-nT9CQF3EIJtIUepXQuBFb8dxJi3WVZS3XfuDksxSCSn+/CzZowRLdhDn+2acbBv8R6eaJqPupoI/aRFIImNVPQ==", + "dependencies": { + "@smithy/types": "^3.7.1", + "@smithy/util-uri-escape": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/querystring-parser": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.10.tgz", + "integrity": "sha512-Oa0XDcpo9SmjhiDD9ua2UyM3uU01ZTuIrNdZvzwUTykW1PM8o2yJvMh1Do1rY5sUQg4NDV70dMi0JhDx4GyxuQ==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/service-error-classification": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.10.tgz", + "integrity": "sha512-zHe642KCqDxXLuhs6xmHVgRwy078RfqxP2wRDpIyiF8EmsWXptMwnMwbVa50lw+WOGNrYm9zbaEg0oDe3PTtvQ==", + "dependencies": { + "@smithy/types": "^3.7.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/shared-ini-file-loader": { + "version": "3.1.11", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.11.tgz", + "integrity": "sha512-AUdrIZHFtUgmfSN4Gq9nHu3IkHMa1YDcN+s061Nfm+6pQ0mJy85YQDB0tZBCmls0Vuj22pLwDPmL92+Hvfwwlg==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/signature-v4": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.2.3.tgz", + "integrity": "sha512-pPSQQ2v2vu9vc8iew7sszLd0O09I5TRc5zhY71KA+Ao0xYazIG+uLeHbTJfIWGO3BGVLiXjUr3EEeCcEQLjpWQ==", + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-middleware": "^3.0.10", + "@smithy/util-uri-escape": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/smithy-client": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-3.4.4.tgz", + "integrity": "sha512-dPGoJuSZqvirBq+yROapBcHHvFjChoAQT8YPWJ820aPHHiowBlB3RL1Q4kPT1hx0qKgJuf+HhyzKi5Gbof4fNA==", + "dependencies": { + "@smithy/core": "^2.5.3", + "@smithy/middleware-endpoint": "^3.2.3", + "@smithy/middleware-stack": "^3.0.10", + "@smithy/protocol-http": "^4.1.7", + "@smithy/types": "^3.7.1", + "@smithy/util-stream": "^3.3.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/types": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-3.7.1.tgz", + "integrity": "sha512-XKLcLXZY7sUQgvvWyeaL/qwNPp6V3dWcUjqrQKjSb+tzYiCy340R/c64LV5j+Tnb2GhmunEX0eou+L+m2hJNYA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/url-parser": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.10.tgz", + "integrity": "sha512-j90NUalTSBR2NaZTuruEgavSdh8MLirf58LoGSk4AtQfyIymogIhgnGUU2Mga2bkMkpSoC9gxb74xBXL5afKAQ==", + "dependencies": { + "@smithy/querystring-parser": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + } + }, + "node_modules/@smithy/util-base64": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-3.0.0.tgz", + "integrity": "sha512-Kxvoh5Qtt0CDsfajiZOCpJxgtPHXOKwmM+Zy4waD43UoEMA+qPxxa98aE/7ZhdnBFZFXMOiBR5xbcaMhLtznQQ==", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-body-length-browser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-3.0.0.tgz", + "integrity": "sha512-cbjJs2A1mLYmqmyVl80uoLTJhAcfzMOyPgjwAYusWKMdLeNtzmMz9YxNl3/jRLoxSS3wkqkf0jwNdtXWtyEBaQ==", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@smithy/util-body-length-node": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-3.0.0.tgz", + "integrity": "sha512-Tj7pZ4bUloNUP6PzwhN7K386tmSmEET9QtQg0TgdNOnxhZvCssHji+oZTUIuzxECRfG8rdm2PMw2WCFs6eIYkA==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-buffer-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-3.0.0.tgz", + "integrity": "sha512-aEOHCgq5RWFbP+UDPvPot26EJHjOC+bRgse5A8V3FSShqd5E5UN4qc7zkwsvJPPAVsf73QwYcHN1/gt/rtLwQA==", + "dependencies": { + "@smithy/is-array-buffer": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-config-provider": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-3.0.0.tgz", + "integrity": "sha512-pbjk4s0fwq3Di/ANL+rCvJMKM5bzAQdE5S/6RL5NXgMExFAi6UgQMPOm5yPaIWPpr+EOXKXRonJ3FoxKf4mCJQ==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-defaults-mode-browser": { + "version": "3.0.27", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.27.tgz", + "integrity": "sha512-GV8NvPy1vAGp7u5iD/xNKUxCorE4nQzlyl057qRac+KwpH5zq8wVq6rE3lPPeuFLyQXofPN6JwxL1N9ojGapiQ==", + "dependencies": { + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@smithy/util-defaults-mode-node": { + "version": "3.0.27", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.27.tgz", + "integrity": "sha512-7+4wjWfZqZxZVJvDutO+i1GvL6bgOajEkop4FuR6wudFlqBiqwxw3HoH6M9NgeCd37km8ga8NPp2JacQEtAMPg==", + "dependencies": { + "@smithy/config-resolver": "^3.0.12", + "@smithy/credential-provider-imds": "^3.2.7", + "@smithy/node-config-provider": "^3.1.11", + "@smithy/property-provider": "^3.1.10", + "@smithy/smithy-client": "^3.4.4", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@smithy/util-endpoints": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.1.6.tgz", + "integrity": "sha512-mFV1t3ndBh0yZOJgWxO9J/4cHZVn5UG1D8DeCc6/echfNkeEJWu9LD7mgGH5fHrEdR7LDoWw7PQO6QiGpHXhgA==", + "dependencies": { + "@smithy/node-config-provider": "^3.1.11", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-hex-encoding": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-3.0.0.tgz", + "integrity": "sha512-eFndh1WEK5YMUYvy3lPlVmYY/fZcQE1D8oSf41Id2vCeIkKJXPcYDCZD+4+xViI6b1XSd7tE+s5AmXzz5ilabQ==", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.27.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.27.2.tgz", - "integrity": "sha512-euMIv/4x5Y2/ImlbGl88mwKNXDsvzbWUlT7DFky76z2keajCtcbAsN9LUdmk31hAoVmJJYSThgdA0EsPeTr1+w==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] + "node_modules/@smithy/util-middleware": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.10.tgz", + "integrity": "sha512-eJO+/+RsrG2RpmY68jZdwQtnfsxjmPxzMlQpnHKjFPwrYqvlcT+fHdT+ZVwcjlWSrByOhGr9Ff2GG17efc192A==", + "dependencies": { + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.27.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.27.2.tgz", - "integrity": "sha512-RsnE6LQkUHlkC10RKngtHNLxb7scFykEbEwOFDjr3CeCMG+Rr+cKqlkKc2/wJ1u4u990urRHCbjz31x84PBrSQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] + "node_modules/@smithy/util-retry": { + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.10.tgz", + "integrity": "sha512-1l4qatFp4PiU6j7UsbasUHL2VU023NRB/gfaa1M0rDqVrRN4g3mCArLRyH3OuktApA4ye+yjWQHjdziunw2eWA==", + "dependencies": { + "@smithy/service-error-classification": "^3.0.10", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.27.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.27.2.tgz", - "integrity": "sha512-foJM5vv+z2KQmn7emYdDLyTbkoO5bkHZE1oth2tWbQNGW7mX32d46Hz6T0MqXdWS2vBZhaEtHqdy9WYwGfiliA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ] + "node_modules/@smithy/util-stream": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.3.1.tgz", + "integrity": "sha512-Ff68R5lJh2zj+AUTvbAU/4yx+6QPRzg7+pI7M1FbtQHcRIp7xvguxVsQBKyB3fwiOwhAKu0lnNyYBaQfSW6TNw==", + "dependencies": { + "@smithy/fetch-http-handler": "^4.1.1", + "@smithy/node-http-handler": "^3.3.1", + "@smithy/types": "^3.7.1", + "@smithy/util-base64": "^3.0.0", + "@smithy/util-buffer-from": "^3.0.0", + "@smithy/util-hex-encoding": "^3.0.0", + "@smithy/util-utf8": "^3.0.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } }, - "node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "dev": true, + "node_modules/@smithy/util-uri-escape": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-3.0.0.tgz", + "integrity": "sha512-LqR7qYLgZTD7nWLBecUi4aqolw8Mhza9ArpNEQ881MJJIU2sE5iHCK6TdyqqzcDLy0OPe10IY4T8ctVdtynubg==", + "dependencies": { + "tslib": "^2.6.2" + }, "engines": { - "node": ">=10" + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-utf8": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-3.0.0.tgz", + "integrity": "sha512-rUeT12bxFnplYDe815GXbq/oixEGHfRFFtcTF3YdDi/JaENIM6aSYYLJydG83UNzLXeRI5K8abYd/8Sp/QM0kA==", + "dependencies": { + "@smithy/util-buffer-from": "^3.0.0", + "tslib": "^2.6.2" }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@smithy/util-waiter": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.1.9.tgz", + "integrity": "sha512-/aMXPANhMOlMPjfPtSrDfPeVP8l56SJlz93xeiLmhLe5xvlXA5T3abZ2ilEsDEPeY9T/wnN/vNGn9wa1SbufWA==", + "dependencies": { + "@smithy/abort-controller": "^3.1.8", + "@smithy/types": "^3.7.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" } }, "node_modules/@stylistic/eslint-plugin-js": { @@ -1268,6 +2495,11 @@ "@types/send": "*" } }, + "node_modules/@types/uuid": { + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==" + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "8.14.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.14.0.tgz", @@ -1794,65 +3026,11 @@ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/aws-sdk": { - "version": "2.1692.0", - "resolved": "https://registry.npmjs.org/aws-sdk/-/aws-sdk-2.1692.0.tgz", - "integrity": "sha512-x511uiJ/57FIsbgUe5csJ13k3uzu25uWQE+XqfBis/sB0SFoiElJWXRkgEAUh0U6n40eT3ay5Ue4oPkRMu1LYw==", - "hasInstallScript": true, - "dependencies": { - "buffer": "4.9.2", - "events": "1.1.1", - "ieee754": "1.1.13", - "jmespath": "0.16.0", - "querystring": "0.2.0", - "sax": "1.2.1", - "url": "0.10.3", - "util": "^0.12.4", - "uuid": "8.0.0", - "xml2js": "0.6.2" - }, - "engines": { - "node": ">= 10.0.0" - } - }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -1888,6 +3066,11 @@ "npm": "1.2.8000 || >= 1.4.16" } }, + "node_modules/bowser": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", + "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1909,16 +3092,6 @@ "node": ">=8" } }, - "node_modules/buffer": { - "version": "4.9.2", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", - "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", - "dependencies": { - "base64-js": "^1.0.2", - "ieee754": "^1.1.4", - "isarray": "^1.0.0" - } - }, "node_modules/bundle-name": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", @@ -2963,14 +4136,6 @@ "es5-ext": "~0.10.14" } }, - "node_modules/events": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", - "integrity": "sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==", - "engines": { - "node": ">=0.4.x" - } - }, "node_modules/expect-type": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.1.0.tgz", @@ -3083,6 +4248,27 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, + "node_modules/fast-xml-parser": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.4.1.tgz", + "integrity": "sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + }, + { + "type": "paypal", + "url": "https://paypal.me/naturalintelligence" + } + ], + "dependencies": { + "strnum": "^1.0.5" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", @@ -3224,14 +4410,6 @@ "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", "dev": true }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dependencies": { - "is-callable": "^1.1.3" - } - }, "node_modules/foreground-child": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", @@ -3454,20 +4632,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -3541,11 +4705,6 @@ "node": ">=0.10.0" } }, - "node_modules/ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==" - }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -3599,21 +4758,6 @@ "node": ">= 0.10" } }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -3632,17 +4776,6 @@ "node": ">=8" } }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-core-module": { "version": "2.15.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", @@ -3699,20 +4832,6 @@ "node": ">=8" } }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -3771,20 +4890,6 @@ "@types/estree": "*" } }, - "node_modules/is-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.13.tgz", - "integrity": "sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==", - "dependencies": { - "which-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-wsl": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.0.tgz", @@ -3799,11 +4904,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -3842,14 +4942,6 @@ "node": ">=10" } }, - "node_modules/jmespath": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", - "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==", - "engines": { - "node": ">= 0.6.0" - } - }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -4110,6 +5202,14 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/mnemonist": { + "version": "0.38.3", + "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.3.tgz", + "integrity": "sha512-2K9QYubXx/NAjv4VLq1d1Ly8pWNC5L3BrixtdkyTegXWJIqY+zLNDhhX/A+ZwWt70tB1S8H4BE8FLYEFyNoOBw==", + "dependencies": { + "obliterator": "^1.6.1" + } + }, "node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", @@ -4265,6 +5365,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/obliterator": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-1.6.1.tgz", + "integrity": "sha512-9WXswnqINnnhOG/5SLimUlzuU1hFJUc8zkwyD59Sd+dPOMf05PmnYG/d6Q7HZ+KmgkZJa1PxRso6QdM3sTNHig==" + }, "node_modules/on-finished": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", @@ -4607,14 +5712,6 @@ "semver-compare": "^1.0.0" } }, - "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/postcss": { "version": "8.4.49", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz", @@ -4693,15 +5790,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", - "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.", - "engines": { - "node": ">=0.4.x" - } - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -5059,11 +6147,6 @@ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "node_modules/sax": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", - "integrity": "sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==" - }, "node_modules/semver": { "version": "7.6.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", @@ -5426,6 +6509,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/strnum": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" + }, "node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", @@ -5563,8 +6651,7 @@ "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, "node_modules/type": { "version": "2.7.3", @@ -5672,32 +6759,6 @@ "punycode": "^2.1.0" } }, - "node_modules/url": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/url/-/url-0.10.3.tgz", - "integrity": "sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==", - "dependencies": { - "punycode": "1.3.2", - "querystring": "0.2.0" - } - }, - "node_modules/url/node_modules/punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==" - }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -5707,9 +6768,13 @@ } }, "node_modules/uuid": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz", - "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], "bin": { "uuid": "dist/bin/uuid" } @@ -5948,24 +7013,6 @@ "node": ">=4" } }, - "node_modules/which-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.15.tgz", - "integrity": "sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/why-is-node-running": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz", @@ -6079,26 +7126,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/xml2js": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.6.2.tgz", - "integrity": "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "engines": { - "node": ">=4.0" - } - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", diff --git a/package.json b/package.json index f148856..9397e13 100644 --- a/package.json +++ b/package.json @@ -41,8 +41,9 @@ }, "homepage": "https://github.com/aaronshaf/dynamodb-viewer#readme", "dependencies": { + "@aws-sdk/client-dynamodb": "^3.693.0", + "@aws-sdk/lib-dynamodb": "^3.693.0", "argparse": "^2.0.1", - "aws-sdk": "^2.1692.0", "body-parser": "^1.20.3", "cli-color": "^2.0.4", "cookie-parser": "^1.4.7", diff --git a/views/create-table.ejs b/views/create-table.ejs index d84ac91..e3c21b3 100644 --- a/views/create-table.ejs +++ b/views/create-table.ejs @@ -42,13 +42,15 @@ secondaryIndexes.push(index) } const createTableRequest = { - TableName: findFormInputValue(formValues, 'TableName'), - HashAttributeName: findFormInputValue(formValues, 'HashAttributeName'), - HashAttributeType: findFormInputValue(formValues, 'HashAttributeType'), - RangeAttributeName: findFormInputValue(formValues, 'RangeAttributeName'), - RangeAttributeType: findFormInputValue(formValues, 'RangeAttributeType'), - ReadCapacityUnits: findFormInputValue(formValues, 'ReadCapacityUnits'), - WriteCapacityUnits: findFormInputValue(formValues, 'WriteCapacityUnits'), + TableDefinition: { + TableName: findFormInputValue(formValues, 'TableName'), + HashAttributeName: findFormInputValue(formValues, 'HashAttributeName'), + HashAttributeType: findFormInputValue(formValues, 'HashAttributeType'), + RangeAttributeName: findFormInputValue(formValues, 'RangeAttributeName'), + RangeAttributeType: findFormInputValue(formValues, 'RangeAttributeType'), + ReadCapacityUnits: findFormInputValue(formValues, 'ReadCapacityUnits'), + WriteCapacityUnits: findFormInputValue(formValues, 'WriteCapacityUnits'), + }, SecondaryIndexes: secondaryIndexes } const response = await fetch(document.location.pathname, { @@ -82,7 +84,7 @@
- +
@@ -97,13 +99,13 @@
- +
- @@ -113,13 +115,13 @@
- +
- +
-
@@ -194,7 +196,7 @@
- +
@@ -202,13 +204,13 @@
- +
- @@ -239,14 +241,14 @@
-
-