@tinacms/schema-tools 0.1.8 → 0.1.9

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/index.es.js CHANGED
@@ -813,10 +813,10 @@ class TinaSchemaValidationError extends Error {
813
813
  }
814
814
  }
815
815
  const validateSchema = ({
816
- config
816
+ schema
817
817
  }) => {
818
818
  try {
819
- TinaCloudSchemaZod.parse(config);
819
+ TinaCloudSchemaZod.parse(schema);
820
820
  } catch (e) {
821
821
  if (e instanceof ZodError) {
822
822
  const errors = parseZodError({ zodError: e });
package/dist/index.js CHANGED
@@ -840,10 +840,10 @@ ${JSON.stringify(val, null, 2)}
840
840
  }
841
841
  }
842
842
  const validateSchema = ({
843
- config
843
+ schema
844
844
  }) => {
845
845
  try {
846
- TinaCloudSchemaZod.parse(config);
846
+ TinaCloudSchemaZod.parse(schema);
847
847
  } catch (e) {
848
848
  if (e instanceof z.ZodError) {
849
849
  const errors = parseZodError({ zodError: e });
@@ -15,6 +15,6 @@ export { validateTinaCloudSchemaConfig } from './tinaCloudSchemaConfig';
15
15
  export declare class TinaSchemaValidationError extends Error {
16
16
  constructor(message: any);
17
17
  }
18
- export declare const validateSchema: ({ config, }: {
19
- config: TinaCloudSchema<false>;
18
+ export declare const validateSchema: ({ schema, }: {
19
+ schema: TinaCloudSchema<false>;
20
20
  }) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "exports": {
@@ -23,7 +23,7 @@
23
23
  ]
24
24
  },
25
25
  "devDependencies": {
26
- "@tinacms/scripts": "0.51.1",
26
+ "@tinacms/scripts": "0.51.3",
27
27
  "@types/yup": "^0.29.10",
28
28
  "jest": "^27.0.6",
29
29
  "react": "17.0.2",