Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xapp/dynamo-service

Package Overview
Dependencies
Maintainers
5
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xapp/dynamo-service - npm Package Compare versions

Comparing version 0.0.56 to 0.0.57

xapp-dynamo-service-0.0.56.tgz

4

dist/dynamo-query-builder/DynamoQueryBuilder.d.ts

@@ -16,2 +16,5 @@ import { DynamoDB } from "aws-sdk";

}
export interface FilterQuery extends AttributeQuery {
FilterExpression: string;
}
export declare type DynamoQuery = ScanQuery | ConditionQuery | IndexQuery;

@@ -38,2 +41,3 @@ export interface Parameter<T extends DynamoQuery> {

export declare function index(partitionKey: string, indexName?: string): Parameter<IndexQuery>;
export declare function filter(initialKey: string): Parameter<FilterQuery>;
export declare function scan(initialKey: string): Parameter<ScanQuery>;

@@ -40,0 +44,0 @@ export declare function scan(initialKey: ScanQuery, inclusive?: boolean): Conjunction<ScanQuery>;

@@ -9,2 +9,8 @@ "use strict";

exports.index = index;
function filter(initialKey) {
const hiddenQuery = new HiddenFilterQuery();
hiddenQuery.addName(initialKey);
return new ParameterImpl(hiddenQuery, initialKey);
}
exports.filter = filter;
function scan(initialKey, inclusive) {

@@ -171,2 +177,20 @@ if (typeof initialKey === "string") {

}
class HiddenFilterQuery extends HiddenQuery {
constructor() {
super();
this.prefix = "___filter_";
this.FilterExpression = "";
}
addExpression(expression) {
this.FilterExpression += expression;
}
get expression() {
return this.FilterExpression;
}
buildObj() {
return {
FilterExpression: this.FilterExpression
};
}
}
class ParameterImpl {

@@ -173,0 +197,0 @@ constructor(scanQuery, key) {

2

package.json
{
"name": "@xapp/dynamo-service",
"version": "0.0.56",
"version": "0.0.57",
"description": "A dynamo help class which will help maintain data integrity.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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