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 { sqlDeleteGenerator };
|
||||||
export { trimSql as trim };
|
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 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");
|
||||||
@ -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 sqlDeleteGenerator = require("./package-shared/functions/dsql/sql/sql-delete-generator");
|
||||||
import trimSql = require("./package-shared/utils/trim-sql");
|
import trimSql = require("./package-shared/utils/trim-sql");
|
||||||
export declare namespace utils {
|
export declare namespace utils {
|
||||||
export namespace crypto {
|
namespace crypto {
|
||||||
let encrypt: ({ data, encryptionKey, encryptionSalt }: {
|
let encrypt: ({ data, encryptionKey, encryptionSalt }: {
|
||||||
data: string;
|
data: string;
|
||||||
encryptionKey?: string;
|
encryptionKey?: string;
|
||||||
@ -72,10 +67,5 @@ export declare namespace utils {
|
|||||||
encryptionKey?: string;
|
encryptionKey?: string;
|
||||||
}) => string;
|
}) => string;
|
||||||
}
|
}
|
||||||
export { serializeQuery };
|
|
||||||
export { serializeCookies };
|
|
||||||
export { EJSON };
|
|
||||||
export { numberfy };
|
|
||||||
export { slugify };
|
|
||||||
}
|
}
|
||||||
export { get, post, getSchema, datasquirelClient as client };
|
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"),
|
decrypt: require("./package-shared/functions/dsql/decrypt"),
|
||||||
hash: require("./package-shared/functions/dsql/hashPassword"),
|
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",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "3.0.0",
|
"version": "3.0.1",
|
||||||
"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"
|
||||||
|
},
|
||||||
|
"./dsql-utils": {
|
||||||
|
"default": "./package-shared/utils/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",
|
||||||
|
Loading…
Reference in New Issue
Block a user