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.5.3 to 0.5.4

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## [0.5.4](https://github.com/posva/pinia/compare/v0.5.3...v0.5.4) (2021-08-16)
### Bug Fixes
- **nuxt:** make `$nuxt` non enumerable ([df75778](https://github.com/posva/pinia/commit/df75778917ed1543a8be73d5bbfa32750f811ab2)), closes [#574](https://github.com/posva/pinia/issues/574)
### Features
- **nuxt:** resolve in mono repos ([4716b5e](https://github.com/posva/pinia/commit/4716b5ea0f335bd8a1d582c60e6ce7e49c6bca3e))
## [0.5.3](https://github.com/posva/pinia/compare/v0.5.2...v0.5.3) (2021-08-02)

@@ -2,0 +12,0 @@

2

dist/pinia.cjs.js
/*!
* pinia v0.5.3
* pinia v0.5.4
* (c) 2021 Eduardo San Martin Morote

@@ -4,0 +4,0 @@ * @license MIT

/*!
* pinia v0.5.3
* pinia v0.5.4
* (c) 2021 Eduardo San Martin Morote

@@ -4,0 +4,0 @@ * @license MIT

/*!
* pinia v0.5.3
* pinia v0.5.4
* (c) 2021 Eduardo San Martin Morote

@@ -4,0 +4,0 @@ * @license MIT

/*!
* pinia v0.5.3
* pinia v0.5.4
* (c) 2021 Eduardo San Martin Morote

@@ -4,0 +4,0 @@ * @license MIT

/*!
* pinia v0.5.3
* pinia v0.5.4
* (c) 2021 Eduardo San Martin Morote

@@ -4,0 +4,0 @@ * @license MIT

/*!
* pinia v0.5.3
* pinia v0.5.4
* (c) 2021 Eduardo San Martin Morote

@@ -4,0 +4,0 @@ * @license MIT

@@ -17,5 +17,8 @@ import path from 'path'

this.options.build.transpile = this.options.build.transpile || []
// Define pinia resolution to ensure plugins register global context successfully
this.options.alias['pinia'] =
this.options.alias['pinia'] || this.nuxt.resolver.resolveModule('pinia')
// transpile pinia if @vue/composition-api is transpiled because we must use the same instance
this.options.build.transpile = this.options.build.transpile || []
if (

@@ -22,0 +25,0 @@ !this.options.dev &&

@@ -23,4 +23,6 @@ // @ts-check

// we bypass warnings
// @ts-expect-error
pinia._p.push(() => ({ $nuxt: context }))
pinia._p.push(({ store }) => {
// non enumerable to avoid it being serialized or displayed in devtools
Object.defineProperty(store, '$nuxt', { value: context })
})

@@ -27,0 +29,0 @@ if (process.server) {

{
"name": "pinia",
"version": "0.5.3",
"version": "0.5.4",
"description": "Intuitive, type safe and flexible Store for Vue",

@@ -5,0 +5,0 @@ "main": "dist/pinia.cjs.js",

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