convention_builder 1.8.5 → 1.8.6
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/dist/module/index.js +7 -1
- package/dist/node/index.js +7 -1
- package/package.json +2 -2
package/dist/module/index.js
CHANGED
|
@@ -11390,7 +11390,13 @@ import TabItem from '@theme/TabItem';
|
|
|
11390
11390
|
let test = this.testExamples();
|
|
11391
11391
|
let valid = test.success;
|
|
11392
11392
|
if (!valid && !overlaysOnly) {
|
|
11393
|
-
|
|
11393
|
+
let report = {};
|
|
11394
|
+
report.convention = this.schemaName;
|
|
11395
|
+
report.title = this.title;
|
|
11396
|
+
report.failedExamples = test.failedExamples;
|
|
11397
|
+
let errorReportFilename = `./~${this.schemaName}_example_errors.json`;
|
|
11398
|
+
fs.writeFileSync(errorReportFilename, JSON.stringify(report, null, " "));
|
|
11399
|
+
throw new Error(`The 'testExamples' method failed. More details in ${errorReportFilename}. The schema ${this.schemaName} either lacks examples, or is rejecting a valid example or accepting an invalid example.
|
|
11394
11400
|
* Valid examples provided: ${test.validExamples.length}
|
|
11395
11401
|
* Error examples provided: ${test.erroredExamples.length}
|
|
11396
11402
|
* Failed examples observed: ${test.failedExamples.length}.`);
|
package/dist/node/index.js
CHANGED
|
@@ -11384,7 +11384,13 @@ import TabItem from '@theme/TabItem';
|
|
|
11384
11384
|
let test = this.testExamples();
|
|
11385
11385
|
let valid = test.success;
|
|
11386
11386
|
if (!valid && !overlaysOnly) {
|
|
11387
|
-
|
|
11387
|
+
let report = {};
|
|
11388
|
+
report.convention = this.schemaName;
|
|
11389
|
+
report.title = this.title;
|
|
11390
|
+
report.failedExamples = test.failedExamples;
|
|
11391
|
+
let errorReportFilename = `./~${this.schemaName}_example_errors.json`;
|
|
11392
|
+
fs.writeFileSync(errorReportFilename, JSON.stringify(report, null, " "));
|
|
11393
|
+
throw new Error(`The 'testExamples' method failed. More details in ${errorReportFilename}. The schema ${this.schemaName} either lacks examples, or is rejecting a valid example or accepting an invalid example.
|
|
11388
11394
|
* Valid examples provided: ${test.validExamples.length}
|
|
11389
11395
|
* Error examples provided: ${test.erroredExamples.length}
|
|
11390
11396
|
* Failed examples observed: ${test.failedExamples.length}.`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "convention_builder",
|
|
3
|
-
"version": "1.8.
|
|
4
|
-
"description": "Helper tools that offer a high level interface that transforms a convention description into
|
|
3
|
+
"version": "1.8.6",
|
|
4
|
+
"description": "Helper tools that offer a high level interface that transforms a convention description into its json schema.",
|
|
5
5
|
"main": "./dist/node/index.js",
|
|
6
6
|
"browser": "./dist/browser/index.js",
|
|
7
7
|
"module": "./dist/module/index.js",
|