@rest-hooks/endpoint
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -6,2 +6,10 @@ # Change Log | ||
## <small>0.5.2 (2020-07-31)</small> | ||
**Note:** Version bump only for package @rest-hooks/endpoint | ||
## <small>0.5.1 (2020-07-27)</small> | ||
@@ -8,0 +16,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).restHookCore={})}(this,(function(t){"use strict";function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function r(t,e,i){return(r=o()?Reflect.construct:function(t,e,o){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return o&&n(i,o.prototype),i}).apply(null,arguments)}function i(t){var o="function"==typeof Map?new Map:void 0;return(i=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(t))return o.get(t);o.set(t,c)}function c(){return r(t,arguments,e(this).constructor)}return c.prototype=Object.create(t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n(c,t)})(t)}var c=function(t){var e,n;function o(e,n){var o;return(o=t.call(this,"return arguments.callee.fetch.apply(arguments.callee, arguments)")||this).schema=null,o.getFetchKey=function(t){return o.key(t)},o.fetch=e,Object.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o),n),o.type=o.sideEffect?"mutate":"read",o.options=Object.assign({},n),delete o.options.key,delete o.options.schema,delete o.options.sideEffect,0===Object.keys(o.options).length&&delete o.options,o}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=o.prototype;return r.key=function(t){return this.fetch.name+" "+JSON.stringify(t)},r.extend=function(t){var e,n=Object.assign({},t);delete n.key,delete n.schema,delete n.sideEffect;var o=Object.assign({},this,t,{options:Object.assign({},this.options,{optionsCopy:n})});return new this.constructor(null!=(e=t.fetch)?e:this.fetch,o)},o}(i(Function)),u=function(){function t(t,e){this.schema=t,e&&(this.key=e)}return t.prototype.key=function(t){return JSON.stringify(t)},t}();t.Endpoint=c,t.Index=u,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).restHookCore={})}(this,(function(t){"use strict";function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function r(t,e,i){return(r=o()?Reflect.construct:function(t,e,o){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return o&&n(i,o.prototype),i}).apply(null,arguments)}function i(t){var o="function"==typeof Map?new Map:void 0;return(i=function(t){if(null===t||(i=t,-1===Function.toString.call(i).indexOf("[native code]")))return t;var i;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==o){if(o.has(t))return o.get(t);o.set(t,c)}function c(){return r(t,arguments,e(this).constructor)}return c.prototype=Object.create(t.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n(c,t)})(t)}var c=function(t){var e,n;function o(e,n){var o;return(o=t.call(this,"return arguments.callee.fetch.apply(arguments.callee, arguments)")||this).schema=null,o.getFetchKey=function(t){return o.key(t)},o.fetch=e,Object.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o),n),o.type=o.sideEffect?"mutate":"read",o.options=Object.assign({},n),delete o.options.key,delete o.options.schema,delete o.options.sideEffect,0===Object.keys(o.options).length&&delete o.options,o}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=o.prototype;return r.key=function(t){return this.fetch.name+" "+JSON.stringify(t)},r.extend=function(t){var e,n=Object.assign({},t);delete n.key,delete n.schema,delete n.sideEffect;var o=Object.assign({},this,t,{options:Object.assign({},this.options,{optionsCopy:n})});return new this.constructor(null!=(e=t.fetch)?e:this.fetch,o)},o}(i(Function)),u=function(){function t(t,e){this.schema=t,e&&(this.key=e)}return t.prototype.key=function(t){return JSON.stringify(t)},t}();t.Endpoint=c,t.Index=u,Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "@rest-hooks/endpoint", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Declarative Network Interface Definitions", | ||
@@ -55,5 +55,5 @@ "sideEffects": false, | ||
"@babel/runtime": "^7.7.2", | ||
"@rest-hooks/normalizr": "^6.0.0-j.0" | ||
"@rest-hooks/normalizr": "^6.0.0-j.1" | ||
}, | ||
"gitHead": "9f1c93016d32dbb9c93e33b14e225debf1febe56" | ||
"gitHead": "2c30271056703287e287d2b06d22e81c6ba78f37" | ||
} |
73445