Comparing version 1.0.17 to 1.0.18
{ | ||
"name": "ofac", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "A module to facilitate local OFAC searches", | ||
@@ -10,4 +10,3 @@ "main": "index.js", | ||
"version": "", | ||
"postversion": "git push && git push --tags && npm publish && npm run now", | ||
"now": "now --target staging" | ||
"postversion": "git push && git push --tags && npm publish" | ||
}, | ||
@@ -32,3 +31,2 @@ "repository": { | ||
"node-stream-zip": "^1.8.0", | ||
"npm-now": "^1.0.2", | ||
"xml2js": "^0.4.19" | ||
@@ -35,0 +33,0 @@ }, |
@@ -166,24 +166,2 @@ [![npm version](https://badge.fury.io/js/ofac.svg)](https://badge.fury.io/js/ofac) | ||
``` | ||
## NPM-as-a-service on the Now platform | ||
The functionality in this module is also available via a REST API where methods | ||
may be called by passing parameters to the service's url. The parameter "method" is | ||
used to indicate which method to call, and additional parameters should match the | ||
signature of the method, for example: | ||
```bash | ||
curl "https://ofac.npm.now.sh/server.js?method=search&cust={id: 'J287011', country: 'Colombia'}" | ||
``` | ||
returns a JSON object with the method's return value | ||
In Javascript you may use your fevourite package for fetching instead: | ||
```js | ||
const fetch = require('node-fetch') | ||
const url = 'https://ofac.npm.now.sh/server.js?method=search&cust={id: 'J287011', country: 'Colombia'}' | ||
fetch(url).then(res => res.json()) | ||
.then(o => { | ||
console.log(o) // will show the result | ||
}) | ||
``` | ||
## Licence | ||
@@ -190,0 +168,0 @@ MIT |
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
3
26324
7
313
173
- Removednpm-now@^1.0.2
- Removednpm-now@1.0.2(transitive)