valtech-components 4.0.973 → 4.0.974

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.
@@ -158,13 +158,20 @@ export declare class StorageService {
158
158
  * Elimina un archivo.
159
159
  *
160
160
  * @param path - Ruta del archivo a eliminar
161
+ * @param options.skipPrefix - Si es true, no aplica el prefix de appId (para
162
+ * borrar un archivo subido con `uploadAndGetUrl(path, file, { skipPrefix:
163
+ * true })` hay que pasar el mismo flag, o el path queda mal armado y el
164
+ * delete falla contra un objeto que no existe).
161
165
  *
162
166
  * @example
163
167
  * ```typescript
164
168
  * await storage.delete('images/old-photo.jpg');
169
+ * await storage.delete('apps/merotz/orgs/x/public/images/parts/y/z.png', { skipPrefix: true });
165
170
  * ```
166
171
  */
167
- delete(path: string): Promise<void>;
172
+ delete(path: string, options?: {
173
+ skipPrefix?: boolean;
174
+ }): Promise<void>;
168
175
  /**
169
176
  * Elimina múltiples archivos.
170
177
  *
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.973";
5
+ export declare const VERSION = "4.0.974";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.973",
3
+ "version": "4.0.974",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"