@graphitation/supermassive
Advanced tools
Comparing version 1.1.1 to 1.1.2
# Change Log - @graphitation/supermassive | ||
This log was last generated on Wed, 05 Oct 2022 16:48:37 GMT and should not be manually modified. | ||
This log was last generated on Wed, 12 Oct 2022 13:52:27 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## 1.1.2 | ||
Wed, 12 Oct 2022 13:52:27 GMT | ||
### Patches | ||
- Hotfix: codegen subscription fixed (jakubvejr@microsoft.com) | ||
## 1.1.1 | ||
Wed, 05 Oct 2022 16:48:37 GMT | ||
Wed, 05 Oct 2022 16:48:48 GMT | ||
@@ -11,0 +19,0 @@ ### Patches |
@@ -91,3 +91,5 @@ var __create = Object.create; | ||
}; | ||
return import_typescript.factory.createTypeAliasDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier(node.name), void 0, import_typescript.factory.createFunctionTypeNode(void 0, (0, import_utilities.getResolverParameters)(resolverParametersDefinitions), (0, import_utilities.getResolverReturnType)(node.type, parentName, resolverParametersDefinitions))); | ||
return import_typescript.factory.createTypeAliasDeclaration(void 0, [import_typescript.factory.createModifier(import_typescript.default.SyntaxKind.ExportKeyword)], import_typescript.factory.createIdentifier(node.name), parentName === "Subscription" ? [ | ||
import_typescript.factory.createTypeParameterDeclaration(import_typescript.factory.createIdentifier("A"), void 0, import_typescript.factory.createKeywordTypeNode(import_typescript.default.SyntaxKind.UnknownKeyword)) | ||
] : void 0, (0, import_utilities.getResolverReturnType)(node.type, parentName, resolverParametersDefinitions)); | ||
} | ||
@@ -94,0 +96,0 @@ }, |
@@ -14,3 +14,3 @@ import ts from "typescript"; | ||
export declare function getResolverParameters({ parent, args, context, resolveInfo, }: ResolverParametersDefinitions): ts.ParameterDeclaration[]; | ||
export declare function getResolverReturnType(typeNode: ts.TypeNode, parentName: string, resolverParametersDefinitions: ResolverParametersDefinitions): ts.TypeReferenceNode | ts.UnionTypeNode; | ||
export declare function getResolverReturnType(typeNode: ts.TypeNode, parentName: string, resolverParametersDefinitions: ResolverParametersDefinitions): ts.FunctionTypeNode | ts.UnionTypeNode; | ||
export declare function createNonNullableType(node: ts.TypeNode): ts.TypeNode; | ||
@@ -17,0 +17,0 @@ export declare function addModelSuffix(typeName: string): string; |
@@ -72,10 +72,12 @@ var __create = Object.create; | ||
if (parentName !== "Subscription") { | ||
return import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("PromiseOrValue"), [typeNode]); | ||
return import_typescript.factory.createFunctionTypeNode(void 0, getResolverParameters(resolverParametersDefinitions), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("PromiseOrValue"), [typeNode])); | ||
} | ||
return import_typescript.factory.createUnionTypeNode([ | ||
import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("AsyncIterator"), [ | ||
typeNode | ||
]), | ||
import_typescript.factory.createFunctionTypeNode([import_typescript.factory.createTypeParameterDeclaration(import_typescript.factory.createIdentifier("A"))], [], import_typescript.factory.createTypeLiteralNode([ | ||
import_typescript.factory.createPropertySignature(void 0, import_typescript.factory.createIdentifier("subscribe"), void 0, import_typescript.factory.createFunctionTypeNode(void 0, getResolverParameters(resolverParametersDefinitions), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("AsyncIterator"), [import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("A"))]))), | ||
import_typescript.factory.createParenthesizedType(import_typescript.factory.createFunctionTypeNode(void 0, getResolverParameters(resolverParametersDefinitions), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("AsyncIterator"), [typeNode]))), | ||
import_typescript.factory.createTypeLiteralNode([ | ||
import_typescript.factory.createPropertySignature(void 0, import_typescript.factory.createIdentifier("subscribe"), void 0, import_typescript.factory.createFunctionTypeNode(void 0, getResolverParameters(resolverParametersDefinitions), import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("PromiseOrValue"), [ | ||
import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("AsyncIterator"), [ | ||
import_typescript.factory.createTypeReferenceNode(import_typescript.factory.createIdentifier("A")) | ||
]) | ||
]))), | ||
import_typescript.factory.createPropertySignature(void 0, import_typescript.factory.createIdentifier("resolve"), void 0, import_typescript.factory.createFunctionTypeNode(void 0, getResolverParameters(__spreadProps(__spreadValues({}, resolverParametersDefinitions), { | ||
@@ -87,3 +89,3 @@ parent: { | ||
})), typeNode)) | ||
])) | ||
]) | ||
]); | ||
@@ -90,0 +92,0 @@ } |
{ | ||
"name": "@graphitation/supermassive", | ||
"license": "MIT", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"bin": { | ||
@@ -6,0 +6,0 @@ "supermassive": "./bin/supermassive.js" |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
474768
9527