Socket
Socket
Sign inDemoInstall

@architect/functions

Package Overview
Dependencies
19
Maintainers
6
Versions
284
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.3 to 8.0.4

18

package.json
{
"name": "@architect/functions",
"version": "8.0.3",
"version": "8.0.4",
"description": "Runtime utility library for Functional Web Apps (FWAs) built with Architect (https://arc.codes)",

@@ -29,3 +29,3 @@ "homepage": "https://github.com/architect/functions",

"@aws-lite/apigatewaymanagementapi": "^0.0.8",
"@aws-lite/client": "^0.17.1",
"@aws-lite/client": "^0.17.2",
"@aws-lite/dynamodb": "^0.3.4",

@@ -45,9 +45,9 @@ "@aws-lite/sns": "^0.0.5",

"@architect/asap": "^7.0.7",
"@architect/eslint-config": "2.1.1",
"@architect/eslint-config": "2.1.2",
"@architect/req-res-fixtures": "git+https://github.com/architect/req-res-fixtures.git",
"@architect/sandbox": "^6.0.1",
"@aws-lite/apigatewaymanagementapi-types": "^0.0.10",
"@aws-lite/dynamodb-types": "^0.3.5",
"@aws-lite/sns-types": "^0.0.6",
"@aws-lite/sqs-types": "^0.2.2",
"@architect/sandbox": "^6.0.2",
"@aws-lite/apigatewaymanagementapi-types": "^0.0.11",
"@aws-lite/dynamodb-types": "^0.3.6",
"@aws-lite/sns-types": "^0.0.7",
"@aws-lite/sqs-types": "^0.2.3",
"@types/aws-lambda": "^8.10.133",

@@ -61,3 +61,3 @@ "@types/node": "18",

"tap-arc": "^1.2.2",
"tape": "^5.7.4",
"tape": "^5.7.5",
"tiny-json-http": "^7.5.1",

@@ -64,0 +64,0 @@ "tsd": "^0.30.4"

@@ -1,3 +0,7 @@

import type { AwsLiteClient } from "@aws-lite/client"
import type { QueryResponse, ScanResponse, UpdateItemResponse } from "@aws-lite/dynamodb-types"
import type {
AwsLiteDynamoDB,
QueryResponse,
ScanResponse,
UpdateItemResponse,
} from "@aws-lite/dynamodb-types"
import { Callback } from "./util";

@@ -9,22 +13,20 @@

// TableName not needed as the library sets it
type Params<InputType> = Omit<InputType, "TableName">;
type TablesParams<InputType> = Omit<InputType, "TableName">;
// As above but also overriding the Key field
type ParamsWithKey<InputType, Item> = Omit<Params<InputType>, "Key"> & {
Key: Key<Item>;
};
type TablesParamsWithKey<InputType, Item> = Omit<TablesParams<InputType>, "Key">
& { Key: Key<Item>};
// Just overriding the Items field
type ItemsOutput<OutputType, Item> = Omit<OutputType, "Items"> & {
Items: Item[];
};
type ItemsOutput<OutputType, Item> = Omit<OutputType, "Items">
& { Items: Item[] };
type QueryParams = Params<Parameters<AwsLiteClient["DynamoDB"]["Query"]>[0]>;
type QueryParams = TablesParams<Parameters<AwsLiteDynamoDB["Query"]>[0]>;
type QueryOutput<Item> = ItemsOutput<QueryResponse, Item>;
type ScanParams = Params<Parameters<AwsLiteClient["DynamoDB"]["Scan"]>[0]>;
type ScanParams = TablesParams<Parameters<AwsLiteDynamoDB["Scan"]>[0]>;
type ScanOutput<Item> = ItemsOutput<ScanResponse, Item>;
type UpdateParams<Item> = ParamsWithKey<
Parameters<AwsLiteClient["DynamoDB"]["UpdateItem"]>[0],
type UpdateParams<Item> = TablesParamsWithKey<
Parameters<AwsLiteDynamoDB["UpdateItem"]>[0],
Item

@@ -55,3 +57,3 @@ >;

update(params: UpdateParams<Item>): Promise<UpdateItemResponse>;
update(params: UpdateParams<Item>): AwsLiteDynamoDB["UpdateItem"];
update(params: UpdateParams<Item>, callback: Callback<UpdateItemResponse>): void;

@@ -69,3 +71,3 @@ }

};
_client: AwsLiteClient["DynamoDB"];
_client: AwsLiteDynamoDB;
// _db: DynamoDB;

@@ -72,0 +74,0 @@ // _doc: DynamoDB.DocumentClient;

@@ -1,3 +0,5 @@

import type { AwsLiteClient } from "@aws-lite/client"
import type { GetConnectionResponse } from "@aws-lite/apigatewaymanagementapi-types";
import type {
AwsLiteApiGatewayManagementApi,
GetConnectionResponse,
} from "@aws-lite/apigatewaymanagementapi-types";
import { Callback } from "./util";

@@ -13,4 +15,4 @@

export interface ArcWebSocket {
_api(): Promise<AwsLiteClient["ApiGatewayManagementApi"]>;
_api(callback: Callback<AwsLiteClient["ApiGatewayManagementApi"]>): void;
_api(): Promise<AwsLiteApiGatewayManagementApi>;
_api(callback: Callback<AwsLiteApiGatewayManagementApi>): void;

@@ -17,0 +19,0 @@ send(params: SendParams): Promise<void>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc