diff --git a/index.d.ts b/index.d.ts index ce26c7c..f409129 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 }; diff --git a/index.js b/index.js index fb4fb77..7c7cb2f 100644 --- a/index.js +++ b/index.js @@ -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, }, }; diff --git a/package.json b/package.json index ae28ea5..09f4161 100644 --- a/package.json +++ b/package.json @@ -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",