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

@graphql-tools/graphql-tag-pluck

Package Overview
Dependencies
Maintainers
3
Versions
1133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/graphql-tag-pluck - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2-alpha-20230724181141-6f9a4c07

8

cjs/index.js

@@ -5,9 +5,9 @@ "use strict";

const tslib_1 = require("tslib");
const graphql_1 = require("graphql");
const parser_1 = require("@babel/parser");
const traverse_1 = tslib_1.__importDefault(require("@babel/traverse"));
const config_js_1 = tslib_1.__importDefault(require("./config.js"));
const parser_1 = require("@babel/parser");
const extname_js_1 = require("./libs/extname.js");
const utils_js_1 = require("./utils.js");
const visitor_js_1 = tslib_1.__importDefault(require("./visitor.js"));
const traverse_1 = tslib_1.__importDefault(require("@babel/traverse"));
const utils_js_1 = require("./utils.js");
const graphql_1 = require("graphql");
function getDefault(module) {

@@ -14,0 +14,0 @@ return module.default || module;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_js_1 = require("./utils.js");
const types_1 = require("@babel/types");
const utils_1 = require("@graphql-tools/utils");
const utils_js_1 = require("./utils.js");
const defaults = {

@@ -148,3 +148,3 @@ modules: [

function isValidIdentifier(name) {
return definedIdentifierNames.some(id => id === name) || globalGqlIdentifierName.includes(name);
return (definedIdentifierNames.some(id => id === name) || globalGqlIdentifierName.includes(name));
}

@@ -151,0 +151,0 @@ const pluckStringFromFile = ({ start, end }) => {

@@ -0,8 +1,8 @@

import { Source } from 'graphql';
import { parse } from '@babel/parser';
import traversePkg from '@babel/traverse';
import generateConfig from './config.js';
import { parse } from '@babel/parser';
import { getExtNameFromFilePath } from './libs/extname.js';
import { freeText } from './utils.js';
import createVisitor from './visitor.js';
import traversePkg from '@babel/traverse';
import { freeText } from './utils.js';
import { Source } from 'graphql';
function getDefault(module) {

@@ -9,0 +9,0 @@ return module.default || module;

@@ -0,4 +1,4 @@

import { isIdentifier, isImportDefaultSpecifier, isImportSpecifier, isTemplateLiteral, isTSAsExpression, isTSTypeReference, isVariableDeclarator, } from '@babel/types';
import { asArray } from '@graphql-tools/utils';
import { freeText } from './utils.js';
import { isVariableDeclarator, isIdentifier, isTemplateLiteral, isImportDefaultSpecifier, isImportSpecifier, isTSAsExpression, isTSTypeReference, } from '@babel/types';
import { asArray } from '@graphql-tools/utils';
const defaults = {

@@ -146,3 +146,3 @@ modules: [

function isValidIdentifier(name) {
return definedIdentifierNames.some(id => id === name) || globalGqlIdentifierName.includes(name);
return (definedIdentifierNames.some(id => id === name) || globalGqlIdentifierName.includes(name));
}

@@ -149,0 +149,0 @@ const pluckStringFromFile = ({ start, end }) => {

{
"name": "@graphql-tools/graphql-tag-pluck",
"version": "8.0.1",
"version": "8.0.2-alpha-20230724181141-6f9a4c07",
"description": "Pluck graphql-tag template literals",

@@ -10,6 +10,7 @@ "sideEffects": false,

"dependencies": {
"@babel/core": "^7.22.9",
"@babel/parser": "^7.16.8",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@babel/traverse": "^7.16.8",
"@babel/types": "^7.16.8",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@graphql-tools/utils": "^10.0.0",

@@ -16,0 +17,0 @@ "tslib": "^2.4.0"

@@ -0,3 +1,3 @@

import { ParserOptions } from '@babel/parser';
import { GraphQLTagPluckOptions } from './index.js';
import { ParserOptions } from '@babel/parser';
export default function generateConfig(filePath: string, code: string, _options: GraphQLTagPluckOptions): ParserOptions;

@@ -0,3 +1,3 @@

import { Source } from 'graphql';
import { PluckedContent } from './visitor.js';
import { Source } from 'graphql';
/**

@@ -4,0 +4,0 @@ * Additional options for determining how a file is parsed.

@@ -0,3 +1,3 @@

import { Visitor } from '@babel/traverse';
import { GraphQLTagPluckOptions } from './index.js';
import { Visitor } from '@babel/traverse';
export type PluckedContent = {

@@ -4,0 +4,0 @@ content: string;

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