@ahooksjs/use-filter-plugin
Advanced tools
Comparing version 0.2.0 to 0.2.1-alpha.0
import { TUseFilterPlugin } from './type'; | ||
export declare const FILTER_PLUGIN_SYMBOL: unique symbol; | ||
declare const useFilterPlugin: TUseFilterPlugin; | ||
export default useFilterPlugin; |
@@ -8,2 +8,3 @@ 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 { useRef } from 'react'; | ||
export var FILTER_PLUGIN_SYMBOL = Symbol.for('FILTER_PLUGIN_SYMBOL'); | ||
@@ -25,2 +26,3 @@ var propsToParams = function propsToParams(props) { | ||
return { | ||
pluginType: FILTER_PLUGIN_SYMBOL, | ||
middlewares: function middlewares(ctx, next) { | ||
@@ -27,0 +29,0 @@ var filterParams = propsToParams(filterRef.current); |
import { TUseFilterPlugin } from './type'; | ||
export declare const FILTER_PLUGIN_SYMBOL: unique symbol; | ||
declare const useFilterPlugin: TUseFilterPlugin; | ||
export default useFilterPlugin; |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = void 0; | ||
exports.default = exports.FILTER_PLUGIN_SYMBOL = void 0; | ||
@@ -17,2 +17,5 @@ var _react = require("react"); | ||
var FILTER_PLUGIN_SYMBOL = Symbol.for('FILTER_PLUGIN_SYMBOL'); | ||
exports.FILTER_PLUGIN_SYMBOL = FILTER_PLUGIN_SYMBOL; | ||
var propsToParams = function propsToParams(props) { | ||
@@ -33,2 +36,3 @@ return Object.keys(props).reduce(function (acc, key) { | ||
return { | ||
pluginType: FILTER_PLUGIN_SYMBOL, | ||
middlewares: function middlewares(ctx, next) { | ||
@@ -35,0 +39,0 @@ var filterParams = propsToParams(filterRef.current); |
{ | ||
"name": "@ahooksjs/use-filter-plugin", | ||
"version": "0.2.0", | ||
"version": "0.2.1-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.2.0" | ||
"@ahooksjs/use-table": "^0.2.1-alpha.0" | ||
}, | ||
@@ -25,3 +25,3 @@ "repository": { | ||
], | ||
"gitHead": "90c57bca1d938d47e9320bf143c0c7a1ab9459c0" | ||
"gitHead": "d455a0816b785b1ed9fdf50bf480412342a04f43" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7495
107