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

captain-log

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captain-log - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

14

index.js

@@ -19,3 +19,2 @@ const request = require('request')

function display (config, data) {
console.log(`### ${config.title}`)
// TODO if data is not array, complain, we have got an error

@@ -27,2 +26,15 @@ data

}
if (config.freshness) {
console.log('freshness')
const since = new Date(config.since)
const created_at = new Date(d.created_at)
if (config.freshness === 'new' && since < created_at) {
return false
}
if (config.freshness === 'updated' && since > created_at) {
return false
}
}
if (config.exclude_labels) {

@@ -29,0 +41,0 @@ const excluded = d.labels

2

package.json
{
"name": "captain-log",
"version": "0.1.2",
"version": "0.1.3",
"description": "The log from your favorite captains",

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