balm-core 4.3.1 → 4.4.2

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.
@@ -4,7 +4,7 @@ const imageInlineSizeLimit = parseInt(process.env.IMAGE_INLINE_SIZE_LIMIT || '10
4
4
 
5
5
  function urlLoader() {
6
6
  const PATHNAME = `${BalmJS.config.paths.target.js}/${STATIC_ASSETS}/`;
7
- const FILENAME = `[name].${HASH_NAME_DEV}[ext]`;
7
+ const FILENAME = `[name].${HASH_NAME_DEV}.[ext]`;
8
8
  const options = Object.assign({
9
9
  limit: imageInlineSizeLimit,
10
10
  // Loads files as `base64` encoded URL
@@ -40,9 +40,11 @@ class BalmLoading {
40
40
  }
41
41
 
42
42
  get frame() {
43
+ var _this$frameIndex;
44
+
43
45
  const currentFrame = spinner.frames[_classPrivateFieldGet(this, _frameIndex)];
44
46
 
45
- _classPrivateFieldSet(this, _frameIndex, _classPrivateFieldSet(this, _frameIndex, +_classPrivateFieldGet(this, _frameIndex) + 1) % _classPrivateFieldGet(this, _frameCount));
47
+ _classPrivateFieldSet(this, _frameIndex, _classPrivateFieldSet(this, _frameIndex, (_this$frameIndex = _classPrivateFieldGet(this, _frameIndex), ++_this$frameIndex)) % _classPrivateFieldGet(this, _frameCount));
46
48
 
47
49
  return currentFrame;
48
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balm-core",
3
- "version": "4.3.1",
3
+ "version": "4.4.2",
4
4
  "description": "BalmJS compiler core",
5
5
  "keywords": [
6
6
  "balm",
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "ansi-colors": "^4.1.1",
45
45
  "async": "^3.2.3",
46
- "autoprefixer": "^10.4.2",
47
- "babel-loader": "^8.2.3",
48
- "browser-sync": "^2.27.7",
46
+ "autoprefixer": "^10.4.4",
47
+ "babel-loader": "^8.2.4",
48
+ "browser-sync": "^2.27.9",
49
49
  "connect-history-api-fallback": "^1.6.0",
50
- "css-loader": "^6.6.0",
50
+ "css-loader": "^6.7.1",
51
51
  "css-minimizer-webpack-plugin": "^3.4.1",
52
- "cssnano": "^5.0.17",
52
+ "cssnano": "^5.1.5",
53
53
  "del": "^6.0.0",
54
54
  "esbuild": "^0.14",
55
55
  "fancy-log": "^2.0.0",
@@ -66,47 +66,47 @@
66
66
  "html-loader": "^3.1.0",
67
67
  "html-minifier": "^4.0.0",
68
68
  "html-webpack-plugin": "^5.5.0",
69
- "http-proxy-middleware": "^2.0.3",
69
+ "http-proxy-middleware": "^2.0.4",
70
70
  "imagemin": "^8.0.1",
71
71
  "istextorbinary": "^6.0.0",
72
72
  "less": "^4.1.2",
73
- "mini-css-extract-plugin": "2.5.2",
74
- "modernizr": "^3.11.8",
73
+ "mini-css-extract-plugin": "2.5.1",
74
+ "modernizr": "^3.12.0",
75
75
  "parents": "^1.0.1",
76
76
  "plugin-error": "^1.0.1",
77
- "postcss": "^8.4.6",
78
- "postcss-import": "^14.0.2",
79
- "postcss-load-config": "^3.1.2",
77
+ "postcss": "^8.4.12",
78
+ "postcss-import": "^14.1.0",
79
+ "postcss-load-config": "^3.1.3",
80
80
  "postcss-loader": "6.2.1",
81
- "postcss-preset-env": "^7.3.1",
82
- "pretty-bytes": "^5.6.0",
81
+ "postcss-preset-env": "^7.4.3",
82
+ "pretty-bytes": "^6.0.0",
83
83
  "readable-stream": "^3.6.0",
84
84
  "replace-ext": "^2.0.0",
85
- "rollup": "^2.67.2",
85
+ "rollup": "^2.70.1",
86
86
  "rollup-plugin-terser": "^7.0.2",
87
- "sass": "^1.49.7",
88
- "sass-loader": "^12.4.0",
89
- "ssh2": "^1.6.0",
87
+ "sass": "^1.49.9",
88
+ "sass-loader": "^12.6.0",
89
+ "ssh2": "^1.7.0",
90
90
  "strip-ansi": "^7.0.1",
91
91
  "style-loader": "^3.3.1",
92
- "terser": "^5.10.0",
92
+ "terser": "^5.12.1",
93
93
  "terser-webpack-plugin": "^5.3.1",
94
94
  "through2": "^4.0.2",
95
95
  "through2-concurrent": "^2.0.0",
96
96
  "tslib": "^2.3.1",
97
97
  "url-loader": "^4.1.1",
98
98
  "vinyl-sourcemaps-apply": "^0.2.1",
99
- "webpack": "^5.68.0",
99
+ "webpack": "^5.70.0",
100
100
  "webpack-bundle-analyzer": "^4.5.0",
101
101
  "webpack-dev-middleware": "^5.3.1",
102
102
  "webpack-hot-middleware": "^2.25.1",
103
103
  "webpack-merge": "^5.8.0",
104
- "workbox-build": "^6.4.2"
104
+ "workbox-build": "^6.5.1"
105
105
  },
106
106
  "devDependencies": {
107
107
  "@swc/core": "^1.2",
108
108
  "@types/express": "^4.17.13",
109
- "@types/node": "17.0.13",
109
+ "@types/node": "^17.0.22",
110
110
  "@types/uglify-js": "^3.13.1",
111
111
  "@types/webpack": "^5.28.0"
112
112
  },
@@ -119,5 +119,5 @@
119
119
  "engines": {
120
120
  "node": ">=12.13.0"
121
121
  },
122
- "gitHead": "9ac0cbaff08b99383affe45883472450323cb91c"
122
+ "gitHead": "73252247ec9488ef54fc6dda94b891ba0c24699c"
123
123
  }
@@ -3,7 +3,7 @@ import { imgRegex, fontRegex, mediaRegex } from '../config/regex.js';
3
3
  const imageInlineSizeLimit = parseInt(process.env.IMAGE_INLINE_SIZE_LIMIT || '10000');
4
4
  function urlLoader() {
5
5
  const PATHNAME = `${BalmJS.config.paths.target.js}/${STATIC_ASSETS}/`;
6
- const FILENAME = `[name].${HASH_NAME_DEV}[ext]`;
6
+ const FILENAME = `[name].${HASH_NAME_DEV}.[ext]`;
7
7
  const options = Object.assign({
8
8
  limit: imageInlineSizeLimit,
9
9
  name: BalmJS.file.assetsPath(`${PATHNAME}${FILENAME}`),