4.5.1 • Published 5 months ago

@exodus/geolocation v4.5.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@exodus/geolocation

Differently than other modules, this one only exports the atom as geolocation is a read only data source and module itself does not have any action nor should be consumed directly.

Usage

import geolocationMonitorDefinition from '@exodus/geolocation/monitor'
import { geolocationAtomDefinition } from '@exodus/geolocation/atoms'

ioc.registerMultiple([geolocationMonitorDefinition, geolocationAtomDefinition])
ioc.resolve()

const { geolocationAtom } = ioc.getByType('atom')

// get current geolocation
const {
  // ...
  ip,
  countryName,
  countryCode,
  regionName,
  regionCode,
  isAllowed,
  isProxy,
} = await geolocationAtom.get()

// subscribe to geolocation changes
geolocationAtom.observe((geolocation) => {})
4.5.1

5 months ago

4.5.0

6 months ago

4.4.0

7 months ago

4.3.1

11 months ago

4.3.0

11 months ago

4.2.4

1 year ago

4.2.3

1 year ago

4.2.2

1 year ago

4.2.1

1 year ago

4.2.0

1 year ago

4.1.0

2 years ago

4.0.0

2 years ago

3.2.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.0

3 years ago

0.0.2

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago