@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.
Files changed (40) hide show
  1. package/.nyc_output/011c99ee-70e2-4785-ba07-3b5e1591b03b.json +1 -0
  2. package/.nyc_output/5c634f75-5165-4488-a978-0129fbe23567.json +1 -0
  3. package/.nyc_output/6c9af0f1-e7f5-4521-8926-50f6385c07cf.json +1 -0
  4. package/.nyc_output/a2931b0e-a917-4a52-a94d-88a1afc66ea7.json +1 -0
  5. package/.nyc_output/processinfo/011c99ee-70e2-4785-ba07-3b5e1591b03b.json +1 -0
  6. package/.nyc_output/processinfo/5c634f75-5165-4488-a978-0129fbe23567.json +1 -0
  7. package/.nyc_output/processinfo/6c9af0f1-e7f5-4521-8926-50f6385c07cf.json +1 -0
  8. package/.nyc_output/processinfo/a2931b0e-a917-4a52-a94d-88a1afc66ea7.json +1 -0
  9. package/.nyc_output/processinfo/index.json +1 -0
  10. package/coverage/base.css +224 -0
  11. package/coverage/block-navigation.js +79 -0
  12. package/coverage/errors/errors.js.html +228 -0
  13. package/coverage/errors/errors.spec.js.html +180 -0
  14. package/coverage/errors/index.html +110 -0
  15. package/coverage/file-parser/__tests/file-parser.spec.js.html +390 -0
  16. package/coverage/file-parser/__tests/index.html +123 -0
  17. package/coverage/file-parser/__tests/parse-row.spec.js.html +174 -0
  18. package/coverage/file-parser/__tests/sanitize-rows.spec.js.html +333 -0
  19. package/coverage/formatting/formatting.js.html +123 -0
  20. package/coverage/formatting/formatting.spec.js.html +204 -0
  21. package/coverage/formatting/index.html +110 -0
  22. package/coverage/index.html +175 -0
  23. package/coverage/middleware/index.html +97 -0
  24. package/coverage/middleware/middleware.js.html +144 -0
  25. package/coverage/orm-helpers/index.html +110 -0
  26. package/coverage/orm-helpers/ormHelpers.js.html +123 -0
  27. package/coverage/orm-helpers/ormHelpers.spec.js.html +192 -0
  28. package/coverage/prettify.css +1 -0
  29. package/coverage/prettify.js +2 -0
  30. package/coverage/sort-arrow-sprite.png +0 -0
  31. package/coverage/sorter.js +170 -0
  32. package/coverage/types/index.html +97 -0
  33. package/coverage/types/types.js.html +708 -0
  34. package/coverage/validations/index.html +110 -0
  35. package/coverage/validations/validations.js.html +1179 -0
  36. package/coverage/validations/validations.spec.js.html +1266 -0
  37. package/dist/validations/validations.d.ts +6 -0
  38. package/dist/validations/validations.js +8 -0
  39. package/lib/validations/validations.js +12 -4
  40. 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
- && (x != null ? x.length : undefined) > 0
111
- && (x != null ? x.length : undefined) <= 100
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
- && (x != null ? x.length : undefined) > 0
118
- && (x != null ? x.length : undefined) <= 50
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ellipticltd/aml-utils",
3
- "version": "0.13.2",
3
+ "version": "0.13.3-SCR-424",
4
4
  "description": "Utilities, helpers, validations, type-checking, etc",
5
5
  "engines": {
6
6
  "node": "10.1.0",