@adamlui/scss-to-css 2.4.3 → 2.4.4
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/README.md +2 -2
- package/dist/cli/lib/jsdelivr.js +2 -2
- package/dist/cli/lib/language.js +2 -9
- package/dist/data/package-data.json +1 -4
- package/docs/README.md +2 -2
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
|
|
32
32
|
<a href="https://npmstar.com/compare/@adamlui%2Fscss-to-css">
|
|
33
33
|
<img height=31 src="https://img.shields.io/npm/dm/%40adamlui%2Fscss-to-css?logo=npm&color=af68ff&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
34
|
-
<a href="https://github.com/adamlui/js-utils/releases/tag/scss-to-css-2.4.
|
|
35
|
-
<img height=31 src="https://img.shields.io/badge/Latest_Build-2.4.
|
|
34
|
+
<a href="https://github.com/adamlui/js-utils/releases/tag/scss-to-css-2.4.4">
|
|
35
|
+
<img height=31 src="https://img.shields.io/badge/Latest_Build-2.4.4-44cc11.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
36
36
|
<a href="#%EF%B8%8F-mit-license">
|
|
37
37
|
<img height=31 src="https://img.shields.io/badge/License-MIT-orange.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
38
38
|
<a href="https://www.npmjs.com/package/@adamlui/scss-to-css?activeTab=code">
|
package/dist/cli/lib/jsdelivr.js
CHANGED
|
@@ -3,8 +3,8 @@ module.exports = {
|
|
|
3
3
|
getPkgVerURL(version) {
|
|
4
4
|
version ||= cli.version ||= require('./pkg').getVer('local') || 'none'
|
|
5
5
|
const verTag = !/^\d+\.\d+\.\d+$/.test(version) ? 'latest' : `v${version}`
|
|
6
|
-
return `${cli.urls.jsdelivr
|
|
6
|
+
return `${cli.urls.jsdelivr}@${verTag}`
|
|
7
7
|
},
|
|
8
8
|
|
|
9
|
-
getCommitURL(hash = 'latest') { return `${cli.urls.jsdelivr
|
|
9
|
+
getCommitURL(hash = 'latest') { return `${cli.urls.jsdelivr}@${hash}` }
|
|
10
10
|
}
|
package/dist/cli/lib/language.js
CHANGED
|
@@ -65,15 +65,8 @@ module.exports = {
|
|
|
65
65
|
require(`../../${ env.modes.dev ? '../_locales/en' : 'data' }/messages.json`))
|
|
66
66
|
|
|
67
67
|
if (!langCode.startsWith('en')) { // fetch non-English msgs from jsDelivr
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
`${cli.urls.jsdelivr.jsutils}@${cli.commitHashes.data}/assets/data/non-latin-locales.json`
|
|
71
|
-
)).json()
|
|
72
|
-
if (nonLatinLocales.includes(langCode.split('-')[0]) && !env.supports.unicode)
|
|
73
|
-
return msgs // en ones
|
|
74
|
-
} catch (err) {
|
|
75
|
-
log.debug(`Failed to fetch non-Latin locales: ${err}`)
|
|
76
|
-
}
|
|
68
|
+
if (require('non-latin-locales').includes(langCode.split('_')[0]) && !env.supports.unicode)
|
|
69
|
+
return msgs // EN ones
|
|
77
70
|
const msgBaseURL = `${require('./jsdelivr').getCommitURL(cli.commitHashes.locales)}/_locales`
|
|
78
71
|
let msgURL = `${msgBaseURL}/${langCode}/messages.json`, msgFetchesTried = 0
|
|
79
72
|
while (msgFetchesTried < 3)
|
|
@@ -8,10 +8,7 @@
|
|
|
8
8
|
"config": "https://github.com/adamlui/scss-to-css/blob/main/scss-to-css.config.mjs",
|
|
9
9
|
"docs": "https://github.com/adamlui/scss-to-css/tree/main/docs",
|
|
10
10
|
"github": "https://github.com/adamlui/scss-to-css",
|
|
11
|
-
"jsdelivr":
|
|
12
|
-
"jsutils": "https://cdn.jsdelivr.net/gh/adamlui/js-utils",
|
|
13
|
-
"pkg": "https://cdn.jsdelivr.net/gh/adamlui/scss-to-css"
|
|
14
|
-
},
|
|
11
|
+
"jsdelivr": "https://cdn.jsdelivr.net/gh/adamlui/scss-to-css",
|
|
15
12
|
"npm": "https://www.npmjs.com/package/@adamlui/scss-to-css",
|
|
16
13
|
"src": "https://github.com/adamlui/scss-to-css/tree/main/src"
|
|
17
14
|
},
|
package/docs/README.md
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
|
|
32
32
|
<a href="https://npmstar.com/compare/@adamlui%2Fscss-to-css">
|
|
33
33
|
<img height=31 src="https://img.shields.io/npm/dm/%40adamlui%2Fscss-to-css?logo=npm&color=af68ff&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
34
|
-
<a href="https://github.com/adamlui/js-utils/releases/tag/scss-to-css-2.4.
|
|
35
|
-
<img height=31 src="https://img.shields.io/badge/Latest_Build-2.4.
|
|
34
|
+
<a href="https://github.com/adamlui/js-utils/releases/tag/scss-to-css-2.4.4">
|
|
35
|
+
<img height=31 src="https://img.shields.io/badge/Latest_Build-2.4.4-44cc11.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
36
36
|
<a href="#%EF%B8%8F-mit-license">
|
|
37
37
|
<img height=31 src="https://img.shields.io/badge/License-MIT-orange.svg?logo=internetarchive&logoColor=white&labelColor=464646&style=for-the-badge"></a>
|
|
38
38
|
<a href="https://www.npmjs.com/package/@adamlui/scss-to-css?activeTab=code">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adamlui/scss-to-css",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "Recursively compile all SCSS files into minified CSS",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Adam Lui",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"console-table-printer": "^2.15.0",
|
|
75
75
|
"is-unicode-supported": "^2.1.0",
|
|
76
76
|
"node-clipboardy": "^1.0.3",
|
|
77
|
+
"non-latin-locales": "^1.0.1",
|
|
77
78
|
"sass": "^1.99.0"
|
|
78
79
|
},
|
|
79
80
|
"devDependencies": {
|