Skip to content

Commit

Permalink
release v - 4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Aug 14, 2022
1 parent 671f66f commit 3b81c1e
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 313 deletions.
515 changes: 241 additions & 274 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsstore",
"version": "4.3.10",
"version": "4.4.0",
"description": "A complete IndexedDB wrapper with SQL like syntax.",
"main": "dist/npm.export.js",
"types": "dist/ts/main/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/common/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (process.env.NODE_ENV !== 'production') {
Object.assign(ERROR_TYPE, {
InvalidOrderQuery: 'invalid_order_query',
InvalidGroupQuery: 'invalid_group_query'
})
});
}

export enum WORKER_STATUS {
Expand Down
60 changes: 30 additions & 30 deletions src/common/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,34 +207,34 @@ export interface IDbInfo {
}

export interface IErrorType {
InvalidUpdateColumn: "invalid_update_column",
UndefinedColumn: "undefined_column",
UndefinedValue: "undefined_value",
UndefinedColumnName: "undefined_column_name",
UndefinedDbName: "undefined_database_name",
UndefinedColumnValue: "undefined_column_value",
NotArray: "not_array",
NoValueSupplied: "no_value_supplied",
ColumnNotExist: "column_not_exist",
EnableSearchOff: "enable_search_off",
InvalidOp: "invalid_operator",
NullValue: "null_value",
WrongDataType: "wrong_data_type",
TableNotExist: "table_not_exist",
DbNotExist: "db_not_exist",
ConnectionAborted: "connection_aborted",
ConnectionClosed: "connection_closed",
NotObject: "not_object",
InvalidConfig: "invalid_config",
DbBlocked: "Db_blocked",
IndexedDbNotSupported: "indexeddb_not_supported",
NullValueInWhere: "null_value_in_where",
InvalidJoinQuery: 'invalid_join_query',
InvalidOrderQuery: 'invalid_order_query',
InvalidQuery: 'invalid_query',
InvalidGroupQuery: 'invalid_group_query',
ImportScriptsFailed: 'import_scripts_failed',
MethodNotExist: 'method_not_exist',
Unknown: "unknown",
InvalidMiddleware: "invalid_middleware"
InvalidUpdateColumn: "invalid_update_column";
UndefinedColumn: "undefined_column";
UndefinedValue: "undefined_value";
UndefinedColumnName: "undefined_column_name";
UndefinedDbName: "undefined_database_name";
UndefinedColumnValue: "undefined_column_value";
NotArray: "not_array";
NoValueSupplied: "no_value_supplied";
ColumnNotExist: "column_not_exist";
EnableSearchOff: "enable_search_off";
InvalidOp: "invalid_operator";
NullValue: "null_value";
WrongDataType: "wrong_data_type";
TableNotExist: "table_not_exist";
DbNotExist: "db_not_exist";
ConnectionAborted: "connection_aborted";
ConnectionClosed: "connection_closed";
NotObject: "not_object";
InvalidConfig: "invalid_config";
DbBlocked: "Db_blocked";
IndexedDbNotSupported: "indexeddb_not_supported";
NullValueInWhere: "null_value_in_where";
InvalidJoinQuery: 'invalid_join_query';
InvalidOrderQuery: 'invalid_order_query';
InvalidQuery: 'invalid_query';
InvalidGroupQuery: 'invalid_group_query';
ImportScriptsFailed: 'import_scripts_failed';
MethodNotExist: 'method_not_exist';
Unknown: "unknown";
InvalidMiddleware: "invalid_middleware";
}
6 changes: 3 additions & 3 deletions src/worker/query_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ export class QueryManager {
const query = request.query;
const ctx = this;
const idbutil = ctx.util;
const callAPI = (api: typeof Select, cb?: () => Promise<any>) => {
const callAPI = (api: typeof Select, beforeExecute?: () => Promise<any>) => {
queryResult = new api(query, idbutil).
execute(cb);
}
execute(beforeExecute);
};
switch (request.name) {
case API.OpenDb:
cb();
Expand Down
6 changes: 3 additions & 3 deletions test/injector/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/injector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"file-loader": "^6.2.0",
"html-webpack-plugin": "^3.2.0",
"ts-loader": "^4.1.0",
"typescript": "^2.7.2",
"typescript": "^4.7.4",
"webpack": "^4.32.2",
"webpack-cli": "^3.3.2",
"webpack-dev-server": "^3.4.1"
Expand Down

0 comments on commit 3b81c1e

Please sign in to comment.