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.1.1 to 1.1.2

2

dist/global.js

@@ -1,2 +0,2 @@

import { computed } from 'vue';
import { computed } from '@vue/composition-api';
import { computedGetter, getAction, getMutation, getStoreFromInstance, useMapping } from './util';

@@ -3,0 +3,0 @@ function computedState(store, prop) {

@@ -1,2 +0,2 @@

import { Ref } from 'vue';
import { Ref } from '@vue/composition-api';
declare type OmitFirstArg<F, TReturn> = F extends (x: any, ...args: infer P) => any ? (...args: P) => TReturn : never;

@@ -22,3 +22,3 @@ declare type InferType<T, TUnknown = any> = T extends (...args: any) => any ? OmitFirstArg<T, ReturnType<T>> : T extends unknown ? TUnknown : T;

};
export declare function computedGetter<T = any>(store: any, prop: string): import("vue").ComputedRef<T>;
export declare function computedGetter<T = any>(store: any, prop: string): import("@vue/composition-api").ComputedRef<T>;
export declare function getMutation(store: any, mutation: string): Function;

@@ -25,0 +25,0 @@ export declare function getAction(store: any, action: string): Function;

export declare function wrapStore(store: any): {
createNamespacedHelpers: (namespace?: string | undefined) => {
useState: (map?: never[] | undefined) => import("./util").RefTypes<unknown>;
useGetters: (map?: never[] | undefined) => import("./util").ExtractGetterTypes<unknown>;
useMutations: (map?: never[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
useActions: (map?: never[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
useState: (map?: unknown[] | undefined) => import("./util").RefTypes<unknown>;
useGetters: (map?: unknown[] | undefined) => import("./util").ExtractGetterTypes<unknown>;
useMutations: (map?: unknown[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
useActions: (map?: unknown[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
};
useActions: (namespace?: import("./util").Namespace, map?: never[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
useGetters: (namespace?: import("./util").Namespace, map?: never[] | undefined) => import("./util").ExtractGetterTypes<unknown>;
useMutations: (namespace?: import("./util").Namespace, map?: never[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
useState: (namespace?: import("./util").Namespace, map?: never[] | undefined) => import("./util").RefTypes<unknown>;
useActions: (namespace?: import("./util").Namespace, map?: unknown[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
useGetters: (namespace?: import("./util").Namespace, map?: unknown[] | undefined) => import("./util").ExtractGetterTypes<unknown>;
useMutations: (namespace?: import("./util").Namespace, map?: unknown[] | undefined) => import("./util").ExtractTypes<unknown, Function>;
useState: (namespace?: import("./util").Namespace, map?: unknown[] | undefined) => import("./util").RefTypes<unknown>;
};

@@ -1,2 +0,2 @@

import { computed, getCurrentInstance } from 'vue';
import { computed, getCurrentInstance } from '@vue/composition-api';
function runCB(cb, store, namespace, prop) {

@@ -3,0 +3,0 @@ if (cb.length === 3) { // choose which signature to pass to cb function

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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