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

@mu-online-js/mu-logger

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mu-online-js/mu-logger - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

50

index.js

@@ -18,26 +18,30 @@ const {Client} = require('@elastic/elasticsearch');

const indexName = 'mu_logs';
const indexExists = await this.esClient.indices.exists({index: indexName});
if (!indexExists) {
await this.esClient.indices.create({
index: indexName,
body: {
mappings: {
properties: {
app: {
type: 'keyword'
},
logType: {
type: 'keyword'
},
date: {
type: 'date'
},
message: {
type: 'text',
index: false
try {
const indexExists = await this.esClient.indices.exists({index: indexName});
if (!indexExists) {
await this.esClient.indices.create({
index: indexName,
body: {
mappings: {
properties: {
app: {
type: 'keyword'
},
logType: {
type: 'keyword'
},
date: {
type: 'date'
},
message: {
type: 'text',
index: false
}
}
}
}
}
});
});
}
} catch (e) {
/* empty */
}

@@ -56,3 +60,5 @@ }

}
}).then();
}).then().catch(() => {
/* empty */
});
}

@@ -59,0 +65,0 @@

{
"name": "@mu-online-js/mu-logger",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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