New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-postcode

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-postcode - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

12

lib/postcode.js
"use strict";
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

@@ -63,6 +63,6 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

if (err.statusCode === 404) {
var _error = new Error("Address not found");
_error.code = err.json.exceptionId;
_error.vars = vars;
reject(_error);
var error = new Error("Address not found");
error.code = err.json.exceptionId;
error.vars = vars;
reject(error);
} else {

@@ -90,3 +90,3 @@ reject(err);

} else {
reject(error);
reject(err);
}

@@ -93,0 +93,0 @@ });

@@ -64,3 +64,5 @@ "use strict";

}
} catch (err) {}
} catch (err) {
reject(err);
}
reject(Object.assign(new Error(error), {

@@ -67,0 +69,0 @@ string: string, json: json,

{
"name": "node-postcode",
"version": "1.0.0",
"version": "1.0.1",
"description": "API wrapper for the Postcode.nl APIs",

@@ -5,0 +5,0 @@ "main": "lib/postcode.js",

@@ -0,0 +0,0 @@ # node-postcode [![Build Status](https://travis-ci.org/Cyberuben/node-postcode.svg?branch=master)](https://travis-ci.org/Cyberuben/node-postcode)

@@ -95,2 +95,7 @@ let chai = require("chai");

it("should be able to start requesting the address", () => {
var client = new PostcodeClient({
key: API_KEY,
secret: API_SECRET
});
(() => {

@@ -101,3 +106,3 @@ client.address("1111AA", 1);

it("should be able to return valid address info", () => {
it("should be able to return valid address info", (done) => {
expect(API_KEY).to.be.ok;

@@ -147,3 +152,3 @@ expect(API_SECRET).to.be.ok;

it("should be able to generate a response", () => {
it("should be able to generate a response", (done) => {
return client.signal({

@@ -150,0 +155,0 @@ transaction: {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc