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.23 to 1.0.24

aerospike-1.0.24.tgz

2

package.json
{
"name" : "aerospike",
"version" : "1.0.23",
"version" : "1.0.24",
"description" : "Aerospike Client Library",

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

@@ -379,3 +379,30 @@ /*******************************************************************************

});
it('should write a set with empty string and write should pass', function(done) {
// generators
var kgen = keygen.string(options.namespace, "", {prefix: "test/set/"});
var mgen = metagen.constant({ttl: 1000});
var rgen = recgen.record({
l : valgen.constant([1,2,3]),
m : valgen.constant({a: 1, b: 2}),
});
// 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});
expect(bins.l).to.eql([1,2,3]);
done();
});
});
});
});

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