@adamlui/scss-to-css 2.4.2 → 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 CHANGED
@@ -31,10 +31,10 @@
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.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>
34
36
  <a href="#%EF%B8%8F-mit-license">
35
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>
36
- <a href="https://github.com/adamlui/js-utils/releases/tag/scss-to-css-2.4.2">
37
- <img height=31 src="https://img.shields.io/badge/Latest_Build-2.4.2-44cc11.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
38
38
  <a href="https://www.npmjs.com/package/@adamlui/scss-to-css?activeTab=code">
39
39
  <img height=31 src="https://img.shields.io/npm/unpacked-size/%40adamlui%2Fscss-to-css?style=for-the-badge&logo=ebox&logoColor=white&color=blue&labelColor=464646"></a>
40
40
  <a href="https://sonarcloud.io/component_measures?metric=vulnerabilities&selected=adamlui_js-utils%3Ascss-to-css&id=adamlui_js-utils">
@@ -339,4 +339,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
339
339
 
340
340
  <picture><source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/adamlui/scss-to-css@7e4a141/assets/images/icons/home/white/icon32x27.png"><img height=13 src="https://cdn.jsdelivr.net/gh/adamlui/scss-to-css@7e4a141/assets/images/icons/home/dark-gray/icon32x27.png"></picture> <a href="https://github.com/adamlui/js-utils/#readme">**More JavaScript utilities**</a> /
341
341
  <a href="https://github.com/adamlui/scss-to-css/discussions">Discuss</a> /
342
+ <a href="https://github.com/adamlui/scss-to-css/issues">Report bug</a> /
343
+ <a href="mailto:security@tidelift.com">Report vulnerability</a> /
342
344
  <a href="#top">Back to top ↑</a>
@@ -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.pkg}@${verTag}`
6
+ return `${cli.urls.jsdelivr}@${verTag}`
7
7
  },
8
8
 
9
- getCommitURL(hash = 'latest') { return `${cli.urls.jsdelivr.pkg}@${hash}` }
9
+ getCommitURL(hash = 'latest') { return `${cli.urls.jsdelivr}@${hash}` }
10
10
  }
@@ -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
- try { // check if terminal supports non-Latin scripts
69
- const nonLatinLocales = await (await data.fetch(
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,10 +31,10 @@
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.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>
34
36
  <a href="#%EF%B8%8F-mit-license">
35
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>
36
- <a href="https://github.com/adamlui/js-utils/releases/tag/scss-to-css-2.4.2">
37
- <img height=31 src="https://img.shields.io/badge/Latest_Build-2.4.2-44cc11.svg?logo=icinga&logoColor=white&labelColor=464646&style=for-the-badge"></a>
38
38
  <a href="https://www.npmjs.com/package/@adamlui/scss-to-css?activeTab=code">
39
39
  <img height=31 src="https://img.shields.io/npm/unpacked-size/%40adamlui%2Fscss-to-css?style=for-the-badge&logo=ebox&logoColor=white&color=blue&labelColor=464646"></a>
40
40
  <a href="https://sonarcloud.io/component_measures?metric=vulnerabilities&selected=adamlui_js-utils%3Ascss-to-css&id=adamlui_js-utils">
@@ -339,4 +339,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
339
339
 
340
340
  <picture><source media="(prefers-color-scheme: dark)" srcset="https://cdn.jsdelivr.net/gh/adamlui/scss-to-css@7e4a141/assets/images/icons/home/white/icon32x27.png"><img height=13 src="https://cdn.jsdelivr.net/gh/adamlui/scss-to-css@7e4a141/assets/images/icons/home/dark-gray/icon32x27.png"></picture> <a href="https://github.com/adamlui/js-utils/#readme">**More JavaScript utilities**</a> /
341
341
  <a href="https://github.com/adamlui/scss-to-css/discussions">Discuss</a> /
342
+ <a href="https://github.com/adamlui/scss-to-css/issues">Report bug</a> /
343
+ <a href="mailto:security@tidelift.com">Report vulnerability</a> /
342
344
  <a href="#top">Back to top ↑</a>
package/package.json CHANGED
@@ -1,19 +1,15 @@
1
1
  {
2
2
  "name": "@adamlui/scss-to-css",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "Recursively compile all SCSS files into minified CSS",
5
5
  "author": {
6
6
  "name": "Adam Lui",
7
7
  "email": "adam@kudoai.com",
8
8
  "url": "https://github.com/adamlui"
9
9
  },
10
- "homepage": "https://github.com/adamlui/scss-to-css",
10
+ "homepage": "https://github.com/adamlui/scss-to-css/#readme",
11
11
  "license": "MIT",
12
12
  "funding": [
13
- {
14
- "type": "cashapp",
15
- "url": "https://cash.app/$AdamLui"
16
- },
17
13
  {
18
14
  "type": "github",
19
15
  "url": "http://github.com/sponsors/adamlui"
@@ -37,10 +33,6 @@
37
33
  "scss-to-css": "dist/cli/index.js",
38
34
  "scsstocss": "dist/cli/index.js"
39
35
  },
40
- "directories": {
41
- "lib": "./dist",
42
- "doc": "./docs"
43
- },
44
36
  "scripts": {
45
37
  "prepare": "husky",
46
38
  "lint": "eslint . --cache",
@@ -79,15 +71,16 @@
79
71
  "url": "https://github.com/adamlui/scss-to-css/issues"
80
72
  },
81
73
  "dependencies": {
74
+ "console-table-printer": "^2.15.0",
82
75
  "is-unicode-supported": "^2.1.0",
83
76
  "node-clipboardy": "^1.0.3",
77
+ "non-latin-locales": "^1.0.1",
84
78
  "sass": "^1.99.0"
85
79
  },
86
80
  "devDependencies": {
87
81
  "@eslint/json": "^1.2.0",
88
82
  "@eslint/markdown": "^8.0.1",
89
83
  "@stylistic/eslint-plugin": "^5.10.0",
90
- "console-table-printer": "^2.15.0",
91
84
  "copyfiles": "^2.4.1",
92
85
  "eslint": "^9.39.4",
93
86
  "eslint-plugin-import": "^2.32.0",