@featurevisor/core 0.53.3 → 0.53.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.eslintcache +1 -1
  2. package/CHANGELOG.md +16 -0
  3. package/coverage/clover.xml +2 -2
  4. package/coverage/lcov-report/index.html +1 -1
  5. package/coverage/lcov-report/lib/builder/allocator.js.html +1 -1
  6. package/coverage/lcov-report/lib/builder/index.html +1 -1
  7. package/coverage/lcov-report/lib/builder/traffic.js.html +1 -1
  8. package/coverage/lcov-report/src/builder/allocator.ts.html +1 -1
  9. package/coverage/lcov-report/src/builder/index.html +1 -1
  10. package/coverage/lcov-report/src/builder/traffic.ts.html +1 -1
  11. package/lib/builder/buildProject.d.ts +2 -2
  12. package/lib/builder/buildProject.js +23 -33
  13. package/lib/builder/buildProject.js.map +1 -1
  14. package/lib/datasource/datasource.d.ts +8 -2
  15. package/lib/datasource/datasource.js +43 -2
  16. package/lib/datasource/datasource.js.map +1 -1
  17. package/lib/datasource/parsers.js +2 -2
  18. package/lib/datasource/parsers.js.map +1 -1
  19. package/lib/dependencies.d.ts +11 -0
  20. package/lib/dependencies.js +3 -0
  21. package/lib/dependencies.js.map +1 -0
  22. package/lib/find-duplicate-segments/index.d.ts +2 -2
  23. package/lib/find-duplicate-segments/index.js +2 -3
  24. package/lib/find-duplicate-segments/index.js.map +1 -1
  25. package/lib/generate-code/index.d.ts +2 -2
  26. package/lib/generate-code/index.js +4 -5
  27. package/lib/generate-code/index.js.map +1 -1
  28. package/lib/generate-code/typescript.d.ts +2 -3
  29. package/lib/generate-code/typescript.js +3 -2
  30. package/lib/generate-code/typescript.js.map +1 -1
  31. package/lib/index.d.ts +2 -0
  32. package/lib/index.js +2 -0
  33. package/lib/index.js.map +1 -1
  34. package/lib/linter/lintProject.d.ts +2 -2
  35. package/lib/linter/lintProject.js +5 -11
  36. package/lib/linter/lintProject.js.map +1 -1
  37. package/lib/restore.d.ts +2 -2
  38. package/lib/restore.js +3 -2
  39. package/lib/restore.js.map +1 -1
  40. package/lib/site/exportSite.d.ts +2 -2
  41. package/lib/site/exportSite.js +4 -3
  42. package/lib/site/exportSite.js.map +1 -1
  43. package/lib/site/generateSiteSearchIndex.d.ts +2 -2
  44. package/lib/site/generateSiteSearchIndex.js +3 -4
  45. package/lib/site/generateSiteSearchIndex.js.map +1 -1
  46. package/lib/site/serveSite.d.ts +2 -2
  47. package/lib/site/serveSite.js +2 -2
  48. package/lib/site/serveSite.js.map +1 -1
  49. package/lib/tester/testFeature.js +6 -4
  50. package/lib/tester/testFeature.js.map +1 -1
  51. package/lib/tester/testProject.d.ts +2 -2
  52. package/lib/tester/testProject.js +3 -4
  53. package/lib/tester/testProject.js.map +1 -1
  54. package/lib/utils.d.ts +0 -2
  55. package/lib/utils.js +1 -15
  56. package/lib/utils.js.map +1 -1
  57. package/package.json +2 -2
  58. package/src/builder/buildProject.ts +6 -29
  59. package/src/datasource/datasource.ts +55 -2
  60. package/src/datasource/parsers.ts +2 -2
  61. package/src/dependencies.ts +13 -0
  62. package/src/find-duplicate-segments/index.ts +3 -8
  63. package/src/generate-code/index.ts +5 -12
  64. package/src/generate-code/typescript.ts +4 -8
  65. package/src/index.ts +2 -0
  66. package/src/linter/lintProject.ts +39 -47
  67. package/src/restore.ts +4 -2
  68. package/src/site/exportSite.ts +5 -9
  69. package/src/site/generateSiteSearchIndex.ts +4 -5
  70. package/src/site/serveSite.ts +4 -6
  71. package/src/tester/testFeature.ts +4 -7
  72. package/src/tester/testProject.ts +4 -8
  73. package/src/utils.ts +0 -18
package/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts":"6","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts":"7","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts":"8","/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts":"9","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts":"10","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts":"11","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts":"12","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts":"13","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts":"14","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts":"15","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts":"16","/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts":"17","/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts":"18","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts":"19","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts":"20","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts":"21","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts":"22","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts":"23","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts":"24","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts":"25","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts":"26","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts":"27","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts":"28","/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts":"29","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts":"30","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts":"31","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts":"32","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts":"33","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts":"34","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts":"35","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts":"36","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts":"37","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts":"38","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts":"39","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts":"40","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts":"41","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts":"42","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts":"43","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts":"44","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts":"45","/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts":"46"},{"size":3214,"mtime":1697559209944,"results":"47","hashOfConfig":"48"},{"size":1014,"mtime":1697559209944,"results":"49","hashOfConfig":"48"},{"size":8280,"mtime":1697559209944,"results":"50","hashOfConfig":"48"},{"size":2866,"mtime":1697559209944,"results":"51","hashOfConfig":"48"},{"size":1755,"mtime":1697559209944,"results":"52","hashOfConfig":"48"},{"size":65,"mtime":1697559209944,"results":"53","hashOfConfig":"48"},{"size":12889,"mtime":1697559209944,"results":"54","hashOfConfig":"48"},{"size":4799,"mtime":1697559209944,"results":"55","hashOfConfig":"48"},{"size":2966,"mtime":1697559209944,"results":"56","hashOfConfig":"48"},{"size":4575,"mtime":1697559209944,"results":"57","hashOfConfig":"48"},{"size":57,"mtime":1697559209944,"results":"58","hashOfConfig":"48"},{"size":646,"mtime":1697559209944,"results":"59","hashOfConfig":"48"},{"size":1033,"mtime":1697559209944,"results":"60","hashOfConfig":"48"},{"size":637,"mtime":1697559209944,"results":"61","hashOfConfig":"48"},{"size":1631,"mtime":1697559209944,"results":"62","hashOfConfig":"48"},{"size":6310,"mtime":1697559209944,"results":"63","hashOfConfig":"48"},{"size":256,"mtime":1697559209944,"results":"64","hashOfConfig":"48"},{"size":1308,"mtime":1697559209944,"results":"65","hashOfConfig":"48"},{"size":341,"mtime":1697559209944,"results":"66","hashOfConfig":"48"},{"size":1130,"mtime":1697559209944,"results":"67","hashOfConfig":"48"},{"size":3003,"mtime":1697559209944,"results":"68","hashOfConfig":"48"},{"size":5782,"mtime":1697559209944,"results":"69","hashOfConfig":"48"},{"size":2103,"mtime":1697559209944,"results":"70","hashOfConfig":"48"},{"size":31,"mtime":1697559209944,"results":"71","hashOfConfig":"48"},{"size":4660,"mtime":1697559209944,"results":"72","hashOfConfig":"48"},{"size":323,"mtime":1697559209948,"results":"73","hashOfConfig":"48"},{"size":368,"mtime":1697559209948,"results":"74","hashOfConfig":"48"},{"size":1248,"mtime":1697559209948,"results":"75","hashOfConfig":"48"},{"size":610,"mtime":1697559209948,"results":"76","hashOfConfig":"48"},{"size":1752,"mtime":1697559209948,"results":"77","hashOfConfig":"48"},{"size":2808,"mtime":1697559209948,"results":"78","hashOfConfig":"48"},{"size":6250,"mtime":1697559209948,"results":"79","hashOfConfig":"48"},{"size":516,"mtime":1697559209948,"results":"80","hashOfConfig":"48"},{"size":496,"mtime":1697559209948,"results":"81","hashOfConfig":"48"},{"size":607,"mtime":1697559209948,"results":"82","hashOfConfig":"48"},{"size":1560,"mtime":1697559209948,"results":"83","hashOfConfig":"48"},{"size":59,"mtime":1697559209948,"results":"84","hashOfConfig":"48"},{"size":1697,"mtime":1697559209948,"results":"85","hashOfConfig":"48"},{"size":298,"mtime":1697559209948,"results":"86","hashOfConfig":"48"},{"size":365,"mtime":1697559209948,"results":"87","hashOfConfig":"48"},{"size":156,"mtime":1697559209948,"results":"88","hashOfConfig":"48"},{"size":31,"mtime":1697559209948,"results":"89","hashOfConfig":"48"},{"size":3735,"mtime":1697559209948,"results":"90","hashOfConfig":"48"},{"size":2026,"mtime":1697559209948,"results":"91","hashOfConfig":"48"},{"size":1326,"mtime":1697559209948,"results":"92","hashOfConfig":"48"},{"size":2108,"mtime":1697559209948,"results":"93","hashOfConfig":"48"},{"filePath":"94","messages":"95","suppressedMessages":"96","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"u5hm5o",{"filePath":"97","messages":"98","suppressedMessages":"99","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"100","messages":"101","suppressedMessages":"102","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"103","messages":"104","suppressedMessages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","suppressedMessages":"108","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","suppressedMessages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","suppressedMessages":"114","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"115","messages":"116","suppressedMessages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","suppressedMessages":"120","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"121","messages":"122","suppressedMessages":"123","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","suppressedMessages":"126","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"127","messages":"128","suppressedMessages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","suppressedMessages":"132","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"133","messages":"134","suppressedMessages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","suppressedMessages":"138","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"139","messages":"140","suppressedMessages":"141","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","suppressedMessages":"144","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"145","messages":"146","suppressedMessages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","suppressedMessages":"150","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"151","messages":"152","suppressedMessages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","suppressedMessages":"156","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"157","messages":"158","suppressedMessages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","suppressedMessages":"162","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"163","messages":"164","suppressedMessages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","suppressedMessages":"168","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"169","messages":"170","suppressedMessages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","suppressedMessages":"174","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"175","messages":"176","suppressedMessages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","suppressedMessages":"180","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"181","messages":"182","suppressedMessages":"183","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","suppressedMessages":"186","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"187","messages":"188","suppressedMessages":"189","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","suppressedMessages":"192","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"193","messages":"194","suppressedMessages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","suppressedMessages":"198","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"199","messages":"200","suppressedMessages":"201","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"202","messages":"203","suppressedMessages":"204","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"205","messages":"206","suppressedMessages":"207","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","suppressedMessages":"210","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"211","messages":"212","suppressedMessages":"213","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","suppressedMessages":"216","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"217","messages":"218","suppressedMessages":"219","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"220","messages":"221","suppressedMessages":"222","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"223","messages":"224","suppressedMessages":"225","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"226","messages":"227","suppressedMessages":"228","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"229","messages":"230","suppressedMessages":"231","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts",[],["232"],"/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts",[],[],{"ruleId":"233","severity":2,"message":"234","line":52,"column":10,"nodeType":"235","messageId":"236","endLine":52,"endColumn":38,"suppressions":"237"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["238"],{"kind":"239","justification":"240"},"directive",""]
1
+ [{"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts":"1","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts":"2","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts":"3","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts":"4","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts":"5","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts":"6","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts":"7","/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts":"8","/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts":"9","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts":"10","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts":"11","/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts":"12","/home/runner/work/featurevisor/featurevisor/packages/core/src/dependencies.ts":"13","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts":"14","/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts":"15","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts":"16","/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts":"17","/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts":"18","/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts":"19","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts":"20","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts":"21","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts":"22","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts":"23","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts":"24","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts":"25","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts":"26","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts":"27","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts":"28","/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts":"29","/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts":"30","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts":"31","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts":"32","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts":"33","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts":"34","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts":"35","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts":"36","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts":"37","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts":"38","/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts":"39","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts":"40","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts":"41","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts":"42","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts":"43","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts":"44","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts":"45","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts":"46","/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts":"47"},{"size":3214,"mtime":1697565139743,"results":"48","hashOfConfig":"49"},{"size":1014,"mtime":1697565139743,"results":"50","hashOfConfig":"49"},{"size":8280,"mtime":1697565139743,"results":"51","hashOfConfig":"49"},{"size":2228,"mtime":1697565139743,"results":"52","hashOfConfig":"49"},{"size":1755,"mtime":1697565139743,"results":"53","hashOfConfig":"49"},{"size":65,"mtime":1697565139743,"results":"54","hashOfConfig":"49"},{"size":12889,"mtime":1697565139743,"results":"55","hashOfConfig":"49"},{"size":4799,"mtime":1697565139743,"results":"56","hashOfConfig":"49"},{"size":2966,"mtime":1697565139743,"results":"57","hashOfConfig":"49"},{"size":5754,"mtime":1697565139743,"results":"58","hashOfConfig":"49"},{"size":57,"mtime":1697565139743,"results":"59","hashOfConfig":"49"},{"size":641,"mtime":1697565139743,"results":"60","hashOfConfig":"49"},{"size":279,"mtime":1697565139743,"results":"61","hashOfConfig":"49"},{"size":1033,"mtime":1697565139743,"results":"62","hashOfConfig":"49"},{"size":540,"mtime":1697565139743,"results":"63","hashOfConfig":"49"},{"size":1476,"mtime":1697565139743,"results":"64","hashOfConfig":"49"},{"size":6250,"mtime":1697565139743,"results":"65","hashOfConfig":"49"},{"size":318,"mtime":1697565139743,"results":"66","hashOfConfig":"49"},{"size":1308,"mtime":1697565139743,"results":"67","hashOfConfig":"49"},{"size":341,"mtime":1697565139743,"results":"68","hashOfConfig":"49"},{"size":1130,"mtime":1697565139743,"results":"69","hashOfConfig":"49"},{"size":3003,"mtime":1697565139743,"results":"70","hashOfConfig":"49"},{"size":5782,"mtime":1697565139743,"results":"71","hashOfConfig":"49"},{"size":2103,"mtime":1697565139743,"results":"72","hashOfConfig":"49"},{"size":31,"mtime":1697565139743,"results":"73","hashOfConfig":"49"},{"size":4376,"mtime":1697565139743,"results":"74","hashOfConfig":"49"},{"size":323,"mtime":1697565139743,"results":"75","hashOfConfig":"49"},{"size":368,"mtime":1697565139743,"results":"76","hashOfConfig":"49"},{"size":1248,"mtime":1697565139743,"results":"77","hashOfConfig":"49"},{"size":640,"mtime":1697565139743,"results":"78","hashOfConfig":"49"},{"size":1724,"mtime":1697565139743,"results":"79","hashOfConfig":"49"},{"size":2808,"mtime":1697565139743,"results":"80","hashOfConfig":"49"},{"size":6186,"mtime":1697565139743,"results":"81","hashOfConfig":"49"},{"size":516,"mtime":1697565139743,"results":"82","hashOfConfig":"49"},{"size":496,"mtime":1697565139743,"results":"83","hashOfConfig":"49"},{"size":607,"mtime":1697565139743,"results":"84","hashOfConfig":"49"},{"size":1560,"mtime":1697565139743,"results":"85","hashOfConfig":"49"},{"size":59,"mtime":1697565139743,"results":"86","hashOfConfig":"49"},{"size":1681,"mtime":1697565139743,"results":"87","hashOfConfig":"49"},{"size":298,"mtime":1697565139743,"results":"88","hashOfConfig":"49"},{"size":365,"mtime":1697565139743,"results":"89","hashOfConfig":"49"},{"size":156,"mtime":1697565139743,"results":"90","hashOfConfig":"49"},{"size":31,"mtime":1697565139743,"results":"91","hashOfConfig":"49"},{"size":3624,"mtime":1697565139743,"results":"92","hashOfConfig":"49"},{"size":1956,"mtime":1697565139743,"results":"93","hashOfConfig":"49"},{"size":1326,"mtime":1697565139743,"results":"94","hashOfConfig":"49"},{"size":1676,"mtime":1697565139743,"results":"95","hashOfConfig":"49"},{"filePath":"96","messages":"97","suppressedMessages":"98","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"u5hm5o",{"filePath":"99","messages":"100","suppressedMessages":"101","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","suppressedMessages":"104","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"105","messages":"106","suppressedMessages":"107","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","suppressedMessages":"110","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"111","messages":"112","suppressedMessages":"113","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","suppressedMessages":"116","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"117","messages":"118","suppressedMessages":"119","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","suppressedMessages":"122","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"123","messages":"124","suppressedMessages":"125","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","suppressedMessages":"128","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"129","messages":"130","suppressedMessages":"131","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","suppressedMessages":"134","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"135","messages":"136","suppressedMessages":"137","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","suppressedMessages":"140","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"141","messages":"142","suppressedMessages":"143","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","suppressedMessages":"146","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"147","messages":"148","suppressedMessages":"149","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","suppressedMessages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"153","messages":"154","suppressedMessages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","suppressedMessages":"158","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","suppressedMessages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","suppressedMessages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"165","messages":"166","suppressedMessages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","suppressedMessages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"171","messages":"172","suppressedMessages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","suppressedMessages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","suppressedMessages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","suppressedMessages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"183","messages":"184","suppressedMessages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","suppressedMessages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"189","messages":"190","suppressedMessages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","suppressedMessages":"194","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"195","messages":"196","suppressedMessages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","suppressedMessages":"200","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"201","messages":"202","suppressedMessages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","suppressedMessages":"206","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"207","messages":"208","suppressedMessages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","suppressedMessages":"212","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"213","messages":"214","suppressedMessages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","suppressedMessages":"218","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"219","messages":"220","suppressedMessages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"222","messages":"223","suppressedMessages":"224","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"225","messages":"226","suppressedMessages":"227","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"228","messages":"229","suppressedMessages":"230","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"231","messages":"232","suppressedMessages":"233","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"234","messages":"235","suppressedMessages":"236","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/allocator.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildDatafile.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/buildProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/getFeatureRanges.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.spec.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/builder/traffic.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/config.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/datasource.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/datasource/parsers.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/dependencies.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/findDuplicateSegments.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/find-duplicate-segments/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/generate-code/typescript.ts",[],["237"],"/home/runner/work/featurevisor/featurevisor/packages/core/src/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/init.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/attributeSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/checkCircularDependency.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/conditionSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/featureSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/groupSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/lintProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/printJoiError.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/segmentSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/linter/testSchema.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/restore.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/exportSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/generateSiteSearchIndex.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getLastModifiedFromHistory.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getOwnerAndRepoFromUrl.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRelativePaths.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/getRepoDetails.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/site/serveSite.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfArraysAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/checkIfObjectsAreEqual.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/cliFormat.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/index.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts",[],[],"/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts",[],[],{"ruleId":"238","severity":2,"message":"239","line":51,"column":10,"nodeType":"240","messageId":"241","endLine":51,"endColumn":38,"suppressions":"242"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["243"],{"kind":"244","justification":"245"},"directive",""]
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.53.5](https://github.com/featurevisor/featurevisor/compare/v0.53.4...v0.53.5) (2023-10-17)
7
+
8
+ **Note:** Version bump only for package @featurevisor/core
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.53.4](https://github.com/featurevisor/featurevisor/compare/v0.53.3...v0.53.4) (2023-10-17)
15
+
16
+ **Note:** Version bump only for package @featurevisor/core
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.53.3](https://github.com/featurevisor/featurevisor/compare/v0.53.2...v0.53.3) (2023-10-17)
7
23
 
8
24
  **Note:** Version bump only for package @featurevisor/core
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1697559394957" clover="3.2.0">
3
- <project timestamp="1697559394958" name="All files">
2
+ <coverage generated="1697565318506" clover="3.2.0">
3
+ <project timestamp="1697565318506" name="All files">
4
4
  <metrics statements="173" coveredstatements="165" conditionals="86" coveredconditionals="70" methods="28" coveredmethods="28" elements="287" coveredelements="263" complexity="0" loc="173" ncloc="173" packages="2" files="4" classes="4"/>
5
5
  <package name="lib.builder">
6
6
  <metrics statements="90" coveredstatements="86" conditionals="48" coveredconditionals="39" methods="14" coveredmethods="14"/>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2023-10-17T16:16:34.937Z
119
+ at 2023-10-17T17:55:18.486Z
120
120
  </div>
121
121
  <script src="prettify.js"></script>
122
122
  <script>
@@ -175,7 +175,7 @@ exports.getUpdatedAvailableRangesAfterFilling = getUpdatedAvailableRangesAfterFi
175
175
  <div class='footer quiet pad2 space-top1 center small'>
176
176
  Code coverage generated by
177
177
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
178
- at 2023-10-17T16:16:34.937Z
178
+ at 2023-10-17T17:55:18.486Z
179
179
  </div>
180
180
  <script src="../../prettify.js"></script>
181
181
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2023-10-17T16:16:34.937Z
119
+ at 2023-10-17T17:55:18.486Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -442,7 +442,7 @@ exports.getTraffic = getTraffic;
442
442
  <div class='footer quiet pad2 space-top1 center small'>
443
443
  Code coverage generated by
444
444
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
445
- at 2023-10-17T16:16:34.937Z
445
+ at 2023-10-17T17:55:18.486Z
446
446
  </div>
447
447
  <script src="../../prettify.js"></script>
448
448
  <script>
@@ -193,7 +193,7 @@ export function getUpdatedAvailableRangesAfterFilling(
193
193
  <div class='footer quiet pad2 space-top1 center small'>
194
194
  Code coverage generated by
195
195
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
196
- at 2023-10-17T16:16:34.937Z
196
+ at 2023-10-17T17:55:18.486Z
197
197
  </div>
198
198
  <script src="../../prettify.js"></script>
199
199
  <script>
@@ -116,7 +116,7 @@
116
116
  <div class='footer quiet pad2 space-top1 center small'>
117
117
  Code coverage generated by
118
118
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
119
- at 2023-10-17T16:16:34.937Z
119
+ at 2023-10-17T17:55:18.486Z
120
120
  </div>
121
121
  <script src="../../prettify.js"></script>
122
122
  <script>
@@ -553,7 +553,7 @@ export function getTraffic(
553
553
  <div class='footer quiet pad2 space-top1 center small'>
554
554
  Code coverage generated by
555
555
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
556
- at 2023-10-17T16:16:34.937Z
556
+ at 2023-10-17T17:55:18.486Z
557
557
  </div>
558
558
  <script src="../../prettify.js"></script>
559
559
  <script>
@@ -1,8 +1,8 @@
1
1
  import { EnvironmentKey } from "@featurevisor/types";
2
2
  import { ProjectConfig } from "../config";
3
+ import { Dependencies } from "../dependencies";
3
4
  export declare function getDatafilePath(projectConfig: ProjectConfig, environment: EnvironmentKey, tag: string): string;
4
- export declare function getExistingStateFilePath(projectConfig: ProjectConfig, environment: EnvironmentKey): string;
5
5
  export interface BuildCLIOptions {
6
6
  revision?: string;
7
7
  }
8
- export declare function buildProject(rootDirectoryPath: any, projectConfig: ProjectConfig, cliOptions?: BuildCLIOptions): Promise<void>;
8
+ export declare function buildProject(deps: Dependencies, cliOptions?: BuildCLIOptions): Promise<void>;
@@ -36,49 +36,41 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.buildProject = exports.getExistingStateFilePath = exports.getDatafilePath = void 0;
39
+ exports.buildProject = exports.getDatafilePath = void 0;
40
40
  var fs = require("fs");
41
41
  var path = require("path");
42
42
  var mkdirp = require("mkdirp");
43
43
  var config_1 = require("../config");
44
- var datasource_1 = require("../datasource");
45
44
  var buildDatafile_1 = require("./buildDatafile");
46
45
  function getDatafilePath(projectConfig, environment, tag) {
47
46
  var fileName = "datafile-tag-".concat(tag, ".json");
48
47
  return path.join(projectConfig.outputDirectoryPath, environment, fileName);
49
48
  }
50
49
  exports.getDatafilePath = getDatafilePath;
51
- function getExistingStateFilePath(projectConfig, environment) {
52
- return path.join(projectConfig.stateDirectoryPath, "existing-state-".concat(environment, ".json"));
53
- }
54
- exports.getExistingStateFilePath = getExistingStateFilePath;
55
- function buildProject(rootDirectoryPath, projectConfig, cliOptions) {
50
+ function buildProject(deps, cliOptions) {
56
51
  if (cliOptions === void 0) { cliOptions = {}; }
57
52
  return __awaiter(this, void 0, void 0, function () {
58
- var tags, environments, pkg, datasource, _i, environments_1, environment, existingStateFilePath, existingState, _a, tags_1, tag, datafileContent, outputEnvironmentDirPath, outputFilePath, shortPath;
53
+ var rootDirectoryPath, projectConfig, datasource, tags, environments, pkg, _i, environments_1, environment, existingState, _a, tags_1, tag, datafileContent, outputEnvironmentDirPath, outputFilePath, shortPath;
59
54
  return __generator(this, function (_b) {
60
55
  switch (_b.label) {
61
56
  case 0:
57
+ rootDirectoryPath = deps.rootDirectoryPath, projectConfig = deps.projectConfig, datasource = deps.datasource;
62
58
  tags = projectConfig.tags;
63
59
  environments = projectConfig.environments;
64
60
  pkg = require(path.join(rootDirectoryPath, "package.json"));
65
- datasource = new datasource_1.Datasource(projectConfig);
66
61
  _i = 0, environments_1 = environments;
67
62
  _b.label = 1;
68
63
  case 1:
69
- if (!(_i < environments_1.length)) return [3 /*break*/, 7];
64
+ if (!(_i < environments_1.length)) return [3 /*break*/, 9];
70
65
  environment = environments_1[_i];
71
66
  console.log("\nBuilding datafiles for environment: ".concat(environment));
72
- existingStateFilePath = getExistingStateFilePath(projectConfig, environment);
73
- existingState = fs.existsSync(existingStateFilePath)
74
- ? require(existingStateFilePath)
75
- : {
76
- features: {},
77
- };
78
- _a = 0, tags_1 = tags;
79
- _b.label = 2;
67
+ return [4 /*yield*/, datasource.readState(environment)];
80
68
  case 2:
81
- if (!(_a < tags_1.length)) return [3 /*break*/, 5];
69
+ existingState = _b.sent();
70
+ _a = 0, tags_1 = tags;
71
+ _b.label = 3;
72
+ case 3:
73
+ if (!(_a < tags_1.length)) return [3 /*break*/, 6];
82
74
  tag = tags_1[_a];
83
75
  console.log("\n => Tag: ".concat(tag));
84
76
  return [4 /*yield*/, (0, buildDatafile_1.buildDatafile)(projectConfig, datasource, {
@@ -87,7 +79,7 @@ function buildProject(rootDirectoryPath, projectConfig, cliOptions) {
87
79
  environment: environment,
88
80
  tag: tag,
89
81
  }, existingState)];
90
- case 3:
82
+ case 4:
91
83
  datafileContent = _b.sent();
92
84
  outputEnvironmentDirPath = path.join(projectConfig.outputDirectoryPath, environment);
93
85
  mkdirp.sync(outputEnvironmentDirPath);
@@ -97,23 +89,21 @@ function buildProject(rootDirectoryPath, projectConfig, cliOptions) {
97
89
  : JSON.stringify(datafileContent));
98
90
  shortPath = outputFilePath.replace(rootDirectoryPath + path.sep, "");
99
91
  console.log(" Datafile generated: ".concat(shortPath));
100
- _b.label = 4;
101
- case 4:
102
- _a++;
103
- return [3 /*break*/, 2];
92
+ _b.label = 5;
104
93
  case 5:
94
+ _a++;
95
+ return [3 /*break*/, 3];
96
+ case 6:
97
+ // write state for environment
98
+ return [4 /*yield*/, datasource.writeState(environment, existingState)];
99
+ case 7:
105
100
  // write state for environment
106
- if (!fs.existsSync(projectConfig.stateDirectoryPath)) {
107
- mkdirp.sync(projectConfig.stateDirectoryPath);
108
- }
109
- fs.writeFileSync(existingStateFilePath, projectConfig.prettyState
110
- ? JSON.stringify(existingState, null, 2)
111
- : JSON.stringify(existingState));
112
- _b.label = 6;
113
- case 6:
101
+ _b.sent();
102
+ _b.label = 8;
103
+ case 8:
114
104
  _i++;
115
105
  return [3 /*break*/, 1];
116
- case 7: return [2 /*return*/];
106
+ case 9: return [2 /*return*/];
117
107
  }
118
108
  });
119
109
  });
@@ -1 +1 @@
1
- {"version":3,"file":"buildProject.js","sourceRoot":"","sources":["../../src/builder/buildProject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAyB;AACzB,2BAA6B;AAE7B,+BAAiC;AAIjC,oCAA0D;AAC1D,4CAA2C;AAE3C,iDAAgD;AAEhD,SAAgB,eAAe,CAC7B,aAA4B,EAC5B,WAA2B,EAC3B,GAAW;I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AAQ,EAAE,UAAU,CAAC,QAAQ,IAAI,GAAG,CAAC,OAAO;4BAC5C,WAAW,EAAE,WAAW;4BACxB,GAAG,EAAE,GAAG;yBACT,EACD,aAAa,CACd,EAAA;;oBAVK,eAAe,GAAG,SAUvB;oBAGK,wBAAwB,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;oBAC3F,MAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;oBAEhC,cAAc,GAAG,eAAe,CAAC,aAAa,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC;oBACxE,EAAE,CAAC,aAAa,CACd,cAAc,EACd,aAAa,CAAC,cAAc;wBAC1B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC;wBAC1C,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CACpC,CAAC;oBACI,SAAS,GAAG,cAAc,CAAC,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;oBAC3E,OAAO,CAAC,GAAG,CAAC,mCAA4B,SAAS,CAAE,CAAC,CAAC;;;oBA1BrC,IAAI,CAAA;;;gBA6BtB,8BAA8B;gBAC9B,qBAAM,UAAU,CAAC,UAAU,CAAC,WAAW,EAAE,aAAa,CAAC,EAAA;;oBADvD,8BAA8B;oBAC9B,SAAuD,CAAC;;;oBAnChC,IAAY,CAAA;;;;;;CAqCvC;AA7CD,oCA6CC"}
@@ -1,6 +1,7 @@
1
- import { ParsedFeature, Segment, Attribute, Group, FeatureKey, Test } from "@featurevisor/types";
1
+ import { ParsedFeature, Segment, Attribute, Group, FeatureKey, Test, EnvironmentKey, ExistingState } from "@featurevisor/types";
2
2
  import { ProjectConfig } from "../config";
3
3
  export type EntityType = "feature" | "group" | "segment" | "attribute" | "test";
4
+ export declare function getExistingStateFilePath(projectConfig: ProjectConfig, environment: EnvironmentKey): string;
4
5
  export declare class Datasource {
5
6
  private config;
6
7
  private extension;
@@ -8,7 +9,7 @@ export declare class Datasource {
8
9
  constructor(config: ProjectConfig);
9
10
  getExtension(): any;
10
11
  /**
11
- * Common methods
12
+ * Common methods for entities
12
13
  */
13
14
  listEntities(entityType: EntityType): Promise<string[]>;
14
15
  getEntityDirectoryPath(entityType: EntityType): string;
@@ -16,6 +17,11 @@ export declare class Datasource {
16
17
  entityExists(entityType: EntityType, entityKey: string): Promise<boolean>;
17
18
  readEntity(entityType: EntityType, entityKey: string): Promise<string>;
18
19
  parseEntity<T>(entityType: EntityType, entityKey: string): Promise<T>;
20
+ /**
21
+ * State
22
+ */
23
+ readState(environment: EnvironmentKey): Promise<ExistingState>;
24
+ writeState(environment: EnvironmentKey, existingState: ExistingState): Promise<void>;
19
25
  /**
20
26
  * Entity specific methods
21
27
  */
@@ -36,10 +36,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  }
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Datasource = void 0;
39
+ exports.Datasource = exports.getExistingStateFilePath = void 0;
40
40
  var path = require("path");
41
41
  var fs = require("fs");
42
+ var mkdirp = require("mkdirp");
42
43
  var parsers_1 = require("./parsers");
44
+ function getExistingStateFilePath(projectConfig, environment) {
45
+ return path.join(projectConfig.stateDirectoryPath, "existing-state-".concat(environment, ".json"));
46
+ }
47
+ exports.getExistingStateFilePath = getExistingStateFilePath;
43
48
  var Datasource = /** @class */ (function () {
44
49
  function Datasource(config) {
45
50
  this.config = config;
@@ -70,7 +75,7 @@ var Datasource = /** @class */ (function () {
70
75
  return this.extension;
71
76
  };
72
77
  /**
73
- * Common methods
78
+ * Common methods for entities
74
79
  */
75
80
  Datasource.prototype.listEntities = function (entityType) {
76
81
  return __awaiter(this, void 0, void 0, function () {
@@ -78,6 +83,9 @@ var Datasource = /** @class */ (function () {
78
83
  var _this = this;
79
84
  return __generator(this, function (_a) {
80
85
  directoryPath = this.getEntityDirectoryPath(entityType);
86
+ if (!fs.existsSync(directoryPath)) {
87
+ return [2 /*return*/, []];
88
+ }
81
89
  return [2 /*return*/, fs
82
90
  .readdirSync(directoryPath)
83
91
  .filter(function (fileName) { return fileName.endsWith(".".concat(_this.extension)); })
@@ -135,6 +143,39 @@ var Datasource = /** @class */ (function () {
135
143
  });
136
144
  });
137
145
  };
146
+ /**
147
+ * State
148
+ */
149
+ Datasource.prototype.readState = function (environment) {
150
+ return __awaiter(this, void 0, void 0, function () {
151
+ var filePath;
152
+ return __generator(this, function (_a) {
153
+ filePath = getExistingStateFilePath(this.config, environment);
154
+ if (!fs.existsSync(filePath)) {
155
+ return [2 /*return*/, {
156
+ features: {},
157
+ }];
158
+ }
159
+ return [2 /*return*/, require(filePath)];
160
+ });
161
+ });
162
+ };
163
+ Datasource.prototype.writeState = function (environment, existingState) {
164
+ return __awaiter(this, void 0, void 0, function () {
165
+ var filePath;
166
+ return __generator(this, function (_a) {
167
+ filePath = getExistingStateFilePath(this.config, environment);
168
+ if (!fs.existsSync(this.config.stateDirectoryPath)) {
169
+ mkdirp.sync(this.config.stateDirectoryPath);
170
+ }
171
+ fs.writeFileSync(filePath, this.config.prettyState
172
+ ? JSON.stringify(existingState, null, 2)
173
+ : JSON.stringify(existingState));
174
+ fs.writeFileSync(filePath, JSON.stringify(existingState, null, 2));
175
+ return [2 /*return*/];
176
+ });
177
+ });
178
+ };
138
179
  /**
139
180
  * Entity specific methods
140
181
  */
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.js","sourceRoot":"","sources":["../../src/datasource/datasource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAA6B;AAC7B,uBAAyB;AAKzB,qCAAoC;AAIpC;IAIE,oBAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;QACvC,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE;YACrC,mBAAmB;YACnB,IAAI,OAA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AAC,CAAC;IACjD,CAAC;IACH,iBAAC;AAAD,CAAC,AApMD,IAoMC;AApMY,gCAAU"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parsers = void 0;
4
- var utils_1 = require("../utils");
4
+ var YAML = require("js-yaml");
5
5
  /**
6
6
  * If we want to add more built-in parsers,
7
7
  * add them to this object with new file extension as the key,
@@ -10,7 +10,7 @@ var utils_1 = require("../utils");
10
10
  exports.parsers = {
11
11
  // extension => function
12
12
  yml: function (content) {
13
- return (0, utils_1.parseYaml)(content);
13
+ return YAML.load(content);
14
14
  },
15
15
  json: function (content) {
16
16
  return JSON.parse(content);
@@ -1 +1 @@
1
- {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/datasource/parsers.ts"],"names":[],"mappings":";;;AAAA,kCAAqC;AAErC;;;;GAIG;AACU,QAAA,OAAO,GAAG;IACrB,wBAAwB;IACxB,GAAG,YAAC,OAAe;QACjB,OAAO,IAAA,iBAAS,EAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI,YAAC,OAAe;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../src/datasource/parsers.ts"],"names":[],"mappings":";;;AAAA,8BAAgC;AAEhC;;;;GAIG;AACU,QAAA,OAAO,GAAG;IACrB,wBAAwB;IACxB,GAAG,YAAC,OAAe;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAED,IAAI,YAAC,OAAe;QAClB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { ProjectConfig } from "./config";
2
+ import { Datasource } from "./datasource";
3
+ export interface Options {
4
+ [key: string]: any;
5
+ }
6
+ export interface Dependencies {
7
+ rootDirectoryPath: string;
8
+ projectConfig: ProjectConfig;
9
+ datasource: Datasource;
10
+ options: Options;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.js","sourceRoot":"","sources":["../src/dependencies.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import { ProjectConfig } from "../config";
2
- export declare function findDuplicateSegmentsInProject(rootDirectoryPath: any, projectConfig: ProjectConfig): Promise<void>;
1
+ import { Dependencies } from "../dependencies";
2
+ export declare function findDuplicateSegmentsInProject(deps: Dependencies): Promise<void>;
@@ -37,15 +37,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.findDuplicateSegmentsInProject = void 0;
40
- var datasource_1 = require("../datasource");
41
40
  var findDuplicateSegments_1 = require("./findDuplicateSegments");
42
- function findDuplicateSegmentsInProject(rootDirectoryPath, projectConfig) {
41
+ function findDuplicateSegmentsInProject(deps) {
43
42
  return __awaiter(this, void 0, void 0, function () {
44
43
  var datasource, duplicates;
45
44
  return __generator(this, function (_a) {
46
45
  switch (_a.label) {
47
46
  case 0:
48
- datasource = new datasource_1.Datasource(projectConfig);
47
+ datasource = deps.datasource;
49
48
  return [4 /*yield*/, (0, findDuplicateSegments_1.findDuplicateSegments)(datasource)];
50
49
  case 1:
51
50
  duplicates = _a.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/find-duplicate-segments/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA2C;AAG3C,iEAAgE;AAEhE,SAAsB,8BAA8B,CAClD,iBAAiB,EACjB,aAA4B;;;;;;oBAEtB,UAAU,GAAG,IAAI,uBAAU,CAAC,aAAa,CAAC,CA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