qpp-measures-data
Advanced tools
Comparing version 7.7.0-beta.5 to 7.7.0-beta.6
@@ -32,3 +32,3 @@ "use strict"; | ||
} | ||
const schema = yaml_1.default.parse(fs_1.default.readFileSync(path_1.default.join(__dirname, '../', optionalPath || schemaType, performanceYear, schemaType + '-schema.yaml'), 'utf8')); | ||
const schema = yaml_1.default.parse(fs_1.default.readFileSync(path_1.default.join(app_root_path_1.default + '', optionalPath || schemaType, performanceYear, schemaType + '-schema.yaml'), 'utf8')); | ||
validate(schema, jsonToValidate); |
@@ -15,5 +15,4 @@ export interface BenchmarksData { | ||
}; | ||
deciles?: number[]; | ||
averagePerformanceRate?: number; | ||
}[]; | ||
} |
{ | ||
"name": "qpp-measures-data", | ||
"version": "7.7.0-beta.5", | ||
"version": "v7.7.0-beta.6", | ||
"description": "Quality Payment Program Measures Data Repository", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -20,3 +20,3 @@ /** | ||
// command to use this file: | ||
// node dist/benchmarks/csv-json-converter.js staging/2023/benchmarks/[fileName].csv 2023 [fileName] | ||
// node dist/scripts/benchmarks/csv-json-converter.js staging/2023/benchmarks/[fileName].csv 2023 [fileName] | ||
export function convertCsvToJson(csvPath: string, performanceYear: number, jsonFileName: string) { | ||
@@ -23,0 +23,0 @@ const csv = fetchCSV(csvPath); |
@@ -11,3 +11,3 @@ import fs from 'fs'; | ||
// command to use this file: | ||
// node ./dist/benchmarks/merge-benchmark-files.js ./util/2023/benchmarks/json/ > ./benchmarks/2023.json | ||
// node ./dist/scripts/benchmarks/merge-benchmark-files.js ./util/2023/benchmarks/json/ > ./benchmarks/2023.json | ||
export function mergeBenchmarkFiles(benchmarksPath: string, performanceYear: number) { | ||
@@ -14,0 +14,0 @@ const mergedBenchmarks = new Map(); |
@@ -47,3 +47,3 @@ /** | ||
// Load the schema file | ||
const schema = YAML.parse(fs.readFileSync(path.join(__dirname, '../', optionalPath || schemaType, performanceYear, schemaType + '-schema.yaml'), 'utf8')); | ||
const schema = YAML.parse(fs.readFileSync(path.join(appRoot + '', optionalPath || schemaType, performanceYear, schemaType + '-schema.yaml'), 'utf8')); | ||
@@ -50,0 +50,0 @@ // Validate the json against the schema |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93024856
768
1452402
1