doc-detective-common 1.9.0 → 1.10.0

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.
@@ -18,7 +18,6 @@ jobs:
18
18
  - windows-latest
19
19
  - macos-latest
20
20
  node:
21
- - 16
22
21
  - 18
23
22
  - 20
24
23
 
@@ -18,7 +18,6 @@ jobs:
18
18
  - windows-latest
19
19
  - macos-latest
20
20
  node:
21
- - 16
22
21
  - 18
23
22
  - 20
24
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doc-detective-common",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "Shared components for Doc Detective projects. ",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -61,6 +61,17 @@ async function dereferenceSchemas() {
61
61
  // Write to file
62
62
  fs.writeFileSync(`${outputDir}/${file}`, JSON.stringify(schema, null, 2));
63
63
  }
64
+ // Build final schemas.json file
65
+ const schemas = {};
66
+ files.forEach(async (file) => {
67
+ const key = file.replace(".schema.json", "");
68
+ // Load schema from file
69
+ let schema = require(`${outputDir}/${file}`);
70
+ // Load into `schema` object
71
+ schemas[key] = schema;
72
+ });
73
+ fs.writeFileSync(`${__dirname}/schemas.json`, JSON.stringify(schemas,null,2));
74
+
64
75
  // Clean up build dir
65
76
  // fs.rm(buildDir, { recursive: true }, (err) => {
66
77
  // if (err) throw err;
@@ -1,32 +1,6 @@
1
- // Load schemas from file
2
- const schemas = {};
3
- // Read files from schema directory
4
- path = `${__dirname}/output_schemas`;
5
- var files = [
6
- "checkLink_v2.schema.json",
7
- "config_v2.schema.json",
8
- "context_v2.schema.json",
9
- "find_v2.schema.json",
10
- "goTo_v2.schema.json",
11
- "httpRequest_v2.schema.json",
12
- "runShell_v2.schema.json",
13
- "saveScreenshot_v2.schema.json",
14
- "setVariables_v2.schema.json",
15
- "spec_v2.schema.json",
16
- "test_v2.schema.json",
17
- "typeKeys_v2.schema.json",
18
- "wait_v2.schema.json",
19
- ];
20
- // Loop through all schema files
21
- files.forEach(async (file) => {
22
- const key = file.replace(".schema.json", "");
23
- // Load schema from file
24
- let schema = require(`${path}/${file}`);
25
- // Load into `schema` object
26
- schemas[key] = schema;
27
- });
1
+ const schemas = require("./schemas.json");
28
2
 
29
3
  // Exports
30
4
  exports.schemas = schemas;
31
5
 
32
- // console.log(schemas);
6
+ console.log(schemas);
@@ -831,6 +831,9 @@
831
831
  ]
832
832
  }
833
833
  },
834
+ "dynamicDefaults": {
835
+ "id": "uuid"
836
+ },
834
837
  "required": [
835
838
  "action",
836
839
  "keys"
@@ -692,6 +692,9 @@
692
692
  ]
693
693
  }
694
694
  },
695
+ "dynamicDefaults": {
696
+ "id": "uuid"
697
+ },
695
698
  "required": [
696
699
  "action",
697
700
  "keys"
@@ -35,6 +35,9 @@
35
35
  ]
36
36
  }
37
37
  },
38
+ "dynamicDefaults": {
39
+ "id": "uuid"
40
+ },
38
41
  "required": [
39
42
  "action",
40
43
  "keys"