{"id":24819042,"url":"https://github.com/nitive/shri-api","last_synced_at":"2025-10-09T05:05:24.965Z","repository":{"id":36497948,"uuid":"40803594","full_name":"Nitive/shri-api","owner":"Nitive","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-16T18:52:13.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T05:04:49.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nitive.github.io/shri-api","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"HackYourFutureBelgium/pokedex-api","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nitive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-16T08:00:36.000Z","updated_at":"2015-08-16T08:15:40.000Z","dependencies_parsed_at":"2022-09-12T10:51:02.246Z","dependency_job_id":null,"html_url":"https://github.com/Nitive/shri-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nitive/shri-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fshri-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fshri-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fshri-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fshri-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nitive","download_url":"https://codeload.github.com/Nitive/shri-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitive%2Fshri-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000741,"owners_count":26082933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-30T17:56:04.824Z","updated_at":"2025-10-09T05:05:24.945Z","avatar_url":"https://github.com/Nitive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"shri-api\n========\n\n[Demo](http://nitive.github.io/shri-api)\n\nПроблема была в том, что цикл for не создает локальную область видимости, поэтому все callbacks используют общий `request`, равный `/populations`\nЧтобы исправить проблему, нужно или использовать `bind` на callback, либо использовать forEach вместо цикла for.\nТакже использовались глобальные переменные `i`, `l`, `K`, `j`, что могло привести к проблемам в будующем.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitive%2Fshri-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitive%2Fshri-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitive%2Fshri-api/lists"}