Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@ng-web-apis/geolocation

Package Overview
Dependencies
Maintainers
4
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-web-apis/geolocation - npm Package Compare versions

Comparing version
5.0.2
to
5.0.3
+1
-1
fesm2022/ng-web-apis-geolocation.mjs.map

@@ -1,1 +0,1 @@

{"version":3,"file":"ng-web-apis-geolocation.mjs","sources":["../../../libs/geolocation/src/tokens/geolocation.ts","../../../libs/geolocation/src/tokens/geolocation-options.ts","../../../libs/geolocation/src/tokens/geolocation-support.ts","../../../libs/geolocation/src/services/geolocation.service.ts","../../../libs/geolocation/src/ng-web-apis-geolocation.ts"],"sourcesContent":["import {inject, InjectionToken} from '@angular/core';\nimport {WA_NAVIGATOR} from '@ng-web-apis/common';\n\nexport const WA_GEOLOCATION = new InjectionToken<Geolocation>('[WA_GEOLOCATION]', {\n factory: () => inject(WA_NAVIGATOR).geolocation,\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const WA_POSITION_OPTIONS = new InjectionToken<PositionOptions>(\n '[WA_POSITION_OPTIONS]',\n {factory: () => ({})},\n);\n","import {inject, InjectionToken} from '@angular/core';\n\nimport {WA_GEOLOCATION} from './geolocation';\n\nexport const WA_GEOLOCATION_SUPPORT = new InjectionToken<boolean>(\n '[WA_GEOLOCATION_SUPPORT]',\n {factory: () => !!inject(WA_GEOLOCATION)},\n);\n","import {inject, Injectable} from '@angular/core';\nimport {finalize, Observable, shareReplay} from 'rxjs';\n\nimport {WA_GEOLOCATION} from '../tokens/geolocation';\nimport {WA_POSITION_OPTIONS} from '../tokens/geolocation-options';\nimport {WA_GEOLOCATION_SUPPORT} from '../tokens/geolocation-support';\n\n@Injectable({providedIn: 'root'})\nexport class WaGeolocationService extends Observable<GeolocationPosition> {\n constructor() {\n const geolocationRef = inject(WA_GEOLOCATION);\n const geolocationSupported = inject(WA_GEOLOCATION_SUPPORT);\n const positionOptions = inject(WA_POSITION_OPTIONS);\n\n let watchPositionId = 0;\n\n super((subscriber) => {\n if (!geolocationSupported) {\n subscriber.error('Geolocation is not supported in your browser');\n }\n\n watchPositionId = geolocationRef.watchPosition(\n (position) => subscriber.next(position),\n (positionError) => subscriber.error(positionError),\n positionOptions,\n );\n });\n\n return this.pipe(\n finalize(() => geolocationRef.clearWatch(watchPositionId)),\n shareReplay({bufferSize: 1, refCount: true}),\n ) as WaGeolocationService;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,cAAc,GAAG,IAAI,cAAc,CAAc,kBAAkB,EAAE;IAC9E,OAAO,EAAE,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW;AAClD,CAAA;;MCHY,mBAAmB,GAAG,IAAI,cAAc,CACjD,uBAAuB,EACvB,EAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAC;;MCAZ,sBAAsB,GAAG,IAAI,cAAc,CACpD,0BAA0B,EAC1B,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,EAAC;;ACEvC,MAAO,oBAAqB,SAAQ,UAA+B,CAAA;AACrE,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAC7C,QAAA,MAAM,oBAAoB,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC3D,QAAA,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;QAEnD,IAAI,eAAe,GAAG,CAAC;AAEvB,QAAA,KAAK,CAAC,CAAC,UAAU,KAAI;YACjB,IAAI,CAAC,oBAAoB,EAAE;AACvB,gBAAA,UAAU,CAAC,KAAK,CAAC,8CAA8C,CAAC;;AAGpE,YAAA,eAAe,GAAG,cAAc,CAAC,aAAa,CAC1C,CAAC,QAAQ,KAAK,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EACvC,CAAC,aAAa,KAAK,UAAU,CAAC,KAAK,CAAC,aAAa,CAAC,EAClD,eAAe,CAClB;AACL,SAAC,CAAC;AAEF,QAAA,OAAO,IAAI,CAAC,IAAI,CACZ,QAAQ,CAAC,MAAM,cAAc,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,EAC1D,WAAW,CAAC,EAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CACvB;;wGAvBpB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAApB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADR,MAAM,EAAA,CAAA;;4FAClB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;ACPhC;;AAEG;;;;"}
{"version":3,"file":"ng-web-apis-geolocation.mjs","sources":["../../../libs/geolocation/src/tokens/geolocation.ts","../../../libs/geolocation/src/tokens/geolocation-options.ts","../../../libs/geolocation/src/tokens/geolocation-support.ts","../../../libs/geolocation/src/services/geolocation.service.ts","../../../libs/geolocation/src/ng-web-apis-geolocation.ts"],"sourcesContent":["import {inject, InjectionToken} from '@angular/core';\nimport {WA_NAVIGATOR} from '@ng-web-apis/common';\n\nexport const WA_GEOLOCATION = new InjectionToken<Geolocation>('[WA_GEOLOCATION]', {\n factory: () => inject(WA_NAVIGATOR).geolocation,\n});\n","import {InjectionToken} from '@angular/core';\n\nexport const WA_POSITION_OPTIONS = new InjectionToken<PositionOptions>(\n '[WA_POSITION_OPTIONS]',\n {factory: () => ({})},\n);\n","import {inject, InjectionToken} from '@angular/core';\n\nimport {WA_GEOLOCATION} from './geolocation';\n\nexport const WA_GEOLOCATION_SUPPORT = new InjectionToken<boolean>(\n '[WA_GEOLOCATION_SUPPORT]',\n {factory: () => !!inject(WA_GEOLOCATION)},\n);\n","import {inject, Injectable} from '@angular/core';\nimport {finalize, Observable, shareReplay} from 'rxjs';\n\nimport {WA_GEOLOCATION} from '../tokens/geolocation';\nimport {WA_POSITION_OPTIONS} from '../tokens/geolocation-options';\nimport {WA_GEOLOCATION_SUPPORT} from '../tokens/geolocation-support';\n\n@Injectable({providedIn: 'root'})\nexport class WaGeolocationService extends Observable<GeolocationPosition> {\n constructor() {\n const geolocationRef = inject(WA_GEOLOCATION);\n const geolocationSupported = inject(WA_GEOLOCATION_SUPPORT);\n const positionOptions = inject(WA_POSITION_OPTIONS);\n\n let watchPositionId = 0;\n\n super((subscriber) => {\n if (!geolocationSupported) {\n subscriber.error('Geolocation is not supported in your browser');\n }\n\n watchPositionId = geolocationRef.watchPosition(\n (position) => subscriber.next(position),\n (positionError) => subscriber.error(positionError),\n positionOptions,\n );\n });\n\n return this.pipe(\n finalize(() => geolocationRef.clearWatch(watchPositionId)),\n shareReplay({bufferSize: 1, refCount: true}),\n ) as WaGeolocationService;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAGa,cAAc,GAAG,IAAI,cAAc,CAAc,kBAAkB,EAAE;IAC9E,OAAO,EAAE,MAAM,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW;AAClD,CAAA;;MCHY,mBAAmB,GAAG,IAAI,cAAc,CACjD,uBAAuB,EACvB,EAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAC;;MCAZ,sBAAsB,GAAG,IAAI,cAAc,CACpD,0BAA0B,EAC1B,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,EAAC;;ACEvC,MAAO,oBAAqB,SAAQ,UAA+B,CAAA;AACrE,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AAC7C,QAAA,MAAM,oBAAoB,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC3D,QAAA,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;QAEnD,IAAI,eAAe,GAAG,CAAC;AAEvB,QAAA,KAAK,CAAC,CAAC,UAAU,KAAI;YACjB,IAAI,CAAC,oBAAoB,EAAE;AACvB,gBAAA,UAAU,CAAC,KAAK,CAAC,8CAA8C,CAAC;YACpE;AAEA,YAAA,eAAe,GAAG,cAAc,CAAC,aAAa,CAC1C,CAAC,QAAQ,KAAK,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EACvC,CAAC,aAAa,KAAK,UAAU,CAAC,KAAK,CAAC,aAAa,CAAC,EAClD,eAAe,CAClB;AACL,QAAA,CAAC,CAAC;AAEF,QAAA,OAAO,IAAI,CAAC,IAAI,CACZ,QAAQ,CAAC,MAAM,cAAc,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,EAC1D,WAAW,CAAC,EAAC,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAC,CAAC,CACvB;IAC7B;wGAxBS,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAApB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADR,MAAM,EAAA,CAAA;;4FAClB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC;;;ACPhC;;AAEG;;;;"}
{
"name": "@ng-web-apis/geolocation",
"version": "5.0.2",
"version": "5.0.3",
"description": "This is a library for declarative use of Geolocation API with Angular",

@@ -40,3 +40,3 @@ "keywords": [

"@angular/core": ">=19.0.0",
"@ng-web-apis/common": "^5.0.2"
"@ng-web-apis/common": "^5.0.3"
},

@@ -43,0 +43,0 @@ "publishConfig": {