grab-url 0.9.132 → 0.9.133

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 CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "grab-url",
3
3
  "description": "📥 Generate Request to API from Browser",
4
4
  "type": "module",
5
- "version": "0.9.132",
5
+ "version": "0.9.133",
6
6
  "author": "vtempest",
7
7
  "license": "rights.institute/prosper",
8
8
  "repository": {
@@ -7,7 +7,13 @@ import { Readable } from 'stream';
7
7
  import cliProgress from 'cli-progress';
8
8
  import chalk from 'chalk';
9
9
  import ora from 'ora';
10
- import * as spinners from './spinners.json' assert { type: 'json' };
10
+ import { readFileSync } from 'fs';
11
+ import { fileURLToPath } from 'url';
12
+ import { dirname, join } from 'path';
13
+
14
+ const __filename = fileURLToPath(import.meta.url);
15
+ const __dirname = dirname(__filename);
16
+ const spinners = JSON.parse(readFileSync(join(__dirname, 'spinners.json'), 'utf8'));
11
17
  import readline from 'readline';
12
18
  import { GlobalKeyboardListener } from 'node-global-key-listener';
13
19