ac-sanitizer 4.0.2 → 4.0.4

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,28 @@
1
+ <a name="4.0.4"></a>
2
+
3
+ ## [4.0.4](https://github.com/mmpro/ac-sanitizer/compare/v4.0.3..v4.0.4) (2023-09-29 09:27:21)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Package updates | MP | [a21a7f6bd4b6d2cb6cd67ba3899bf02858d70c41](https://github.com/mmpro/ac-sanitizer/commit/a21a7f6bd4b6d2cb6cd67ba3899bf02858d70c41)
9
+ Package updates
10
+ Related issues: [undefined/undefined#master](undefined/browse/master)
11
+ <a name="4.0.3"></a>
12
+
13
+ ## [4.0.3](https://github.com/mmpro/ac-sanitizer/compare/v4.0.2..v4.0.3) (2023-07-21 19:16:42)
14
+
15
+
16
+ ### Bug Fix
17
+
18
+ * **App:** Package updated | MP | [32ba9d92894d54a4575a0765bafbe5f1be6f8edf](https://github.com/mmpro/ac-sanitizer/commit/32ba9d92894d54a4575a0765bafbe5f1be6f8edf)
19
+ Packages updated
20
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
21
+ ### Tests
22
+
23
+ * **App:** Fixed test | MP | [05e575d49d3254bc6191a1b3e950bb7f89e07fd0](https://github.com/mmpro/ac-sanitizer/commit/05e575d49d3254bc6191a1b3e950bb7f89e07fd0)
24
+ Fixed nested object test
25
+ Related issues: [/issues#undefined](https://github.com//issues/undefined)
1
26
  <a name="4.0.2"></a>
2
27
 
3
28
  ## [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,27 +4,27 @@
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.4",
8
8
  "homepage": "https://www.admiralcloud.com",
9
9
  "dependencies": {
10
- "ac-countrylist": "^1.0.7",
10
+ "ac-countrylist": "^1.0.8",
11
11
  "ac-file-extensions": "^2.0.5",
12
- "ac-ip": "^3.0.1",
13
- "chai": "^4.3.7",
14
- "date-and-time": "^3.0.2",
12
+ "ac-ip": "^3.1.0",
13
+ "chai": "^4.3.10",
14
+ "date-and-time": "^3.0.3",
15
15
  "hashids": "^2.3.0",
16
16
  "lodash": "^4.17.21",
17
- "validator": "^13.9.0"
17
+ "validator": "^13.11.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.1",
22
+ "eslint": "^8.50.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) => {