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

cimpress-fulfiller-identity

Package Overview
Dependencies
Maintainers
6
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cimpress-fulfiller-identity - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

6

lib/fulfiller_identity_client.js

@@ -80,3 +80,3 @@ "use strict";

return parsedBody.map(function (f) {
return new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links);
return new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links, f.archived);
});

@@ -115,3 +115,3 @@ }).catch(function (err) {

}).then(function (f) {
return new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links);
return new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links, f.archived);
}).catch(function (err) {

@@ -140,4 +140,2 @@ return Promise.reject(err.response && err.response.status === 404 ? new FulfillerNotFoundError("Fulfiller " + fulfillerId + " does not exits") : new Error("Unable to get fulfiller: " + err.message));

if (options && options.noCache) queryParameters.push("noCache=" + Math.random());
var url = this.baseUrl + "/v1/fulfillers/" + fulfillerId + "/contacts" + (options && options.noCache ? "?noCache=" + Math.random() : "");

@@ -144,0 +142,0 @@

@@ -12,2 +12,4 @@ "use strict";

function Fulfiller(fulfillerId, internalFulfillerId, name, email, phone, language, links) {
var archived = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
_classCallCheck(this, Fulfiller);

@@ -21,3 +23,3 @@

this._language = language;
this._archived = false;
this._archived = archived || false;
this._links = links;

@@ -24,0 +26,0 @@ }

{
"name": "cimpress-fulfiller-identity",
"version": "0.1.7",
"version": "0.1.8",
"description": "Thin client library for Cimpress' Fulfiller Identity service",

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

@@ -122,3 +122,4 @@ # Cimpress Fulfiller Identity client

```
const fulfiller = new Fulfiller(fulfillerId, internalFulfillerId, name, email, phone, language, links)
const fulfiller = new Fulfiller(fulfillerId, internalFulfillerId, name, email, phone, language, links) // It will be not archived by default
const fulfiller = new Fulfiller(fulfillerId, internalFulfillerId, name, email, phone, language, links, archived)

@@ -125,0 +126,0 @@ fulfillerIdentity.saveFulfiller(fulfiller) // Creates or updates a fulfiller

@@ -65,3 +65,3 @@ const axios = require('axios');

})
.then(parsedBody => parsedBody.map(f => new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links)))
.then(parsedBody => parsedBody.map(f => new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links, f.archived)))
.catch((err) => Promise.reject(new Error("Unable to get fulfillers: " + err.message)));

@@ -96,3 +96,3 @@ }

})
.then(f => new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links))
.then(f => new Fulfiller(f.fulfillerId, f.internalFulfillerId, f.name, f.email, f.phone, f.language, f.links, f.archived))
.catch((err) => Promise.reject(err.response && err.response.status === 404 ?

@@ -119,5 +119,2 @@ new FulfillerNotFoundError(`Fulfiller ${fulfillerId} does not exits`) :

if (options && options.noCache)
queryParameters.push(`noCache=${Math.random()}`);
const url = `${this.baseUrl}/v1/fulfillers/${fulfillerId}/contacts${options && options.noCache ? `?noCache=${Math.random()}` : ""}`;

@@ -124,0 +121,0 @@

@@ -6,3 +6,3 @@ /**

constructor(fulfillerId, internalFulfillerId, name, email, phone, language, links) {
constructor(fulfillerId, internalFulfillerId, name, email, phone, language, links, archived = false) {
this._fulfillerId = fulfillerId;

@@ -14,3 +14,3 @@ this._internalFulfillerId = internalFulfillerId;

this._language = language;
this._archived = false;
this._archived = archived || false;
this._links = links;

@@ -17,0 +17,0 @@ }

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