blocket-spy
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -21,3 +21,3 @@ 'use strict'; | ||
const lastRunData = jsonfile.readFileSync(LAST_RUN_DATA_FILE, { throws: false }); | ||
const lastCheckedListingTimestamp = new Date('2018-08-17 22:00:00'); | ||
const lastCheckedListingTimestamp = lastRunData ? lastRunData.timestamp : new Date('2018-01-01 00:00:00'); | ||
const filteredResults = filterSearchResults(results, lastCheckedListingTimestamp); | ||
@@ -24,0 +24,0 @@ jsonfile.writeFileSync(LAST_RUN_DATA_FILE, { timestamp: new Date() }, { throws: false }); |
{ | ||
"name": "blocket-spy", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "This tool watches Blocket.se for new listings matching the specified criteria and posts an OS notification when something new is found.", | ||
"main": "index.js", | ||
"bin": "lib/cli.js", | ||
"bin": "./lib/cli.js", | ||
"repository": "https://github.com/init-ninja/blocket-spy.git", | ||
@@ -8,0 +8,0 @@ "author": "Pritin Tyagaraj <pritin@live.com>", |
17433