@ancon/wildcat-utils 1.50.4 → 1.50.5

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.
@@ -1 +1 @@
1
- "use strict";const t=require("lodash-es"),n=require("@ancon/wildcat-types"),a=require("../string/getParsedJSONFromString.js");function s(e){const r=a(e);return t.isObject(r)?{cardNumber:r.walletNumber,walletNumberType:n.CardNumberType.AutoGenerated}:{cardNumber:e.replace(/[\D]/gi,""),walletNumberType:void 0}}module.exports=s;
1
+ "use strict";const t=require("lodash-es"),n=require("@ancon/wildcat-types"),s=require("../string/getParsedJSONFromString.js");function u(e){const r=s(e);return t.isObject(r)?{cardNumber:r.walletNumber,walletNumberType:n.CardNumberType.AutoGenerated}:{cardNumber:e.trim(),walletNumberType:void 0}}module.exports=u;
@@ -1,5 +1,5 @@
1
1
  import { isObject as t } from "lodash-es";
2
- import { CardNumberType as a } from "@ancon/wildcat-types";
2
+ import { CardNumberType as m } from "@ancon/wildcat-types";
3
3
  import o from "../string/getParsedJSONFromString.mjs";
4
4
  function i(e) {
5
5
  const r = o(e);
@@ -9,9 +9,9 @@ function i(e) {
9
9
  Here we are overwriting the walletNumberType to Virtual
10
10
  - Physical cards are exposed to FE as Virtual
11
11
  */
12
- walletNumberType: a.AutoGenerated
12
+ walletNumberType: m.AutoGenerated
13
13
  } : {
14
- cardNumber: e.replace(/[\D]/gi, ""),
14
+ cardNumber: e.trim(),
15
15
  walletNumberType: void 0
16
16
  };
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancon/wildcat-utils",
3
- "version": "1.50.4",
3
+ "version": "1.50.5",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",