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

@brightleaf/react-hooks

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightleaf/react-hooks - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

12

lib/reducer.js

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

return { ...state,
loading: true
loading: true,
complete: false
};

@@ -18,3 +19,4 @@

return { ...state,
loading: true
loading: true,
complete: false
};

@@ -26,3 +28,4 @@

error: null,
loading: false
loading: false,
complete: true
};

@@ -34,3 +37,4 @@

error: action.payload.error,
loading: false
loading: false,
complete: true
};

@@ -37,0 +41,0 @@

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

makeRequest
} = (0, _useRequest.default)(url, {
data: [],
error: null,
loading: false
});
} = (0, _useRequest.default)(url);
const fullConfig = (0, _mergeDeep.mergeDeep)(defaultConfig, config);

@@ -56,0 +52,0 @@ /**

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

makeRequest
} = (0, _useRequest.default)(url, {
data: [],
error: null,
loading: false
});
} = (0, _useRequest.default)(url);
const fullConfig = (0, _mergeDeep.mergeDeep)(defaultConfig, config);

@@ -56,0 +52,0 @@ /**

@@ -47,3 +47,4 @@ "use strict";

error: null,
loading: false
loading: false,
complete: false
});

@@ -50,0 +51,0 @@ const fullConfig = (0, _mergeDeep.mergeDeep)(defaultConfig, config);

{
"name": "@brightleaf/react-hooks",
"version": "1.4.0",
"version": "1.5.0",
"description": "Useful react hooks",

@@ -5,0 +5,0 @@ "files": [

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