copy-dynamodb-table
Advanced tools
Comparing version 2.0.2 to 2.0.3
var copy = require('./index').copy | ||
var globalAWSConfig = { // AWS Configration object http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#constructor-property | ||
@@ -26,7 +25,7 @@ accessKeyId: 'AKID', | ||
tableName: 'source_table_name', // required | ||
config: sourceAWSConfig // optional leave blank to use globalAWSConfig | ||
config: sourceAWSConfig // optional , leave blank to use globalAWSConfig | ||
}, | ||
destination: { | ||
tableName: 'destination_table_name', // required | ||
config: destinationAWSConfig // optional | ||
config: destinationAWSConfig // optional , leave blank to use globalAWSConfig | ||
}, | ||
@@ -33,0 +32,0 @@ log: true // default false |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var files = [ | ||
'./*.js', | ||
'./*.js' | ||
]; | ||
@@ -50,4 +50,3 @@ grunt.initConfig({ | ||
grunt.loadNpmTasks('grunt-jsbeautifier'); | ||
grunt.registerTask('default', ['jsbeautifier', 'jshint']); | ||
}; |
@@ -8,3 +8,3 @@ 'use strict' | ||
try { | ||
validate.config(values) // check required fields | ||
validate.config(values) | ||
} catch (err) { | ||
@@ -11,0 +11,0 @@ if (err) { |
{ | ||
"name": "copy-dynamodb-table", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Copy Dynamodb table to another in the same or different zone , It is 100% safe , and speed depends on your destination table user defined write provisioned throughput", | ||
@@ -8,3 +8,4 @@ "keywords": [ | ||
"aws-dynamodb", | ||
"AWS" | ||
"AWS", | ||
"copy-tables" | ||
], | ||
@@ -11,0 +12,0 @@ "main": "index.js", |
Safe Copy Dynamodb Table | ||
=================== | ||
This module will allow you to copy data from one table to another using very simple API, Support cross zone copying and , explicit AWS config for each table ( source & destination ) | ||
This module will allow you to copy data from one table to another using very simple API, Support cross zone copying and AWS config for each table ( source & destination ) | ||
@@ -6,0 +6,0 @@ ## Installation |
@@ -20,3 +20,3 @@ 'use strict' | ||
module.exports.config = function (options) { | ||
return validate(options, 'source') && validate(options, 'destination') | ||
return validate(options, 'source') && validate(options, 'destination') // check both source and destination | ||
} |
Sorry, the diff of this file is not supported yet
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
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
9821