🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@graphql-tools/jest-transform

Package Overview
Dependencies
Maintainers
3
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/jest-transform - npm Package Compare versions

Comparing version

to
2.0.0-rc-20230519104627-f6fea064

3

cjs/index.js

@@ -8,4 +8,3 @@ "use strict";

process(input, _filePath, jestConfig) {
var _a;
const config = ((_a = jestConfig.config.globals) === null || _a === void 0 ? void 0 : _a['graphql']) || {};
const config = jestConfig.config.globals?.['graphql'] || {};
// call directly the webpack loader with a mocked context

@@ -12,0 +11,0 @@ // as the loader leverages `this.cacheable()`

import loader from '@graphql-tools/webpack-loader';
class GraphQLTransformer {
process(input, _filePath, jestConfig) {
var _a;
const config = ((_a = jestConfig.config.globals) === null || _a === void 0 ? void 0 : _a['graphql']) || {};
const config = jestConfig.config.globals?.['graphql'] || {};
// call directly the webpack loader with a mocked context

@@ -7,0 +6,0 @@ // as the loader leverages `this.cacheable()`

{
"name": "@graphql-tools/jest-transform",
"version": "2.0.0-rc-20230519104353-b09f3180",
"version": "2.0.0-rc-20230519104627-f6fea064",
"description": "Jest Plugin to load and parse imported GraphQL files",

@@ -10,3 +10,3 @@ "sideEffects": false,

"dependencies": {
"@graphql-tools/webpack-loader": "7.0.0-rc-20230519104353-b09f3180",
"@graphql-tools/webpack-loader": "7.0.0-rc-20230519104627-f6fea064",
"@jest/transform": "^29.0.0",

@@ -13,0 +13,0 @@ "@jest/types": "^29.0.0",