This commit is contained in:
Benjamin Toby 2024-12-11 14:49:25 +01:00
parent 051c8816e9
commit 6f6759e74e
3 changed files with 5 additions and 7 deletions

2
index.d.ts vendored
View File

@ -33,6 +33,7 @@ export namespace sql {
}
import serializeQuery = require("./package-shared/utils/serialize-query");
import serializeCookies = require("./package-shared/utils/serialize-cookies");
import EJSON = require("./package-shared/utils/ejson");
import uploadImage = require("./utils/upload-image");
import uploadFile = require("./utils/upload-file");
import deleteFile = require("./utils/delete-file");
@ -71,5 +72,6 @@ export declare namespace utils {
}
export { serializeQuery };
export { serializeCookies };
export { EJSON };
}
export { get, post, getSchema, datasquirelClient as client };

View File

@ -33,6 +33,7 @@ const sqlDeleteGenerator = require("./package-shared/functions/dsql/sql/sql-dele
const trimSql = require("./package-shared/utils/trim-sql");
const serializeQuery = require("./package-shared/utils/serialize-query");
const serializeCookies = require("./package-shared/utils/serialize-cookies");
const EJSON = require("./package-shared/utils/ejson");
////////////////////////////////////////
////////////////////////////////////////
@ -98,6 +99,7 @@ const datasquirel = {
},
serializeQuery,
serializeCookies,
EJSON: EJSON,
},
};

View File

@ -1,18 +1,12 @@
{
"name": "@moduletrace/datasquirel",
"version": "2.9.7",
"version": "2.9.8",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"bin": {
"dsql-watch": "./engine/dsql.js",
"dsql-dump": "./engine/dump.js"
},
"exports": {
".": "./index.js",
"./client": {
"default": "./client/index.js"
}
},
"scripts": {
"delete-ts": "find . -name \"*.d.ts\" -type f -not -path \"./node_modules/*\" -delete",
"compile": "find . -name \"*.d.ts\" -type f -not -path \"./node_modules/*\" -delete && tsc --declaration --allowJs --emitDeclarationOnly --resolveJsonModule index.js",