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

@graphql-tools/url-loader

Package Overview
Dependencies
Maintainers
3
Versions
1567
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/url-loader - npm Package Compare versions

Comparing version 5.0.1-alpha-d3da75f.0 to 5.0.1-alpha-d4d928c.0

8

index.cjs.js

@@ -34,8 +34,8 @@ 'use strict';

}
async canLoad(pointer, options) {
return this.canLoadSync(pointer, options);
}
canLoadSync(pointer, _options) {
async canLoad(pointer, _options) {
return !!validUrl.isWebUri(pointer);
}
canLoadSync(_pointer, _options) {
return false;
}
async load(pointer, options) {

@@ -42,0 +42,0 @@ let headers = {};

@@ -12,4 +12,4 @@ import { IntrospectionOptions } from 'graphql';

loaderId(): string;
canLoad(pointer: SchemaPointerSingle, options: LoadFromUrlOptions): Promise<boolean>;
canLoadSync(pointer: SchemaPointerSingle, _options: LoadFromUrlOptions): boolean;
canLoad(pointer: SchemaPointerSingle, _options: LoadFromUrlOptions): Promise<boolean>;
canLoadSync(_pointer: SchemaPointerSingle, _options: LoadFromUrlOptions): boolean;
load(pointer: SchemaPointerSingle, options: LoadFromUrlOptions): Promise<Source>;

@@ -16,0 +16,0 @@ loadSync(): never;

@@ -11,8 +11,8 @@ import { print } from 'graphql';

}
async canLoad(pointer, options) {
return this.canLoadSync(pointer, options);
}
canLoadSync(pointer, _options) {
async canLoad(pointer, _options) {
return !!isWebUri(pointer);
}
canLoadSync(_pointer, _options) {
return false;
}
async load(pointer, options) {

@@ -19,0 +19,0 @@ let headers = {};

{
"name": "@graphql-tools/url-loader",
"version": "5.0.1-alpha-d3da75f.0",
"version": "5.0.1-alpha-d4d928c.0",
"description": "A set of utils for faster development of GraphQL tools",

@@ -9,4 +9,4 @@ "peerDependencies": {

"dependencies": {
"@graphql-tools/utils": "5.0.1-alpha-d3da75f.0",
"@graphql-tools/wrap": "5.0.1-alpha-d3da75f.0",
"@graphql-tools/utils": "5.0.1-alpha-d4d928c.0",
"@graphql-tools/wrap": "5.0.1-alpha-d4d928c.0",
"cross-fetch": "3.0.4",

@@ -13,0 +13,0 @@ "tslib": "1.11.1",

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