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

@ahooksjs/use-async-default-plugin

Package Overview
Dependencies
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ahooksjs/use-async-default-plugin - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2-alpha.0

LICENSE

2

es/index.js

@@ -9,3 +9,2 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

import { FormPath } from '@formily/react';
import { methods } from '@ahooksjs/use-table';

@@ -41,2 +40,3 @@ var getValue = function getValue(data) {

var actions = ctx.actions,
methods = ctx.methods,
meta = ctx.meta;

@@ -43,0 +43,0 @@ var queryFrom = meta.queryFrom;

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

import { FormTableNormalPlugin } from '@ahooksjs/use-table';
import { TableNormalPlugin } from '@ahooksjs/use-table';
declare type TQuery = () => Promise<any>;

@@ -7,5 +7,5 @@ export interface IOptions {

isDefault?: boolean;
setDefaultValue?: () => void;
setDefaultValue?: (data: IEnum[], name: string) => any;
}
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => FormTableNormalPlugin;
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => TableNormalPlugin;
interface IEnum {

@@ -15,3 +15,3 @@ label: string;

}
export declare type IGetValue = (data: IEnum[], name?: string) => string;
export declare type IGetValue = (data: IEnum[], name: string) => string;
export {};

@@ -12,4 +12,2 @@ "use strict";

var _useTable = require("@ahooksjs/use-table");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }

@@ -50,6 +48,7 @@

var actions = ctx.actions,
methods = ctx.methods,
meta = ctx.meta;
var queryFrom = meta.queryFrom;
if (queryFrom === _useTable.methods.ON_MOUNT) {
if (queryFrom === methods.ON_MOUNT) {
var queries;

@@ -56,0 +55,0 @@ var fields;

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

import { FormTableNormalPlugin } from '@ahooksjs/use-table';
import { TableNormalPlugin } from '@ahooksjs/use-table';
declare type TQuery = () => Promise<any>;

@@ -7,5 +7,5 @@ export interface IOptions {

isDefault?: boolean;
setDefaultValue?: () => void;
setDefaultValue?: (data: IEnum[], name: string) => any;
}
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => FormTableNormalPlugin;
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => TableNormalPlugin;
interface IEnum {

@@ -15,3 +15,3 @@ label: string;

}
export declare type IGetValue = (data: IEnum[], name?: string) => string;
export declare type IGetValue = (data: IEnum[], name: string) => string;
export {};
{
"name": "@ahooksjs/use-async-default-plugin",
"version": "0.0.1",
"version": "0.0.2-alpha.0",
"scripts": {

@@ -13,3 +13,3 @@ "build:tsc": "tsc --project tsconfig.build.json --declarationDir ./lib && tsc --project tsconfig.build.json --declarationDir ./es"

"dependencies": {
"@ahooksjs/use-table": "^0.0.1"
"@ahooksjs/use-table": "^0.0.2-alpha.0"
},

@@ -20,3 +20,3 @@ "files": [

],
"gitHead": "0fd0bf5f6cef648840bf37b99f604865f3930493"
"gitHead": "ee471296d35000937cc6e268d5b16cb81107ea87"
}
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