🆙 npm(deps): Bump the npm group across 1 directory with 7 updates #125
Annotations
6 errors
NPM test:
dist/index.js#L1
Replace `;(()=>{var·e={9841:function(e,A,t){"use·strict";var·r=this&&this.__createBinding||(Object.create?function(e,A,t,r){if(r===undefined)r=t;var·s=Object.getOwnPropertyDescriptor(A,t);if(!s||("get"in·s?!A.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return·A[t]}}}Object.defineProperty(e,r,s)}:function(e,A,t,r){if(r===undefined)r=t;e[r]=A[t]});var·s=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var·o=this&&this.__importStar||function(e){if(e&&e.__esModule)return·e;var·A={};if(e!=null)for(var·t·in·e)if(t!=="default"&&Object.prototype.hasOwnProperty.call(e,t))r(A,e,t);s(A,e);return·A};Object.defineProperty(A,"__esModule",{value:true});A.issue=A.issueCommand=void·0;const·n=o(t(857));const·i=t(8197);function·issueCommand(e,A,t){const·r=new·Command(e,A,t);process.stdout.write(r.toString()+n.EOL)}A.issueCommand=issueCommand;function·issue(e,A=""){issueCommand(e,{},A)}A.issue=issue;const·a="::";class·Command{constructor(e,A,t){if(!e){e="missing.command"}this.command=e;this.properties=A;this.message=t}toString(){let·e=a+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+="·";let·A=true;for(const·t·in·this.properties){if(this.properties.hasOwnProperty(t)){const·r=this.properties[t];if(r){if(A){A=false}else{e+=","}e+=`${t}=${escapeProperty(r)}`}}}}e+=`${a}${escapeData(this.message)}`;return·e}}function·escapeData(e){return(0,i.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function·escapeProperty(e){return(0,i.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},5589:function(e,A,t){"use·strict";var·r=this&&this.__createBinding||(Object.create?function(e,A,t,r){if(r===undefined)r=t;var·s=Object.getOwnPropertyDescriptor(A,t);if(!s||("get"in·s?!A.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return·A[t]}}}Object.defineProperty(e,r,s)}:function(e,A,t,r){if(r===undefined)r=t;e[r]=A[t]});var·s=this&&this.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:true,value:A})}:function(e,A){e["default"]=A});var·o=this&&this.__importStar||function(e){if(e&&e.__esModule)return·e;var·A={};if(e!=null)for(var·t·in·e)if(t!=="default"&&Object.prototype.hasOwnProperty.call(e,t))r(A,e,t);s(A,e);return·A};var·n=this&&this.__awaiter||function(e,A,t,r){function·adopt(e){return·e·instanceof·t?e:new·t((function(A){A(e)}))}return·new(t||(t=Promise))((function(t,s){function·fulfilled(e){try{step(r.next(e))}catch(e){s(e)}}function·rejected(e){try{step(r["throw"](e))}catch(e){s(e)}}function·step(e){e.done?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,A||[])).next())}))};Object.defineProperty(A,"__esModule",{value:true});A.platform=A.toPlatformPath=A.toWin32Path=A.toPosixPath=A.markdownSummary=A.summary=A.getIDToken=A.getState=A.saveState=A.group=A.endGroup=A.startGroup=A.info=A.notice=A.warning=A.error=A.debug=A.isDebug=A.setFailed=A.setCommandEcho=A.setOutput=A.getBooleanInput=A.getMultilineInput=A.getInput=A.addPath=A.setSecret=A.exportVariable=A.ExitCode=void·0;const·i=t(9841);const·a=t(1804);const·c=t(8197);const·g=o(t(857));const·E=o(t(6928));const·l=t(283);var·u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u||(A.ExitCode=u={}));function·exportVariable(e,A){const·t=(0,c.toCommandValue)(A);process.env[e]=t;const·r=process.env["GITHUB_ENV"]||"";if(r){return(0,a.issueFileCommand)("ENV",(0,a.prepareKeyValueMessage)(e,A))}(0,i.issueCommand)("set-env",{name:e},t)}A.exportVariable=exportVariable;function·setSecret(e){(0,i.issueCommand)("add-mask",{},e)}A.setSecret=setSecret;function·addPath(e){const·A=process.env["GITHUB_PATH"]||"";if(A){(0,a.issueFileCommand)("PATH",e)}else{(0,i.issueCommand)("add-path",{},e)}process.env["PATH"]=`${e}${E.delimiter}${process.env["PATH"]}`}A.addPath=addPath;function·getInput(e,A){const·t=process.env[`INPUT_${e.replace(/·/g,"_").toUpperCase()}`]||"";i
|
NPM test:
dist/index.js#L2
Replace `/*!·formdata-polyfill.·MIT·License.·Jimmy·Wärting·<https://jimmy.warting.se/opensource>·*/;const·escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const·normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const·r=[];const·s=new·Uint8Array([13,10]);E=0;let·o=false;for(const[A,n]of·e){if(typeof·n==="string"){const·e=F.encode(t+`;·name="${escape(normalizeLinefeeds(A))}"`+`\r\n\r\n${normalizeLinefeeds(n)}\r\n`);r.push(e);E+=e.byteLength}else{const·e=F.encode(`${t};·name="${escape(normalizeLinefeeds(A))}"`+(n.name?`;·filename="${escape(n.name)}"`:"")+"\r\n"+`Content-Type:·${n.type||"application/octet-stream"}\r\n\r\n`);r.push(e,n,s);if(typeof·n.size==="number"){E+=e.byteLength+n.size+s.byteLength}else{o=true}}}const·n=F.encode(`--${A}--`);r.push(n);E+=n.byteLength;if(o){E=null}g=e;c=async·function*(){for(const·e·of·r){if(e.stream){yield*e.stream()}else{yield·e}}};l="multipart/form-data;·boundary="+A}else·if(n(e)){g=e;E=e.size;if(e.type){l=e.type}}else·if(typeof·e[Symbol.asyncIterator]==="function"){if(A){throw·new·TypeError("keepalive")}if(s.isDisturbed(e)||e.locked){throw·new·TypeError("Response·body·object·should·not·be·disturbed·or·locked")}r=e·instanceof·D?e:o(e)}if(typeof·g==="string"||s.isBuffer(g)){E=Buffer.byteLength(g)}if(c!=null){let·A;r=new·D({async·start(){A=c(e)[Symbol.asyncIterator]()},async·pull(e){const{value:t,done:s}=await·A.next();if(s){queueMicrotask((()=>{e.close()}))}else{if(!p(r)){e.enqueue(new·Uint8Array(t))}}return·e.desiredSize>0},async·cancel(e){await·A.return()},type:undefined})}const·u={stream:r,source:g,length:E};return[u,l]}function·safelyExtractBody(e,A=false){if(!D){D=t(3774).ReadableStream}if(e·instanceof·D){d(!s.isDisturbed(e),"The·body·has·already·been·consumed.");d(!e.locked,"The·stream·is·locked.")}return·extractBody(e,A)}function·cloneBody(e){const[A,t]=e.stream.tee();const·r=C(t,{transfer:[t]});const[,s]=r.tee();e.stream=A;return{stream:s,length:e.length,source:e.source}}async·function*consumeBody(e){if(e){if(m(e)){yield·e}else{const·A=e.stream;if(s.isDisturbed(A)){throw·new·TypeError("The·body·has·already·been·consumed.")}if(A.locked){throw·new·TypeError("The·stream·is·locked.")}A[I]=true;yield*A}}}function·throwIfAborted(e){if(e.aborted){throw·new·Q("The·operation·was·aborted.","AbortError")}}function·bodyMixinMethods(e){const·A={blob(){return·specConsumeBody(this,(e=>{let·A=bodyMimeType(this);if(A==="failure"){A=""}else·if(A){A=b(A)}return·new·h([e],{type:A})}),e)},arrayBuffer(){return·specConsumeBody(this,(e=>new·Uint8Array(e).buffer),e)},text(){return·specConsumeBody(this,utf8DecodeBytes,e)},json(){return·specConsumeBody(this,parseJSONFromBytes,e)},async·formData(){u.brandCheck(this,e);throwIfAborted(this[l]);const·A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){const·e={};for(const[A,t]of·this.headers)e[A.toLowerCase()]=t;const·A=new·E;let·t;try{t=new·r({headers:e,preservePath:true})}catch(e){throw·new·Q(`${e}`,"AbortError")}t.on("field",((e,t)=>{A.append(e,t)}));t.on("file",((e,t,r,s,o)=>{const·n=[];if(s==="base64"||s.toLowerCase()==="base64"){let·s="";t.on("data",(e=>{s+=e.toString().replace(/[\r\n]/gm,"");const·A=s.length-s.length%4;n.push(Buffer.from(s.slice(0,A),"base64"));s=s.slice(A)}));t.on("end",(()=>{n.push(Buffer.from(s,"base64"));A.append(e,new·k(n,r,{type:o}))}))}else{t.on("data",(e=>{n.push(e)}));t.on("end",(()=>{A.append(e,new·k(n,r,{type:o}))}))}}));const·s=new·Promise(((e,A)=>{t.on("finish",e);t.on("error",(e=>A(new·TypeError(e))))}));if(this.body!==null)for·await(const·e·of·consumeBody(this[l].body))t.write(e);t.end();await·s;return·A}else·if(/application\/x-www-form-urlencoded/.test(A)){let·e;try{let·A="";const·t=new·TextDecoder("utf-8",{ignoreBOM:true});for·await(const·e·of·consumeBody(this[l].body)){if(!m(e)){throw·new·TypeError("Expected·Uint8Array·chunk")}A+=t.decode(e,{stream:true})}A+=t.decode();e=new·URLSearchParams(A)}catch(e){throw·Object.assign(new·TypeError,{cause:e})}const·A=new·E;for(const[t,r]of·e){A.append(t,r)}return·A}else{await·Promise.resolve();throwIfAborted(this[l]);throw·u.errors.except
|
NPM test:
dist/index.js#L3
Replace `/*!·ws.·MIT·License.·Einar·Otto·Stangvik·<einaros@gmail.com>·*/o[s-4]=this.maskKey[0];o[s-3]=this.maskKey[1];o[s-2]=this.maskKey[2];o[s-1]=this.maskKey[3];o[1]=t;if(t===126){o.writeUInt16BE(A,2)}else·if(t===127){o[2]=o[3]=0;o.writeUIntBE(A,4,6)}o[1]|=128;for(let·e=0;e<A;e++){o[s+e]=this.frameData[e]^this.maskKey[e%4]}return·o}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},4336:(e,A,t)=>{"use·strict";const{Writable:r}=t(2203);const·s=t(1637);const{parserStates:o,opcodes:n,states:i,emptyBuffer:a}=t(5580);const{kReadyState:c,kSentClose:g,kResponse:E,kReceivedClose:l}=t(3311);const{isValidStatusCode:u,failWebsocketConnection:Q,websocketMessageReceived:C}=t(5909);const{WebsocketFrameSend:h}=t(5756);const·B={};B.ping=s.channel("undici:websocket:ping");B.pong=s.channel("undici:websocket:pong");class·ByteParser·extends·r{#n=[];#i=0;#a=o.INFO;#c={};#g=[];constructor(e){super();this.ws=e}_write(e,A,t){this.#n.push(e);this.#i+=e.length;this.run(t)}run(e){while(true){if(this.#a===o.INFO){if(this.#i<2){return·e()}const·A=this.consume(2);this.#c.fin=(A[0]&128)!==0;this.#c.opcode=A[0]&15;this.#c.originalOpcode??=this.#c.opcode;this.#c.fragmented=!this.#c.fin&&this.#c.opcode!==n.CONTINUATION;if(this.#c.fragmented&&this.#c.opcode!==n.BINARY&&this.#c.opcode!==n.TEXT){Q(this.ws,"Invalid·frame·type·was·fragmented.");return}const·t=A[1]&127;if(t<=125){this.#c.payloadLength=t;this.#a=o.READ_DATA}else·if(t===126){this.#a=o.PAYLOADLENGTH_16}else·if(t===127){this.#a=o.PAYLOADLENGTH_64}if(this.#c.fragmented&&t>125){Q(this.ws,"Fragmented·frame·exceeded·125·bytes.");return}else·if((this.#c.opcode===n.PING||this.#c.opcode===n.PONG||this.#c.opcode===n.CLOSE)&&t>125){Q(this.ws,"Payload·length·for·control·frame·exceeded·125·bytes.");return}else·if(this.#c.opcode===n.CLOSE){if(t===1){Q(this.ws,"Received·close·frame·with·a·1-byte·body.");return}const·e=this.consume(t);this.#c.closeInfo=this.parseCloseBody(false,e);if(!this.ws[g]){const·e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#c.closeInfo.code,0);const·A=new·h(e);this.ws[E].socket.write(A.createFrame(n.CLOSE),(e=>{if(!e){this.ws[g]=true}}))}this.ws[c]=i.CLOSING;this.ws[l]=true;this.end();return}else·if(this.#c.opcode===n.PING){const·A=this.consume(t);if(!this.ws[l]){const·e=new·h(A);this.ws[E].socket.write(e.createFrame(n.PONG));if(B.ping.hasSubscribers){B.ping.publish({payload:A})}}this.#a=o.INFO;if(this.#i>0){continue}else{e();return}}else·if(this.#c.opcode===n.PONG){const·A=this.consume(t);if(B.pong.hasSubscribers){B.pong.publish({payload:A})}if(this.#i>0){continue}else{e();return}}}else·if(this.#a===o.PAYLOADLENGTH_16){if(this.#i<2){return·e()}const·A=this.consume(2);this.#c.payloadLength=A.readUInt16BE(0);this.#a=o.READ_DATA}else·if(this.#a===o.PAYLOADLENGTH_64){if(this.#i<8){return·e()}const·A=this.consume(8);const·t=A.readUInt32BE(0);if(t>2**31-1){Q(this.ws,"Received·payload·length·>·2^31·bytes.");return}const·r=A.readUInt32BE(4);this.#c.payloadLength=(t<<8)+r;this.#a=o.READ_DATA}else·if(this.#a===o.READ_DATA){if(this.#i<this.#c.payloadLength){return·e()}else·if(this.#i>=this.#c.payloadLength){const·e=this.consume(this.#c.payloadLength);this.#g.push(e);if(!this.#c.fragmented||this.#c.fin&&this.#c.opcode===n.CONTINUATION){const·e=Buffer.concat(this.#g);C(this.ws,this.#c.originalOpcode,e);this.#c={};this.#g.length=0}this.#a=o.INFO}}if(this.#i>0){continue}else{e();break}}}consume(e){if(e>this.#i){return·null}else·if(e===0){return·a}if(this.#n[0].length===e){this.#i-=this.#n[0].length;return·this.#n.shift()}const·A=Buffer.allocUnsafe(e);let·t=0;while(t!==e){const·r=this.#n[0];const{length:s}=r;if(s+t===e){A.set(this.#n.shift(),t);break}else·if(s+t>e){A.set(r.subarray(0,e-t),t);this.#n[0]=r.subarray(e-t);break}else{A.set(this.#n.shift(),t);t+=r.length}}this.#i-=e;return·A}parseCloseBody(e,A){let·t;if(A.length>=2){t=A.readUInt16BE(0)}if(e){if(!u(t)){return·null}return{code:t}}let·r=A.subarray(2);if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}if(t!==undefined&&!u(t)){return·null}try{r=new·TextDecoder("utf-8",{fatal:true}).decode(r)}catch{return·null}return{code:t,reason:r}}get·c
|
NPM test:
dist/index.js#L4
Insert `⏎`
|
NPM test:
dist/sourcemap-register.js#L1
Replace `(()=>{var·e={296:e=>{var·r=Object.prototype.toString;var·n=typeof·Buffer!=="undefined"&&typeof·Buffer.alloc==="function"&&typeof·Buffer.allocUnsafe==="function"&&typeof·Buffer.from==="function";function·isArrayBuffer(e){return·r.call(e).slice(8,-1)==="ArrayBuffer"}function·fromArrayBuffer(e,r,t){r>>>=0;var·o=e.byteLength-r;if(o<0){throw·new·RangeError("'offset'·is·out·of·bounds")}if(t===undefined){t=o}else{t>>>=0;if(t>o){throw·new·RangeError("'length'·is·out·of·bounds")}}return·n?Buffer.from(e.slice(r,r+t)):new·Buffer(new·Uint8Array(e.slice(r,r+t)))}function·fromString(e,r){if(typeof·r!=="string"||r===""){r="utf8"}if(!Buffer.isEncoding(r)){throw·new·TypeError('"encoding"·must·be·a·valid·string·encoding')}return·n?Buffer.from(e,r):new·Buffer(e,r)}function·bufferFrom(e,r,t){if(typeof·e==="number"){throw·new·TypeError('"value"·argument·must·not·be·a·number')}if(isArrayBuffer(e)){return·fromArrayBuffer(e,r,t)}if(typeof·e==="string"){return·fromString(e,r)}return·n?Buffer.from(e):new·Buffer(e)}e.exports=bufferFrom},599:(e,r,n)=>{e=n.nmd(e);var·t=n(927).SourceMapConsumer;var·o=n(928);var·i;try{i=n(896);if(!i.existsSync||!i.readFileSync){i=null}}catch(e){}var·a=n(296);function·dynamicRequire(e,r){return·e.require(r)}var·u=false;var·s=false;var·l=false;var·c="auto";var·p={};var·f={};var·g=/^data:application\/json[^,]+base64,/;var·d=[];var·h=[];function·isInBrowser(){if(c==="browser")return·true;if(c==="node")return·false;return·typeof·window!=="undefined"&&typeof·XMLHttpRequest==="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function·hasGlobalProcessEventEmitter(){return·typeof·process==="object"&&process!==null&&typeof·process.on==="function"}function·globalProcessVersion(){if(typeof·process==="object"&&process!==null){return·process.version}else{return""}}function·globalProcessStderr(){if(typeof·process==="object"&&process!==null){return·process.stderr}}function·globalProcessExit(e){if(typeof·process==="object"&&process!==null&&typeof·process.exit==="function"){return·process.exit(e)}}function·handlerExec(e){return·function(r){for(var·n=0;n<e.length;n++){var·t=e[n](r);if(t){return·t}}return·null}}var·m=handlerExec(d);d.push((function(e){e=e.trim();if(/^file:/.test(e)){e=e.replace(/file:\/\/\/(\w:)?/,(function(e,r){return·r?"":"/"}))}if(e·in·p){return·p[e]}var·r="";try{if(!i){var·n=new·XMLHttpRequest;n.open("GET",e,false);n.send(null);if(n.readyState===4&&n.status===200){r=n.responseText}}else·if(i.existsSync(e)){r=i.readFileSync(e,"utf8")}}catch(e){}return·p[e]=r}));function·supportRelativeURL(e,r){if(!e)return·r;var·n=o.dirname(e);var·t=/^\w+:\/\/[^\/]*/.exec(n);var·i=t?t[0]:"";var·a=n.slice(i.length);if(i&&/^\/\w\:/.test(a)){i+="/";return·i+o.resolve(n.slice(i.length),r).replace(/\\/g,"/")}return·i+o.resolve(n.slice(i.length),r)}function·retrieveSourceMapURL(e){var·r;if(isInBrowser()){try{var·n=new·XMLHttpRequest;n.open("GET",e,false);n.send(null);r=n.readyState===4?n.responseText:null;var·t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t){return·t}}catch(e){}}r=m(e);var·o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;var·i,a;while(a=o.exec(r))i=a;if(!i)return·null;return·i[1]}var·v=handlerExec(h);h.push((function(e){var·r=retrieveSourceMapURL(e);if(!r)return·null;var·n;if(g.test(r)){var·t=r.slice(r.indexOf(",")+1);n=a(t,"base64").toString();r=e}else{r=supportRelativeURL(e,r);n=m(r)}if(!n){return·null}return{url:r,map:n}}));function·mapSourcePosition(e){var·r=f[e.source];if(!r){var·n=v(e.source);if(n){r=f[e.source]={url:n.url,map:new·t(n.map)};if(r.map.sourcesContent){r.map.sources.forEach((function(e,n){var·t=r.map.sourcesContent[n];if(t){var·o=supportRelativeURL(r.url,e);p[o]=t}}))}}else{r=f[e.source]={url:null,map:null}}}if(r&&r.map&&typeof·r.map.originalPositionFor==="function"){var·o=r.map.originalPositionFor(e);if(o.source!==null){o.source=supportRelativeURL(r.url,o.source);return·o}}return·e}function·mapEvalOrigin(e){var·r=/^eval·at·([^(]+)·\((.+):(\d+):(\d+)\)$/
|
NPM test
Process completed with exit code 1.
|
Loading