grafast 0.0.1-alpha.1 → 0.0.1-alpha.2
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/dist/envelop.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -7
- package/dist/steps/index.d.ts +1 -2
- package/dist/steps/load.d.ts +55 -0
- package/dist/thereCanBeOnlyOne.d.ts +2 -1
- package/package.json +1 -1
- package/dist/steps/loadMany.d.ts +0 -47
- package/dist/steps/loadOne.d.ts +0 -30
package/dist/envelop.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const { Buffer } = require('node:buffer');
|
|
2
2
|
const { scryptSync, createDecipheriv } = require('node:crypto');
|
|
3
3
|
const pkgName = "grafast";
|
|
4
|
-
const pkgVersion = "0.0.1-alpha.
|
|
4
|
+
const pkgVersion = "0.0.1-alpha.2";
|
|
5
5
|
|
|
6
6
|
const RESET = '\x1b[0m';
|
|
7
7
|
const BOLD_BLACK_ON_RED = '\x1b[40;31;1;7m';
|
|
@@ -28,12 +28,12 @@ if (typeof password !== 'string') {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
const algorithm = "aes-192-cbc";
|
|
31
|
-
const salt = "We wouldn't be able to do so much OSS without sponsorship.
|
|
31
|
+
const salt = "We wouldn't be able to do so much OSS without sponsorship. 7777665428802603";
|
|
32
32
|
const key = scryptSync(password, salt, 24);
|
|
33
|
-
const ivBuffer = Buffer.from("
|
|
33
|
+
const ivBuffer = Buffer.from("UTn5rHSHDtO9iB0dJzh0lg==", "base64");
|
|
34
34
|
const iv = new Uint8Array(ivBuffer.buffer, ivBuffer.byteOffset, ivBuffer.length);
|
|
35
35
|
const decipher = createDecipheriv(algorithm, key, iv);
|
|
36
|
-
const encrypted = "
|
|
36
|
+
const encrypted = "2aRm3sP4vCPzOgKOIAIiv/QLKkxi+7fXZBgq+4rqywsEW/T2dguZ7GEe52aNHdn8CXTSgub7CFoyiE8gOJC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Ofs6EElgl/5+Ntp22qe3TV1Og8Trz9kPWU5alvrAGxW/hjiZ55EKmbM8fNqIOon96w2TDilg2c845Ft5479cFn+M0f99X9cQ2WiEb4uketJYcWfvJF+3N+t5Yngrpu9eBz8xR3xX/iBp8LckF1RKHu1Z23l2maWwlY/JWBDiUUU6RSt018Xct7VlxqClxFp0UitWnAO1Bdn5Lz2QUxHTjduH2LIRnWnLBs2ahzmegd5SuXGjCnbBeh9msywTGyDlKXsy3bXtF9fDeBRzJcDOIAwxL/0dKI5SjjxtRmdVhq5OXVewNchL6tzPanu6kn2fdJVgVMO+ec1ArSRTu/H5jT90g0+WNHMdkz+yhc8Usd9XNlDOlNVnaH4hfZ46Zw/xGMtDSn0CfyHkDVxKJItk5rABvqa0uTh/wl18+KJnYUD3GTEdACUzyIOHlb8b11TgFMu4xD1KIuCyIBJEpjjDCuYyRZMTHBgIzNLVSDwHKWTFrmsA6RR6gob/Nqf3xBWolJXlNxJwW4jaYX8niTTwrnMaVHoCSo/qsxKFkMx4tgEZV8Sf2gic/h9JUuAWupmP9vvaWz/XFMFVY+dhDj/7NAq5et+7TjmGMRoKGFIgYgk44j6F+PMy3Ph0bLY3Q1F0c/+UX5xCpqzuP2B5RY/TjX4EP4AtFptPg0="
|
|
37
37
|
let decrypted;
|
|
38
38
|
try {
|
|
39
39
|
decrypted = decipher.update(encrypted, 'base64', 'utf8') + decipher.final('utf8');
|
package/dist/index.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ import { InputStep } from "./input.js";
|
|
|
13
13
|
import { $$bypassGraphQL, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, EnumValueApplyPlanResolver, EventCallback, EventMapKey, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, FieldArgs, FieldInfo, FieldPlanResolver, GrafastArgumentConfig, GrafastArgumentExtensions, GrafastEnumValueExtensions, GrafastFieldConfig, GrafastFieldConfigArgumentMap, GrafastFieldExtensions, GrafastInputFieldConfig, GrafastInputFieldExtensions, GrafastObjectTypeExtensions, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, GrafastValuesList, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, InputObjectTypeInputPlanResolver, JSONArray, JSONObject, JSONValue, NodeIdCodec, NodeIdHandler, OutputPlanForType, PolymorphicData, PromiseOrDirect, ScalarPlanResolver, StepOptimizeOptions, StepStreamOptions, TypedEventEmitter } from "./interfaces.js";
|
|
14
14
|
import { polymorphicWrap } from "./polymorphic.js";
|
|
15
15
|
import { assertListCapableStep, BaseStep, ExecutableStep, isExecutableStep, isListCapableStep, isModifierStep, isObjectLikeStep, isStreamableStep, ListCapableStep, ModifierStep, ObjectLikeStep, PolymorphicStep, StreamableStep, UnbatchedExecutableStep } from "./step.js";
|
|
16
|
-
import { __InputListStep, __InputObjectStep, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __ValueStep, access, AccessStep, ActualKeyByDesiredKey, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, each, EdgeCapableStep, EdgeStep, error, ErrorStep, filter, FilterPlanMemo, first, FirstStep, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, lambda, LambdaStep, last, LastStep, list, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, loadMany, LoadManyCallback, loadManyCallback,
|
|
16
|
+
import { __InputListStep, __InputObjectStep, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __ValueStep, access, AccessStep, ActualKeyByDesiredKey, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, each, EdgeCapableStep, EdgeStep, error, ErrorStep, filter, FilterPlanMemo, first, FirstStep, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, lambda, LambdaStep, last, LastStep, list, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, LoadedRecordStep, loadMany, LoadManyCallback, loadManyCallback, loadOne, LoadOneCallback, loadOneCallback, LoadOptions, LoadStep, node, NodeStep, object, ObjectPlanMeta, ObjectStep, operationPlan, PageInfoCapableStep, partitionByIndex, proxy, ProxyStep, remapKeys, RemapKeysStep, reverse, reverseArray, ReverseStep, setter, SetterCapableStep, SetterStep, specFromNodeId } from "./steps/index.js";
|
|
17
17
|
import { stringifyPayload } from "./stringifyPayload.js";
|
|
18
18
|
import { stripAnsi } from "./stripAnsi.js";
|
|
19
19
|
import { subscribe } from "./subscribe.js";
|
|
20
20
|
import { arrayOfLength, arraysMatch, getEnumValueConfig, GrafastInputFieldConfigMap, GrafastInputObjectType, GrafastObjectType, inputObjectFieldSpec, InputObjectTypeSpec, isPromiseLike, newGrafastFieldConfigBuilder, newInputObjectTypeBuilder, newObjectTypeBuilder, objectFieldSpec, objectSpec, ObjectTypeFields, ObjectTypeSpec, stepADependsOnStepB, stepAMayDependOnStepB, stepsAreInSamePhase } from "./utils.js";
|
|
21
21
|
export { isAsyncIterable } from "iterall";
|
|
22
|
-
export { __InputListStep, __InputObjectStep, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __ValueStep, $$bypassGraphQL, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, access, AccessStep, ActualKeyByDesiredKey, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, arrayOfLength, arraysMatch, assertListCapableStep, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, BaseStep, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, defer, Deferred, each, EdgeCapableStep, EdgeStep, EnumPlans, EnumValueApplyPlanResolver, error, ErrorStep, EventCallback, EventMapKey, ExecutableStep, execute, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, exportAs, exportAsMany, FieldArgs, FieldInfo, FieldPlanResolver, FieldPlans, filter, FilterPlanMemo, first, FirstStep, getEnumValueConfig, grafast, GrafastArgumentConfig, GrafastArgumentExtensions, GrafastEnumValueExtensions, GrafastError, GrafastFieldConfig, GrafastFieldConfigArgumentMap, GrafastFieldExtensions, grafast as grafastGraphql, grafastSync as grafastGraphqlSync, GrafastInputFieldConfig, GrafastInputFieldConfigMap, GrafastInputFieldExtensions, GrafastInputObjectType, GrafastObjectType, GrafastObjectTypeExtensions, GrafastPlans, grafastPrint, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, grafastSync, GrafastValuesList, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, inputObjectFieldSpec, InputObjectPlans, InputObjectTypeInputPlanResolver, InputObjectTypeSpec, InputStep, InterfaceOrUnionPlans, isDev, isExecutableStep, isGrafastError, isListCapableStep, isModifierStep, isObjectLikeStep, isPromiseLike, isSafeError, isStreamableStep, JSONArray, JSONObject, JSONValue, lambda, LambdaStep, last, LastStep, list, ListCapableStep, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, loadMany, LoadManyCallback, loadManyCallback,
|
|
22
|
+
export { __InputListStep, __InputObjectStep, __InputStaticLeafStep, __ItemStep, __ListTransformStep, __TrackedValueStep, __ValueStep, $$bypassGraphQL, $$eventEmitter, $$extensions, $$idempotent, $$verbatim, access, AccessStep, ActualKeyByDesiredKey, ArgumentApplyPlanResolver, ArgumentInputPlanResolver, arrayOfLength, arraysMatch, assertListCapableStep, BaseEventMap, BaseGraphQLArguments, BaseGraphQLRootValue, BaseGraphQLVariables, BaseStep, connection, ConnectionCapableStep, ConnectionStep, constant, ConstantStep, context, debugPlans, deepEval, DeepEvalStep, defer, Deferred, each, EdgeCapableStep, EdgeStep, EnumPlans, EnumValueApplyPlanResolver, error, ErrorStep, EventCallback, EventMapKey, ExecutableStep, execute, ExecutionEventEmitter, ExecutionEventMap, ExecutionExtra, exportAs, exportAsMany, FieldArgs, FieldInfo, FieldPlanResolver, FieldPlans, filter, FilterPlanMemo, first, FirstStep, getEnumValueConfig, grafast, GrafastArgumentConfig, GrafastArgumentExtensions, GrafastEnumValueExtensions, GrafastError, GrafastFieldConfig, GrafastFieldConfigArgumentMap, GrafastFieldExtensions, grafast as grafastGraphql, grafastSync as grafastGraphqlSync, GrafastInputFieldConfig, GrafastInputFieldConfigMap, GrafastInputFieldExtensions, GrafastInputObjectType, GrafastObjectType, GrafastObjectTypeExtensions, GrafastPlans, grafastPrint, GrafastResultsList, GrafastResultStreamList, GrafastSubscriber, grafastSync, GrafastValuesList, GraphQLItemHandler, graphqlItemHandler, graphqlResolver, GraphQLResolverStep, groupBy, GroupByPlanMemo, InputObjectFieldApplyPlanResolver, InputObjectFieldInputPlanResolver, inputObjectFieldSpec, InputObjectPlans, InputObjectTypeInputPlanResolver, InputObjectTypeSpec, InputStep, InterfaceOrUnionPlans, isDev, isExecutableStep, isGrafastError, isListCapableStep, isModifierStep, isObjectLikeStep, isPromiseLike, isSafeError, isStreamableStep, JSONArray, JSONObject, JSONValue, lambda, LambdaStep, last, LastStep, list, ListCapableStep, listen, ListenStep, ListStep, listTransform, ListTransformItemPlanCallback, ListTransformOptions, ListTransformReduce, LoadedRecordStep, loadMany, LoadManyCallback, loadManyCallback, loadOne, LoadOneCallback, loadOneCallback, LoadOptions, LoadStep, makeGrafastSchema, ModifierStep, newGrafastFieldConfigBuilder, newInputObjectTypeBuilder, newObjectTypeBuilder, node, NodeIdCodec, NodeIdHandler, NodeStep, noop, object, objectFieldSpec, ObjectLikeStep, ObjectPlanMeta, ObjectPlans, objectSpec, ObjectStep, ObjectTypeFields, ObjectTypeSpec, OperationPlan, operationPlan, OutputPlanForType, PageInfoCapableStep, partitionByIndex, PolymorphicData, PolymorphicStep, polymorphicWrap, PrintPlanGraphOptions, PromiseOrDirect, proxy, ProxyStep, remapKeys, RemapKeysStep, reverse, reverseArray, ReverseStep, SafeError, ScalarPlanResolver, ScalarPlans, setter, SetterCapableStep, SetterStep, specFromNodeId, stepADependsOnStepB, stepAMayDependOnStepB, StepOptimizeOptions, stepsAreInSamePhase, StepStreamOptions, StreamableStep, stringifyPayload, stripAnsi, subscribe, TypedEventEmitter, UnbatchedExecutableStep, };
|
|
23
23
|
export { hookArgs } from "./args.js";
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|