itube-specs 0.0.402 → 0.0.404
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
|
@@ -4,12 +4,16 @@ import { getGeoHeaders } from './geo';
|
|
|
4
4
|
export async function isGeoMatch(event, config) {
|
|
5
5
|
const data = await getGeoHeaders(event, config);
|
|
6
6
|
|
|
7
|
-
const AGE_VERIFY_REGIONS = ['KS'];
|
|
8
|
-
const AGE_VERIFY_COUNTRIES = ['GB'];
|
|
7
|
+
const AGE_VERIFY_REGIONS = ['KS', 'ZH'];
|
|
8
|
+
const AGE_VERIFY_COUNTRIES = ['GB', 'NL'];
|
|
9
9
|
|
|
10
10
|
const countryCode = data?.data[ 'X-Country-Code' ]?.[ 0 ];
|
|
11
11
|
const stateCode = data?.data[ 'X-Region-Code' ]?.[ 0 ];
|
|
12
12
|
|
|
13
|
+
console.log(data, 'data')
|
|
14
|
+
console.log(countryCode, 'countryCode')
|
|
15
|
+
console.log(stateCode, 'stateCode')
|
|
16
|
+
|
|
13
17
|
return AGE_VERIFY_COUNTRIES.includes(countryCode)
|
|
14
18
|
|| AGE_VERIFY_REGIONS.includes(stateCode);
|
|
15
19
|
}
|