{"id":22101157,"url":"https://github.com/rmja/double-include","last_synced_at":"2025-09-11T09:34:25.714Z","repository":{"id":96148891,"uuid":"489228863","full_name":"rmja/double-include","owner":"rmja","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-06T05:39:39.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T02:20:13.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/rmja.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":"2022-05-06T05:34:09.000Z","updated_at":"2022-05-06T05:34:14.000Z","dependencies_parsed_at":"2023-04-03T23:04:10.468Z","dependency_job_id":null,"html_url":"https://github.com/rmja/double-include","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rmja/double-include","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdouble-include","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdouble-include/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdouble-include/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdouble-include/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmja","download_url":"https://codeload.github.com/rmja/double-include/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2Fdouble-include/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274609465,"owners_count":25316621,"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-09-11T02:00:13.660Z","response_time":74,"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-12-01T05:23:46.658Z","updated_at":"2025-09-11T09:34:25.672Z","avatar_url":"https://github.com/rmja.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This example app shows an issue with aurelia-webpack-plugin including two versions of the same package.\n\n```sh\nnpm i\nnpm run build\n```\n\nThe output of the build command is:\n```sh\n\u003e build\n\u003e webpack --mode development\n\nWebpack Bundle Analyzer saved report to C:\\Source\\double-include\\dist\\report.html\nWebpack Bundle Analyzer saved stats file to C:\\Source\\double-include\\dist\\stats.json\nasset app.js 876 KiB [compared for emit] (name: app)\nruntime modules 1.4 KiB 6 modules\nmodules by path ./node_modules/ 770 KiB\n  modules by path ./node_modules/@ucast/ 21.8 KiB 8 modules\n  modules by path ./node_modules/@casl/ 18.2 KiB\n    ./node_modules/@casl/ability/dist/es6m/index.mjs 8.23 KiB [built] [code generated]\n    ./node_modules/@casl/aurelia/dist/umd/index.js 1.73 KiB [built] [code generated]\n    ./node_modules/@casl/ability/dist/es6c/index.js 8.27 KiB [built] [code generated]\n  modules by path ./node_modules/aurelia-webpack-plugin/runtime/*.js 2.17 KiB\n    ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js 595 bytes [built] [code generated]\n    ./node_modules/aurelia-webpack-plugin/runtime/pal-loader-entry.js 1.59 KiB [built] [code generated]\n  + 23 modules\n./src/main.ts 309 bytes [built] [code generated]\nwebpack 5.72.0 compiled successfully in 1909 ms\n```\n\nThis clearly shows that both the `es6m` and `es6c` version of `@casl/ability` is included.\nThis double incluses gives a problem with the DI registration using the `PureAbility` key in [main.ts](src/main.ts),\nas the `PureAbility` version in `es6m` and `es6c` are different, causing the DI resolution in the value converter in `@casl/aurelia` resolving to a different value than registered.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fdouble-include","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmja%2Fdouble-include","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fdouble-include/lists"}