@featurevisor/core 0.53.1 → 0.53.2

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.
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/index.ts":"41","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testFeature.ts":"42","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testProject.ts":"43","/home/runner/work/featurevisor/featurevisor/packages/core/src/tester/testSegment.ts":"44","/home/runner/work/featurevisor/featurevisor/packages/core/src/utils.ts":"45"},{"size":3214,"mtime":1697383212300,"results":"46","hashOfConfig":"47"},{"size":1014,"mtime":1697383212300,"results":"48","hashOfConfig":"47"},{"size":8223,"mtime":1697383212300,"results":"49","hashOfConfig":"47"},{"size":2854,"mtime":1697383212300,"results":"50","hashOfConfig":"47"},{"size":1728,"mtime":1697383212300,"results":"51","hashOfConfig":"47"},{"size":65,"mtime":1697383212300,"results":"52","hashOfConfig":"47"},{"size":12889,"mtime":1697383212300,"results":"53","hashOfConfig":"47"},{"size":4799,"mtime":1697383212300,"results":"54","hashOfConfig":"47"},{"size":2966,"mtime":1697383212300,"results":"55","hashOfConfig":"47"},{"size":5523,"mtime":1697383212300,"results":"56","hashOfConfig":"47"},{"size":57,"mtime":1697383212300,"results":"57","hashOfConfig":"47"},{"size":646,"mtime":1697383212300,"results":"58","hashOfConfig":"47"},{"size":906,"mtime":1697383212300,"results":"59","hashOfConfig":"47"},{"size":618,"mtime":1697383212300,"results":"60","hashOfConfig":"47"},{"size":1619,"mtime":1697383212300,"results":"61","hashOfConfig":"47"},{"size":5875,"mtime":1697383212300,"results":"62","hashOfConfig":"47"},{"size":256,"mtime":1697383212300,"results":"63","hashOfConfig":"47"},{"size":1308,"mtime":1697383212300,"results":"64","hashOfConfig":"47"},{"size":341,"mtime":1697383212300,"results":"65","hashOfConfig":"47"},{"size":1106,"mtime":1697383212300,"results":"66","hashOfConfig":"47"},{"size":3003,"mtime":1697383212300,"results":"67","hashOfConfig":"47"},{"size":5782,"mtime":1697383212300,"results":"68","hashOfConfig":"47"},{"size":2092,"mtime":1697383212300,"results":"69","hashOfConfig":"47"},{"size":31,"mtime":1697383212300,"results":"70","hashOfConfig":"47"},{"size":4594,"mtime":1697383212300,"results":"71","hashOfConfig":"47"},{"size":323,"mtime":1697383212300,"results":"72","hashOfConfig":"47"},{"size":368,"mtime":1697383212300,"results":"73","hashOfConfig":"47"},{"size":1248,"mtime":1697383212300,"results":"74","hashOfConfig":"47"},{"size":604,"mtime":1697383212300,"results":"75","hashOfConfig":"47"},{"size":1740,"mtime":1697383212300,"results":"76","hashOfConfig":"47"},{"size":2808,"mtime":1697383212300,"results":"77","hashOfConfig":"47"},{"size":6199,"mtime":1697383212300,"results":"78","hashOfConfig":"47"},{"size":516,"mtime":1697383212300,"results":"79","hashOfConfig":"47"},{"size":496,"mtime":1697383212300,"results":"80","hashOfConfig":"47"},{"size":607,"mtime":1697383212300,"results":"81","hashOfConfig":"47"},{"size":1560,"mtime":1697383212300,"results":"82","hashOfConfig":"47"},{"size":59,"mtime":1697383212300,"results":"83","hashOfConfig":"47"},{"size":1697,"mtime":1697383212300,"results":"84","hashOfConfig":"47"},{"size":298,"mtime":1697383212300,"results":"85","hashOfConfig":"47"},{"size":365,"mtime":1697383212300,"results":"86","hashOfConfig":"47"},{"size":31,"mtime":1697383212300,"results":"87","hashOfConfig":"47"},{"size":3487,"mtime":1697383212300,"results":"88","hashOfConfig":"47"},{"size":1688,"mtime":1697383212300,"results":"89","hashOfConfig":"47"},{"size":1217,"mtime":1697383212300,"results":"90","hashOfConfig":"47"},{"size":2108,"mtime":1697383212300,"results":"91","hashOfConfig":"47"},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"u5hm5o",{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","suppressedMessages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","suppressedMessages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","suppressedMessages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","suppressedMessages":"208","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"209","messages":"210","suppressedMessages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","suppressedMessages":"214","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"215","messages":"216","suppressedMessages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","suppressedMessages":"220","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","suppressedMessages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","suppressedMessages":"226","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",[],["227"],"/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/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":"228","severity":2,"message":"229","line":41,"column":10,"nodeType":"230","messageId":"231","endLine":41,"endColumn":38,"suppressions":"232"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["233"],{"kind":"234","justification":"235"},"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/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":1697386288860,"results":"47","hashOfConfig":"48"},{"size":1014,"mtime":1697386288860,"results":"49","hashOfConfig":"48"},{"size":8223,"mtime":1697386288860,"results":"50","hashOfConfig":"48"},{"size":2854,"mtime":1697386288860,"results":"51","hashOfConfig":"48"},{"size":1728,"mtime":1697386288860,"results":"52","hashOfConfig":"48"},{"size":65,"mtime":1697386288860,"results":"53","hashOfConfig":"48"},{"size":12889,"mtime":1697386288860,"results":"54","hashOfConfig":"48"},{"size":4799,"mtime":1697386288860,"results":"55","hashOfConfig":"48"},{"size":2966,"mtime":1697386288860,"results":"56","hashOfConfig":"48"},{"size":5523,"mtime":1697386288860,"results":"57","hashOfConfig":"48"},{"size":57,"mtime":1697386288860,"results":"58","hashOfConfig":"48"},{"size":646,"mtime":1697386288860,"results":"59","hashOfConfig":"48"},{"size":906,"mtime":1697386288860,"results":"60","hashOfConfig":"48"},{"size":618,"mtime":1697386288860,"results":"61","hashOfConfig":"48"},{"size":1619,"mtime":1697386288860,"results":"62","hashOfConfig":"48"},{"size":5875,"mtime":1697386288860,"results":"63","hashOfConfig":"48"},{"size":256,"mtime":1697386288860,"results":"64","hashOfConfig":"48"},{"size":1308,"mtime":1697386288860,"results":"65","hashOfConfig":"48"},{"size":341,"mtime":1697386288860,"results":"66","hashOfConfig":"48"},{"size":1106,"mtime":1697386288860,"results":"67","hashOfConfig":"48"},{"size":3003,"mtime":1697386288860,"results":"68","hashOfConfig":"48"},{"size":5782,"mtime":1697386288860,"results":"69","hashOfConfig":"48"},{"size":2092,"mtime":1697386288860,"results":"70","hashOfConfig":"48"},{"size":31,"mtime":1697386288860,"results":"71","hashOfConfig":"48"},{"size":4594,"mtime":1697386288860,"results":"72","hashOfConfig":"48"},{"size":323,"mtime":1697386288860,"results":"73","hashOfConfig":"48"},{"size":368,"mtime":1697386288860,"results":"74","hashOfConfig":"48"},{"size":1248,"mtime":1697386288860,"results":"75","hashOfConfig":"48"},{"size":604,"mtime":1697386288860,"results":"76","hashOfConfig":"48"},{"size":1740,"mtime":1697386288860,"results":"77","hashOfConfig":"48"},{"size":2808,"mtime":1697386288860,"results":"78","hashOfConfig":"48"},{"size":6199,"mtime":1697386288860,"results":"79","hashOfConfig":"48"},{"size":516,"mtime":1697386288860,"results":"80","hashOfConfig":"48"},{"size":496,"mtime":1697386288860,"results":"81","hashOfConfig":"48"},{"size":607,"mtime":1697386288860,"results":"82","hashOfConfig":"48"},{"size":1560,"mtime":1697386288860,"results":"83","hashOfConfig":"48"},{"size":59,"mtime":1697386288860,"results":"84","hashOfConfig":"48"},{"size":1697,"mtime":1697386288860,"results":"85","hashOfConfig":"48"},{"size":298,"mtime":1697386288860,"results":"86","hashOfConfig":"48"},{"size":365,"mtime":1697386288860,"results":"87","hashOfConfig":"48"},{"size":156,"mtime":1697386288860,"results":"88","hashOfConfig":"48"},{"size":31,"mtime":1697386288860,"results":"89","hashOfConfig":"48"},{"size":3611,"mtime":1697386288860,"results":"90","hashOfConfig":"48"},{"size":1980,"mtime":1697386288860,"results":"91","hashOfConfig":"48"},{"size":1299,"mtime":1697386288860,"results":"92","hashOfConfig":"48"},{"size":2108,"mtime":1697386288860,"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":41,"column":10,"nodeType":"235","messageId":"236","endLine":41,"endColumn":38,"suppressions":"237"},"@typescript-eslint/no-unused-vars","'getFeaturevisorTypeFromValue' is defined but never used.","Identifier","unusedVar",["238"],{"kind":"239","justification":"240"},"directive",""]
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.2](https://github.com/featurevisor/featurevisor/compare/v0.53.1...v0.53.2) (2023-10-15)
7
+
8
+ **Note:** Version bump only for package @featurevisor/core
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.53.1](https://github.com/featurevisor/featurevisor/compare/v0.53.0...v0.53.1) (2023-10-15)
7
15
 
8
16
  **Note:** Version bump only for package @featurevisor/core
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1697383393838" clover="3.2.0">
3
- <project timestamp="1697383393838" name="All files">
2
+ <coverage generated="1697386472602" clover="3.2.0">
3
+ <project timestamp="1697386472602" 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-15T15:23:13.819Z
119
+ at 2023-10-15T16:14:32.580Z
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-15T15:23:13.819Z
178
+ at 2023-10-15T16:14:32.580Z
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-15T15:23:13.819Z
119
+ at 2023-10-15T16:14:32.580Z
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-15T15:23:13.819Z
445
+ at 2023-10-15T16:14:32.580Z
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-15T15:23:13.819Z
196
+ at 2023-10-15T16:14:32.580Z
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-15T15:23:13.819Z
119
+ at 2023-10-15T16:14:32.580Z
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-15T15:23:13.819Z
556
+ at 2023-10-15T16:14:32.580Z
557
557
  </div>
558
558
  <script src="../../prettify.js"></script>
559
559
  <script>
@@ -0,0 +1,3 @@
1
+ export declare const CLI_FORMAT_RED = "\u001B[31m%s\u001B[0m";
2
+ export declare const CLI_FORMAT_GREEN = "\u001B[32m%s\u001B[0m";
3
+ export declare const CLI_FORMAT_BOLD = "\u001B[1m%s\u001B[0m";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLI_FORMAT_BOLD = exports.CLI_FORMAT_GREEN = exports.CLI_FORMAT_RED = void 0;
4
+ exports.CLI_FORMAT_RED = "\x1b[31m%s\x1b[0m";
5
+ exports.CLI_FORMAT_GREEN = "\x1b[32m%s\x1b[0m";
6
+ exports.CLI_FORMAT_BOLD = "\x1b[1m%s\x1b[0m";
7
+ //# sourceMappingURL=cliFormat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cliFormat.js","sourceRoot":"","sources":["../../src/tester/cliFormat.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,mBAAmB,CAAC;AACrC,QAAA,gBAAgB,GAAG,mBAAmB,CAAC;AAEvC,QAAA,eAAe,GAAG,kBAAkB,CAAC"}
@@ -7,13 +7,14 @@ var builder_1 = require("../builder");
7
7
  var config_1 = require("../config");
8
8
  var checkIfArraysAreEqual_1 = require("./checkIfArraysAreEqual");
9
9
  var checkIfObjectsAreEqual_1 = require("./checkIfObjectsAreEqual");
10
+ var cliFormat_1 = require("./cliFormat");
10
11
  function testFeature(datasource, projectConfig, test) {
11
12
  var hasError = false;
12
13
  var featureKey = test.feature;
13
- console.log(" => Feature \"".concat(featureKey, "\":"));
14
+ console.log(cliFormat_1.CLI_FORMAT_BOLD, " Feature \"".concat(featureKey, "\":"));
14
15
  test.assertions.forEach(function (assertion, aIndex) {
15
16
  var description = assertion.description || "at ".concat(assertion.at, "%");
16
- console.log(" => Assertion #".concat(aIndex + 1, ": (").concat(assertion.environment, ") ").concat(description));
17
+ console.log(" Assertion #".concat(aIndex + 1, ": (").concat(assertion.environment, ") ").concat(description));
17
18
  var featuresToInclude = Array.from(datasource.getRequiredFeaturesChain(test.feature));
18
19
  var datafileContent = (0, builder_1.buildDatafile)(projectConfig, datasource, {
19
20
  schemaVersion: config_1.SCHEMA_VERSION,
@@ -35,7 +36,7 @@ function testFeature(datasource, projectConfig, test) {
35
36
  var isEnabled = sdk.isEnabled(featureKey, assertion.context);
36
37
  if (isEnabled !== assertion.expectedToBeEnabled) {
37
38
  hasError = true;
38
- console.error(" isEnabled failed: expected \"".concat(assertion.expectedToBeEnabled, "\", got \"").concat(isEnabled, "\""));
39
+ console.error(cliFormat_1.CLI_FORMAT_RED, " isEnabled failed: expected \"".concat(assertion.expectedToBeEnabled, "\", got \"").concat(isEnabled, "\""));
39
40
  }
40
41
  }
41
42
  // variation
@@ -43,7 +44,7 @@ function testFeature(datasource, projectConfig, test) {
43
44
  var variation = sdk.getVariation(featureKey, assertion.context);
44
45
  if (variation !== assertion.expectedVariation) {
45
46
  hasError = true;
46
- console.error(" Variation failed: expected \"".concat(assertion.expectedVariation, "\", got \"").concat(variation, "\""));
47
+ console.error(cliFormat_1.CLI_FORMAT_RED, " Variation failed: expected \"".concat(assertion.expectedVariation, "\", got \"").concat(variation, "\""));
47
48
  }
48
49
  }
49
50
  // variables
@@ -63,7 +64,7 @@ function testFeature(datasource, projectConfig, test) {
63
64
  }
64
65
  if (!passed) {
65
66
  hasError = true;
66
- console.error(" Variable \"".concat(variableKey, "\" failed: expected ").concat(JSON.stringify(expectedValue), ", got \"").concat(JSON.stringify(actualValue), "\""));
67
+ console.error(cliFormat_1.CLI_FORMAT_RED, " Variable \"".concat(variableKey, "\" failed: expected ").concat(JSON.stringify(expectedValue), ", got \"").concat(JSON.stringify(actualValue), "\""));
67
68
  }
68
69
  });
69
70
  }
@@ -1 +1 @@
1
- {"version":3,"file":"testFeature.js","sourceRoot":"","sources":["../../src/tester/testFeature.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AAGzB,yC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;QACZ,IAAI,OAAO,SAAS,CAAC,iBAAiB,KAAK,QAAQ,EAAE;YACnD,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,UAAU,WAAW;gBACpE,IAAM,aAAa,GACjB,SAAS,CAAC,iBAAiB,IAAI,SAAS,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;gBAC1E,IAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAC,UAAU,EAAE,WAAW,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;gBAEhF,IAAI,MAAM,CAAC;gBAEX,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;oBACrC,MAAM,GAAG,IAAA,+CAAsB,EAAC,aAAa,EAAE,WAAW,CAAC,CAAC;iBAC7D;qBAAM,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE;oBACvC,MAAM,GAAG,IAAA,6CAAqB,EAAC,aAAa,EAAE,WAAW,CAAC,CAAC;iBAC5D;qBAAM;oBACL,MAAM,GAAG,aAAa,KAAK,WAAW,CAAC;iBACxC;gBAED,IAAI,CAAC,MAAM,EAAE;oBACX,QAAQ,GAAG,IAAI,CAAC;oBAEhB,OAAO,CAAC,KAAK,CACX,0BAAc,EACd,yBAAiB,WAAW,iCAAsB,IAAI,CAAC,SAAS,CAC9D,aAAa,CACd,qBAAU,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,OAAG,CAC1C,CAAC;iBACH;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC;AArGD,kCAqGC"}
@@ -5,6 +5,7 @@ var fs = require("fs");
5
5
  var datasource_1 = require("../datasource");
6
6
  var testSegment_1 = require("./testSegment");
7
7
  var testFeature_1 = require("./testFeature");
8
+ var cliFormat_1 = require("./cliFormat");
8
9
  function testProject(rootDirectoryPath, projectConfig) {
9
10
  var hasError = false;
10
11
  var datasource = new datasource_1.Datasource(projectConfig);
@@ -22,7 +23,8 @@ function testProject(rootDirectoryPath, projectConfig) {
22
23
  for (var _i = 0, testFiles_1 = testFiles; _i < testFiles_1.length; _i++) {
23
24
  var testFile = testFiles_1[_i];
24
25
  var testFilePath = datasource.getEntityPath("test", testFile);
25
- console.log(" => Testing: ".concat(testFilePath.replace(rootDirectoryPath, "")));
26
+ console.log("");
27
+ console.log(cliFormat_1.CLI_FORMAT_BOLD, "Testing: ".concat(testFilePath.replace(rootDirectoryPath, "")));
26
28
  var t = datasource.readTest(testFile);
27
29
  if (t.segment) {
28
30
  // segment testing
@@ -41,10 +43,18 @@ function testProject(rootDirectoryPath, projectConfig) {
41
43
  }
42
44
  }
43
45
  else {
44
- console.error(" => Invalid test: ".concat(JSON.stringify(test)));
46
+ console.error(" => Invalid test: ".concat(JSON.stringify(test)));
45
47
  hasError = true;
46
48
  }
47
49
  }
50
+ console.log("");
51
+ if (hasError) {
52
+ console.log(cliFormat_1.CLI_FORMAT_RED, "Some tests failed");
53
+ }
54
+ else {
55
+ console.log(cliFormat_1.CLI_FORMAT_GREEN, "All tests passed");
56
+ }
57
+ console.log("");
48
58
  return hasError;
49
59
  }
50
60
  exports.testProject = testProject;
@@ -1 +1 @@
1
- {"version":3,"file":"testProject.js","sourceRoot":"","sources":["../../src/tester/testProject.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AAKzB,4CAA2C;AAE3C,6CAA4C;AAC5C,6CAA4C;AAE5C,SAAgB,WAAW,CAAC,iBAAyB,EAAE,aAA4B;IACjF,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAM,UAAU,GAAG,IAAI,uBAAU,CAAC,aAAa,CAAC,CAAC;IAEjD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE;QACpD,OAAO,CAAC,KAAK,CAAC,0CAAmC,aAAa,CAAC,kBAAkB,CAAE,CAAC,CAAC;QACrF,QAAQ,GAAG,IAAI,CAAC;Q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IAAK,CAAiB,CAAC,OAAO,EAAE;YAC9B,kBAAkB;YAClB,IAAM,MAAI,GAAG,CAAgB,CAAC;YAE9B,IAAM,eAAe,GAAG,IAAA,yBAAW,EAAC,UAAU,EAAE,MAAI,CAAC,CAAC;YAEtD,IAAI,eAAe,EAAE;gBACnB,QAAQ,GAAG,IAAI,CAAC;aACjB;SACF;aAAM,IAAK,CAAiB,CAAC,OAAO,EAAE;YACrC,kBAAkB;YAClB,IAAM,MAAI,GAAG,CAAgB,CAAC;YAE9B,IAAM,eAAe,GAAG,IAAA,yBAAW,EAAC,UAAU,EAAE,aAAa,EAAE,MAAI,CAAC,CAAC;YAErE,IAAI,eAAe,EAAE;gBACnB,QAAQ,GAAG,IAAI,CAAC;aACjB;SACF;aAAM;YACL,OAAO,CAAC,KAAK,CAAC,6BAAsB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAE,CAAC,CAAC;YAC5D,QAAQ,GAAG,IAAI,CAAC;SACjB;KACF;IAED,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,IAAI,QAAQ,EAAE;QACZ,OAAO,CAAC,GAAG,CAAC,0BAAc,EAAE,mBAAmB,CAAC,CAAC;KAClD;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,4BAAgB,EAAE,kBAAkB,CAAC,CAAC;KACnD;IACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,OAAO,QAAQ,CAAC;AAClB,CAAC;AA7DD,kCA6DC"}
@@ -2,13 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.testSegment = void 0;
4
4
  var sdk_1 = require("@featurevisor/sdk");
5
+ var cliFormat_1 = require("./cliFormat");
5
6
  function testSegment(datasource, test) {
6
7
  var hasError = false;
7
8
  var segmentKey = test.segment;
8
- console.log(" => Segment \"".concat(segmentKey, "\":"));
9
+ console.log(cliFormat_1.CLI_FORMAT_BOLD, " Segment \"".concat(segmentKey, "\":"));
9
10
  var segmentExists = datasource.entityExists("segment", segmentKey);
10
11
  if (!segmentExists) {
11
- console.error(" => Segment does not exist: ".concat(segmentKey));
12
+ console.error(cliFormat_1.CLI_FORMAT_RED, " Segment does not exist: ".concat(segmentKey));
12
13
  hasError = true;
13
14
  return hasError;
14
15
  }
@@ -16,12 +17,12 @@ function testSegment(datasource, test) {
16
17
  var conditions = parsedSegment.conditions;
17
18
  test.assertions.forEach(function (assertion, aIndex) {
18
19
  var description = assertion.description || "#".concat(aIndex + 1);
19
- console.log(" => Assertion #".concat(aIndex + 1, ": ").concat(description));
20
+ console.log(" Assertion #".concat(aIndex + 1, ": ").concat(description));
20
21
  var expected = assertion.expectedToMatch;
21
22
  var actual = (0, sdk_1.allConditionsAreMatched)(conditions, assertion.context);
22
23
  if (actual !== expected) {
23
24
  hasError = true;
24
- console.error(" Segment failed: expected \"".concat(expected, "\", got \"").concat(actual, "\""));
25
+ console.error(cliFormat_1.CLI_FORMAT_RED, " Segment failed: expected \"".concat(expected, "\", got \"").concat(actual, "\""));
25
26
  }
26
27
  });
27
28
  return hasError;
@@ -1 +1 @@
1
- {"version":3,"file":"testSegment.js","sourceRoot":"","sources":["../../src/tester/testSegment.ts"],"names":[],"mappings":";;;AACA,yCAA4D;AAI5D,SAAgB,WAAW,CAAC,UAAsB,EAAE,IAAiB;IACnE,IAAI,QAAQ,GAAG,KAAK,CAAC;IAErB,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC;IAEhC,OAAO,CAAC,GAAG,CAAC,4BAAoB,UAAU,QAAI,CAAC,CAAC;IAEhD,IAAM,aAAa,GAAG,UAAU,CAAC,YAAY,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IAErE,IAAI,CAAC,aAAa,EAAE;QAClB,OAAO,CAAC,KAAK,CAAC,6CAAsC,UAAU,CAAE,CAAC,CAAC;QAClE,QAAQ,GAAG,IAAI,CAAC;QAEhB,OAAO,QAAQ,CAAC;KACjB;IAED,IAAM,aAAa,GAAG,UA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hB,OAAO,QAAQ,CAAC;KACjB;IAED,IAAM,aAAa,GAAG,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACzD,IAAM,UAAU,GAAG,aAAa,CAAC,UAAqC,CAAC;IAEvE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,SAAS,EAAE,MAAM;QACjD,IAAM,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,WAAI,MAAM,GAAG,CAAC,CAAE,CAAC;QAE9D,OAAO,CAAC,GAAG,CAAC,uBAAgB,MAAM,GAAG,CAAC,eAAK,WAAW,CAAE,CAAC,CAAC;QAE1D,IAAM,QAAQ,GAAG,SAAS,CAAC,eAAe,CAAC;QAC3C,IAAM,MAAM,GAAG,IAAA,6BAAuB,EAAC,UAAU,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;QAEtE,IAAI,MAAM,KAAK,QAAQ,EAAE;YACvB,QAAQ,GAAG,IAAI,CAAC;YAEhB,OAAO,CAAC,KAAK,CAAC,0BAAc,EAAE,yCAAiC,QAAQ,uBAAW,MAAM,OAAG,CAAC,CAAC;SAC9F;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAnCD,kCAmCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featurevisor/core",
3
- "version": "0.53.1",
3
+ "version": "0.53.2",
4
4
  "description": "Core package of Featurevisor for Node.js usage",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -57,5 +57,5 @@
57
57
  "@types/js-yaml": "^4.0.5",
58
58
  "@types/tar": "^6.1.4"
59
59
  },
60
- "gitHead": "d1a30c5cd870a149bcee916a9b90eb9bbbaa38f1"
60
+ "gitHead": "f63fbcebd97cea554e1c408784d1991fead6ba8e"
61
61
  }
@@ -0,0 +1,4 @@
1
+ export const CLI_FORMAT_RED = "\x1b[31m%s\x1b[0m";
2
+ export const CLI_FORMAT_GREEN = "\x1b[32m%s\x1b[0m";
3
+
4
+ export const CLI_FORMAT_BOLD = "\x1b[1m%s\x1b[0m";
@@ -10,6 +10,7 @@ import { SCHEMA_VERSION } from "../config";
10
10
 
11
11
  import { checkIfArraysAreEqual } from "./checkIfArraysAreEqual";
12
12
  import { checkIfObjectsAreEqual } from "./checkIfObjectsAreEqual";
13
+ import { CLI_FORMAT_BOLD, CLI_FORMAT_RED } from "./cliFormat";
13
14
 
14
15
  export function testFeature(
15
16
  datasource: Datasource,
@@ -19,12 +20,12 @@ export function testFeature(
19
20
  let hasError = false;
20
21
  const featureKey = test.feature;
21
22
 
22
- console.log(` => Feature "${featureKey}":`);
23
+ console.log(CLI_FORMAT_BOLD, ` Feature "${featureKey}":`);
23
24
 
24
25
  test.assertions.forEach(function (assertion, aIndex) {
25
26
  const description = assertion.description || `at ${assertion.at}%`;
26
27
 
27
- console.log(` => Assertion #${aIndex + 1}: (${assertion.environment}) ${description}`);
28
+ console.log(` Assertion #${aIndex + 1}: (${assertion.environment}) ${description}`);
28
29
 
29
30
  const featuresToInclude = Array.from(datasource.getRequiredFeaturesChain(test.feature));
30
31
 
@@ -60,7 +61,8 @@ export function testFeature(
60
61
  hasError = true;
61
62
 
62
63
  console.error(
63
- ` isEnabled failed: expected "${assertion.expectedToBeEnabled}", got "${isEnabled}"`,
64
+ CLI_FORMAT_RED,
65
+ ` isEnabled failed: expected "${assertion.expectedToBeEnabled}", got "${isEnabled}"`,
64
66
  );
65
67
  }
66
68
  }
@@ -73,7 +75,8 @@ export function testFeature(
73
75
  hasError = true;
74
76
 
75
77
  console.error(
76
- ` Variation failed: expected "${assertion.expectedVariation}", got "${variation}"`,
78
+ CLI_FORMAT_RED,
79
+ ` Variation failed: expected "${assertion.expectedVariation}", got "${variation}"`,
77
80
  );
78
81
  }
79
82
  }
@@ -99,7 +102,8 @@ export function testFeature(
99
102
  hasError = true;
100
103
 
101
104
  console.error(
102
- ` Variable "${variableKey}" failed: expected ${JSON.stringify(
105
+ CLI_FORMAT_RED,
106
+ ` Variable "${variableKey}" failed: expected ${JSON.stringify(
103
107
  expectedValue,
104
108
  )}, got "${JSON.stringify(actualValue)}"`,
105
109
  );
@@ -7,6 +7,7 @@ import { Datasource } from "../datasource";
7
7
 
8
8
  import { testSegment } from "./testSegment";
9
9
  import { testFeature } from "./testFeature";
10
+ import { CLI_FORMAT_BOLD, CLI_FORMAT_GREEN, CLI_FORMAT_RED } from "./cliFormat";
10
11
 
11
12
  export function testProject(rootDirectoryPath: string, projectConfig: ProjectConfig): boolean {
12
13
  let hasError = false;
@@ -31,7 +32,8 @@ export function testProject(rootDirectoryPath: string, projectConfig: ProjectCon
31
32
  for (const testFile of testFiles) {
32
33
  const testFilePath = datasource.getEntityPath("test", testFile);
33
34
 
34
- console.log(` => Testing: ${testFilePath.replace(rootDirectoryPath, "")}`);
35
+ console.log("");
36
+ console.log(CLI_FORMAT_BOLD, `Testing: ${testFilePath.replace(rootDirectoryPath, "")}`);
35
37
 
36
38
  const t = datasource.readTest(testFile);
37
39
 
@@ -54,10 +56,18 @@ export function testProject(rootDirectoryPath: string, projectConfig: ProjectCon
54
56
  hasError = true;
55
57
  }
56
58
  } else {
57
- console.error(` => Invalid test: ${JSON.stringify(test)}`);
59
+ console.error(` => Invalid test: ${JSON.stringify(test)}`);
58
60
  hasError = true;
59
61
  }
60
62
  }
61
63
 
64
+ console.log("");
65
+ if (hasError) {
66
+ console.log(CLI_FORMAT_RED, `Some tests failed`);
67
+ } else {
68
+ console.log(CLI_FORMAT_GREEN, `All tests passed`);
69
+ }
70
+ console.log("");
71
+
62
72
  return hasError;
63
73
  }
@@ -3,17 +3,19 @@ import { allConditionsAreMatched } from "@featurevisor/sdk";
3
3
 
4
4
  import { Datasource } from "../datasource";
5
5
 
6
+ import { CLI_FORMAT_BOLD, CLI_FORMAT_RED } from "./cliFormat";
7
+
6
8
  export function testSegment(datasource: Datasource, test: TestSegment): boolean {
7
9
  let hasError = false;
8
10
 
9
11
  const segmentKey = test.segment;
10
12
 
11
- console.log(` => Segment "${segmentKey}":`);
13
+ console.log(CLI_FORMAT_BOLD, ` Segment "${segmentKey}":`);
12
14
 
13
15
  const segmentExists = datasource.entityExists("segment", segmentKey);
14
16
 
15
17
  if (!segmentExists) {
16
- console.error(` => Segment does not exist: ${segmentKey}`);
18
+ console.error(CLI_FORMAT_RED, ` Segment does not exist: ${segmentKey}`);
17
19
  hasError = true;
18
20
 
19
21
  return hasError;
@@ -25,7 +27,7 @@ export function testSegment(datasource: Datasource, test: TestSegment): boolean
25
27
  test.assertions.forEach(function (assertion, aIndex) {
26
28
  const description = assertion.description || `#${aIndex + 1}`;
27
29
 
28
- console.log(` => Assertion #${aIndex + 1}: ${description}`);
30
+ console.log(` Assertion #${aIndex + 1}: ${description}`);
29
31
 
30
32
  const expected = assertion.expectedToMatch;
31
33
  const actual = allConditionsAreMatched(conditions, assertion.context);
@@ -33,7 +35,7 @@ export function testSegment(datasource: Datasource, test: TestSegment): boolean
33
35
  if (actual !== expected) {
34
36
  hasError = true;
35
37
 
36
- console.error(` Segment failed: expected "${expected}", got "${actual}"`);
38
+ console.error(CLI_FORMAT_RED, ` Segment failed: expected "${expected}", got "${actual}"`);
37
39
  }
38
40
  });
39
41