@node-minify/types 8.0.3-beta.0 → 8.0.6

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Rodolphe Stoclin
3
+ Copyright (c) 2023 Rodolphe Stoclin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <p align="center"><img src="/static/node-minify.png" width="348" alt="node-minify"></p>
1
+ <p align="center"><img src="/static/node-minify.svg" width="348" alt="node-minify"></p>
2
2
 
3
3
  <p align="center">A very light minifier Node.js module.</p>
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/types",
3
- "version": "8.0.3-beta.0",
3
+ "version": "8.0.6",
4
4
  "description": "types for @node-minify",
5
5
  "keywords": [
6
6
  "compressor",
@@ -26,5 +26,5 @@
26
26
  "bugs": {
27
27
  "url": "https://github.com/srod/node-minify/issues"
28
28
  },
29
- "gitHead": "f79e146eed24ca117756cf029eb5005631f12892"
29
+ "gitHead": "9fb532af458cb6416ecfb7abfb9cc0a3b9cb42e1"
30
30
  }
package/src/types.ts CHANGED
@@ -1,13 +1,10 @@
1
- export interface Options {
2
- [key: string]: string | boolean | [] | { url: string } | { filename: string } | undefined;
3
- sourceMap?: boolean;
4
- _sourceMap?: { url: string } | boolean;
5
- babelrc?: string;
6
- presets?: [];
7
- strict?: boolean;
8
- }
1
+ export type OptionsPossible = string | boolean | Record<string, string> | object;
9
2
 
10
- export interface Settings {
3
+ export type Options = {
4
+ [Key: string]: boolean | Record<string, OptionsPossible>;
5
+ };
6
+
7
+ export type Settings = {
11
8
  compressorLabel?: string;
12
9
  compressor?: string | ((arg0: MinifierOptions) => string);
13
10
  sync?: boolean;
@@ -22,9 +19,9 @@ export interface Settings {
22
19
  silence?: boolean;
23
20
  publicFolder?: string;
24
21
  replaceInPlace?: boolean;
25
- }
22
+ };
26
23
 
27
- export interface MinifierOptions {
24
+ export type MinifierOptions = {
28
25
  settings?: Settings;
29
26
  content?: string;
30
27
  callback?: null | ((err?: unknown | null, result?: string) => void);
@@ -35,15 +32,15 @@ export interface MinifierOptions {
35
32
  sync?: boolean;
36
33
  input?: string | string[];
37
34
  output?: string;
38
- }
35
+ };
39
36
 
40
- export interface Result {
37
+ export type Result = {
41
38
  compressor?: string | ((arg0: MinifierOptions) => void);
42
39
  compressorLabel: string | (() => void);
43
40
  size: string;
44
41
  sizeGzip: string;
45
- }
42
+ };
46
43
 
47
- export interface Dictionary<T> {
44
+ export type Dictionary<T> = {
48
45
  [Key: string]: T;
49
- }
46
+ };