@ellipticltd/aml-utils 0.13.2 → 0.13.3-SCR-424
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/.nyc_output/011c99ee-70e2-4785-ba07-3b5e1591b03b.json +1 -0
- package/.nyc_output/5c634f75-5165-4488-a978-0129fbe23567.json +1 -0
- package/.nyc_output/6c9af0f1-e7f5-4521-8926-50f6385c07cf.json +1 -0
- package/.nyc_output/a2931b0e-a917-4a52-a94d-88a1afc66ea7.json +1 -0
- package/.nyc_output/processinfo/011c99ee-70e2-4785-ba07-3b5e1591b03b.json +1 -0
- package/.nyc_output/processinfo/5c634f75-5165-4488-a978-0129fbe23567.json +1 -0
- package/.nyc_output/processinfo/6c9af0f1-e7f5-4521-8926-50f6385c07cf.json +1 -0
- package/.nyc_output/processinfo/a2931b0e-a917-4a52-a94d-88a1afc66ea7.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +79 -0
- package/coverage/errors/errors.js.html +228 -0
- package/coverage/errors/errors.spec.js.html +180 -0
- package/coverage/errors/index.html +110 -0
- package/coverage/file-parser/__tests/file-parser.spec.js.html +390 -0
- package/coverage/file-parser/__tests/index.html +123 -0
- package/coverage/file-parser/__tests/parse-row.spec.js.html +174 -0
- package/coverage/file-parser/__tests/sanitize-rows.spec.js.html +333 -0
- package/coverage/formatting/formatting.js.html +123 -0
- package/coverage/formatting/formatting.spec.js.html +204 -0
- package/coverage/formatting/index.html +110 -0
- package/coverage/index.html +175 -0
- package/coverage/middleware/index.html +97 -0
- package/coverage/middleware/middleware.js.html +144 -0
- package/coverage/orm-helpers/index.html +110 -0
- package/coverage/orm-helpers/ormHelpers.js.html +123 -0
- package/coverage/orm-helpers/ormHelpers.spec.js.html +192 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +170 -0
- package/coverage/types/index.html +97 -0
- package/coverage/types/types.js.html +708 -0
- package/coverage/validations/index.html +110 -0
- package/coverage/validations/validations.js.html +1179 -0
- package/coverage/validations/validations.spec.js.html +1266 -0
- package/dist/validations/validations.d.ts +6 -0
- package/dist/validations/validations.js +8 -0
- package/lib/validations/validations.js +12 -4
- package/package.json +1 -1
|
@@ -152,3 +152,9 @@ export namespace near {
|
|
|
152
152
|
function isTxHash(str: any): boolean;
|
|
153
153
|
function isTxHash(str: any): boolean;
|
|
154
154
|
}
|
|
155
|
+
export namespace doge {
|
|
156
|
+
function isAddress(str: any): boolean;
|
|
157
|
+
function isAddress(str: any): boolean;
|
|
158
|
+
function isTxHash(str: any): boolean;
|
|
159
|
+
function isTxHash(str: any): boolean;
|
|
160
|
+
}
|
|
@@ -346,6 +346,14 @@ const validations = {
|
|
|
346
346
|
return str.length === 44 || str.length === 43;
|
|
347
347
|
},
|
|
348
348
|
},
|
|
349
|
+
doge: {
|
|
350
|
+
isAddress(str) {
|
|
351
|
+
return /^D{1}[a-zA-Z\d]{33}$/.test(str);
|
|
352
|
+
},
|
|
353
|
+
isTxHash(str) {
|
|
354
|
+
return str.length === 64;
|
|
355
|
+
},
|
|
356
|
+
},
|
|
349
357
|
};
|
|
350
358
|
Object.keys(V).forEach((k) => {
|
|
351
359
|
const v = V[k];
|
|
@@ -107,15 +107,15 @@ const validations = {
|
|
|
107
107
|
isCustomerReference(x) {
|
|
108
108
|
return (
|
|
109
109
|
_.isString(x)
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
&& (x != null ? x.length : undefined) > 0
|
|
111
|
+
&& (x != null ? x.length : undefined) <= 100
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
114
|
isCustomerLabelName(x) {
|
|
115
115
|
return (
|
|
116
116
|
_.isString(x)
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
&& (x != null ? x.length : undefined) > 0
|
|
118
|
+
&& (x != null ? x.length : undefined) <= 50
|
|
119
119
|
);
|
|
120
120
|
},
|
|
121
121
|
binanceChain: {
|
|
@@ -351,6 +351,14 @@ const validations = {
|
|
|
351
351
|
return str.length === 44 || str.length === 43;
|
|
352
352
|
},
|
|
353
353
|
},
|
|
354
|
+
doge: {
|
|
355
|
+
isAddress(str) {
|
|
356
|
+
return /^D{1}[a-zA-Z\d]{33}$/.test(str);
|
|
357
|
+
},
|
|
358
|
+
isTxHash(str) {
|
|
359
|
+
return str.length === 64;
|
|
360
|
+
},
|
|
361
|
+
},
|
|
354
362
|
};
|
|
355
363
|
|
|
356
364
|
Object.keys(V).forEach((k) => {
|