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

flat-spe

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flat-spe - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

see/SPE-00060-[object Object]--diagnostic-0069d6baeb400539-61f68060-4dee-11e8-a3f8-fbba283e7912.txt

18

index.js

@@ -13,2 +13,13 @@ #!/usr/bin/env node

function makeid() {
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < 10; i++)
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
mkdirp(destination, function (err) {

@@ -39,3 +50,3 @@ if (err) {

var key = _event.value.frame.testData.metadata.find(function(r) { return r.key === '!instrument.serial'})
var dateTime = _event.value.frame.testData.metadata.find(function(r) { return r.key === '!tablet.dateTime'})
var _time = _event.value.frame.testData.metadata.find(function(r) { return r.key === '!tablet.dateTime'}).value

@@ -47,6 +58,5 @@ if (key) {

var pieces = path.basename(file, '.txt').split(' ')
console.log(path.basename(file, '.txt'))
console.log(typeof _time, JSON.stringify(_time))
var name = instrumentName + '-' + _time.toString() + '-' + pieces[0] + '-' + makeid() + '.txt'
var name = instrumentName + '-' + dateTime + '-' + '-' + pieces[0] + '-' + uuid() + '.txt'
var writeStream = fs.createWriteStream(destination + '/' + name)

@@ -53,0 +63,0 @@ fs.createReadStream(file).pipe(writeStream)

{
"name": "flat-spe",
"version": "1.2.3",
"version": "1.2.4",
"description": "",

@@ -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