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 1.0.0-alpha.10 to 1.0.0-alpha.11

dist/service/__test__/ValidationError.test.d.ts

6

dist/service/TableService/TableService.d.ts
import { DynamoDB } from "aws-sdk";
import { ConditionExpression, DynamoService, QueryParams, QueryResult, ScanParams, ScanResult, UpdateBody, UpdateReturnAllType, UpdateReturnNoneType, UpdateReturnType, UpdateReturnUpdatedType } from "../DynamoService";
import { KeySchema, TableSchema } from "../KeySchema";
import { ValidationError } from "../ValidationError";
import { TableSchemaBuilderProps } from "./SchemaBuilder/TableSchemaBuilder";
export { DynamoService, ConditionExpression, KeySchema, QueryParams, QueryResult, ScanParams, ScanResult, TableSchema, UpdateBody, UpdateReturnAllType, UpdateReturnNoneType, UpdateReturnUpdatedType, UpdateReturnType };
export { DynamoService, ConditionExpression, KeySchema, QueryParams, QueryResult, ScanParams, ScanResult, TableSchema, UpdateBody, UpdateReturnAllType, UpdateReturnNoneType, UpdateReturnUpdatedType, UpdateReturnType, ValidationError };
export declare const AWS_COLUMN_REGEX: RegExp;

@@ -55,4 +56,1 @@ export interface TableServiceProps extends TableSchemaBuilderProps {

}
export declare class ValidationError extends Error {
constructor(msg: string[]);
}

@@ -6,2 +6,4 @@ "use strict";

exports.DynamoService = DynamoService_1.DynamoService;
const ValidationError_1 = require("../ValidationError");
exports.ValidationError = ValidationError_1.ValidationError;
const TableSchemaBuilder_1 = require("./SchemaBuilder/TableSchemaBuilder");

@@ -93,3 +95,3 @@ exports.AWS_COLUMN_REGEX = /^aws:.+/;

if (errors && errors.length > 0) {
throw new ValidationError(errors);
throw new ValidationError_1.ValidationError(errors);
}

@@ -102,3 +104,3 @@ return newObj;

if (errors && errors.length > 0) {
throw new ValidationError(errors);
throw new ValidationError_1.ValidationError(errors);
}

@@ -109,7 +111,1 @@ return convertedUpdateObj;

exports.TableService = TableService;
class ValidationError extends Error {
constructor(msg) {
super(`Errors: [ ${msg.join("\n")} ]`);
}
}
exports.ValidationError = ValidationError;
export declare class ValidationError extends Error {
constructor(msg: string);
constructor(msg: string | string[]);
}
export default ValidationError;

@@ -5,5 +5,6 @@ "use strict";

constructor(msg) {
super(msg);
super(Array.isArray(msg) ? `Errors: [ ${msg.join(",\n")} ]` : msg);
}
}
exports.ValidationError = ValidationError;
exports.default = ValidationError;
{
"name": "@xapp/dynamo-service",
"version": "1.0.0-alpha.10",
"version": "1.0.0-alpha.11",
"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