graphql-mapping-template
Advanced tools
Comparing version 4.20.16-iam-auth-with-identityPool-provider-1.0 to 4.20.16
15
API.md
@@ -140,3 +140,3 @@ ## API Report File for "graphql-mapping-template" | ||
// @public (undocumented) | ||
export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode; | ||
export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | GreaterThanNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode; | ||
@@ -170,2 +170,15 @@ // @public (undocumented) | ||
// @public (undocumented) | ||
export function greaterThan(leftExpr: Expression, rightExpr: Expression): GreaterThanNode; | ||
// @public (undocumented) | ||
export interface GreaterThanNode { | ||
// (undocumented) | ||
kind: 'GreaterThan'; | ||
// (undocumented) | ||
leftExpr: Expression; | ||
// (undocumented) | ||
rightExpr: Expression; | ||
} | ||
// @public (undocumented) | ||
export class HttpMappingTemplate { | ||
@@ -172,0 +185,0 @@ // (undocumented) |
@@ -6,6 +6,8 @@ # Change Log | ||
## [4.20.16-iam-auth-with-identityPool-provider-1.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.15...graphql-mapping-template@4.20.16-iam-auth-with-identityPool-provider-1.0) (2024-03-15) | ||
## [4.20.16](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.15...graphql-mapping-template@4.20.16) (2024-04-26) | ||
**Note:** Version bump only for package graphql-mapping-template | ||
### Bug Fixes | ||
- ddb references hasOne returns record if multiple exist ([#2497](https://github.com/aws-amplify/amplify-category-api/issues/2497)) ([c105138](https://github.com/aws-amplify/amplify-category-api/commit/c1051384780c732ea2ddb98301994bda55bb62d9)) | ||
## [4.20.15](https://github.com/aws-amplify/amplify-category-api/compare/graphql-mapping-template@4.20.14...graphql-mapping-template@4.20.15) (2024-02-28) | ||
@@ -12,0 +14,0 @@ |
@@ -43,2 +43,8 @@ export interface IfNode { | ||
export declare function notEquals(leftExpr: Expression, rightExpr: Expression): NotEqualsNode; | ||
export interface GreaterThanNode { | ||
kind: 'GreaterThan'; | ||
leftExpr: Expression; | ||
rightExpr: Expression; | ||
} | ||
export declare function greaterThan(leftExpr: Expression, rightExpr: Expression): GreaterThanNode; | ||
export interface NotNode { | ||
@@ -151,3 +157,3 @@ kind: 'Not'; | ||
export declare function methodCall(methodName: ReferenceNode, ...params: Expression[]): CompoundExpressionNode; | ||
export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode; | ||
export type Expression = IfNode | IfElseNode | AndNode | OrNode | ParensNode | EqualsNode | NotEqualsNode | GreaterThanNode | ForEachNode | StringNode | RawNode | QuotesNode | FloatNode | IntNode | BooleanNode | NullNode | ReferenceNode | QuietReferenceNode | ObjectNode | ListNode | SetNode | CommentNode | CompoundExpressionNode | ToJsonNode | IsNullOrEmptyNode | NotNode | NewLineNode | ReturnNode; | ||
//# sourceMappingURL=ast.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.methodCall = exports.block = exports.newline = exports.isNullOrEmpty = exports.toJson = exports.compoundExpression = exports.comment = exports.set = exports.list = exports.obj = exports.qref = exports.ref = exports.nul = exports.bool = exports.int = exports.float = exports.quotes = exports.raw = exports.str = exports.forEach = exports.ret = exports.not = exports.notEquals = exports.equals = exports.parens = exports.or = exports.and = exports.ifElse = exports.iff = void 0; | ||
exports.methodCall = exports.block = exports.newline = exports.isNullOrEmpty = exports.toJson = exports.compoundExpression = exports.comment = exports.set = exports.list = exports.obj = exports.qref = exports.ref = exports.nul = exports.bool = exports.int = exports.float = exports.quotes = exports.raw = exports.str = exports.forEach = exports.ret = exports.not = exports.greaterThan = exports.notEquals = exports.equals = exports.parens = exports.or = exports.and = exports.ifElse = exports.iff = void 0; | ||
function iff(predicate, expr, inline) { | ||
@@ -60,2 +60,10 @@ return { | ||
exports.notEquals = notEquals; | ||
function greaterThan(leftExpr, rightExpr) { | ||
return { | ||
kind: 'GreaterThan', | ||
leftExpr, | ||
rightExpr, | ||
}; | ||
} | ||
exports.greaterThan = greaterThan; | ||
function not(expr) { | ||
@@ -62,0 +70,0 @@ return { |
@@ -34,2 +34,5 @@ "use strict"; | ||
} | ||
function printGreaterThan(node, indent = '') { | ||
return `${indent}${printExpr(node.leftExpr)} > ${printExpr(node.rightExpr)}`; | ||
} | ||
function printNotEquals(node, indent = '') { | ||
@@ -133,2 +136,4 @@ return `${indent}${printExpr(node.leftExpr)} != ${printExpr(node.rightExpr)}`; | ||
return printNotEquals(expr, indent); | ||
case 'GreaterThan': | ||
return printGreaterThan(expr, indent); | ||
case 'ForEach': | ||
@@ -135,0 +140,0 @@ return printForEach(expr, indent); |
{ | ||
"name": "graphql-mapping-template", | ||
"version": "4.20.16-iam-auth-with-identityPool-provider-1.0", | ||
"version": "4.20.16", | ||
"description": "An AST wrapper around AWS AppSync resolvers", | ||
@@ -45,4 +45,4 @@ "repository": { | ||
"global": { | ||
"branches": 60, | ||
"functions": 32, | ||
"branches": 59, | ||
"functions": 31, | ||
"lines": 50 | ||
@@ -62,3 +62,3 @@ } | ||
}, | ||
"gitHead": "dafa4bb5ea5cec5dc90b722bf138064897f4f24a" | ||
"gitHead": "ef703418f9e1b9af08a746c602bc67ee1d3baaab" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
121012
985
1