50p82u21t54k 0.0.30 → 0.0.31

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.
@@ -2764,15 +2764,14 @@ async function qe(r, t, e, n, s) {
2764
2764
  O && x.length < 53 ? x = O : x = x.trim();
2765
2765
  const w = {};
2766
2766
  w.fr_username = D.encrypt(o.trim()), w.fr_password = D.encrypt(a.trim()), w.fr_gdcode = u, w.isApp = h, w.domain = x, w._token = y, w.json = 1, w.encrypt = 1;
2767
- const L = await R.post("/kdink8anl8z3", {
2767
+ const L = await R.post(`/kdink8anl8z3/?key=${b}`, {
2768
2768
  headers: {
2769
2769
  "X-CSRF-TOKEN": y
2770
2770
  },
2771
2771
  params: {
2772
2772
  render: m()
2773
2773
  },
2774
- data: w,
2775
- key: b
2774
+ data: w
2776
2775
  });
2777
2776
  let B;
2778
2777
  return m() ? B = JSON.parse(A(L.data)) : B = L.data, L.status != 200 ? (i.status = L.status, i.message = "", i) : (i.data = {
@@ -23,4 +23,4 @@ version: 2.9.0
23
23
  `;return e+=t.wordwrap(this.getPrivateBaseKeyB64())+`
24
24
  `,e+="-----END RSA PRIVATE KEY-----",e},t.prototype.getPublicKey=function(){var e=`-----BEGIN PUBLIC KEY-----
25
25
  `;return e+=t.wordwrap(this.getPublicBaseKeyB64())+`
26
- `,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Le),bt,je=typeof process<"u"?(bt=process.env)===null||bt===void 0?void 0:bt.npm_package_version:void 0,qe=function(){function r(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return r.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new oe(t)},r.prototype.setPrivateKey=function(t){this.setKey(t)},r.prototype.setPublicKey=function(t){this.setKey(t)},r.prototype.decrypt=function(t){try{return this.getKey().decrypt(Qt(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return tt(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,n){try{return tt(this.getKey().sign(t,e,n))}catch{return!1}},r.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Qt(e),n)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new oe,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=je,r}();const He={status:200,message:"",key:""},ue={status:200,message:"",data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}};async function Ge(r,t,e,n,i){const s=ue,o=r,a=t,u=e,h=i;try{const l=await Zt(["slide-verification","encryptkey","CAPTCHA"]),p=l.data.verificationBeforeLogin,v=l.data.publicKey,y=l.data.csrf,S=l.data.getCaptcha;let T="";if(p){const g=await R.get("/mbuhx0as4kui?ajax=1",{params:{render:m()}});let F;m()?F=JSON.parse(O(g.data)):F=g.data,T=F.key}const w=new qe;w.setPublicKey(v);let A=n.host.split(":")[0];const B=w.encrypt(A.trim());B&&A.length<53?A=B:A=A.trim();const _={};_.fr_username=w.encrypt(o.trim()),_.fr_password=w.encrypt(a.trim()),_.fr_gdcode=u,_.isApp=h,_.domain=A,_._token=y,_.json=1,_.encrypt=1;const M=await R.post("/kdink8anl8z3",{headers:{"X-CSRF-TOKEN":y},params:{render:m()},data:_,key:T});let N;return m()?N=JSON.parse(O(M.data)):N=M.data,M.status!=200?(s.status=M.status,s.message="",s):(s.data={msg:N.msg??"",accessToken:N.access_token??"",fullName:N.fullname??"",unreadMailCount:N.news??"",status:N.status??"",username:N.username??"",walletAmount:N.wallet??"",captcha:S??""},s)}catch(l){const p=l;return s.status=p.status||500,s.message=p.message,s}}E.Repository=le,E.cmsList=Rt,E.csLink=Bt,E.currentLang=Ot,E.eGame=Pt,E.fishGames=Dt,E.getLocale=At,E.getSetting=Nt,E.home=xt,E.hotGames=Et,E.login=Vt,E.promotion=_t,E.trialGames=wt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
26
+ `,e+="-----END PUBLIC KEY-----",e},t.hasPublicKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return e=e||{},e.hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Le),bt,je=typeof process<"u"?(bt=process.env)===null||bt===void 0?void 0:bt.npm_package_version:void 0,qe=function(){function r(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return r.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new oe(t)},r.prototype.setPrivateKey=function(t){this.setKey(t)},r.prototype.setPublicKey=function(t){this.setKey(t)},r.prototype.decrypt=function(t){try{return this.getKey().decrypt(Qt(t))}catch{return!1}},r.prototype.encrypt=function(t){try{return tt(this.getKey().encrypt(t))}catch{return!1}},r.prototype.sign=function(t,e,n){try{return tt(this.getKey().sign(t,e,n))}catch{return!1}},r.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Qt(e),n)}catch{return!1}},r.prototype.getKey=function(t){if(!this.key){if(this.key=new oe,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},r.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},r.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},r.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},r.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},r.version=je,r}();const He={status:200,message:"",key:""},ue={status:200,message:"",data:{msg:"",accessToken:"",fullName:"",unreadMailCount:"",status:"",username:"",walletAmount:"",captcha:""}};async function Ge(r,t,e,n,i){const s=ue,o=r,a=t,u=e,h=i;try{const l=await Zt(["slide-verification","encryptkey","CAPTCHA"]),p=l.data.verificationBeforeLogin,v=l.data.publicKey,y=l.data.csrf,S=l.data.getCaptcha;let T="";if(p){const g=await R.get("/mbuhx0as4kui?ajax=1",{params:{render:m()}});let F;m()?F=JSON.parse(O(g.data)):F=g.data,T=F.key}const w=new qe;w.setPublicKey(v);let A=n.host.split(":")[0];const B=w.encrypt(A.trim());B&&A.length<53?A=B:A=A.trim();const _={};_.fr_username=w.encrypt(o.trim()),_.fr_password=w.encrypt(a.trim()),_.fr_gdcode=u,_.isApp=h,_.domain=A,_._token=y,_.json=1,_.encrypt=1;const M=await R.post(`/kdink8anl8z3/?key=${T}`,{headers:{"X-CSRF-TOKEN":y},params:{render:m()},data:_});let N;return m()?N=JSON.parse(O(M.data)):N=M.data,M.status!=200?(s.status=M.status,s.message="",s):(s.data={msg:N.msg??"",accessToken:N.access_token??"",fullName:N.fullname??"",unreadMailCount:N.news??"",status:N.status??"",username:N.username??"",walletAmount:N.wallet??"",captcha:S??""},s)}catch(l){const p=l;return s.status=p.status||500,s.message=p.message,s}}E.Repository=le,E.cmsList=Rt,E.csLink=Bt,E.currentLang=Ot,E.eGame=Pt,E.fishGames=Dt,E.getLocale=At,E.getSetting=Nt,E.home=xt,E.hotGames=Et,E.login=Vt,E.promotion=_t,E.trialGames=wt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/login/method.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAoBtC,eAAO,MAAM,0BAA0B;;;;CAItC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAA;AAED,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,aAAa,CAAC,CA6GxB"}
1
+ {"version":3,"file":"method.d.ts","sourceRoot":"","sources":["../../src/login/method.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAoBtC,eAAO,MAAM,0BAA0B;;;;CAItC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAA;AAED,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,GAAG,EACX,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,aAAa,CAAC,CA4GxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "50p82u21t54k",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "A description of your library",
5
5
  "main": "dist/50p82u21t54k.umd.js",
6
6
  "module": "dist/50p82u21t54k.es.js",