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 1.0.20 to 1.0.21

3

dist/namespaced.js
import { computed } from '@vue/composition-api';
import { computedGetter, getAction, getMutation, getStoreFromInstance, useMapping } from './util';
function computedState(store, namespace, prop) {
return computed(() => store.state[namespace][prop]);
let module = namespace.split('/').reduce((module, key) => module[key], store.state);
return computed(() => module[prop]);
}

@@ -6,0 +7,0 @@ export function useNamespacedState(storeOrNamespace, namespaceOrMap, map) {

{
"name": "vuex-composition-helpers",
"version": "1.0.20",
"version": "1.0.21",
"description": "Helpers to use Vuex store form Vue Composition API",

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

@@ -8,3 +8,4 @@ import {computed} from '@vue/composition-api';

function computedState(store: any, namespace: string, prop: string) {
return computed(() => store.state[namespace][prop])
let module = namespace.split('/').reduce((module, key) => module[key], store.state)
return computed(() => module[prop])
}

@@ -11,0 +12,0 @@

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