@hyrious/blivec
Advanced tools
Comparing version 0.3.10 to 0.3.11
"use strict"; | ||
import https from "https"; | ||
import crypto from "crypto"; | ||
import { createConnection } from "net"; | ||
@@ -302,3 +303,4 @@ import { promisify } from "util"; | ||
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:60.1) Gecko/20100101 Firefox/60.1", | ||
"Referer": `https://search.bilibili.com/live?keyword=${keyword}${params}&search_type=live` | ||
"Referer": `https://search.bilibili.com/live?keyword=${keyword}${params}&search_type=live`, | ||
"Cookie": `buvid3=${crypto.randomUUID()}infoc;` | ||
} | ||
@@ -305,0 +307,0 @@ }); |
{ | ||
"name": "@hyrious/blivec", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"description": "bilibili live cli", | ||
@@ -35,7 +35,7 @@ "type": "module", | ||
"devDependencies": { | ||
"@hyrious/dts": "^0.1.6", | ||
"@hyrious/dts": "^0.1.7", | ||
"@hyrious/rimraf": "^0.1.0", | ||
"@types/node": "^18.15.5", | ||
"esbuild": "^0.17.12" | ||
"@types/node": "^18.15.10", | ||
"esbuild": "^0.17.14" | ||
} | ||
} |
import https from "https"; | ||
import crypto from "crypto"; | ||
import { IncomingMessage, RequestOptions } from "http"; | ||
@@ -428,2 +429,3 @@ import { createConnection, Socket } from "net"; | ||
"Referer": `https://search.bilibili.com/live?keyword=${keyword}${params}&search_type=live`, | ||
"Cookie": `buvid3=${crypto.randomUUID()}infoc;`, | ||
}, | ||
@@ -430,0 +432,0 @@ }); |
57662
1637