New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-toolkit/github-loader

Package Overview
Dependencies
Maintainers
3
Versions
690
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-toolkit/github-loader - npm Package Compare versions

Comparing version 0.6.8-alpha-23bbb51.1 to 0.6.8-alpha-2cde5e8.4

4

dist/commonjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const graphql_1 = require("graphql");
const cross_fetch_1 = require("cross-fetch");
// github:owner/name#ref:path/to/file

@@ -26,3 +25,4 @@ function extractData(pointer) {

const { owner, name, ref, path } = extractData(pointer);
const request = await cross_fetch_1.fetch('https://api.github.com/graphql', {
const { fetch } = await Promise.resolve().then(() => require('cross-fetch'));
const request = await fetch('https://api.github.com/graphql', {
method: 'POST',

@@ -29,0 +29,0 @@ headers: {

import { buildClientSchema, printSchema, parse } from 'graphql';
import { fetch } from 'cross-fetch';
// github:owner/name#ref:path/to/file

@@ -24,2 +23,3 @@ function extractData(pointer) {

const { owner, name, ref, path } = extractData(pointer);
const { fetch } = await import('cross-fetch');
const request = await fetch('https://api.github.com/graphql', {

@@ -26,0 +26,0 @@ method: 'POST',

{
"name": "@graphql-toolkit/github-loader",
"version": "0.6.8-alpha-23bbb51.1+23bbb51",
"version": "0.6.8-alpha-2cde5e8.4+2cde5e8",
"description": "A set of utils for faster development of GraphQL tools",

@@ -26,6 +26,6 @@ "repository": "git@github.com:dotansimha/graphql-toolkit.git",

"graphql": "14.5.8",
"typescript": "3.6.4"
"typescript": "3.7.2"
},
"dependencies": {
"@graphql-toolkit/common": "0.6.8-alpha-23bbb51.1+23bbb51",
"@graphql-toolkit/common": "0.6.8-alpha-2cde5e8.4+2cde5e8",
"cross-fetch": "3.0.4"

@@ -36,3 +36,3 @@ },

},
"gitHead": "23bbb512598c95e67ba4476ca410e7049655db02"
"gitHead": "2cde5e8f3f6632320d783b2bebf7b57e7274a778"
}

Sorry, the diff of this file is not supported yet

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