shufflecom-calculations 1.15.4 → 1.15.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.
- package/lib/regex/index.d.ts +1 -0
- package/lib/regex/index.js +2 -1
- package/lib/regex/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/calculate-sports-payout.d.ts +1 -1
- package/lib/utils/calculate-sports-payout.js +4 -4
- package/lib/utils/calculate-sports-payout.js.map +1 -1
- package/lib/utils/dates-calculator.d.ts +10 -0
- package/lib/utils/dates-calculator.js +62 -3
- package/lib/utils/dates-calculator.js.map +1 -1
- package/lib/utils/sports.types.d.ts +0 -1
- package/lib/utils/sports.types.js.map +1 -1
- package/package.json +2 -2
- package/src/regex/index.ts +1 -0
- package/src/regex/regex.spec.ts +34 -1
- package/src/utils/calculate-sports-payout.spec.ts +12 -5
- package/src/utils/calculate-sports-payout.ts +4 -4
- package/src/utils/date-calculator.spec.ts +51 -11
- package/src/utils/dates-calculator.ts +56 -4
- package/src/utils/sports.types.ts +0 -1
package/lib/regex/index.d.ts
CHANGED
package/lib/regex/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VALID_NAME_REGEX = exports.ADDRESS_URL_REGEX = exports.TXN_URL_REGEX = exports.TIMEZONE_OFFSET_REGEX = exports.MENTIONED_USER_REGEX = exports.HEX_COLOR_CODE_REGEX = exports.CAMPAIGN_CODE_REGEX = exports.PROMOTION_CODE_REGEX = exports.USERNAME_REGEX = exports.PWD_REGEX = void 0;
|
|
3
|
+
exports.E164_PHONE_NUMBER_REGEX = exports.VALID_NAME_REGEX = exports.ADDRESS_URL_REGEX = exports.TXN_URL_REGEX = exports.TIMEZONE_OFFSET_REGEX = exports.MENTIONED_USER_REGEX = exports.HEX_COLOR_CODE_REGEX = exports.CAMPAIGN_CODE_REGEX = exports.PROMOTION_CODE_REGEX = exports.USERNAME_REGEX = exports.PWD_REGEX = void 0;
|
|
4
4
|
exports.PWD_REGEX = /^(?=.*[0-9])(?=.*[a-zA-Z])(?=\S+$).{8,24}$/i;
|
|
5
5
|
exports.USERNAME_REGEX = /^[a-z\d]{3,16}$/i;
|
|
6
6
|
exports.PROMOTION_CODE_REGEX = /^[A-Z_\-\d]{3,25}$/;
|
|
@@ -11,4 +11,5 @@ exports.TIMEZONE_OFFSET_REGEX = /^(?:Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$/;
|
|
|
11
11
|
exports.TXN_URL_REGEX = /^https:\/\/.*\{txId\}.*$/;
|
|
12
12
|
exports.ADDRESS_URL_REGEX = /^https:\/\/.*\{address\}.*$/;
|
|
13
13
|
exports.VALID_NAME_REGEX = /^[^0-9!@#$%^&*`~()+=[{\]};:"\\|<>\/?]*$/;
|
|
14
|
+
exports.E164_PHONE_NUMBER_REGEX = /^\+[1-9]\d{1,14}$/;
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
package/lib/regex/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/regex/index.ts"],"names":[],"mappings":";;;AACa,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAE1D,QAAA,cAAc,GAAG,kBAAkB,CAAC;AAEpC,QAAA,oBAAoB,GAAG,oBAAoB,CAAC;AAE5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAE5C,QAAA,oBAAoB,GAAG,+BAA+B,CAAC;AAGvD,QAAA,oBAAoB,GAAG,2CAA2C,CAAC;AAEnE,QAAA,qBAAqB,GAAG,6CAA6C,CAAC;AAEtE,QAAA,aAAa,GAAG,0BAA0B,CAAC;AAE3C,QAAA,iBAAiB,GAAG,6BAA6B,CAAC;AAClD,QAAA,gBAAgB,GAAG,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/regex/index.ts"],"names":[],"mappings":";;;AACa,QAAA,SAAS,GAAG,6CAA6C,CAAC;AAE1D,QAAA,cAAc,GAAG,kBAAkB,CAAC;AAEpC,QAAA,oBAAoB,GAAG,oBAAoB,CAAC;AAE5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAE5C,QAAA,oBAAoB,GAAG,+BAA+B,CAAC;AAGvD,QAAA,oBAAoB,GAAG,2CAA2C,CAAC;AAEnE,QAAA,qBAAqB,GAAG,6CAA6C,CAAC;AAEtE,QAAA,aAAa,GAAG,0BAA0B,CAAC;AAE3C,QAAA,iBAAiB,GAAG,6BAA6B,CAAC;AAClD,QAAA,gBAAgB,GAAG,yCAAyC,CAAC;AAC7D,QAAA,uBAAuB,GAAG,mBAAmB,CAAC"}
|