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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.401",
4
+ "version": "0.0.402",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -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
- // return AGE_VERIFY_COUNTRIES.includes(countryCode)
14
- // || AGE_VERIFY_REGIONS.includes(stateCode);
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) {
@@ -1,5 +1,3 @@
1
- import { useRuntimeConfig } from '#imports';
2
-
3
1
  export async function getGeoHeaders(event, config) {
4
2
  if (event.context.geoHeaders) {
5
3
  return event.context.geoHeaders;