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

xapp-dynamo-service-1.0.0-alpha.8.tgz

41

dist/service/TableService/SchemaBuilder/Map/__test__/MapSchemaBuilder.test.js

@@ -91,2 +91,28 @@ "use strict";

});
it("Returns no error if the attributes are undefined.", () => {
const schema = mapSchemaBuilder("TestItem", {
attributes: {
"TestString": {
type: "S"
}
}
});
const errors = schema.validateObjectAgainstSchema({
"TestItem": undefined
});
ValidatorTestUtils_1.expectToHaveNoErrors(errors);
});
it("Returns no errors if the map is empty with optional parameters.", () => {
const schema = mapSchemaBuilder("TestItem", {
attributes: {
"TestString": {
type: "S"
}
}
});
const errors = schema.validateObjectAgainstSchema({
"TestItem": {}
});
ValidatorTestUtils_1.expectToHaveNoErrors(errors);
});
},

@@ -322,4 +348,19 @@ updateValidationTests: () => {

});
it("Returns no error if setting the map attribute to undefined.", () => {
const schema = mapSchemaBuilder("TestItem", {
attributes: {
"TestString": {
type: "S"
}
}
});
const errors = schema.validateUpdateObjectAgainstSchema({
set: {
"TestItem": undefined
}
});
ValidatorTestUtils_1.expectToHaveNoErrors(errors);
});
}
});
});

2

dist/service/TableService/SchemaBuilder/Map/MapSchemaBuilder.js

@@ -30,3 +30,3 @@ "use strict";

let builder = SchemaBuilder_1.getSchemaBuilder(attributeKey, attributeSchema);
const foundErrors = builder.validateObjectAgainstSchema(obj);
const foundErrors = (obj) ? builder.validateObjectAgainstSchema(obj) : undefined;
errors.push(...(foundErrors || []));

@@ -33,0 +33,0 @@ }

{
"name": "@xapp/dynamo-service",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"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