Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aerospike

Package Overview
Dependencies
Maintainers
2
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aerospike - npm Package Compare versions

Comparing version 1.0.26 to 1.0.27

aerospike-1.0.27.tgz

2

docs/query.md

@@ -82,3 +82,3 @@ # Query Class

```js
var statement = { filters:[filter.equal('a', 'abc')}]}
var statement = { filters:[filter.equal('a', 'abc')]}

@@ -85,0 +85,0 @@ // NOTE bin a has to be indexed for it to be queried.

{
"name" : "aerospike",
"version" : "1.0.26",
"version" : "1.0.27",
"description" : "Aerospike Client Library",

@@ -5,0 +5,0 @@ "tags" : [ "aerospike", "database", "nosql" ],

@@ -28,2 +28,3 @@ # Aerospike Node.js Client

var aerospike = require('aerospike');
var status = aerospike.status;

@@ -37,3 +38,3 @@

function connect_cb( err, client) {
if (err.code == AEROSPIKE_OK) {
if (err.code == status.AEROSPIKE_OK) {
console.log("Aerospike Connection Success")

@@ -52,3 +53,3 @@ }

// Check for errors
if ( err.code == aerospike.status.AEROSPIKE_OK ) {
if ( err.code == status.AEROSPIKE_OK ) {
// The record was successfully read.

@@ -55,0 +56,0 @@ console.log(rec, meta);

@@ -392,3 +392,3 @@ /*******************************************************************************

});
it('should write a bin of type undefined and write should fail', function(done) {
it('should write a bin of type undefined and write should not fail', function(done) {

@@ -446,3 +446,49 @@ // generators

});
it('should write a map with undefined entry and verify the record', function(done) {
// generators
var kgen = keygen.string(options.namespace, options.set, {prefix: "test/put/"});
var mgen = metagen.constant({ttl: 1000});
var rgen = recgen.record({
l : valgen.constant([1,2,3, undefined]),
m : valgen.constant({a: 1, b: 2, c:undefined}),
});
// values
var key = kgen();
var meta = mgen(key);
var record = rgen(key, meta);
// write the record then check
client.put(key, record, meta, function(err, key1) {
expect(err).to.be.ok();
expect(err.code).to.equal(status.AEROSPIKE_OK);
client.get(key1, function(err, bins, meta, key2) {
expect(err).to.be.ok();
expect(err.code).to.equal(status.AEROSPIKE_OK);
expect(bins.m).to.eql({a: 1, b: 2, c:null});
expect(bins.l).to.eql([1,2,3,null]);
client.remove(key2, function(err, key3){
done();
});
});
});
});
it('should write an object with boolean value and should fail', function(done) {
// generators
var kgen = keygen.string(options.namespace, options.set, {prefix: "test/put/"});
var mgen = metagen.constant({ttl: 1000});
// values
var key = kgen();
var meta = mgen(key);
var record = { boolbin: true}
// write the record then check
client.put(key, record, meta, function(err, key1) {
expect(err).to.be.ok();
expect(err.code).to.equal(status.AEROSPIKE_ERR_PARAM);
done();
});
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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