@supernovaio/cli 1.0.2 → 1.0.3

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.
@@ -126,8 +126,8 @@ class FigmaTokensDataLoader {
126
126
  if (map.tokenSets && (!(map.tokenSets instanceof Array) || map.tokenSets.length === 0)) {
127
127
  throw new Error('Unable to load mapping file: `mapping`.`tokenSets` must be an Array with at least one entry');
128
128
  }
129
- if (map.tokensTheme && (typeof map.tokensTheme !== 'string' || map.tokensTheme.length === 0)) {
130
- throw new Error('Unable to load mapping file: `mapping`.`tokensTheme` must be a non-empty string');
129
+ if (map.tokensTheme && ((typeof map.tokensTheme !== 'string' && !Array.isArray(map.tokensTheme)) || map.tokensTheme.length === 0)) {
130
+ throw new Error('Unable to load mapping file: `mapping`.`tokensTheme` must be a non-empty string or non-empty array of strings');
131
131
  }
132
132
  if (!map.supernovaBrand || typeof map.supernovaBrand !== 'string' || map.supernovaBrand.length === 0) {
133
133
  throw new Error('Unable to load mapping file: `supernovaBrand` must be a non-empty string');
@@ -360,5 +360,5 @@
360
360
  ]
361
361
  }
362
362
  },
363
- "version": "1.0.2"
363
+ "version": "1.0.3"
364
364
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@supernovaio/cli",
3
3
  "description": "Supernova.io Command Line Interface",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "author": "Supernova.io",
6
6
  "homepage": "https://supernova.io/",
7
7
  "keywords": [