@xaendar/core 0.6.3 → 0.6.4

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.
@@ -94,7 +94,7 @@ function input(value, options) {
94
94
  const transformedValue = transform ? transform(newValue) : newValue;
95
95
  originalSet.call(signal, transformedValue);
96
96
  },
97
- get: signal.get
97
+ get: signal.get.bind(signal)
98
98
  });
99
99
  getter[INPUT_SIGNAL_INSTANCE_SYMBOL] = true;
100
100
  return getter;
@@ -291,7 +291,7 @@ function computed(value, options) {
291
291
  const getter = function() {
292
292
  return signal.get();
293
293
  };
294
- Object.assign(getter, { get: signal.get });
294
+ Object.assign(getter, { get: signal.get.bind(signal) });
295
295
  return getter;
296
296
  }
297
297
  //#endregion
@@ -394,8 +394,8 @@ function signal(value, options) {
394
394
  return signal.get();
395
395
  };
396
396
  Object.assign(getter, {
397
- set: signal.set,
398
- get: signal.get,
397
+ set: signal.set.bind(signal),
398
+ get: signal.get.bind(signal),
399
399
  update: (updater) => signal.set(updater(signal.get()))
400
400
  });
401
401
  return getter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xaendar/core",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "A library containing core utils such as webcomponent base classes and theming support",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@xaendar/signals": "0.6.3",
20
- "@xaendar/types": "0.6.3"
19
+ "@xaendar/signals": "0.6.4",
20
+ "@xaendar/types": "0.6.4"
21
21
  }
22
22
  }