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

@croquiscom/crary-graphql

Package Overview
Dependencies
Maintainers
12
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@croquiscom/crary-graphql - npm Package Compare versions

Comparing version 0.16.2 to 1.0.0

6

lib/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

7

lib/info/getFieldList.js

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

const selections = nodes.reduce((current, source) => {
if (source && source.selectionSet && source.selectionSet.selections) {
if (source.selectionSet) {
current.push(...source.selectionSet.selections);

@@ -45,3 +45,3 @@ }

const selections = nodes.reduce((current, source) => {
if (source && source.selectionSet && source.selectionSet.selections) {
if (source.selectionSet) {
current.push(...source.selectionSet.selections);

@@ -63,3 +63,4 @@ }

}
else if (node.kind === 'FragmentSpread') {
else {
// node.kind === 'FragmentSpread'
const result = getSubFieldNode(info, [info.fragments[node.name.value]], fieldName);

@@ -66,0 +67,0 @@ if (result) {

@@ -15,3 +15,3 @@ "use strict";

const selections = nodes.reduce((current, source) => {
if (source && source.selectionSet && source.selectionSet.selections) {
if (source.selectionSet) {
current.push(...source.selectionSet.selections);

@@ -18,0 +18,0 @@ }

import { GraphQLField, GraphQLFieldResolver, GraphQLResolveInfo } from 'graphql';
import { IGraphQLResolveInfoMethods } from '../info';
declare type ResolverHookFunction = (source: any, args: {
type ResolverHookFunction = (source: any, args: {
[argName: string]: any;

@@ -5,0 +5,0 @@ }, context: any, info: GraphQLResolveInfo & IGraphQLResolveInfoMethods, resolve: GraphQLFieldResolver<any, any>) => any | Promise<any>;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -10,3 +10,3 @@ import { DocumentNode } from 'graphql';

*/
export declare function getOperationNameOrFirstField(query_or_document: string | DocumentNode): string | null;
export declare function getOperationNameOrFirstField(query_or_document: string | DocumentNode | null): string | null;
/**

@@ -20,3 +20,3 @@ * GraphQL query์—์„œ ์ฒซ๋ฒˆ์งธ ํ•„๋“œ๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค.

*/
export declare function getFirstField(query_or_document: string | DocumentNode): string | null;
export declare function getFirstField(query_or_document: string | DocumentNode | null): string | null;
/**

@@ -30,3 +30,3 @@ * GraphQL query์—์„œ operation name์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค.

*/
export declare function getOperationName(query_or_document: string | DocumentNode): string | null;
export declare function getOperationName(query_or_document: string | DocumentNode | null): string | null;
/**

@@ -36,1 +36,2 @@ * GraphQL query์—์„œ operation name์„ ๋ณ€๊ฒฝํ•œ๋‹ค.

export declare function replaceOperationName(document: DocumentNode, operation_name: string): DocumentNode;
export declare function replaceOperationName(document: null, operation_name: string): null;

@@ -83,5 +83,2 @@ "use strict";

exports.getOperationName = getOperationName;
/**
* GraphQL query์—์„œ operation name์„ ๋ณ€๊ฒฝํ•œ๋‹ค.
*/
function replaceOperationName(document, operation_name) {

@@ -88,0 +85,0 @@ if (!document) {

{
"name": "@croquiscom/crary-graphql",
"version": "0.16.2",
"version": "1.0.0",
"description": "Croquis's library - graphql extension",
"engines": {
"node": "^16"
},
"main": "./lib",

@@ -17,27 +20,28 @@ "types": "./lib/index.d.ts",

"type": "git",
"url": "https://github.com/croquiscom/Crary-Node.git"
"url": "https://github.com/croquiscom/crary-node.git"
},
"author": "",
"author": "Sangmin Yoon <simon.yoon@kakaostyle.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/croquiscom/Crary-Node/issues"
"url": "https://github.com/croquiscom/crary-node/issues"
},
"homepage": "https://github.com/croquiscom/Crary-Node",
"homepage": "https://github.com/croquiscom/crary-node",
"dependencies": {
"@graphql-tools/delegate": "^8.4.3",
"@graphql-tools/utils": "^8.6.1",
"graphql": "^16.3.0"
"@graphql-tools/delegate": "^9.0.17",
"@graphql-tools/utils": "^9.1.1",
"graphql": "^16.6.0"
},
"devDependencies": {
"@graphql-tools/stitch": "^8.4.3",
"@types/chai": "^4.3.0",
"@graphql-tools/stitch": "^8.7.29",
"@types/chai": "^4.3.4",
"@types/graphql": "^14.5.0",
"@types/mocha": "^9.1.0",
"chai": "^4.3.6",
"mocha": "^9.2.0",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.11",
"chai": "^4.3.7",
"mocha": "^10.1.0",
"rimraf": "^3.0.2",
"ts-node": "^10.5.0",
"typescript": "^4.5.5"
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
},
"gitHead": "4100fb0f246f09f6b121fffe605189f0752acab6"
"gitHead": "b3ebc5dbd93d1b87278ff51a05d65b24e9712975"
}

@@ -15,2 +15,2 @@ [![npm version](https://badge.fury.io/js/%40croquiscom%2Fcrary-graphql.svg)](https://badge.fury.io/js/%40croquiscom%2Fcrary-graphql)

MIT licenses. See [LICENSE](https://github.com/croquiscom/graphql-scalar-types/blob/master/LICENSE) for more details.
MIT licenses. See [LICENSE](https://github.com/croquiscom/crary-node/blob/master/packages/graphql/LICENSE) for more details.
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"declaration": true,
"experimentalDecorators": true,
"target": "es2021",
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strict": true,
"stripInternal": true,
"declaration": true,
"module": "CommonJS",
"esModuleInterop": true,

@@ -10,0 +12,0 @@ "lib": ["es2020", "dom", "esnext.asynciterable"]

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