purgetss 6.2.39 → 6.2.41
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/tailwind.tss +1 -1
- package/lib/helpers.js +18 -1
- package/lib/templates/tailwind/template.tss +1 -1
- package/package.json +5 -5
package/dist/tailwind.tss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Based on Tailwind CSS v3.3.
|
|
1
|
+
// Based on Tailwind CSS v3.3.5: A utility-first CSS framework for rapidly building custom designs. ( https://tailwindcss.com )
|
|
2
2
|
// Created by Adam Wathan ( https://twitter.com/adamwathan ).
|
|
3
3
|
|
|
4
4
|
// Tailwind-like styles
|
package/lib/helpers.js
CHANGED
|
@@ -6874,9 +6874,26 @@ function parseValue(value, sign = '') {
|
|
|
6874
6874
|
value = 0
|
|
6875
6875
|
}
|
|
6876
6876
|
|
|
6877
|
+
if (typeof value === 'string' && value.includes('/')) {
|
|
6878
|
+
/* eslint-disable no-eval */
|
|
6879
|
+
let parsedFloat = parseFloat(eval(value)) * 100
|
|
6880
|
+
const splittedValues = parsedFloat.toString().split('.')
|
|
6881
|
+
|
|
6882
|
+
if (splittedValues[1] && splittedValues[1].length >= 6) {
|
|
6883
|
+
if (`.${splittedValues[1]}` < 0.5) {
|
|
6884
|
+
parsedFloat += 0.000001
|
|
6885
|
+
}
|
|
6886
|
+
parsedFloat = parsedFloat.toFixed(6)
|
|
6887
|
+
}
|
|
6888
|
+
|
|
6889
|
+
value = `${parsedFloat}%`
|
|
6890
|
+
}
|
|
6891
|
+
|
|
6877
6892
|
const unit = isNaN(value) ? checkTitanium(value) : value
|
|
6878
6893
|
|
|
6879
|
-
if (typeof value === 'string' && value.indexOf('-') > -1 || value < 0)
|
|
6894
|
+
if ((typeof value === 'string' && value.indexOf('-') > -1) || value < 0) {
|
|
6895
|
+
sign = ''
|
|
6896
|
+
}
|
|
6880
6897
|
|
|
6881
6898
|
switch (unit) {
|
|
6882
6899
|
case '0':
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// Based on Tailwind CSS v3.3.
|
|
1
|
+
// Based on Tailwind CSS v3.3.5: A utility-first CSS framework for rapidly building custom designs. ( https://tailwindcss.com )
|
|
2
2
|
// Created by Adam Wathan ( https://twitter.com/adamwathan ).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "purgetss",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.41",
|
|
4
4
|
"description": "A package that simplifies mobile app creation for Titanium developers.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -58,16 +58,16 @@
|
|
|
58
58
|
"path": "^0.12.7",
|
|
59
59
|
"prompts": "^2.4.2",
|
|
60
60
|
"read-css": "^0.3.0",
|
|
61
|
-
"tailwindcss": "^3.3.
|
|
61
|
+
"tailwindcss": "^3.3.5",
|
|
62
62
|
"traverse": "^0.6.7",
|
|
63
63
|
"update-notifier": "^5.1.0",
|
|
64
64
|
"uuid": "^9.0.1",
|
|
65
65
|
"xml-js": "^1.6.11"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"eslint": "^8.
|
|
68
|
+
"eslint": "^8.53.0",
|
|
69
69
|
"eslint-config-standard": "^17.1.0",
|
|
70
|
-
"eslint-plugin-import": "^2.
|
|
71
|
-
"eslint-plugin-n": "^
|
|
70
|
+
"eslint-plugin-import": "^2.29.0",
|
|
71
|
+
"eslint-plugin-n": "^16.3.0"
|
|
72
72
|
}
|
|
73
73
|
}
|