@qtoggle/qui 1.19.2 → 1.19.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qtoggle/qui",
3
3
  "description": "A JavaScript UI library with batteries included.",
4
- "version": "1.19.2",
4
+ "version": "1.19.4",
5
5
  "author": {
6
6
  "name": "Calin Crisan",
7
7
  "email": "ccrisan@gmail.com"
@@ -19,30 +19,30 @@
19
19
  "pepjs": "*"
20
20
  },
21
21
  "devDependencies": {
22
- "@babel/core": "*",
23
- "@babel/plugin-proposal-class-properties": "*",
24
- "@babel/preset-env": "*",
25
- "@babel/eslint-parser": "*",
22
+ "@babel/core": "^7.27.0",
23
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
24
+ "@babel/preset-env": "^7.27.0",
25
+ "@babel/eslint-parser": "^7.27.0",
26
26
  "babel-loader": "^8",
27
27
  "css-loader": "^3",
28
28
  "eslint": "^9",
29
29
  "expose-loader": "^1",
30
- "file-loader": "*",
31
- "glob": "*",
30
+ "file-loader": "^6.2.0",
31
+ "glob": "^13.0.6",
32
32
  "jsdoc": "^3",
33
33
  "jsdoc-export-default-interop": "*",
34
34
  "jsdoc-typeof-plugin": "*",
35
- "less": "*",
35
+ "less": "^4.2.0",
36
36
  "less-loader": "^6",
37
37
  "mini-css-extract-plugin": "^1",
38
- "optimize-css-assets-webpack-plugin": "*",
38
+ "optimize-css-assets-webpack-plugin": "^6.0.1",
39
39
  "string-replace-loader": "^2",
40
40
  "terser-webpack-plugin": "^3",
41
41
  "webpack": "^4",
42
42
  "webpack-cli": "^3",
43
- "webpack-fix-style-only-entries": "*",
44
- "webpack-inject-plugin": "*",
45
- "webpack-shell-plugin": "*"
43
+ "webpack-fix-style-only-entries": "^0.6.1",
44
+ "webpack-inject-plugin": "^1.5.5",
45
+ "webpack-shell-plugin": "^0.5.0"
46
46
  },
47
47
  "scripts": {
48
48
  "postinstall": "scripts/postinstall.sh"
package/pyproject.toml CHANGED
@@ -1,11 +1,11 @@
1
1
  [project]
2
2
  name = "qui-server"
3
- version = "1.19.2"
3
+ version = "1.19.4"
4
4
  description = "A fully fledged qToggle implementation written in Python"
5
5
  authors = [
6
6
  {name = "Calin Crisan", email = "ccrisan@gmail.com"},
7
7
  ]
8
- requires-python = ">=3.11"
8
+ requires-python = ">=3.14"
9
9
  readme = "README.md"
10
10
  license = {text = "Apache 2.0"}
11
11
  dependencies = [
@@ -27,7 +27,6 @@ const LESS_DIR = 'less'
27
27
  const TMPL_DIR = 'templates'
28
28
  const DIST_DIR = 'dist'
29
29
 
30
- const LESS_REGEX = new RegExp(`${LESS_DIR}/.*\\.less$`)
31
30
  const QUI_JS_REGEX = new RegExp(`qui/${JS_DIR}/.*\\.jsm?$`)
32
31
  const QUI_LESS_REGEX = new RegExp(`qui/${LESS_DIR}/.*\\.less$`)
33
32
  const IMG_REGEX = new RegExp(`${IMG_DIR}/.*\\.(svg|png|gif|jpg|jpe?g|ico)$`)
@@ -35,6 +34,10 @@ const FONT_REGEX = new RegExp(`${FONT_DIR}/.*\\.(woff)$`)
35
34
  const TMPL_REGEX = new RegExp(`${TMPL_DIR}/.*\\.(html|json|js)$`)
36
35
 
37
36
 
37
+ function escapeForLess(s) {
38
+ return `~"${s}"`
39
+ }
40
+
38
41
  function requireFromDir(regex, path, excludeRegex) {
39
42
  let filePaths = glob.sync(path + '/**')
40
43
 
@@ -68,9 +71,9 @@ function makeLessRule({type, theme, isProduction, appName, appFullPath, quiFullP
68
71
  qui_theme: theme,
69
72
  app_img_path: appImgPath,
70
73
  app_font_path: appFontPath,
71
- qui_img_path: quiImgPath,
72
- qui_font_path: quiFontPath,
73
- qui_less_path: quiLessPath
74
+ qui_img_path: escapeForLess(quiImgPath),
75
+ qui_font_path: escapeForLess(quiFontPath),
76
+ qui_less_path: escapeForLess(quiLessPath)
74
77
  }
75
78
  }
76
79
  }