hazelcast-store
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -157,4 +157,4 @@ 'use strict'; | ||
this.sessionsMap.then(map => { | ||
map.remove(psid).then(value => { | ||
debug("Item removed. sid:" + sid + ". Previous value: ", value); | ||
map.delete(psid).then(() => { | ||
debug("Item removed. sid:" + sid + "."); | ||
fn(null, sid); | ||
@@ -161,0 +161,0 @@ }).catch(error => { |
{ | ||
"name": "hazelcast-store", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Hazelcast implementation of expressjs session store", | ||
@@ -22,5 +22,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"express-session": "^1.17.0", | ||
"hazelcast-client": "^3.12.1", | ||
"mocha": "^3.0.2" | ||
"express-session": "^1.17.2", | ||
"hazelcast-client": "^4.1.0", | ||
"mocha": "^8.4.0" | ||
}, | ||
@@ -31,4 +31,4 @@ "engines": { | ||
"scripts": { | ||
"test": "mocha -R spec -t 10000 test/test-*.js" | ||
"test": "mocha -R spec -t 10000 test/test-*.js --exit" | ||
} | ||
} |
@@ -27,8 +27,9 @@ [![npm](https://img.shields.io/npm/v/hazelcast-store.svg)](https://npmjs.com/package/hazelcast-store) [![Dependencies](https://img.shields.io/david/jackspaniel/hazelcast-store.svg)](https://david-dm.org/jackspaniel/hazelcast-store) ![Downloads](https://img.shields.io/npm/dm/hazelcast-store.svg) | ||
const HazelcastClient = require('hazelcast-client').Client; | ||
const HazelcastConfig = require('hazelcast-client').Config; | ||
const clientConfig = { | ||
network: { | ||
clusterMembers: ['127.0.0.1:5701'] | ||
} | ||
}; | ||
const clientConfig = new HazelcastConfig.ClientConfig(); | ||
clientConfig.networkConfig.addresses = [{host: '127.0.0.1', port: 5701}]; | ||
HazelcastClient.newHazelcastClient(clientConfig).then((hzInstance) => { | ||
HazelcastClient.newHazelcastClient({clientConfig}).then((hzInstance) => { | ||
hazelcastStore.setClient(hzInstance); | ||
@@ -35,0 +36,0 @@ }); |
@@ -5,5 +5,2 @@ "use strict"; | ||
const HazelcastClient = require('hazelcast-client').Client; | ||
const HazelcastConfig = require('hazelcast-client').Config; | ||
const clientConfig = new HazelcastConfig.ClientConfig(); | ||
clientConfig.networkConfig.addresses.push('127.0.0.1:5701'); | ||
@@ -35,3 +32,7 @@ describe("hazelcast-store", function () { | ||
HazelcastClient | ||
.newHazelcastClient(clientConfig) | ||
.newHazelcastClient({ | ||
network: { | ||
clusterMembers: ['127.0.0.1:5701'] | ||
} | ||
}) | ||
.then(function (hzInstance) { | ||
@@ -38,0 +39,0 @@ assert(typeof hzInstance === "object"); |
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
377
60
17519