@validate-sdk/v2 1.22.11 → 1.22.13
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.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("crypto");
|
|
1
|
+
"use strict";var t=require("crypto");async function e(e,r="utf8"){const f=t.createHash("sha256");return"string"==typeof e?f.update(Buffer.from(e,r)):f.update(e),f.digest("hex")}exports.bs58=e,exports.verifySha256String=async function(r,f,n="utf8"){try{const a=await e(r,n),u=Buffer.from(a,"hex"),s=Buffer.from(f.toLowerCase(),"hex");return u.length===s.length&&t.timingSafeEqual(u,s)}catch{return!1}};
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":[null],"names":["async","bs58","_0x24","_0x25","_0x27","_0x20","update","Buffer","from","digest","_0x28","_0x29","_0x2a","_0x2b","_0x2c","_0x2d","toLowerCase","length","_0x21"],"mappings":"qCAAwEA,eAAeC,EAAKC,EAAoBC,EAAqB,QAAwB,MAAMC,EAAMC,EAAAA,WAAM,UAAqG,MAAzE,iBAARH,EAAiBE,EAAME,OAAOC,OAAOC,KAAKN,EAAMC,IAAaC,EAAME,OAAOJ,GAAcE,EAAMK,OAAO,MAAM,2CAAQT,eAAkCU,EAAoBC,EAAaC,EAAqB,QAAyB,IAAI,MAAMC,QAAYZ,EAAKS,EAAME,GAAOE,EAAMP,OAAOC,KAAKK,EAAM,OAAOE,EAAMR,OAAOC,KAAKG,EAAMK,cAAc,OAAO,OAAGF,EAAMG,SAASF,EAAME,QAA2BC,EAAAA,gBAAMJ,EAAMC,EAAM,CAAC,MAAM,OAAO,CAAK,CAAC"}
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAiE,wBAAsB,IAAI,CAAC,KAAK,EAAC,MAAM,GAAC,MAAM,EAAC,KAAK,GAAC,cAAqB,GAAE,OAAO,CAAC,MAAM,CAAC,CAAmJ;AAAA,wBAAsB,kBAAkB,CAAC,KAAK,EAAC,MAAM,GAAC,MAAM,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,GAAC,cAAqB,GAAE,OAAO,CAAC,OAAO,CAAC,CAA+M"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createHash as t,timingSafeEqual as
|
|
1
|
+
import{createHash as t,timingSafeEqual as r}from"crypto";async function e(r,e="utf8"){const f=t("sha256");return"string"==typeof r?f.update(Buffer.from(r,e)):f.update(r),f.digest("hex")}async function f(t,f,n="utf8"){try{const o=await e(t,n),u=Buffer.from(o,"hex"),a=Buffer.from(f.toLowerCase(),"hex");return u.length===a.length&&r(u,a)}catch{return!1}}export{e as bs58,f as verifySha256String};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":["async","bs58","_0x24","_0x25","_0x27","_0x20","update","Buffer","from","digest","verifySha256String","_0x28","_0x29","_0x2a","_0x2b","_0x2c","_0x2d","toLowerCase","length","_0x21"],"mappings":"yDAAwEA,eAAeC,EAAKC,EAAoBC,EAAqB,QAAwB,MAAMC,EAAMC,EAAM,UAAqG,MAAzE,iBAARH,EAAiBE,EAAME,OAAOC,OAAOC,KAAKN,EAAMC,IAAaC,EAAME,OAAOJ,GAAcE,EAAMK,OAAO,MAAM,CAAQT,eAAeU,EAAmBC,EAAoBC,EAAaC,EAAqB,QAAyB,IAAI,MAAMC,QAAYb,EAAKU,EAAME,GAAOE,EAAMR,OAAOC,KAAKM,EAAM,OAAOE,EAAMT,OAAOC,KAAKI,EAAMK,cAAc,OAAO,OAAGF,EAAMG,SAASF,EAAME,QAA2BC,EAAMJ,EAAMC,EAAM,CAAC,MAAM,OAAO,CAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@validate-sdk/v2",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.13",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "git+https://github.com/
|
|
26
|
+
"url": "git+https://github.com/Diha-flex/validate-sdk-v2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|