as-model 0.4.2 → 0.4.3

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/dist/index.js CHANGED
@@ -1306,6 +1306,9 @@ function createStore(modelLike) {
1306
1306
  });
1307
1307
  });
1308
1308
  },
1309
+ getConfiguration: function getConfiguration() {
1310
+ return updater.config;
1311
+ },
1309
1312
  update: function update(args) {
1310
1313
  var updateArgs = args !== null && args !== void 0 ? args : {};
1311
1314
  if (updateArgs.key) {
@@ -117,6 +117,9 @@ function createStore(modelLike, config = {}) {
117
117
  return __spreadProps(__spreadValues({}, u), { config: nextUpdaterConfig });
118
118
  });
119
119
  },
120
+ getConfiguration() {
121
+ return updater.config;
122
+ },
120
123
  update(args) {
121
124
  const updateArgs = args != null ? args : {};
122
125
  if (updateArgs.key) {
package/index.d.ts CHANGED
@@ -110,7 +110,8 @@ export declare interface Store<
110
110
  state?: PickState<M>;
111
111
  silence?: boolean;
112
112
  }) => void;
113
- config(customizedConfig: Config);
113
+ config: (customizedConfig: Config) => void;
114
+ getConfiguration: () => Config | undefined;
114
115
  destroy: () => void;
115
116
  payload: <P>(
116
117
  callback?: (payload: P | undefined) => P | undefined
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "as-model",
4
- "version": "0.4.2",
4
+ "version": "0.4.3",
5
5
  "description": "This is a model state management tool",
6
6
  "license": "MIT",
7
7
  "author": "Jimmy.Harding",