Skip to content

Commit

Permalink
remove console from source
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 5, 2024
1 parent b78ea7e commit 24a188b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nostr-geotags",
"version": "0.4.0",
"version": "0.4.1",
"description": "Give an object of geodata, returns standardized nostr geotags ",
"type": "module",
"main": "dist/index.js",
Expand All @@ -22,7 +22,7 @@
"transform"
],
"dependencies": {
"iso-3166": "4.3.1",
"iso-3166": "4.3.0",
"ngeohash": "0.6.3"
},
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ const generateTags = (input: InputData, opts: Options): GeoTags[] => {
const partialGeohash = fullGeohash.substring(0, i);

Check failure on line 189 in src/index.ts

View workflow job for this annotation

GitHub Actions / publish

'fullGeohash' is possibly 'undefined'.

Check failure on line 189 in src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Variable 'i' implicitly has an 'any' type.

Check failure on line 189 in src/index.ts

View workflow job for this annotation

GitHub Actions / publish

'fullGeohash' is possibly 'undefined'.

Check failure on line 189 in src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Variable 'i' implicitly has an 'any' type.

Check failure on line 189 in src/index.ts

View workflow job for this annotation

GitHub Actions / publish

'fullGeohash' is possibly 'undefined'.

Check failure on line 189 in src/index.ts

View workflow job for this annotation

GitHub Actions / publish

Variable 'i' implicitly has an 'any' type.
const tag: Geohash = ['g', partialGeohash ]
if(!opts.legacy) tag.push('geohash')
console.log('wtf', 'tag length', tag.length)
tags.push(tag);
}
}
Expand All @@ -198,7 +197,6 @@ const generateTags = (input: InputData, opts: Options): GeoTags[] => {
// GPS
if(opts?.gps && input.geohash && (!input?.lat || !input?.lon)) {
const dd = ngeohash.decode(input.geohash)
console.log('wtf', dd)
input.lat = dd.latitude
input.lon = dd.longitude
}
Expand Down

0 comments on commit 24a188b

Please sign in to comment.