weboptimizer 2.0.1519 → 2.0.1521

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/configurator.js CHANGED
@@ -126,7 +126,7 @@ var load = exports.load = function load(context) {
126
126
  /// region load additional dynamically given configuration
127
127
  var count = 0;
128
128
  var filePath = null;
129
- for (var index = 0; index < _clientnode.MAXIMAL_NUMBER_OF_ITERATIONS.value; index++) {
129
+ for (var iteration = 0; iteration < _clientnode.MAXIMAL_NUMBER_OF_ITERATIONS.value; iteration++) {
130
130
  var newFilePath = "".concat(configuration.path.context, ".dynamicConfiguration-") + "".concat(String(count), ".json");
131
131
  if (!(0, _clientnode.isFileSync)(newFilePath)) break;
132
132
  filePath = newFilePath;
package/declarations.d.ts CHANGED
@@ -9,7 +9,7 @@ interface PostcssTransformer {
9
9
  postcssPlugin: string
10
10
  postcssVersion: string
11
11
 
12
- (root: object, result: object): Promise<void>|void
12
+ (root: object, result: object): Promise<void> | void
13
13
  }
14
14
 
15
15
  /** @module declarations */
@@ -42,7 +42,7 @@ declare module 'postcss-sprites' {
42
42
  ) => void
43
43
  }
44
44
  spritePath: string
45
- stylesheetPath: null|string
45
+ stylesheetPath: null | string
46
46
  verbose: boolean
47
47
  }>): PostcssTransformer
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1519",
3
+ "version": "2.0.1521",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -89,18 +89,19 @@
89
89
  },
90
90
  "runkitExample": "require('@babel/runtime/package.json')\n\nconst {default: main} = require('weboptimizer')\n\nawait main('./', './', ['clear'])",
91
91
  "dependencies": {
92
- "@babel/core": "^7.25.7",
92
+ "@babel/core": "^7.25.8",
93
93
  "@babel/plugin-proposal-class-properties": "^7.18.6",
94
94
  "@babel/plugin-proposal-decorators": "^7.25.7",
95
95
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
96
+ "@babel/plugin-syntax-top-level-await": "^7.14.5",
96
97
  "@babel/plugin-transform-runtime": "^7.25.7",
97
- "@babel/preset-env": "^7.25.7",
98
+ "@babel/preset-env": "^7.25.8",
98
99
  "@babel/preset-typescript": "^7.25.7",
99
100
  "@babel/runtime": "^7.25.7",
100
101
  "babel-loader": "^9.2.1",
101
102
  "babel-plugin-transform-modern-regexp": "^0.0.6",
102
103
  "babel-preset-minify": "^0.5.2",
103
- "clientnode": "3.0.1199",
104
+ "clientnode": "3.0.1202",
104
105
  "ejs": "^3.1.10",
105
106
  "exports-loader": "^5.0.0",
106
107
  "extract-loader": "^5.1.0",
@@ -112,36 +113,36 @@
112
113
  "jest-environment-jsdom": "^29.7.0",
113
114
  "rimraf": "^6.0.1",
114
115
  "script-loader": "^0.7.2",
115
- "typescript": "^5.6.2",
116
+ "typescript": "^5.6.3",
116
117
  "webpack": "^5.95.0",
117
118
  "webpack-cli": "^5.1.4",
118
119
  "webpack-sources": "^3.2.3"
119
120
  },
120
121
  "devDependencies": {
121
122
  "@babel/cli": "^7.25.7",
122
- "@babel/eslint-parser": "^7.25.7",
123
- "@stylistic/eslint-plugin": "^2.8.0",
124
- "@stylistic/eslint-plugin-ts": "^2.8.0",
123
+ "@babel/eslint-parser": "^7.25.8",
124
+ "@stylistic/eslint-plugin": "^2.9.0",
125
+ "@stylistic/eslint-plugin-ts": "^2.9.0",
125
126
  "@types/ejs": "^3.1.5",
126
127
  "@types/eslint": "^9.6.1",
127
128
  "@types/html-minifier": "^4.0.5",
128
129
  "@types/html-minifier-terser": "^7.0.2",
129
130
  "@types/imagemin": "^9.0.0",
130
- "@types/node": "^22.7.4",
131
+ "@types/node": "^22.7.5",
131
132
  "@types/postcss-import": "^14.0.3",
132
133
  "@types/postcss-url": "^10.0.4",
133
134
  "@types/webpack-env": "^1.18.5",
134
135
  "@types/webpack-sources": "^3.2.3",
135
- "@typescript-eslint/parser": "^8.8.0",
136
+ "@typescript-eslint/parser": "^8.9.0",
136
137
  "css-loader": "^7.1.2",
137
138
  "cssnano": "^7.0.6",
138
- "documentation-website": "^1.0.334",
139
- "eslint": "^9.11.1",
139
+ "documentation-website": "^1.0.335",
140
+ "eslint": "^9.12.0",
140
141
  "eslint-config-google": "^0.14.0",
141
- "eslint-plugin-jsdoc": "^50.3.1",
142
+ "eslint-plugin-jsdoc": "^50.4.1",
142
143
  "favicons": "^7.2.0",
143
144
  "favicons-webpack-plugin": "^6.0.1",
144
- "globals": "^15.10.0",
145
+ "globals": "^15.11.0",
145
146
  "image-minimizer-webpack-plugin": "^4.1.0",
146
147
  "jest": "^29.7.0",
147
148
  "jsdoc": "^4.0.3",
@@ -152,15 +153,15 @@
152
153
  "postcss-fontpath": "^1.0.0",
153
154
  "postcss-import": "^16.1.0",
154
155
  "postcss-loader": "^8.1.1",
155
- "postcss-preset-env": "^10.0.5",
156
+ "postcss-preset-env": "^10.0.7",
156
157
  "postcss-sprites": "^4.2.1",
157
158
  "postcss-url": "^10.1.3",
158
159
  "shx": "^0.3.4",
159
160
  "style-loader": "^4.0.0",
160
- "stylelint": "^16.9.0",
161
+ "stylelint": "^16.10.0",
161
162
  "stylelint-config-standard": "^36.0.1",
162
163
  "stylelint-config-standard-scss": "^13.1.0",
163
- "typescript-eslint": "^8.8.0",
164
+ "typescript-eslint": "^8.9.0",
164
165
  "typescript-plugin-css-modules": "^5.1.0",
165
166
  "workbox-webpack-plugin": "^7.1.0"
166
167
  },
package/type.d.ts CHANGED
@@ -40,7 +40,7 @@ export interface RedundantRequest {
40
40
  path: string;
41
41
  version: string;
42
42
  }
43
- export type ExternalAliases = Mapping<Mapping | null | string | ((_request: string, _key: string) => string)>;
43
+ export type ExternalAliases = Mapping<Mapping | null | string | ((request: string, key: string) => string)>;
44
44
  export type GivenInjection = AnyFunction | string | Array<string> | Mapping<string | Array<string>>;
45
45
  export type NormalizedGivenInjection = Mapping<Array<string>>;
46
46
  export interface GivenInjectionConfiguration {
@@ -511,10 +511,10 @@ new NormalModuleReplacementPlugin(
511
511
  /((?: ^|\/)node_modules\/.+){2}/.test(targetPath) &&
512
512
  isFileSync(targetPath)
513
513
  ) {
514
- const packageDescriptor: null|PackageDescriptor =
514
+ const packageDescriptor: null | PackageDescriptor =
515
515
  Helper.getClosestPackageDescriptor(targetPath)
516
516
  if (packageDescriptor) {
517
- const pathPrefixes: null|RegExpMatchArray = targetPath.match(
517
+ const pathPrefixes: null | RegExpMatchArray = targetPath.match(
518
518
  /((?: ^|.*?\/)node_modules\/)/g
519
519
  )
520
520
  if (pathPrefixes === null)
@@ -530,12 +530,12 @@ new NormalModuleReplacementPlugin(
530
530
  }
531
531
  const pathSuffix: string =
532
532
  targetPath.replace(/(?: ^|.*\/)node_modules\/(.+$)/, '$1')
533
- let redundantRequest: null|PlainObject = null
533
+ let redundantRequest: null | PlainObject = null
534
534
  for (const pathPrefix of pathPrefixes) {
535
535
  const alternateTargetPath: string =
536
536
  resolve(pathPrefix, pathSuffix)
537
537
  if (isFileSync(alternateTargetPath)) {
538
- const otherPackageDescriptor: null|PackageDescriptor =
538
+ const otherPackageDescriptor: null | PackageDescriptor =
539
539
  Helper.getClosestPackageDescriptor(
540
540
  alternateTargetPath
541
541
  )