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

contentful-sdk-core

Package Overview
Dependencies
Maintainers
4
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful-sdk-core - npm Package Compare versions

Comparing version 3.5.5 to 3.5.6

3

dist/es-modules/create-http-client.js

@@ -5,2 +5,3 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();

import cloneDeep from 'lodash/cloneDeep';
import assign from 'lodash/assign';

@@ -70,3 +71,3 @@ /**

instance.cloneWithNewParams = function (newParams) {
return createHttpClient(axios, Object.assign(cloneDeep(httpClientParams), newParams));
return createHttpClient(axios, assign(cloneDeep(httpClientParams), newParams));
};

@@ -73,0 +74,0 @@

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

var _assign = require('lodash/assign');
var _assign2 = _interopRequireDefault(_assign);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -85,3 +89,3 @@

instance.cloneWithNewParams = function (newParams) {
return createHttpClient(axios, Object.assign((0, _cloneDeep2.default)(httpClientParams), newParams));
return createHttpClient(axios, (0, _assign2.default)((0, _cloneDeep2.default)(httpClientParams), newParams));
};

@@ -88,0 +92,0 @@

{
"name": "contentful-sdk-core",
"version": "3.5.5",
"version": "3.5.6",
"description": "Core modules for the Contentful JS SDKs",

@@ -5,0 +5,0 @@ "homepage": "https://www.contentful.com/developers/docs/javascript/",

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