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

cimpress-tagliatelle

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cimpress-tagliatelle - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

## [0.2.1] - 2018.12.18
### Changed
- Avoid caching issues for GET call
## [0.2.0] - 2018.12.12

@@ -9,0 +13,0 @@ ### Added

23

lib/Tagliatelle.js

@@ -7,2 +7,6 @@ 'use strict';

var _assign = require('babel-runtime/core-js/object/assign');
var _assign2 = _interopRequireDefault(_assign);
var _regenerator = require('babel-runtime/regenerator');

@@ -67,2 +71,3 @@

this.autoFetchPagedResults = options.autoFetchPagedResults || false;
this.skipCache = typeof options.skipCache === 'boolean' ? options.skipCache : true;

@@ -168,3 +173,3 @@ (0, _keys2.default)(options).forEach(function (passedOption) {

var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(accessToken, searchParams) {
var uris, keys, axiosInstance, response;
var uris, keys, skipCacheParams, axiosInstance, response;
return _regenerator2.default.wrap(function _callee2$(_context2) {

@@ -190,6 +195,12 @@ while (1) {

skipCacheParams = {};
if (this.skipCache) {
skipCacheParams.skipCache = Math.random();
}
axiosInstance = this.__getAxiosInstance(accessToken);
_context2.next = 7;
_context2.next = 9;
return axiosInstance.get(this.baseUrl + '/v0/tags', {
params: {
params: (0, _assign2.default)({}, skipCacheParams, {
namespace: searchParams.namespace ? searchParams.namespace : undefined,

@@ -199,3 +210,3 @@ key: keys.length > 0 ? keys : undefined,

offset: (0, _isInteger2.default)(Number(searchParams.offset)) && Number(searchParams.offset) > 0 ? searchParams.offset : undefined
},
}),
paramsSerializer: function paramsSerializer(params) {

@@ -206,7 +217,7 @@ return _qs2.default.stringify(params, { indices: false });

case 7:
case 9:
response = _context2.sent;
return _context2.abrupt('return', response.data);
case 9:
case 11:
case 'end':

@@ -213,0 +224,0 @@ return _context2.stop();

{
"name": "cimpress-tagliatelle",
"version": "0.2.0",
"version": "0.2.1",
"description": "A thin client for Cimpress Tagliatelle service",

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

Sorry, the diff of this file is too big to display

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