@rdyl/node-mysql 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/meta.js +2 -1
  2. package/package.json +1 -1
package/dist/meta.js CHANGED
@@ -101,7 +101,8 @@ var MysqlDbSchema = /** @class */ (function () {
101
101
  MysqlDbSchema.prototype.$formJson = function (json) {
102
102
  var _this = this;
103
103
  Object.keys(json).forEach(function (k) {
104
- if (Object.prototype.hasOwnProperty.call(_this, k)) {
104
+ if (Object.prototype.hasOwnProperty.call(_this, k) ||
105
+ _this.$mapFields.includes(k)) {
105
106
  // @ts-ignore
106
107
  _this[k] = json[k];
107
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/node-mysql",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",