Socket
Socket
Sign inDemoInstall

apollo-datasource-http

Package Overview
Dependencies
8
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.8 to 0.9.9

2

dist/src/http-data-source.d.ts

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

export declare type RequestOptions = {
context?: Dictionary<string>;
query?: Dictionary<string | number>;

@@ -25,2 +26,3 @@ body?: string | Buffer | Uint8Array | Readable | null;

export declare type Request = UndiciRequestOptions & CacheTTLOptions & {
context?: Dictionary<string>;
headers: Dictionary<string>;

@@ -27,0 +29,0 @@ query?: Dictionary<string | number>;

@@ -97,3 +97,10 @@ "use strict";

try {
const responseData = await this.pool.request(options);
const responseData = await this.pool.request({
method: options.method,
origin: options.origin,
path: options.path,
body: options.body,
headers: options.headers,
signal: options.signal,
});
responseData.body.setEncoding('utf8');

@@ -100,0 +107,0 @@ let data = '';

2

package.json
{
"name": "apollo-datasource-http",
"version": "0.9.8",
"version": "0.9.9",
"author": "Dustin Deus <deusdustin@gmail.com>",

@@ -5,0 +5,0 @@ "license": "MIT",

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc