Comparing version 4.0.7-beta.1 to 4.0.7-beta.2
@@ -8,3 +8,3 @@ var ut=Object.create;var k=Object.defineProperty;var Rt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var mt=Object.getPrototypeOf,Ut=Object.prototype.hasOwnProperty;var ae=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),B=(e,t)=>{for(var r in t)k(e,r,{get:t[r],enumerable:!0})},pe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ht(t))!Ut.call(e,n)&&n!==r&&k(e,n,{get:()=>t[n],enumerable:!(o=Rt(t,n))||o.enumerable});return e};var m=(e,t,r)=>(r=e!=null?ut(mt(e)):{},pe(t||!e||!e.__esModule?k(r,"default",{value:e,enumerable:!0}):r,e)),X=e=>pe(k({},"__esModule",{value:!0}),e);var de={};B(de,{error:()=>j,warn:()=>W});var L,z,W,j,P=ae(()=>{L=m(require("chalk")),z=m(require("util")),W=(...e)=>console.warn(L.default.bgYellow.black(` | ||
\r | ||
`};v.setupSocket(r),n&&n.length&&r.unshift(n);var p=(v.isSSL.test(o.target.protocol)?Wt:Zt).request(v.setupOutgoing(o.ssl||{},o,t));return s&&s.emit("proxyReqWs",p,t,r,o,n),p.on("error",U),p.on("response",function(c){c.upgrade||(r.write(i("HTTP/"+c.httpVersion+" "+c.statusCode+" "+c.statusMessage,c.headers)),c.pipe(r))}),p.on("upgrade",function(c,d,l){d.on("error",U),d.on("end",function(){s.emit("close",c,d,l)}),r.on("error",function(){d.end()}),v.setupSocket(d),l&&l.length&&d.unshift(l),r.write(i("HTTP/1.1 101 Switching Protocols",c.headers)),d.pipe(r).pipe(d),s.emit("open",d),s.emit("proxySocket",d)}),p.end();function U(c){a?a(c,t,r):s.emit("error",c,t,r),r.end()}}}});var Ye=w((tr,Pe)=>{var{debugHttpProxy:A}=(he(),X(Re)),{error:Qt}=(P(),X(de)),{omit:we,pick:ge,isUndefined:vt}=require("lodash"),Qe=Pe.exports,be=require("util")._extend,Pt=require("url").parse,ve=require("eventemitter3"),Yt=require("http"),xt=require("https"),Ze=Ee(),We=Fe();Qe.Server=g;function I(e){return function(r){return function(n,s){var a=e==="ws"?this.wsPasses:this.webPasses,i=[].slice.call(arguments),p=i.length-1,U,c;typeof i[p]=="function"&&(c=i[p],p--);var d=r;if(!(i[p]instanceof Buffer)&&i[p]!==s&&(d=be({},r),be(d,i[p]),p--),i[p]instanceof Buffer&&(U=i[p]),["target","forward"].forEach(function(u){typeof d[u]=="string"&&(d[u]=Pt(d[u]))}),!d.target&&!d.forward)return this.emit("error",new Error("Must provide a proper URL as target"));vt(a==null?void 0:a.length)&&(Qt("Unexpected error processing the request. Please report the issue and the details below. Set environment variable DEBUG=cy2* and rerun to get more information"),console.error("Request: %o",ge(n,"httpVersion","method","url","headers","upgrade","aborted","complete")),console.error("Proxy: type %s, request options: %O",e,we(d,"ssl"))),A("applying passes, proxy type: %s, request options: %o",e,we(d,"ssl")),A("Request: %o",ge(n,"httpVersion","method","url","headers","upgrade","aborted","complete"));for(var l=0;l<a.length;l++)if(a[l](n,s,d,U,this,c)){A('pass halted the loop type "%s", #%d: %s %s',e,l,a[l].name,n.method,n.url);break}}}}Qe.createRightProxy=I;function g(e){ve.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=I("web")(e),this.ws=this.proxyWebsocketRequest=I("ws")(e),this.options=e,this.webPasses=Object.keys(Ze).map(function(t){return Ze[t]}),this.wsPasses=Object.keys(We).map(function(t){return We[t]}),this.on("error",this.onError,this)}require("util").inherits(g,ve);g.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};g.prototype.listen=function(e,t,r){var o=this,n=function(s,a){o.web(s,a)};return this._server=this.options.ssl?xt.createServer(this.options.ssl,n):Yt.createServer(n),this.options.ws&&this._server.on("upgrade",function(s,a,i){o.ws(s,a,i)}),this._server.listen(e,t,r),this};g.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};g.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var o=e==="ws"?this.wsPasses:this.webPasses,n=!1;if(o.forEach(function(s,a){s.name===t&&(n=a)}),n===!1)throw new Error("No such pass");o.splice(n,0,r)};g.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var o=e==="ws"?this.wsPasses:this.webPasses,n=!1;if(o.forEach(function(s,a){s.name===t&&(n=a)}),n===!1)throw new Error("No such pass");o.splice(n++,0,r)}});var Ce=w((rr,xe)=>{var x=Ye().Server;function q(e){return new x(e)}x.createProxyServer=q;x.createServer=q;x.createProxy=q;xe.exports=x});var Je=w((nr,ke)=>{ke.exports=Ce()});var Ot={};B(Ot,{getCypressCLIBinPath:()=>M,run:()=>lt,spawn:()=>ct});module.exports=X(Ot);var Qr=require("source-map-support/register");var J=require("path");var G=require("debug"),R=(0,G.debug)("cy2"),h=(0,G.debug)("cy2-net");P();async function M(){var e;if(process.env.CYPRESS_PACKAGE_SHELL_SCRIPT)return R("Cypress binary path from CYPRESS_PACKAGE_SHELL_SCRIPT: %s",process.env.CYPRESS_PACKAGE_SHELL_SCRIPT),process.env.CYPRESS_PACKAGE_SHELL_SCRIPT;try{let t=require.resolve("cypress"),r=require("cypress/package.json");if(!r.bin||!((e=r.bin)!=null&&e.cypress))throw new Error("Cannot detect cypress package executable");let o=(0,J.resolve)((0,J.dirname)(t),r.bin.cypress);if(R("Cypress binary path: %s",o),!o)throw new Error("Cannot detect cypress package executable");return o}catch(t){throw j("Cannot detect cypress package executable. Consider using CYPRESS_PACKAGE_SHELL_SCRIPT environment variable. Tried locations: %O",require.resolve.paths("cypress")),t}}var pt=m(require("child_process")),dt=require("os");var K={name:"cy2",version:"4.0.7-beta.1",author:"Andrew Goldis",main:"./dist",typings:"./dist",license:"GPL-3.0-or-later",repository:{type:"git",url:"https://github.com/sorry-cypress/cy2.git"},scripts:{postinstall:"patch-package",build:"run-p tsc esbuild",dev:"run-p watch:*",test:"jest",tsc:"tsc",esbuild:"node ./build.js","watch:tsc":'run-s "tsc --watch --preserveWatchOutput"',"watch:esbuild":"esbuild ./src/*.ts --bundle --platform=node --target=node14 --packages=external --sourcemap=inline --outdir=dist --watch","build-tunnel":"esbuild ./src/tunnel-proxy.ts --bundle --platform=node --target=node14 --packages=external --sourcemap=inline --outdir=dist",release:"release-it","release-ci":"release-it --ci --npm.skipChecks --no-git --no-github --no-increment --npm.publish",clean:"rimraf dist"},files:["bin/*","dist/index.js*","!dist/__tests__","!dist/*.d.ts","!dist/**/*.d.ts","dist/index.d.ts","dist/cypress-wrapper.d.ts","dist/bin-path.d.ts"],bin:{cy2:"bin/cy2"},engines:{node:">=14.17.0"},keywords:["cypress","sorry-cypress","cypress dashboard","cypress ci","cypress parallel","currents"],dependencies:{chalk:"^4.1.2",eventemitter3:"^4.0.0","follow-redirects":"^1.0.0","fp-ts":"^2.13.1","http-terminator":"^3.2.0","https-proxy-agent":"^5.0.1",lodash:"^4.17.21",micromatch:"^4.0.5","patch-package":"^6.5.1","requires-port":"^1.0.0","source-map-support":"^0.5.21",tmp:"^0.2.1"},devDependencies:{"@release-it/conventional-changelog":"^5.1.1","@types/http-proxy":"^1.17.9","@types/jest":"^27.0.1","@types/lodash":"^4.14.191","@types/micromatch":"^4.0.2","@types/node":"^18.11.17",cypress:">=6.7.0",devcert:"^1.2.2",esbuild:"^0.16.13",jest:"^29.3.1","npm-run-all":"^4.1.5","release-it":"^15.6.0",rimraf:"^3.0.2","ts-jest":"^29.0.3",typescript:"^4.9.4"},"release-it":{npm:{publish:!1},github:{release:!0},plugins:{"@release-it/conventional-changelog":{preset:"angular",header:"# Changelog",ignoreVersion:!0,infile:"CHANGELOG.md"}},git:{requireBranch:"main",commitMessage:"chore: release v${version}"},hooks:{"before:init":"run-s clean build"}},prettier:{singleQuote:!0}};var De=m(require("fp-ts/Array")),Ae=require("fp-ts/function"),E=m(require("fp-ts/Option")),Ie=m(require("http")),qe=require("http-terminator"),$e=require("micromatch");var Q=(e,t="base64")=>Buffer.from(e,t).toString();var Me=require("https-proxy-agent");var ce=Q("LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR6ekNDQXJlZ0F3SUJBZ0lKQUxKbGJVZmRBK2s1TUEwR0NTcUdTSWIzRFFFQkN3VUFNRDR4RnpBVkJnTlYKQkFNTURtRndhUzVqZVhCeVpYTnpMbWx2TVFzd0NRWURWUVFHRXdKVlV6RVdNQlFHQTFVRUJ3d05VMkZ1SUVaeQpZVzV6YVhOamJ6QWVGdzB5TWpFeU1UY3dPREUxTkRGYUZ3MHlNekV5TVRjd09ERTFOREZhTUgweEN6QUpCZ05WCkJBWVRBbFZUTVJNd0VRWURWUVFJREFwRFlXeHBabTl5Ym1saE1SWXdGQVlEVlFRSERBMVRZVzRnUm5KaGJuTnAKYzJOdk1SRXdEd1lEVlFRS0RBaElaV3hzYjBoMVlqRVZNQk1HQTFVRUN3d01TR1ZzYkc5SWRXSWdSR1YyTVJjdwpGUVlEVlFRRERBNWhjR2t1WTNsd2NtVnpjeTVwYnpDQ0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDCkFRb0NnZ0VCQU13eVZIellGZmUwUllLVVRzRXpsNjJVYjdXQXFZVUxsZjRrNWFsR21LMjhPYWpHWHFlTGFWd2oKVjc3NXBKVS9ENTg1dzlqbnBwMDRoOTZTVTRtWDNPUVFUN3hKcTRXMlFTSzNHeHRkTkhINHNLWlgrU0FUR2l2MQpYUFZhZlBmbVZsMjcwOVRXNFNBYzZyV2hhclNpdVdVTTU1THhpek9xQ3pYS1RqQWJOam40YStMcDlQaDRST2JTCnYzMjdRQU56U2txcVVocjFlYjhFZ1BkUmNuYXFtYmVES2hZNmlYcmdzTXYzaXB6OUs5QlFKL2wyMVUxNXR5NnYKV2dNSWlrT2hHOEdaOUdhb1RDYUg3Z2xPY1k0djNRVnZldUE4d2Y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UXAKdU8zdEFnTUJBQUV3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUd5bndldGk5T2VFd0dkMGN4SVhFQUFyRHZpZgp2ekVSamh3dzVKOWFqZFU4Wk5heHlBVG1LN1lMa2U2b2NDZE1zU2hHU1lIWFp6UFZZRjk3cFFwTVM1WTdrbVBHCk9pU29Ec0duVUdWTEdLTE05TTJNcmxMN3NYeTl4UUZFSUNEbk9TMzZFWHhvOHpHK0RsUzZuMVFmeU9saThtaHIKUjhvRyttS0I1MDh0ejVPS1VYUXNXNG4rRE1XeE9RaXBGVXEvVGhYSkROb05iWlEwL2tKVUh1bTFSS3J6MHhpZgphWXJ6bGJDU1RkQ1VxWXQ1YVhDYml6aGtSQ2dhT2M4NWxqcXBZT3F5THhUSEVySWZySWE1U1NJRVZWanlTVnNGCnFXNTRoV0EwWmY4ZHVicEFRV2tLVEY5T1NvdEtnVENyVmU0RGdub2lwTlYyenViVm0raUIybFBEQmZRPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==");var He=m(Je());P();var f=new Map;async function Oe(){h("Stopping interceptors"),await Promise.all(Array.from(f.values()).map((e,t,r)=>new Promise(o=>e.close(()=>{h("Stopped interceptor %d/%d",t+1,r.length),o()})))),f.clear()}async function Be({target:e,upstreamProxy:t}){if(f.has("upstream"))return h("Using interceptor with upstream routing",t.toString(),e),f.get("upstream");h("Creating interceptor with upstream routing path: %s -> %s",t.toString(),e);let r=new Me.HttpsProxyAgent({protocol:t.protocol,host:t.hostname,port:t.port,path:t.pathname});return f.set("upstream",await Ge({target:e,agent:r})),f.get("upstream")}async function Xe({target:e}){return f.has("direct")?(h("Using interceptor with direct routing"),f.get("direct")):(h("Creating interceptor with direct routing path: %s",e),f.set("direct",await Ge({target:e})),f.get("direct"))}function Ge({target:e,agent:t}){return new Promise(r=>{h("Creating interceptor for %s",e);let o=He.createProxyServer({target:e,changeOrigin:!0,followRedirects:!0,agent:t,ssl:{key:le,cert:ce}}).on("error",n=>{let s=Boolean(t)?"upstream proxy":"direct";h("Interceptor of type %s error: %s",s,n),W("Error connecting to %s: %s",e,n.message)});o.listen(0,void 0,()=>r(o))})}var $=m(require("net"));function Le({socket:e,port:t,hostname:r}){let o=$.default.connect(t,r);o.on("ready",function(){e.pipe(o),o.pipe(e),e.write(`HTTP/1.1 200 OK\r | ||
`};v.setupSocket(r),n&&n.length&&r.unshift(n);var p=(v.isSSL.test(o.target.protocol)?Wt:Zt).request(v.setupOutgoing(o.ssl||{},o,t));return s&&s.emit("proxyReqWs",p,t,r,o,n),p.on("error",U),p.on("response",function(c){c.upgrade||(r.write(i("HTTP/"+c.httpVersion+" "+c.statusCode+" "+c.statusMessage,c.headers)),c.pipe(r))}),p.on("upgrade",function(c,d,l){d.on("error",U),d.on("end",function(){s.emit("close",c,d,l)}),r.on("error",function(){d.end()}),v.setupSocket(d),l&&l.length&&d.unshift(l),r.write(i("HTTP/1.1 101 Switching Protocols",c.headers)),d.pipe(r).pipe(d),s.emit("open",d),s.emit("proxySocket",d)}),p.end();function U(c){a?a(c,t,r):s.emit("error",c,t,r),r.end()}}}});var Ye=w((tr,Pe)=>{var{debugHttpProxy:A}=(he(),X(Re)),{error:Qt}=(P(),X(de)),{omit:we,pick:ge,isUndefined:vt}=require("lodash"),Qe=Pe.exports,be=require("util")._extend,Pt=require("url").parse,ve=require("eventemitter3"),Yt=require("http"),xt=require("https"),Ze=Ee(),We=Fe();Qe.Server=g;function I(e){return function(r){return function(n,s){var a=e==="ws"?this.wsPasses:this.webPasses,i=[].slice.call(arguments),p=i.length-1,U,c;typeof i[p]=="function"&&(c=i[p],p--);var d=r;if(!(i[p]instanceof Buffer)&&i[p]!==s&&(d=be({},r),be(d,i[p]),p--),i[p]instanceof Buffer&&(U=i[p]),["target","forward"].forEach(function(u){typeof d[u]=="string"&&(d[u]=Pt(d[u]))}),!d.target&&!d.forward)return this.emit("error",new Error("Must provide a proper URL as target"));vt(a==null?void 0:a.length)&&(Qt("Unexpected error processing the request. Please report the issue and the details below. Set environment variable DEBUG=cy2* and rerun to get more information"),console.error("Request: %o",ge(n,"httpVersion","method","url","headers","upgrade","aborted","complete")),console.error("Proxy: type %s, request options: %O",e,we(d,"ssl"))),A("applying passes, proxy type: %s, request options: %o",e,we(d,"ssl")),A("Request: %o",ge(n,"httpVersion","method","url","headers","upgrade","aborted","complete"));for(var l=0;l<a.length;l++)if(a[l](n,s,d,U,this,c)){A('pass halted the loop type "%s", #%d: %s %s',e,l,a[l].name,n.method,n.url);break}}}}Qe.createRightProxy=I;function g(e){ve.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=I("web")(e),this.ws=this.proxyWebsocketRequest=I("ws")(e),this.options=e,this.webPasses=Object.keys(Ze).map(function(t){return Ze[t]}),this.wsPasses=Object.keys(We).map(function(t){return We[t]}),this.on("error",this.onError,this)}require("util").inherits(g,ve);g.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};g.prototype.listen=function(e,t,r){var o=this,n=function(s,a){o.web(s,a)};return this._server=this.options.ssl?xt.createServer(this.options.ssl,n):Yt.createServer(n),this.options.ws&&this._server.on("upgrade",function(s,a,i){o.ws(s,a,i)}),this._server.listen(e,t,r),this};g.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};g.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var o=e==="ws"?this.wsPasses:this.webPasses,n=!1;if(o.forEach(function(s,a){s.name===t&&(n=a)}),n===!1)throw new Error("No such pass");o.splice(n,0,r)};g.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var o=e==="ws"?this.wsPasses:this.webPasses,n=!1;if(o.forEach(function(s,a){s.name===t&&(n=a)}),n===!1)throw new Error("No such pass");o.splice(n++,0,r)}});var Ce=w((rr,xe)=>{var x=Ye().Server;function q(e){return new x(e)}x.createProxyServer=q;x.createServer=q;x.createProxy=q;xe.exports=x});var Je=w((nr,ke)=>{ke.exports=Ce()});var Ot={};B(Ot,{getCypressCLIBinPath:()=>M,run:()=>lt,spawn:()=>ct});module.exports=X(Ot);var Qr=require("source-map-support/register");var J=require("path");var G=require("debug"),R=(0,G.debug)("cy2"),h=(0,G.debug)("cy2-net");P();async function M(){var e;if(process.env.CYPRESS_PACKAGE_SHELL_SCRIPT)return R("Cypress binary path from CYPRESS_PACKAGE_SHELL_SCRIPT: %s",process.env.CYPRESS_PACKAGE_SHELL_SCRIPT),process.env.CYPRESS_PACKAGE_SHELL_SCRIPT;try{let t=require.resolve("cypress"),r=require("cypress/package.json");if(!r.bin||!((e=r.bin)!=null&&e.cypress))throw new Error("Cannot detect cypress package executable");let o=(0,J.resolve)((0,J.dirname)(t),r.bin.cypress);if(R("Cypress binary path: %s",o),!o)throw new Error("Cannot detect cypress package executable");return o}catch(t){throw j("Cannot detect cypress package executable. Consider using CYPRESS_PACKAGE_SHELL_SCRIPT environment variable. Tried locations: %O",require.resolve.paths("cypress")),t}}var pt=m(require("child_process")),dt=require("os");var K={name:"cy2",version:"4.0.7-beta.2",author:"Andrew Goldis",main:"./dist",typings:"./dist",license:"GPL-3.0-or-later",repository:{type:"git",url:"https://github.com/sorry-cypress/cy2.git"},scripts:{postinstall:"patch-package",build:"run-p tsc esbuild",dev:"run-p watch:*",test:"jest",tsc:"tsc",esbuild:"node ./build.js","watch:tsc":'run-s "tsc --watch --preserveWatchOutput"',"watch:esbuild":"esbuild ./src/*.ts --bundle --platform=node --target=node14 --packages=external --sourcemap=inline --outdir=dist --watch","build-tunnel":"esbuild ./src/tunnel-proxy.ts --bundle --platform=node --target=node14 --packages=external --sourcemap=inline --outdir=dist",release:"release-it","release-ci":"release-it --ci --npm.skipChecks --no-git --no-github --no-increment --npm.publish",clean:"rimraf dist"},files:["bin/*","dist/index.js*","!dist/__tests__","!dist/*.d.ts","!dist/**/*.d.ts","dist/index.d.ts","dist/cypress-wrapper.d.ts","dist/bin-path.d.ts"],bin:{cy2:"bin/cy2"},engines:{node:">=14.17.0"},keywords:["cypress","sorry-cypress","cypress dashboard","cypress ci","cypress parallel","currents"],dependencies:{chalk:"^4.1.2",eventemitter3:"^4.0.0","follow-redirects":"^1.0.0","fp-ts":"^2.13.1","http-terminator":"^3.2.0","https-proxy-agent":"^5.0.1",lodash:"^4.17.21",micromatch:"^4.0.5","patch-package":"^6.5.1","requires-port":"^1.0.0","source-map-support":"^0.5.21",tmp:"^0.2.1"},devDependencies:{"@release-it/conventional-changelog":"^5.1.1","@types/http-proxy":"^1.17.9","@types/jest":"^27.0.1","@types/lodash":"^4.14.191","@types/micromatch":"^4.0.2","@types/node":"^18.11.17",cypress:">=6.7.0",devcert:"^1.2.2",esbuild:"^0.16.13",jest:"^29.3.1","npm-run-all":"^4.1.5","release-it":"^15.6.0",rimraf:"^3.0.2","ts-jest":"^29.0.3",typescript:"^4.9.4"},"release-it":{npm:{publish:!1},github:{release:!0},plugins:{"@release-it/conventional-changelog":{preset:"angular",header:"# Changelog",ignoreVersion:!0,infile:"CHANGELOG.md"}},git:{requireBranch:"main",commitMessage:"chore: release v${version}"},hooks:{"before:init":"run-s clean build"}},prettier:{singleQuote:!0}};var De=m(require("fp-ts/Array")),Ae=require("fp-ts/function"),E=m(require("fp-ts/Option")),Ie=m(require("http")),qe=require("http-terminator"),$e=require("micromatch");var Q=(e,t="base64")=>Buffer.from(e,t).toString();var Me=require("https-proxy-agent");var ce=Q("LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR6ekNDQXJlZ0F3SUJBZ0lKQUxKbGJVZmRBK2s1TUEwR0NTcUdTSWIzRFFFQkN3VUFNRDR4RnpBVkJnTlYKQkFNTURtRndhUzVqZVhCeVpYTnpMbWx2TVFzd0NRWURWUVFHRXdKVlV6RVdNQlFHQTFVRUJ3d05VMkZ1SUVaeQpZVzV6YVhOamJ6QWVGdzB5TWpFeU1UY3dPREUxTkRGYUZ3MHlNekV5TVRjd09ERTFOREZhTUgweEN6Q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4NWxqcXBZT3F5THhUSEVySWZySWE1U1NJRVZWanlTVnNGCnFXNTRoV0EwWmY4ZHVicEFRV2tLVEY5T1NvdEtnVENyVmU0RGdub2lwTlYyenViVm0raUIybFBEQmZRPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==");var He=m(Je());P();var f=new Map;async function Oe(){h("Stopping interceptors"),await Promise.all(Array.from(f.values()).map((e,t,r)=>new Promise(o=>e.close(()=>{h("Stopped interceptor %d/%d",t+1,r.length),o()})))),f.clear()}async function Be({target:e,upstreamProxy:t}){if(f.has("upstream"))return h("Using interceptor with upstream routing",t.toString(),e),f.get("upstream");h("Creating interceptor with upstream routing path: %s -> %s",t.toString(),e);let r=new Me.HttpsProxyAgent({protocol:t.protocol,host:t.hostname,port:t.port,path:t.pathname});return f.set("upstream",await Ge({target:e,agent:r})),f.get("upstream")}async function Xe({target:e}){return f.has("direct")?(h("Using interceptor with direct routing"),f.get("direct")):(h("Creating interceptor with direct routing path: %s",e),f.set("direct",await Ge({target:e})),f.get("direct"))}function Ge({target:e,agent:t}){return new Promise(r=>{h("Creating interceptor for %s",e);let o=He.createProxyServer({target:e,changeOrigin:!0,followRedirects:!0,agent:t,secure:!1,ssl:{key:le,cert:ce}}).on("error",n=>{let s=Boolean(t)?"upstream proxy":"direct";h("Interceptor of type %s error: %s",s,n),W("Error connecting to %s: %s",e,n.message)});o.listen(0,void 0,()=>r(o))})}var $=m(require("net"));function Le({socket:e,port:t,hostname:r}){let o=$.default.connect(t,r);o.on("ready",function(){e.pipe(o),o.pipe(e),e.write(`HTTP/1.1 200 OK\r | ||
\r | ||
@@ -11,0 +11,0 @@ `)}),o.on("error",function(){o.end(),o.destroy(),e.end(),e.destroy()}),e.on("error",function(){e.end(),e.destroy(),o.end(),o.destroy()})}function ze({socket:e,port:t}){let r=$.default.connect(t);r.on("ready",()=>{r.pipe(e),e.pipe(r),e.write(`HTTP/1.1 200 OK\r |
{ | ||
"name": "cy2", | ||
"version": "4.0.7-beta.1", | ||
"version": "4.0.7-beta.2", | ||
"author": "Andrew Goldis", | ||
@@ -5,0 +5,0 @@ "main": "./dist", |
@@ -21,2 +21,10 @@ # cy2 | ||
--- | ||
*March 2023 Update* | ||
⭐️ Cypress 12.6.0+ users, please use https://github.com/currents-dev/cypress-cloud if you are seeing `Cypress does not support recording test results to this third party service` error ⭐️ | ||
--- | ||
[Changelog](./CHANGELOG.md) | [License GPL-3.0+](./LICENSE) | ||
@@ -23,0 +31,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
164043
144
18
13