From 328fa86fbcd9a8d0f43602555ccc0da498243970 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Mon, 9 Dec 2024 14:22:08 -0500 Subject: [PATCH] chore: spellcheck --- .cspellcache | 1 + .github/workflows/pr-open.yml | 11 +++++++++++ CHANGELOG.md | 2 +- README.md | 8 ++++---- assets/cspell-dictionary.txt | 8 ++++++++ cspell.json | 8 ++++++++ lefthook.yml | 2 +- package.json | 1 - src/services/geojson.ts | 8 ++++---- 9 files changed, 38 insertions(+), 11 deletions(-) create mode 100644 .cspellcache create mode 100644 assets/cspell-dictionary.txt diff --git a/.cspellcache b/.cspellcache new file mode 100644 index 0000000..4722409 --- /dev/null +++ b/.cspellcache @@ -0,0 +1 @@ +[{"biome.json":"1","bun.lockb":"2","CHANGELOG.md":"3","cspell.json":"4","lefthook.yml":"5","package.json":"6","README.md":"7","src/constants/endpoint.ts":"8","src/index.ts":"9","src/middleware/query.ts":"10","src/services/geojson.ts":"11","src/services/overpass.ts":"12","src/test/overpass.test.ts":"13","src/test/query.test.ts":"14","src/types/fetch.ts":"15","src/types/overpass.ts":"16","src/util/common.ts":"17","src/util/error.ts":"18","src/util/log.ts":"19","src/util/parse.ts":"20","src/util/polygon.ts":"21","src/util/rewind.ts":"22","tsconfig.json":"23"},{"hash":"24","data":"25"},{"hash":"26","data":"27"},{"hash":"28","data":"29"},{"hash":"30","data":"31"},{"hash":"32","data":"33"},{"hash":"34","data":"35"},{"hash":"36","data":"37"},{"hash":"38","data":"39"},{"hash":"40","data":"41"},{"hash":"42","data":"43"},{"hash":"44","data":"45"},{"hash":"46","data":"47"},{"hash":"48","data":"49"},{"hash":"50","data":"51"},{"hash":"52","data":"53"},{"hash":"54","data":"55"},{"hash":"56","data":"57"},{"hash":"58","data":"59"},{"hash":"60","data":"61"},{"hash":"62","data":"63"},{"hash":"64","data":"65"},{"hash":"66","data":"67"},{"hash":"68","data":"69"},"d01c9de081f3846609844101b2e0dfd1",{"v":"70","r":"71","d":"72"},"ad744c2973f342f4638824f848f8fc96",{"v":"70","r":"73","d":"74"},"9fadd1fd256fe051c7a017e847b3a805",{"v":"70","r":"75","d":"76"},"6dab7abebe3f225d2e77ca097cc8b8a9",{"v":"70","r":"77","d":"72"},"8014926c3877e96382015e847d239b1b",{"v":"70","r":"78","d":"79"},"ff96036005acbee1b676ed8aeeeca502",{"v":"70","r":"80","d":"72"},"f4f9ac90132a05369b480c40f7f44ce0",{"v":"70","r":"81","d":"76"},"2932e3a538cebbb800daf494db610a3f",{"v":"70","r":"82","d":"83"},"38efa4c2a12ca37b373a646d7384bdff",{"v":"70","r":"84","d":"83"},"d72848786b8103f79647da5cd21157f5",{"v":"70","r":"85","d":"83"},"66764bb613f94cbeb97915e1537cef09",{"v":"70","r":"86","d":"83"},"dfd29f14e47cde70e148768ec14f1dd5",{"v":"70","r":"87","d":"83"},"4e49fddbad1f4a7a60ad990a1cebd993",{"v":"70","r":"88","d":"83"},"24520b351e053bdf75a24d91cd0c2c78",{"v":"70","r":"89","d":"83"},"d1669e7ef99f535ff636f29ac2b65203",{"v":"70","r":"90","d":"83"},"2318d2b2e405033b67dcb425dc9524e5",{"v":"70","r":"91","d":"83"},"9d50739e1a4bdfdceddff810a344a86d",{"v":"70","r":"92","d":"83"},"898771375416e4f6731fafd893f772fe",{"v":"70","r":"93","d":"83"},"742e17c4753b890b8f8ee7af9bda29c2",{"v":"70","r":"94","d":"83"},"46d40033a98a81b414f2c37446718c14",{"v":"70","r":"95","d":"83"},"e4ec8abc4a0bce53b3619a858885e277",{"v":"70","r":"96","d":"83"},"e5fca2d95994e3a996fd7866006c601d",{"v":"70","r":"97","d":"83"},"dcb6ba476098e35ac482d5c2f407bae9",{"v":"70","r":"98","d":"72"},"8.16-1-v|r|d",{"issues":"99","processed":true,"errors":0,"configErrors":0},["100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179"],{"issues":"180","processed":false,"errors":0,"configErrors":0},["100","101"],{"issues":"181","processed":true,"errors":0,"configErrors":0},["100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","182","143","183","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179"],{"issues":"184","processed":true,"errors":0,"configErrors":0},{"issues":"185","processed":true,"errors":0,"configErrors":0},["100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","137","138","139","140","141","142","143","144","145","146","186","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","175","176","177","178","179"],{"issues":"187","processed":true,"errors":0,"configErrors":0},{"issues":"188","processed":true,"errors":0,"configErrors":0},{"issues":"189","processed":true,"errors":0,"configErrors":0},["100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","131","132","133","134","135","136","190","137","138","139","140","141","142","143","144","145","146","147","148","149","150","151","152","153","154","155","156","157","158","159","160","161","162","163","164","165","166","167","168","169","170","171","172","173","174","191","175","176","177","178","179"],{"issues":"192","processed":true,"errors":0,"configErrors":0},{"issues":"193","processed":true,"errors":0,"configErrors":0},{"issues":"194","processed":true,"errors":0,"configErrors":0},{"issues":"195","processed":true,"errors":0,"configErrors":0},{"issues":"196","processed":true,"errors":0,"configErrors":0},{"issues":"197","processed":true,"errors":0,"configErrors":0},{"issues":"198","processed":true,"errors":0,"configErrors":0},{"issues":"199","processed":true,"errors":0,"configErrors":0},{"issues":"200","processed":true,"errors":0,"configErrors":0},{"issues":"201","processed":true,"errors":0,"configErrors":0},{"issues":"202","processed":true,"errors":0,"configErrors":0},{"issues":"203","processed":true,"errors":0,"configErrors":0},{"issues":"204","processed":true,"errors":0,"configErrors":0},{"issues":"205","processed":true,"errors":0,"configErrors":0},{"issues":"206","processed":true,"errors":0,"configErrors":0},[],{"f":"207","h":"208"},{"f":"209","h":"30"},{"f":"210","h":"211"},{"f":"212","h":"213"},{"f":"214","h":"215"},{"f":"216","h":"217"},{"f":"218","h":"219"},{"f":"220","h":"221"},{"f":"222","h":"223"},{"f":"224","h":"225"},{"f":"226","h":"227"},{"f":"228","h":"229"},{"f":"230","h":"231"},{"f":"232","h":"233"},{"f":"234","h":"235"},{"f":"236","h":"237"},{"f":"238","h":"239"},{"f":"240","h":"241"},{"f":"242","h":"243"},{"f":"244","h":"245"},{"f":"246","h":"247"},{"f":"248","h":"249"},{"f":"250","h":"251"},{"f":"252","h":"253"},{"f":"254","h":"255"},{"f":"256","h":"257"},{"f":"258","h":"259"},{"f":"260","h":"261"},{"f":"262","h":"263"},{"f":"264","h":"265"},{"f":"266","h":"267"},{"f":"268","h":"269"},{"f":"270","h":"271"},{"f":"272","h":"273"},{"f":"274","h":"275"},{"f":"276","h":"277"},{"f":"278","h":"279"},{"f":"280","h":"281"},{"f":"282","h":"283"},{"f":"284","h":"285"},{"f":"286","h":"287"},{"f":"288","h":"289"},{"f":"290","h":"291"},{"f":"292","h":"293"},{"f":"294","h":"295"},{"f":"296","h":"297"},{"f":"298","h":"299"},{"f":"300","h":"301"},{"f":"302","h":"303"},{"f":"304","h":"305"},{"f":"306","h":"307"},{"f":"308","h":"309"},{"f":"310","h":"311"},{"f":"312","h":"313"},{"f":"314","h":"315"},{"f":"316","h":"317"},{"f":"318","h":"319"},{"f":"320","h":"321"},{"f":"322","h":"323"},{"f":"324","h":"325"},{"f":"326","h":"327"},{"f":"328","h":"329"},{"f":"330","h":"331"},{"f":"332","h":"333"},{"f":"334","h":"335"},{"f":"336","h":"337"},{"f":"338","h":"339"},{"f":"340","h":"341"},{"f":"342","h":"343"},{"f":"344","h":"345"},{"f":"346","h":"347"},{"f":"348","h":"349"},{"f":"350","h":"351"},{"f":"352","h":"353"},{"f":"354","h":"355"},{"f":"356","h":"357"},{"f":"358","h":"359"},{"f":"360","h":"361"},{"f":"362","h":"363"},{"f":"364","h":"365"},[],[],{"f":"366","h":"367"},{"f":"368","h":"369"},[],[],{"f":"370","h":"371"},[],[],[],{"f":"372","h":"373"},{"f":"374","h":"375"},[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],"assets/cspell-dictionary.txt","d724194db084241b4d5d185464b6c902","cspell.json","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/cspell-bundled-dicts/cspell-default.config.js","be00dc5b5a985866931e9e12c7e28728","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/cspell-bundled-dicts/cspell-default.json","448e57f919fe80e23846daf87b73813f","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-ada/cspell-ext.json","ada8ac29458417e58ebdef02e3c60682","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-al/cspell-ext.json","9555238e24537a5fa009b75444eec764","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-aws/cspell-ext.json","5330f5f13048e6bd2421b366e980ddb8","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-aws/dict/aws.txt","45d82340f2ec6a077c7e6e3c159d1ea1","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-bash/cspell-ext.json","64be15965d14c6ad022a19a7055c5310","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-bash/dict/bash-words.txt","b80f5c82e920bb8b21efbd112585e0c8","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-companies/cspell-ext.json","801dd6efb9e1cf30b06c8a095f6e31f4","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-companies/dict/companies.txt","3eb7a20e3d5790c0e7d5a0ee30235a54","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-cpp/cspell-ext.json","ba662dc5b4fc935dca640609678ea8f8","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-cryptocurrencies/cspell-ext.json","c1beddf99389fb273545e13d4fa8f18b","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-cryptocurrencies/dict/cryptocurrencies.txt","c47b3f583dddebd541c3770d0745960d","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-csharp/cspell-ext.json","4f758986459c61fd3b78fd4c6c7f04e5","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-css/cspell-ext.json","1f1648f03eaf5414b8eb14a67b1a9bc4","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-dart/cspell-ext.json","4fca6723c7e99b83c8b2d20d3dda9cac","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-data-science/cspell-ext.json","06464cf9c8e83fcc4ea96be45866b84a","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-django/cspell-ext.json","2a5dbe1146a60abe50b6b5a76c7905a6","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-docker/cspell-ext.json","d9d9174aeb2cdbebc7a82731bf82727e","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-dotnet/cspell-ext.json","444393009777e7b35b754c30d473e66d","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-elixir/cspell-ext.json","af53451e959a10e2d2fa3bcc2ab39466","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en-common-misspellings/cspell-ext.json","1282dcdf1ad9c6e5a8abcb2d89fc0a7e","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en-common-misspellings/dict-en-gb.yaml","d2c51f30e122934a75b55e29533db32e","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en-common-misspellings/dict-en-us.yaml","82710176ca225f64adb0fec153437e2c","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en-common-misspellings/dict-en.yaml","ff573aebc077aae46195cad7f2b3d41f","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en-gb/cspell-ext.json","8a830537004e3efa3b64835732ce2d90","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en-gb/en_GB.trie.gz","8ff444212279e8e4bd259cdb4bf51a89","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en_us/cspell-ext.json","f594f14689e56c98fe5bab7efa4384ab","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-en_us/en_US.trie.gz","26007e11c42788315c1606a62e638b28","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-filetypes/cspell-ext.json","67bc9da5f86d2b5fb07960db03a4e0ba","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-filetypes/filetypes.txt.gz","c88e97845d9b660e2be08c9da617ea07","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-flutter/cspell-ext.json","d7c71c4a33238ed0da95ffcc4e8b41a3","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-fonts/cspell-ext.json","b599efd906f98044d04ad650eb1365aa","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-fsharp/cspell-ext.json","cd53e25c255844ec9bc1e8526403005b","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-fullstack/cspell-ext.json","6e2d44323d2ba7858059d787eea38808","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-gaming-terms/cspell-ext.json","5507855d9042bba0b65ec468e0d25ae4","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-git/cspell-ext.json","14f812c7d2b8617a6594f05d1201179d","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-golang/cspell-ext.json","a92f479a7028cbeea657f70251cedcac","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-google/cspell-ext.json","964dc6a3fec184e8dac2ab8398debc8b","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-haskell/cspell-ext.json","37a8caac3182d2e16f3e5b99f6e76df5","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-html-symbol-entities/cspell-ext.json","1ae028b3a10c811456bda3bfa51db2d9","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-html/cspell-ext.json","b1aba21c739ab40734cfa7a44b05de3a","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-java/cspell-ext.json","450260d59f32227ac1342ca4fcb01f2b","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-julia/cspell-ext.json","ab9de7a7ba6131ce6863e312d79cfa4c","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-k8s/cspell-ext.json","371f5a3d7ba2839a2db72b9dc93a7e01","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-latex/cspell-ext.json","3fab8d3e4d5b99c6862ade7d360d3c60","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-lorem-ipsum/cspell-ext.json","67ed4264775bb11ad94b35e11c7f8265","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-lorem-ipsum/dict/lorem.txt","222fea107036b052fd665bec27d096e6","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-lua/cspell-ext.json","ccc181e6e49b317927e882b5ce3989b7","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-makefile/cspell-ext.json","5ea8985864f1a2f8d31259e1f078e34e","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-markdown/cspell-ext.json","3448c78ddfe8859f7b450d129d0ecbec","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-markdown/cspell-ext.yaml","55e9a729ca45760b4bf62437861587dc","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-monkeyc/cspell-ext.json","69ba103bf8cedf24ba330a4da56a6fdc","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-node/cspell-ext.json","4a834cf91a9b2a24aa2755e31942b4dd","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-node/dict/node.txt","4b617c64a5268b2f0a937e8b53ddeaf6","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-npm/cspell-ext.json","36a46dbddf0182e6f9a6cf7a35ed0135","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-npm/dict/npm.txt","967eb9df5891f7e6fdbc4009ae7c4e4c","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-php/cspell-ext.json","7de813dd97d49bddaebc4131670d72b9","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-powershell/cspell-ext.json","57c5ba70541f022797a650b3e70304ea","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-public-licenses/cspell-ext.json","2b52f46e2d70d9fdf6ea97370f5130c9","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-public-licenses/public-licenses.txt.gz","24e0cf9dd3ef5015b2339bf95d1bd1ae","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-python/cspell-ext.json","fd57ccd1f8fb4afaffd1f7220214cf5f","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-r/cspell-ext.json","bff29ea09b5c57f6757c322f20d67fcb","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-ruby/cspell-ext.json","10945a456e4df06dca8830a0e23a4427","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-rust/cspell-ext.json","4fd3fba75e23cec77ef21a3926a4e623","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-scala/cspell-ext.json","53a6326af721f94f60608ff5840fecd7","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-software-terms/cspell-corrections.yaml","d1fd29ce58ddef588136cd879ac71324","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-software-terms/cspell-ext.json","4fce88c607832b5d56f8f2c335978942","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-software-terms/dict/computing-acronyms.txt","c5604e7c64f24a1e6666c9e72f7b6809","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-software-terms/dict/softwareTerms.txt","817748b96488d670a3edfcd7e90dfad7","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-software-terms/dict/webServices.txt","e2c837abd3f28526ce34c9831a90373d","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-sql/cspell-ext.json","ad33af28f2d88f74d3bee599579a43b6","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-svelte/cspell-ext.json","9d9e970492326991eccb807c3e53711b","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-swift/cspell-ext.json","ec62dd45e16d1bf9542c6c24f26083b3","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-terraform/cspell-ext.json","2ca45d8411ae0379f1ad44ecb023765a","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-typescript/cspell-ext.json","2368abb5cca1502cf0bbf1799abfe4d5","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-typescript/dict/typescript.txt","ddec6e42373f2c2f8a1f2d958eff1585","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-vue/cspell-ext.json","52af97a6a1f687cbe8f20bca18faded1","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-html-symbol-entities/entities.txt.gz","55949fcdc4acf460a0baecab070c6bfb","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-html/dict/html.txt","633563fe0b83df9cc0cb439995451f05","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-k8s/dict/k8s.txt","dba025aea14713a9f8f309a1e8f5743e","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-fullstack/dict/fullstack.txt","37fbbc18c2b35c60f66e757ea6df9ac0","../../../../private/tmp/bunx-501-cspell@latest/node_modules/@cspell/dict-svelte/dict/svelte.txt","cfe8a01c5c0df41d12ecb166e08bb41f"] \ No newline at end of file diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 21d775b..ae9aed2 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -26,5 +26,16 @@ jobs: - uses: ./.github/actions/setup + - run: bun run format + shell: bash + + - run: bun run typecheck + shell: bash + + - run: bun run spellcheck + + - run: bun run test + shell: bash + - run: bun run build shell: bash diff --git a/CHANGELOG.md b/CHANGELOG.md index 71e4c6a..545e312 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 0.1.0 (2024-12-09) -* feat: publih ([df6d1b0](https://github.com/vineyardbovines/openstreetmap-api/commit/df6d1b0)) +* feat: publish ([df6d1b0](https://github.com/vineyardbovines/openstreetmap-api/commit/df6d1b0)) ## 0.0.3 (2024-12-09) diff --git a/README.md b/README.md index dcfa5d4..46ff939 100644 --- a/README.md +++ b/README.md @@ -126,10 +126,10 @@ The service supports multiple output formats through the `OverpassOutput` enum: ```typescript enum OverpassOutput { - Raw = 'raw', // Raw Overpass JSON response - GeoJSON = 'geojson', // Converted to GeoJSON format - Parsed = 'parsed', // Parsed element tags - ParsedGeoJSON = 'parsedgeojson' // Parsed tags in GeoJSON format + Raw = 'raw', // Raw Overpass JSON response + GeoJSON = 'geojson', // Converted to GeoJSON format + Parsed = 'parsed', // Parsed element tags + ParsedGeoJSON = 'parsedgeojson' // Parsed tags in GeoJSON format } ``` diff --git a/assets/cspell-dictionary.txt b/assets/cspell-dictionary.txt new file mode 100644 index 0000000..f83db4e --- /dev/null +++ b/assets/cspell-dictionary.txt @@ -0,0 +1,8 @@ +parsedgeojson +kumi +skel +updown +bbox +rels +pois +groyne diff --git a/cspell.json b/cspell.json index ef9549c..c922ef6 100644 --- a/cspell.json +++ b/cspell.json @@ -6,6 +6,7 @@ "dictionaries": [ "project-words", "en_US", + "en-gb", "softwareTerms", "misc", "lorem-ipsum", @@ -14,6 +15,13 @@ "bash", "npm" ], + "dictionaryDefinitions": [ + { + "name": "project-words", + "path": "./assets/cspell-dictionary.txt", + "addWords": true + } + ], "ignorePaths": [ "**/.git/**", "**/.turbo/**", diff --git a/lefthook.yml b/lefthook.yml index 43fcf1a..83059d7 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -15,4 +15,4 @@ commit-msg: commands: commitlint: run: | - bunx --no -- commitlint --edit {1} + bun x --no -- commitlint --edit {1} diff --git a/package.json b/package.json index 5e21d0d..d033dd0 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "@release-it/conventional-changelog": "^9.0.3", "@types/bun": "latest", "@types/geojson": "^7946.0.15", - "@types/osmtogeojson": "^2.2.34", "commitizen": "^4.3.1", "commitlint": "^19.6.0", "cz-conventional-changelog": "^3.3.0", diff --git a/src/services/geojson.ts b/src/services/geojson.ts index ed1d0e2..af3f4c9 100644 --- a/src/services/geojson.ts +++ b/src/services/geojson.ts @@ -30,7 +30,7 @@ function buildMetaInformation(object: OverpassOSMElement): Record(objectA: T, objectB: T): T { +function dedupe(objectA: T, objectB: T): T { if ((objectA.version || objectB.version) && objectA.version !== objectB.version) { return +(objectA.version || 0) > +(objectB.version || 0) ? objectA : objectB; } @@ -62,7 +62,7 @@ export function osm2geojson( for (let node of nodes) { if (nodeIds[node.id]) { - node = dedup(node, nodeIds[node.id] as OverpassNode); + node = dedupe(node, nodeIds[node.id] as OverpassNode); } nodeIds[node.id] = node; } @@ -72,7 +72,7 @@ export function osm2geojson( for (let way of ways) { if (wayIds[way.id] !== undefined) { - way = dedup(way, wayIds[way.id] as OverpassWay); + way = dedupe(way, wayIds[way.id] as OverpassWay); } wayIds[way.id] = way; @@ -93,7 +93,7 @@ export function osm2geojson( const relationIds: Record = {}; for (let rel of rels) { if (relationIds[rel.id]) { - rel = dedup(rel, relationIds[rel.id] as OverpassRelation); + rel = dedupe(rel, relationIds[rel.id] as OverpassRelation); } relationIds[rel.id] = rel; }