Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apollo-link-scalars

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-scalars - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

20

build/main/lib/fragment-utils.js

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

exports.fragmentMapFrom = exports.replaceFragmentsOn = void 0;
const lodash_every_1 = __importDefault(require("lodash.every"));
const lodash_flatmap_1 = __importDefault(require("lodash.flatmap"));
const lodash_frompairs_1 = __importDefault(require("lodash.frompairs"));
const lodash_uniqby_1 = __importDefault(require("lodash.uniqby"));
const every_1 = __importDefault(require("lodash/every"));
const flatMap_1 = __importDefault(require("lodash/flatMap"));
const fromPairs_1 = __importDefault(require("lodash/fromPairs"));
const uniqBy_1 = __importDefault(require("lodash/uniqBy"));
const node_types_1 = require("./node-types");
function uniqueNodes(nodes) {
return (0, lodash_uniqby_1.default)(nodes, (fn) => JSON.stringify(fieldNodeKeyTuple(fn)));
return (0, uniqBy_1.default)(nodes, (fn) => JSON.stringify(fieldNodeKeyTuple(fn)));
}

@@ -44,3 +44,3 @@ function fieldNodeKeyTuple(fn) {

function getCleanedSelections(selections, fragmentMap) {
return (0, lodash_flatmap_1.default)(selections, (sn) => {
return (0, flatMap_1.default)(selections, (sn) => {
if ((0, node_types_1.isFieldNode)(sn))

@@ -68,3 +68,3 @@ return [sn];

const cleaned = getCleanedSelections(selections, fragmentMap);
if (!(0, lodash_every_1.default)(cleaned, node_types_1.isFieldNode)) {
if (!(0, every_1.default)(cleaned, node_types_1.isFieldNode)) {
return replaceFragmentsOn(cleaned, fragmentMap);

@@ -78,4 +78,4 @@ }

function fragmentMapFrom(fragments) {
const initialMap = (0, lodash_frompairs_1.default)(fragments.map((f) => [f.name.value, f]));
return (0, lodash_frompairs_1.default)(fragments.map((f) => {
const initialMap = (0, fromPairs_1.default)(fragments.map((f) => [f.name.value, f]));
return (0, fromPairs_1.default)(fragments.map((f) => {
const fieldNodes = replaceFragmentsOn(f.selectionSet.selections, initialMap);

@@ -86,2 +86,2 @@ return [f.name.value, fieldNodes];

exports.fragmentMapFrom = fragmentMapFrom;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJhZ21lbnQtdXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2ZyYWdtZW50LXV0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EsZ0VBQWlDO0FBQ2pDLG9FQUFxQztBQUNyQyx3RUFBeUM7QUFDekMsa0VBQW1DO0FBR25DLDZDQUFtRjtBQUVuRixTQUFTLFdBQVcsQ0FBc0IsS0FBVTtJQUNsRCxPQUFPLElBQUEsdUJBQU0sRUFBQyxLQUFLLEVBQUUsQ0FBQyxFQUFFLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsaUJBQWlCLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQ3RFLENBQUM7QUFLRCxTQUFTLGlCQUFpQixDQUFDLEVBQWE7O0lBQ3RDLE1BQU0sS0FBSyxHQUFHLE1BQUEsRUFBRSxDQUFDLEtBQUssMENBQUUsS0FBSyxDQUFDO0lBQzlCLE1BQU0sSUFBSSxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDO0lBQzNCLE1BQU0sVUFBVSxHQUFHLE1BQUEsTUFBQSxFQUFFLENBQUMsWUFBWSwwQ0FBRSxVQUFVLG1DQUFJLEVBQUUsQ0FBQztJQUNyRCxNQUFNLGFBQWEsR0FBRyxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQ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FDcEIsQ0FBQztBQWJELGdEQWFDO0FBRUQsU0FBZ0IsZUFBZSxDQUFDLFNBQW1DO0lBQ2pFLE1BQU0sVUFBVSxHQUFHLElBQUEsbUJBQVMsRUFBQyxTQUFTLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUN0RSxPQUFPLElBQUEsbUJBQVMsRUFDZCxTQUFTLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUU7UUFDbEIsTUFBTSxVQUFVLEdBQUcsa0JBQWtCLENBQUMsQ0FBQyxDQUFDLFlBQVksQ0FBQyxVQUFVLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFDN0UsT0FBTyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0lBQ3BDLENBQUMsQ0FBQyxDQUNILENBQUM7QUFDSixDQUFDO0FBUkQsMENBUUMifQ==

@@ -7,4 +7,4 @@ "use strict";

exports.isNone = void 0;
const lodash_isnull_1 = __importDefault(require("lodash.isnull"));
const lodash_isundefined_1 = __importDefault(require("lodash.isundefined"));
const isNull_1 = __importDefault(require("lodash/isNull"));
const isUndefined_1 = __importDefault(require("lodash/isUndefined"));
/**

@@ -15,5 +15,5 @@ * @hidden

function isNone(x) {
return (0, lodash_isundefined_1.default)(x) || (0, lodash_isnull_1.default)(x);
return (0, isUndefined_1.default)(x) || (0, isNull_1.default)(x);
}
exports.isNone = isNone;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtbm9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvaXMtbm9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxrRUFBbUM7QUFDbkMsNEVBQTZDO0FBRTdDOzs7R0FHRztBQUNILFNBQWdCLE1BQU0sQ0FBQyxDQUFNO0lBQzNCLE9BQU8sSUFBQSw0QkFBVyxFQUFDLENBQUMsQ0FBQyxJQUFJLElBQUEsdUJBQU0sRUFBQyxDQUFDLENBQUMsQ0FBQztBQUNyQyxDQUFDO0FBRkQsd0JBRUMifQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXMtbm9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvaXMtbm9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyREFBbUM7QUFDbkMscUVBQTZDO0FBRTdDOzs7R0FHRztBQUNILFNBQWdCLE1BQU0sQ0FBQyxDQUFNO0lBQzNCLE9BQU8sSUFBQSxxQkFBVyxFQUFDLENBQUMsQ0FBQyxJQUFJLElBQUEsZ0JBQU0sRUFBQyxDQUFDLENBQUMsQ0FBQztBQUNyQyxDQUFDO0FBRkQsd0JBRUMifQ==

@@ -6,3 +6,3 @@ import { ApolloLink, FetchResult, NextLink, Observable, Operation } from "@apollo/client/core";

import { Serializer } from "./serializer";
declare type ScalarApolloLinkParams = {
type ScalarApolloLinkParams = {
schema: GraphQLSchema;

@@ -9,0 +9,0 @@ typesMap?: FunctionsMap;

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

const GraphQLError_1 = require("graphql/error/GraphQLError");
const lodash_pickby_1 = __importDefault(require("lodash.pickby"));
const pickBy_1 = __importDefault(require("lodash/pickBy"));
const default_null_functions_1 = __importDefault(require("./default-null-functions"));

@@ -25,3 +25,3 @@ const map_if_array_1 = require("./map-if-array");

this.nullFunctions = pars.nullFunctions || default_null_functions_1.default;
const leafTypesMap = (0, lodash_pickby_1.default)(this.schema.getTypeMap(), graphql_1.isLeafType);
const leafTypesMap = (0, pickBy_1.default)(this.schema.getTypeMap(), graphql_1.isLeafType);
this.functionsMap = Object.assign(Object.assign({}, leafTypesMap), this.typesMap);

@@ -105,2 +105,2 @@ this.serializer = new serializer_1.Serializer(this.schema, this.functionsMap, this.removeTypenameFromInputs, this.nullFunctions);

exports.withScalars = withScalars;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGluay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvbGluay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSw4Q0FBK0Y7QUFDL0YscUNBQTBGO0FBQzFGLDZEQUEwRDtBQUMxRCxrRUFBbUM7QUFJbkMsc0ZBQTREO0FBQzVELGlEQUE0QztBQUM1Qyw2Q0FBNEY7QUFDNUYsNkNBQTBDO0FBQzFDLGlEQUE2QztBQVU3QyxNQUFhLGdCQUFpQixTQUFRLGlCQUFVO0lBUzlDLFlBQVksSUFBNEI7UUFDdEMsS0FBSyxFQUFFLENBQUM7UUFDUixJQUFJLENBQUMsTUFBTSxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUM7UUFDMUIsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLENBQUMsUUFBUSxJQUFJLEVBQUUsQ0FBQztRQUNwQyxJQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQyxhQUFhLElBQUksS0FBSyxDQUFDO1FBQ2pELElBQUksQ0FBQyx3QkFBd0IsR0FBRyxJQUFJLENBQUMsd0JBQXdCLElBQUksS0FBSyxDQUFDO1FBQ3ZFLElBQUksQ0FBQyxhQUFhLEdBQUcsSUFBSSxDQUFDLGFBQWEsSUFBSSxnQ0FBb0IsQ0FBQztRQUVoRSxNQUFNLFlBQVksR0FBRyxJQUFBLHVCQUFNLEVBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxVQUFVLEVBQUUsRUFBRSx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LENBQUMsQ0FBQyxFQUFFLFFBQVEsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO1NBQ25FO1FBRUQsT0FBTyxJQUFJLENBQUMsY0FBYyxDQUFDLEtBQUssRUFBRSxRQUFRLENBQUMsQ0FBQztJQUM5QyxDQUFDO0lBRVMsY0FBYyxDQUFDLEtBQVUsRUFBRSxRQUF1QjtRQUMxRCxNQUFNLFFBQVEsR0FBRyxRQUFRLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztRQUNyQyxNQUFNLFVBQVUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUVqRCxPQUFPLFVBQVUsSUFBSSxJQUFBLHFCQUFXLEVBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsU0FBUyxDQUFDLEtBQUssRUFBRSxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDO0lBQ3RHLENBQUM7Q0FDRjtBQWxHRCw0Q0FrR0M7QUFFTSxNQUFNLFdBQVcsR0FBRyxDQUFDLElBQTRCLEVBQWMsRUFBRTtJQUN0RSxPQUFPLElBQUksZ0JBQWdCLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDcEMsQ0FBQyxDQUFDO0FBRlcsUUFBQSxXQUFXLGVBRXRCIn0=
import { DefinitionNode, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, InlineFragmentNode, ListTypeNode, NamedTypeNode, NonNullTypeNode, OperationDefinitionNode, SelectionNode, SelectionSetNode, TypeNode } from "graphql";
import { MutOrRO } from "../types/mut-or-ro";
declare type ReducedSelectionSetNode = Omit<SelectionSetNode, "selections"> & {
type ReducedSelectionSetNode = Omit<SelectionSetNode, "selections"> & {
selections: MutOrRO<ReducedFieldNode[]>;
};
export declare type ReducedFieldNode = Omit<FieldNode, "selectionSet"> & {
export type ReducedFieldNode = Omit<FieldNode, "selectionSet"> & {
selectionSet?: ReducedSelectionSetNode;
};
export declare type ReducedOperationDefinitionNode = Omit<OperationDefinitionNode, "selectionSet"> & {
export type ReducedOperationDefinitionNode = Omit<OperationDefinitionNode, "selectionSet"> & {
readonly selectionSet: ReducedSelectionSetNode;

@@ -11,0 +11,0 @@ };

@@ -6,3 +6,3 @@ import { GraphQLEnumType, GraphQLFieldMap, GraphQLInputFieldMap, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, GraphQLType, GraphQLUnionType } from "graphql";

import { ReducedFieldNode } from "./node-types";
declare type Data = {
type Data = {
[key: string]: any;

@@ -9,0 +9,0 @@ };

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

const graphql_1 = require("graphql");
const lodash_reduce_1 = __importDefault(require("lodash.reduce"));
const reduce_1 = __importDefault(require("lodash/reduce"));
const is_none_1 = require("./is-none");

@@ -24,3 +24,3 @@ function ensureNullable(type) {

const fn = (d, fieldNode) => this.treatSelection(d, fieldMap, fieldNode);
return (0, lodash_reduce_1.default)(selections, fn, data);
return (0, reduce_1.default)(selections, fn, data);
}

@@ -96,2 +96,2 @@ treatSelection(data, fieldMap, fieldNode) {

exports.Parser = Parser;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9wYXJzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEscUNBb0JpQjtBQUNqQixrRUFBbUM7QUFJbkMsdUNBQW1DO0FBS25DLFNBQVMsY0FBYyxDQUFDLElBQWlCO0lBQ3ZDLE9BQU8sSUFBQSx1QkFBYSxFQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7QUFDbEQsQ0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DLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDcEYsQ0FBQztDQUNGO0FBbEhELHdCQWtIQyJ9

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

const graphql_1 = require("graphql");
const lodash_has_1 = __importDefault(require("lodash.has"));
const lodash_mapvalues_1 = __importDefault(require("lodash.mapvalues"));
const lodash_omit_1 = __importDefault(require("lodash.omit"));
const has_1 = __importDefault(require("lodash/has"));
const mapValues_1 = __importDefault(require("lodash/mapValues"));
const omit_1 = __importDefault(require("lodash/omit"));
const is_none_1 = require("./is-none");

@@ -49,5 +49,5 @@ const map_if_array_1 = require("./map-if-array");

serializeInputObject(givenValue, type) {
const value = this.removeTypenameFromInputs && (0, lodash_has_1.default)(givenValue, "__typename") ? (0, lodash_omit_1.default)(givenValue, "__typename") : givenValue;
const value = this.removeTypenameFromInputs && (0, has_1.default)(givenValue, "__typename") ? (0, omit_1.default)(givenValue, "__typename") : givenValue;
const fields = type.getFields();
return (0, lodash_mapvalues_1.default)(value, (v, key) => {
return (0, mapValues_1.default)(value, (v, key) => {
const f = fields[key];

@@ -59,2 +59,2 @@ return f ? this.serialize(v, f.type) : v;

exports.Serializer = Serializer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvc2VyaWFsaXplci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxQ0FXaUI7QUFDakIsNERBQTZCO0FBQzdCLHdFQUF5QztBQUN6Qyw4REFBK0I7QUFHL0IsdUNBQW1DO0FBQ25DLGlEQUE0QztBQUU1QyxNQUFhLFVBQVU7SUFDckIsWUFDVyxNQUFxQixFQUNyQixZQUEwQixFQUMxQix3QkFBaUMsRUFDakMsYUFBNEI7UUFINUIsV0FBTSxHQUFOLE1BQU0sQ0FBZTt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sYUFBRyxFQUFDLFVBQVUsRUFBRSxZQUFZLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBQSxjQUFJLEVBQUMsVUFBVSxFQUFFLFlBQVksQ0FBQyxDQUFDLENBQUMsQ0FBQyxVQUFVLENBQUM7UUFFL0csTUFBTSxNQUFNLEdBQUcsSUFBSSxDQUFDLFNBQVMsRUFBRSxDQUFDO1FBQ2hDLE9BQU8sSUFBQSxtQkFBUyxFQUFDLEtBQUssRUFBRSxDQUFDLENBQUMsRUFBRSxHQUFHLEVBQUUsRUFBRTtZQUNqQyxNQUFNLENBQUMsR0FBRyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7WUFDdEIsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQzNDLENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztDQUNGO0FBbkRELGdDQW1EQyJ9

@@ -5,3 +5,3 @@ import { FetchResult, Operation } from "@apollo/client/core";

import { NullFunctions } from "../types/null-functions";
declare type TreatResultParams = {
type TreatResultParams = {
schema: GraphQLSchema;

@@ -8,0 +8,0 @@ functionsMap: FunctionsMap;

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

export declare type Dictionary<T> = Record<string, T>;
export type Dictionary<T> = Record<string, T>;
import { GraphQLLeafType, GraphQLScalarSerializer, GraphQLScalarValueParser } from "graphql";
export declare type ParsingFunctionsObject<TParsed = any, TRaw = any> = {
export type ParsingFunctionsObject<TParsed = any, TRaw = any> = {
serialize: GraphQLScalarSerializer<TRaw>;
parseValue: GraphQLScalarValueParser<TParsed>;
};
export declare type FunctionsMap = {
export type FunctionsMap = {
[key: string]: GraphQLLeafType | ParsingFunctionsObject;
};

@@ -5,2 +5,2 @@ /**

*/
export declare type MutOrRO<T> = T | Readonly<T>;
export type MutOrRO<T> = T | Readonly<T>;

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

export declare type NullFunctions = {
export type NullFunctions = {
serialize(input: any): any | null;
parseValue(raw: any | null): any;
};

@@ -12,6 +12,6 @@ var __rest = (this && this.__rest) || function (s, e) {

};
import every from "lodash.every";
import flatMap from "lodash.flatmap";
import fromPairs from "lodash.frompairs";
import uniqBy from "lodash.uniqby";
import every from "lodash/every";
import flatMap from "lodash/flatMap";
import fromPairs from "lodash/fromPairs";
import uniqBy from "lodash/uniqBy";
import { isFieldNode, isInlineFragmentNode } from "./node-types";

@@ -18,0 +18,0 @@ function uniqueNodes(nodes) {

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

import isNull from "lodash.isnull";
import isUndefined from "lodash.isundefined";
import isNull from "lodash/isNull";
import isUndefined from "lodash/isUndefined";
/**

@@ -4,0 +4,0 @@ * @hidden

@@ -6,3 +6,3 @@ import { ApolloLink, FetchResult, NextLink, Observable, Operation } from "@apollo/client/core";

import { Serializer } from "./serializer";
declare type ScalarApolloLinkParams = {
type ScalarApolloLinkParams = {
schema: GraphQLSchema;

@@ -9,0 +9,0 @@ typesMap?: FunctionsMap;

import { ApolloLink, Observable } from "@apollo/client/core";
import { isInputType, isLeafType } from "graphql";
import { GraphQLError } from "graphql/error/GraphQLError";
import pickBy from "lodash.pickby";
import pickBy from "lodash/pickBy";
import defaultNullFunctions from "./default-null-functions";

@@ -6,0 +6,0 @@ import { mapIfArray } from "./map-if-array";

import { DefinitionNode, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, InlineFragmentNode, ListTypeNode, NamedTypeNode, NonNullTypeNode, OperationDefinitionNode, SelectionNode, SelectionSetNode, TypeNode } from "graphql";
import { MutOrRO } from "../types/mut-or-ro";
declare type ReducedSelectionSetNode = Omit<SelectionSetNode, "selections"> & {
type ReducedSelectionSetNode = Omit<SelectionSetNode, "selections"> & {
selections: MutOrRO<ReducedFieldNode[]>;
};
export declare type ReducedFieldNode = Omit<FieldNode, "selectionSet"> & {
export type ReducedFieldNode = Omit<FieldNode, "selectionSet"> & {
selectionSet?: ReducedSelectionSetNode;
};
export declare type ReducedOperationDefinitionNode = Omit<OperationDefinitionNode, "selectionSet"> & {
export type ReducedOperationDefinitionNode = Omit<OperationDefinitionNode, "selectionSet"> & {
readonly selectionSet: ReducedSelectionSetNode;

@@ -11,0 +11,0 @@ };

@@ -6,3 +6,3 @@ import { GraphQLEnumType, GraphQLFieldMap, GraphQLInputFieldMap, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLObjectType, GraphQLScalarType, GraphQLSchema, GraphQLType, GraphQLUnionType } from "graphql";

import { ReducedFieldNode } from "./node-types";
declare type Data = {
type Data = {
[key: string]: any;

@@ -9,0 +9,0 @@ };

import { GraphQLError, isEnumType, isInputObjectType, isListType, isNonNullType, isObjectType, isScalarType, } from "graphql";
import reduce from "lodash.reduce";
import reduce from "lodash/reduce";
import { isNone } from "./is-none";

@@ -4,0 +4,0 @@ function ensureNullable(type) {

import { getNullableType, isEnumType, isListType, isNonNullType, isScalarType, } from "graphql";
import has from "lodash.has";
import mapValues from "lodash.mapvalues";
import omit from "lodash.omit";
import has from "lodash/has";
import mapValues from "lodash/mapValues";
import omit from "lodash/omit";
import { isNone } from "./is-none";

@@ -6,0 +6,0 @@ import { mapIfArray } from "./map-if-array";

@@ -5,3 +5,3 @@ import { FetchResult, Operation } from "@apollo/client/core";

import { NullFunctions } from "../types/null-functions";
declare type TreatResultParams = {
type TreatResultParams = {
schema: GraphQLSchema;

@@ -8,0 +8,0 @@ functionsMap: FunctionsMap;

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

export declare type Dictionary<T> = Record<string, T>;
export type Dictionary<T> = Record<string, T>;
import { GraphQLLeafType, GraphQLScalarSerializer, GraphQLScalarValueParser } from "graphql";
export declare type ParsingFunctionsObject<TParsed = any, TRaw = any> = {
export type ParsingFunctionsObject<TParsed = any, TRaw = any> = {
serialize: GraphQLScalarSerializer<TRaw>;
parseValue: GraphQLScalarValueParser<TParsed>;
};
export declare type FunctionsMap = {
export type FunctionsMap = {
[key: string]: GraphQLLeafType | ParsingFunctionsObject;
};

@@ -5,2 +5,2 @@ /**

*/
export declare type MutOrRO<T> = T | Readonly<T>;
export type MutOrRO<T> = T | Readonly<T>;

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

export declare type NullFunctions = {
export type NullFunctions = {
serialize(input: any): any | null;
parseValue(raw: any | null): any;
};

@@ -5,2 +5,10 @@ # Changelog

### [4.0.2](https://github.com/eturino/apollo-link-scalars/compare/v4.0.1...v4.0.2) (2023-03-13)
### Bug Fixes
* **deps:** bump ansi-regex from 3.0.0 to 3.0.1 ([#634](https://github.com/eturino/apollo-link-scalars/issues/634)) ([cdf7997](https://github.com/eturino/apollo-link-scalars/commit/cdf79970ed2e589ec3859fad5c44e5931d2501b2))
* **deps:** bump async from 2.6.3 to 2.6.4 ([#653](https://github.com/eturino/apollo-link-scalars/issues/653)) ([556c401](https://github.com/eturino/apollo-link-scalars/commit/556c40173aef6381eec3e9a8889681615740e4d7))
### [4.0.1](https://github.com/eturino/apollo-link-scalars/compare/v4.0.0...v4.0.1) (2022-02-03)

@@ -7,0 +15,0 @@

{
"name": "apollo-link-scalars",
"version": "4.0.1",
"version": "4.0.2",
"author": "Eduardo Turiño <eturino@eturino.com>",

@@ -63,18 +63,4 @@ "description": "custom apollo link to allow to parse custom scalars",

"dependencies": {
"lodash.clonedeep": "^4.5.0",
"lodash.every": "^4.6.0",
"lodash.flatmap": "^4.5.0",
"lodash.frompairs": "^4.0.1",
"lodash.has": "^4.5.2",
"lodash.isnull": "^3.0.0",
"lodash.isnumber": "^3.0.3",
"lodash.isobject": "^3.0.2",
"lodash.isstring": "^4.0.1",
"lodash.isundefined": "^3.0.1",
"lodash.mapvalues": "^4.6.0",
"lodash.omit": "^4.5.0",
"lodash.pickby": "^4.6.0",
"lodash.reduce": "^4.6.0",
"lodash.uniqby": "^4.7.0",
"zen-observable-ts": "^1.0.0"
"lodash": "^4.17.21",
"zen-observable-ts": "^1.1.0"
},

@@ -86,51 +72,32 @@ "peerDependencies": {

"devDependencies": {
"@bitjson/npm-scripts-info": "^1.0.0",
"@commitlint/cli": "^16.0.0",
"@commitlint/config-conventional": "^16.0.0",
"@graphql-tools/schema": "^8.0.0",
"@types/inquirer": "^8.1.1",
"@types/jest": "^27.0.0",
"@types/lodash.clonedeep": "^4.5.6",
"@types/lodash.every": "^4.6.6",
"@types/lodash.flatmap": "^4.5.6",
"@types/lodash.frompairs": "^4.0.6",
"@types/lodash.has": "^4.5.6",
"@types/lodash.isnull": "^3.0.6",
"@types/lodash.isnumber": "^3.0.6",
"@types/lodash.isobject": "^3.0.6",
"@types/lodash.isstring": "^4.0.6",
"@types/lodash.isundefined": "^3.0.6",
"@types/lodash.mapvalues": "^4.6.6",
"@types/lodash.omit": "^4.5.6",
"@types/lodash.pickby": "^4.6.6",
"@types/lodash.reduce": "^4.6.6",
"@types/lodash.uniqby": "^4.7.6",
"@types/react": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^5.8.0",
"@typescript-eslint/parser": "^5.8.0",
"cz-conventional-changelog": "^3.1.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.23.4",
"gh-pages": "^3.1.0",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@graphql-tools/schema": "^9.0.17",
"@types/jest": "^29.4.0",
"@types/lodash": "^4.14.191",
"@types/react": "^18.0.28",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"gh-pages": "^5.0.0",
"github-release-from-changelog": "^2.1.1",
"husky": "^7.0.1",
"inquirer": "^8.0.0",
"husky": "^8.0.3",
"install-peers-cli": "^2.2.0",
"jest": "^27.0.0",
"lint-staged": "^12.0.2",
"jest": "^29.5.0",
"lint-staged": "^13.2.0",
"npm-run-all": "^4.1.5",
"open-cli": "^7.0.0",
"prettier": "^2.0.4",
"prettier-plugin-organize-imports": "^2.1.0",
"replace-in-file": "^6.1.0",
"standard-version": "^9.0.0",
"strip-json-comments": "^4.0.0",
"open-cli": "^7.1.0",
"prettier": "^2.8.4",
"prettier-plugin-organize-imports": "^3.2.2",
"standard-version": "^9.5.0",
"trash-cli": "^5.0.0",
"ts-jest": "^27.0.1",
"ts-loader": "^9.2.0",
"ts-node": "^10.0.0",
"typedoc": "^0.22.0",
"typescript": "^4.0.2"
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"typedoc": "^0.23.26",
"typescript": "^4.9.5"
},

@@ -137,0 +104,0 @@ "config": {

# `apollo-link-scalars`
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

@@ -52,2 +52,4 @@

**UPDATE**: [@woltob](https://github.com/woltob) has a proposal related to this: https://github.com/eturino/apollo-link-scalars/issues/760
## Installation

@@ -76,3 +78,3 @@

CustomScalar: {
serialize: (parsed: unknown): string | null => (parsed instanceof CustomScalar : parsed.toString() : null),
serialize: (parsed: unknown): string | null => (parsed instanceof CustomScalar ? parsed.toString() : null),
parseValue: (raw: unknown): CustomScalar | null => {

@@ -348,15 +350,19 @@ if (!raw) return null; // if for some reason we want to treat empty string as null, for example

<table>
<tr>
<td align="center"><a href="http://eturino.com"><img src="https://avatars3.githubusercontent.com/u/1095800?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Eduardo Turiño</b></sub></a><br /><a href="#ideas-eturino" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-eturino" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=eturino" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=eturino" title="Code">💻</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=eturino" title="Documentation">📖</a></td>
<td align="center"><a href="http://gsamokovarov.com"><img src="https://avatars0.githubusercontent.com/u/604618?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Genadi Samokovarov</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Agsamokovarov" title="Bug reports">🐛</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=gsamokovarov" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=gsamokovarov" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/brabeji"><img src="https://avatars3.githubusercontent.com/u/2237954?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jiří Brabec</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/commits?author=brabeji" title="Documentation">📖</a> <a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Abrabeji" title="Bug reports">🐛</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=brabeji" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=brabeji" title="Code">💻</a> <a href="#ideas-brabeji" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://twitter.com/JakubPetriska"><img src="https://avatars3.githubusercontent.com/u/5531859?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jakub Petriska</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3AJakubPetriska" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/dobrinov"><img src="https://avatars2.githubusercontent.com/u/996877?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Deyan Dobrinov</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Adobrinov" title="Bug reports">🐛</a> <a href="#ideas-dobrinov" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/nagirrab"><img src="https://avatars.githubusercontent.com/u/1761890?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hugh Barrigan</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/commits?author=nagirrab" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=nagirrab" title="Code">💻</a> <a href="#ideas-nagirrab" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/UselessPickles"><img src="https://avatars.githubusercontent.com/u/22800095?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeff Lau</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/commits?author=UselessPickles" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="http://floriancargoet.com"><img src="https://avatars.githubusercontent.com/u/110431?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Florian Cargoët</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Afloriancargoet" title="Bug reports">🐛</a></td>
<td align="center"><a href="http://jaffparker.dev"><img src="https://avatars.githubusercontent.com/u/10477757?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jaff Parker</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3AJaffParker" title="Bug reports">🐛</a> <a href="#infra-JaffParker" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
<tbody>
<tr>
<td align="center" valign="top" width="14.28%"><a href="http://eturino.com"><img src="https://avatars3.githubusercontent.com/u/1095800?v=4?s=100" width="100px;" alt="Eduardo Turiño"/><br /><sub><b>Eduardo Turiño</b></sub></a><br /><a href="#ideas-eturino" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-eturino" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=eturino" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=eturino" title="Code">💻</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=eturino" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://gsamokovarov.com"><img src="https://avatars0.githubusercontent.com/u/604618?v=4?s=100" width="100px;" alt="Genadi Samokovarov"/><br /><sub><b>Genadi Samokovarov</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Agsamokovarov" title="Bug reports">🐛</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=gsamokovarov" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=gsamokovarov" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/brabeji"><img src="https://avatars3.githubusercontent.com/u/2237954?v=4?s=100" width="100px;" alt="Jiří Brabec"/><br /><sub><b>Jiří Brabec</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/commits?author=brabeji" title="Documentation">📖</a> <a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Abrabeji" title="Bug reports">🐛</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=brabeji" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=brabeji" title="Code">💻</a> <a href="#ideas-brabeji" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://twitter.com/JakubPetriska"><img src="https://avatars3.githubusercontent.com/u/5531859?v=4?s=100" width="100px;" alt="Jakub Petriska"/><br /><sub><b>Jakub Petriska</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3AJakubPetriska" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dobrinov"><img src="https://avatars2.githubusercontent.com/u/996877?v=4?s=100" width="100px;" alt="Deyan Dobrinov"/><br /><sub><b>Deyan Dobrinov</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Adobrinov" title="Bug reports">🐛</a> <a href="#ideas-dobrinov" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/nagirrab"><img src="https://avatars.githubusercontent.com/u/1761890?v=4?s=100" width="100px;" alt="Hugh Barrigan"/><br /><sub><b>Hugh Barrigan</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/commits?author=nagirrab" title="Tests">⚠️</a> <a href="https://github.com/eturino/apollo-link-scalars/commits?author=nagirrab" title="Code">💻</a> <a href="#ideas-nagirrab" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/UselessPickles"><img src="https://avatars.githubusercontent.com/u/22800095?v=4?s=100" width="100px;" alt="Jeff Lau"/><br /><sub><b>Jeff Lau</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/commits?author=UselessPickles" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center" valign="top" width="14.28%"><a href="http://floriancargoet.com"><img src="https://avatars.githubusercontent.com/u/110431?v=4?s=100" width="100px;" alt="Florian Cargoët"/><br /><sub><b>Florian Cargoët</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3Afloriancargoet" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://jaffparker.dev"><img src="https://avatars.githubusercontent.com/u/10477757?v=4?s=100" width="100px;" alt="Jaff Parker"/><br /><sub><b>Jaff Parker</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/issues?q=author%3AJaffParker" title="Bug reports">🐛</a> <a href="#infra-JaffParker" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/frec-kenneth"><img src="https://avatars.githubusercontent.com/u/98547003?v=4?s=100" width="100px;" alt="Kenneth"/><br /><sub><b>Kenneth</b></sub></a><br /><a href="https://github.com/eturino/apollo-link-scalars/commits?author=frec-kenneth" title="Documentation">📖</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://jstassen.com"><img src="https://avatars.githubusercontent.com/u/220755?v=4?s=100" width="100px;" alt="Sir.Nathan (Jonathan Stassen)"/><br /><sub><b>Sir.Nathan (Jonathan Stassen)</b></sub></a><br /><a href="#infra-TheBox193" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#platform-TheBox193" title="Packaging/porting to new platform">📦</a></td>
</tr>
</tbody>
</table>

@@ -363,0 +369,0 @@

import { FieldNode, FragmentDefinitionNode, SelectionNode } from "graphql";
import every from "lodash.every";
import flatMap from "lodash.flatmap";
import fromPairs from "lodash.frompairs";
import uniqBy from "lodash.uniqby";
import every from "lodash/every";
import flatMap from "lodash/flatMap";
import fromPairs from "lodash/fromPairs";
import uniqBy from "lodash/uniqBy";
import { Dictionary } from "../types/dictionary";

@@ -7,0 +7,0 @@ import { MutOrRO } from "../types/mut-or-ro";

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

import isNull from "lodash.isnull";
import isUndefined from "lodash.isundefined";
import isNull from "lodash/isNull";
import isUndefined from "lodash/isUndefined";

@@ -4,0 +4,0 @@ /**

import { ApolloLink, FetchResult, NextLink, Observable, Operation } from "@apollo/client/core";
import { GraphQLSchema, isInputType, isLeafType, NamedTypeNode, TypeNode } from "graphql";
import { GraphQLError } from "graphql/error/GraphQLError";
import pickBy from "lodash.pickby";
import pickBy from "lodash/pickBy";
import { Subscription as ZenSubscription } from "zen-observable-ts";

@@ -6,0 +6,0 @@ import { FunctionsMap } from "..";

@@ -22,3 +22,3 @@ import {

} from "graphql";
import reduce from "lodash.reduce";
import reduce from "lodash/reduce";
import { FunctionsMap } from "..";

@@ -25,0 +25,0 @@ import { MutOrRO } from "../types/mut-or-ro";

@@ -13,5 +13,5 @@ import {

} from "graphql";
import has from "lodash.has";
import mapValues from "lodash.mapvalues";
import omit from "lodash.omit";
import has from "lodash/has";
import mapValues from "lodash/mapValues";
import omit from "lodash/omit";
import { FunctionsMap } from "../types/functions-map";

@@ -18,0 +18,0 @@ import { NullFunctions } from "../types/null-functions";

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