Comparing version 4.12.0 to 5.0.0
@@ -14,6 +14,8 @@ 'use strict' | ||
!!(data && ('object' === typeof data) && data.id === id) | ||
const hasProp = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key) | ||
const filterByKeys = (pattern) => (data) => { | ||
if (!data || 'object' !== typeof data) return false | ||
for (let key in pattern) { | ||
if (!data.hasOwnProperty(key)) return false | ||
for (const key of Object.keys(pattern)) { | ||
if (!hasProp(data, key)) return false | ||
if (data[key] !== pattern[key]) return false | ||
@@ -20,0 +22,0 @@ } |
{ | ||
"name": "vbb-lines", | ||
"description": "VBB lines and their stations.", | ||
"version": "4.12.0", | ||
"version": "5.0.0", | ||
"main": "index.js", | ||
@@ -30,6 +30,6 @@ "files": [ | ||
"engines": { | ||
"node": ">=6" | ||
"node": ">=16" | ||
}, | ||
"dependencies": { | ||
"ndjson": "^1.5.0", | ||
"ndjson": "^2.0.0", | ||
"pump": "^3.0.0", | ||
@@ -41,19 +41,20 @@ "stream-filter": "^2.1.0", | ||
"csv-parser": "^2.0.0", | ||
"eslint": "^8.8.0", | ||
"is-promise": "^4.0.0", | ||
"is-stream": "^1.0.1", | ||
"is-stream": "^2.0.1", | ||
"moment": "^2.17.1", | ||
"ndjson": "^1.5.0", | ||
"shallow-equals": "^1.0.0", | ||
"strip-bom-stream": "^3.0.0", | ||
"tap-min": "^1.2.2", | ||
"strip-bom-stream": "^4.0.0", | ||
"tap-min": "^2.0.0", | ||
"tape": "^5.0.0" | ||
}, | ||
"scripts": { | ||
"lint": "eslint .", | ||
"download": "./download.sh", | ||
"convert": "node convert.js", | ||
"cleanup": "rm routes.csv trips.csv stop_times.csv", | ||
"cleanup": "rm *.csv *.csv.etag", | ||
"build": "npm run download && npm run convert && npm run cleanup", | ||
"test": "node test.js | tap-min", | ||
"prepublishOnly": "npm run build && npm test" | ||
"prepublishOnly": "npm run lint && npm run build && npm test" | ||
} | ||
} |
@@ -6,3 +6,2 @@ # vbb-lines 🚏 | ||
[![npm version](https://img.shields.io/npm/v/vbb-lines.svg)](https://www.npmjs.com/package/vbb-lines) | ||
[![build status](https://img.shields.io/travis/derhuerst/vbb-lines.svg)](https://travis-ci.org/derhuerst/vbb-lines) | ||
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-lines.svg) | ||
@@ -9,0 +8,0 @@ [![support me via GitHub Sponsors](https://img.shields.io/badge/support%20me-donate-fa7664.svg)](https://github.com/sponsors/derhuerst) |
1045
14018777
66
+ Addedndjson@2.0.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsplit2@3.2.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedthrough2@4.0.2(transitive)
- Removedndjson@1.5.0(transitive)
- Removedsplit2@2.2.0(transitive)
Updatedndjson@^2.0.0