New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-appsync/utils

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-appsync/utils - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [1.2.5](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.4...v1.2.5) (2023-04-17)
### Bug Fixes
- use shallow filter type to prevent recursion ([a98e5f8](https://github.com/aws/aws-appsync-toolkit/commit/a98e5f880051f7099a4d5b7adbf63d499d47f530))
## [1.2.4](https://github.com/aws/aws-appsync-toolkit/compare/v1.2.3...v1.2.4) (2023-04-06)

@@ -8,0 +14,0 @@

26

lib/transform-utils.d.ts

@@ -36,9 +36,10 @@ import { SubscriptionFilter } from './subscription-filter-types';

export type DynamoDBExpressionOperation<TOperand = unknown> = TOperand extends boolean ? DynamoDBOperator<DynamoDBBooleanOperators<NonNullable<boolean>>> : TOperand extends number ? DynamoDBOperator<DynamoDBNumberOperators<NonNullable<number>>> : TOperand extends string ? DynamoDBOperator<DynamoDBStringOperators<NonNullable<string>>> : TOperand extends boolean[] ? DynamoDBOperator<DynamoDBArrayOperators<boolean>> : TOperand extends number[] ? DynamoDBOperator<DynamoDBArrayOperators<NonNullable<number>>> : TOperand extends string[] ? DynamoDBOperator<DynamoDBArrayOperators<NonNullable<string>>> : any;
export type DynamoDBFilterObject<TOperand = any> = TOperand extends Record<string, any> ? Prettify<{
[k in keyof TOperand]?: DynamoDBExpressionOperation<NonNullable<TOperand>[k]>;
} & {
and?: DynamoDBFilterObject<TOperand> | DynamoDBFilterObject<TOperand>[];
or?: DynamoDBFilterObject<TOperand> | DynamoDBFilterObject<TOperand>[];
not?: DynamoDBFilterObject<TOperand>;
}> : never;
export type ShallowDynamoDBFilterObject<T = unknown> = T extends Record<string, any> ? Prettify<{
[k in keyof T]?: DynamoDBExpressionOperation<T[k]>;
}> : any;
export type DynamoDBFilterObject<T = unknown> = T extends Record<string, any> ? Prettify<ShallowDynamoDBFilterObject<T> & {
and?: DynamoDBFilterObject<T> | DynamoDBFilterObject<T>[];
or?: DynamoDBFilterObject<T> | DynamoDBFilterObject<T>[];
not?: DynamoDBFilterObject<T>;
}> : {};
type OpenSearchBaseOperators = {

@@ -70,5 +71,6 @@ exists?: boolean;

export type OpenSearchQueryOperation<TOperand = unknown> = TOperand extends boolean ? OpenSearchBaseOperators & OpenSearchBooleanOperators<boolean> : TOperand extends number ? OpenSearchBaseOperators & OpenSearchNumberOperators<number> : TOperand extends string ? OpenSearchBaseOperators & OpenSearchStringOperators<string> : TOperand extends boolean[] ? OpenSearchBaseOperators & OpenSearchBooleanOperators<boolean> : TOperand extends number[] ? OpenSearchBaseOperators & OpenSearchNumberOperators<number> : TOperand extends string[] ? OpenSearchBaseOperators & OpenSearchStringOperators<string> : any;
export type OpenSearchQueryObject<T = unknown> = T extends Record<string, any> ? Prettify<{
export type ShallowOpenSearchQueryObject<T = unknown> = T extends Record<string, any> ? Prettify<{
[k in keyof T]?: OpenSearchQueryOperation<T[k]>;
} & {
}> : any;
export type OpenSearchQueryObject<T = unknown> = T extends Record<string, any> ? Prettify<ShallowOpenSearchQueryObject<T> & {
and?: OpenSearchQueryObject<T>[];

@@ -143,3 +145,3 @@ or?: OpenSearchQueryObject<T>[];

[key: Exclude<string, 'and' | 'or' | 'not'>]: any;
} = any>(filterObject: DynamoDBFilterObject<T>): string;
} = Record<string, any>>(filterObject: DynamoDBFilterObject<T>): string;
/**

@@ -155,3 +157,3 @@ * Converts the given input into its equivalent DynamoDB condition expression, returning it as a Json string.

[key: Exclude<string, 'and' | 'or' | 'not'>]: any;
} = any>(conditionObject: DynamoDBFilterObject<T>): string;
} = Record<string, any>>(conditionObject: DynamoDBFilterObject<T>): string;
/**

@@ -231,3 +233,3 @@ * Converts the given input into its equivalent OpenSearch Query DSL expression, returning it

[key: Exclude<string, 'and' | 'or' | 'not'>]: any;
} = any>(obj: OpenSearchQueryObject<T>): Record<string, unknown>;
} = Record<string, any>>(obj: OpenSearchQueryObject<T>): Record<string, unknown>;
/**

@@ -234,0 +236,0 @@ * Converts a Map input object to a `SubscriptionFilter` expression object. The

{
"name": "@aws-appsync/utils",
"version": "1.2.4",
"version": "1.2.5",
"description": "This project contains type definitions for AppSync resolver types.",

@@ -30,3 +30,3 @@ "main": "lib/index.js",

},
"gitHead": "6e7606af508a465451507ae8e5703be56c66c3ee"
"gitHead": "fb901dc8c8dc6c135b091190def1a1ae1b7022a8"
}
# Type definition for @aws-appsync/utils
This project contains utility function definitions and type definitions for working with AWS AppSync Resolvers written in JavaScript using the APPSYNC_JS runtime. This includes the `util` and `extensions` utilities. For more information on these utitlities, see the AppSync [documentation](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-util-reference-js.html).
This project contains utility function definitions and type definitions for working with AWS AppSync Resolvers written in JavaScript using the APPSYNC_JS runtime. This includes the `util` and `extensions` utilities. For more information on these utilities, see the AppSync [documentation](https://docs.aws.amazon.com/appsync/latest/devguide/resolver-util-reference-js.html).

@@ -5,0 +5,0 @@ ## Usage

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc