Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pinia

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinia - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

7

dist/pinia.common.js
/*!
* pinia v0.0.6
* pinia v0.0.7
* (c) 2020 Eduardo San Martin Morote

@@ -272,3 +272,3 @@ * @license MIT

if (!isServer) {
console.warn('`PiniaSsrPlugin` seems to be used in the browser bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr');
console.warn('`PiniaSsrPlugin` seems to be used in the client bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr');
return;

@@ -284,3 +284,4 @@ }

// @ts-ignore
setActiveReq(context.ssrContext.req);
if (context.ssrContext)
setActiveReq(context.ssrContext.req);
return setup(props, context);

@@ -287,0 +288,0 @@ };

/*!
* pinia v0.0.6
* pinia v0.0.7
* (c) 2020 Eduardo San Martin Morote

@@ -268,3 +268,3 @@ * @license MIT

if (!isServer) {
console.warn('`PiniaSsrPlugin` seems to be used in the browser bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr');
console.warn('`PiniaSsrPlugin` seems to be used in the client bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr');
return;

@@ -280,3 +280,4 @@ }

// @ts-ignore
setActiveReq(context.ssrContext.req);
if (context.ssrContext)
setActiveReq(context.ssrContext.req);
return setup(props, context);

@@ -283,0 +284,0 @@ };

/*!
* pinia v0.0.6
* pinia v0.0.7
* (c) 2020 Eduardo San Martin Morote

@@ -20,2 +20,2 @@ * @license MIT

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var i,u=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{__VUE_DEVTOOLS_GLOBAL_HOOK__:void 0}).__VUE_DEVTOOLS_GLOBAL_HOOK__;var a={},s=function(t){return t&&(a=t)},c=function(){return a},f=new WeakMap,p=new WeakMap;function v(t){p.set(c(),t)}function l(t){var e=f.get(t);if(!e)return{};var n={};return e.forEach((function(t){n[t.id]=t.state})),n}var d="undefined"!=typeof window;function y(i,u,a,f,p){void 0===u&&(u=function(){return{}}),void 0===a&&(a={}),void 0===f&&(f={});var v=t(p||u()),l=c(),d=!0,y=[];e((function(){return v.value}),(function(t){d&&y.forEach((function(e){e({storeName:i,type:"🧩 in place",payload:{}},t)}))}),{deep:!0,flush:"sync"});var h={id:i,_r:l,state:v.value,patch:function(t){d=!1,function t(e,n){for(var r in n){var i=n[r],u=e[r];o(u)&&o(i)?e[r]=t(u,i):e[r]=i}return e}(v.value,t),d=!0,y.forEach((function(e){e({storeName:i,type:"⤵️ patch",payload:t},v.value)}))},subscribe:function(t){return y.push(t),function(){var e=y.indexOf(t);e>-1&&y.splice(e,1)}},reset:function(){y=[],v.value=u()}},m={},_=function(t){m[t]=n((function(){return s(l),a[t](v.value,m)}))};for(var b in a)_(b);var g={},O=function(t){g[t]=function(){return s(l),f[t].apply(M,arguments)}};for(var w in f)O(w);var M=r(r(r({},h),m),g);return Object.defineProperty(M,"state",{get:function(){return v.value},set:function(t){d=!1,v.value=t,d=!0}}),M}function h(t){var e=t.id,n=t.state,o=t.getters,a=t.actions;return function(t){t&&s(t);var v=c(),l=f.get(v);l||f.set(v,l=new Map);var h=l.get(e);return h||(l.set(e,h=y(e,n,o,a,function(t){var e=p.get(c());return e&&e()[t]}(e))),d&&function(t){u&&(i||(i={_devtoolHook:u,_vm:{$options:{computed:{}}},_mutations:{},_modulesNamespaceMap:{},_modules:{get:function(t){return t in i._modulesNamespaceMap}},state:{},replaceState:function(){},registerModule:function(){},unregisterModule:function(){}},u.emit("vuex:init",i)),i.state[t.id]=t.state,i.registerModule(t.id,t),Object.defineProperty(i.state,t.id,{get:function(){return t.state},set:function(e){return t.state=e}}),i._modulesNamespaceMap[t.id+"/"]=!0,u.on("vuex:travel-to-state",(function(e){t.state=e[t.id]})),t.subscribe((function(e,n){i.state[t.id]=n,u.emit("vuex:mutation",r(r({},e),{type:"["+e.storeName+"] "+e.type}),i.state)})))}(h)),h}}var m=function(t){"undefined"==typeof window?t.mixin({beforeCreate:function(){var t=this.$options,e=t.setup,n=t.serverPrefetch;if(e&&(this.$options.setup=function(t,n){return s(n.ssrContext.req),e(t,n)}),n){for(var r=Array.isArray(n)?n.slice():[n],o=function(t){var e=r[t];r[t]=function(){return s(this.$ssrContext.req),e.call(this)}},i=0;i<r.length;i++)o(i);this.$options.serverPrefetch=r}}}):console.warn("`PiniaSsrPlugin` seems to be used in the browser bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr")};export{m as PiniaSsr,h as createStore,l as getRootState,s as setActiveReq,v as setStateProvider};
***************************************************************************** */var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function o(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var i,u=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{__VUE_DEVTOOLS_GLOBAL_HOOK__:void 0}).__VUE_DEVTOOLS_GLOBAL_HOOK__;var a={},s=function(t){return t&&(a=t)},c=function(){return a},f=new WeakMap,p=new WeakMap;function v(t){p.set(c(),t)}function l(t){var e=f.get(t);if(!e)return{};var n={};return e.forEach((function(t){n[t.id]=t.state})),n}var d="undefined"!=typeof window;function y(i,u,a,f,p){void 0===u&&(u=function(){return{}}),void 0===a&&(a={}),void 0===f&&(f={});var v=t(p||u()),l=c(),d=!0,y=[];e((function(){return v.value}),(function(t){d&&y.forEach((function(e){e({storeName:i,type:"🧩 in place",payload:{}},t)}))}),{deep:!0,flush:"sync"});var h={id:i,_r:l,state:v.value,patch:function(t){d=!1,function t(e,n){for(var r in n){var i=n[r],u=e[r];o(u)&&o(i)?e[r]=t(u,i):e[r]=i}return e}(v.value,t),d=!0,y.forEach((function(e){e({storeName:i,type:"⤵️ patch",payload:t},v.value)}))},subscribe:function(t){return y.push(t),function(){var e=y.indexOf(t);e>-1&&y.splice(e,1)}},reset:function(){y=[],v.value=u()}},m={},_=function(t){m[t]=n((function(){return s(l),a[t](v.value,m)}))};for(var g in a)_(g);var O={},b=function(t){O[t]=function(){return s(l),f[t].apply(x,arguments)}};for(var w in f)b(w);var x=r(r(r({},h),m),O);return Object.defineProperty(x,"state",{get:function(){return v.value},set:function(t){d=!1,v.value=t,d=!0}}),x}function h(t){var e=t.id,n=t.state,o=t.getters,a=t.actions;return function(t){t&&s(t);var v=c(),l=f.get(v);l||f.set(v,l=new Map);var h=l.get(e);return h||(l.set(e,h=y(e,n,o,a,function(t){var e=p.get(c());return e&&e()[t]}(e))),d&&function(t){u&&(i||(i={_devtoolHook:u,_vm:{$options:{computed:{}}},_mutations:{},_modulesNamespaceMap:{},_modules:{get:function(t){return t in i._modulesNamespaceMap}},state:{},replaceState:function(){},registerModule:function(){},unregisterModule:function(){}},u.emit("vuex:init",i)),i.state[t.id]=t.state,i.registerModule(t.id,t),Object.defineProperty(i.state,t.id,{get:function(){return t.state},set:function(e){return t.state=e}}),i._modulesNamespaceMap[t.id+"/"]=!0,u.on("vuex:travel-to-state",(function(e){t.state=e[t.id]})),t.subscribe((function(e,n){i.state[t.id]=n,u.emit("vuex:mutation",r(r({},e),{type:"["+e.storeName+"] "+e.type}),i.state)})))}(h)),h}}var m=function(t){"undefined"==typeof window?t.mixin({beforeCreate:function(){var t=this.$options,e=t.setup,n=t.serverPrefetch;if(e&&(this.$options.setup=function(t,n){return n.ssrContext&&s(n.ssrContext.req),e(t,n)}),n){for(var r=Array.isArray(n)?n.slice():[n],o=function(t){var e=r[t];r[t]=function(){return s(this.$ssrContext.req),e.call(this)}},i=0;i<r.length;i++)o(i);this.$options.serverPrefetch=r}}}):console.warn("`PiniaSsrPlugin` seems to be used in the client bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr")};export{m as PiniaSsr,h as createStore,l as getRootState,s as setActiveReq,v as setStateProvider};
/*!
* pinia v0.0.6
* pinia v0.0.7
* (c) 2020 Eduardo San Martin Morote

@@ -269,3 +269,3 @@ * @license MIT

if (!isServer) {
console.warn('`PiniaSsrPlugin` seems to be used in the browser bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr');
console.warn('`PiniaSsrPlugin` seems to be used in the client bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr');
return;

@@ -281,3 +281,4 @@ }

// @ts-ignore
setActiveReq(context.ssrContext.req);
if (context.ssrContext)
setActiveReq(context.ssrContext.req);
return setup(props, context);

@@ -284,0 +285,0 @@ };

/*!
* pinia v0.0.6
* pinia v0.0.7
* (c) 2020 Eduardo San Martin Morote

@@ -20,2 +20,2 @@ * @license MIT

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function r(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var o,i=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{__VUE_DEVTOOLS_GLOBAL_HOOK__:void 0}).__VUE_DEVTOOLS_GLOBAL_HOOK__;var u={},a=function(t){return t&&(u=t)},s=function(){return u},c=new WeakMap,f=new WeakMap;var p="undefined"!=typeof window;function v(t,o,i,u,c){void 0===o&&(o=function(){return{}}),void 0===i&&(i={}),void 0===u&&(u={});var f=e.ref(c||o()),p=s(),v=!0,d=[];e.watch((function(){return f.value}),(function(e){v&&d.forEach((function(n){n({storeName:t,type:"🧩 in place",payload:{}},e)}))}),{deep:!0,flush:"sync"});var l={id:t,_r:p,state:f.value,patch:function(e){v=!1,function t(e,n){for(var o in n){var i=n[o],u=e[o];r(u)&&r(i)?e[o]=t(u,i):e[o]=i}return e}(f.value,e),v=!0,d.forEach((function(n){n({storeName:t,type:"⤵️ patch",payload:e},f.value)}))},subscribe:function(t){return d.push(t),function(){var e=d.indexOf(t);e>-1&&d.splice(e,1)}},reset:function(){d=[],f.value=o()}},h={},y=function(t){h[t]=e.computed((function(){return a(p),i[t](f.value,h)}))};for(var _ in i)y(_);var m={},g=function(t){m[t]=function(){return a(p),u[t].apply(O,arguments)}};for(var b in u)g(b);var O=n(n(n({},l),h),m);return Object.defineProperty(O,"state",{get:function(){return f.value},set:function(t){v=!1,f.value=t,v=!0}}),O}return t.PiniaSsr=function(t){"undefined"==typeof window?t.mixin({beforeCreate:function(){var t=this.$options,e=t.setup,n=t.serverPrefetch;if(e&&(this.$options.setup=function(t,n){return a(n.ssrContext.req),e(t,n)}),n){for(var r=Array.isArray(n)?n.slice():[n],o=function(t){var e=r[t];r[t]=function(){return a(this.$ssrContext.req),e.call(this)}},i=0;i<r.length;i++)o(i);this.$options.serverPrefetch=r}}}):console.warn("`PiniaSsrPlugin` seems to be used in the browser bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr")},t.createStore=function(t){var e=t.id,r=t.state,u=t.getters,d=t.actions;return function(t){t&&a(t);var l=s(),h=c.get(l);h||c.set(l,h=new Map);var y=h.get(e);return y||(h.set(e,y=v(e,r,u,d,function(t){var e=f.get(s());return e&&e()[t]}(e))),p&&function(t){i&&(o||(o={_devtoolHook:i,_vm:{$options:{computed:{}}},_mutations:{},_modulesNamespaceMap:{},_modules:{get:function(t){return t in o._modulesNamespaceMap}},state:{},replaceState:function(){},registerModule:function(){},unregisterModule:function(){}},i.emit("vuex:init",o)),o.state[t.id]=t.state,o.registerModule(t.id,t),Object.defineProperty(o.state,t.id,{get:function(){return t.state},set:function(e){return t.state=e}}),o._modulesNamespaceMap[t.id+"/"]=!0,i.on("vuex:travel-to-state",(function(e){t.state=e[t.id]})),t.subscribe((function(e,r){o.state[t.id]=r,i.emit("vuex:mutation",n(n({},e),{type:"["+e.storeName+"] "+e.type}),o.state)})))}(y)),y}},t.getRootState=function(t){var e=c.get(t);if(!e)return{};var n={};return e.forEach((function(t){n[t.id]=t.state})),n},t.setActiveReq=a,t.setStateProvider=function(t){f.set(s(),t)},t}({},vueCompositionApi);
***************************************************************************** */var n=function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function r(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var o,i=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{__VUE_DEVTOOLS_GLOBAL_HOOK__:void 0}).__VUE_DEVTOOLS_GLOBAL_HOOK__;var u={},a=function(t){return t&&(u=t)},s=function(){return u},c=new WeakMap,f=new WeakMap;var p="undefined"!=typeof window;function v(t,o,i,u,c){void 0===o&&(o=function(){return{}}),void 0===i&&(i={}),void 0===u&&(u={});var f=e.ref(c||o()),p=s(),v=!0,l=[];e.watch((function(){return f.value}),(function(e){v&&l.forEach((function(n){n({storeName:t,type:"🧩 in place",payload:{}},e)}))}),{deep:!0,flush:"sync"});var d={id:t,_r:p,state:f.value,patch:function(e){v=!1,function t(e,n){for(var o in n){var i=n[o],u=e[o];r(u)&&r(i)?e[o]=t(u,i):e[o]=i}return e}(f.value,e),v=!0,l.forEach((function(n){n({storeName:t,type:"⤵️ patch",payload:e},f.value)}))},subscribe:function(t){return l.push(t),function(){var e=l.indexOf(t);e>-1&&l.splice(e,1)}},reset:function(){l=[],f.value=o()}},h={},y=function(t){h[t]=e.computed((function(){return a(p),i[t](f.value,h)}))};for(var _ in i)y(_);var m={},g=function(t){m[t]=function(){return a(p),u[t].apply(b,arguments)}};for(var O in u)g(O);var b=n(n(n({},d),h),m);return Object.defineProperty(b,"state",{get:function(){return f.value},set:function(t){v=!1,f.value=t,v=!0}}),b}return t.PiniaSsr=function(t){"undefined"==typeof window?t.mixin({beforeCreate:function(){var t=this.$options,e=t.setup,n=t.serverPrefetch;if(e&&(this.$options.setup=function(t,n){return n.ssrContext&&a(n.ssrContext.req),e(t,n)}),n){for(var r=Array.isArray(n)?n.slice():[n],o=function(t){var e=r[t];r[t]=function(){return a(this.$ssrContext.req),e.call(this)}},i=0;i<r.length;i++)o(i);this.$options.serverPrefetch=r}}}):console.warn("`PiniaSsrPlugin` seems to be used in the client bundle. You should only call it on the server entry: https://github.com/posva/pinia#raw-vue-ssr")},t.createStore=function(t){var e=t.id,r=t.state,u=t.getters,l=t.actions;return function(t){t&&a(t);var d=s(),h=c.get(d);h||c.set(d,h=new Map);var y=h.get(e);return y||(h.set(e,y=v(e,r,u,l,function(t){var e=f.get(s());return e&&e()[t]}(e))),p&&function(t){i&&(o||(o={_devtoolHook:i,_vm:{$options:{computed:{}}},_mutations:{},_modulesNamespaceMap:{},_modules:{get:function(t){return t in o._modulesNamespaceMap}},state:{},replaceState:function(){},registerModule:function(){},unregisterModule:function(){}},i.emit("vuex:init",o)),o.state[t.id]=t.state,o.registerModule(t.id,t),Object.defineProperty(o.state,t.id,{get:function(){return t.state},set:function(e){return t.state=e}}),o._modulesNamespaceMap[t.id+"/"]=!0,i.on("vuex:travel-to-state",(function(e){t.state=e[t.id]})),t.subscribe((function(e,r){o.state[t.id]=r,i.emit("vuex:mutation",n(n({},e),{type:"["+e.storeName+"] "+e.type}),o.state)})))}(y)),y}},t.getRootState=function(t){var e=c.get(t);if(!e)return{};var n={};return e.forEach((function(t){n[t.id]=t.state})),n},t.setActiveReq=a,t.setStateProvider=function(t){f.set(s(),t)},t}({},vueCompositionApi);
{
"name": "pinia",
"version": "0.0.6",
"version": "0.0.7",
"description": "Some awesome description",

@@ -38,9 +38,9 @@ "main": "dist/pinia.common.js",

"devDependencies": {
"@nuxt/types": "^0.7.0",
"@nuxt/types": "^2.13.0",
"@rollup/plugin-alias": "^3.0.0",
"@rollup/plugin-replace": "^2.2.1",
"@types/jest": "^25.1.3",
"@types/jest": "^26.0.0",
"@typescript-eslint/eslint-plugin": "^2.20.0",
"@typescript-eslint/parser": "^2.20.0",
"@vue/composition-api": "^0.5.0",
"@vue/composition-api": "^0.6.3",
"codecov": "^3.6.1",

@@ -51,2 +51,3 @@ "eslint": "^6.4.0",

"jest": "^25.1.0",
"jest-mock-warn": "^1.1.0",
"pascalcase": "^1.0.0",

@@ -61,3 +62,3 @@ "prettier": "^1.18.2",

"ts-jest": "^25.2.1",
"tsd": "^0.11.0",
"tsd": "^0.13.1",
"typescript": "^3.8.2",

@@ -64,0 +65,0 @@ "vue": "^2.6.11",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc