@studiometa/js-toolkit 2.0.0-rc.1 → 2.0.0-rc.2

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.
@@ -27,7 +27,8 @@ function withFreezedOptions(BaseClass) {
27
27
  get $options() {
28
28
  Object.defineProperty(this, "$options", {
29
29
  value: Object.freeze({ ...super.$options }),
30
- enumerable: true
30
+ enumerable: true,
31
+ configurable: true
31
32
  });
32
33
  return this.$options;
33
34
  }
@@ -3,7 +3,8 @@ function withFreezedOptions(BaseClass) {
3
3
  get $options() {
4
4
  Object.defineProperty(this, "$options", {
5
5
  value: Object.freeze({ ...super.$options }),
6
- enumerable: true
6
+ enumerable: true,
7
+ configurable: true
7
8
  });
8
9
  return this.$options;
9
10
  }
@@ -33,7 +33,8 @@ var withVue2_default = (BaseClass, Vue) => {
33
33
  constructor(element) {
34
34
  super(element);
35
35
  __publicField(this, "$vue");
36
- const { vueConfig } = this.constructor;
36
+ var _a2;
37
+ const vueConfig = (_a2 = this.vueConfig) != null ? _a2 : this.constructor.vueConfig;
37
38
  if (!vueConfig) {
38
39
  throw new Error("[withVue] You must define a `vueConfig` object.");
39
40
  }
@@ -10,7 +10,8 @@ var withVue2_default = (BaseClass, Vue) => {
10
10
  constructor(element) {
11
11
  super(element);
12
12
  __publicField(this, "$vue");
13
- const { vueConfig } = this.constructor;
13
+ var _a2;
14
+ const vueConfig = (_a2 = this.vueConfig) != null ? _a2 : this.constructor.vueConfig;
14
15
  if (!vueConfig) {
15
16
  throw new Error("[withVue] You must define a `vueConfig` object.");
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studiometa/js-toolkit",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.2",
4
4
  "description": "A set of useful little bits of JavaScript to boost your project! 🚀",
5
5
  "publishConfig": {
6
6
  "access": "public"