New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@front10/utils

Package Overview
Dependencies
Maintainers
5
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@front10/utils - npm Package Compare versions

Comparing version 0.93.0 to 0.94.0

dist/front10-utils.cjs.d.ts

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

# [0.94.0](https://gitlab.com/front10-dev/front10-helpers/compare/v0.93.0...v0.94.0) (2021-02-15)
### Features
* Add Lightbox Container ([71c86e1](https://gitlab.com/front10-dev/front10-helpers/commit/71c86e13707cd8e901ca1758fb30cf2b19512d2b))
* Add new skeletons ([e9db67d](https://gitlab.com/front10-dev/front10-helpers/commit/e9db67ddc9c11111fd26541f15c7f232722f3430))
# [0.93.0](https://gitlab.com/front10-dev/front10-helpers/compare/v0.92.1...v0.93.0) (2021-02-05)

@@ -8,0 +20,0 @@

2

dist/declarations/src/dataSources.d.ts

@@ -22,3 +22,3 @@ export declare function isPromise(result: Promise<unknown> | unknown): result is Promise<unknown>;

};
export declare function useDataSource<Props extends object, Result>({ dataSource, pageSize, props, }: UseDataSourceProps<Props, Result>): import("react-query").InfiniteQueryResult<DataSet<Result>, unknown>;
export declare function useDataSource<Props extends object, Result>({ dataSource, pageSize, props, }: UseDataSourceProps<Props, Result>): import("react-query").InfiniteQueryObserverResult<DataSet<Result>, unknown>;
export {};
{
"name": "@front10/utils",
"version": "0.93.0",
"version": "0.94.0",
"description": "Helpers for front10 components",

@@ -11,3 +11,3 @@ "author": "Front10",

"homepage": "https://gitlab.com/front10-dev/front10-helpers#readme",
"main": "dist/utils.cjs.js",
"main": "dist/front10-utils.cjs.js",
"files": [

@@ -37,3 +37,3 @@ "dist",

},
"module": "dist/utils.esm.js",
"module": "dist/front10-utils.esm.js",
"source": "src/index.ts",

@@ -57,6 +57,6 @@ "devDependencies": {

"nanoid": "^2.0.0",
"react-query": "^2.25.2",
"react-query": "^3.8.3",
"stylis-rtl": "^1.0.1"
},
"gitHead": "7b2f32f89e4f1493a28ab4abeadf1d7e06251865"
"gitHead": "6c2f788a397ee877f62e3dd5eef159f5a3e7d338"
}

@@ -121,5 +121,5 @@ import * as React from "react";

const result = useInfiniteQuery(
return useInfiniteQuery(
key,
(_key, lastCursor: number = 0) => {
({ pageParam: lastCursor = 0 }) => {
const result = getData({

@@ -135,14 +135,9 @@ ...props,

{
getFetchMore: (lastPage) =>
getNextPageParam: (lastPage) =>
lastPage.hasNextPage ? lastPage.lastCursor : false,
staleTime: 86400000,
enabled: Boolean(pageSize),
onSuccess: () => fireEvent("data-loaded", window),
}
);
React.useEffect(() => {
if (result.status === "success") fireEvent("data-loaded", window);
}, [result.status]);
return result;
}
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