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

@rest-hooks/endpoint

Package Overview
Dependencies
Maintainers
2
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rest-hooks/endpoint - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

8

CHANGELOG.md

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

## <small>0.7.3 (2021-01-06)</small>
* pkg: Use @babel/runtime @ 7.12 ([e631f6a](https://github.com/coinbase/rest-hooks/commit/e631f6a))
## <small>0.7.2 (2020-09-08)</small>

@@ -8,0 +16,0 @@

9

lib/endpoint.js
function runCompat(endpoint, options) {
endpoint.type = endpoint.sideEffect ? 'mutate' : 'read';
endpoint.options = Object.assign({}, options);
endpoint.options = { ...options
};
delete endpoint.options.key;

@@ -46,3 +47,5 @@ delete endpoint.options.schema;

runCompat(instance, Object.assign({}, this.options, options));
runCompat(instance, { ...this.options,
...options
});
return instance;

@@ -54,2 +57,2 @@ }

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9lbmRwb2ludC5qcyJdLCJuYW1lcyI6WyJydW5Db21wYXQiLCJlbmRwb2ludCIsIm9wdGlvbnMiLCJ0eXBlIiwic2lkZUVmZmVjdCIsImtleSIsInNjaGVtYSIsImZldGNoIiwiZ2V0RmV0Y2hLZXkiLCJPYmplY3QiLCJrZXlzIiwibGVuZ3RoIiwidW5kZWZpbmVkIiwiRW5kcG9pbnQiLCJGdW5jdGlvbiIsImNvbnN0cnVjdG9yIiwiZmV0Y2hGdW5jdGlvbiIsInBhcmFtcyIsImFzc2lnbiIsIm5hbWUiLCJKU09OIiwic3RyaW5naWZ5IiwiZXh0ZW5kIiwiRSIsInByb3RvdHlwZSIsImluc3RhbmNlIl0sIm1hcHBpbmdzIjoiQUFBQSxTQUFTQSxTQUFULENBQW1CQyxRQUFuQixF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cbiAgICBydW5Db21wYXQodGhpcywgb3B0aW9ucyk7XG4gIH1cblxuICBrZXkocGFyYW1zKSB7XG4gICAgcmV0dXJuIGAke3RoaXMuZmV0Y2gubmFtZX0gJHtKU09OLnN0cmluZ2lmeShwYXJhbXMpfWA7XG4gIH1cblxuICBleHRlbmQob3B0aW9ucykge1xuICAgIC8vIG1ha2UgYSBjb25zdHJ1Y3Rvci9wcm90b3R5cGUgYmFzZWQgb2ZmIHRoaXNcbiAgICAvLyBleHRlbmQgZnJvbSBpdCBhbmQgaW5pdCB3aXRoIG9wdGlvbnMgc2VudFxuICAgIGNsYXNzIEUgZXh0ZW5kcyB0aGlzLmNvbnN0cnVjdG9yIHt9XG4gICAgT2JqZWN0LmFzc2lnbihFLnByb3RvdHlwZSwgdGhpcyk7XG4gICAgY29uc3QgaW5zdGFuY2UgPSBuZXcgRShvcHRpb25zLmZldGNoLCBvcHRpb25zKTtcblxuICAgIC8qKiBUaGUgZm9sbG93aW5nIGlzIGZvciBjb21wYXRpYmlsaXR5IHdpdGggRmV0Y2hTaGFwZSAqL1xuICAgIHJ1bkNvbXBhdChpbnN0YW5jZSwgeyAuLi50aGlzLm9wdGlvbnMsIC4uLm9wdGlvbnMgfSk7XG5cbiAgICByZXR1cm4gaW5zdGFuY2U7XG4gIH1cblxuICAvKiogVGhlIGZvbGxvd2luZyBpcyBmb3IgY29tcGF0aWJpbGl0eSB3aXRoIEZldGNoU2hhcGUgKi9cbiAgZ2V0RmV0Y2hLZXkgPSBwYXJhbXMgPT4ge1xuICAgIHJldHVybiB0aGlzLmtleShwYXJhbXMpO1xuICB9O1xufVxuIl19
{
"name": "@rest-hooks/endpoint",
"version": "0.7.2",
"version": "0.7.3",
"description": "Declarative Network Interface Definitions",

@@ -54,6 +54,6 @@ "sideEffects": false,

"dependencies": {
"@babel/runtime": "^7.7.2",
"@rest-hooks/normalizr": "^6.0.0-j.2"
"@babel/runtime": "^7.12.0",
"@rest-hooks/normalizr": "^6.0.0-k.0"
},
"gitHead": "5857d141be1e43df68b62e7f9c4225beb4dbf8af"
"gitHead": "3d62db99b47ac7e846cdbabba429b047fdb8d18a"
}
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