@histoire/vendors 0.9.6 → 0.10.0
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/client/b-pinia.js
CHANGED
|
@@ -3,7 +3,7 @@ import { s as setupDevtoolsPlugin } from './index2.js';
|
|
|
3
3
|
import { y as getCurrentInstance, z as inject, A as toRaw, B as watch, C as unref, D as markRaw, E as effectScope, u as ref, G as isRef, H as isReactive, I as onUnmounted, J as toRefs, K as computed, b as nextTick, L as reactive, M as toRef } from './vue.runtime.esm-bundler.js';
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
|
-
* pinia v2.0.
|
|
6
|
+
* pinia v2.0.18
|
|
7
7
|
* (c) 2022 Eduardo San Martin Morote
|
|
8
8
|
* @license MIT
|
|
9
9
|
*/
|
|
@@ -990,8 +990,8 @@ function createPinia() {
|
|
|
990
990
|
});
|
|
991
991
|
// pinia devtools rely on dev only features so they cannot be forced unless
|
|
992
992
|
// the dev build of Vue is used
|
|
993
|
-
// We also don't need devtools in test mode
|
|
994
|
-
if ((process.env.NODE_ENV !== 'production') && IS_CLIENT && !(process.env.NODE_ENV === 'test')) {
|
|
993
|
+
// We also don't need devtools in test mode or anywhere where Proxy isn't supported (like IE)
|
|
994
|
+
if ((process.env.NODE_ENV !== 'production') && IS_CLIENT && !(process.env.NODE_ENV === 'test') && typeof Proxy !== 'undefined') {
|
|
995
995
|
pinia.use(devtoolsPlugin);
|
|
996
996
|
}
|
|
997
997
|
return pinia;
|
|
@@ -681,7 +681,7 @@ export declare interface _StoreOnActionListenerContext<Store, ActionName extends
|
|
|
681
681
|
after: (callback: A extends Record<ActionName, _Method> ? (resolvedReturn: _Awaited<ReturnType<A[ActionName]>>) => void : () => void) => void;
|
|
682
682
|
/**
|
|
683
683
|
* Sets up a hook if the action fails. Return `false` to catch the error and
|
|
684
|
-
* stop it
|
|
684
|
+
* stop it from propagating.
|
|
685
685
|
*/
|
|
686
686
|
onError: (callback: (error: unknown) => void) => void;
|
|
687
687
|
}
|