Updates
This commit is contained in:
parent
4750131758
commit
7e3bed4567
12
index.d.ts
vendored
12
index.d.ts
vendored
@ -31,11 +31,6 @@ export namespace sql {
|
||||
export { sqlDeleteGenerator };
|
||||
export { trimSql as trim };
|
||||
}
|
||||
import serializeQuery = require("./package-shared/utils/serialize-query");
|
||||
import serializeCookies = require("./package-shared/utils/serialize-cookies");
|
||||
import EJSON = require("./package-shared/utils/ejson");
|
||||
import numberfy = require("./package-shared/utils/numberfy");
|
||||
import slugify = require("./package-shared/utils/slugify");
|
||||
import uploadImage = require("./utils/upload-image");
|
||||
import uploadFile = require("./utils/upload-file");
|
||||
import deleteFile = require("./utils/delete-file");
|
||||
@ -56,7 +51,7 @@ import sqlInsertGenerator = require("./package-shared/functions/dsql/sql/sql-ins
|
||||
import sqlDeleteGenerator = require("./package-shared/functions/dsql/sql/sql-delete-generator");
|
||||
import trimSql = require("./package-shared/utils/trim-sql");
|
||||
export declare namespace utils {
|
||||
export namespace crypto {
|
||||
namespace crypto {
|
||||
let encrypt: ({ data, encryptionKey, encryptionSalt }: {
|
||||
data: string;
|
||||
encryptionKey?: string;
|
||||
@ -72,10 +67,5 @@ export declare namespace utils {
|
||||
encryptionKey?: string;
|
||||
}) => string;
|
||||
}
|
||||
export { serializeQuery };
|
||||
export { serializeCookies };
|
||||
export { EJSON };
|
||||
export { numberfy };
|
||||
export { slugify };
|
||||
}
|
||||
export { get, post, getSchema, datasquirelClient as client };
|
||||
|
5
index.js
5
index.js
@ -99,11 +99,6 @@ const datasquirel = {
|
||||
decrypt: require("./package-shared/functions/dsql/decrypt"),
|
||||
hash: require("./package-shared/functions/dsql/hashPassword"),
|
||||
},
|
||||
serializeQuery,
|
||||
serializeCookies,
|
||||
EJSON: EJSON,
|
||||
numberfy,
|
||||
slugify,
|
||||
},
|
||||
};
|
||||
|
||||
|
8
package-shared/utils/index.js
Normal file
8
package-shared/utils/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
// @ts-check
|
||||
|
||||
exports.numberfy = require("./numberfy");
|
||||
exports.slugify = require("./slugify");
|
||||
exports.serializeCookies = require("./serialize-cookies");
|
||||
exports.serializeQuery = require("./serialize-query");
|
||||
exports.trimSql = require("./trim-sql");
|
||||
exports.EJSON = require("./ejson");
|
11
package.json
11
package.json
@ -1,12 +1,21 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "3.0.0",
|
||||
"version": "3.0.1",
|
||||
"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"
|
||||
},
|
||||
"./dsql-utils": {
|
||||
"default": "./package-shared/utils/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",
|
||||
|
Loading…
Reference in New Issue
Block a user