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

@ahooksjs/use-table

Package Overview
Dependencies
Maintainers
5
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ahooksjs/use-table - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6-alpha.0

1

es/config.d.ts

@@ -13,2 +13,3 @@ export declare const PREPARE = "prepare";

export declare const methods: {
ON_REFRESH_DEPS: string;
ON_MOUNT: string;

@@ -15,0 +16,0 @@ ON_PAGE_SIZE_CHANGE: string;

@@ -13,2 +13,3 @@ export var PREPARE = 'prepare';

export var methods = {
ON_REFRESH_DEPS: 'onRefreshDeps',
ON_MOUNT: 'onMount',

@@ -15,0 +16,0 @@ ON_PAGE_SIZE_CHANGE: 'onPageSizeChange',

@@ -123,3 +123,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }

});
useUpdateEffect(query, refreshDeps);
useUpdateEffect(function () {
query({}, {
queryFrom: methods.ON_REFRESH_DEPS
});
}, refreshDeps);
var $tableProps = tableQueryProps.tableProps,

@@ -126,0 +130,0 @@ getParams = tableQueryProps.getParams,

@@ -13,2 +13,3 @@ export declare const PREPARE = "prepare";

export declare const methods: {
ON_REFRESH_DEPS: string;
ON_MOUNT: string;

@@ -15,0 +16,0 @@ ON_PAGE_SIZE_CHANGE: string;

@@ -27,2 +27,3 @@ "use strict";

var methods = {
ON_REFRESH_DEPS: 'onRefreshDeps',
ON_MOUNT: 'onMount',

@@ -29,0 +30,0 @@ ON_PAGE_SIZE_CHANGE: 'onPageSizeChange',

@@ -182,3 +182,7 @@ "use strict";

});
(0, _use.useUpdateEffect)(query, refreshDeps);
(0, _use.useUpdateEffect)(function () {
query({}, {
queryFrom: _config.methods.ON_REFRESH_DEPS
});
}, refreshDeps);
var $tableProps = tableQueryProps.tableProps,

@@ -185,0 +189,0 @@ getParams = tableQueryProps.getParams,

6

package.json
{
"name": "@ahooksjs/use-table",
"version": "0.1.5",
"version": "0.1.6-alpha.0",
"scripts": {

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

"dependencies": {
"@ahooksjs/use-query-display": "^0.1.5"
"@ahooksjs/use-query-display": "^0.1.6-alpha.0"
},

@@ -25,3 +25,3 @@ "peerDependencies": {

],
"gitHead": "5588a1bfa933d355407b88318534b904bba1c33e"
"gitHead": "aeef4ed0e64e22f8de7a7d5f0592c5ad775efc9e"
}
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