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

@apollo/datasource-rest

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/datasource-rest - npm Package Compare versions

Comparing version 6.0.1 to 6.1.0

2

dist/RESTDataSource.d.ts

@@ -87,3 +87,3 @@ /// <reference types="node" />

protected cacheOptionsFor?(url: string, response: FetcherResponse, request: FetcherRequestInit): ValueOrPromise<CacheOptions | undefined>;
protected didEncounterError(_error: Error, _request: RequestOptions): void;
protected didEncounterError(_error: Error, _request: RequestOptions, _url?: URL): void;
protected parseBody(response: FetcherResponse): Promise<object | string>;

@@ -90,0 +90,0 @@ private cloneDataSourceFetchResult;

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

}
didEncounterError(_error, _request) {
didEncounterError(_error, _request, _url) {
}

@@ -218,3 +218,3 @@ parseBody(response) {

catch (error) {
this.didEncounterError(error, outgoingRequest);
this.didEncounterError(error, outgoingRequest, url);
throw error;

@@ -221,0 +221,0 @@ }

{
"name": "@apollo/datasource-rest",
"description": "REST DataSource for Apollo Server v4",
"version": "6.0.1",
"version": "6.1.0",
"author": "Apollo <packages@apollographql.com>",

@@ -34,21 +34,21 @@ "license": "MIT",

"devDependencies": {
"@apollo/server": "4.7.2",
"@apollo/server": "4.9.1",
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.1",
"@types/jest": "29.5.2",
"@changesets/cli": "2.26.2",
"@types/jest": "29.5.3",
"@types/lodash.isplainobject": "4.0.7",
"@types/node": "16.18.34",
"@typescript-eslint/eslint-plugin": "5.59.9",
"@typescript-eslint/parser": "5.59.9",
"cspell": "6.31.1",
"eslint": "8.42.0",
"@types/node": "16.18.41",
"@typescript-eslint/eslint-plugin": "6.4.0",
"@typescript-eslint/parser": "6.4.0",
"cspell": "7.0.0",
"eslint": "8.47.0",
"form-data": "4.0.0",
"graphql": "16.6.0",
"jest": "29.5.0",
"graphql": "16.8.0",
"jest": "29.6.2",
"jest-junit": "16.0.0",
"nock": "13.3.1",
"prettier": "2.8.8",
"ts-jest": "29.1.0",
"nock": "13.3.3",
"prettier": "3.0.2",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "5.1.3"
"typescript": "5.1.6"
},

@@ -69,5 +69,5 @@ "dependencies": {

"volta": {
"node": "18.16.0",
"npm": "9.6.7"
"node": "18.17.1",
"npm": "9.8.1"
}
}

@@ -264,3 +264,8 @@ import type {

protected didEncounterError(_error: Error, _request: RequestOptions) {
protected didEncounterError(
_error: Error,
_request: RequestOptions,
// TODO(v7): this shouldn't be optional in a future major version
_url?: URL,
) {
// left as a no-op instead of an unimplemented optional method to avoid

@@ -548,3 +553,3 @@ // breaking an existing use case where one calls

} catch (error) {
this.didEncounterError(error as Error, outgoingRequest);
this.didEncounterError(error as Error, outgoingRequest, url);
throw error;

@@ -551,0 +556,0 @@ }

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