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

dynamodb-enhanced

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-enhanced - npm Package Compare versions

Comparing version 0.4.0-ac to 0.4.0-ad

48

lib/ddb.js

@@ -27,2 +27,3 @@ // Copyright Teleportd Ltd. and other Contributors

var AWS = require('aws-sdk');
var fwk = require('fwk');

@@ -35,3 +36,3 @@

*
* @param spec {secretAccessKey, accessKeyId, endpoint, agent, sessionToken, sessionExpires}
* @param spec {secretAccessKey, accessKeyId, endpoint, agent, region, sessionToken, sessionExpires}
*/

@@ -42,2 +43,3 @@

var _super = {};
var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'});

@@ -50,2 +52,11 @@ my.accessKeyId = spec.accessKeyId;

AWS.config.region = spec.region || 'us-east-1';
AWS.config.credentials.accessKeyId = spec.accessKeyId;
AWS.config.credentials.secretAccessKey = spec.secretAccessKey;
AWS.config.maxRetries = spec.retries || undefined;
my.retries = spec.retries || 3;

@@ -61,2 +72,5 @@

my.inAuth = false;

@@ -125,3 +139,3 @@ my.consumedCapacity = 0;

}
execute('CreateTable', data, function(err, res) {
dynamodb.createTable(data, function(err, res) {
if(err) { cb(err) }

@@ -152,3 +166,3 @@ else {

}
execute('UpdateTable', data, function(err, res) {
dynamodb.updateTable(data, function(err, res) {
if(err) { cb(err) }

@@ -171,3 +185,3 @@ else {

data.TableName = table;
execute('DeleteTable', data, function(err, res) {
dynamodb.deleteTable(data, function(err, res) {
if(err) { cb(err) }

@@ -192,3 +206,3 @@ else {

data.ExclusiveStartTableName = options.exclusiveStartTableName;
execute('ListTables', data, cb);
dynamodb.listTables(data, cb);
};

@@ -206,3 +220,3 @@

data.TableName = table;
execute('DescribeTable', data, function(err, res) {
dynamodb.describeTable(data, function(err, res) {
if(err) { cb(err) }

@@ -245,3 +259,3 @@ else {

}
execute('GetItem', data, function(err, res) {
dynamodb.getItem(data, function(err, res) {
if(err) { cb(err) }

@@ -302,3 +316,3 @@ else {

}
execute('PutItem', data, function(err, res) {
dynamodb.putItem(data, function(err, res) {
if(err) { cb(err) }

@@ -359,3 +373,3 @@ else {

}
execute('DeleteItem', data, function(err, res) {
dynamodb.deleteItem(data, function(err, res) {
if(err) { cb(err) }

@@ -429,3 +443,3 @@ else {

//console.log(require('util').inspect(data, false, 20));
execute('UpdateItem', data, function(err, res) {
dynamodb.updateItem(data, function(err, res) {
if(err) { cb(err) }

@@ -488,3 +502,3 @@ else {

}
execute('BatchGetItem', data, function(err, res) {
dynamodb.batchGetItem(data, function(err, res) {
if(err) { cb(err) }

@@ -562,3 +576,3 @@ else {

}
execute('BatchWriteItem', data, function(err, res) {
dynamodb.batchWriteItem(data, function(err, res) {
if(err)

@@ -643,3 +657,3 @@ cb(err);

}
execute('Query', data, function(err, res) {
dynamodb.query(data, function(err, res) {
if(err) { cb(err) }

@@ -726,3 +740,3 @@ else {

//console.log(require('util').inspect(data));
execute('Scan', data, function(err, res) {
dynamodb.scan(data, function(err, res) {
if(err) { cb(err) }

@@ -953,3 +967,2 @@ else {

var sdfsdf = 0;
execute = function(op, data, cb) {

@@ -968,2 +981,3 @@ auth(function(err) {

('host' + ':' + my.endpoint + '\n' +
'x-amz-date' + ':' + dtStr + '\n' +
'x-amz-security-token' + ':' + my.access.sessionToken + '\n' +

@@ -985,5 +999,7 @@ 'x-amz-target' + ':' + 'DynamoDB_20120810.' + op + '\n') + '\n' +

var headers = { 'Host': my.endpoint,
'x-amz-date': dtStr,
'x-amz-security-token': my.access.sessionToken,
'X-amz-target': 'DynamoDB_20120810.' + op,
'X-amzn-authorization' : auth,
'date': dtStr,
'content-type': 'application/x-amz-json-1.0',

@@ -1000,4 +1016,2 @@ 'content-length': Buffer.byteLength(rqBody,'utf8') };

var executeRequest = function(cb) {
sdfsdf++;
console.log(sdfsdf);
var req = http.request(options, function(res) {

@@ -1004,0 +1018,0 @@ var body = '';

{
"name": "dynamodb-enhanced",
"version": "0.4.0ac",
"version": "0.4.0ad",
"description": "Simple DynamoDB Library for Node.js. enhanced version of dynamodb by Stanislas Polu",
"keywords": ["dynamo", "node", "db", "aws", "amazon"],
"keywords": [
"dynamo",
"node",
"db",
"aws",
"amazon"
],
"homepage": "https://github.com/teleportd/node-dynamodb",
"author": { "name": "Jt Whissel",
"email": "jtwhissel@gmail.com",
"url": "http://www.linkedin.com/in/jtwhissel/" },
"repository" : { "type" : "git",
"url" : "https://github.com/jtwhissel/node-dynamodb" },
"contributors" : [ "Stanislas Polu",
"Karl Seguin",
"Juan Carlos del Valle",
"Pablo Cantero",
"Chris Stivers",
"Juho Mäkinen",
"Paul Tax",
"Alex Bosworth",
"Jimb Esser",
"Anthony Moi" ],
"author": {
"name": "Jt Whissel",
"email": "jtwhissel@gmail.com",
"url": "http://www.linkedin.com/in/jtwhissel/"
},
"repository": {
"type": "git",
"url": "https://github.com/jtwhissel/node-dynamodb"
},
"contributors": [
"Stanislas Polu",
"Karl Seguin",
"Juan Carlos del Valle",
"Pablo Cantero",
"Chris Stivers",
"Juho Mäkinen",
"Paul Tax",
"Alex Bosworth",
"Jimb Esser",
"Anthony Moi"
],
"dependencies": {
"aws-sdk": "^2.0.23",
"fwk": "0.1.x"
},
"main" : "./lib/ddb",
"engines" : { "node" : ">=0.4.0" }
"main": "./lib/ddb",
"engines": {
"node": ">=0.4.0"
}
}
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