react-responsive-tools 2.0.10 → 2.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-responsive-tools",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -26,8 +26,14 @@ const mergeBreakpointConfigs = async () => {
26
26
  try {
27
27
  console.log(`User config file found at: ${userConfigPath}`);
28
28
  const userConfig = await import(userConfigPath);
29
+ console.log(`User horizontal breakpoints: ${JSON.stringify(userConfig.HORIZONTAL_BREAKPOINTS || {}, null, 2)}`);
30
+ console.log(`User vertical breakpoints: ${JSON.stringify(userConfig.VERTICAL_BREAKPOINTS || {}, null, 2)}`);
31
+
29
32
  horizontalBreakpoints = mergeConfigs(defaultHorizontalBreakpoints, userConfig.HORIZONTAL_BREAKPOINTS || {});
30
33
  verticalBreakpoints = mergeConfigs(defaultVerticalBreakpoints, userConfig.VERTICAL_BREAKPOINTS || {});
34
+
35
+ console.log('Merged horizontal breakpoints: ', JSON.stringify(horizontalBreakpoints, null, 2));
36
+ console.log('Merged vertical breakpoints: ', JSON.stringify(verticalBreakpoints, null, 2));
31
37
  console.log('User config loaded and merged successfully.');
32
38
  } catch (error) {
33
39
  console.error('Error loading user config:', error);
@@ -37,7 +43,7 @@ const mergeBreakpointConfigs = async () => {
37
43
  }
38
44
 
39
45
  const mergedConfigContent = `
40
- // breakpoints.config.mjs
46
+ // custom-breakpoints.config.mjs
41
47
  const HORIZONTAL_BREAKPOINTS = ${JSON.stringify(horizontalBreakpoints, null, 2)};
42
48
 
43
49
  const VERTICAL_BREAKPOINTS = ${JSON.stringify(verticalBreakpoints, null, 2)};