Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cimpress-fulfillment-location

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cimpress-fulfillment-location - npm Package Compare versions

Comparing version 0.1.17 to 0.1.21

6

CHANGELOG.md

@@ -9,2 +9,6 @@ # Change Log

### Added
- Implemented client for Fulfillment Location service, with caching.
- Implemented client for Fulfillment Location service, with caching.
## [0.2] - 2018-10-03
### Added
- Enable showArchived flag for listing fulfillment locations.

16

fulfillmentLocation.js

@@ -127,2 +127,5 @@ 'use strict';

var showArchived = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
return new Promise(function (resolve, reject) {

@@ -139,3 +142,3 @@ handleAuthorization(authorization, reject);

if (!_this2.useCaching) {
return _this2._getFulfillmentLocationsFromService(instance).then(function (locations) {
return _this2._getFulfillmentLocationsFromService(instance, showArchived).then(function (locations) {
return resolve(locations);

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

return _this2._getFulfillmentLocationsFromService(instance).then(function (locations) {
return _this2._getFulfillmentLocationsFromService(instance, showArchived).then(function (locations) {
flCache.set(cacheKey, locations);

@@ -179,5 +182,2 @@ return resolve(locations);

url: endpoint,
qs: {
showArchived: false
},
timeout: _this3.timeout

@@ -208,3 +208,3 @@ };

key: '_getFulfillmentLocationsFromService',
value: function _getFulfillmentLocationsFromService(instance) {
value: function _getFulfillmentLocationsFromService(instance, showArchived) {
var _this4 = this;

@@ -217,4 +217,4 @@

url: endpoint,
qs: {
showArchived: false
params: {
showArchived: showArchived
},

@@ -221,0 +221,0 @@ timeout: _this4.timeout

{
"name": "cimpress-fulfillment-location",
"version": "0.1.17",
"version": "0.1.21",
"author": "LogisticsQuotingandPlanning@cimpress.com",

@@ -5,0 +5,0 @@ "description": "A simple client for the Cimpress Fulfillment Location service",

@@ -34,2 +34,9 @@ # Cimpress Fulfillment Location client

});
// To include also archived fulfillment locations
client.getLocations(req.headers.authorization, true)
.then(fulfillmentLocations => {
// do stuff
});
```

@@ -36,0 +43,0 @@

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