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

@canvas-medical/heads-up

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@canvas-medical/heads-up - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0

heads-up-todoist.js

37

heads-up.js

@@ -8,3 +8,3 @@ #!/usr/bin/env node

// disable warnings while importing to avoid the ExperimentalWarning for fs.promises
process.emitWarning = () => {};
process.emitWarning = () => { };

@@ -23,4 +23,4 @@ const fs = require('fs').promises;

const tmp = require('tmp-promise');
const updateCheck = require('update-check');
const { spawn } = require('child-process-promise');
const { checkForUpdate, FIREWORKS } = require('./utils')

@@ -36,4 +36,2 @@ const CACHE_FILE = path.join(os.homedir(), '.canvas-heads-up-cache.json');

const pkg = require('./package.json');
process.emitWarning = originalEmitWarning;

@@ -46,17 +44,2 @@

const FIREWORKS = `
.''.
.''. *''* :_\\/_: .
:_\\/_: . .:.*_\\/_* : /\\ : .'.:.'.
.''.: /\\ : _\\(/_ ':'* /\\ * : '..'. -=:o:=-
:_\\/_:'.:::. /)\\*''* .|.* '.\\'/.'_\\(/_'.':'.'
: /\\ : ::::: '*_\\/_* | | -= o =- /)\\ ' *
'..' ':::' * /\\ * |'| .'/.\\'. '._____
* __*..* | | : |. |' .---"|
_* .-' '-. | | .--'| || | _| |
.-'| _.| | || '-__ | | | || |
|' | |. | || | | | | || |
___| '-' ' "" '-' '-.' '\` |____
jgs~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`;
const editor = process.env.EDITOR || DEFAULT_EDITOR;

@@ -66,18 +49,2 @@

async function checkForUpdate() {
let update;
try {
update = await updateCheck(pkg);
} catch (err) {
console.error(`Failed to check for updates: ${err}`);
}
if (update) {
console.log(
`The latest version is ${update.latest}. Please update with \`npm install -g ${pkg.name}\`.`
);
}
}
async function updateLastSave() {

@@ -84,0 +51,0 @@ await cache.set('last-save', moment().format('MM/DD/YYYY'));

{
"name": "@canvas-medical/heads-up",
"version": "1.3.0",
"version": "2.0.0",
"description": "",
"main": "heads-up.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"preinstall": "npx npm-force-resolutions"
"test": "echo \"Error: no test specified\" && exit 1"
},

@@ -13,6 +12,8 @@ "author": "Beau Gunderson <beau@beaugunderson.com> (https://beaugunderson.com/)",

"bin": {
"hu": "./heads-up.js"
"hu": "./heads-up.js",
"hutd": "./heads-up-todoist.js"
},
"dependencies": {
"@octokit/rest": "^16.34.1",
"@slack/web-api": "^5.7.0",
"child-process-promise": "^2.2.1",

@@ -25,8 +26,7 @@ "commander": "^2.20.3",

"opn": "^5.5.0",
"request": "^2.88.0",
"request-promise": "^4.2.5",
"tmp-promise": "^1.1.0",
"update-check": "^1.5.3"
},
"resolutions": {
"sleep": "^6.1.0"
},
"devDependencies": {

@@ -33,0 +33,0 @@ "babel-eslint": "^10.0.3",

@@ -5,2 +5,25 @@ # heads-up-cli

## Heads up via terminal
Run `hu` from command line for documentation
## Heads up from Todoist
Run `hutd` to sync your daily tasks marked with a `headsup` label to the Slack channel.
Tasks will only appear if the task:
- Has a due date for today
- Has a `headsup` label (create labels with `@`)
### Tokens
First time running the command follow the prompts to setup the configuration.
#### Slack token
Can be found in 1password under the `Heads Up Slack OAuth Token` entry.
#### Todoist token
Can be found in Todoist settings under the Integrations sub menu.
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