Skip to content

Commit

Permalink
release v - 3.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwalguptaofficial committed Nov 24, 2020
1 parent af4c9d8 commit 681c3d1
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 43 deletions.
2 changes: 1 addition & 1 deletion dist/jsstore.commonjs2.js

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

2 changes: 1 addition & 1 deletion dist/jsstore.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* @license :jsstore - V3.11.2 - 15/11/2020
* @license :jsstore - V3.11.3 - 24/11/2020
* https://github.com/ujjwalguptaofficial/JsStore
* Copyright (c) 2020 @Ujjwal Gupta; Licensed MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/jsstore.min.js

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

55 changes: 46 additions & 9 deletions dist/jsstore.worker.commonjs2.js

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

2 changes: 1 addition & 1 deletion dist/jsstore.worker.commonjs2.js.map

Large diffs are not rendered by default.

67 changes: 56 additions & 11 deletions dist/jsstore.worker.ie.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* @license :jsstore - V3.11.2 - 15/11/2020
* @license :jsstore - V3.11.3 - 24/11/2020
* https://github.com/ujjwalguptaofficial/JsStore
* Copyright (c) 2020 @Ujjwal Gupta; Licensed MIT
*/
Expand Down Expand Up @@ -2884,7 +2884,7 @@ function (module, __webpack_exports__, __webpack_require__) {
return InitDb;
}(base_db["a"
/* BaseDb */
]); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 2 modules
]); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 3 modules


var select_instance = __webpack_require__(30); // EXTERNAL MODULE: ./src/worker/business/count/instance.ts + 5 modules
Expand Down Expand Up @@ -6767,7 +6767,7 @@ function (module, __webpack_exports__, __webpack_require__) {
};

return Where;
}(regex_Regex); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 2 modules
}(regex_Regex); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 3 modules


var instance = __webpack_require__(30); // EXTERNAL MODULE: ./src/worker/business/query_helper.ts + 4 modules
Expand Down Expand Up @@ -7214,7 +7214,7 @@ function (module, __webpack_exports__, __webpack_require__) {
}(Regex); // EXTERNAL MODULE: ./src/common/enums.ts


var enums = __webpack_require__(0); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 2 modules
var enums = __webpack_require__(0); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 3 modules


var instance = __webpack_require__(30); // EXTERNAL MODULE: ./src/worker/business/query_helper.ts + 4 modules
Expand Down Expand Up @@ -7770,7 +7770,7 @@ function (module, __webpack_exports__, __webpack_require__) {
}(Regex); // EXTERNAL MODULE: ./src/common/enums.ts


var enums = __webpack_require__(0); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 2 modules
var enums = __webpack_require__(0); // EXTERNAL MODULE: ./src/worker/business/select/instance.ts + 3 modules


var instance = __webpack_require__(30); // EXTERNAL MODULE: ./src/worker/business/query_helper.ts + 4 modules
Expand Down Expand Up @@ -7981,7 +7981,8 @@ function (module, __webpack_exports__, __webpack_require__) {
new instance_Instance({
from: tableName,
where: query.where,
case: query.case
case: query.case,
flatten: query.flatten
}, function (results) {
_this.results = results.map(function (item) {
var _a;
Expand Down Expand Up @@ -8120,14 +8121,14 @@ function (module, __webpack_exports__, __webpack_require__) {
this.checkJoinQuery_(jointblInfo_1, query);

if (this.error != null) {
this.onJoinQueryFinished_();
return;
return this.onJoinQueryFinished_();
}

new instance_Instance({
from: query.with,
where: query.where,
case: query.case
case: query.case,
flatten: query.flatten
}, function (results) {
_this.jointables(query.type, jointblInfo_1, results);

Expand Down Expand Up @@ -8308,7 +8309,12 @@ function (module, __webpack_exports__, __webpack_require__) {
]); // EXTERNAL MODULE: ./src/worker/business/query_helper.ts + 4 modules


var query_helper = __webpack_require__(7); // EXTERNAL MODULE: ./src/worker/utils/is_array.ts
var query_helper = __webpack_require__(7); // CONCATENATED MODULE: ./src/worker/utils/get_keys.ts


var getKeys = function (value) {
return Object.keys(value);
}; // EXTERNAL MODULE: ./src/worker/utils/is_array.ts


var is_array = __webpack_require__(34); // CONCATENATED MODULE: ./src/worker/utils/is_object.ts
Expand Down Expand Up @@ -8346,6 +8352,20 @@ function (module, __webpack_exports__, __webpack_require__) {
};
}();

var instance_assign = undefined && undefined.__assign || function () {
instance_assign = Object.assign || function (t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];

for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}

return t;
};

return instance_assign.apply(this, arguments);
};

var __spreadArrays = undefined && undefined.__spreadArrays || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;

Expand All @@ -8364,6 +8384,31 @@ function (module, __webpack_exports__, __webpack_require__) {

_this.onTransactionCompleted_ = function () {
if (_this.error == null) {
if (_this.query.flatten) {
debugger;
var flattendData_1 = [];
var indexToDelete_1 = {};

_this.query.flatten.forEach(function (column) {
_this.results.forEach(function (data, i) {
data[column].forEach(function (item) {
var _a;

flattendData_1.push(instance_assign(instance_assign({}, data), (_a = {}, _a[column] = item, _a)));
});
indexToDelete_1[i] = true;
});
});

var itemsDeleted_1 = 0;
getKeys(indexToDelete_1).forEach(function (key) {
_this.results.splice(Number(key) - itemsDeleted_1, 1);

++itemsDeleted_1;
});
_this.results = _this.results.concat(flattendData_1);
}

_this.processOrderBy();

if (!_this.error) {
Expand Down Expand Up @@ -8591,7 +8636,7 @@ function (module, __webpack_exports__, __webpack_require__) {
this.isOr = false;
this.results = this.orInfo.results; // free or info memory

this.orInfo = undefined;
this.orInfo = null;
this.removeDuplicates();
this.onQueryFinished();
};
Expand Down
4 changes: 2 additions & 2 deletions dist/jsstore.worker.ie.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 681c3d1

Please sign in to comment.