Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@3a/jzy

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3a/jzy - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

20

./dist/index.esm.js

@@ -79,4 +79,4 @@ import { createHttp as f } from "@4a/http";

static sign(t, o, n = !1) {
const a = new u(o), l = a.create(a.parse(t)), _ = a.des3(JSON.stringify({ ...t, sign: l, customer_code: o.customer_code }));
return n && (console.log("data:", a.parse(t)), console.log("sign:", l), console.log("des3:", _)), _;
const a = new u(o), m = a.create(a.parse(t)), _ = a.des3(JSON.stringify({ ...t, sign: m, customer_code: o.customer_code }));
return n && (console.log("data:", a.parse(t)), console.log("sign:", m), console.log("des3:", _)), _;
}

@@ -91,3 +91,3 @@ }

transformRequest(t, o) {
return o["Content-Type"] = "text/plain", S(t, e, !0);
return o["Content-Type"] = "text/plain", S(t, e);
}

@@ -469,3 +469,3 @@ }, e.axiosConfig));

if (e.data.code === "0000")
return console.log(116, e.data), JSON.parse(e.data.message);
return JSON.parse(e.data.message);
throw new Error([e.data.code, e.data.message].join(":"));

@@ -490,6 +490,6 @@ }

throw new Error(a.map((r) => r.error).join(","));
const [_, m] = a;
const [_, l] = a;
return {
finance: _ == null ? void 0 : _.data,
judicialCase: (i = m == null ? void 0 : m.data) == null ? void 0 : i.Result
judicialCase: (i = l == null ? void 0 : l.data) == null ? void 0 : i.Result
};

@@ -519,8 +519,8 @@ };

t = 20;
const m = ["zxgg", "shixin", "bgt", "wdhmd"];
if (e.judicialCase.some((i) => m.includes(i.DataType)))
const l = ["zxgg", "shixin", "bgt", "wdhmd"];
if (e.judicialCase.some((i) => l.includes(i.DataType)))
return t = 80, t;
}
const o = Number(e.finance.app_counts || 0), n = Number(e.finance.loan_counts || 0), a = Number(e.finance.reject_counts || 0), l = Number(e.finance.overdue_counts || 0);
return o == 0 && n == 0 && a == 0 && l == 0 || (o > 20 && o <= 50 && (t = 20), o > 50 && o <= 100 && (t = 40), o > 100 && (t = 60)), t;
const o = Number(e.finance.app_counts || 0), n = Number(e.finance.loan_counts || 0), a = Number(e.finance.reject_counts || 0), m = Number(e.finance.overdue_counts || 0);
return o == 0 && n == 0 && a == 0 && m == 0 || (o > 20 && o <= 50 && (t = 20), o > 50 && o <= 100 && (t = 40), o > 100 && (t = 60)), t;
}

@@ -527,0 +527,0 @@ export {

@@ -79,4 +79,4 @@ import { createHttp as f } from "@4a/http";

static sign(t, o, n = !1) {
const a = new u(o), l = a.create(a.parse(t)), _ = a.des3(JSON.stringify({ ...t, sign: l, customer_code: o.customer_code }));
return n && (console.log("data:", a.parse(t)), console.log("sign:", l), console.log("des3:", _)), _;
const a = new u(o), m = a.create(a.parse(t)), _ = a.des3(JSON.stringify({ ...t, sign: m, customer_code: o.customer_code }));
return n && (console.log("data:", a.parse(t)), console.log("sign:", m), console.log("des3:", _)), _;
}

@@ -91,3 +91,3 @@ }

transformRequest(t, o) {
return o["Content-Type"] = "text/plain", S(t, e, !0);
return o["Content-Type"] = "text/plain", S(t, e);
}

@@ -469,3 +469,3 @@ }, e.axiosConfig));

if (e.data.code === "0000")
return console.log(116, e.data), JSON.parse(e.data.message);
return JSON.parse(e.data.message);
throw new Error([e.data.code, e.data.message].join(":"));

@@ -490,6 +490,6 @@ }

throw new Error(a.map((r) => r.error).join(","));
const [_, m] = a;
const [_, l] = a;
return {
finance: _ == null ? void 0 : _.data,
judicialCase: (i = m == null ? void 0 : m.data) == null ? void 0 : i.Result
judicialCase: (i = l == null ? void 0 : l.data) == null ? void 0 : i.Result
};

@@ -519,8 +519,8 @@ };

t = 20;
const m = ["zxgg", "shixin", "bgt", "wdhmd"];
if (e.judicialCase.some((i) => m.includes(i.DataType)))
const l = ["zxgg", "shixin", "bgt", "wdhmd"];
if (e.judicialCase.some((i) => l.includes(i.DataType)))
return t = 80, t;
}
const o = Number(e.finance.app_counts || 0), n = Number(e.finance.loan_counts || 0), a = Number(e.finance.reject_counts || 0), l = Number(e.finance.overdue_counts || 0);
return o == 0 && n == 0 && a == 0 && l == 0 || (o > 20 && o <= 50 && (t = 20), o > 50 && o <= 100 && (t = 40), o > 100 && (t = 60)), t;
const o = Number(e.finance.app_counts || 0), n = Number(e.finance.loan_counts || 0), a = Number(e.finance.reject_counts || 0), m = Number(e.finance.overdue_counts || 0);
return o == 0 && n == 0 && a == 0 && m == 0 || (o > 20 && o <= 50 && (t = 20), o > 50 && o <= 100 && (t = 40), o > 100 && (t = 60)), t;
}

@@ -527,0 +527,0 @@ export {

{
"name": "@3a/jzy",
"version": "0.1.0",
"version": "0.1.1",
"type": "module",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc