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

irondb-persister

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

irondb-persister - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

13

metric/serialize.js

@@ -91,7 +91,3 @@ 'use strict'

streamTagsOffset = circonus.MetricValue.createStreamTagsVector(builder,
(metric.tags || []).reduce((array, tag, index) => {
let tagOffset = createString(builder, tag)
array.push(tagOffset)
return array
}, [])
(metric.tags || []).map((tag) => createString(builder, tag))
)

@@ -148,8 +144,3 @@ }

let offsets = circonus.MetricList.createMetricsVector(builder,
what.reduce((array, metric, index) => {
if (! (metric instanceof Metric)) metric = validate(metric)
let offset = serializeMetric(metric, builder)
array.push(offset)
return array
}, [])
validate(what).map((metric) => serializeMetric(metric, builder))
)

@@ -156,0 +147,0 @@

@@ -50,13 +50,3 @@ 'use strict'

if (Array.isArray(metric)) {
let converted = 0
let array = metric.reduce((array, current, index) => {
if (current instanceof Metric) {
array.push(current)
} else {
array.push(validateMetric(current))
converted ++
}
return array
}, [])
return converted == 0 ? metric : array
return metric.map((m) => m instanceof Metric ? m : validateMetric(m))
}

@@ -63,0 +53,0 @@

2

package.json
{
"name": "irondb-persister",
"version": "0.0.1",
"version": "0.0.2",
"description": "IronDB RAW Persister",

@@ -5,0 +5,0 @@ "main": "index.js",

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