@jsondb-cloud/client 1.0.17 → 1.0.19
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/README.md +4 -4
- package/dist/{index.mjs → index.cjs} +42 -2
- package/dist/index.js +2 -42
- package/package.json +6 -5
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/README.md
CHANGED
|
@@ -153,10 +153,10 @@ Full documentation at [jsondb.cloud/docs](https://jsondb.cloud/docs).
|
|
|
153
153
|
|
|
154
154
|
| Package | Description |
|
|
155
155
|
|---------|-------------|
|
|
156
|
-
| [@jsondb-cloud/client](https://
|
|
157
|
-
| [@jsondb-cloud/mcp](https://
|
|
158
|
-
| [@jsondb-cloud/cli](https://
|
|
159
|
-
| [jsondb-cloud](https://
|
|
156
|
+
| [@jsondb-cloud/client](https://www.npmjs.com/package/@jsondb-cloud/client) | JavaScript/TypeScript SDK |
|
|
157
|
+
| [@jsondb-cloud/mcp](https://www.npmjs.com/package/@jsondb-cloud/mcp) | MCP server for AI agents |
|
|
158
|
+
| [@jsondb-cloud/cli](https://www.npmjs.com/package/@jsondb-cloud/cli) | CLI tool |
|
|
159
|
+
| [jsondb-cloud](https://pypi.org/project/jsondb-cloud/) (PyPI) | Python SDK |
|
|
160
160
|
|
|
161
161
|
## License
|
|
162
162
|
|
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
ChangeStream: () => ChangeStream,
|
|
24
|
+
Collection: () => Collection,
|
|
25
|
+
ConflictError: () => ConflictError,
|
|
26
|
+
DocumentTooLargeError: () => DocumentTooLargeError,
|
|
27
|
+
ForbiddenError: () => ForbiddenError,
|
|
28
|
+
JsonDB: () => JsonDB,
|
|
29
|
+
JsonDBError: () => JsonDBError,
|
|
30
|
+
NotFoundError: () => NotFoundError,
|
|
31
|
+
QueryBuilder: () => QueryBuilder,
|
|
32
|
+
QuotaExceededError: () => QuotaExceededError,
|
|
33
|
+
RateLimitError: () => RateLimitError,
|
|
34
|
+
ServerError: () => ServerError,
|
|
35
|
+
UnauthorizedError: () => UnauthorizedError,
|
|
36
|
+
ValidationError: () => ValidationError
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(index_exports);
|
|
39
|
+
|
|
1
40
|
// src/errors.ts
|
|
2
41
|
var JsonDBError = class extends Error {
|
|
3
42
|
constructor(message, code, status, details = {}) {
|
|
@@ -583,7 +622,8 @@ var JsonDB = class {
|
|
|
583
622
|
return data.data ?? data;
|
|
584
623
|
}
|
|
585
624
|
};
|
|
586
|
-
export
|
|
625
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
626
|
+
0 && (module.exports = {
|
|
587
627
|
ChangeStream,
|
|
588
628
|
Collection,
|
|
589
629
|
ConflictError,
|
|
@@ -598,4 +638,4 @@ export {
|
|
|
598
638
|
ServerError,
|
|
599
639
|
UnauthorizedError,
|
|
600
640
|
ValidationError
|
|
601
|
-
};
|
|
641
|
+
});
|
package/dist/index.js
CHANGED
|
@@ -1,42 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
ChangeStream: () => ChangeStream,
|
|
24
|
-
Collection: () => Collection,
|
|
25
|
-
ConflictError: () => ConflictError,
|
|
26
|
-
DocumentTooLargeError: () => DocumentTooLargeError,
|
|
27
|
-
ForbiddenError: () => ForbiddenError,
|
|
28
|
-
JsonDB: () => JsonDB,
|
|
29
|
-
JsonDBError: () => JsonDBError,
|
|
30
|
-
NotFoundError: () => NotFoundError,
|
|
31
|
-
QueryBuilder: () => QueryBuilder,
|
|
32
|
-
QuotaExceededError: () => QuotaExceededError,
|
|
33
|
-
RateLimitError: () => RateLimitError,
|
|
34
|
-
ServerError: () => ServerError,
|
|
35
|
-
UnauthorizedError: () => UnauthorizedError,
|
|
36
|
-
ValidationError: () => ValidationError
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(index_exports);
|
|
39
|
-
|
|
40
1
|
// src/errors.ts
|
|
41
2
|
var JsonDBError = class extends Error {
|
|
42
3
|
constructor(message, code, status, details = {}) {
|
|
@@ -622,8 +583,7 @@ var JsonDB = class {
|
|
|
622
583
|
return data.data ?? data;
|
|
623
584
|
}
|
|
624
585
|
};
|
|
625
|
-
|
|
626
|
-
0 && (module.exports = {
|
|
586
|
+
export {
|
|
627
587
|
ChangeStream,
|
|
628
588
|
Collection,
|
|
629
589
|
ConflictError,
|
|
@@ -638,4 +598,4 @@ var JsonDB = class {
|
|
|
638
598
|
ServerError,
|
|
639
599
|
UnauthorizedError,
|
|
640
600
|
ValidationError
|
|
641
|
-
}
|
|
601
|
+
};
|
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsondb-cloud/client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Official JavaScript/TypeScript SDK for jsondb.cloud",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
|
-
"module": "dist/index.
|
|
7
|
+
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
+
"type": "module",
|
|
19
20
|
"sideEffects": false,
|
|
20
21
|
"scripts": {
|
|
21
22
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
File without changes
|