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

vuex

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuex - npm Package Compare versions

Comparing version 2.0.0-rc.6 to 2.0.0

2

dist/logger.d.ts

@@ -6,3 +6,3 @@ /**

import { Payload, Plugin } from './types/index'
import { Payload, Plugin } from "../types/index";

@@ -9,0 +9,0 @@ export interface LoggerOption<S> {

/**
* vuex v2.0.0-rc.6
* vuex v2.0.0
* (c) 2016 Evan You

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

/**
* vuex v2.0.0-rc.6
* vuex v2.0.0
* (c) 2016 Evan You

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

{
"name": "vuex",
"version": "2.0.0-rc.6",
"version": "2.0.0",
"description": "state management for Vue.js",

@@ -20,5 +20,6 @@ "main": "dist/vuex.js",

"build:logger": "rollup -c build/rollup.logger.config.js",
"test": "eslint src && npm run test:unit && npm run test:e2e",
"test": "eslint src && npm run test:types && npm run test:unit && npm run test:e2e",
"test:unit": "rollup -c build/rollup.config.js && jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json",
"test:e2e": "node test/e2e/runner.js",
"test:types": "tsc -p types/test",
"release": "bash build/release.sh",

@@ -63,4 +64,5 @@ "docs": "cd docs && gitbook serve",

"todomvc-app-css": "^2.0.3",
"typescript": "^2.0.3",
"uglify-js": "^2.6.2",
"vue": "^2.0.0-beta.5",
"vue": "^2.0.0-rc.7",
"vue-loader": "^9.0.3",

@@ -67,0 +69,0 @@ "webpack": "^1.13.2",

@@ -0,1 +1,3 @@

import Vue = require("vue");
type Dictionary<T> = { [key: string]: T };

@@ -6,3 +8,3 @@

export function mapState <S>(
map: Dictionary<(this: vuejs.Vue, state: S, getters: any) => any>
map: Dictionary<(this: typeof Vue, state: S, getters: any) => any>
): Dictionary<() => any>;

@@ -9,0 +11,0 @@

@@ -0,1 +1,5 @@

import _Vue = require("vue");
import { WatchOptions } from "vue";
// augment typings of Vue.js
import "./vue";

@@ -17,3 +21,3 @@

subscribe<P extends Payload>(fn: (mutation: P, state: S) => any): () => void;
watch<T>(getter: (state: S) => T, cb: (value: T) => void, options?: WatchOption): void;
watch<T>(getter: (state: S) => T, cb: (value: T) => void, options?: WatchOptions): void;

@@ -34,3 +38,3 @@ registerModule<T>(path: string, module: Module<T, S>): void;

export declare function install(Vue: vuejs.VueStatic): void;
export declare function install(Vue: typeof _Vue): void;

@@ -47,3 +51,3 @@ export interface Dispatch {

export interface ActionInjectee<S, R> {
export interface ActionContext<S, R> {
dispatch: Dispatch;

@@ -75,3 +79,3 @@ commit: Commit;

export type Getter<S, R> = (state: S, getters: any, rootState: R) => any;
export type Action<S, R> = (injectee: ActionInjectee<S, R>, payload: any) => any;
export type Action<S, R> = (injectee: ActionContext<S, R>, payload: any) => any;
export type Mutation<S> = (state: S, payload: any) => any;

@@ -103,6 +107,1 @@ export type Plugin<S> = (store: Store<S>) => any;

}
export interface WatchOption {
deep?: boolean;
immediate?: boolean;
}

@@ -5,14 +5,15 @@ /**

import { Store } from './index'
import Vue = require("vue");
import { Store } from "./index";
declare global {
namespace vuejs {
interface ComponentOption {
store?: Store<any>;
}
declare module "vue/types/options" {
interface ComponentOptions<V extends Vue> {
store?: Store<any>;
}
}
interface Vue {
$store?: Store<any>;
}
declare module "vue/types/vue" {
interface Vue {
$store: Store<any>;
}
}
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