{"id":15816474,"url":"https://github.com/cachecontrol/esm-config-tostring-bug","last_synced_at":"2026-06-23T18:31:43.972Z","repository":{"id":145824580,"uuid":"126225271","full_name":"CacheControl/esm-config-tostring-bug","owner":"CacheControl","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-20T00:53:43.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-02T17:41:49.451Z","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/CacheControl.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":"2018-03-21T18:44:16.000Z","updated_at":"2025-08-30T23:19:40.000Z","dependencies_parsed_at":"2023-07-30T11:02:05.525Z","dependency_job_id":null,"html_url":"https://github.com/CacheControl/esm-config-tostring-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CacheControl/esm-config-tostring-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CacheControl%2Fesm-config-tostring-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CacheControl%2Fesm-config-tostring-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CacheControl%2Fesm-config-tostring-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CacheControl%2Fesm-config-tostring-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CacheControl","download_url":"https://codeload.github.com/CacheControl/esm-config-tostring-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CacheControl%2Fesm-config-tostring-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34702911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"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":"2024-10-05T05:04:14.389Z","updated_at":"2026-06-23T18:31:43.955Z","avatar_url":"https://github.com/CacheControl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esm config toString\n\n## Behavior\n\nRunning an esm based application that has an esm based package w/a `config` package as a dependency, an error is thrown.\n\n- problem occurs when importing a package using `esm` and `config`, into an application also using `esm`\n- occurs when both app and package are on 3.0.20\n\n```bash\n⇒  npm run start\n\n\u003e esm-app3@1.0.0 start /Users/chamm/esm-nyc-bug/esm-app\n\u003e node -r esm index.js\n\n/Users/chamm/esm-nyc-bug/esm-package/node_modules/config/lib/config.js:1\nTypeError: Function.prototype.toString requires that 'this' be a Function\n    at Proxy.toString (\u003canonymous\u003e)\n    at Function.keys (\u003canonymous\u003e)\n```\n\n## Usage\n\n```bash\n# initialize the esm package\ncd esm-package;\nnpm install;\nnpm link;\n\n# initalize consuming app\ncd esm-app\nnpm install;\nnpm link esm-package;\nnpm run start  # throws error: Function.prototype.toString requires that 'this' be a Function\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachecontrol%2Fesm-config-tostring-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcachecontrol%2Fesm-config-tostring-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcachecontrol%2Fesm-config-tostring-bug/lists"}