testdriverai 6.0.14 → 6.0.15

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.
@@ -1,4 +1,4 @@
1
- name: v6 Acceptance
1
+ name: v6 Acceptance [disabled]
2
2
 
3
3
  on:
4
4
  workflow_dispatch:
@@ -1,7 +1,7 @@
1
1
  // parses markdown content to find code blocks, and then extracts yaml from those code blocks
2
2
  const Parser = require("markdown-parser");
3
3
  const yaml = require("js-yaml");
4
- const Ajv = require("ajv");
4
+ const Ajv = require("ajv/dist/2020");
5
5
  const theme = require("./theme");
6
6
  const { events } = require("../events.js");
7
7
 
@@ -14,7 +14,9 @@ function formatAjvError(error) {
14
14
  `${theme.yellow("Schema:")} ${theme.cyan(error.schemaPath)}`,
15
15
  `${theme.yellow("Keyword:")} ${theme.magenta(error.keyword)}`,
16
16
  error.params?.missingProperty
17
- ? `${theme.yellow("Missing:")} ${theme.yellow(error.params.missingProperty)}`
17
+ ? `${theme.yellow("Missing:")} ${theme.yellow(
18
+ error.params.missingProperty,
19
+ )}`
18
20
  : "",
19
21
  `${theme.yellow("Message:")} ${theme.white(error.message)}`,
20
22
  `\n`,
@@ -129,7 +131,10 @@ function createParser(emitter) {
129
131
  // validate yaml using schema.json in root
130
132
  let schema = require("../../schema.json");
131
133
  const validateYAML = async function (yaml) {
132
- let ajv = new Ajv({ allowUnionTypes: true });
134
+ let ajv = new Ajv({
135
+ allowUnionTypes: true,
136
+ strict: false,
137
+ });
133
138
  let validate = ajv.compile(schema);
134
139
  let valid = validate(await parseYAML(yaml));
135
140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "6.0.14",
3
+ "version": "6.0.15",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {