@webority/mobile-core 0.127.0 → 0.129.0

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 (72) hide show
  1. package/README.md +2 -0
  2. package/lib/commonjs/formatters/currency.js +1 -1
  3. package/lib/commonjs/formatters/house.js +1 -1
  4. package/lib/commonjs/index.js +1 -1
  5. package/lib/commonjs/india/aadhaar.js +1 -0
  6. package/lib/commonjs/india/financialYear.js +1 -0
  7. package/lib/commonjs/india/gstStates.g.js +1 -0
  8. package/lib/commonjs/india/gstin.js +1 -0
  9. package/lib/commonjs/india/ifsc.js +1 -0
  10. package/lib/commonjs/india/index.js +1 -0
  11. package/lib/commonjs/india/indiaTime.js +1 -0
  12. package/lib/commonjs/india/indianMobile.js +1 -0
  13. package/lib/commonjs/india/nicDivisions.g.js +1 -0
  14. package/lib/commonjs/india/paise.js +1 -0
  15. package/lib/commonjs/india/pan.js +1 -0
  16. package/lib/commonjs/india/pincode.js +1 -0
  17. package/lib/commonjs/india/text.js +1 -0
  18. package/lib/commonjs/india/vectors.g.json +660 -0
  19. package/lib/commonjs/validators/index.js +1 -1
  20. package/lib/module/formatters/currency.js +1 -1
  21. package/lib/module/formatters/house.js +1 -1
  22. package/lib/module/index.js +1 -1
  23. package/lib/module/india/aadhaar.js +1 -0
  24. package/lib/module/india/financialYear.js +1 -0
  25. package/lib/module/india/gstStates.g.js +1 -0
  26. package/lib/module/india/gstin.js +1 -0
  27. package/lib/module/india/ifsc.js +1 -0
  28. package/lib/module/india/index.js +1 -0
  29. package/lib/module/india/indiaTime.js +1 -0
  30. package/lib/module/india/indianMobile.js +1 -0
  31. package/lib/module/india/nicDivisions.g.js +1 -0
  32. package/lib/module/india/paise.js +1 -0
  33. package/lib/module/india/pan.js +1 -0
  34. package/lib/module/india/pincode.js +1 -0
  35. package/lib/module/india/text.js +1 -0
  36. package/lib/module/india/vectors.g.json +660 -0
  37. package/lib/module/validators/index.js +1 -1
  38. package/lib/typescript/commonjs/formatters/currency.d.ts +5 -5
  39. package/lib/typescript/commonjs/formatters/house.d.ts +38 -3
  40. package/lib/typescript/commonjs/index.d.ts +1 -1
  41. package/lib/typescript/commonjs/india/aadhaar.d.ts +6 -0
  42. package/lib/typescript/commonjs/india/financialYear.d.ts +14 -0
  43. package/lib/typescript/commonjs/india/gstStates.g.d.ts +13 -0
  44. package/lib/typescript/commonjs/india/gstin.d.ts +11 -0
  45. package/lib/typescript/commonjs/india/ifsc.d.ts +3 -0
  46. package/lib/typescript/commonjs/india/index.d.ts +14 -0
  47. package/lib/typescript/commonjs/india/indiaTime.d.ts +7 -0
  48. package/lib/typescript/commonjs/india/indianMobile.d.ts +4 -0
  49. package/lib/typescript/commonjs/india/nicDivisions.g.d.ts +8 -0
  50. package/lib/typescript/commonjs/india/paise.d.ts +13 -0
  51. package/lib/typescript/commonjs/india/pan.d.ts +4 -0
  52. package/lib/typescript/commonjs/india/pincode.d.ts +3 -0
  53. package/lib/typescript/commonjs/india/text.d.ts +9 -0
  54. package/lib/typescript/commonjs/validators/index.d.ts +1 -17
  55. package/lib/typescript/module/formatters/currency.d.ts +5 -5
  56. package/lib/typescript/module/formatters/house.d.ts +38 -3
  57. package/lib/typescript/module/index.d.ts +1 -1
  58. package/lib/typescript/module/india/aadhaar.d.ts +6 -0
  59. package/lib/typescript/module/india/financialYear.d.ts +14 -0
  60. package/lib/typescript/module/india/gstStates.g.d.ts +13 -0
  61. package/lib/typescript/module/india/gstin.d.ts +11 -0
  62. package/lib/typescript/module/india/ifsc.d.ts +3 -0
  63. package/lib/typescript/module/india/index.d.ts +14 -0
  64. package/lib/typescript/module/india/indiaTime.d.ts +7 -0
  65. package/lib/typescript/module/india/indianMobile.d.ts +4 -0
  66. package/lib/typescript/module/india/nicDivisions.g.d.ts +8 -0
  67. package/lib/typescript/module/india/paise.d.ts +13 -0
  68. package/lib/typescript/module/india/pan.d.ts +4 -0
  69. package/lib/typescript/module/india/pincode.d.ts +3 -0
  70. package/lib/typescript/module/india/text.d.ts +9 -0
  71. package/lib/typescript/module/validators/index.d.ts +1 -17
  72. package/package.json +31 -1
@@ -0,0 +1,660 @@
1
+ {
2
+ "source": "Webority/webority-domain data/india at v0.5.0",
3
+ "sourceSha256": "db2fe2f6ed6dce432be4bbea7b1da8e28e272cf8a67f1f3d808aaf28b7a075fd",
4
+ "domainTestsSha256": "a871f81312e9ef9d474cc03cee2036b12e393d368b3da06dd3425e60c635a938",
5
+ "bodySha256": "4eec53e1ad9131a8d7c2f8d57ef4c1bf27e70478abfb5a000108113ee391671c",
6
+ "gstin": {
7
+ "valid": ["27AAPFU0939F1ZV", "29ABCDE1234F1ZW", "07AAACR5055K1Z9", "97ABCDE1234F1ZT"],
8
+ "wrongCheck": ["27AAPFU0939F1ZW"],
9
+ "noState": ["00ABCDE1234F1ZG", "39ABCDE1234F1ZV"]
10
+ },
11
+ "aadhaar": {
12
+ "valid": ["234123412346", "2341 2341 2346"],
13
+ "invalid": ["123412341234", "234123412345"],
14
+ "fingerprint": {
15
+ "key": "000102030405060708090a0b0c0d0e0f",
16
+ "number": "234123412346",
17
+ "hex": "93daf8c0c6be5fdb9c31dd11bf3bc4c9e2127358de130dd351a1c2aa3c004be3"
18
+ }
19
+ },
20
+ "indianMobile": {
21
+ "valid": ["9876512345", "+91 98765 12345", "09876512345"],
22
+ "invalid": ["5876512345", "98765"]
23
+ },
24
+ "financialYear": {
25
+ "ofIstInstant": [
26
+ {
27
+ "instantUtc": "2026-03-31T18:29:59Z",
28
+ "startYear": 2025
29
+ },
30
+ {
31
+ "instantUtc": "2026-03-31T18:30:00Z",
32
+ "startYear": 2026
33
+ }
34
+ ],
35
+ "labels": [
36
+ {
37
+ "startYear": 2026,
38
+ "label": "2026-27",
39
+ "display": "FY 2026-27",
40
+ "assessment": "2027-28"
41
+ }
42
+ ]
43
+ },
44
+ "paise": {
45
+ "format": [
46
+ {
47
+ "paise": 15000000,
48
+ "text": "₹1,50,000.00",
49
+ "rupees": "₹1,50,000"
50
+ },
51
+ {
52
+ "paise": -1250,
53
+ "text": "-₹12.50",
54
+ "rupees": "-₹13"
55
+ },
56
+ {
57
+ "paise": 2500000000,
58
+ "rupees": "₹2,50,00,000"
59
+ }
60
+ ]
61
+ },
62
+ "istDay": [
63
+ {
64
+ "date": "2026-10-04",
65
+ "startUtc": "2026-10-03T18:30:00Z",
66
+ "endUtc": "2026-10-04T18:30:00Z"
67
+ }
68
+ ],
69
+ "domainTests": [
70
+ {
71
+ "test": "AadhaarTests.Accepts_well_formed_numbers",
72
+ "call": "Aadhaar.IsValid",
73
+ "kind": "true",
74
+ "rows": [
75
+ {
76
+ "args": ["234123412346"]
77
+ },
78
+ {
79
+ "args": ["234567890124"]
80
+ },
81
+ {
82
+ "args": ["998877665548"]
83
+ },
84
+ {
85
+ "args": ["512345678903"]
86
+ },
87
+ {
88
+ "args": ["876543210988"]
89
+ }
90
+ ],
91
+ "dropped": 0
92
+ },
93
+ {
94
+ "test": "AadhaarTests.Rejects_a_reserved_leading_digit_even_with_a_correct_check_digit",
95
+ "call": "Aadhaar.IsValid",
96
+ "kind": "false",
97
+ "rows": [
98
+ {
99
+ "args": ["123456789010"]
100
+ },
101
+ {
102
+ "args": ["012345678906"]
103
+ }
104
+ ],
105
+ "dropped": 0
106
+ },
107
+ {
108
+ "test": "AadhaarTests.Rejects_anything_that_is_not_twelve_digits",
109
+ "call": "Aadhaar.IsValid",
110
+ "kind": "false",
111
+ "rows": [
112
+ {
113
+ "args": ["23412341234"]
114
+ },
115
+ {
116
+ "args": ["2341234123466"]
117
+ },
118
+ {
119
+ "args": ["23412341234A"]
120
+ },
121
+ {
122
+ "args": [""]
123
+ },
124
+ {
125
+ "args": [" "]
126
+ },
127
+ {
128
+ "args": [null]
129
+ }
130
+ ],
131
+ "dropped": 0
132
+ },
133
+ {
134
+ "test": "GstStatesTests.FindByNameIgnoresCaseSpacesAndAndAmpersand",
135
+ "call": "GstStates.FindByName",
136
+ "kind": "equals",
137
+ "member": "Code",
138
+ "rows": [
139
+ {
140
+ "args": ["orissa"],
141
+ "expected": "21"
142
+ },
143
+ {
144
+ "args": [" ORISSA "],
145
+ "expected": "21"
146
+ },
147
+ {
148
+ "args": ["Daman & Diu"],
149
+ "expected": "26"
150
+ },
151
+ {
152
+ "args": ["J and K"],
153
+ "expected": "01"
154
+ },
155
+ {
156
+ "args": ["Jammu & Kashmir"],
157
+ "expected": "01"
158
+ },
159
+ {
160
+ "args": ["Jammu and Kashmir"],
161
+ "expected": "01"
162
+ },
163
+ {
164
+ "args": ["New Delhi"],
165
+ "expected": "07"
166
+ },
167
+ {
168
+ "args": ["Pondicherry"],
169
+ "expected": "34"
170
+ },
171
+ {
172
+ "args": ["Uttaranchal"],
173
+ "expected": "05"
174
+ },
175
+ {
176
+ "args": ["Other Territory"],
177
+ "expected": "97"
178
+ },
179
+ {
180
+ "args": ["Andhra Pradesh"],
181
+ "expected": "37"
182
+ },
183
+ {
184
+ "args": ["Andhra Pradesh (before 2014)"],
185
+ "expected": "28"
186
+ }
187
+ ],
188
+ "dropped": 0
189
+ },
190
+ {
191
+ "test": "GstStatesTests.FindByCodeTrimsAndMatchesTheTwoDigitCode",
192
+ "call": "GstStates.FindByCode",
193
+ "kind": "equals",
194
+ "member": "Code",
195
+ "rows": [
196
+ {
197
+ "args": ["07"],
198
+ "expected": "07"
199
+ },
200
+ {
201
+ "args": [" 07 "],
202
+ "expected": "07"
203
+ },
204
+ {
205
+ "args": ["21"],
206
+ "expected": "21"
207
+ }
208
+ ],
209
+ "dropped": 0
210
+ },
211
+ {
212
+ "test": "GstStatesTests.FindByCodeReturnsNullForACodeTheTableDoesNotList",
213
+ "call": "GstStates.FindByCode",
214
+ "kind": "null",
215
+ "rows": [
216
+ {
217
+ "args": ["99"]
218
+ },
219
+ {
220
+ "args": ["00"]
221
+ },
222
+ {
223
+ "args": ["7"]
224
+ }
225
+ ],
226
+ "dropped": 0
227
+ },
228
+ {
229
+ "test": "GstStatesTests.ForGstinReturnsTheStateOfTheGstinsFirstTwoCharacters",
230
+ "call": "GstStates.ForGstin",
231
+ "kind": "equals",
232
+ "member": "Code",
233
+ "rows": [
234
+ {
235
+ "args": ["29ABCDE1234F1ZW"],
236
+ "expected": "29"
237
+ },
238
+ {
239
+ "args": [" 97ABCDE1234F1ZT "],
240
+ "expected": "97"
241
+ },
242
+ {
243
+ "args": ["27AAPFU0939F1ZV"],
244
+ "expected": "27"
245
+ }
246
+ ],
247
+ "dropped": 0
248
+ },
249
+ {
250
+ "test": "GstStatesTests.ForGstinReturnsNullForAnInvalidGstin",
251
+ "call": "GstStates.ForGstin",
252
+ "kind": "null",
253
+ "rows": [
254
+ {
255
+ "args": ["27AAPFU0939F1ZW"]
256
+ },
257
+ {
258
+ "args": ["not-a-gstin"]
259
+ },
260
+ {
261
+ "args": [""]
262
+ }
263
+ ],
264
+ "dropped": 0
265
+ },
266
+ {
267
+ "test": "GstinTests.AcceptsAGstinIssuedUnderARetiredStateCode",
268
+ "call": "Gstin.IsValid",
269
+ "kind": "true",
270
+ "rows": [
271
+ {
272
+ "args": ["25AAPFU0939F1ZZ"]
273
+ },
274
+ {
275
+ "args": ["28AAPFU0939F1ZT"]
276
+ }
277
+ ],
278
+ "dropped": 0
279
+ },
280
+ {
281
+ "test": "GstinTests.Accepts_a_gstin_with_a_state_code_and_the_right_check_character",
282
+ "call": "Gstin.IsValid",
283
+ "kind": "true",
284
+ "rows": [
285
+ {
286
+ "args": ["27AAPFU0939F1ZV"]
287
+ },
288
+ {
289
+ "args": ["27aapfu0939f1zv"]
290
+ },
291
+ {
292
+ "args": ["29ABCDE1234F1ZW"]
293
+ },
294
+ {
295
+ "args": ["07AAACR5055K1Z9"]
296
+ },
297
+ {
298
+ "args": ["97ABCDE1234F1ZT"]
299
+ },
300
+ {
301
+ "args": [" 27AAPFU0939F1ZV "]
302
+ }
303
+ ],
304
+ "dropped": 0
305
+ },
306
+ {
307
+ "test": "GstinTests.Rejects_a_number_that_names_no_state",
308
+ "call": "Gstin.IsValid",
309
+ "kind": "false",
310
+ "rows": [
311
+ {
312
+ "args": ["00ABCDE1234F1ZG"]
313
+ },
314
+ {
315
+ "args": ["39ABCDE1234F1ZV"]
316
+ }
317
+ ],
318
+ "dropped": 0
319
+ },
320
+ {
321
+ "test": "GstinTests.Rejects_anything_without_the_gstin_shape",
322
+ "call": "Gstin.IsValid",
323
+ "kind": "false",
324
+ "rows": [
325
+ {
326
+ "args": ["27AAPFU0939F1YV"]
327
+ },
328
+ {
329
+ "args": ["27AAPFU0939F0ZV"]
330
+ },
331
+ {
332
+ "args": ["27AAPFU0939F1Z"]
333
+ },
334
+ {
335
+ "args": ["not-a-gstin"]
336
+ },
337
+ {
338
+ "args": [""]
339
+ },
340
+ {
341
+ "args": [null]
342
+ }
343
+ ],
344
+ "dropped": 0
345
+ },
346
+ {
347
+ "test": "IfscTests.Accepts_the_ifsc_shape_in_any_case_and_spacing",
348
+ "call": "Ifsc.IsValid",
349
+ "kind": "true",
350
+ "rows": [
351
+ {
352
+ "args": ["HDFC0001234"]
353
+ },
354
+ {
355
+ "args": ["SBIN0ABC123"]
356
+ },
357
+ {
358
+ "args": ["hdfc0001234"]
359
+ },
360
+ {
361
+ "args": [" HDFC 0001234 "]
362
+ }
363
+ ],
364
+ "dropped": 0
365
+ },
366
+ {
367
+ "test": "IfscTests.Rejects_anything_else",
368
+ "call": "Ifsc.IsValid",
369
+ "kind": "false",
370
+ "rows": [
371
+ {
372
+ "args": ["HDFC1001234"]
373
+ },
374
+ {
375
+ "args": ["HDF00001234"]
376
+ },
377
+ {
378
+ "args": ["HDFC000123"]
379
+ },
380
+ {
381
+ "args": ["HDFC00012345"]
382
+ },
383
+ {
384
+ "args": ["HDFC000123-"]
385
+ },
386
+ {
387
+ "args": [""]
388
+ },
389
+ {
390
+ "args": [null]
391
+ }
392
+ ],
393
+ "dropped": 0
394
+ },
395
+ {
396
+ "test": "PaiseTests.Formats_with_lakh_and_crore_grouping",
397
+ "call": "Paise.Format",
398
+ "kind": "equals",
399
+ "member": null,
400
+ "rows": [
401
+ {
402
+ "args": [0],
403
+ "expected": "₹0.00"
404
+ },
405
+ {
406
+ "args": [5],
407
+ "expected": "₹0.05"
408
+ },
409
+ {
410
+ "args": [99999],
411
+ "expected": "₹999.99"
412
+ },
413
+ {
414
+ "args": [100000],
415
+ "expected": "₹1,000.00"
416
+ },
417
+ {
418
+ "args": [15000000],
419
+ "expected": "₹1,50,000.00"
420
+ },
421
+ {
422
+ "args": [123456789],
423
+ "expected": "₹12,34,567.89"
424
+ },
425
+ {
426
+ "args": [1234567890123],
427
+ "expected": "₹12,34,56,78,901.23"
428
+ },
429
+ {
430
+ "args": [-1250],
431
+ "expected": "-₹12.50"
432
+ }
433
+ ],
434
+ "dropped": 2
435
+ },
436
+ {
437
+ "test": "PaiseTests.Rounds_whole_rupees_half_away_from_zero_on_both_signs",
438
+ "call": "Paise.FormatRupees",
439
+ "kind": "equals",
440
+ "member": null,
441
+ "rows": [
442
+ {
443
+ "args": [1250],
444
+ "expected": "₹13"
445
+ },
446
+ {
447
+ "args": [-1250],
448
+ "expected": "-₹13"
449
+ },
450
+ {
451
+ "args": [1249],
452
+ "expected": "₹12"
453
+ },
454
+ {
455
+ "args": [-1249],
456
+ "expected": "-₹12"
457
+ },
458
+ {
459
+ "args": [50],
460
+ "expected": "₹1"
461
+ },
462
+ {
463
+ "args": [-50],
464
+ "expected": "-₹1"
465
+ },
466
+ {
467
+ "args": [49],
468
+ "expected": "₹0"
469
+ },
470
+ {
471
+ "args": [-49],
472
+ "expected": "₹0"
473
+ },
474
+ {
475
+ "args": [0],
476
+ "expected": "₹0"
477
+ }
478
+ ],
479
+ "dropped": 0
480
+ },
481
+ {
482
+ "test": "PaiseTests.Drops_the_rupee_sign_when_symbol_is_false",
483
+ "call": "Paise.Format",
484
+ "kind": "equals",
485
+ "member": null,
486
+ "rows": [
487
+ {
488
+ "args": [15000000, false],
489
+ "expected": "1,50,000.00"
490
+ },
491
+ {
492
+ "args": [-1250, false],
493
+ "expected": "-12.50"
494
+ },
495
+ {
496
+ "args": [5, false],
497
+ "expected": "0.05"
498
+ }
499
+ ],
500
+ "dropped": 0
501
+ },
502
+ {
503
+ "test": "PanTests.Accepts_the_pan_shape_in_any_case_and_spacing",
504
+ "call": "Pan.IsValid",
505
+ "kind": "true",
506
+ "rows": [
507
+ {
508
+ "args": ["ABCDE1234F"]
509
+ },
510
+ {
511
+ "args": ["abcde1234f"]
512
+ },
513
+ {
514
+ "args": [" AAPFU 0939F "]
515
+ }
516
+ ],
517
+ "dropped": 0
518
+ },
519
+ {
520
+ "test": "PanTests.Rejects_anything_else",
521
+ "call": "Pan.IsValid",
522
+ "kind": "false",
523
+ "rows": [
524
+ {
525
+ "args": ["ABCD1234F"]
526
+ },
527
+ {
528
+ "args": ["ABCDE12345"]
529
+ },
530
+ {
531
+ "args": ["1234567890"]
532
+ },
533
+ {
534
+ "args": ["ABCDE1234FG"]
535
+ },
536
+ {
537
+ "args": [""]
538
+ },
539
+ {
540
+ "args": [null]
541
+ }
542
+ ],
543
+ "dropped": 0
544
+ },
545
+ {
546
+ "test": "PincodeTests.Accepts_six_digits_not_starting_with_zero",
547
+ "call": "Pincode.IsValid",
548
+ "kind": "true",
549
+ "rows": [
550
+ {
551
+ "args": ["110001"]
552
+ },
553
+ {
554
+ "args": ["560034"]
555
+ },
556
+ {
557
+ "args": ["999999"]
558
+ },
559
+ {
560
+ "args": ["110 001"]
561
+ },
562
+ {
563
+ "args": [" 400001 "]
564
+ }
565
+ ],
566
+ "dropped": 0
567
+ },
568
+ {
569
+ "test": "PincodeTests.Rejects_anything_else",
570
+ "call": "Pincode.IsValid",
571
+ "kind": "false",
572
+ "rows": [
573
+ {
574
+ "args": ["011001"]
575
+ },
576
+ {
577
+ "args": ["11001"]
578
+ },
579
+ {
580
+ "args": ["1100011"]
581
+ },
582
+ {
583
+ "args": ["11000A"]
584
+ },
585
+ {
586
+ "args": ["110-001"]
587
+ },
588
+ {
589
+ "args": [""]
590
+ },
591
+ {
592
+ "args": [null]
593
+ }
594
+ ],
595
+ "dropped": 0
596
+ }
597
+ ],
598
+ "skippedTests": [
599
+ {
600
+ "test": "AadhaarTests.Accepts_the_spaces_and_hyphens_people_copy_off_the_card",
601
+ "reason": "body is not one assert"
602
+ },
603
+ {
604
+ "test": "AadhaarTests.FingerprintIgnoresTheSpacesAndHyphensPeopleTypeIn",
605
+ "reason": "expected value is not a parameter"
606
+ },
607
+ {
608
+ "test": "AadhaarTests.FingerprintRefusesAnInvalidNumber",
609
+ "reason": "body is not one assert"
610
+ },
611
+ {
612
+ "test": "AadhaarTests.TheLibraryNeverWritesTheNumberAnywhere",
613
+ "reason": "body is not one assert"
614
+ },
615
+ {
616
+ "test": "FinancialYearTests.Parses_every_accepted_form_to_the_starting_year",
617
+ "reason": "expected value is not a parameter"
618
+ },
619
+ {
620
+ "test": "FinancialYearTests.Parse_throws_a_format_exception_that_names_the_value",
621
+ "reason": "body is not one assert"
622
+ },
623
+ {
624
+ "test": "NicDivisionsTests.AOneDigitCodeFindsTheSameDivisionAsItsTwoDigitForm",
625
+ "reason": "body is not one assert"
626
+ },
627
+ {
628
+ "test": "PaiseTests.Converts_rupees_to_paise_exactly",
629
+ "reason": "call argument is not a parameter or literal"
630
+ },
631
+ {
632
+ "test": "PaiseTests.Rounds_a_fraction_of_a_paisa_by_the_rule_given",
633
+ "reason": "call argument is not a parameter or literal"
634
+ },
635
+ {
636
+ "test": "ValidationAttributesTests.Gstin_attribute_treats_an_absent_value_as_valid",
637
+ "reason": "call is not a member call"
638
+ },
639
+ {
640
+ "test": "ValidationAttributesTests.Pan_attribute_treats_an_absent_value_as_valid",
641
+ "reason": "call is not a member call"
642
+ },
643
+ {
644
+ "test": "ValidationAttributesTests.Ifsc_attribute_treats_an_absent_value_as_valid",
645
+ "reason": "call is not a member call"
646
+ },
647
+ {
648
+ "test": "ValidationAttributesTests.Pincode_attribute_treats_an_absent_value_as_valid",
649
+ "reason": "call is not a member call"
650
+ },
651
+ {
652
+ "test": "ValidationAttributesTests.IndianMobile_attribute_treats_an_absent_value_as_valid",
653
+ "reason": "call is not a member call"
654
+ },
655
+ {
656
+ "test": "ValidationAttributesTests.Aadhaar_attribute_treats_an_absent_value_as_valid",
657
+ "reason": "call is not a member call"
658
+ }
659
+ ]
660
+ }
@@ -1 +1 @@
1
- "use strict";const RE_EMAIL=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,RE_INDIAN_MOBILE=/^[6-9]\d{9}$/,RE_NUMERIC=/^-?\d+(?:\.\d+)?$/,RE_INTEGER=/^-?\d+$/,RE_ALPHANUMERIC=/^[a-zA-Z0-9]+$/,RE_PINCODE_IN=/^[1-9]\d{5}$/,RE_PAN=/^[A-Z]{5}\d{4}[A-Z]$/,RE_GSTIN=/^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/,RE_AADHAAR=/^[2-9]\d{11}$/,RE_IFSC=/^[A-Z]{4}0[A-Z0-9]{6}$/,RE_HEX_COLOR=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,asString=t=>"string"==typeof t?t.trim():null;export const isNonEmpty=t=>{const e=asString(t);return!!e&&e.length>0};export const isEmail=t=>{const e=asString(t);return!!e&&RE_EMAIL.test(e)};export const isIndianMobile=t=>{const e=asString(t);if(!e)return!1;const r=e.replace(/\D/g,""),n=r.startsWith("91")&&12===r.length?r.slice(2):r;return RE_INDIAN_MOBILE.test(n)};export const isPhone=t=>{const e=asString(t);if(!e)return!1;const r=e.replace(/[^\d+]/g,"").replace(/^\+/,"");return r.length>=7&&r.length<=15&&/^\d+$/.test(r)};export const isUrl=t=>{const e=asString(t);if(!e)return!1;try{return new URL(e),/^https?:\/\//i.test(e)||/^[a-z][a-z0-9+\-.]*:\/\//i.test(e)}catch{return!1}};export const isNumeric=t=>{if("number"==typeof t)return Number.isFinite(t);const e=asString(t);return!!e&&RE_NUMERIC.test(e)};export const isInteger=t=>{if("number"==typeof t)return Number.isInteger(t);const e=asString(t);return!!e&&RE_INTEGER.test(e)};export const isAlphanumeric=t=>{const e=asString(t);return!!e&&RE_ALPHANUMERIC.test(e)};export const isStrongPassword=(t,e={})=>{if("string"!=typeof t)return!1;const{minLength:r=8,requireUppercase:n=!0,requireLowercase:s=!0,requireNumber:o=!0,requireSymbol:i=!1}=e;return!(t.length<r)&&(!(n&&!/[A-Z]/.test(t))&&(!(s&&!/[a-z]/.test(t))&&(!(o&&!/\d/.test(t))&&!(i&&!/[^A-Za-z0-9]/.test(t)))))};export const isIndianPincode=t=>{const e=asString(t);return!!e&&RE_PINCODE_IN.test(e)};export const isPan=t=>{const e=asString(t);return!!e&&RE_PAN.test(e.toUpperCase())};const BASE_36="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",gstinCheckCharacter=t=>{let e=0;for(let r=0;r<14;r+=1){const n=BASE_36.indexOf(t[r])*(r%2==0?1:2);e+=Math.floor(n/36)+n%36}return BASE_36[(36-e%36)%36]};export const isGstin=t=>{const e=asString(t)?.toUpperCase();return!!e&&RE_GSTIN.test(e)&&e[14]===gstinCheckCharacter(e)};const VERHOEFF_D=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],VERHOEFF_P=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],isVerhoeffValid=t=>{let e=0;for(let r=0;r<t.length;r+=1){const n=Number(t[t.length-1-r]);e=VERHOEFF_D[e][VERHOEFF_P[r%8][n]]}return 0===e};export const isAadhaar=t=>{const e=asString(t);if(!e)return!1;const r=e.replace(/[\s-]/g,"");return RE_AADHAAR.test(r)&&isVerhoeffValid(r)};export const isIfsc=t=>{const e=asString(t);return!!e&&RE_IFSC.test(e.toUpperCase())};export const isHexColor=t=>{const e=asString(t);return!!e&&RE_HEX_COLOR.test(e)};export const isBetween=(t,e,r,n=!0)=>{const s="number"==typeof t?t:Number(asString(t));return!!Number.isFinite(s)&&(n?s>=e&&s<=r:s>e&&s<r)};export const minLength=(t,e)=>{const r=asString(t);return!!r&&r.length>=e};export const maxLength=(t,e)=>{const r=asString(t);return null==r||r.length<=e};
1
+ "use strict";const RE_EMAIL=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,RE_NUMERIC=/^-?\d+(?:\.\d+)?$/,RE_INTEGER=/^-?\d+$/,RE_ALPHANUMERIC=/^[a-zA-Z0-9]+$/,RE_HEX_COLOR=/^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,asString=t=>"string"==typeof t?t.trim():null;export const isNonEmpty=t=>{const e=asString(t);return!!e&&e.length>0};export const isEmail=t=>{const e=asString(t);return!!e&&RE_EMAIL.test(e)};export const isPhone=t=>{const e=asString(t);if(!e)return!1;const r=e.replace(/[^\d+]/g,"").replace(/^\+/,"");return r.length>=7&&r.length<=15&&/^\d+$/.test(r)};export const isUrl=t=>{const e=asString(t);if(!e)return!1;try{return new URL(e),/^https?:\/\//i.test(e)||/^[a-z][a-z0-9+\-.]*:\/\//i.test(e)}catch{return!1}};export const isNumeric=t=>{if("number"==typeof t)return Number.isFinite(t);const e=asString(t);return!!e&&RE_NUMERIC.test(e)};export const isInteger=t=>{if("number"==typeof t)return Number.isInteger(t);const e=asString(t);return!!e&&RE_INTEGER.test(e)};export const isAlphanumeric=t=>{const e=asString(t);return!!e&&RE_ALPHANUMERIC.test(e)};export const isStrongPassword=(t,e={})=>{if("string"!=typeof t)return!1;const{minLength:r=8,requireUppercase:n=!0,requireLowercase:s=!0,requireNumber:o=!0,requireSymbol:i=!1}=e;return!(t.length<r)&&(!(n&&!/[A-Z]/.test(t))&&(!(s&&!/[a-z]/.test(t))&&(!(o&&!/\d/.test(t))&&!(i&&!/[^A-Za-z0-9]/.test(t)))))};export const isHexColor=t=>{const e=asString(t);return!!e&&RE_HEX_COLOR.test(e)};export const isBetween=(t,e,r,n=!0)=>{const s="number"==typeof t?t:Number(asString(t));return!!Number.isFinite(s)&&(n?s>=e&&s<=r:s>e&&s<r)};export const minLength=(t,e)=>{const r=asString(t);return!!r&&r.length>=e};export const maxLength=(t,e)=>{const r=asString(t);return null==r||r.length<=e};