
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
##Provides helpful tools for parsing database responses and handling routes inside of Lambda for AWS Appsync.
Aurora results are returned as a list of dictionaries with the column names being the key. Nulls (returned by Aurora as isNull) are returned as None types. Any value that can be parsed as json is cast from a string to a list/dictionary. Responses are returned formated as:
[
{"columnOneName": "value", "columnTwoName": "value"},
{"columnOneName": "value", "columnTwoName": "value"}
]
Where each item in the top level array is a separate row.
Dynamodb results are returned as either a dictionary (for get_item operations) or a list of dictionaries (query).
pretty_parse_aurora(records, type_attribute=None) -> list
Arguments:
Keyword Args:
from appsync_tools import pretty_parse_aurora
response = client.execute_statement(
secretArn=environ["PG_SECRET"],
database=environ["DB_NAME"],
parameters=parameters,
resourceArn=environ["DB_ARN"],
includeResultMetadata=True,
sql=sql
)
print(pretty_parse_aurora(response))
pretty_parse_dynamo(records, type_attribute=None) -> list | dict
Arguments:
Keyword Args:
from appsync_tools import pretty_parse_dynamo
response = client.get_item(
Key={"pk": "foo", "sk": "bar"}
)
print(response.get("Item"))
typify(records, type_attribute="type") -> list | dict Arguments:
Keyword Args:
from appsync_tools import typify
response = client.get_item(
Key={"pk": "foo", "sk": "BarType"}
)
print(typify(response.get("Item"), type_attribute="sk"))
FAQs
Tools for handling appsync responses and routes.
We found that appsync-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.