minify again

This commit is contained in:
himanshu8443
2025-07-13 11:25:52 +05:30
parent 4d450e5be5
commit bd060abce3
139 changed files with 139 additions and 10578 deletions

View File

@@ -1,48 +1 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.gofileExtracter = gofileExtracter;
const axios_1 = __importDefault(require("axios"));
function gofileExtracter(id) {
return __awaiter(this, void 0, void 0, function* () {
try {
const gofileRes = yield axios_1.default.get('https://gofile.io/d/' + id);
const genAccountres = yield axios_1.default.post('https://api.gofile.io/accounts');
const token = genAccountres.data.data.token;
console.log('gofile token', token);
const wtRes = yield axios_1.default.get('https://gofile.io/dist/js/global.js');
const wt = wtRes.data.match(/appdata\.wt\s*=\s*["']([^"']+)["']/)[1];
console.log('gofile wt', wt);
const res = yield axios_1.default.get(`https://api.gofile.io/contents/${id}?wt=${wt}`, {
headers: {
Authorization: `Bearer ${token}`,
},
});
const oId = Object.keys(res.data.data.children)[0];
console.log('gofile extracter', res.data.data.children[oId].link);
const link = res.data.data.children[oId].link;
return {
link,
token,
};
}
catch (e) {
console.log('gofile extracter err', e);
return {
link: '',
token: '',
};
}
});
}
"use strict";var __awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator.throw(value))}catch(e){reject(e)}}function step(result){var value;result.done?resolve(result.value):(value=result.value,value instanceof P?value:new P(function(resolve){resolve(value)})).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.gofileExtracter=gofileExtracter;const axios_1=__importDefault(require("axios"));function gofileExtracter(id){return __awaiter(this,void 0,void 0,function*(){try{yield axios_1.default.get("https://gofile.io/d/"+id);const token=(yield axios_1.default.post("https://api.gofile.io/accounts")).data.data.token,wt=(yield axios_1.default.get("https://gofile.io/dist/js/global.js")).data.match(/appdata\.wt\s*=\s*["']([^"']+)["']/)[1],res=yield axios_1.default.get(`https://api.gofile.io/contents/${id}?wt=${wt}`,{headers:{Authorization:`Bearer ${token}`}}),oId=Object.keys(res.data.data.children)[0];return{link:res.data.data.children[oId].link,token:token}}catch(e){return{link:"",token:""}}})}