@pack/react 3.0.0 → 3.0.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.
@@ -5,15 +5,15 @@ export function registerStorefrontSettingsSchema(settings) {
5
5
  const result = SiteSettingsObjectSchema.safeParse(setting);
6
6
  if (result && !result.success) {
7
7
  const errorParts = [
8
- '\n\x1b[1m\x1b[31m@pack/react Schema Validation Error:\x1b[0m',
9
- '\x1b[31mInvalid storefront settings schema\x1b[0m',
10
- '\n\x1b[33mDetailed Errors:\x1b[0m'
8
+ "\n\x1b[1m\x1b[31m@pack/react Schema Validation Error:\x1b[0m",
9
+ "\x1b[31mInvalid storefront settings schema\x1b[0m",
10
+ "\n\x1b[33mDetailed Errors:\x1b[0m",
11
11
  ];
12
- result.error.issues.forEach(issue => {
13
- errorParts.push(`\x1b[33m- Path:\x1b[0m ${issue.path.join('.')}`);
12
+ result.error.issues.forEach((issue) => {
13
+ errorParts.push(`\x1b[33m- Path:\x1b[0m ${issue.path.join(".")}`);
14
14
  errorParts.push(` \x1b[31m${issue.message}\x1b[0m`);
15
15
  });
16
- console.error(errorParts.join('\n'));
16
+ console.error(errorParts.join("\n"));
17
17
  return;
18
18
  }
19
19
  }
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "3.0.0";
1
+ export const VERSION = "3.0.2";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pack/react",
3
3
  "description": "React",
4
- "version": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "exports": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "engines": {
@@ -21,8 +21,10 @@
21
21
  "files": [
22
22
  "dist"
23
23
  ],
24
+ "dependencies": {
25
+ "@pack/types": "^0.1.2"
26
+ },
24
27
  "devDependencies": {
25
- "@pack/types": "^0.1.0",
26
28
  "@types/react": "^18.2.20",
27
29
  "react": "^18.2.0",
28
30
  "react-dom": "^18.2.0"