Comparing version 4.0.8 to 4.0.9
@@ -8,3 +8,3 @@ var ft=Object.create;var N=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var mt=Object.getPrototypeOf,gt=Object.prototype.hasOwnProperty;var ie=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),V=(e,t)=>{for(var r in t)N(e,r,{get:t[r],enumerable:!0})},ae=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ht(t))!gt.call(e,o)&&o!==r&&N(e,o,{get:()=>t[o],enumerable:!(n=lt(t,o))||n.enumerable});return e};var m=(e,t,r)=>(r=e!=null?ft(mt(e)):{},ae(t||!e||!e.__esModule?N(r,"default",{value:e,enumerable:!0}):r,e)),X=e=>ae(N({},"__esModule",{value:!0}),e);var pe={};V(pe,{error:()=>G,warn:()=>O});var _,W,O,G,B=ie(()=>{_=m(require("chalk")),W=m(require("util")),O=(...e)=>console.warn(_.default.bgYellow.black(` | ||
\r | ||
`};I.setupSocket(r),o&&o.length&&r.unshift(o);var p=(I.isSSL.test(n.target.protocol)?Ot:St).request(I.setupOutgoing(n.ssl||{},n,t));return s&&s.emit("proxyReqWs",p,t,r,n,o),p.on("error",g),p.on("response",function(u){u.upgrade||(r.write(i("HTTP/"+u.httpVersion+" "+u.statusCode+" "+u.statusMessage,u.headers)),u.pipe(r))}),p.on("upgrade",function(u,c,d){c.on("error",g),c.on("end",function(){s.emit("close",u,c,d)}),r.on("error",function(){c.end()}),I.setupSocket(c),d&&d.length&&c.unshift(d),r.write(i("HTTP/1.1 101 Switching Protocols",u.headers)),c.pipe(r).pipe(c),s.emit("open",c),s.emit("proxySocket",c)}),p.end();function g(u){a?a(u,t,r):s.emit("error",u,t,r),r.end()}}}});var Ye=R((er,Me)=>{var{debugHttpProxy:Z}=(he(),X(le)),{error:It}=(B(),X(pe)),{omit:Re,pick:be,isUndefined:Bt}=require("lodash"),Ie=Me.exports,xe=require("util")._extend,Mt=require("url").parse,Be=require("eventemitter3"),Yt=require("http"),Ht=require("https"),Se=Ce(),Oe=Te();Ie.Server=b;function k(e){return function(r){return function(o,s){var a=e==="ws"?this.wsPasses:this.webPasses,i=[].slice.call(arguments),p=i.length-1,g,u;typeof i[p]=="function"&&(u=i[p],p--);var c=r;if(!(i[p]instanceof Buffer)&&i[p]!==s&&(c=xe({},r),xe(c,i[p]),p--),i[p]instanceof Buffer&&(g=i[p]),["target","forward"].forEach(function(f){typeof c[f]=="string"&&(c[f]=Mt(c[f]))}),!c.target&&!c.forward)return this.emit("error",new Error("Must provide a proper URL as target"));Bt(a==null?void 0:a.length)&&(It("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",be(o,"httpVersion","method","url","headers","upgrade","aborted","complete")),console.error("Proxy: type %s, request options: %O",e,Re(c,"ssl"))),Z("applying passes, proxy type: %s, request options: %o",e,Re(c,"ssl")),Z("Request: %o",be(o,"httpVersion","method","url","headers","upgrade","aborted","complete"));for(var d=0;d<a.length;d++)if(a[d](o,s,c,g,this,u)){Z('pass halted the loop type "%s", #%d: %s %s',e,d,a[d].name,o.method,o.url);break}}}}Ie.createRightProxy=k;function b(e){Be.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=k("web")(e),this.ws=this.proxyWebsocketRequest=k("ws")(e),this.options=e,this.webPasses=Object.keys(Se).map(function(t){return Se[t]}),this.wsPasses=Object.keys(Oe).map(function(t){return Oe[t]}),this.on("error",this.onError,this)}require("util").inherits(b,Be);b.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};b.prototype.listen=function(e,t,r){var n=this,o=function(s,a){n.web(s,a)};return this._server=this.options.ssl?Ht.createServer(this.options.ssl,o):Yt.createServer(o),this.options.ws&&this._server.on("upgrade",function(s,a,i){n.ws(s,a,i)}),this._server.listen(e,t,r),this};b.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};b.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,o=!1;if(n.forEach(function(s,a){s.name===t&&(o=a)}),o===!1)throw new Error("No such pass");n.splice(o,0,r)};b.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,o=!1;if(n.forEach(function(s,a){s.name===t&&(o=a)}),o===!1)throw new Error("No such pass");n.splice(o++,0,r)}});var Ne=R((tr,He)=>{var Y=Ye().Server;function J(e){return new Y(e)}Y.createProxyServer=J;Y.createServer=J;Y.createProxy=J;He.exports=Y});var Ue=R((rr,Qe)=>{Qe.exports=Ne()});var Vt={};V(Vt,{getCypressCLIBinPath:()=>U,run:()=>dt,spawn:()=>ut});module.exports=X(Vt);var Or=require("source-map-support/register");var Q=require("path");var j=require("debug"),l=(0,j.debug)("cy2"),h=(0,j.debug)("cy2-net");B();async function U(){var e;if(process.env.CYPRESS_PACKAGE_SHELL_SCRIPT)return l("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 n=(0,Q.resolve)((0,Q.dirname)(t),r.bin.cypress);if(l("Cypress binary path: %s",n),!n)throw new Error("Cannot detect cypress package executable");return n}catch(t){throw G("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")),ct=require("os");var K={name:"cy2",version:"4.0.8",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:{commitMessage:"chore: release v${version}"},hooks:{"before:init":"run-s clean build"}},prettier:{singleQuote:!0}};var Ze=m(require("fp-ts/Array")),ke=require("fp-ts/function"),C=m(require("fp-ts/Option")),Je=m(require("http")),qe=require("http-terminator"),$e=require("micromatch");var ce=(e,t="base64")=>Buffer.from(e,t).toString();var De=require("https-proxy-agent");var ue=`-----BEGIN CERTIFICATE----- | ||
`};I.setupSocket(r),o&&o.length&&r.unshift(o);var p=(I.isSSL.test(n.target.protocol)?Ot:St).request(I.setupOutgoing(n.ssl||{},n,t));return s&&s.emit("proxyReqWs",p,t,r,n,o),p.on("error",g),p.on("response",function(u){u.upgrade||(r.write(i("HTTP/"+u.httpVersion+" "+u.statusCode+" "+u.statusMessage,u.headers)),u.pipe(r))}),p.on("upgrade",function(u,c,d){c.on("error",g),c.on("end",function(){s.emit("close",u,c,d)}),r.on("error",function(){c.end()}),I.setupSocket(c),d&&d.length&&c.unshift(d),r.write(i("HTTP/1.1 101 Switching Protocols",u.headers)),c.pipe(r).pipe(c),s.emit("open",c),s.emit("proxySocket",c)}),p.end();function g(u){a?a(u,t,r):s.emit("error",u,t,r),r.end()}}}});var Ye=R((er,Me)=>{var{debugHttpProxy:Z}=(he(),X(le)),{error:It}=(B(),X(pe)),{omit:Re,pick:be,isUndefined:Bt}=require("lodash"),Ie=Me.exports,xe=require("util")._extend,Mt=require("url").parse,Be=require("eventemitter3"),Yt=require("http"),Ht=require("https"),Se=Ce(),Oe=Te();Ie.Server=b;function k(e){return function(r){return function(o,s){var a=e==="ws"?this.wsPasses:this.webPasses,i=[].slice.call(arguments),p=i.length-1,g,u;typeof i[p]=="function"&&(u=i[p],p--);var c=r;if(!(i[p]instanceof Buffer)&&i[p]!==s&&(c=xe({},r),xe(c,i[p]),p--),i[p]instanceof Buffer&&(g=i[p]),["target","forward"].forEach(function(f){typeof c[f]=="string"&&(c[f]=Mt(c[f]))}),!c.target&&!c.forward)return this.emit("error",new Error("Must provide a proper URL as target"));Bt(a==null?void 0:a.length)&&(It("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",be(o,"httpVersion","method","url","headers","upgrade","aborted","complete")),console.error("Proxy: type %s, request options: %O",e,Re(c,"ssl"))),Z("applying passes, proxy type: %s, request options: %o",e,Re(c,"ssl")),Z("Request: %o",be(o,"httpVersion","method","url","headers","upgrade","aborted","complete"));for(var d=0;d<a.length;d++)if(a[d](o,s,c,g,this,u)){Z('pass halted the loop type "%s", #%d: %s %s',e,d,a[d].name,o.method,o.url);break}}}}Ie.createRightProxy=k;function b(e){Be.call(this),e=e||{},e.prependPath=e.prependPath!==!1,this.web=this.proxyRequest=k("web")(e),this.ws=this.proxyWebsocketRequest=k("ws")(e),this.options=e,this.webPasses=Object.keys(Se).map(function(t){return Se[t]}),this.wsPasses=Object.keys(Oe).map(function(t){return Oe[t]}),this.on("error",this.onError,this)}require("util").inherits(b,Be);b.prototype.onError=function(e){if(this.listeners("error").length===1)throw e};b.prototype.listen=function(e,t,r){var n=this,o=function(s,a){n.web(s,a)};return this._server=this.options.ssl?Ht.createServer(this.options.ssl,o):Yt.createServer(o),this.options.ws&&this._server.on("upgrade",function(s,a,i){n.ws(s,a,i)}),this._server.listen(e,t,r),this};b.prototype.close=function(e){var t=this;this._server&&this._server.close(r);function r(){t._server=null,e&&e.apply(null,arguments)}};b.prototype.before=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,o=!1;if(n.forEach(function(s,a){s.name===t&&(o=a)}),o===!1)throw new Error("No such pass");n.splice(o,0,r)};b.prototype.after=function(e,t,r){if(e!=="ws"&&e!=="web")throw new Error("type must be `web` or `ws`");var n=e==="ws"?this.wsPasses:this.webPasses,o=!1;if(n.forEach(function(s,a){s.name===t&&(o=a)}),o===!1)throw new Error("No such pass");n.splice(o++,0,r)}});var Ne=R((tr,He)=>{var Y=Ye().Server;function J(e){return new Y(e)}Y.createProxyServer=J;Y.createServer=J;Y.createProxy=J;He.exports=Y});var Ue=R((rr,Qe)=>{Qe.exports=Ne()});var Vt={};V(Vt,{getCypressCLIBinPath:()=>U,run:()=>dt,spawn:()=>ut});module.exports=X(Vt);var Or=require("source-map-support/register");var Q=require("path");var j=require("debug"),l=(0,j.debug)("cy2"),h=(0,j.debug)("cy2-net");B();async function U(){var e;if(process.env.CYPRESS_PACKAGE_SHELL_SCRIPT)return l("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 n=(0,Q.resolve)((0,Q.dirname)(t),r.bin.cypress);if(l("Cypress binary path: %s",n),!n)throw new Error("Cannot detect cypress package executable");return n}catch(t){throw G("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")),ct=require("os");var K={name:"cy2",version:"4.0.9",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:{commitMessage:"chore: release v${version}"},hooks:{"before:init":"run-s clean build"}},prettier:{singleQuote:!0}};var Ze=m(require("fp-ts/Array")),ke=require("fp-ts/function"),C=m(require("fp-ts/Option")),Je=m(require("http")),qe=require("http-terminator"),$e=require("micromatch");var ce=(e,t="base64")=>Buffer.from(e,t).toString();var De=require("https-proxy-agent");var ue=`-----BEGIN CERTIFICATE----- | ||
MIIEWjCCAkICFDtuRdVQgEMC2Gc8tSvZR97D+bKJMA0GCSqGSIb3DQEBCwUAMHUx | ||
@@ -11,0 +11,0 @@ CzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNj |
{ | ||
"name": "cy2", | ||
"version": "4.0.8", | ||
"version": "4.0.9", | ||
"author": "Andrew Goldis", | ||
@@ -5,0 +5,0 @@ "main": "./dist", |
@@ -21,8 +21,12 @@ # cy2 | ||
--- | ||
--- | ||
*March 2023 Update* | ||
**Dec 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 ⭐️ | ||
If you are seeing `Error: certificate has expired`, please upgrade to version 4.0.8+. | ||
**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 ⭐️ | ||
--- | ||
@@ -29,0 +33,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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
159548
148
13