Comparing version 2.0.4 to 2.1.0
const got = require('got') | ||
const debug = require('debug')('jql'); | ||
const { pad, xtend, date_ago, days_between, num_reducer, replace, generate_dates } = require('./util') | ||
@@ -20,2 +21,3 @@ | ||
return async (jql) => | ||
debug(jql) || | ||
req(replace(endpoint, {jira, jql}), { | ||
@@ -22,0 +24,0 @@ json: true, |
{ | ||
"name": "kbme", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"description": "Gather kanban metrics from your JIRA instance", | ||
@@ -22,8 +22,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"dotenv": "^4.0.0", | ||
"got": "^7.1.0", | ||
"debug": "^3.1.0", | ||
"dotenv": "^5.0.0", | ||
"got": "^8.0.3", | ||
"mri": "^1.1.0" | ||
}, | ||
"devDependencies": { | ||
"jest": "^20.0.4" | ||
"jest": "^22.1.4" | ||
}, | ||
@@ -30,0 +31,0 @@ "scripts": { |
@@ -89,3 +89,8 @@ # kbme | ||
## Debug | ||
Log JQL queries into the console | ||
> `DEBUG=jql kbme` | ||
## Contribute | ||
Feel free to fill an issue and submit a pull request if you find any problems. |
@@ -52,3 +52,3 @@ { | ||
"to": "65760", | ||
"toString": "This issue links to \"Bamboo Development Tools › wk-docs › bugfix-ELEMENTS-252-web-components-doesn-t-work (Atlassian Bamboo)\"" | ||
"toString": "This issue links to \"ISK › bugfix-ISK-252-web (Atlassian ISK)\"" | ||
} | ||
@@ -66,3 +66,3 @@ ] | ||
"to": "65761", | ||
"toString": "This issue links to \"Bamboo SFC - Elements (L1) › app › bugfix-ELEMENTS-252-web-components-doesn-t-work (Atlassian Bamboo)\"" | ||
"toString": "This issue links to \"ISK › bugfix-ISK-252-web (Atlassian ISK)\"" | ||
} | ||
@@ -186,3 +186,3 @@ ] | ||
"to": "368007", | ||
"toString": "BAMBOO-735" | ||
"toString": "ISK-735" | ||
} | ||
@@ -386,3 +386,3 @@ ] | ||
"to": "368007", | ||
"toString": "BAMBOO-735" | ||
"toString": "ISK-735" | ||
} | ||
@@ -389,0 +389,0 @@ ] |
@@ -41,4 +41,4 @@ const { pad, csv, toJSON, date_ago, days_between, num_reducer, replace, generate_dates, format } = require('../lib/util') | ||
const d = new Date() | ||
const date = `${d.getFullYear()}-${pad(d.getMonth()+1)}-${d.getDate()}` | ||
const year = `${d.getFullYear()-1}-${pad(d.getMonth()+1)}-${d.getDate()}` | ||
const date = `${d.getFullYear()}-${pad(d.getMonth()+1)}-${pad(d.getDate())}` | ||
const year = `${d.getFullYear()-1}-${pad(d.getMonth()+1)}-${pad(d.getDate())}` | ||
@@ -69,4 +69,4 @@ test('should return the date string of n days ago', () => { | ||
test('should return the date string of n days ago', () => { | ||
expect([0].reduce(num_reducer), 0).toBe(0) | ||
expect([1,2,3].reduce(num_reducer), 0).toBe(6) | ||
expect([0].reduce(num_reducer, 0)).toBe(0) | ||
expect([1,2,3].reduce(num_reducer, 0)).toBe(6) | ||
}) | ||
@@ -73,0 +73,0 @@ }) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
224945
6623
96
4
15
1
+ Addeddebug@^3.1.0
+ Added@sindresorhus/is@0.7.0(transitive)
+ Addedcacheable-request@2.1.4(transitive)
+ Addedclone-response@1.0.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addeddotenv@5.0.1(transitive)
+ Addedfrom2@2.3.0(transitive)
+ Addedgot@8.3.2(transitive)
+ Addedhttp-cache-semantics@3.8.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinto-stream@3.1.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjson-buffer@3.0.0(transitive)
+ Addedkeyv@3.0.0(transitive)
+ Addedlowercase-keys@1.0.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addednormalize-url@2.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedp-cancelable@0.4.1(transitive)
+ Addedp-is-promise@1.1.0(transitive)
+ Addedp-timeout@2.0.1(transitive)
+ Addedpify@3.0.0(transitive)
+ Addedprepend-http@2.0.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedquery-string@5.1.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedresponselike@1.0.2(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsort-keys@2.0.0(transitive)
+ Addedstrict-uri-encode@1.1.0(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedurl-parse-lax@3.0.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removeddotenv@4.0.0(transitive)
- Removedgot@7.1.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedp-cancelable@0.3.0(transitive)
- Removedp-timeout@1.2.1(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedurl-parse-lax@1.0.0(transitive)
Updateddotenv@^5.0.0
Updatedgot@^8.0.3