{"id":16168192,"url":"https://github.com/nwalters512/xml-formatter-typescript-repro","last_synced_at":"2025-06-26T01:02:48.108Z","repository":{"id":235915902,"uuid":"791529036","full_name":"nwalters512/xml-formatter-typescript-repro","owner":"nwalters512","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-24T22:15:59.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T06:18:37.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nwalters512.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-24T22:03:25.000Z","updated_at":"2024-04-24T22:16:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"64e40dba-b1d9-4f45-a7a9-939c8d5e2b0f","html_url":"https://github.com/nwalters512/xml-formatter-typescript-repro","commit_stats":null,"previous_names":["nwalters512/xml-formatter-typescript-repro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nwalters512/xml-formatter-typescript-repro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwalters512%2Fxml-formatter-typescript-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwalters512%2Fxml-formatter-typescript-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwalters512%2Fxml-formatter-typescript-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwalters512%2Fxml-formatter-typescript-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwalters512","download_url":"https://codeload.github.com/nwalters512/xml-formatter-typescript-repro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwalters512%2Fxml-formatter-typescript-repro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978908,"owners_count":23239417,"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","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":"2024-10-10T03:10:44.226Z","updated_at":"2025-06-26T01:02:48.007Z","avatar_url":"https://github.com/nwalters512.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xml-formatter-typescript-repro\n\nThis repository reproduces an issue with the `xml-formatter` package when used in a TypeScript project with `\"type\": \"module\"`.\n\n## Steps to reproduce\n\n- Clone this repository\n- Install dependencies with `yarn`\n- Run `yarn start-esm`; observe that the XML file is formatted correctly\n- Run `yarn start-cjs`; observe that the XML file is formatted correctly\n- Run `yarn typecheck`; observe that TypeScript complains that `formatXml` is not callable:\n\n```\nsrc/index-esm.ts:3:13 - error TS2349: This expression is not callable.\n  Type 'typeof import(\"/Users/nathan/git/xml-formatter-typescript-repro/node_modules/xml-formatter/dist/types/index\")' has no call signatures.\n\n3 console.log(formatXml('\u003cfoo\u003e\u003cbar/\u003e\u003c/foo\u003e'));\n              ~~~~~~~~~\n\n\nFound 1 error in src/index-esm.ts:3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwalters512%2Fxml-formatter-typescript-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwalters512%2Fxml-formatter-typescript-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwalters512%2Fxml-formatter-typescript-repro/lists"}