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

winston-cassandra

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-cassandra - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

9

index.js

@@ -102,13 +102,14 @@ var util = require('util');

Cassandra.prototype._createSchema = function (callback) {
var query = 'SELECT columnfamily_name FROM system.schema_columnfamilies WHERE keyspace_name=? AND columnfamily_name=?';
var params = [this.options.keyspace, this.options.table];
var createQuery = 'CREATE TABLE ' + this.options.table +
' (key text, date timestamp, level text, message text, meta text, PRIMARY KEY(key, date));';
var self = this;
this.client.execute(query, params, function (err, result) {
this.client.metadata.getTable(this.options.keyspace, this.options.table, function (err, tableInfo) {
if (err) return callback(err);
if (result.rows.length === 1) {
if (tableInfo) {
//table is already created
self.schemaStatus.created = true;
return callback();
}
return self.client.execute(createQuery, function (err) {

@@ -115,0 +116,0 @@ self.schemaStatus.created = !err;

{
"name": "winston-cassandra",
"version": "0.3.0",
"version": "0.4.0",
"description": "Cassandra transport for winston",

@@ -21,3 +21,3 @@ "author": "Jorge Bay <jorgebaygondra@gmail.com>",

"async": "^1.4.2",
"cassandra-driver": "^2.2.2",
"cassandra-driver": "^3.0.1",
"winston": "^1.1.1"

@@ -24,0 +24,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