@canvas-medical/heads-up
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -143,2 +143,6 @@ #!/usr/bin/env node | ||
function dayIsToday() { | ||
return getDay().format('YYYY-MM-DD') === moment().format('YYYY-MM-DD'); | ||
} | ||
// by default this gets the last 30 issues created by a user in this repo in descending order; so | ||
@@ -217,3 +221,7 @@ // it should work for our purposes... but we could switch to octokit.search.issues() if needed | ||
lol.fromString(FIREWORKS); | ||
} | ||
// always update last save date if the day being edited is today; fixes the issue where heads-up | ||
// is created in advance e.g. via `hue --tomorrow` | ||
if (dayIsToday()) { | ||
await updateLastSave(); | ||
@@ -220,0 +228,0 @@ } |
{ | ||
"name": "@canvas-medical/heads-up", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "", | ||
"main": "heads-up.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"preinstall": "npx npm-force-resolutions" | ||
}, | ||
@@ -15,5 +16,5 @@ "author": "Beau Gunderson <beau@beaugunderson.com> (https://beaugunderson.com/)", | ||
"dependencies": { | ||
"@octokit/rest": "^16.25.0", | ||
"@octokit/rest": "^16.34.1", | ||
"child-process-promise": "^2.2.1", | ||
"commander": "^2.20.0", | ||
"commander": "^2.20.3", | ||
"keyv": "^3.1.0", | ||
@@ -24,16 +25,19 @@ "keyv-file": "^0.1.13", | ||
"opn": "^5.5.0", | ||
"tmp-promise": "^1.0.5", | ||
"tmp-promise": "^1.1.0", | ||
"update-check": "^1.5.3" | ||
}, | ||
"resolutions": { | ||
"sleep": "^6.1.0" | ||
}, | ||
"devDependencies": { | ||
"babel-eslint": "^10.0.1", | ||
"babel-eslint": "^10.0.3", | ||
"eslint": "^5.16.0", | ||
"eslint-config-airbnb": "^17.1.0", | ||
"eslint-config-prettier": "^4.2.0", | ||
"eslint-plugin-import": "^2.17.2", | ||
"eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-react": "^7.12.4", | ||
"eslint-config-airbnb": "^17.1.1", | ||
"eslint-config-prettier": "^4.3.0", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-react": "^7.16.0", | ||
"eslint_d": "^7.3.0", | ||
"prettier": "^1.17.0" | ||
"prettier": "^1.18.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9420
6
244
1
Updated@octokit/rest@^16.34.1
Updatedcommander@^2.20.3
Updatedtmp-promise@^1.1.0