Skip to content

Commit

Permalink
feat(*): feat
Browse files Browse the repository at this point in the history
  • Loading branch information
ohoareau committed Feb 15, 2024
1 parent 7b8ba87 commit 77e9038
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/plugin-js-lambda-microlib/src/MicroserviceType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ export default class MicroserviceType {
case 'value-cleared':
requirements['isValueCleared'] = true;
return `isValueCleared('${condition.attribute}', query)`;
case 'value-unemptied':
requirements['isValueUnemptied'] = true;
return `isValueUnemptied('${condition.attribute}', query)`;
case 'eq':
requirements['isEqualTo'] = true;
return `isEqualTo('${condition.attribute}', '${condition.value}', query${this.buildDataKeyString(condition.dataKey)})`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const patterns = [
},
// $email[changed]
{
pattern: /^\s*(\$)([a-z0-9_]+)\s*\[\s*(changed|cleared)\s*]\s*$/i,
pattern: /^\s*(\$)([a-z0-9_]+)\s*\[\s*(changed|cleared|unemptied)\s*]\s*$/i,
build: (matches) => ({
type: `value-${matches[3]}`,
attribute: matches[2],
Expand Down

0 comments on commit 77e9038

Please sign in to comment.