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

hazelcast-store

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hazelcast-store - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

lib/hazelcast-store.js

@@ -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");

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