api-tuner 0.5.1 → 0.5.2
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/package.json +2 -2
- package/rules/curl-body.n3 +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "api-tuner",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
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",
|
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
|
{
|