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

gtfs2lc

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtfs2lc - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

20

lib/gtfs2connections.js
const { Worker, isMainThread, parentPort, workerData } = require('worker_threads');
const fs = require('fs');
const path = require('path');
const ChildProcess = require('child_process');

@@ -124,14 +125,9 @@ const del = require('del');

function cleanUpSources(path) {
return new Promise((resolve, reject) => {
const child = ChildProcess.spawn('./bin/gtfs2lc-clean.sh', [path]);
child.on('close', (code, signal) => {
if (signal === 'SIGTERM') {
reject(new Error('Process gtfs2lc-clean.sh exit with code: ' + code));
} else {
resolve();
}
});
});
async function cleanUpSources(sources) {
try {
await exec(`${path.resolve(`${__dirname}/../bin/gtfs2lc-clean.sh`)} ${sources}`);
} catch(err) {
console.error(err);
throw new Error('Process gtfs2lc-clean.sh exit with code: ' + code);
}
}

@@ -138,0 +134,0 @@

2

package.json
{
"name": "gtfs2lc",
"version": "2.0.1",
"version": "2.0.2",
"description": "Mapping script from gtfs to (linked) connections",

@@ -5,0 +5,0 @@ "main": "lib/gtfs2lc.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