@hoyrynpm/bsm-kit 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoyrynpm/bsm-kit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Shared pure helpers for Höyry Block Styles Manager and block plugins",
5
5
  "license": "GPL-2.0-or-later",
6
6
  "author": "Digi-ja mainostoimisto Höyry",
package/src/config.js CHANGED
@@ -71,9 +71,12 @@ export function getViewportConfig() {
71
71
  const allowed = Array.isArray( viewports.allowed )
72
72
  ? viewports.allowed.map( Number ).filter( ( n ) => Number.isFinite( n ) )
73
73
  : [ ...DEFAULT_ALLOWED ];
74
+ const rawExceptions = viewports.exceptions;
74
75
  const exceptions =
75
- viewports.exceptions && typeof viewports.exceptions === 'object'
76
- ? { ...viewports.exceptions }
76
+ rawExceptions &&
77
+ typeof rawExceptions === 'object' &&
78
+ ! Array.isArray( rawExceptions )
79
+ ? { ...rawExceptions }
77
80
  : {};
78
81
  return {
79
82
  mobileMax: