grab-url 1.0.17 → 1.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/dist/download.cjs.js +1 -1
- package/dist/download.cjs.js.map +1 -1
- package/dist/download.es.js +1 -1
- package/dist/download.es.js.map +1 -1
- package/dist/grab-api.d.ts +3 -2
- package/package.json +1 -1
package/dist/grab-api.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ declare enum ColorName {
|
|
|
98
98
|
* @author [vtempest (2025)](https://github.com/vtempest/GRAB-URL)
|
|
99
99
|
* @see [🎯 Examples](https://grab.js.org/docs/Examples) [📑 Docs](https://grab.js.org)
|
|
100
100
|
*/
|
|
101
|
-
declare function grab_2<TResponse = any, TParams = any>(path: string, options
|
|
101
|
+
declare function grab_2<TResponse = any, TParams = any>(path: string, options?: GrabOptions<TResponse, TParams>): Promise<GrabResponse<TResponse>>;
|
|
102
102
|
|
|
103
103
|
declare namespace grab_2 {
|
|
104
104
|
var instance: (defaults?: {}) => (path: any, options?: {}) => Promise<any>;
|
|
@@ -264,7 +264,8 @@ export declare type GrabResponse<TResponse = any> = TResponse & {
|
|
|
264
264
|
* If true, uses `console.debug` (hidden in production). If false, uses `console.log`.
|
|
265
265
|
*
|
|
266
266
|
*/
|
|
267
|
-
|
|
267
|
+
declare function log_2(message?: string | object, options?: LogOptions): boolean;
|
|
268
|
+
export { log_2 as log }
|
|
268
269
|
|
|
269
270
|
export declare interface LogFunction {
|
|
270
271
|
/**
|