@symbo.ls/scratch 2.11.512 → 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/dist/cjs/index.js +8 -3
- package/dist/cjs/set.js +8 -3
- package/package.json +2 -2
- package/src/set.js +7 -3
package/dist/cjs/index.js
CHANGED
|
@@ -2480,9 +2480,14 @@ var setValue = (FACTORY_NAME, value, key) => {
|
|
|
2480
2480
|
const factoryName = FACTORY_NAME.toLowerCase();
|
|
2481
2481
|
const FACTORY2 = CONFIG2[FACTORY_NAME];
|
|
2482
2482
|
if (VALUE_TRANSFORMERS[factoryName]) {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2483
|
+
try {
|
|
2484
|
+
const result = VALUE_TRANSFORMERS[factoryName](value, key);
|
|
2485
|
+
FACTORY2[key] = result;
|
|
2486
|
+
return FACTORY2;
|
|
2487
|
+
} catch (error) {
|
|
2488
|
+
if (CONFIG2.verbose)
|
|
2489
|
+
console.warn("Error setting", factoryName, "value", value, key, error);
|
|
2490
|
+
}
|
|
2486
2491
|
}
|
|
2487
2492
|
if (CONFIG2.verbose)
|
|
2488
2493
|
console.warn("Can not find", factoryName, "method in scratch");
|
package/dist/cjs/set.js
CHANGED
|
@@ -1844,9 +1844,14 @@ var setValue = (FACTORY_NAME, value, key) => {
|
|
|
1844
1844
|
const factoryName = FACTORY_NAME.toLowerCase();
|
|
1845
1845
|
const FACTORY2 = CONFIG2[FACTORY_NAME];
|
|
1846
1846
|
if (VALUE_TRANSFORMERS[factoryName]) {
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1847
|
+
try {
|
|
1848
|
+
const result = VALUE_TRANSFORMERS[factoryName](value, key);
|
|
1849
|
+
FACTORY2[key] = result;
|
|
1850
|
+
return FACTORY2;
|
|
1851
|
+
} catch (error) {
|
|
1852
|
+
if (CONFIG2.verbose)
|
|
1853
|
+
console.warn("Error setting", factoryName, "value", value, key, error);
|
|
1854
|
+
}
|
|
1850
1855
|
}
|
|
1851
1856
|
if (CONFIG2.verbose)
|
|
1852
1857
|
console.warn("Can not find", factoryName, "method in scratch");
|
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.
|
|
5
|
+
"version": "2.11.514",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@symbo.ls/utils": "^2.11.512",
|
|
31
31
|
"color-contrast-checker": "^1.5.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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')
|