@symbo.ls/scratch 2.11.504 → 2.11.514

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
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/scratch",
3
3
  "description": "Φ / CSS framework and methodology.",
4
4
  "author": "symbo.ls",
5
- "version": "2.11.504",
5
+ "version": "2.11.514",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@domql/globals": "latest",
29
29
  "@domql/utils": "^2.5.0",
30
- "@symbo.ls/utils": "^2.11.504",
30
+ "@symbo.ls/utils": "^2.11.512",
31
31
  "color-contrast-checker": "^1.5.0"
32
32
  },
33
- "gitHead": "faa2f47da27dd29f7c6a6637996c9bb016a2d356"
33
+ "gitHead": "7744e475b747954ee8f0a8968651ff0eae11127a"
34
34
  }
package/src/set.js CHANGED
@@ -62,9 +62,13 @@ export const setValue = (FACTORY_NAME, value, key) => {
62
62
  const FACTORY = CONFIG[FACTORY_NAME]
63
63
 
64
64
  if (VALUE_TRANSFORMERS[factoryName]) {
65
- const result = VALUE_TRANSFORMERS[factoryName](value, key)
66
- FACTORY[key] = result
67
- return FACTORY
65
+ try {
66
+ const result = VALUE_TRANSFORMERS[factoryName](value, key)
67
+ FACTORY[key] = result
68
+ return FACTORY
69
+ } catch (error) {
70
+ if (CONFIG.verbose) console.warn('Error setting', factoryName, 'value', value, key, error)
71
+ }
68
72
  }
69
73
 
70
74
  if (CONFIG.verbose) console.warn('Can not find', factoryName, 'method in scratch')