Comparing version 0.0.2 to 0.0.4
14
index.js
var aws = require('aws-sdk'), | ||
_str = require('underscore.string'), | ||
_ = require('underscore'), | ||
createPromise = require('./promiseCreator'); | ||
createPromise = require('./src/promiseCreator'); | ||
@@ -187,3 +187,4 @@ function logItemResult(logStream, verb, input) { | ||
function chooseToTable(db, logStream, tableName) { | ||
function chooseToTable(db, logStream, tablePrefix, tableName) { | ||
tableName = (tablePrefix || '') + tableName; | ||
return { | ||
@@ -195,3 +196,4 @@ put: putMethod.bind(null, db, logStream, tableName, false), | ||
function chooseFromTable(db, logStream, tableName) { | ||
function chooseFromTable(db, logStream, tablePrefix, tableName) { | ||
tableName = (tablePrefix || '') + tableName; | ||
return { | ||
@@ -211,3 +213,3 @@ get: { | ||
module.exports = function(config, logStream) { | ||
module.exports = function(config, logStream, tablePrefix) { | ||
var db; | ||
@@ -222,6 +224,6 @@ | ||
return { | ||
from: chooseFromTable.bind(null, db, logStream), | ||
to: chooseToTable.bind(null, db, logStream) | ||
from: chooseFromTable.bind(null, db, logStream, tablePrefix), | ||
to: chooseToTable.bind(null, db, logStream, tablePrefix) | ||
}; | ||
}; |
{ | ||
"name": "dynamo-flu", | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"description": "Fluent interface for dynamo db", | ||
@@ -15,4 +15,18 @@ "main": "index.js", | ||
"aws-sdk": "1.5.x", | ||
"underscore": "1.5.x" | ||
"underscore": "1.5.x", | ||
"underscore.string": "2.3.3" | ||
}, | ||
"devDependencies": { | ||
"grunt": "*", | ||
"grunt-cli": "*", | ||
"grunt-contrib-jshint": "*", | ||
"grunt-simple-mocha": "*", | ||
"grunt-contrib-watch": "*", | ||
"should": "*", | ||
"mocha": "1.12.x", | ||
"require-directory": "*" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
} | ||
} |
dynamo-flu | ||
========== | ||
[![Build Status](https://travis-ci.org/apechimp/dynamo-flu.png?branch=master)] | ||
(https://travis-ci.org/apechimp/dynamo-flu) | ||
A fluent wrapper around DynamoDB which allows you to write code like | ||
@@ -20,5 +23,5 @@ | ||
[ ] add tests | ||
[ ] use grunt to automatically run tests and jshint | ||
[ ] docs | ||
[ ] switch from aws-sdk to dynasty as it becomes ready | ||
- [ ] add tests | ||
- [x] use grunt to automatically run tests and jshint | ||
- [ ] docs | ||
- [ ] switch from aws-sdk to dynasty as it becomes ready |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14711
11
433
27
4
8
1
+ Addedunderscore.string@2.3.3
+ Addedunderscore.string@2.3.3(transitive)