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

@aboutbits/react-toolbox

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aboutbits/react-toolbox - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

dist/async-data/AsyncView.d.ts
import React from 'react';
declare type LoadingFunction = () => React.ReactElement<any, any> | null;
declare type SuccessFunction<Data> = (data: Data) => React.ReactElement<any, any> | null;
declare type ErrorFunction<Error> = (error: Error) => React.ReactElement<any, any> | null;
declare type Props<Data, Error> = {
type LoadingFunction = () => React.ReactElement<any, any> | null;
type SuccessFunction<Data> = (data: Data) => React.ReactElement<any, any> | null;
type ErrorFunction<Error> = (error: Error) => React.ReactElement<any, any> | null;
type Props<Data, Error> = {
data?: Data;

@@ -7,0 +7,0 @@ error?: Error;

@@ -20,3 +20,3 @@ "use strict";

case index_1.AsyncState.FINISHED_WITH_ERROR:
return (0, util_1.isFunction)(renderError) ? renderError(error) : react_1.default.createElement(react_1.default.Fragment, null, renderError);
return (0, util_1.isFunction)(renderError) ? (renderError(error)) : (react_1.default.createElement(react_1.default.Fragment, null, renderError));
}

@@ -23,0 +23,0 @@ };

import React from 'react';
declare type LoadingFunction = () => React.ReactElement<any, any> | null;
declare type SuccessFunction<Data> = (data: Data) => React.ReactElement<any, any> | null;
declare type ErrorFunction<Error> = (error: Error) => React.ReactElement<any, any> | null;
declare type Props<Data, Error> = {
type LoadingFunction = () => React.ReactElement<any, any> | null;
type SuccessFunction<Data> = (data: Data) => React.ReactElement<any, any> | null;
type ErrorFunction<Error> = (error: Error) => React.ReactElement<any, any> | null;
type Props<Data, Error> = {
data?: Data;

@@ -7,0 +7,0 @@ error?: Error;

@@ -14,5 +14,5 @@ import React from 'react';

case AsyncState.FINISHED_WITH_ERROR:
return isFunction(renderError) ? renderError(error) : React.createElement(React.Fragment, null, renderError);
return isFunction(renderError) ? (renderError(error)) : (React.createElement(React.Fragment, null, renderError));
}
};
export { AsyncView };
import React from 'react';
export declare type LocationContextValue = {
export type LocationContextValue = {
location: GeolocationPosition | null;

@@ -9,2 +9,3 @@ };

delay: number;
children?: React.ReactNode;
}>;

@@ -1,4 +0,4 @@

declare type Callback = () => unknown | void;
declare type Delay = number | null;
type Callback = () => unknown | void;
type Delay = number | null;
declare const useInterval: (callback: Callback, delay: Delay) => void;
export { useInterval };
import React from 'react';
export declare type LocationContextValue = {
export type LocationContextValue = {
location: GeolocationPosition | null;

@@ -9,2 +9,3 @@ };

delay: number;
children?: React.ReactNode;
}>;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -1,4 +0,4 @@

declare type Callback = () => unknown | void;
declare type Delay = number | null;
type Callback = () => unknown | void;
type Delay = number | null;
declare const useInterval: (callback: Callback, delay: Delay) => void;
export { useInterval };
{
"name": "@aboutbits/react-toolbox",
"version": "0.1.2",
"version": "0.1.3",
"description": "Tools for React",

@@ -8,2 +8,6 @@ "main": "dist/index.js",

"sideEffects": false,
"engines": {
"npm": "^8",
"node": "^16"
},
"scripts": {

@@ -15,2 +19,3 @@ "build": "npm run build:node && npm run build:esm",

"lint:fix": "npm run lint -- --fix",
"typecheck": "tsc --noEmit",
"test": "jest --verbose --passWithNoTests",

@@ -47,26 +52,27 @@ "prepare": "npm run build",

"devDependencies": {
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^11.2.6",
"@testing-library/react-hooks": "^5.1.1",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.4.0",
"@types/css-mediaquery": "^0.1.1",
"@types/jest": "^26.0.22",
"@types/react": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"@types/jest": "^28.1.3",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.30.0",
"@typescript-eslint/parser": "^5.30.0",
"css-mediaquery": "^0.1.2",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.3.4",
"eslint-plugin-prettier": "^3.3.1",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"ts-jest": "^26.5.4",
"typescript": "^4.2.4"
"eslint": "^8.18.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-prettier": "^4.1.0",
"jest": "^28.1.1",
"jest-environment-jsdom": "^28.1.1",
"prettier": "^2.7.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"ts-jest": "^28.0.5",
"typescript": "^4.7.4"
},
"peerDependencies": {
"react": "^16.0.0 || ^17.0.0"
"react": "^16.0.0 || ^17.0.0 || ^18.0.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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