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 2.2.6 to 2.2.7

9

CHANGELOG.md

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

### [2.2.7](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@2.2.6...@rest-hooks/endpoint@2.2.7) (2022-05-30)
### 📦 Package
* Use @babel/runtime@^7.13.0 to use CJS/ESM exports support ([#2019](https://github.com/coinbase/rest-hooks/issues/2019)) ([78a22f2](https://github.com/coinbase/rest-hooks/commit/78a22f29f86527ac10eb2c9b031984e044226dce))
### [2.2.6](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@2.2.5...@rest-hooks/endpoint@2.2.6) (2022-04-30)

@@ -8,0 +17,0 @@

2

dist/index.umd.min.js

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@rest-hooks/normalizr")):"function"==typeof define&&define.amd?define(["exports","@rest-hooks/normalizr"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).restHookEndpoint={},t.normalizr)}(this,(function(t,e){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,n){return(c=u()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&r(i,n.prototype),i}).apply(null,arguments)}function f(t){var e="function"==typeof Map?new Map:void 0;return(f=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return c(t,arguments,i(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r(o,t)})(t)}function s(t,e){t.type=t.sideEffect?"mutate":"read",t.options=Object.assign({},e),delete t.options.key,delete t.options.schema,delete t.options.sideEffect,delete t.options.fetch,delete t.options.getFetchKey,delete t.options.options,0===Object.keys(t.options).length&&delete t.options,void 0===t.schema&&(t.schema=null)}var a=!1;try{Function()}catch(t){a=!0}var p=function(t){function e(r,o){var i,u;return a?(u=function(){var t;return(t=u).fetch.apply(t,arguments)},Object.setPrototypeOf(u,(this instanceof e?this.constructor:void 0).prototype)):(i=t.call(this,"return arguments.callee.fetch.apply(arguments.callee, arguments)")||this,u=n(i)),u.getFetchKey=function(t){return u.key(t)},r&&(u.fetch=r),o&&"name"in o?(u.__name=o.name,delete o.name):r&&(u.__name=r.name),Object.assign(u,o),Object.defineProperty(u,"name",{get:function(){return this.__name}}),s(u,o),u||n(i)}o(e,t);var r=e.prototype;return r.key=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.name+" "+JSON.stringify(e)},r.bind=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=this.fetch,i=this.key;return this.extend({fetch:function(){return o.apply(null!=t?t:this,n)},key:function(){return i.apply(this,n)}})},r.extend=function(t){var e=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(this.constructor);Object.assign(e.prototype,this);var n=new e(t.fetch,t);return s(n,Object.assign({},this.options,t)),n},e}(f(Function)),l=function(){function t(t,e){var n=this;this.getFetchKey=function(t){return n.key(t)},this.schema=t,e&&(this.key=e)}return t.prototype.key=function(t){return JSON.stringify(t)},t}(),y=function(t){function e(){return t.apply(this,arguments)||this}return o(e,t),e}(f(Error));Object.defineProperty(t,"DELETED",{enumerable:!0,get:function(){return e.DELETED}}),Object.defineProperty(t,"Entity",{enumerable:!0,get:function(){return e.Entity}}),Object.defineProperty(t,"isEntity",{enumerable:!0,get:function(){return e.isEntity}}),Object.defineProperty(t,"schema",{enumerable:!0,get:function(){return e.schema}}),t.AbortOptimistic=y,t.Endpoint=p,t.ExpiryStatus={Invalid:1,InvalidIfStale:2,Valid:3},t.Index=l,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@rest-hooks/normalizr")):"function"==typeof define&&define.amd?define(["exports","@rest-hooks/normalizr"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).restHookEndpoint={},e.normalizr)}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t){return e(t={exports:{}},t.exports),t.exports}var o=n(r((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports}))),s=r((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(s);var u=n(r((function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports}))),i=r((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(i);var p=r((function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports}));n(p);var c=r((function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports}));n(c);var f=r((function(e){function t(n,r,o){return c()?(e.exports=t=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=t=function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&s(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}));n(f);var a=n(r((function(e){function t(n){var r="function"==typeof Map?new Map:void 0;return e.exports=t=function(e){if(null===e||!p(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return f(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})));function l(e,t){e.type=e.sideEffect?"mutate":"read",e.options=Object.assign({},t),delete e.options.key,delete e.options.schema,delete e.options.sideEffect,delete e.options.fetch,delete e.options.getFetchKey,delete e.options.options,0===Object.keys(e.options).length&&delete e.options,void 0===e.schema&&(e.schema=null)}var d=!1;try{Function()}catch(e){d=!0}var y=function(e){function t(n,r){var s,u;return d?(u=function(){var e;return(e=u).fetch.apply(e,arguments)},Object.setPrototypeOf(u,(this instanceof t?this.constructor:void 0).prototype)):(s=e.call(this,"return arguments.callee.fetch.apply(arguments.callee, arguments)")||this,u=o(s)),u.getFetchKey=function(e){return u.key(e)},n&&(u.fetch=n),r&&"name"in r?(u.__name=r.name,delete r.name):n&&(u.__name=n.name),Object.assign(u,r),Object.defineProperty(u,"name",{get:function(){return this.__name}}),l(u,r),u||o(s)}u(t,e);var n=t.prototype;return n.key=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.name+" "+JSON.stringify(t)},n.bind=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this.fetch,s=this.key;return this.extend({fetch:function(){return o.apply(null!=e?e:this,n)},key:function(){return s.apply(this,n)}})},n.extend=function(e){var t=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t}(this.constructor);Object.assign(t.prototype,this);var n=new t(e.fetch,e);return l(n,Object.assign({},this.options,e)),n},t}(a(Function)),x=function(){function e(e,t){var n=this;this.getFetchKey=function(e){return n.key(e)},this.schema=e,t&&(this.key=t)}return e.prototype.key=function(e){return JSON.stringify(e)},e}(),h=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t}(a(Error));Object.defineProperty(e,"DELETED",{enumerable:!0,get:function(){return t.DELETED}}),Object.defineProperty(e,"Entity",{enumerable:!0,get:function(){return t.Entity}}),Object.defineProperty(e,"isEntity",{enumerable:!0,get:function(){return t.isEntity}}),Object.defineProperty(e,"schema",{enumerable:!0,get:function(){return t.schema}}),e.AbortOptimistic=h,e.Endpoint=y,e.ExpiryStatus={Invalid:1,InvalidIfStale:2,Valid:3},e.Index=x,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@rest-hooks/endpoint",
"version": "2.2.6",
"version": "2.2.7",
"description": "Declarative Network Interface Definitions",

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

"dependencies": {
"@babel/runtime": "^7.7.2",
"@rest-hooks/normalizr": "^8.2.5"
"@babel/runtime": "^7.13.0",
"@rest-hooks/normalizr": "^8.2.6"
},
"gitHead": "f490c35cb1a91a4f740488d28b92d3e3b3a98ffe"
"gitHead": "3ef33e89500d586bdfbef12ac7f559a9a647df88"
}
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