PageSourceSearch

https://insomniacookies.com/static/js/7.2c08e5f0.chunk.js

js insomniacookies.com collected 2026-09-24 08:58:27 UTC 2,854 bytes, 2 lines download raw bytes

1(this.webpackJsonpinsomnia=this.webpackJsonpinsomnia||[]).push([[7],{1889:function(t,e,n){"use strict";n.r(e),n.d(e,"NetworkObservers",(function(){return a}));var o=n(13),r=n(408),i=["image/","audio/","video/","application/octet-stream","font/"];function s(t,e){if(new Blob([t]).size<=e)return{value:t,truncated:!1};for(var n=0,o=Math.min(t.length,e);n<o;){var r=Math.ceil((n+o)/2);new Blob([t.slice(0,r)]).size<=e?n=r:o=r-1}return n>0&&t.charCodeAt(n-1)>=55296&&t.charCodeAt(n-1)<=56319&&(n-=1),{value:t.slice(0,n),truncated:!0}}var a=function(){function t(){this.fetchObserver=null}return t.prototype.start=function(t,e){this.eventCallback=t,this.networkConfig=e,this.observeFetch()},t.prototype.stop=function(){var t;null===(t=this.fetchObserver)||void 0===t||t.call(this),this.fetchObserver=null,this.eventCallback=void 0,this.networkConfig=void 0},t.prototype.notifyEvent=function(t){var e;null===(e=this.eventCallback)||void 0===e||e.call(this,t)},t.prototype.observeFetch=function(){var t=this,e=Object(r.a)();if(e){var n=e.fetch;n&&(e.fetch=function(e,r){return Object(o.b)(t,void 0,void 0,(function(){var t,a,u,c,l,v,d,f,h,p,y,b,m=this;return Object(o.d)(this,(function(o){switch(o.label){case 0:t=Date.now(),a={timestamp:t,type:"fetch",method:(null===r||void 0===r?void 0:r.method)||"GET",url:e.toString(),requestHeaders:null===r||void 0===r?void 0:r.headers},(null===(u=null===(y=this.networkConfig)||void 0===y?void 0:y.body)||void 0===u?void 0:u.request)&&void 0!==(c=function(t){if(null!==t&&void 0!==t){if("string"===typeof t)return t;if(t instanceof URLSearchParams)return t.toString();if(t instanceof FormData){var e=[];return t.forEach((function(t,n){e.push("".concat(n,"=").concat("string"===typeof t?t:"[File]"))})),e.join("&")}}}(null===r||void 0===r?void 0:r.body))&&(l=null!==(b=u.maxBodySizeBytes)&&void 0!==b?b:10240,a.requestBody=s(c,l).value),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n(e,r)];case 2:return v=o.sent(),h=Date.now(),a.status=v.status,a.duration=h-t,d={},v.headers.forEach((function(t,e){d[e]=t})),a.responseHeaders=d,(null===u||void 0===u?void 0:u.response)?!function(t){return!!t&&i.some((function(e){return t.toLowerCase().startsWith(e)}))}(d["content-type"]||null)?v.clone().text().then((function(t){var e,n=s(t,null!==(e=u.maxBodySizeBytes)&&void 0!==e?e:10240),o=n.value,r=n.truncated;a.responseBody=o,a.responseBodyStatus=r?"truncated":"captured",m.notifyEvent(a)}),(function(){a.responseBodyStatus="error",m.notifyEvent(a)}
1)):(a.responseBodyStatus="skipped_binary",this.notifyEvent(a)):this.notifyEvent(a),[2,v];case 3:throw f=o.sent(),h=Date.now(),a.duration=h-t,p=f,a.error={name:p.name||"UnknownError",message:p.message||"An unknown error occurred"},this.notifyEvent(a),f;case 4:return[2]}}))}))},this.fetchObserver=function(){e.fetch=n})}},t}()}}]);
2//# sourceMappingURL=7.2c08e5f0.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.