cloesce 0.0.5-unstable.8 → 0.0.5-unstable.9
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/dist/generator.wasm +0 -0
- package/dist/router/crud.js +3 -3
- package/package.json +1 -1
package/dist/generator.wasm
CHANGED
|
Binary file
|
package/dist/router/crud.js
CHANGED
|
@@ -14,13 +14,13 @@ export function proxyCrud(obj, ctor, env) {
|
|
|
14
14
|
return value.bind(target);
|
|
15
15
|
}
|
|
16
16
|
// Fallback to CRUD methods
|
|
17
|
-
if (method === "
|
|
17
|
+
if (method === "SAVE") {
|
|
18
18
|
return (body, ds) => upsert(ctor, body, ds, env);
|
|
19
19
|
}
|
|
20
|
-
if (method === "
|
|
20
|
+
if (method === "LIST") {
|
|
21
21
|
return (ds) => list(ctor, ds, env);
|
|
22
22
|
}
|
|
23
|
-
if (method === "
|
|
23
|
+
if (method === "GET") {
|
|
24
24
|
return (...args) => _get(ctor, args, env);
|
|
25
25
|
}
|
|
26
26
|
return value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloesce",
|
|
3
|
-
"version": "0.0.5-unstable.
|
|
3
|
+
"version": "0.0.5-unstable.9",
|
|
4
4
|
"description": "A tool to extract and compile TypeScript code into something wrangler can consume and deploy for D1 Databases and Cloudflare Workers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|