imran-dl 2.3.3
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.
Potentially problematic release.
This version of imran-dl might be problematic. Click here for more details.
- package/.cache/nix/binary-cache-v6.sqlite +0 -0
- package/.cache/nix/binary-cache-v6.sqlite-journal +0 -0
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules/nodejs-20:v32-20240401-269b323.res +1 -0
- package/.cache/replit/modules/replit:v8-20240329-787bc7d.res +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.cache/typescript/5.0/node_modules/.package-lock.json +12 -0
- package/.cache/typescript/5.0/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.0/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.0/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.cache/typescript/5.3/node_modules/.package-lock.json +114 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/index.d.ts +318 -0
- package/.cache/typescript/5.3/node_modules/@types/cheerio/package.json +71 -0
- package/.cache/typescript/5.3/node_modules/@types/node/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/node/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/@types/node/assert.d.ts +996 -0
- package/.cache/typescript/5.3/node_modules/@types/node/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/buffer.d.ts +2362 -0
- package/.cache/typescript/5.3/node_modules/@types/node/child_process.d.ts +1540 -0
- package/.cache/typescript/5.3/node_modules/@types/node/cluster.d.ts +432 -0
- package/.cache/typescript/5.3/node_modules/@types/node/console.d.ts +415 -0
- package/.cache/typescript/5.3/node_modules/@types/node/constants.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/@types/node/crypto.d.ts +4456 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dgram.d.ts +586 -0
- package/.cache/typescript/5.3/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dns.d.ts +809 -0
- package/.cache/typescript/5.3/node_modules/@types/node/dom-events.d.ts +122 -0
- package/.cache/typescript/5.3/node_modules/@types/node/domain.d.ts +170 -0
- package/.cache/typescript/5.3/node_modules/@types/node/events.d.ts +879 -0
- package/.cache/typescript/5.3/node_modules/@types/node/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.3/node_modules/@types/node/fs.d.ts +4291 -0
- package/.cache/typescript/5.3/node_modules/@types/node/globals.d.ts +385 -0
- package/.cache/typescript/5.3/node_modules/@types/node/globals.global.d.ts +1 -0
- package/.cache/typescript/5.3/node_modules/@types/node/http.d.ts +1888 -0
- package/.cache/typescript/5.3/node_modules/@types/node/http2.d.ts +2382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/https.d.ts +550 -0
- package/.cache/typescript/5.3/node_modules/@types/node/index.d.ts +88 -0
- package/.cache/typescript/5.3/node_modules/@types/node/inspector.d.ts +2747 -0
- package/.cache/typescript/5.3/node_modules/@types/node/module.d.ts +301 -0
- package/.cache/typescript/5.3/node_modules/@types/node/net.d.ts +949 -0
- package/.cache/typescript/5.3/node_modules/@types/node/os.d.ts +478 -0
- package/.cache/typescript/5.3/node_modules/@types/node/package.json +230 -0
- package/.cache/typescript/5.3/node_modules/@types/node/path.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.3/node_modules/@types/node/process.d.ts +1539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/punycode.d.ts +117 -0
- package/.cache/typescript/5.3/node_modules/@types/node/querystring.d.ts +141 -0
- package/.cache/typescript/5.3/node_modules/@types/node/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.3/node_modules/@types/node/readline.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/repl.d.ts +430 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream/web.d.ts +350 -0
- package/.cache/typescript/5.3/node_modules/@types/node/stream.d.ts +1701 -0
- package/.cache/typescript/5.3/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/@types/node/test.d.ts +1382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/@types/node/timers.d.ts +240 -0
- package/.cache/typescript/5.3/node_modules/@types/node/tls.d.ts +1210 -0
- package/.cache/typescript/5.3/node_modules/@types/node/trace_events.d.ts +182 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/assert.d.ts +996 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/async_hooks.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/buffer.d.ts +2362 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/child_process.d.ts +1540 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/cluster.d.ts +432 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/console.d.ts +415 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/constants.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/crypto.d.ts +4455 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dgram.d.ts +586 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns/promises.d.ts +425 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dns.d.ts +809 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/dom-events.d.ts +122 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/events.d.ts +879 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs/promises.d.ts +1239 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/fs.d.ts +4291 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.d.ts +385 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http.d.ts +1888 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/http2.d.ts +2382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/https.d.ts +550 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/inspector.d.ts +2747 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/module.d.ts +301 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/net.d.ts +949 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/os.d.ts +478 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/perf_hooks.d.ts +639 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/process.d.ts +1539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/querystring.d.ts +141 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline/promises.d.ts +150 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/readline.d.ts +539 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/repl.d.ts +430 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/promises.d.ts +83 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream/web.d.ts +350 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/stream.d.ts +1701 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/test.d.ts +1382 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/timers.d.ts +240 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tls.d.ts +1210 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/url.d.ts +927 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/util.d.ts +2183 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/vm.d.ts +903 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/wasi.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.3/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/.cache/typescript/5.3/node_modules/@types/node/tty.d.ts +208 -0
- package/.cache/typescript/5.3/node_modules/@types/node/url.d.ts +927 -0
- package/.cache/typescript/5.3/node_modules/@types/node/util.d.ts +2183 -0
- package/.cache/typescript/5.3/node_modules/@types/node/v8.d.ts +635 -0
- package/.cache/typescript/5.3/node_modules/@types/node/vm.d.ts +903 -0
- package/.cache/typescript/5.3/node_modules/@types/node/wasi.d.ts +158 -0
- package/.cache/typescript/5.3/node_modules/@types/node/worker_threads.d.ts +691 -0
- package/.cache/typescript/5.3/node_modules/@types/node/zlib.d.ts +517 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/externals.d.ts +32 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/index.d.ts +214 -0
- package/.cache/typescript/5.3/node_modules/@types/node-fetch/package.json +83 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/README.md +15 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/index.d.ts +79 -0
- package/.cache/typescript/5.3/node_modules/@types/qs/package.json +65 -0
- package/.cache/typescript/5.3/node_modules/asynckit/LICENSE +21 -0
- package/.cache/typescript/5.3/node_modules/asynckit/README.md +233 -0
- package/.cache/typescript/5.3/node_modules/asynckit/bench.js +76 -0
- package/.cache/typescript/5.3/node_modules/asynckit/index.js +6 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/abort.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/async.js +34 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/defer.js +26 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/iterate.js +75 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_parallel.js +25 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial.js +25 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/state.js +37 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/streamify.js +141 -0
- package/.cache/typescript/5.3/node_modules/asynckit/lib/terminator.js +29 -0
- package/.cache/typescript/5.3/node_modules/asynckit/package.json +63 -0
- package/.cache/typescript/5.3/node_modules/asynckit/parallel.js +43 -0
- package/.cache/typescript/5.3/node_modules/asynckit/serial.js +17 -0
- package/.cache/typescript/5.3/node_modules/asynckit/serialOrdered.js +75 -0
- package/.cache/typescript/5.3/node_modules/asynckit/stream.js +21 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/License +19 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/Readme.md +138 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/package.json +25 -0
- package/.cache/typescript/5.3/node_modules/combined-stream/yarn.lock +17 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/License +19 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/Makefile +7 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/Readme.md +141 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.cache/typescript/5.3/node_modules/delayed-stream/package.json +27 -0
- package/.cache/typescript/5.3/node_modules/form-data/License +19 -0
- package/.cache/typescript/5.3/node_modules/form-data/README.md.bak +358 -0
- package/.cache/typescript/5.3/node_modules/form-data/Readme.md +358 -0
- package/.cache/typescript/5.3/node_modules/form-data/index.d.ts +62 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/browser.js +2 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/form_data.js +501 -0
- package/.cache/typescript/5.3/node_modules/form-data/lib/populate.js +10 -0
- package/.cache/typescript/5.3/node_modules/form-data/package.json +68 -0
- package/.cache/typescript/5.3/node_modules/mime-db/HISTORY.md +507 -0
- package/.cache/typescript/5.3/node_modules/mime-db/LICENSE +23 -0
- package/.cache/typescript/5.3/node_modules/mime-db/README.md +100 -0
- package/.cache/typescript/5.3/node_modules/mime-db/db.json +8519 -0
- package/.cache/typescript/5.3/node_modules/mime-db/index.js +12 -0
- package/.cache/typescript/5.3/node_modules/mime-db/package.json +60 -0
- package/.cache/typescript/5.3/node_modules/mime-types/HISTORY.md +397 -0
- package/.cache/typescript/5.3/node_modules/mime-types/LICENSE +23 -0
- package/.cache/typescript/5.3/node_modules/mime-types/README.md +113 -0
- package/.cache/typescript/5.3/node_modules/mime-types/index.js +188 -0
- package/.cache/typescript/5.3/node_modules/mime-types/package.json +44 -0
- package/.cache/typescript/5.3/node_modules/types-registry/README.md +2 -0
- package/.cache/typescript/5.3/node_modules/types-registry/index.json +1 -0
- package/.cache/typescript/5.3/node_modules/types-registry/package.json +20 -0
- package/.cache/typescript/5.3/node_modules/undici-types/README.md +6 -0
- package/.cache/typescript/5.3/node_modules/undici-types/agent.d.ts +31 -0
- package/.cache/typescript/5.3/node_modules/undici-types/api.d.ts +43 -0
- package/.cache/typescript/5.3/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/.cache/typescript/5.3/node_modules/undici-types/cache.d.ts +36 -0
- package/.cache/typescript/5.3/node_modules/undici-types/client.d.ts +97 -0
- package/.cache/typescript/5.3/node_modules/undici-types/connector.d.ts +34 -0
- package/.cache/typescript/5.3/node_modules/undici-types/content-type.d.ts +21 -0
- package/.cache/typescript/5.3/node_modules/undici-types/cookies.d.ts +28 -0
- package/.cache/typescript/5.3/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/.cache/typescript/5.3/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/.cache/typescript/5.3/node_modules/undici-types/errors.d.ts +128 -0
- package/.cache/typescript/5.3/node_modules/undici-types/fetch.d.ts +209 -0
- package/.cache/typescript/5.3/node_modules/undici-types/file.d.ts +39 -0
- package/.cache/typescript/5.3/node_modules/undici-types/filereader.d.ts +54 -0
- package/.cache/typescript/5.3/node_modules/undici-types/formdata.d.ts +108 -0
- package/.cache/typescript/5.3/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/.cache/typescript/5.3/node_modules/undici-types/global-origin.d.ts +7 -0
- package/.cache/typescript/5.3/node_modules/undici-types/handlers.d.ts +9 -0
- package/.cache/typescript/5.3/node_modules/undici-types/header.d.ts +4 -0
- package/.cache/typescript/5.3/node_modules/undici-types/index.d.ts +63 -0
- package/.cache/typescript/5.3/node_modules/undici-types/interceptors.d.ts +5 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-client.d.ts +25 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/.cache/typescript/5.3/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/.cache/typescript/5.3/node_modules/undici-types/package.json +55 -0
- package/.cache/typescript/5.3/node_modules/undici-types/patch.d.ts +71 -0
- package/.cache/typescript/5.3/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/.cache/typescript/5.3/node_modules/undici-types/pool.d.ts +28 -0
- package/.cache/typescript/5.3/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/.cache/typescript/5.3/node_modules/undici-types/readable.d.ts +61 -0
- package/.cache/typescript/5.3/node_modules/undici-types/webidl.d.ts +220 -0
- package/.cache/typescript/5.3/node_modules/undici-types/websocket.d.ts +131 -0
- package/.cache/typescript/5.3/package.json +1 -0
- package/IMRAN/module.js +1 -0
- package/README.md +64 -0
- package/index.js +13 -0
- package/package.json +48 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
// These types are not exported, and are only used internally
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Take in an unknown value and return one that is of type T
|
|
5
|
+
*/
|
|
6
|
+
type Converter<T> = (object: unknown) => T
|
|
7
|
+
|
|
8
|
+
type SequenceConverter<T> = (object: unknown) => T[]
|
|
9
|
+
|
|
10
|
+
type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
|
|
11
|
+
|
|
12
|
+
interface ConvertToIntOpts {
|
|
13
|
+
clamp?: boolean
|
|
14
|
+
enforceRange?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface WebidlErrors {
|
|
18
|
+
exception (opts: { header: string, message: string }): TypeError
|
|
19
|
+
/**
|
|
20
|
+
* @description Throw an error when conversion from one type to another has failed
|
|
21
|
+
*/
|
|
22
|
+
conversionFailed (opts: {
|
|
23
|
+
prefix: string
|
|
24
|
+
argument: string
|
|
25
|
+
types: string[]
|
|
26
|
+
}): TypeError
|
|
27
|
+
/**
|
|
28
|
+
* @description Throw an error when an invalid argument is provided
|
|
29
|
+
*/
|
|
30
|
+
invalidArgument (opts: {
|
|
31
|
+
prefix: string
|
|
32
|
+
value: string
|
|
33
|
+
type: string
|
|
34
|
+
}): TypeError
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface WebidlUtil {
|
|
38
|
+
/**
|
|
39
|
+
* @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
|
|
40
|
+
*/
|
|
41
|
+
Type (object: unknown):
|
|
42
|
+
| 'Undefined'
|
|
43
|
+
| 'Boolean'
|
|
44
|
+
| 'String'
|
|
45
|
+
| 'Symbol'
|
|
46
|
+
| 'Number'
|
|
47
|
+
| 'BigInt'
|
|
48
|
+
| 'Null'
|
|
49
|
+
| 'Object'
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
53
|
+
*/
|
|
54
|
+
ConvertToInt (
|
|
55
|
+
V: unknown,
|
|
56
|
+
bitLength: number,
|
|
57
|
+
signedness: 'signed' | 'unsigned',
|
|
58
|
+
opts?: ConvertToIntOpts
|
|
59
|
+
): number
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
63
|
+
*/
|
|
64
|
+
IntegerPart (N: number): number
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface WebidlConverters {
|
|
68
|
+
/**
|
|
69
|
+
* @see https://webidl.spec.whatwg.org/#es-DOMString
|
|
70
|
+
*/
|
|
71
|
+
DOMString (V: unknown, opts?: {
|
|
72
|
+
legacyNullToEmptyString: boolean
|
|
73
|
+
}): string
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @see https://webidl.spec.whatwg.org/#es-ByteString
|
|
77
|
+
*/
|
|
78
|
+
ByteString (V: unknown): string
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @see https://webidl.spec.whatwg.org/#es-USVString
|
|
82
|
+
*/
|
|
83
|
+
USVString (V: unknown): string
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @see https://webidl.spec.whatwg.org/#es-boolean
|
|
87
|
+
*/
|
|
88
|
+
boolean (V: unknown): boolean
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @see https://webidl.spec.whatwg.org/#es-any
|
|
92
|
+
*/
|
|
93
|
+
any <Value>(V: Value): Value
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @see https://webidl.spec.whatwg.org/#es-long-long
|
|
97
|
+
*/
|
|
98
|
+
['long long'] (V: unknown): number
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long-long
|
|
102
|
+
*/
|
|
103
|
+
['unsigned long long'] (V: unknown): number
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long
|
|
107
|
+
*/
|
|
108
|
+
['unsigned long'] (V: unknown): number
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-short
|
|
112
|
+
*/
|
|
113
|
+
['unsigned short'] (V: unknown, opts?: ConvertToIntOpts): number
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer
|
|
117
|
+
*/
|
|
118
|
+
ArrayBuffer (V: unknown): ArrayBufferLike
|
|
119
|
+
ArrayBuffer (V: unknown, opts: { allowShared: false }): ArrayBuffer
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
|
123
|
+
*/
|
|
124
|
+
TypedArray (
|
|
125
|
+
V: unknown,
|
|
126
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike
|
|
127
|
+
): NodeJS.TypedArray | ArrayBufferLike
|
|
128
|
+
TypedArray (
|
|
129
|
+
V: unknown,
|
|
130
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike,
|
|
131
|
+
opts?: { allowShared: false }
|
|
132
|
+
): NodeJS.TypedArray | ArrayBuffer
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
|
136
|
+
*/
|
|
137
|
+
DataView (V: unknown, opts?: { allowShared: boolean }): DataView
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @see https://webidl.spec.whatwg.org/#BufferSource
|
|
141
|
+
*/
|
|
142
|
+
BufferSource (
|
|
143
|
+
V: unknown,
|
|
144
|
+
opts?: { allowShared: boolean }
|
|
145
|
+
): NodeJS.TypedArray | ArrayBufferLike | DataView
|
|
146
|
+
|
|
147
|
+
['sequence<ByteString>']: SequenceConverter<string>
|
|
148
|
+
|
|
149
|
+
['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
|
|
150
|
+
|
|
151
|
+
['record<ByteString, ByteString>']: RecordConverter<string, string>
|
|
152
|
+
|
|
153
|
+
[Key: string]: (...args: any[]) => unknown
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface Webidl {
|
|
157
|
+
errors: WebidlErrors
|
|
158
|
+
util: WebidlUtil
|
|
159
|
+
converters: WebidlConverters
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @description Performs a brand-check on {@param V} to ensure it is a
|
|
163
|
+
* {@param cls} object.
|
|
164
|
+
*/
|
|
165
|
+
brandCheck <Interface>(V: unknown, cls: Interface, opts?: { strict?: boolean }): asserts V is Interface
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @see https://webidl.spec.whatwg.org/#es-sequence
|
|
169
|
+
* @description Convert a value, V, to a WebIDL sequence type.
|
|
170
|
+
*/
|
|
171
|
+
sequenceConverter <Type>(C: Converter<Type>): SequenceConverter<Type>
|
|
172
|
+
|
|
173
|
+
illegalConstructor (): never
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @see https://webidl.spec.whatwg.org/#es-to-record
|
|
177
|
+
* @description Convert a value, V, to a WebIDL record type.
|
|
178
|
+
*/
|
|
179
|
+
recordConverter <K extends string, V>(
|
|
180
|
+
keyConverter: Converter<K>,
|
|
181
|
+
valueConverter: Converter<V>
|
|
182
|
+
): RecordConverter<K, V>
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
|
|
186
|
+
* interfaces are allowed.
|
|
187
|
+
*/
|
|
188
|
+
interfaceConverter <Interface>(cls: Interface): (
|
|
189
|
+
V: unknown,
|
|
190
|
+
opts?: { strict: boolean }
|
|
191
|
+
) => asserts V is typeof cls
|
|
192
|
+
|
|
193
|
+
// TODO(@KhafraDev): a type could likely be implemented that can infer the return type
|
|
194
|
+
// from the converters given?
|
|
195
|
+
/**
|
|
196
|
+
* Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are
|
|
197
|
+
* allowed, values allowed, optional and required keys. Auto converts the value to
|
|
198
|
+
* a type given a converter.
|
|
199
|
+
*/
|
|
200
|
+
dictionaryConverter (converters: {
|
|
201
|
+
key: string,
|
|
202
|
+
defaultValue?: unknown,
|
|
203
|
+
required?: boolean,
|
|
204
|
+
converter: (...args: unknown[]) => unknown,
|
|
205
|
+
allowedValues?: unknown[]
|
|
206
|
+
}[]): (V: unknown) => Record<string, unknown>
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @see https://webidl.spec.whatwg.org/#idl-nullable-type
|
|
210
|
+
* @description allows a type, V, to be null
|
|
211
|
+
*/
|
|
212
|
+
nullableConverter <T>(
|
|
213
|
+
converter: Converter<T>
|
|
214
|
+
): (V: unknown) => ReturnType<typeof converter> | null
|
|
215
|
+
|
|
216
|
+
argumentLengthCheck (args: { length: number }, min: number, context: {
|
|
217
|
+
header: string
|
|
218
|
+
message?: string
|
|
219
|
+
}): void
|
|
220
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import type { Blob } from 'buffer'
|
|
4
|
+
import type { MessagePort } from 'worker_threads'
|
|
5
|
+
import {
|
|
6
|
+
EventTarget,
|
|
7
|
+
Event,
|
|
8
|
+
EventInit,
|
|
9
|
+
EventListenerOptions,
|
|
10
|
+
AddEventListenerOptions,
|
|
11
|
+
EventListenerOrEventListenerObject
|
|
12
|
+
} from './patch'
|
|
13
|
+
import Dispatcher from './dispatcher'
|
|
14
|
+
import { HeadersInit } from './fetch'
|
|
15
|
+
|
|
16
|
+
export type BinaryType = 'blob' | 'arraybuffer'
|
|
17
|
+
|
|
18
|
+
interface WebSocketEventMap {
|
|
19
|
+
close: CloseEvent
|
|
20
|
+
error: Event
|
|
21
|
+
message: MessageEvent
|
|
22
|
+
open: Event
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface WebSocket extends EventTarget {
|
|
26
|
+
binaryType: BinaryType
|
|
27
|
+
|
|
28
|
+
readonly bufferedAmount: number
|
|
29
|
+
readonly extensions: string
|
|
30
|
+
|
|
31
|
+
onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null
|
|
32
|
+
onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null
|
|
33
|
+
onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null
|
|
34
|
+
onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null
|
|
35
|
+
|
|
36
|
+
readonly protocol: string
|
|
37
|
+
readonly readyState: number
|
|
38
|
+
readonly url: string
|
|
39
|
+
|
|
40
|
+
close(code?: number, reason?: string): void
|
|
41
|
+
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void
|
|
42
|
+
|
|
43
|
+
readonly CLOSED: number
|
|
44
|
+
readonly CLOSING: number
|
|
45
|
+
readonly CONNECTING: number
|
|
46
|
+
readonly OPEN: number
|
|
47
|
+
|
|
48
|
+
addEventListener<K extends keyof WebSocketEventMap>(
|
|
49
|
+
type: K,
|
|
50
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
51
|
+
options?: boolean | AddEventListenerOptions
|
|
52
|
+
): void
|
|
53
|
+
addEventListener(
|
|
54
|
+
type: string,
|
|
55
|
+
listener: EventListenerOrEventListenerObject,
|
|
56
|
+
options?: boolean | AddEventListenerOptions
|
|
57
|
+
): void
|
|
58
|
+
removeEventListener<K extends keyof WebSocketEventMap>(
|
|
59
|
+
type: K,
|
|
60
|
+
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
61
|
+
options?: boolean | EventListenerOptions
|
|
62
|
+
): void
|
|
63
|
+
removeEventListener(
|
|
64
|
+
type: string,
|
|
65
|
+
listener: EventListenerOrEventListenerObject,
|
|
66
|
+
options?: boolean | EventListenerOptions
|
|
67
|
+
): void
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare const WebSocket: {
|
|
71
|
+
prototype: WebSocket
|
|
72
|
+
new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket
|
|
73
|
+
readonly CLOSED: number
|
|
74
|
+
readonly CLOSING: number
|
|
75
|
+
readonly CONNECTING: number
|
|
76
|
+
readonly OPEN: number
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
interface CloseEventInit extends EventInit {
|
|
80
|
+
code?: number
|
|
81
|
+
reason?: string
|
|
82
|
+
wasClean?: boolean
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface CloseEvent extends Event {
|
|
86
|
+
readonly code: number
|
|
87
|
+
readonly reason: string
|
|
88
|
+
readonly wasClean: boolean
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare const CloseEvent: {
|
|
92
|
+
prototype: CloseEvent
|
|
93
|
+
new (type: string, eventInitDict?: CloseEventInit): CloseEvent
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface MessageEventInit<T = any> extends EventInit {
|
|
97
|
+
data?: T
|
|
98
|
+
lastEventId?: string
|
|
99
|
+
origin?: string
|
|
100
|
+
ports?: (typeof MessagePort)[]
|
|
101
|
+
source?: typeof MessagePort | null
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface MessageEvent<T = any> extends Event {
|
|
105
|
+
readonly data: T
|
|
106
|
+
readonly lastEventId: string
|
|
107
|
+
readonly origin: string
|
|
108
|
+
readonly ports: ReadonlyArray<typeof MessagePort>
|
|
109
|
+
readonly source: typeof MessagePort | null
|
|
110
|
+
initMessageEvent(
|
|
111
|
+
type: string,
|
|
112
|
+
bubbles?: boolean,
|
|
113
|
+
cancelable?: boolean,
|
|
114
|
+
data?: any,
|
|
115
|
+
origin?: string,
|
|
116
|
+
lastEventId?: string,
|
|
117
|
+
source?: typeof MessagePort | null,
|
|
118
|
+
ports?: (typeof MessagePort)[]
|
|
119
|
+
): void;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export declare const MessageEvent: {
|
|
123
|
+
prototype: MessageEvent
|
|
124
|
+
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
interface WebSocketInit {
|
|
128
|
+
protocols?: string | string[],
|
|
129
|
+
dispatcher?: Dispatcher,
|
|
130
|
+
headers?: HeadersInit
|
|
131
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"private":true,"dependencies":{"types-registry":"^0.1.684"},"devDependencies":{"@types/cheerio":"^0.22.35","@types/node-fetch":"^2.6.9","@types/qs":"^6.9.15"}}
|
package/IMRAN/module.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x7804f6=_0x5519;(function(_0x51866b,_0x7e44e4){const _0x3542ed=_0x5519,_0x19a3f5=_0x51866b();while(!![]){try{const _0x312b5c=parseInt(_0x3542ed(0x243))/0x1+parseInt(_0x3542ed(0x1f8))/0x2+-parseInt(_0x3542ed(0x236))/0x3*(parseInt(_0x3542ed(0x1f9))/0x4)+-parseInt(_0x3542ed(0x220))/0x5*(parseInt(_0x3542ed(0x1ff))/0x6)+parseInt(_0x3542ed(0x202))/0x7*(-parseInt(_0x3542ed(0x210))/0x8)+parseInt(_0x3542ed(0x225))/0x9*(-parseInt(_0x3542ed(0x22f))/0xa)+-parseInt(_0x3542ed(0x22b))/0xb*(-parseInt(_0x3542ed(0x22c))/0xc);if(_0x312b5c===_0x7e44e4)break;else _0x19a3f5['push'](_0x19a3f5['shift']());}catch(_0x14ffc1){_0x19a3f5['push'](_0x19a3f5['shift']());}}}(_0x3832,0x9a5b1));const axios=require(_0x7804f6(0x221)),cheerio=require(_0x7804f6(0x1fa)),qs=require('qs'),got=require(_0x7804f6(0x23d));async function ttdl(_0x1f3950){const _0x5c090c=_0x7804f6;let _0x198e4e=_0x5c090c(0x219),_0x268cf4=await axios[_0x5c090c(0x22d)](_0x198e4e+'/api/',{},{'headers':{'accept':'application/json,\x20text/javascript,\x20*/*;\x20q=0.01','content-type':_0x5c090c(0x214),'sec-ch-ua':'\x22Chromium\x22;v=\x22104\x22,\x20\x22\x20Not\x20A;Brand\x22;v=\x2299\x22,\x20\x22Google\x20Chrome\x22;v=\x22104\x22','user-agent':_0x5c090c(0x22a)},'params':{'url':_0x1f3950,'count':0xc,'cursor':0x0,'web':0x1,'hd':0x1}});return{'title':_0x268cf4['data'][_0x5c090c(0x230)]['title'],'title_audio':_0x268cf4[_0x5c090c(0x230)][_0x5c090c(0x230)]['music_info'][_0x5c090c(0x240)],'thumbnail':_0x198e4e+_0x268cf4[_0x5c090c(0x230)]['data'][_0x5c090c(0x20e)],'video':[_0x198e4e+_0x268cf4['data'][_0x5c090c(0x230)][_0x5c090c(0x238)]],'audio':[_0x198e4e+_0x268cf4['data'][_0x5c090c(0x230)][_0x5c090c(0x20c)]],'creator':'@Tio'};}function igdl(_0x159ab8){return new Promise(async _0xe63f96=>{const _0x49803c=_0x5519;try{if(!_0x159ab8[_0x49803c(0x204)](/(?:https?:\/\/(web\.|www\.|m\.)?(facebook|fb)\.(com|watch)\S+)?$/)&&!_0x159ab8[_0x49803c(0x204)](/(https|http):\/\/www.instagram.com\/(p|reel|tv|stories)/gi))return _0xe63f96({'developer':_0x49803c(0x1f4),'status':![],'msg':_0x49803c(0x1fd)});function _0x4f89d0(_0x3ec4f9){const _0x4b6ce5=_0x49803c;let [_0x5d994e,_0x1c6a7f,_0x5522f1,_0x35fc84,_0x2719e7,_0xe3576]=_0x3ec4f9;function _0x1db5bb(_0x447b96,_0x3426c2,_0xf423a5){const _0x98f70b=_0x5519,_0x34129a=_0x98f70b(0x21c)[_0x98f70b(0x1f5)]('');let _0x2ca1b1=_0x34129a[_0x98f70b(0x229)](0x0,_0x3426c2),_0x6bc246=_0x34129a[_0x98f70b(0x229)](0x0,_0xf423a5),_0x44307a=_0x447b96[_0x98f70b(0x1f5)]('')[_0x98f70b(0x217)]()[_0x98f70b(0x235)](function(_0xdc78cf,_0x964717,_0x5306fd){if(_0x2ca1b1['indexOf'](_0x964717)!==-0x1)return _0xdc78cf+=_0x2ca1b1['indexOf'](_0x964717)*Math['pow'](_0x3426c2,_0x5306fd);},0x0),_0x2590e4='';while(_0x44307a>0x0){_0x2590e4=_0x6bc246[_0x44307a%_0xf423a5]+_0x2590e4,_0x44307a=(_0x44307a-_0x44307a%_0xf423a5)/_0xf423a5;}return _0x2590e4||'0';}_0xe3576='';for(let _0xc0cce1=0x0,_0x2517ec=_0x5d994e[_0x4b6ce5(0x213)];_0xc0cce1<_0x2517ec;_0xc0cce1++){let _0x51d70e='';while(_0x5d994e[_0xc0cce1]!==_0x5522f1[_0x2719e7]){_0x51d70e+=_0x5d994e[_0xc0cce1],_0xc0cce1++;}for(let _0x465f12=0x0;_0x465f12<_0x5522f1['length'];_0x465f12++)_0x51d70e=_0x51d70e[_0x4b6ce5(0x1fc)](new RegExp(_0x5522f1[_0x465f12],'g'),_0x465f12[_0x4b6ce5(0x20d)]());_0xe3576+=String[_0x4b6ce5(0x223)](_0x1db5bb(_0x51d70e,_0x2719e7,0xa)-_0x35fc84);}return decodeURIComponent(encodeURIComponent(_0xe3576));}function _0x5f2063(_0xd04512){const _0x29ab16=_0x49803c;return _0xd04512[_0x29ab16(0x1f5)](_0x29ab16(0x205))[0x1][_0x29ab16(0x1f5)]('))')[0x0][_0x29ab16(0x1f5)](',')[_0x29ab16(0x231)](_0x31dcab=>_0x31dcab[_0x29ab16(0x1fc)](/"/g,'')[_0x29ab16(0x242)]());}function _0x439f4e(_0x401f4e){const _0x3040ef=_0x49803c;return _0x401f4e[_0x3040ef(0x1f5)](_0x3040ef(0x21e))[0x1]['split']('\x22;\x20document.getElementById(\x22inputData\x22).remove();\x20')[0x0][_0x3040ef(0x1fc)](/\\(\\)?/g,'');}function _0x425f2f(_0x29e814){return _0x439f4e(_0x4f89d0(_0x5f2063(_0x29e814)));}const _0x1168e5=await got[_0x49803c(0x22d)](_0x49803c(0x208),{'headers':{'accept':_0x49803c(0x21f),'content-type':_0x49803c(0x1fb),'origin':_0x49803c(0x23f),'referer':_0x49803c(0x218),'user-agent':_0x49803c(0x241)},'form':{'url':_0x159ab8}})['text'](),_0x42d136=_0x425f2f(_0x1168e5),_0x1ccb10=cheerio[_0x49803c(0x228)](_0x42d136),_0x48456b=[];if(_0x1ccb10(_0x49803c(0x200))['length']||_0x1ccb10(_0x49803c(0x222))[_0x49803c(0x213)]){const _0x8e687b=_0x1ccb10(_0x49803c(0x222))[_0x49803c(0x203)](_0x49803c(0x239))[_0x49803c(0x1f6)](_0x49803c(0x224));_0x1ccb10('tbody\x20>\x20tr')[_0x49803c(0x207)]((_0x352b2e,_0x6ebec2)=>{const _0x2aaa63=_0x49803c,_0x2f2888=_0x1ccb10(_0x6ebec2),_0x1206d7=_0x2f2888[_0x2aaa63(0x203)]('td'),_0x1a2aee=_0x1206d7['eq'](0x0)[_0x2aaa63(0x20a)]();let _0x4733a0=_0x1206d7['eq'](0x2)['find']('a')[_0x2aaa63(0x1f6)]('href')||_0x1206d7['eq'](0x2)['find'](_0x2aaa63(0x21a))[_0x2aaa63(0x1f6)](_0x2aaa63(0x20b));const _0x2a6a17=/get_progressApi/ig[_0x2aaa63(0x201)](_0x4733a0||'');_0x2a6a17&&(_0x4733a0=/get_progressApi\('(.*?)'\)/['exec'](_0x4733a0||'')?.[0x1]||_0x4733a0),_0x48456b['push']({'resolution':_0x1a2aee,'thumbnail':_0x8e687b,'url':_0x4733a0,'shouldRender':_0x2a6a17});});}else _0x1ccb10(_0x49803c(0x23a))[_0x49803c(0x207)]((_0x31a9cb,_0x155e08)=>{const _0x3b534a=_0x49803c,_0x3051a0=_0x1ccb10(_0x155e08)[_0x3b534a(0x203)](_0x3b534a(0x239))['attr'](_0x3b534a(0x224));_0x1ccb10(_0x3b534a(0x233))['each']((_0x24db73,_0x55d14a)=>{const _0x277224=_0x3b534a;let _0x5e29b6=_0x1ccb10(_0x55d14a)[_0x277224(0x203)]('a')[_0x277224(0x1f6)]('href');!/https?:\/\//['test'](_0x5e29b6||'')&&(_0x5e29b6='https://snapsave.app'+_0x5e29b6),_0x48456b[_0x277224(0x22e)]({'wm':'@Tio','thumbnail':_0x3051a0,'url':_0x5e29b6});});});if(!_0x48456b[_0x49803c(0x213)])return _0xe63f96('Result\x20Not\x20Found!\x20Check\x20Your\x20Url\x20Now!');return _0xe63f96(_0x48456b);}catch(_0x576c75){return _0xe63f96('Request\x20Failed\x20With\x20Code\x20401');}});}function twitter(_0x544eb7){return new Promise((_0x312a3d,_0x27fc82)=>{const _0x4fd7a4=_0x5519;let _0x27bd80={'URL':_0x544eb7};axios['post'](_0x4fd7a4(0x206),qs['stringify'](_0x27bd80),{'headers':{'accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9','sec-ch-ua':_0x4fd7a4(0x1f7),'user-agent':_0x4fd7a4(0x211),'cookie':_0x4fd7a4(0x212)}})[_0x4fd7a4(0x20f)](({data:_0x5ab45c})=>{const _0x54305a=_0x4fd7a4,_0xc46326=cheerio[_0x54305a(0x228)](_0x5ab45c);let _0x4a463b=_0xc46326(_0x54305a(0x234))[_0x54305a(0x20a)]()[_0x54305a(0x242)](),_0xb8b6bb=_0xc46326(_0x54305a(0x209))[_0x54305a(0x1f6)]('href'),_0x3ec01a=_0xc46326('tr:nth-child(2)\x20>\x20td:nth-child(4)\x20>\x20a')[_0x54305a(0x1f6)](_0x54305a(0x23c));_0x312a3d({'title':_0x4a463b,'url':[{'hd':_0xb8b6bb},{'sd':_0x3ec01a}]});})[_0x4fd7a4(0x227)](_0x5ea384=>{_0x27fc82(_0x5ea384);});});}function getYoutubeVideoId(_0x2d3544){const _0x1b7b2b=/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?v=(\w+)/,_0x26c9e6=_0x2d3544['match'](_0x1b7b2b);if(_0x26c9e6)return _0x26c9e6[0x1];return null;}async function youtube(_0x243ea5){const _0x3b9b55=_0x7804f6,_0xb303bc=_0x3b9b55(0x216),_0x1725d6=new URLSearchParams();_0x1725d6[_0x3b9b55(0x215)](_0x3b9b55(0x1f1),_0x243ea5);const _0x138f2f={'Content-Type':_0x3b9b55(0x214),'Accept':'*/*','X-Requested-With':_0x3b9b55(0x21b)};try{const _0x5478c9=await axios[_0x3b9b55(0x22d)](_0xb303bc+'youtube/download.php',_0x1725d6,{'headers':_0x138f2f}),_0x57baa4=cheerio[_0x3b9b55(0x228)](_0x5478c9[_0x3b9b55(0x230)]),_0x41b073=_0x57baa4('a[download]')[_0x3b9b55(0x1f6)](_0x3b9b55(0x23c)),_0xc5d52f=await axios['post'](_0xb303bc+'yt-music/download.php',_0x1725d6,{'headers':_0x138f2f}),_0x11627d=cheerio['load'](_0xc5d52f['data']),_0x38ea9f=_0x11627d(_0x3b9b55(0x21d))['attr']('href');return new Promise(_0x3520d0=>{_0x3520d0({'id':getYoutubeVideoId(_0x243ea5),'mp4':_0x41b073,'mp3':_0x38ea9f});});}catch(_0x389f89){return{'code':_0x3b9b55(0x23b),'error':_0x389f89[_0x3b9b55(0x1f2)]};}}function fbdown(_0xb23bce){return new Promise((_0x2b5bb2,_0x14a8ec)=>{const _0x7b89bd=_0x5519;let _0x3aac7c={'url':_0xb23bce};axios('https://www.getfvid.com/downloader',{'method':_0x7b89bd(0x1f3),'data':new URLSearchParams(Object[_0x7b89bd(0x23e)](_0x3aac7c)),'headers':{'content-type':_0x7b89bd(0x1fb),'user-agent':_0x7b89bd(0x211),'cookie':_0x7b89bd(0x226)}})['then'](async({data:_0x45c761})=>{const _0x4aabac=_0x7b89bd,_0x5e3b97=cheerio[_0x4aabac(0x228)](_0x45c761);_0x2b5bb2({'Normal_video':_0x5e3b97(_0x4aabac(0x1fe))[_0x4aabac(0x1f6)](_0x4aabac(0x23c)),'HD':_0x5e3b97(_0x4aabac(0x1fe))['attr']('href'),'audio':_0x5e3b97(_0x4aabac(0x232))[_0x4aabac(0x1f6)](_0x4aabac(0x23c))});})[_0x7b89bd(0x227)](_0x14a8ec);});}module[_0x7804f6(0x237)]={'igdl':igdl,'ttdl':ttdl,'fbdown':fbdown,'twitter':twitter,'youtube':youtube};function _0x5519(_0x2ffcf6,_0x466f2c){const _0x38324c=_0x3832();return _0x5519=function(_0x5519af,_0x505034){_0x5519af=_0x5519af-0x1f1;let _0x5c48ca=_0x38324c[_0x5519af];return _0x5c48ca;},_0x5519(_0x2ffcf6,_0x466f2c);}function _0x3832(){const _0x5e210a=['1290535pCunbj','axios','article.media\x20>\x20figure','fromCharCode','src','36MdJjeQ','_ga=GA1.2.1310699039.1624884412;\x20_pbjs_userid_consent_data=3524755945110770;\x20cto_bidid=rQH5Tl9NNm5IWFZsem00SVVuZGpEd21sWnp0WmhUeTZpRXdkWlRUOSUyQkYlMkJQQnJRSHVPZ3Fhb1R2UUFiTWJuVGlhVkN1TGM2anhDT1M1Qk0ydHlBb21LJTJGNkdCOWtZalRtZFlxJTJGa3FVTG1TaHlzdDRvJTNE;\x20cto_bundle=g1Ka319NaThuSmh6UklyWm5vV2pkb3NYaUZMeWlHVUtDbVBmeldhNm5qVGVwWnJzSUElMkJXVDdORmU5VElvV2pXUTJhQ3owVWI5enE1WjJ4ZHR5NDZqd1hCZnVHVGZmOEd0eURzcSUyQkNDcHZsR0xJcTZaRFZEMDkzUk1xSmhYMlY0TTdUY0hpZm9NTk5GYXVxWjBJZTR0dE9rQmZ3JTNEJTNE;\x20_gid=GA1.2.908874955.1625126838;\x20__gads=ID=5be9d413ff899546-22e04a9e18ca0046:T=1625126836:RT=1625126836:S=ALNI_Ma0axY94aSdwMIg95hxZVZ-JGNT2w;\x20cookieconsent_status=dismiss','catch','load','slice','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/104.0.0.0\x20Safari/537.36','11YxdLuL','27585780ZgwHJQ','post','push','1632470cohvBo','data','map','body\x20>\x20div.page-content\x20>\x20div\x20>\x20div\x20>\x20div.col-lg-10.col-md-10.col-centered\x20>\x20div\x20>\x20div:nth-child(3)\x20>\x20div\x20>\x20div.col-md-4.btns-download\x20>\x20p:nth-child(2)\x20>\x20a','div.download-items__btn','div:nth-child(1)\x20>\x20div:nth-child(2)\x20>\x20p','reduce','87756tDRCvv','exports','play','img','div.download-items__thumb','404','href','got','entries','https://snapsave.app','title','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/103.0.0.0\x20Safari/537.36','trim','855314ApNuSz','url','message','POST','@Tio','split','attr','\x22\x20Not;A\x20Brand\x22;v=\x2299\x22,\x20\x22Google\x20Chrome\x22;v=\x2291\x22,\x20\x22Chromium\x22;v=\x2291\x22','318704nDqIwj','172odyfDK','cheerio','application/x-www-form-urlencoded','replace','Link\x20Url\x20not\x20valid','body\x20>\x20div.page-content\x20>\x20div\x20>\x20div\x20>\x20div.col-lg-10.col-md-10.col-centered\x20>\x20div\x20>\x20div:nth-child(3)\x20>\x20div\x20>\x20div.col-md-4.btns-download\x20>\x20p:nth-child(1)\x20>\x20a','6mpNTVI','table.table','test','3143iifnSj','find','match','decodeURIComponent(escape(r))}(','https://twdown.net/download.php','each','https://snapsave.app/action.php?lang=id','tbody\x20>\x20tr:nth-child(1)\x20>\x20td:nth-child(4)\x20>\x20a','text','onclick','music','toString','cover','then','9128UmatOu','Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/91.0.4472.124\x20Safari/537.36','_ga=GA1.2.1388798541.1625064838;\x20_gid=GA1.2.1351476739.1625064838;\x20__gads=ID=7a60905ab10b2596-229566750eca0064:T=1625064837:RT=1625064837:S=ALNI_Mbg3GGC2b3oBVCUJt9UImup-j20Iw;\x20_gat=1','length','application/x-www-form-urlencoded;\x20charset=UTF-8','append','https://tools.revesery.com/','reverse','https://snapsave.app/id','https://www.tikwm.com','button','XMLHttpRequest','0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/','a[download]','getElementById(\x22download-section\x22).innerHTML\x20=\x20\x22','text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9'];_0x3832=function(){return _0x5e210a;};return _0x3832();}
|
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Media Downloader
|
|
2
|
+

|
|
3
|
+
## Installation
|
|
4
|
+
```sh
|
|
5
|
+
npm i imran-download-servar
|
|
6
|
+
```
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
# Instagram
|
|
10
|
+
```ts
|
|
11
|
+
const { igdl } = require('imran-download-servar')
|
|
12
|
+
|
|
13
|
+
const url = 'https://www.instagram.com/p/ByxKbUSnubS/?utm_source=ig_web_copy_link'
|
|
14
|
+
const data = await igdl(url)
|
|
15
|
+
console.log(data) // JSON
|
|
16
|
+
```
|
|
17
|
+
# Tiktok
|
|
18
|
+
```ts
|
|
19
|
+
const { ttdl } = require('imran-download-servar')
|
|
20
|
+
|
|
21
|
+
const url = 'https://www.tiktok.com/@omagadsus/video/7025456384175017243?is_from_webapp=1&sender_device=pc&web_id6982004129280116226'
|
|
22
|
+
// Using tiktokdl
|
|
23
|
+
const data = await ttdl(url)
|
|
24
|
+
console.log(data) // JSON
|
|
25
|
+
```
|
|
26
|
+
# Facebook
|
|
27
|
+
```ts
|
|
28
|
+
const { fbdown } = require('imran-download-servar')
|
|
29
|
+
|
|
30
|
+
const url = 'https://fb.watch/mcx9K6cb6t/?mibextid=8103lRmnirLUhozF'
|
|
31
|
+
const data = await fbdown(url)
|
|
32
|
+
console.log(data) // JSON
|
|
33
|
+
```
|
|
34
|
+
# Twitter
|
|
35
|
+
```ts
|
|
36
|
+
const { twitter } = require('imran-download-servar')
|
|
37
|
+
|
|
38
|
+
const url = 'https://twitter.com/gofoodindonesia/status/1229369819511709697'
|
|
39
|
+
const data = await twitter(url)
|
|
40
|
+
console.log(data) // JSON
|
|
41
|
+
```
|
|
42
|
+
# YouTube
|
|
43
|
+
```ts
|
|
44
|
+
const { youtube } = require('imran-download-servar')
|
|
45
|
+
|
|
46
|
+
const url = 'https://youtube.com/watch?v=C8mJ8943X80'
|
|
47
|
+
const data = await youtube(url)
|
|
48
|
+
console.log(data) // JSON
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Catatan Penting
|
|
53
|
+
|
|
54
|
+
1. Downloader ini hanya dapat digunakan untuk mengunduh media yang bersifat publik atau dapat diakses oleh umum.
|
|
55
|
+
2. Aplikasi ini tidak berafiliasi atau didukung oleh aplikasi manapun.
|
|
56
|
+
3. Pastikan bahwa Anda memiliki izin atau hak cipta untuk mengunduh media sebelum menggunakan aplikasi ini.
|
|
57
|
+
|
|
58
|
+
## Kontribusi dan Pelaporan Masalah
|
|
59
|
+
|
|
60
|
+
Jika Anda menemukan masalah atau ingin berkontribusi pada pengembangan aplikasi ini, silakan kunjungi halaman [GitHub repository](https://github.com/MR-IMRAN-60) kami.
|
|
61
|
+
|
|
62
|
+
## Lisensi
|
|
63
|
+
|
|
64
|
+
btch-downloader dilisensikan di bawah [MIT License](https://opensource.org/licenses/MIT). Silakan merujuk pada file LICENSE untuk informasi lebih lanjut.
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "imran-dl",
|
|
3
|
+
"version": "2.3.3",
|
|
4
|
+
"description": " Fetch Url Downloads From Instagram & Facebook & TikTok & YouTube & Twitter & Media Downloader",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"instagram",
|
|
11
|
+
"downloader",
|
|
12
|
+
"media",
|
|
13
|
+
"link",
|
|
14
|
+
"tiktok",
|
|
15
|
+
"tikvm",
|
|
16
|
+
"video",
|
|
17
|
+
"fbdownload",
|
|
18
|
+
"twdown.net",
|
|
19
|
+
"fbdownload",
|
|
20
|
+
"download",
|
|
21
|
+
"facebook",
|
|
22
|
+
"fbdown",
|
|
23
|
+
"youtube",
|
|
24
|
+
"yt download",
|
|
25
|
+
"Twitter",
|
|
26
|
+
"imran",
|
|
27
|
+
"imran-download-servar"
|
|
28
|
+
],
|
|
29
|
+
"author": "IMRAN",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"axios": "^1.4.0",
|
|
33
|
+
"got": "^10.0.0",
|
|
34
|
+
"qs": "^6.10.3",
|
|
35
|
+
"cheerio": "^1.0.0-rc.12"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://github.com/MR-IMRAN-60/imran-downlod-servar"
|
|
40
|
+
},
|
|
41
|
+
"directories": {
|
|
42
|
+
"lib": "lib"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"tag": "latest"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {}
|
|
48
|
+
}
|