@rest-hooks/endpoint
Advanced tools
Comparing version 2.2.9 to 2.2.10
@@ -6,16 +6,8 @@ # Change Log | ||
### [2.2.9](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@2.2.8...@rest-hooks/endpoint@2.2.9) (2022-07-01) | ||
### [2.2.10](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@2.2.7...@rest-hooks/endpoint@2.2.10) (2022-07-20) | ||
**Note:** Version bump only for package @rest-hooks/endpoint | ||
### [2.2.8](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@2.2.7...@rest-hooks/endpoint@2.2.8) (2022-07-01) | ||
### 🐛 Bug Fix | ||
* Fix package exports support for latest resolve pkg ([4263506](https://github.com/coinbase/rest-hooks/commit/426350653b17235f9e92159db0946660a00a03f6)) | ||
* Fix package exports support for latest resolve pkg ([#2062](https://github.com/coinbase/rest-hooks/issues/2062)) ([0088494](https://github.com/coinbase/rest-hooks/commit/0088494e5cab91da7becebe7d9b62796fb9f4f2e)) | ||
@@ -22,0 +14,0 @@ |
@@ -1,1 +0,1 @@ | ||
!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?Object.setPrototypeOf.bind():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 i=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}))),u=r((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():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(u);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.bind(),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,u(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,i;return d?(i=function(){var e;return(e=i).fetch.apply(e,arguments)},Object.setPrototypeOf(i,(this instanceof t?this.constructor:void 0).prototype)):(s=e.call(this,"return arguments.callee.fetch.apply(arguments.callee, arguments)")||this,i=o(s)),i.getFetchKey=function(e){return i.key(e)},n&&(i.fetch=n),r&&"name"in r?(i.__name=r.name,delete r.name):n&&(i.__name=n.name),Object.assign(i,r),Object.defineProperty(i,"name",{get:function(){return this.__name}}),l(i,r),i||o(s)}i(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 i(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 i(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})})); | ||
!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?Object.setPrototypeOf.bind():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 i=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}))),u=r((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():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(u);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.bind(),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=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,u(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})),l=n(a);function d(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 y=!1;try{Function()}catch(e){y=!0}var x=function(e){function t(n,r){var s,i;return y?(i=function(){var e;return(e=i).fetch.apply(e,arguments)},Object.setPrototypeOf(i,(this instanceof t?this.constructor:void 0).prototype)):(s=e.call(this,"return arguments.callee.fetch.apply(arguments.callee, arguments)")||this,i=o(s)),i.getFetchKey=function(e){return i.key(e)},n&&(i.fetch=n),r&&"name"in r?(i.__name=r.name,delete r.name):n&&(i.__name=n.name),Object.assign(i,r),Object.defineProperty(i,"name",{get:function(){return this.__name}}),d(i,r),i||o(s)}i(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 i(t,e),t}(this.constructor);Object.assign(t.prototype,this);var n=new t(e.fetch,e);return d(n,Object.assign({},this.options,e)),n},t}(l(Function)),h=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}(),_=function(e){function t(){return e.apply(this,arguments)||this}return i(t,e),t}(l(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=_,e.Endpoint=x,e.ExpiryStatus={Invalid:1,InvalidIfStale:2,Valid:3},e.Index=h,Object.defineProperty(e,"__esModule",{value:!0})})); |
{ | ||
"name": "@rest-hooks/endpoint", | ||
"version": "2.2.9", | ||
"version": "2.2.10", | ||
"description": "Declarative Network Interface Definitions", | ||
@@ -101,5 +101,5 @@ "sideEffects": false, | ||
"@babel/runtime": "^7.13.0", | ||
"@rest-hooks/normalizr": "^8.2.8" | ||
"@rest-hooks/normalizr": "^8.2.9" | ||
}, | ||
"gitHead": "2e86aee48ce7e2b8fc006f719d79a96aa6584a2f" | ||
"gitHead": "a34477ee514c1d705555dbe5338cca976df665aa" | ||
} |
190307
77
2176
Updated@rest-hooks/normalizr@^8.2.9