mad-data-parser 0.0.2-beta.6 → 0.0.2-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/mad-data-parser-0.0.2-beta.7.tgz +0 -0
- package/package.json +1 -1
- package/parser/parseJsonPaths.d.ts +2 -2
- package/parser/parseJsonPaths.js +3 -3
- package/utils/graphql-tag/collocated/gql.d.ts +1 -1
- package/utils/graphql-tag/collocated/gql.js +2 -2
- package/utils/graphql-tag/collocated/guards.d.ts +1 -1
- package/utils/graphql-tag/index.d.ts +4 -4
- package/utils/graphql-tag/index.js +4 -4
- package/utils/jsonPath/guards.d.ts +1 -1
- package/utils/jsonPath/index.d.ts +3 -3
- package/utils/jsonPath/index.js +3 -3
- package/utils/jsonPath/visitor.d.ts +2 -2
- package/utils/jsonPath/visitor.js +3 -3
- package/version.txt +1 -1
- package/mad-data-parser-0.0.2-beta.6.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './parser/parseJsonPaths';
|
|
1
|
+
export * from './parser/parseJsonPaths.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './parser/parseJsonPaths';
|
|
1
|
+
export * from './parser/parseJsonPaths.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GraphQLObjectType } from "graphql";
|
|
2
|
-
import * as JSONPath from '../utils/jsonPath';
|
|
3
|
-
import type { CollocatedFragment } from "../utils/graphql-tag";
|
|
2
|
+
import * as JSONPath from '../utils/jsonPath/index.js';
|
|
3
|
+
import type { CollocatedFragment } from "../utils/graphql-tag/index.js";
|
|
4
4
|
export interface FilterCondition extends Pick<CollocatedFragment, 'requiredVars'> {
|
|
5
5
|
filter: string;
|
|
6
6
|
}
|
package/parser/parseJsonPaths.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getNamedType, isObjectType, isUnionType, print } from "graphql";
|
|
2
|
-
import { gql, toGraphqlQueryDefs } from "../utils/graphql-tag";
|
|
3
|
-
import { createFieldNode, createInlineFragment, findFieldNode, isPrimitiveType } from "../utils/graphql";
|
|
2
|
+
import { gql, toGraphqlQueryDefs } from "../utils/graphql-tag/index.js";
|
|
3
|
+
import { createFieldNode, createInlineFragment, findFieldNode, isPrimitiveType } from "../utils/graphql/index.js";
|
|
4
4
|
import { Kind } from "graphql";
|
|
5
|
-
import * as JSONPath from '../utils/jsonPath';
|
|
5
|
+
import * as JSONPath from '../utils/jsonPath/index.js';
|
|
6
6
|
import { memoize1 } from "@graphql-tools/utils";
|
|
7
7
|
const typeNameFieldNode = createFieldNode('__typename');
|
|
8
8
|
export function parseJsonPaths(jsonPaths, rootType, options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TypedDocumentNode } from "@graphql-typed-document-node/core";
|
|
2
2
|
import type { DocumentNode } from "graphql";
|
|
3
|
-
import type { CollocatedFragment, AnyVariables } from "./types";
|
|
3
|
+
import type { CollocatedFragment, AnyVariables } from "./types.js";
|
|
4
4
|
type InterpolDocNode = TypedDocumentNode | DocumentNode;
|
|
5
5
|
type InterpolationsArray = Array<string | InterpolDocNode | CollocatedFragment | Record<string, InterpolDocNode> | string[] | InterpolDocNode[] | CollocatedFragment[]>;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Kind } from "graphql";
|
|
2
2
|
import { gql as originalGql, disableFragmentWarnings } from "graphql-tag";
|
|
3
|
-
import { stringifyDocument } from "./stringifyDocument";
|
|
4
|
-
import { isCollocatedFragment } from "../../../utils/graphql-tag/collocated/guards";
|
|
3
|
+
import { stringifyDocument } from "./stringifyDocument.js";
|
|
4
|
+
import { isCollocatedFragment } from "../../../utils/graphql-tag/collocated/guards.js";
|
|
5
5
|
export function gql(parts, ...interpolations) {
|
|
6
6
|
const callOrigGql = ((literals, ...args) => {
|
|
7
7
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CollocatedFragment, GraphqlDataObject } from "./types";
|
|
1
|
+
import type { CollocatedFragment, GraphqlDataObject } from "./types.js";
|
|
2
2
|
export declare function isGraphqlDataObject(value: unknown): value is GraphqlDataObject;
|
|
3
3
|
export declare function isCollocatedFragment(value: unknown): value is CollocatedFragment;
|
|
4
4
|
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./collocated/gql";
|
|
2
|
-
export * from "./collocated/types";
|
|
3
|
-
export * from "./collocated/guards";
|
|
4
|
-
export * from "./collocated/stringifyDocument";
|
|
1
|
+
export * from "./collocated/gql.js";
|
|
2
|
+
export * from "./collocated/types.js";
|
|
3
|
+
export * from "./collocated/guards.js";
|
|
4
|
+
export * from "./collocated/stringifyDocument.js";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./collocated/gql";
|
|
2
|
-
export * from "./collocated/types";
|
|
3
|
-
export * from "./collocated/guards";
|
|
4
|
-
export * from "./collocated/stringifyDocument";
|
|
1
|
+
export * from "./collocated/gql.js";
|
|
2
|
+
export * from "./collocated/types.js";
|
|
3
|
+
export * from "./collocated/guards.js";
|
|
4
|
+
export * from "./collocated/stringifyDocument.js";
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseNode, IdentifierNode, ASTNode, NumericLiteralNode, FilterExpressionNode, ScriptExpressionNode, StringLiteralNode, WildcardNode, SliceNode, RootNode } from "./types";
|
|
1
|
+
import type { BaseNode, IdentifierNode, ASTNode, NumericLiteralNode, FilterExpressionNode, ScriptExpressionNode, StringLiteralNode, WildcardNode, SliceNode, RootNode } from "./types.js";
|
|
2
2
|
export declare function isAstNode(node: unknown): node is ASTNode;
|
|
3
3
|
export declare function isBaseNode(node: ASTNode): node is BaseNode;
|
|
4
4
|
export declare function isIdentifierNode(node: ASTNode): node is IdentifierNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './guards';
|
|
3
|
-
export * from './visitor';
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './guards.js';
|
|
3
|
+
export * from './visitor.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/utils/jsonPath/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './guards';
|
|
3
|
-
export * from './visitor';
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './guards.js';
|
|
3
|
+
export * from './visitor.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ASTNode, ExpressionType, RootNode, IdentifierNode, NumericLiteralNode, FilterExpressionNode, ScriptExpressionNode, StringLiteralNode, WildcardNode, SliceNode } from "./types";
|
|
2
|
-
import { type SnakeToPascalCase } from "../../utils/ts/helpers";
|
|
1
|
+
import type { ASTNode, ExpressionType, RootNode, IdentifierNode, NumericLiteralNode, FilterExpressionNode, ScriptExpressionNode, StringLiteralNode, WildcardNode, SliceNode } from "./types.js";
|
|
2
|
+
import { type SnakeToPascalCase } from "../../utils/ts/helpers.js";
|
|
3
3
|
export declare const BREAK: unique symbol;
|
|
4
4
|
type Kind = {
|
|
5
5
|
root: RootNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isJSONPath } from "./guards";
|
|
2
|
-
import { isAstNode } from "./guards";
|
|
3
|
-
import { snakeToPascalCase } from "../../utils/ts/helpers";
|
|
1
|
+
import { isJSONPath } from "./guards.js";
|
|
2
|
+
import { isAstNode } from "./guards.js";
|
|
3
|
+
import { snakeToPascalCase } from "../../utils/ts/helpers.js";
|
|
4
4
|
export const BREAK = Symbol('BREAK');
|
|
5
5
|
function doVisit(nodes, visitor) {
|
|
6
6
|
if (isJSONPath(nodes)) {
|
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.2-beta.
|
|
1
|
+
0.0.2-beta.7
|
|
Binary file
|