@leofcoin/codec-format-interface 1.2.2 → 1.2.3
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.js +2 -2
- package/package.json +1 -1
- package/src/basic-interface.js +2 -2
package/dist/index.js
CHANGED
|
@@ -48,10 +48,10 @@ class BasicInterface {
|
|
|
48
48
|
return isHex__default["default"](string)
|
|
49
49
|
}
|
|
50
50
|
isBase32(string) {
|
|
51
|
-
return
|
|
51
|
+
return bs32__default["default"].isBase32(string)
|
|
52
52
|
}
|
|
53
53
|
isBase58(string) {
|
|
54
|
-
return
|
|
54
|
+
return bs58__default["default"].isBase32(string)
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* @param {String} encoded
|
package/package.json
CHANGED
package/src/basic-interface.js
CHANGED
|
@@ -16,10 +16,10 @@ export default class BasicInterface {
|
|
|
16
16
|
return isHex(string)
|
|
17
17
|
}
|
|
18
18
|
isBase32(string) {
|
|
19
|
-
return
|
|
19
|
+
return bs32.isBase32(string)
|
|
20
20
|
}
|
|
21
21
|
isBase58(string) {
|
|
22
|
-
return
|
|
22
|
+
return bs58.isBase32(string)
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @param {String} encoded
|