node-postcode
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "node-postcode", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "API wrapper for the Postcode.nl APIs", | ||
"main": "lib/postcode.js", | ||
"scripts": { | ||
"compile": "babel --presets es2015,stage-0 -d lib/ src/", | ||
"compile": "babel -d lib/ src/", | ||
"prepublish": "npm run compile", | ||
@@ -24,3 +24,2 @@ "test": "npm run compile && mocha test/test.js --recursive --compilers js:babel-core/register" | ||
"babel-core": "^6.9.1", | ||
"babel-polyfill": "^6.9.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
@@ -27,0 +26,0 @@ "babel-preset-stage-0": "^6.5.0", |
@@ -1,2 +0,2 @@ | ||
# node-postcode | ||
# node-postcode [![Build Status](https://travis-ci.org/Cyberuben/node-postcode.svg?branch=master)](https://travis-ci.org/Cyberuben/node-postcode) | ||
API wrapper for the Postcode.nl API. | ||
@@ -11,3 +11,3 @@ | ||
``` | ||
```javascript | ||
var Postcode = require("node-postcode").Postcode; | ||
@@ -27,3 +27,3 @@ var client = new Postcode({ | ||
``` | ||
```bash | ||
$ npm i node-postcode | ||
@@ -46,3 +46,3 @@ ``` | ||
``` | ||
```javascript | ||
new PostcodeClient({ | ||
@@ -65,3 +65,3 @@ key: "YOUR_KEY", | ||
``` | ||
```javascript | ||
client.address("1111AA", 1) | ||
@@ -98,2 +98,2 @@ .then(function (addressDetails) { | ||
When `numberAddition` is supplied, but `houseNumberAddition` is an empty string, the `numberAddition` can not be verified, but this does not mean that mail sent to this address will not be accepted. | ||
When `numberAddition` is supplied, but `houseNumberAddition` is an empty string, the `numberAddition` can not be verified, but this does not mean that mail sent to this address will not be accepted. |
@@ -1,3 +0,1 @@ | ||
//require("babel-polyfill"); | ||
let chai = require("chai"); | ||
@@ -111,3 +109,2 @@ let expect = chai.expect; | ||
.catch((err) => { | ||
console.log(err); | ||
assert(err === undefined, "Bad credentials supplied in environment variables"); | ||
@@ -114,0 +111,0 @@ done(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
6
10
95
1
27943
242