@platformos/platformos-check-common 0.0.18 → 0.0.20
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/CHANGELOG.md +20 -0
- package/dist/checks/index.js +4 -0
- package/dist/checks/index.js.map +1 -1
- package/dist/checks/liquid-html-syntax-error/checks/InvalidAssignSyntax.d.ts +11 -0
- package/dist/checks/liquid-html-syntax-error/checks/InvalidAssignSyntax.js +34 -1
- package/dist/checks/liquid-html-syntax-error/checks/InvalidAssignSyntax.js.map +1 -1
- package/dist/checks/liquid-html-syntax-error/index.js +8 -0
- package/dist/checks/liquid-html-syntax-error/index.js.map +1 -1
- package/dist/checks/missing-content-for-layout/index.d.ts +2 -0
- package/dist/checks/missing-content-for-layout/index.js +89 -0
- package/dist/checks/missing-content-for-layout/index.js.map +1 -0
- package/dist/checks/reserved-variable-name/index.d.ts +2 -0
- package/dist/checks/reserved-variable-name/index.js +82 -0
- package/dist/checks/reserved-variable-name/index.js.map +1 -0
- package/dist/checks/unused-assign/index.js +21 -0
- package/dist/checks/unused-assign/index.js.map +1 -1
- package/dist/checks/utils.d.ts +7 -0
- package/dist/checks/utils.js +8 -0
- package/dist/checks/utils.js.map +1 -1
- package/dist/find-root.js +15 -2
- package/dist/find-root.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/liquid-doc/utils.d.ts +1 -1
- package/dist/to-source-code.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
- package/src/checks/index.ts +4 -0
- package/src/checks/liquid-html-syntax-error/checks/InvalidAssignSyntax.spec.ts +49 -0
- package/src/checks/liquid-html-syntax-error/checks/InvalidAssignSyntax.ts +36 -2
- package/src/checks/liquid-html-syntax-error/checks/InvalidTagSyntax.spec.ts +23 -0
- package/src/checks/liquid-html-syntax-error/index.ts +12 -1
- package/src/checks/missing-content-for-layout/index.spec.ts +84 -0
- package/src/checks/missing-content-for-layout/index.ts +94 -0
- package/src/checks/missing-page/index.spec.ts +94 -0
- package/src/checks/reserved-variable-name/index.spec.ts +142 -0
- package/src/checks/reserved-variable-name/index.ts +85 -0
- package/src/checks/unused-assign/index.spec.ts +61 -0
- package/src/checks/unused-assign/index.ts +19 -1
- package/src/checks/utils.ts +11 -0
- package/src/find-root.ts +17 -2
- package/src/index.ts +2 -0
- package/src/types.ts +19 -0
|
@@ -25,7 +25,7 @@ export declare enum SupportedDocTagTypes {
|
|
|
25
25
|
/**
|
|
26
26
|
* Provides a default completion value for an argument / parameter of a given type.
|
|
27
27
|
*/
|
|
28
|
-
export declare function getDefaultValueForType(type: string | null): "" | "
|
|
28
|
+
export declare function getDefaultValueForType(type: string | null): "''" | "0" | "false" | "";
|
|
29
29
|
/**
|
|
30
30
|
* Casts the value of a LiquidNamedArgument to a string representing the type of the value.
|
|
31
31
|
*/
|
package/dist/to-source-code.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GraphQLDocumentNode, GraphQLSourceCode, JSONNode, JSONSourceCode, LiquidSourceCode, YAMLSourceCode } from './types';
|
|
2
|
-
export declare function toLiquidHTMLAST(source: string):
|
|
2
|
+
export declare function toLiquidHTMLAST(source: string): import("@platformos/liquid-html-parser").DocumentNode | Error;
|
|
3
3
|
export declare function toJSONAST(source: string): JSONNode | Error;
|
|
4
4
|
export declare function toYAMLAST(source: string): JSONNode | Error;
|
|
5
5
|
export declare function toGraphQLAST(source: string): GraphQLDocumentNode | Error;
|