@jskit-ai/json-rest-api-core 0.1.1 → 0.1.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.descriptor.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/json-rest-api-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"hooked-api": "1.x.x",
|
|
13
13
|
"json-rest-api": "1.x.x",
|
|
14
|
-
"@jskit-ai/kernel": "0.1.
|
|
14
|
+
"@jskit-ai/kernel": "0.1.57"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -106,6 +106,9 @@ test("createJsonRestApiHost installs normalizeRecordId as the default resource i
|
|
|
106
106
|
});
|
|
107
107
|
|
|
108
108
|
assert.equal(api.vars.normalizeId, normalizeRecordId);
|
|
109
|
+
assert.equal(api.vars.normalizeId(7), "7");
|
|
110
|
+
assert.equal(api.vars.normalizeId(0), null);
|
|
111
|
+
assert.equal(api.vars.normalizeId(7.5), null);
|
|
109
112
|
});
|
|
110
113
|
|
|
111
114
|
test("shared query/document helpers build json-rest-api request shapes", () => {
|