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

gqty

Package Overview
Dependencies
Maintainers
0
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gqty - npm Package Compare versions

Comparing version 3.3.0-canary-20240907140915.1abad53615bbcfa64e489cc31f581e65c71342b2 to 3.3.0-canary-20240908061037.fde673b4364513f46cc1848d087a71fcec42a070

18

Accessor/resolve.js

@@ -179,7 +179,4 @@ 'use strict';

var _a, _b;
const alias = (_b = (_a = meta$1.context).aliasGenerator) == null ? void 0 : _b.call(
_a,
meta$1.selection.ancestry.map((s) => s.key.toString()).concat(key),
args
);
const keys = meta$1.selection.ancestry.map((s) => s.key.toString()).concat(key);
const alias = (_b = (_a = meta$1.context).aliasGenerator) == null ? void 0 : _b.call(_a, keys, args);
const input = {};

@@ -195,10 +192,7 @@ if (args) {

}
return resolve(
proxy,
meta$1.selection.getChild(
key,
args ? { alias: alias == null ? void 0 : alias.field, input } : {}
),
__type
const child = meta$1.selection.getChild(
key,
args ? { alias: alias == null ? void 0 : alias.field, input } : {}
);
return resolve(proxy, child, __type);
};

@@ -205,0 +199,0 @@ }

@@ -17,3 +17,3 @@ 'use strict';

field: `${s.key}`,
variables: s.input.values
variables: s.inputValues
} : `${s.key}`

@@ -20,0 +20,0 @@ );

{
"name": "gqty",
"version": "3.3.0-canary-20240907140915.1abad53615bbcfa64e489cc31f581e65c71342b2",
"version": "3.3.0-canary-20240908061037.fde673b4364513f46cc1848d087a71fcec42a070",
"description": "The No-GraphQL Client for TypeScript",

@@ -5,0 +5,0 @@ "sideEffects": false,

@@ -23,2 +23,9 @@ export type SelectionOptions = {

get input(): SelectionInput | undefined;
/**
* Stripping alias and type information from inputs, returning a bare mapping
* of variable names and values.
*/
get inputValues(): {
[k: string]: unknown;
} | undefined;
/** Indicates current selection being a inteface/union key. */

@@ -25,0 +32,0 @@ get isUnion(): boolean;

@@ -26,2 +26,12 @@ 'use strict';

}
/**
* Stripping alias and type information from inputs, returning a bare mapping
* of variable names and values.
*/
get inputValues() {
if (!this.input) return;
return Object.fromEntries(
Object.entries(this.input).map(([key, { value }]) => [key, value])
);
}
/** Indicates current selection being a inteface/union key. */

@@ -100,5 +110,5 @@ get isUnion() {

toString() {
var _a, _b;
var _a;
return `Selection(${this.cacheKeys.join(".")}) ${JSON.stringify(
(_b = (_a = this.input) == null ? void 0 : _a.values) != null ? _b : {}
(_a = this.inputValues) != null ? _a : {}
)}`;

@@ -105,0 +115,0 @@ }

@@ -9,6 +9,6 @@ 'use strict';

let srcNode = schema;
for (const { key, input } of ancestry) {
for (const { key, inputValues } of ancestry) {
if (srcNode == null) break;
if (typeof srcNode[key] === "function") {
srcNode = srcNode[key](input == null ? void 0 : input.values);
srcNode = srcNode[key](inputValues);
} else {

@@ -15,0 +15,0 @@ srcNode = srcNode[key];

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

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