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

vuex-composition-helpers

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuex-composition-helpers - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

3

dist/global.js

@@ -6,2 +6,5 @@ import { computed } from 'vue';

}
export function useStore() {
return getStoreFromInstance();
}
export function useState(storeOrMap, map) {

@@ -8,0 +11,0 @@ let store = storeOrMap;

import { Store } from 'vuex/types';
import { ExtractGetterTypes, ExtractTypes, KnownKeys, RefTypes } from './util';
export declare function useStore<TState = any>(): Store<TState>;
export declare function useState<TState = any>(storeOrMap: Store<TState> | KnownKeys<TState>[], map?: KnownKeys<TState>[]): RefTypes<TState>;

@@ -4,0 +5,0 @@ export declare function useGetters<TGetters = any>(storeOrMap: Store<any> | KnownKeys<TGetters>[], map?: KnownKeys<TGetters>[]): ExtractGetterTypes<TGetters>;

42

package.json
{
"name": "vuex-composition-helpers",
"version": "2.0.0",
"version": "2.0.1",
"description": "Helpers to use Vuex store form Vue Composition API",

@@ -8,7 +8,7 @@ "author": "David Meir-Levy <davidmeirlevy@gmail.com>",

"keywords": [
"vue",
"vuex",
"composition-api",
"store",
"state management"
"vue",
"vuex",
"composition-api",
"store",
"state management"
],

@@ -19,27 +19,27 @@ "main": "src/index.ts",

"scripts": {
"prepublish": "npm run test && npx tsc --build tsconfig.json",
"test": "jest"
"prepublish": "npm run test && npx tsc --build tsconfig.json",
"test": "jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/greenpress/vuex-composition-helpers.git"
"type": "git",
"url": "git+https://github.com/greenpress/vuex-composition-helpers.git"
},
"bugs": {
"url": "https://github.com/greenpress/vuex-composition-helpers/issues"
"url": "https://github.com/greenpress/vuex-composition-helpers/issues"
},
"homepage": "https://github.com/greenpress/vuex-composition-helpers#readme",
"peerDependencies": {
"vuex": ">= 4.0.0",
"vue": ">= 3.0.5"
"vue": ">= 3.0.5",
"vuex": ">= 4.0.0"
},
"devDependencies": {
"@types/jest": "^25.2.1",
"@vue/compiler-sfc": "^3.0.5",
"@vue/test-utils": "^2.0.0-rc.0",
"jest": "^25.3.0",
"ts-jest": "^25.3.1",
"typescript": "^3.8.2",
"vue": "^3.0.5",
"vuex": "^4.0.0"
"@types/jest": "^25.2.1",
"@vue/compiler-sfc": "^3.0.5",
"@vue/test-utils": "^2.0.0-rc.0",
"jest": "^25.3.0",
"ts-jest": "^25.3.1",
"typescript": "^3.8.2",
"vue": "^3.0.5",
"vuex": "^4.0.0"
}
}

@@ -11,3 +11,3 @@ # vuex-composition-helpers

```shell
$ npm install vuex-composition-helpers
$ npm install vuex-composition-helpers@next
```

@@ -14,0 +14,0 @@

@@ -9,2 +9,6 @@ import {Store} from 'vuex/types';

export function useStore<TState = any>() {
return getStoreFromInstance() as Store<TState>
}
export function useState<TState = any>(storeOrMap: Store<TState> | KnownKeys<TState>[], map?: KnownKeys<TState>[]): RefTypes<TState> {

@@ -11,0 +15,0 @@ let store = storeOrMap;

Sorry, the diff of this file is not supported yet

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