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

vue-async-computed

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-async-computed - npm Package Compare versions

Comparing version 3.8.1 to 3.8.2

2

package.json
{
"name": "vue-async-computed",
"version": "3.8.1",
"version": "3.8.2",
"description": "Async computed properties for Vue",

@@ -5,0 +5,0 @@ "main": "dist/vue-async-computed.js",

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

import Vue, { PluginFunction } from "vue";
import Vue, { PluginFunction } from 'vue';

@@ -15,4 +15,5 @@ export interface IAsyncComputedOptions {

type AsyncComputedGetter<T> = () => Promise<T>;
interface IAsyncComputedValue<T> {
export type AsyncComputedGetter<T> = () => Promise<T>;
export interface IAsyncComputedValue<T> {
default?: T | (() => T);

@@ -25,14 +26,8 @@ get: AsyncComputedGetter<T>;

interface AsyncComputedObject {
export interface AsyncComputedObject {
[K: string]: AsyncComputedGetter<any> | IAsyncComputedValue<any>;
}
declare module "vue/types/options" {
interface ComponentOptions<V extends Vue> {
asyncComputed?: AsyncComputedObject;
}
}
interface IASyncComputedState {
state: "updating" | "success" | "error";
export interface IASyncComputedState {
state: 'updating' | 'success' | 'error';
updating: boolean;

@@ -45,6 +40,12 @@ success: boolean;

declare module "vue/types/vue" {
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
asyncComputed?: AsyncComputedObject;
}
}
declare module 'vue/types/vue' {
interface Vue {
$asyncComputed: { [K: string]: IASyncComputedState };
$asyncComputed: {[K: string]: IASyncComputedState};
}
}
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