@xapp/dynamo-service
Advanced tools
Comparing version 1.0.0-alpha.10 to 1.0.0-alpha.11
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", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
387607
115
5751
3