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.
- package/esm2022/lib/services/firebase/storage.service.mjs +8 -3
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +8 -3
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/firebase/storage.service.d.ts +8 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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