@awes-io/vue-mc 0.9.0 → 0.9.1

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.9.1](https://github.com/awes-io/client/compare/@awes-io/vue-mc@0.9.0...@awes-io/vue-mc@0.9.1) (2023-11-23)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **vue-mc:** provide context in boot method ([a4e72d0](https://github.com/awes-io/client/commit/a4e72d0e2205a5d5459c6affa653070521e3b3c9))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.9.0](https://github.com/awes-io/client/compare/@awes-io/vue-mc@0.8.0...@awes-io/vue-mc@0.9.0) (2023-11-23)
7
18
 
8
19
 
package/dist/index.esm.js CHANGED
@@ -221,20 +221,17 @@ var BaseCollection = /*#__PURE__*/function (_Collection) {
221
221
  var _super = _createSuper(BaseCollection);
222
222
 
223
223
  function BaseCollection() {
224
- var _this;
225
-
226
224
  _classCallCheck(this, BaseCollection);
227
225
 
228
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
229
- args[_key] = arguments[_key];
230
- }
231
-
232
- _this = _super.call.apply(_super, [this].concat(args));
233
- applyInjections(_assertThisInitialized(_this));
234
- return _this;
226
+ return _super.apply(this, arguments);
235
227
  }
236
228
 
237
229
  _createClass(BaseCollection, [{
230
+ key: "boot",
231
+ value: function boot() {
232
+ applyInjections(this);
233
+ }
234
+ }, {
238
235
  key: "createRequest",
239
236
  value: function createRequest(config) {
240
237
  return new Request(config);
@@ -250,20 +247,17 @@ var BaseModel = /*#__PURE__*/function (_Model) {
250
247
  var _super = _createSuper(BaseModel);
251
248
 
252
249
  function BaseModel() {
253
- var _this;
254
-
255
250
  _classCallCheck(this, BaseModel);
256
251
 
257
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
258
- args[_key] = arguments[_key];
259
- }
260
-
261
- _this = _super.call.apply(_super, [this].concat(args));
262
- applyInjections(_assertThisInitialized(_this));
263
- return _this;
252
+ return _super.apply(this, arguments);
264
253
  }
265
254
 
266
255
  _createClass(BaseModel, [{
256
+ key: "boot",
257
+ value: function boot() {
258
+ applyInjections(this);
259
+ }
260
+ }, {
267
261
  key: "createRequest",
268
262
  value: function createRequest(config) {
269
263
  return new Request(config);
package/dist/index.js CHANGED
@@ -227,20 +227,17 @@ var BaseCollection = /*#__PURE__*/function (_Collection) {
227
227
  var _super = _createSuper(BaseCollection);
228
228
 
229
229
  function BaseCollection() {
230
- var _this;
231
-
232
230
  _classCallCheck(this, BaseCollection);
233
231
 
234
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
235
- args[_key] = arguments[_key];
236
- }
237
-
238
- _this = _super.call.apply(_super, [this].concat(args));
239
- applyInjections(_assertThisInitialized(_this));
240
- return _this;
232
+ return _super.apply(this, arguments);
241
233
  }
242
234
 
243
235
  _createClass(BaseCollection, [{
236
+ key: "boot",
237
+ value: function boot() {
238
+ applyInjections(this);
239
+ }
240
+ }, {
244
241
  key: "createRequest",
245
242
  value: function createRequest(config) {
246
243
  return new Request(config);
@@ -256,20 +253,17 @@ var BaseModel = /*#__PURE__*/function (_Model) {
256
253
  var _super = _createSuper(BaseModel);
257
254
 
258
255
  function BaseModel() {
259
- var _this;
260
-
261
256
  _classCallCheck(this, BaseModel);
262
257
 
263
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
264
- args[_key] = arguments[_key];
265
- }
266
-
267
- _this = _super.call.apply(_super, [this].concat(args));
268
- applyInjections(_assertThisInitialized(_this));
269
- return _this;
258
+ return _super.apply(this, arguments);
270
259
  }
271
260
 
272
261
  _createClass(BaseModel, [{
262
+ key: "boot",
263
+ value: function boot() {
264
+ applyInjections(this);
265
+ }
266
+ }, {
273
267
  key: "createRequest",
274
268
  value: function createRequest(config) {
275
269
  return new Request(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/vue-mc",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Models and collections abstract layer.",
5
5
  "homepage": "https://awes.io",
6
6
  "bugs": {
@@ -41,5 +41,5 @@
41
41
  "vue-template-compiler": "2.7.14",
42
42
  "vue-server-renderer": "2.7.14"
43
43
  },
44
- "gitHead": "078158dae22db6592008e4fc37c34e08ccfeb618"
44
+ "gitHead": "eaba2dcbfcfee305062310878bd894338517e317"
45
45
  }
@@ -3,9 +3,7 @@ import { applyInjections } from '../injectable'
3
3
  import Request from './Request'
4
4
 
5
5
  class BaseCollection extends Collection {
6
- constructor(...args) {
7
- super(...args)
8
-
6
+ boot() {
9
7
  applyInjections(this)
10
8
  }
11
9
 
@@ -3,9 +3,7 @@ import { applyInjections } from '../injectable'
3
3
  import Request from './Request'
4
4
 
5
5
  class BaseModel extends Model {
6
- constructor(...args) {
7
- super(...args)
8
-
6
+ boot() {
9
7
  applyInjections(this)
10
8
  }
11
9