as-model 0.2.2 → 0.2.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.
@@ -106,6 +106,9 @@ function createStore(modelLike, config = {}) {
106
106
  getInstance() {
107
107
  return extractInstance(updater, key.wrapper, propertiesCache);
108
108
  },
109
+ getStoreInstance() {
110
+ return extractInstance(updater, void 0, propertiesCache);
111
+ },
109
112
  update(args) {
110
113
  const updateArgs = args != null ? args : {};
111
114
  if (updateArgs.key) {
@@ -161,6 +161,9 @@ function extractInstance(updater, wrapper, cache, opts) {
161
161
  function generateInstance() {
162
162
  return proxiedInstance;
163
163
  }
164
+ if (wrapper == null) {
165
+ return proxiedInstance;
166
+ }
164
167
  const wrapped = wrapper(generateInstance);
165
168
  if (typeof wrapped === "object" && wrapped != null) {
166
169
  return cacheProperties(__spreadProps(__spreadValues({}, cache), { target: wrapped }), handleGetter)();