weboptimizer 4.0.30 → 4.0.31

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/browser.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { Browser, InitializedBrowser } from './type';
2
- import { Logger } from 'clientnode';
3
2
  export declare const browser: Browser;
4
- export declare const log: Logger;
3
+ export declare const log: any;
5
4
  /**
6
5
  * Provides a generic browser api in node or web contexts.
7
6
  * @param replaceWindow - Indicates whether a potential existing window object
package/configurator.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type { ResolvedConfiguration } from './type';
2
- import { Logger } from 'clientnode';
3
2
  export declare let loadedConfiguration: null | ResolvedConfiguration;
4
- export declare const log: Logger;
3
+ export declare const log: any;
5
4
  /**
6
5
  * Main entry point to determine current configuration.
7
6
  * @param context - Location from where to build current application.
package/configurator.js CHANGED
@@ -16,7 +16,7 @@
16
16
  endregion
17
17
  */
18
18
  // region imports
19
- import { convertCircularObjectToJSON, copy, evaluateAsyncDynamicData, evaluateDynamicData, extend, getUTCTimestamp, importsPromise, isFileSync, isObject, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, modifyObject, optionalImport, parseEncodedObject, removeKeyPrefixes, UTILITY_SCOPE } from 'clientnode';
19
+ import { convertCircularObjectToJSON, copy, evaluateAsyncDynamicData, evaluateDynamicData, extend, getUTCTimestamp, importFilesystemAPI, isFileSync, isObject, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, modifyObject, optionalImport, parseEncodedObject, removeKeyPrefixes, UTILITY_SCOPE } from 'clientnode';
20
20
  import fileSystem, { lstatSync, readFileSync, unlinkSync } from 'fs';
21
21
  import path, { basename, dirname, join, resolve } from 'path';
22
22
  import { determineAssetType, determineModuleFilePath, determineModuleLocations, resolveAutoInjection, resolveBuildConfigurationFilePaths, resolveModulesInFolders, normalizeGivenInjection, normalizePaths } from "./helper.js";
@@ -32,7 +32,7 @@ export const log = new Logger({
32
32
  });
33
33
 
34
34
  // Wait until optional filesystem modules have been loaded.
35
- await importsPromise;
35
+ await importFilesystemAPI();
36
36
 
37
37
  /**
38
38
  * Main entry point to determine current configuration.
package/ejsLoader.d.ts CHANGED
@@ -2,7 +2,6 @@ import type { Encoding, Mapping } from 'clientnode';
2
2
  import type { Options, AsyncTemplateFunction as EJSAsyncTemplateFunction } from 'ejs';
3
3
  import type { LoaderContext } from 'webpack';
4
4
  import type { Extensions, Replacements } from './type';
5
- import { Logger } from 'clientnode';
6
5
  export type TemplateFunction = EJSAsyncTemplateFunction;
7
6
  export type CompilerOptions = Options & {
8
7
  encoding: Encoding;
@@ -25,7 +24,7 @@ export type LoaderConfiguration = Mapping<unknown> & {
25
24
  replacements: Replacements;
26
25
  };
27
26
  };
28
- export declare const log: Logger;
27
+ export declare const log: any;
29
28
  /**
30
29
  * Main transformation function.
31
30
  * @param source - Input string to transform.
package/helper.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import type { Encoding, Mapping } from 'clientnode';
2
2
  import type { BuildConfiguration, Extensions, GivenInjection, GivenInjectionConfiguration, NormalizedGivenInjection, PathConfiguration, PackageDescriptor, Replacements, ResolvedBuildConfiguration, SpecificExtensions } from './type';
3
- import { Logger } from 'clientnode';
4
3
  export declare const KNOWN_FILE_EXTENSIONS: Array<string>;
5
- export declare const log: Logger;
4
+ export declare const log: any;
6
5
  /**
7
6
  * Determines whether given file path is within given list of file locations.
8
7
  * @param filePath - Path to file to check.
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env babel-node
2
- import { Logger } from 'clientnode';
3
- export declare const log: Logger;
2
+ export declare const log: any;
4
3
  /**
5
4
  * Main entry point.
6
5
  * @param context - Location from where to build current application.
package/index.js CHANGED
@@ -19,7 +19,7 @@
19
19
  */
20
20
  // region imports
21
21
  import { exec as execChildProcess, spawn as spawnChildProcess } from 'child_process';
22
- import { CLOSE_EVENT_NAMES, copyDirectoryRecursiveSync, copyFileSync, evaluate, getProcessCloseHandler, handleChildProcess, importsPromise, isDirectory, isDirectorySync, isFile, isFileSync, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, parseEncodedObject, walkDirectoryRecursively } from 'clientnode';
22
+ import { CLOSE_EVENT_NAMES, copyDirectoryRecursiveSync, copyFileSync, evaluate, getProcessCloseHandler, handleChildProcess, importFilesystemAPI, isDirectory, isDirectorySync, isFile, isFileSync, isPlainObject, Logger, MAXIMAL_NUMBER_OF_ITERATIONS, NOOP, parseEncodedObject, walkDirectoryRecursively } from 'clientnode';
23
23
  import { chmodSync, unlinkSync } from 'fs';
24
24
  import { writeFile, unlink } from 'fs/promises';
25
25
  import globAll from 'glob-all';
@@ -41,7 +41,7 @@ Logger.configureAllInstances({
41
41
  process.env.UV_THREADPOOL_SIZE = '128';
42
42
 
43
43
  // Wait until optional filesystem modules have been loaded.
44
- await importsPromise;
44
+ await importFilesystemAPI();
45
45
 
46
46
  /**
47
47
  * Main entry point.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.30",
3
+ "version": "4.0.31",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -94,7 +94,7 @@
94
94
  "babel-loader": "^10.1.1",
95
95
  "babel-plugin-polyfill-corejs3": "^1.0.0",
96
96
  "babel-plugin-transform-rewrite-imports": "^1.5.4",
97
- "clientnode": "4.0.1456",
97
+ "clientnode": "4.0.1460",
98
98
  "core-js": "^3.49.0",
99
99
  "ejs": "^6.0.1",
100
100
  "exports-loader": "^5.0.0",
@@ -142,7 +142,7 @@
142
142
  "mini-css-extract-plugin": "^2.10.2",
143
143
  "mkdirp": "^3.0.1",
144
144
  "node-fetch": "^3.3.2",
145
- "postcss": "^8.5.21",
145
+ "postcss": "^8.5.22",
146
146
  "postcss-fontpath": "^1.0.0",
147
147
  "postcss-import": "^16.1.1",
148
148
  "postcss-loader": "^8.2.1",
@@ -1,2 +1,2 @@
1
- declare const _default: import("clientnode").PlainObject;
1
+ declare const _default: PlainObject;
2
2
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import type { WebpackConfiguration } from './type';
2
- import { Logger } from 'clientnode';
3
- export declare const log: Logger;
2
+ export declare const log: any;
4
3
  export declare let webpackConfiguration: WebpackConfiguration;
5
4
  export default webpackConfiguration;
@@ -16,7 +16,7 @@
16
16
  endregion
17
17
  */
18
18
  // region imports
19
- import { convertToValidVariableName, evaluate, escapeRegularExpressions, extend, importsPromise, isFileSync, isObject, isPlainObject, Logger, mask, optionalImport, represent, UTILITY_SCOPE } from 'clientnode';
19
+ import { convertToValidVariableName, evaluate, escapeRegularExpressions, extend, importFilesystemAPI, isFileSync, isObject, isPlainObject, Logger, mask, optionalImport, represent, UTILITY_SCOPE } from 'clientnode';
20
20
  import { extname, join, relative, resolve } from 'path';
21
21
  import util from 'util';
22
22
  import webpack from 'webpack';
@@ -39,7 +39,7 @@ import InPlaceAssetsIntoHTML from "./plugins/InPlaceAssetsIntoHTML.js";
39
39
  import HTMLTransformation from "./plugins/HTMLTransformation.js";
40
40
 
41
41
  // Wait until optional filesystem modules have been loaded.
42
- await importsPromise;
42
+ await importFilesystemAPI();
43
43
 
44
44
  /// region optional imports
45
45
  const postcssCSSnano = (await optionalImport('cssnano'))?.default;