api-tuner 0.5.1 → 0.5.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/lib/summarise-results.js +1 -1
- package/package.json +12 -9
- package/rules/curl-body.n3 +3 -0
package/lib/summarise-results.js
CHANGED
|
@@ -9,7 +9,7 @@ export default async (resultStream) => {
|
|
|
9
9
|
const data = await rdf.dataset().import(rdf.formats.parsers.import('text/n3', resultStream, {
|
|
10
10
|
format: 'n3',
|
|
11
11
|
}));
|
|
12
|
-
const validationReport = validator.validate(data);
|
|
12
|
+
const validationReport = await validator.validate(data);
|
|
13
13
|
const testCases = rdf.clownface({ dataset: data })
|
|
14
14
|
.has(rdf.ns.rdf.type, rdf.ns.earl.TestCase)
|
|
15
15
|
.toArray();
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "api-tuner",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
8
|
-
"api-tuner": "
|
|
8
|
+
"api-tuner": "bin/tuner.sh"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"download-eye": "EYE_VERSION=11.16.4 ./lib/download-eye.js",
|
|
12
12
|
"postinstall": "([ -d eye ] || npm run download-eye) && eye/install.sh --prefix=eye",
|
|
13
13
|
"prepare": "husky",
|
|
14
14
|
"lint": "eslint . --quiet --ignore-path .gitignore",
|
|
15
|
-
"pre_test": "docker compose up -d",
|
|
15
|
+
"pre_test": "docker compose up -d && docker compose restart && npx wait-on http-get://localhost:1080/ping -t 10s",
|
|
16
16
|
"_test": "./bin/tuner.sh --base-iri http://localhost:1080/",
|
|
17
17
|
"test": "npm run _test -- tests/*.n3 tests/**/*.n3",
|
|
18
18
|
"prepack": "tsc",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@changesets/cli": "^2.29.7",
|
|
32
|
-
"@jeswr/pretty-turtle": "^1.
|
|
32
|
+
"@jeswr/pretty-turtle": "^1.8.2",
|
|
33
33
|
"@sindresorhus/merge-streams": "^4.0.0",
|
|
34
|
-
"@zazuko/env-node": "^
|
|
34
|
+
"@zazuko/env-node": "^3",
|
|
35
35
|
"commander": "^13.1.0",
|
|
36
36
|
"get-stream": "^9.0.1",
|
|
37
37
|
"is-absolute-url": "^4.0.1",
|
|
38
|
-
"jsonld": "^
|
|
39
|
-
"rdf-validate-shacl": "^0.5
|
|
38
|
+
"jsonld": "^9",
|
|
39
|
+
"rdf-validate-shacl": "^0.6.5",
|
|
40
40
|
"replacestream": "^4.0.3",
|
|
41
|
-
"tar": "^7.5.
|
|
41
|
+
"tar": "^7.5.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@rdfjs/types": "^
|
|
44
|
+
"@rdfjs/types": "^2",
|
|
45
45
|
"@tpluscode/eslint-config": "^0.5.0",
|
|
46
46
|
"@types/jsonld": "^1.5.15",
|
|
47
47
|
"@types/n3": "^1.24.2",
|
|
@@ -57,6 +57,9 @@
|
|
|
57
57
|
"tsx": "^4.19.3",
|
|
58
58
|
"typescript": "^5.8.3"
|
|
59
59
|
},
|
|
60
|
+
"repository": {
|
|
61
|
+
"url": "git+https://github.com/zazuko/api-tuner.git"
|
|
62
|
+
},
|
|
60
63
|
"lint-staged": {
|
|
61
64
|
"*.{js,ts}": [
|
|
62
65
|
"eslint --fix --quiet"
|
package/rules/curl-body.n3
CHANGED
|
@@ -35,6 +35,9 @@ prefix math: <http://www.w3.org/2000/10/swap/math#>
|
|
|
35
35
|
} <= {
|
|
36
36
|
?multipartBody!tuner:form!list:length math:greaterThan 0 .
|
|
37
37
|
|
|
38
|
+
({ ?multipartBody tuner:done true } false true) log:ifThenElseIn ?SCOPE .
|
|
39
|
+
true log:becomes { ?multipartBody tuner:done true } .
|
|
40
|
+
|
|
38
41
|
(
|
|
39
42
|
?formField
|
|
40
43
|
{
|