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.0.1 to 1.1.0

39

heads-up.js

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

const fs = require('fs').promises;
const lol = require('lolcatjs');
const moment = require('moment');

@@ -20,4 +21,7 @@ const octokit = require('@octokit/rest')();

const tmp = require('tmp-promise');
const updateCheck = require('update-check');
const { spawn } = require('child-process-promise');
const pkg = require('./package.json');
process.emitWarning = originalEmitWarning;

@@ -32,4 +36,35 @@

const FIREWORKS = `
.''.
.''. *''* :_\\/_: .
:_\\/_: . .:.*_\\/_* : /\\ : .'.:.'.
.''.: /\\ : _\\(/_ ':'* /\\ * : '..'. -=:o:=-
:_\\/_:'.:::. /)\\*''* .|.* '.\\'/.'_\\(/_'.':'.'
: /\\ : ::::: '*_\\/_* | | -= o =- /)\\ ' *
'..' ':::' * /\\ * |'| .'/.\\'. '._____
* __*..* | | : |. |' .---"|
_* .-' '-. | | .--'| || | _| |
.-'| _.| | || '-__ | | | || |
|' | |. | || | | | | || |
___| '-' ' "" '-' '-.' '\` |____
jgs~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`;
const editor = process.env.EDITOR || DEFAULT_EDITOR;
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 launchEditor(defaultContents = '') {

@@ -154,2 +189,4 @@ const { path: filename, cleanup } = await tmp.file({ postfix: '.md' });

console.log(`Created ${created.data.html_url}`);
lol.fromString(FIREWORKS);
}

@@ -217,2 +254,4 @@ }

await checkForUpdate();
if (!process.argv.slice(2).length) {

@@ -219,0 +258,0 @@ program.outputHelp();

6

package.json
{
"name": "@canvas-medical/heads-up",
"version": "1.0.1",
"version": "1.1.0",
"description": "",

@@ -18,5 +18,7 @@ "main": "heads-up.js",

"commander": "^2.18.0",
"lolcatjs": "^2.3.2",
"moment": "^2.22.2",
"opn": "^5.4.0",
"tmp-promise": "^1.0.5"
"tmp-promise": "^1.0.5",
"update-check": "^1.5.2"
},

@@ -23,0 +25,0 @@ "devDependencies": {

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