@reactables/forms 0.7.0-alpha.18 → 0.7.0-alpha.19

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.
@@ -42,6 +42,7 @@ export interface RxFormOptions extends EffectsAndSources {
42
42
  reducers?: CustomReducers<unknown>;
43
43
  providers?: RxFormProviders;
44
44
  name?: string;
45
+ debug?: boolean;
45
46
  }
46
47
  type NormalizerFunction<T> = (value: T) => T;
47
48
  export interface RxFormProviders {
package/dist/index.js CHANGED
@@ -1086,7 +1086,7 @@ var createReactable = function (initialBaseState, options, initialFormState) {
1086
1086
  validators: __assign(__assign({}, Validators), (_b = options.providers) === null || _b === void 0 ? void 0 : _b.validators),
1087
1087
  asyncValidators: __assign({}, (_c = options.providers) === null || _c === void 0 ? void 0 : _c.asyncValidators)
1088
1088
  };
1089
- var reducers = options.reducers, otherOptions = __rest(options, ["reducers"]);
1089
+ var reducers = options.reducers, debug = options.debug, name = options.name, otherOptions = __rest(options, ["reducers", "debug", "name"]);
1090
1090
  var customReducers = Object.entries(reducers || {}).reduce(function (acc, _a) {
1091
1091
  var _b;
1092
1092
  var key = _a[0], _case = _a[1];
@@ -1114,6 +1114,8 @@ var createReactable = function (initialBaseState, options, initialFormState) {
1114
1114
  var state$ = core.RxBuilder({
1115
1115
  sources: [buildHub2Source(hub1State$).pipe(operators.skip(initialFormState ? 1 : 0))],
1116
1116
  initialState: initialFormState || null,
1117
+ name: name,
1118
+ debug: debug,
1117
1119
  reducers: {
1118
1120
  formChange: formChange,
1119
1121
  asyncValidation: {
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "author": "David Lai",
15
15
  "license": "ISC",
16
16
  "dependencies": {
17
- "@reactables/core": "^0.7.0-alpha.18",
17
+ "@reactables/core": "^0.7.0-alpha.19",
18
18
  "lodash.isequal": "^4.5.0"
19
19
  },
20
20
  "peerDependencies": {
@@ -23,5 +23,5 @@
23
23
  "devDependencies": {
24
24
  "lodash.clonedeep": "^4.5.0"
25
25
  },
26
- "version": "0.7.0-alpha.18"
26
+ "version": "0.7.0-alpha.19"
27
27
  }