@ai-ecoverse/slicc-browsers 1.7.2 → 1.7.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/README.md +19 -5
- package/guard-driver.mjs +5 -1
- package/guard-runner.mjs +146 -34
- package/guard-vectors.json +2711 -701
- package/package.json +2 -2
- package/schema/guard-vectors.schema.json +75 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-browsers",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
4
4
|
"description": "SLICC's shared browser catalog, JSON schemas and discovery conformance corpus",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"trust": "npx fledgling sync -y --skip-publish",
|
|
65
65
|
"trust:dry": "npx fledgling sync --dry-run -y --skip-publish",
|
|
66
66
|
"release": "semantic-release",
|
|
67
|
-
"test:guard": "node --test test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs && node scripts/test-guards.mjs",
|
|
67
|
+
"test:guard": "node --test test/integration/guard-fit.test.mjs test/integration/guard-chain.test.mjs test/integration/guard-validation.test.mjs test/integration/guard-liveness.test.mjs test/integration/guard-observations.test.mjs test/integration/guard-child-latency.test.mjs test/integration/guard-adoption.test.mjs && node scripts/test-guards.mjs",
|
|
68
68
|
"test:guard-target": "node --test test/integration/guard-runner.test.mjs",
|
|
69
69
|
"test:unit:guard": "node --experimental-test-coverage --test --test-coverage-include=guard-runner.mjs --test-coverage-include=fixture-server.mjs --test-coverage-lines=100 test/unit/guard-*.test.mjs"
|
|
70
70
|
},
|
|
@@ -145,6 +145,9 @@
|
|
|
145
145
|
},
|
|
146
146
|
"check": {
|
|
147
147
|
"$ref": "#/$defs/check"
|
|
148
|
+
},
|
|
149
|
+
"eitherWhen": {
|
|
150
|
+
"$ref": "#/$defs/check"
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
153
|
},
|
|
@@ -1081,6 +1084,32 @@
|
|
|
1081
1084
|
"const": "unguarded"
|
|
1082
1085
|
}
|
|
1083
1086
|
}
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
"type": "object",
|
|
1090
|
+
"additionalProperties": false,
|
|
1091
|
+
"required": ["history", "observer"],
|
|
1092
|
+
"properties": {
|
|
1093
|
+
"history": {
|
|
1094
|
+
"$ref": "#/$defs/blocked"
|
|
1095
|
+
},
|
|
1096
|
+
"observer": {
|
|
1097
|
+
"const": "unguarded"
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"type": "object",
|
|
1103
|
+
"additionalProperties": false,
|
|
1104
|
+
"required": ["frameBlocked", "observer"],
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"frameBlocked": {
|
|
1107
|
+
"$ref": "#/$defs/blocked"
|
|
1108
|
+
},
|
|
1109
|
+
"observer": {
|
|
1110
|
+
"const": "unguarded"
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1084
1113
|
}
|
|
1085
1114
|
]
|
|
1086
1115
|
},
|
|
@@ -1193,16 +1222,31 @@
|
|
|
1193
1222
|
"blocked": {
|
|
1194
1223
|
"type": "object",
|
|
1195
1224
|
"additionalProperties": false,
|
|
1196
|
-
"oneOf": [
|
|
1225
|
+
"oneOf": [
|
|
1226
|
+
{
|
|
1227
|
+
"required": ["url"]
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"required": ["anyOf"]
|
|
1231
|
+
}
|
|
1232
|
+
],
|
|
1197
1233
|
"properties": {
|
|
1198
|
-
"url": {
|
|
1234
|
+
"url": {
|
|
1235
|
+
"$ref": "#/$defs/url"
|
|
1236
|
+
},
|
|
1199
1237
|
"anyOf": {
|
|
1200
1238
|
"type": "array",
|
|
1201
1239
|
"minItems": 1,
|
|
1202
|
-
"items": {
|
|
1240
|
+
"items": {
|
|
1241
|
+
"$ref": "#/$defs/url"
|
|
1242
|
+
}
|
|
1203
1243
|
},
|
|
1204
|
-
"session": {
|
|
1205
|
-
|
|
1244
|
+
"session": {
|
|
1245
|
+
"enum": ["page", "child"]
|
|
1246
|
+
},
|
|
1247
|
+
"frame": {
|
|
1248
|
+
"type": "boolean"
|
|
1249
|
+
}
|
|
1206
1250
|
}
|
|
1207
1251
|
},
|
|
1208
1252
|
"liveCheck": {
|
|
@@ -1628,6 +1672,32 @@
|
|
|
1628
1672
|
"const": "unguarded"
|
|
1629
1673
|
}
|
|
1630
1674
|
}
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"type": "object",
|
|
1678
|
+
"additionalProperties": false,
|
|
1679
|
+
"required": ["history", "observer"],
|
|
1680
|
+
"properties": {
|
|
1681
|
+
"history": {
|
|
1682
|
+
"$ref": "#/$defs/blocked"
|
|
1683
|
+
},
|
|
1684
|
+
"observer": {
|
|
1685
|
+
"const": "unguarded"
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
"type": "object",
|
|
1691
|
+
"additionalProperties": false,
|
|
1692
|
+
"required": ["frameBlocked", "observer"],
|
|
1693
|
+
"properties": {
|
|
1694
|
+
"frameBlocked": {
|
|
1695
|
+
"$ref": "#/$defs/blocked"
|
|
1696
|
+
},
|
|
1697
|
+
"observer": {
|
|
1698
|
+
"const": "unguarded"
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1631
1701
|
}
|
|
1632
1702
|
],
|
|
1633
1703
|
"not": {
|