itube-specs 0.0.401 → 0.0.402
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/package.json
CHANGED
|
@@ -10,9 +10,8 @@ export async function isGeoMatch(event, config) {
|
|
|
10
10
|
const countryCode = data?.data[ 'X-Country-Code' ]?.[ 0 ];
|
|
11
11
|
const stateCode = data?.data[ 'X-Region-Code' ]?.[ 0 ];
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return true;
|
|
13
|
+
return AGE_VERIFY_COUNTRIES.includes(countryCode)
|
|
14
|
+
|| AGE_VERIFY_REGIONS.includes(stateCode);
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export async function isAgeVerified(event, config) {
|