@powerlines/plugin-image-compression 0.2.11 → 0.2.13
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.
|
@@ -178,7 +178,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in ke
|
|
|
178
178
|
}) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
|
|
179
179
|
};
|
|
180
180
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
|
|
181
|
-
interface Plugin<
|
|
181
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
182
182
|
/**
|
|
183
183
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
184
184
|
*/
|
|
@@ -215,7 +215,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
215
215
|
* @param other - The other plugin to compare against.
|
|
216
216
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
217
217
|
*/
|
|
218
|
-
dedupe?: false | ((other: Plugin<
|
|
218
|
+
dedupe?: false | ((other: Plugin<any>) => boolean);
|
|
219
219
|
/**
|
|
220
220
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
221
221
|
*/
|
|
@@ -178,7 +178,7 @@ type PluginHooks<TContext extends PluginContext = PluginContext> = { [TKey in ke
|
|
|
178
178
|
}) => MaybePromise<string | ExternalIdResult | null | undefined>, "id">;
|
|
179
179
|
};
|
|
180
180
|
type PluginBuildPlugins<TContext extends PluginContext = PluginContext> = { [TBuildVariant in UnpluginBuildVariant]?: BuildPlugin<TContext, TBuildVariant> };
|
|
181
|
-
interface Plugin<
|
|
181
|
+
interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<ResolvedConfig>> extends Partial<PluginHooks<TContext>>, PluginBuildPlugins<TContext> {
|
|
182
182
|
/**
|
|
183
183
|
* The name of the plugin, for use in deduplication, error messages and logs.
|
|
184
184
|
*/
|
|
@@ -215,7 +215,7 @@ interface Plugin<in out TContext extends PluginContext<ResolvedConfig> = PluginC
|
|
|
215
215
|
* @param other - The other plugin to compare against.
|
|
216
216
|
* @returns `true` if the two plugins are the same, `false` otherwise.
|
|
217
217
|
*/
|
|
218
|
-
dedupe?: false | ((other: Plugin<
|
|
218
|
+
dedupe?: false | ((other: Plugin<any>) => boolean);
|
|
219
219
|
/**
|
|
220
220
|
* A list of pre-requisite plugins that must be loaded before this plugin can be used.
|
|
221
221
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-image-compression",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to optimize images used by the project.",
|
|
6
6
|
"repository": {
|
|
@@ -131,14 +131,14 @@
|
|
|
131
131
|
"jiti": "^2.6.1",
|
|
132
132
|
"sharp": "^0.34.5",
|
|
133
133
|
"svgo": "^4.0.0",
|
|
134
|
-
"powerlines": "^0.31.
|
|
134
|
+
"powerlines": "^0.31.2"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
137
|
"@storm-software/config": "^1.134.65",
|
|
138
|
-
"@powerlines/nx": "^0.10.
|
|
139
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
140
|
-
"@types/node": "^24.10.
|
|
138
|
+
"@powerlines/nx": "^0.10.65",
|
|
139
|
+
"@powerlines/plugin-plugin": "^0.12.17",
|
|
140
|
+
"@types/node": "^24.10.4"
|
|
141
141
|
},
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "a94a0a087014c5ac4d4f4faf928695f95abe097f"
|
|
144
144
|
}
|