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

rest-hooks

Package Overview
Dependencies
Maintainers
1
Versions
328
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-hooks - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

lib/connect/hooks.js

@@ -38,3 +38,3 @@ import { useContext, useMemo, useEffect } from 'react';

};
}, [params]);
}, [Model.url(params)]);
}

@@ -67,2 +67,2 @@ /*

*/
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25uZWN0L2hvb2tzLnRzIl0sIm5hbWVzIjpbInVzZUNvbnRleHQiLCJ1c2VNZW1vIiwidXNlRWZmZWN0IiwiU3RhdGVDb250ZXh0IiwiRGlzcGF0Y2hDb250ZXh0Iiwic2VsZWN0UmVzb3VyY2UiLCJzZWxlY3RvciIsInBhcmFtcyIsInN0YXRlIiwicmVzb3VyY2UiLCJmZXRjaFJlc291cmNlIiwiTW9kZWwiLCJmZXRjaCIsInVzZVJlc291cmNlIl0sIm1hcHBpbmdzIjoiQUFBQSxTQUFTQSxVQUFULEVBQXFCQyxPQUFyQixFQUE4QkMsU0FBOUIsUUFBK0MsT0FBL0M7QUFHQSxTQUFTQyxZQUFULEVBQXVCQyxlQUF2QixRQUE4QyxXQUE5Qzs7QUFHQTs7Ozs7O0FBTUE7Ozs7OztBQU1BLE9BQU8sU0FBU0MsY0FBVCxDQUNMQyxRQURLLEVBRUxDLE1BRkssRUFHTDtBQUNBLE1BQU1DLEtBQUssR0FBR1IsVUFBVSxDQUFDRyxZQUFELENBQXhCO0FBQ0EsTUFBTU0sUUFBUSxHQUFHUixPQUFPLENBQUM7QUFBQSxXQUFNSyxRQUFRLENBQUNFLEtBQUQsRUFBUUQsTUFBUixDQUFkO0FBQUEsR0FBRCxFQUFnQyxDQUFDQyxLQUFELEVBQV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IG9uU3VibWl0PXsoZGF0YSkgPT4gY3JlYXRlKGRhdGEpfT48L2Zvcm0+XG59XG4qL1xuLypleHBvcnQgZnVuY3Rpb24gdXNlTXV0YXRlKG1vZGVsOiBNb2RlbFJlc291cmNlKTogTXV0YXRlRGlzcGF0Y2hlcnMge1xuXG59XG4qL1xuIl19
{
"name": "rest-hooks",
"version": "0.0.6",
"version": "0.0.7",
"description": "Easy react hooks for REST apis",

@@ -5,0 +5,0 @@ "sideEffects": false,

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