Comparing version 1.0.3 to 1.0.4
13
index.js
@@ -52,2 +52,15 @@ const fetch = require('node-fetch'); | ||
} | ||
getCounts(county, cn){ | ||
if(!county || !cn){ | ||
return new Promise.reject(new Error(!county ? 'The county is required!': 'The case number is required!')) | ||
} | ||
let queryObj = { | ||
county, | ||
cn | ||
} | ||
return fetch(this.returnUrl('/api/counts',queryObj)).then(this.getJson); | ||
} | ||
@@ -54,0 +67,0 @@ getParties(county,cn){ |
{ | ||
"name": "oscn-js", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A json rest api wrapper for the oscn alpha api.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
5208
112
7