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 serializeQuery = require("./package-shared/utils/serialize-query");
import serializeCookies = require("./package-shared/utils/serialize-cookies"); import serializeCookies = require("./package-shared/utils/serialize-cookies");
import EJSON = require("./package-shared/utils/ejson");
import uploadImage = require("./utils/upload-image"); import uploadImage = require("./utils/upload-image");
import uploadFile = require("./utils/upload-file"); import uploadFile = require("./utils/upload-file");
import deleteFile = require("./utils/delete-file"); import deleteFile = require("./utils/delete-file");
@ -71,5 +72,6 @@ export declare namespace utils {
} }
export { serializeQuery }; export { serializeQuery };
export { serializeCookies }; export { serializeCookies };
export { EJSON };
} }
export { get, post, getSchema, datasquirelClient as client }; 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 trimSql = require("./package-shared/utils/trim-sql");
const serializeQuery = require("./package-shared/utils/serialize-query"); const serializeQuery = require("./package-shared/utils/serialize-query");
const serializeCookies = require("./package-shared/utils/serialize-cookies"); const serializeCookies = require("./package-shared/utils/serialize-cookies");
const EJSON = require("./package-shared/utils/ejson");
//////////////////////////////////////// ////////////////////////////////////////
//////////////////////////////////////// ////////////////////////////////////////
@ -98,6 +99,7 @@ const datasquirel = {
}, },
serializeQuery, serializeQuery,
serializeCookies, serializeCookies,
EJSON: EJSON,
}, },
}; };

View File

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