grab-url 1.0.14 → 1.0.15
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/package.json +1 -1
- package/src/grab-url.js +4 -4
package/package.json
CHANGED
package/src/grab-url.js
CHANGED
|
@@ -6,15 +6,15 @@ import { pipeline } from 'stream/promises';
|
|
|
6
6
|
import { Readable } from 'stream';
|
|
7
7
|
import readline from 'readline';
|
|
8
8
|
import { readFileSync } from 'fs';
|
|
9
|
-
import {
|
|
9
|
+
import { join } from 'path';
|
|
10
10
|
import spinners from './icons/cli/spinners.js';
|
|
11
|
-
import grab, { log } from '
|
|
12
|
-
import { pathToFileURL } from 'url';
|
|
11
|
+
import grab, { log } from '../dist/grab-api.es.js';
|
|
12
|
+
import { pathToFileURL, fileURLToPath } from 'url';
|
|
13
13
|
|
|
14
14
|
import cliProgress from 'cli-progress';
|
|
15
15
|
import chalk from 'chalk';
|
|
16
16
|
// Use cli-spinners for spinner animations
|
|
17
|
-
const __dirname = dirname(import.meta.url);
|
|
17
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
18
18
|
|
|
19
19
|
// --- ArgParser from grab-cli.js ---
|
|
20
20
|
class ArgParser {
|