Comparing version
{ | ||
"name": "grats", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "bin": "dist/src/cli.js", |
@@ -127,1 +127,5 @@ export declare const ISSUE_URL = "https://github.com/captbaritone/grats/issues"; | ||
export declare function invalidResolverParamType(): string; | ||
export declare function exportedArrowFunctionNotConst(): string; | ||
export declare function exportedFieldVariableMultipleDeclarations(n: number): string; | ||
export declare function fieldVariableNotTopLevelExported(): string; | ||
export declare function fieldVariableIsNotArrowFunction(): string; |
@@ -119,2 +119,6 @@ "use strict"; | ||
exports.invalidResolverParamType = invalidResolverParamType; | ||
exports.exportedArrowFunctionNotConst = exportedArrowFunctionNotConst; | ||
exports.exportedFieldVariableMultipleDeclarations = exportedFieldVariableMultipleDeclarations; | ||
exports.fieldVariableNotTopLevelExported = fieldVariableNotTopLevelExported; | ||
exports.fieldVariableIsNotArrowFunction = fieldVariableIsNotArrowFunction; | ||
var Extractor_1 = require("./Extractor"); | ||
@@ -518,1 +522,13 @@ exports.ISSUE_URL = "https://github.com/captbaritone/grats/issues"; | ||
} | ||
function exportedArrowFunctionNotConst() { | ||
return "Expected `@".concat(Extractor_1.FIELD_TAG, "` arrow function to be declared as `const`."); | ||
} | ||
function exportedFieldVariableMultipleDeclarations(n) { | ||
return "Expected only one declaration when defining a `@".concat(Extractor_1.FIELD_TAG, "`, found ").concat(n, "."); | ||
} | ||
function fieldVariableNotTopLevelExported() { | ||
return "Expected `@".concat(Extractor_1.FIELD_TAG, "` to be an exported top-level declaration. Grats needs to import resolver functions into it's generated schema module, so the resolver function must be exported from the module."); | ||
} | ||
function fieldVariableIsNotArrowFunction() { | ||
return "Expected `@".concat(Extractor_1.FIELD_TAG, "` on variable declaration to be attached to an arrow function."); | ||
} |
{ | ||
"name": "grats", | ||
"version": "0.0.0-main-62054c93", | ||
"version": "0.0.0-main-62334392", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "bin": "dist/src/cli.js", |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
366866
1.06%7531
0.91%0
-100%