New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@packt/audit-sdk

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@packt/audit-sdk - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

11

lib/elastic-interface.js

@@ -37,3 +37,8 @@ 'use strict';

constructor(config = {}) {
const options = Object.assign({}, config);
const options = Object.assign({
maxRetries: 1,
requestTimeout: 500,
deadTimeout: 500,
pingTimeout: 500
}, config);

@@ -51,5 +56,3 @@ // Check a host is set

this.elasticIndex = options.indexName || `${date.getUTCFullYear()}-${`0${date.getUTCDate()}`.slice(-2)}`;
this.elasticClient = new _elasticsearch2.default.Client({
host: options.host
});
this.elasticClient = new _elasticsearch2.default.Client(options);
this.defineJoiSchema();

@@ -56,0 +59,0 @@ }

{
"name": "@packt/audit-sdk",
"version": "0.1.0",
"version": "0.1.1",
"description": "An SDK to send audit log data to elasticsearch",

@@ -38,7 +38,7 @@ "main": "lib/index.js",

"dependencies": {
"@packt/error-custom": "0.1.1",
"aws-sdk": "2.259.1",
"elasticsearch": "15.0.0",
"joi": "13.4.0",
"uuid": "3.2.1"
"@packt/error-custom": "0.1.2",
"aws-sdk": "2.296.0",
"elasticsearch": "15.1.1",
"joi": "13.6.0",
"uuid": "3.3.2"
},

@@ -45,0 +45,0 @@ "devDependencies": {

@@ -21,3 +21,8 @@ import ElasticSearch from 'elasticsearch';

constructor(config = {}) {
const options = Object.assign({}, config);
const options = Object.assign({
maxRetries: 1,
requestTimeout: 500,
deadTimeout: 500,
pingTimeout: 500,
}, config);

@@ -35,5 +40,3 @@ // Check a host is set

this.elasticIndex = options.indexName || `${date.getUTCFullYear()}-${(`0${date.getUTCDate()}`).slice(-2)}`;
this.elasticClient = new ElasticSearch.Client({
host: options.host,
});
this.elasticClient = new ElasticSearch.Client(options);
this.defineJoiSchema();

@@ -40,0 +43,0 @@ }

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