🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

aerospike

Package Overview
Dependencies
Maintainers
3
Versions
143
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

to
3.16.3

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

## [3.16.3] - 2021-02-09
* **Bug Fixes**
* CLIENT-1441: Support boolean values in Map/List bins. [#401](https://github.com/aerospike/aerospike-client-nodejs/pull/401)
* **Updates**
* Update C client library to [v4.6.20](http://www.aerospike.com/download/client/c/notes.html#4.6.20). [#400](https://github.com/aerospike/aerospike-client-nodejs/pull/400)
## [3.16.2] - 2020-12-04

@@ -9,0 +17,0 @@

15

examples/README.md

@@ -5,3 +5,3 @@ # Aerospike Node.js Client Examples

These examples use async/await functionality and require Node.js v8 or later to run.
The examples require Node.js v10 or later to run.

@@ -15,7 +15,16 @@ (These requirements apply to running the provided examples only. The Aerospike

To use the examples, you will need to install the `aerospike` module into the
`examples` directory. From the `examples` directory, run the following to
install the dependencies:
`examples` directory. To do so, you need to first ensure the `aerospike` module
is built. In the main `aerospike-client-nodejs` directory, run the following
command:
$ npm install
Refer to the [client's README](https://github.com/aerospike/aerospike-client-nodejs#readme)
for more details.
From change to the `examples` directory, and run the same command there as well:
$ cd examples
$ npm install
## Usage

@@ -22,0 +31,0 @@

12

lib/client.js

@@ -989,4 +989,4 @@ // *****************************************************************************

* @description The <code>request</code> parameter is a string representing an
* info request. If <code>null</code>, the cluster host will send all available
* info.
* info request. If <code>null</code>, the result will include default info
* values.
*

@@ -1038,4 +1038,4 @@ * Please refer to the

* @description The <code>request</code> parameter is a string representing an
* info request. If it is not specified, the cluster host(s) will send all
* available info.
* info request. If it is not specified, the response will include default
* info values.
*

@@ -1083,4 +1083,4 @@ * @param {string} [request] - The info request to send.

* @description The <code>request</code> parameter is a string representing an
* info request. If it is not specified, the cluster hosts will send all
* available info.
* info request. If it is not specified, the response will include default
* info values.
*

@@ -1087,0 +1087,0 @@ * @param {string} [request] - The info request to send.

@@ -91,9 +91,9 @@ // *****************************************************************************

* // Set default policies for read and write commands
* let defaults = {
* const defaults = {
* socketTimeout: 50,
* totalTimeout: 100
* }
* let config = {
* const config = {
* policies: {
* read: new Aerospike.ReadPolicy(defaults)
* read: new Aerospike.ReadPolicy(defaults),
* write: new Aerospike.WritePolicy(defaults)

@@ -103,3 +103,3 @@ * }

*
* let key = new Aerospike.Key('test', 'demo', 'k1')
* const key = new Aerospike.Key('test', 'demo', 'k1')
*

@@ -106,0 +106,0 @@ * Aerospike.connect(config)

@@ -505,3 +505,3 @@ // *****************************************************************************

* @param {Array<*>} [udfArgs] - Arguments for the function.
* @param {QueryPolicy} [policy] - The Query Policy to use for this operation.
* @param {WritePolicy} [policy] - The Write Policy to use for this operation.
* @param {number} [queryID] - Job ID to use for the query; will be assigned

@@ -508,0 +508,0 @@ * randomly if zero or undefined.

@@ -37,3 +37,3 @@ // *****************************************************************************

if (tlsName) {
host.tls = tlsName
host.tlsname = tlsName
}

@@ -40,0 +40,0 @@

{
"name": "aerospike",
"version": "3.16.2",
"version": "3.16.3",
"description": "Aerospike Client Library",

@@ -5,0 +5,0 @@ "keywords": [

@@ -185,8 +185,26 @@ // *****************************************************************************

const record = {
list: [1, 'foo', 1.23, new Double(3.14), Buffer.from('bar'),
GeoJSON.Point(103.8, 1.283), [1, 2, 3], { a: 1, b: 2 }]
list: [
1,
'foo',
1.23,
new Double(3.14),
Buffer.from('bar'),
GeoJSON.Point(103.8, 1.283),
[1, 2, 3],
{ a: 1, b: 2 },
false
]
}
const expected = {
list: [1, 'foo', 1.23, 3.14, Buffer.from('bar'),
'{"type":"Point","coordinates":[103.8,1.283]}', [1, 2, 3], { a: 1, b: 2 }]
list: [
1,
'foo',
1.23,
3.14,
Buffer.from('bar'),
'{"type":"Point","coordinates":[103.8,1.283]}',
[1, 2, 3],
{ a: 1, b: 2 },
false
]
}

@@ -206,3 +224,4 @@ putGetVerify(record, expected, done)

g: [1, 2, 3],
h: { a: 1, b: 2 }
h: { a: 1, b: 2 },
i: true
}

@@ -219,3 +238,4 @@ }

g: [1, 2, 3],
h: { a: 1, b: 2 }
h: { a: 1, b: 2 },
i: true
}

@@ -222,0 +242,0 @@ }

@@ -37,3 +37,3 @@ // *****************************************************************************

var host = utils.parseHostString('aero.local:aero.tls:3333')
expect(host).to.eql({ addr: 'aero.local', tls: 'aero.tls', port: 3333 })
expect(host).to.eql({ addr: 'aero.local', tlsname: 'aero.tls', port: 3333 })
})

@@ -43,3 +43,3 @@

var host = utils.parseHostString('aero.local:aero.tls')
expect(host).to.eql({ addr: 'aero.local', tls: 'aero.tls', port: 3000 })
expect(host).to.eql({ addr: 'aero.local', tlsname: 'aero.tls', port: 3000 })
})

@@ -59,3 +59,3 @@

var host = utils.parseHostString('192.168.33.10:aero.tls:3333')
expect(host).to.eql({ addr: '192.168.33.10', tls: 'aero.tls', port: 3333 })
expect(host).to.eql({ addr: '192.168.33.10', tlsname: 'aero.tls', port: 3333 })
})

@@ -65,3 +65,3 @@

var host = utils.parseHostString('192.168.33.10:aero.tls')
expect(host).to.eql({ addr: '192.168.33.10', tls: 'aero.tls', port: 3000 })
expect(host).to.eql({ addr: '192.168.33.10', tlsname: 'aero.tls', port: 3000 })
})

@@ -81,3 +81,3 @@

var host = utils.parseHostString('[fde4:8dba:82e1::c4]:aero.tls:3333')
expect(host).to.eql({ addr: 'fde4:8dba:82e1::c4', tls: 'aero.tls', port: 3333 })
expect(host).to.eql({ addr: 'fde4:8dba:82e1::c4', tlsname: 'aero.tls', port: 3333 })
})

@@ -87,3 +87,3 @@

var host = utils.parseHostString('[fde4:8dba:82e1::c4]:aero.tls')
expect(host).to.eql({ addr: 'fde4:8dba:82e1::c4', tls: 'aero.tls', port: 3000 })
expect(host).to.eql({ addr: 'fde4:8dba:82e1::c4', tlsname: 'aero.tls', port: 3000 })
})

@@ -90,0 +90,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet