weboptimizer 4.0.17 → 4.0.18

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,6 +1,7 @@
1
1
  import type { Browser, InitializedBrowser } from './type';
2
+ import { Logger } from 'clientnode';
2
3
  export declare const browser: Browser;
3
- export declare const log: any;
4
+ export declare const log: Logger;
4
5
  /**
5
6
  * Provides a generic browser api in node or web contexts.
6
7
  * @param replaceWindow - Indicates whether a potential existing window object
package/configurator.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import type { ResolvedConfiguration } from './type';
2
+ import { Logger } from 'clientnode';
2
3
  export declare const require: NodeJS.Require;
3
4
  export declare const optionalRequire: <T = unknown>(id: string) => null | T;
4
5
  export declare let loadedConfiguration: null | ResolvedConfiguration;
5
- export declare const log: any;
6
+ export declare const log: Logger;
6
7
  /**
7
8
  * Main entry point to determine current configuration.
8
9
  * @param context - Location from where to build current application.
package/ejsLoader.d.ts CHANGED
@@ -2,6 +2,7 @@ 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';
5
6
  export type TemplateFunction = EJSAsyncTemplateFunction;
6
7
  export type CompilerOptions = Options & {
7
8
  encoding: Encoding;
@@ -24,7 +25,7 @@ export type LoaderConfiguration = Mapping<unknown> & {
24
25
  replacements: Replacements;
25
26
  };
26
27
  };
27
- export declare const log: any;
28
+ export declare const log: Logger;
28
29
  /**
29
30
  * Main transformation function.
30
31
  * @param source - Input string to transform.
package/helper.d.ts CHANGED
@@ -1,7 +1,8 @@
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';
3
4
  export declare const KNOWN_FILE_EXTENSIONS: Array<string>;
4
- export declare const log: any;
5
+ export declare const log: Logger;
5
6
  /**
6
7
  * Determines whether given file path is within given list of file locations.
7
8
  * @param filePath - Path to file to check.
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env babel-node
2
- export declare const log: any;
2
+ import { Logger } from 'clientnode';
3
+ export declare const log: Logger;
3
4
  /**
4
5
  * Main entry point.
5
6
  * @param context - Location from where to build current application.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -95,7 +95,7 @@
95
95
  "babel-plugin-polyfill-corejs3": "^1.0.0",
96
96
  "babel-plugin-transform-rewrite-imports": "^1.5.4",
97
97
  "babel-preset-minify": "^0.5.2",
98
- "clientnode": "4.0.1439",
98
+ "clientnode": "4.0.1442",
99
99
  "core-js": "^3.49.0",
100
100
  "ejs": "^6.0.1",
101
101
  "exports-loader": "^5.0.0",
@@ -1,4 +1,5 @@
1
1
  import type { WebpackConfiguration } from './type';
2
- export declare const log: any;
2
+ import { Logger } from 'clientnode';
3
+ export declare const log: Logger;
3
4
  export declare let webpackConfiguration: WebpackConfiguration;
4
5
  export default webpackConfiguration;