Skip to content

Commit

Permalink
[Release] 0.36.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Mar 4, 2020
1 parent f90d0f2 commit 25b458b
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 41 deletions.
37 changes: 24 additions & 13 deletions dist/vuex-orm.common.js
Expand Up @@ -5423,21 +5423,32 @@ var Database = /** @class */ (function () {
};
/**
* Create a new model that binds the database.
*
* Transpiled classes cannot extend native classes. Implemented a workaround
* until Babel releases a fix (https://github.com/babel/babel/issues/9367).
*/
Database.prototype.createBindingModel = function (model) {
var database = this;
var c = /** @class */ (function (_super) {
__extends(class_1, _super);
function class_1() {
return _super !== null && _super.apply(this, arguments) || this;
}
class_1.store = function () {
return database.store;
};
return class_1;
}(model));
Object.defineProperty(c, 'name', { get: function () { return model.name; } });
return c;
var _this = this;
var proxy;
try {
proxy = new Function('model', "\n 'use strict';\n return class " + model.name + " extends model {}\n ")(model);
}
catch (_a) {
/* istanbul ignore next: rollback (mostly <= IE10) */
proxy = /** @class */ (function (_super) {
__extends(proxy, _super);
function proxy() {
return _super !== null && _super.apply(this, arguments) || this;
}
return proxy;
}(model));
/* istanbul ignore next: allocate model name */
Object.defineProperty(proxy, 'name', { get: function () { return model.name; } });
}
Object.defineProperty(proxy, 'store', {
value: function () { return _this.store; }
});
return proxy;
};
/**
* Create Vuex Module from the registered entities, and register to
Expand Down
37 changes: 24 additions & 13 deletions dist/vuex-orm.esm.js
Expand Up @@ -5421,21 +5421,32 @@ var Database = /** @class */ (function () {
};
/**
* Create a new model that binds the database.
*
* Transpiled classes cannot extend native classes. Implemented a workaround
* until Babel releases a fix (https://github.com/babel/babel/issues/9367).
*/
Database.prototype.createBindingModel = function (model) {
var database = this;
var c = /** @class */ (function (_super) {
__extends(class_1, _super);
function class_1() {
return _super !== null && _super.apply(this, arguments) || this;
}
class_1.store = function () {
return database.store;
};
return class_1;
}(model));
Object.defineProperty(c, 'name', { get: function () { return model.name; } });
return c;
var _this = this;
var proxy;
try {
proxy = new Function('model', "\n 'use strict';\n return class " + model.name + " extends model {}\n ")(model);
}
catch (_a) {
/* istanbul ignore next: rollback (mostly <= IE10) */
proxy = /** @class */ (function (_super) {
__extends(proxy, _super);
function proxy() {
return _super !== null && _super.apply(this, arguments) || this;
}
return proxy;
}(model));
/* istanbul ignore next: allocate model name */
Object.defineProperty(proxy, 'name', { get: function () { return model.name; } });
}
Object.defineProperty(proxy, 'store', {
value: function () { return _this.store; }
});
return proxy;
};
/**
* Create Vuex Module from the registered entities, and register to
Expand Down
37 changes: 24 additions & 13 deletions dist/vuex-orm.js
Expand Up @@ -5427,21 +5427,32 @@
};
/**
* Create a new model that binds the database.
*
* Transpiled classes cannot extend native classes. Implemented a workaround
* until Babel releases a fix (https://github.com/babel/babel/issues/9367).
*/
Database.prototype.createBindingModel = function (model) {
var database = this;
var c = /** @class */ (function (_super) {
__extends(class_1, _super);
function class_1() {
return _super !== null && _super.apply(this, arguments) || this;
}
class_1.store = function () {
return database.store;
};
return class_1;
}(model));
Object.defineProperty(c, 'name', { get: function () { return model.name; } });
return c;
var _this = this;
var proxy;
try {
proxy = new Function('model', "\n 'use strict';\n return class " + model.name + " extends model {}\n ")(model);
}
catch (_a) {
/* istanbul ignore next: rollback (mostly <= IE10) */
proxy = /** @class */ (function (_super) {
__extends(proxy, _super);
function proxy() {
return _super !== null && _super.apply(this, arguments) || this;
}
return proxy;
}(model));
/* istanbul ignore next: allocate model name */
Object.defineProperty(proxy, 'name', { get: function () { return model.name; } });
}
Object.defineProperty(proxy, 'store', {
value: function () { return _this.store; }
});
return proxy;
};
/**
* Create Vuex Module from the registered entities, and register to
Expand Down
2 changes: 1 addition & 1 deletion dist/vuex-orm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@vuex-orm/core",
"version": "0.36.0",
"version": "0.36.1",
"description": "The Vuex plugin to enable Object-Relational Mapping access to the Vuex Store.",
"main": "dist/vuex-orm.common.js",
"module": "dist/vuex-orm.esm.js",
Expand Down

0 comments on commit 25b458b

Please sign in to comment.