@jay-framework/reactive 0.6.6 → 0.6.8

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/tracing.js +16 -10
  2. package/package.json +2 -2
package/dist/tracing.js CHANGED
@@ -1,16 +1,22 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
1
7
  import { Reactive, MeasureOfChange, setMkReactive } from "./index.js";
2
8
  class ReactiveTracer {
3
9
  constructor(flushToConsole = false) {
10
+ __publicField(this, "log", []);
11
+ __publicField(this, "getStates", []);
12
+ __publicField(this, "setStates", []);
13
+ __publicField(this, "scheduledReactions", []);
14
+ __publicField(this, "inReaction", -1);
15
+ __publicField(this, "batches", []);
16
+ __publicField(this, "reactionLogPosition", []);
17
+ __publicField(this, "ident", "");
18
+ __publicField(this, "settingSignalFromBatch", "");
4
19
  this.flushToConsole = flushToConsole;
5
- this.log = [];
6
- this.getStates = [];
7
- this.setStates = [];
8
- this.scheduledReactions = [];
9
- this.inReaction = -1;
10
- this.batches = [];
11
- this.reactionLogPosition = [];
12
- this.ident = "";
13
- this.settingSignalFromBatch = "";
14
20
  }
15
21
  logGetState(name) {
16
22
  if (this.inReaction > -1)
@@ -120,9 +126,9 @@ function formatReactionName(num) {
120
126
  class ReactiveWithTracking extends Reactive {
121
127
  constructor(name, reactiveTracer) {
122
128
  super();
129
+ __publicField(this, "stateIndex", 1);
123
130
  this.name = name;
124
131
  this.reactiveTracer = reactiveTracer;
125
- this.stateIndex = 1;
126
132
  }
127
133
  createSignal(value, measureOfChange = MeasureOfChange.FULL) {
128
134
  const stateName = this.name + this.stateIndex++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/reactive",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "test:watch": "vitest"
25
25
  },
26
26
  "devDependencies": {
27
- "@jay-framework/dev-environment": "^0.6.6",
27
+ "@jay-framework/dev-environment": "^0.6.8",
28
28
  "@types/node": "^20.11.5",
29
29
  "rimraf": "^5.0.5",
30
30
  "tsup": "^8.0.1",