Comparing version 0.1.0 to 0.1.1
@@ -5,3 +5,2 @@ 'use strict'; | ||
var _ = require('underscore'); | ||
var _s = require('underscore.string'); | ||
@@ -8,0 +7,0 @@ module.exports = function builder() { |
@@ -60,3 +60,4 @@ 'use strict'; | ||
primaryKey: primaryKey, | ||
consistencyValues: consistencyValues | ||
consistencyValues: consistencyValues, | ||
consistency: consistency | ||
}).create(); |
@@ -5,3 +5,3 @@ 'use strict'; | ||
* Fluent-CQL module converts your JS fluent syntax to CQL string query. | ||
* @module fluent-cql | ||
* @module FluentCql | ||
*/ | ||
@@ -48,2 +48,16 @@ | ||
function _stringify(obj) { | ||
if (!obj) { | ||
return undefined; | ||
} | ||
if (_.isString(obj)) { | ||
return "'" + obj + "'"; | ||
} | ||
return JSON.stringify(obj).split('"').join("'"); | ||
} | ||
function _defaultReplicationOptions() { | ||
return {'class': 'SimpleStrategy', 'replication_factor': '3'}; | ||
} | ||
/** | ||
@@ -334,6 +348,2 @@ * Marks this object as malformed, sets the error message. As the result no any further object building possible. | ||
function _defaultReplicationOptions() { | ||
return {'class': 'SimpleStrategy', 'replication_factor': '3'}; | ||
} | ||
/** | ||
@@ -551,12 +561,2 @@ * Appends table description 'TABLE name (key type, ...)' to the query. | ||
}; | ||
function _stringify(obj) { | ||
if (!obj) { | ||
return undefined; | ||
} | ||
if (_.isString(obj)) { | ||
return "'" + obj + "'"; | ||
} | ||
return JSON.stringify(obj).split('"').join("'"); | ||
} | ||
} | ||
@@ -583,2 +583,2 @@ | ||
*/ | ||
module.exports = FluentCql; | ||
module.exports = FluentCql; |
{ | ||
"author": { | ||
"name": "Vasyl Boroviak", | ||
"email": "kore.sar@gmail.com", | ||
"url": "http://google.com/+VasylBoroviak" | ||
}, | ||
"contributors": [], | ||
"name": "fcql", | ||
"version": "0.1.0", | ||
"description": "Fluent syntax for Apache Cassandra CQL", | ||
"keywords": [ | ||
"cassandra", | ||
"cql", | ||
"cql3", | ||
"fluent", | ||
"node" | ||
], | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/koresar/fcql/blob/master/LICENSE" | ||
} | ||
], | ||
"dependencies": { | ||
"stampit": ">= 0.6.1", | ||
"underscore": ">= 1.5.2", | ||
"underscore.string": ">= 2.3.3" | ||
}, | ||
"devDependencies": { | ||
"mocha": ">= 1.15.1", | ||
"must": ">= 0.10.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/koresar/fcql.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/koresar/fcql/issues" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "mocha test -R spec" | ||
"author": { | ||
"name": "Vasyl Boroviak", | ||
"email": "kore.sar@gmail.com", | ||
"url": "https://twitter.com/kore_sar" | ||
}, | ||
"contributors": [], | ||
"name": "fcql", | ||
"version": "0.1.1", | ||
"description": "Fluent syntax for Apache Cassandra CQL", | ||
"keywords": [ | ||
"cassandra", | ||
"cql", | ||
"cql3", | ||
"fluent", | ||
"node" | ||
], | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/koresar/fcql/blob/master/LICENSE" | ||
} | ||
], | ||
"dependencies": { | ||
"stampit": "^1.2.0", | ||
"underscore": "^1.5.2", | ||
"underscore.string": "^2.3.3" | ||
}, | ||
"devDependencies": { | ||
"jshint": "^2.9.1", | ||
"mocha": "^2.4.5", | ||
"must": "^0.13.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/koresar/fcql.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/koresar/fcql/issues" | ||
}, | ||
"engines": { | ||
"node": ">=0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "npm run lint && mocha test --recursive", | ||
"lint": "jshint lib/" | ||
} | ||
} |
@@ -77,2 +77,2 @@ Fluent CQL (fcql) | ||
## Want to contribute? | ||
It is Open Open Source. Whoever sends a PR, which gets accepted, receives the write permissions. | ||
It is [Open Open Source](http://openopensource.org/). Whoever sends a PR, which gets accepted, receives the write permissions. |
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
35917
11
629
3
+ Addedmout@0.5.0(transitive)
+ Addedstampit@1.2.0(transitive)
+ Addedunderscore.string@2.4.0(transitive)
- Removedsprintf-js@1.1.3(transitive)
- Removedstampit@4.3.2(transitive)
- Removedunderscore.string@3.3.6(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedstampit@^1.2.0
Updatedunderscore@^1.5.2
Updatedunderscore.string@^2.3.3