ac-sanitizer 4.0.2 → 4.0.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ <a name="4.0.3"></a>
2
+
3
+ ## [4.0.3](https://github.com/mmpro/ac-sanitizer/compare/v4.0.2..v4.0.3) (2023-07-21 19:16:42)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Package updated | MP | [32ba9d92894d54a4575a0765bafbe5f1be6f8edf](https://github.com/mmpro/ac-sanitizer/commit/32ba9d92894d54a4575a0765bafbe5f1be6f8edf)
9
+ Packages updated
10
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
11
+ ### Tests
12
+
13
+ * **App:** Fixed test | MP | [05e575d49d3254bc6191a1b3e950bb7f89e07fd0](https://github.com/mmpro/ac-sanitizer/commit/05e575d49d3254bc6191a1b3e950bb7f89e07fd0)
14
+ Fixed nested object test
15
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
1
16
  <a name="4.0.2"></a>
2
17
 
3
18
  ## [4.0.2](https://github.com/mmpro/ac-sanitizer/compare/v4.0.1..v4.0.2) (2023-06-18 11:35:24)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Mark Poepping (https://www.admiralcloud.com)",
5
5
  "license": "MIT",
6
6
  "repository": "admiralcloud/ac-sanitizer",
7
- "version": "4.0.2",
7
+ "version": "4.0.3",
8
8
  "homepage": "https://www.admiralcloud.com",
9
9
  "dependencies": {
10
10
  "ac-countrylist": "^1.0.7",
@@ -17,14 +17,14 @@
17
17
  "validator": "^13.9.0"
18
18
  },
19
19
  "devDependencies": {
20
- "ac-semantic-release": "^0.4.1",
21
- "eslint": "^8.43.0",
22
- "mocha": "^10.2.0",
23
- "nyc": "^15.1.0"
20
+ "ac-semantic-release": "^0.4.2",
21
+ "c8": "^8.0.0",
22
+ "eslint": "^8.45.0",
23
+ "mocha": "^10.2.0"
24
24
  },
25
25
  "scripts": {
26
26
  "test": "mocha --reporter spec",
27
- "coverage": "nyc yarn run test"
27
+ "coverage": "./node_modules/c8/bin/c8.js yarn test"
28
28
  },
29
29
  "engines": {
30
30
  "node": ">=16.0.0"
@@ -199,6 +199,29 @@ module.exports = {
199
199
  }
200
200
  },
201
201
  },
202
+ {
203
+ name: "Object with complex nested properties",
204
+ type: "object",
205
+ properties: [
206
+ { field: "boo", type: "boolean" },
207
+ { field: "nested", type: "object", properties: [
208
+ { field: 'setId', type: 'boolean', required: false }
209
+ ] }
210
+ ],
211
+ value: {
212
+ boo: true,
213
+ enum: "blue",
214
+ nested: {
215
+ setId: false
216
+ }
217
+ },
218
+ expected: {
219
+ boo: true,
220
+ nested: {
221
+ setId: false
222
+ }
223
+ },
224
+ },
202
225
  ];
203
226
 
204
227
  _.forEach(baseTests, (test) => {