@thingd/sdk 0.84.6 → 0.86.0
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/rest/server.d.ts.map +1 -1
- package/dist/rest/server.js +2 -1
- package/dist/thingd.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/rest/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA0C3C,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/rest/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA0C3C,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAkiBf"}
|
package/dist/rest/server.js
CHANGED
|
@@ -501,7 +501,8 @@ export async function handleRestRequest(db, req, res, pathname) {
|
|
|
501
501
|
sendError(res, 404, "not_found", `No route for ${method} ${pathname}`);
|
|
502
502
|
}
|
|
503
503
|
catch (err) {
|
|
504
|
-
|
|
504
|
+
const error = err instanceof Error ? err.message : String(err);
|
|
505
|
+
process.stderr.write(`${JSON.stringify({ level: "error", event: "rest_request_failed", method, path: pathname, error })}\n`);
|
|
505
506
|
sendError(res, 500, "internal_error", "An internal error occurred");
|
|
506
507
|
}
|
|
507
508
|
}
|
package/dist/thingd.js
CHANGED
|
@@ -330,7 +330,8 @@ async function openStore(path, options) {
|
|
|
330
330
|
if (options.encryption) {
|
|
331
331
|
throw new Error("Encryption options require the native persistent driver");
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
process.emitWarning("The native thingd driver is unavailable; using the temporary in-memory store. " +
|
|
334
|
+
'Data will not persist. Build "@thingd/native" or install it to enable native persistence.', { code: "THINGD_NATIVE_DRIVER_UNAVAILABLE" });
|
|
334
335
|
}
|
|
335
336
|
return new InMemoryThingStore();
|
|
336
337
|
}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thingd/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.86.0",
|
|
4
4
|
"description": "A fast object-first data engine for applications and AI agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Sayan Mohsin",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"zod": "^4.4.3"
|
|
72
72
|
},
|
|
73
73
|
"optionalDependencies": {
|
|
74
|
-
"@thingd/native": "^0.
|
|
74
|
+
"@thingd/native": "^0.86.0"
|
|
75
75
|
},
|
|
76
76
|
"scripts": {
|
|
77
77
|
"build": "tsc -p tsconfig.json",
|