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

@adeira/fetch

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adeira/fetch - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

fetch/CHANGELOG.md
# Unreleased
# 1.0.1
- UserAgent header on server changed to `@adeira/fetch (+https://github.com/adeira/universe; %s)`
---

@@ -4,0 +8,0 @@

8

fetch/package.json

@@ -6,13 +6,13 @@ {

"license": "MIT",
"version": "1.0.0",
"version": "1.0.1",
"sideEffects": false,
"homepage": "https://github.com/adeira/universe/blob/master/src/fetch/README.md",
"homepage": "https://github.com/adeira/universe/tree/master/src/fetch",
"description": "Production ready fetch function with advanced capabilities like retries with delay and request cancellation after timeout.",
"dependencies": {
"@adeira/js": "^0.1.0",
"@adeira/js": "^1.0.0",
"cross-fetch": "^3.0.4"
},
"devDependencies": {
"lolex": "^5.1.1"
"@sinonjs/fake-timers": "^6.0.0"
}
}

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

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

@@ -58,5 +58,3 @@ var DEFAULT_TIMEOUT = 15000;

function fetchWithRetries(resource, initWithRetries) {
var _initWithRetries;
var _ref = (_initWithRetries = initWithRetries) !== null && _initWithRetries !== void 0 ? _initWithRetries : {},
var _ref = initWithRetries !== null && initWithRetries !== void 0 ? initWithRetries : {},
fetchTimeout = _ref.fetchTimeout,

@@ -87,3 +85,3 @@ retryDelays = _ref.retryDelays,

// coming from. See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
'User-Agent': (0, _js.sprintf)('@adeira/fetch (+https://github.com/kiwicom/fetch; %s)', requestsAttempted)
'User-Agent': (0, _js.sprintf)('@adeira/fetch (+https://github.com/adeira/universe; %s)', requestsAttempted)
} : {};

@@ -90,0 +88,0 @@ var request = (0, _fetch.default)(resource, _objectSpread({}, init, {

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