New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vogels

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vogels - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/serializer.js

@@ -224,3 +224,3 @@ 'use strict';

return _.reduce(serialized, function (result, value, key) {
if(key !== schema.hashKey) {
if(key !== schema.hashKey && key !== schema.rangeKey) {
result[key] = {Action : action, Value: value};

@@ -227,0 +227,0 @@ }

{
"name": "vogels",
"version": "0.1.0",
"version": "0.1.1",
"author": "Ryan Fitzgerald <ryan@codebrewstudios.com>",

@@ -5,0 +5,0 @@ "description": "DynamoDB data mapper",

@@ -314,3 +314,14 @@ 'use strict';

it('should not serialize hashkey and rangeKey attributes', function () {
schema.String('email', {hashKey: true});
schema.String('range', {rangeKey: true});
schema.String('name');
var item = serializer.serializeItemForUpdate(schema, 'PUT', {email: 'test@test.com', range: 'FOO', name: 'Tim Tester'});
item.should.eql({ name: {Action: 'PUT', Value: {S: 'Tim Tester'} }});
});
});
});
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