inferred-types 0.55.5 → 0.55.6
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/modules/inferred-types/dist/index.cjs +25 -0
- package/modules/inferred-types/dist/index.cjs.map +1 -1
- package/modules/inferred-types/dist/index.d.ts +62 -1
- package/modules/inferred-types/dist/index.js +22 -0
- package/modules/inferred-types/dist/index.js.map +1 -1
- package/modules/runtime/dist/index.cjs +27 -0
- package/modules/runtime/dist/index.cjs.map +1 -1
- package/modules/runtime/dist/index.d.ts +19 -1
- package/modules/runtime/dist/index.js +24 -0
- package/modules/runtime/dist/index.js.map +1 -1
- package/modules/types/dist/index.d.ts +44 -1
- package/package.json +1 -1
|
@@ -340,6 +340,7 @@ __export(index_exports, {
|
|
|
340
340
|
isAccelerationUom: () => isAccelerationUom,
|
|
341
341
|
isAlpha: () => isAlpha,
|
|
342
342
|
isAmazonUrl: () => isAmazonUrl,
|
|
343
|
+
isAmericanExpress: () => isAmericanExpress,
|
|
343
344
|
isApi: () => isApi,
|
|
344
345
|
isApiSurface: () => isApiSurface,
|
|
345
346
|
isAppleUrl: () => isAppleUrl,
|
|
@@ -367,6 +368,7 @@ __export(index_exports, {
|
|
|
367
368
|
isCountryCode2: () => isCountryCode2,
|
|
368
369
|
isCountryCode3: () => isCountryCode3,
|
|
369
370
|
isCountryName: () => isCountryName,
|
|
371
|
+
isCreditCard: () => isCreditCard,
|
|
370
372
|
isCssAspectRatio: () => isCssAspectRatio,
|
|
371
373
|
isCsv: () => isCsv,
|
|
372
374
|
isCurrentMetric: () => isCurrentMetric,
|
|
@@ -555,6 +557,7 @@ __export(index_exports, {
|
|
|
555
557
|
isUsStateAbbreviation: () => isUsStateAbbreviation,
|
|
556
558
|
isUsStateName: () => isUsStateName,
|
|
557
559
|
isVariable: () => isVariable,
|
|
560
|
+
isVisaMastercard: () => isVisaMastercard,
|
|
558
561
|
isVoltageMetric: () => isVoltageMetric,
|
|
559
562
|
isVoltageUom: () => isVoltageUom,
|
|
560
563
|
isVolumeMetric: () => isVolumeMetric,
|
|
@@ -7157,6 +7160,25 @@ function isYesterday(test) {
|
|
|
7157
7160
|
}
|
|
7158
7161
|
return false;
|
|
7159
7162
|
}
|
|
7163
|
+
function isVisaMastercard(val) {
|
|
7164
|
+
if (isString(val)) {
|
|
7165
|
+
const parts = val.split(" ");
|
|
7166
|
+
return parts.length === 4 && parts.every((i) => isNumberLike(i) && i.length === 4);
|
|
7167
|
+
}
|
|
7168
|
+
return false;
|
|
7169
|
+
}
|
|
7170
|
+
function isAmericanExpress(val) {
|
|
7171
|
+
if (isString(val)) {
|
|
7172
|
+
const parts = val.split(" ");
|
|
7173
|
+
return parts.length === 3 && parts.every(
|
|
7174
|
+
(i) => isNumberLike(i) && parts[0].length === 4 && parts[1].length === 6
|
|
7175
|
+
);
|
|
7176
|
+
}
|
|
7177
|
+
return false;
|
|
7178
|
+
}
|
|
7179
|
+
function isCreditCard(val) {
|
|
7180
|
+
return isVisaMastercard(val) || isAmericanExpress(val);
|
|
7181
|
+
}
|
|
7160
7182
|
function isString(value) {
|
|
7161
7183
|
return typeof value === "string";
|
|
7162
7184
|
}
|
|
@@ -8773,6 +8795,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
|
|
|
8773
8795
|
isAccelerationUom,
|
|
8774
8796
|
isAlpha,
|
|
8775
8797
|
isAmazonUrl,
|
|
8798
|
+
isAmericanExpress,
|
|
8776
8799
|
isApi,
|
|
8777
8800
|
isApiSurface,
|
|
8778
8801
|
isAppleUrl,
|
|
@@ -8800,6 +8823,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
|
|
|
8800
8823
|
isCountryCode2,
|
|
8801
8824
|
isCountryCode3,
|
|
8802
8825
|
isCountryName,
|
|
8826
|
+
isCreditCard,
|
|
8803
8827
|
isCssAspectRatio,
|
|
8804
8828
|
isCsv,
|
|
8805
8829
|
isCurrentMetric,
|
|
@@ -8988,6 +9012,7 @@ var ExifSaturation = /* @__PURE__ */ ((ExifSaturation2) => {
|
|
|
8988
9012
|
isUsStateAbbreviation,
|
|
8989
9013
|
isUsStateName,
|
|
8990
9014
|
isVariable,
|
|
9015
|
+
isVisaMastercard,
|
|
8991
9016
|
isVoltageMetric,
|
|
8992
9017
|
isVoltageUom,
|
|
8993
9018
|
isVolumeMetric,
|