action-setup/dist/index.js

2 lines
378 KiB
JavaScript
Raw Normal View History

2020-05-08 14:12:17 +08:00
require('./sourcemap-register.js');module.exports=function(e,i){"use strict";var n={};function __webpack_require__(i){if(n[i]){return n[i].exports}var t=n[i]={i:i,l:false,exports:{}};e[i].call(t.exports,t,t.exports,__webpack_require__);t.l=true;return t.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(803)}return startup()}({0:function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ref="301414cec74a2b6b63c95b42f2ad1790ccb980ed";i.url=`https://raw.githubusercontent.com/pnpm/self-installer/${i.ref}/install.js`;i.default=i.url},1:function(e){"use strict";class CancelError extends Error{constructor(){super("Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return function(){const i=[].slice.apply(arguments);return new PCancelable((n,t,a)=>{i.push(a);e.apply(null,i).then(n,t)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._promise=new Promise((i,n)=>{this._reject=n;return e(e=>{this._isPending=false;i(e)},e=>{this._isPending=false;n(e)},e=>{this._cancelHandlers.push(e)})})}then(e,i){return this._promise.then(e,i)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;this._reject(new CancelError)}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},2:function(e,i,n){"use strict";const t=n(747);const a=n(622);const r=n(210);const o={mode:511&~process.umask(),fs:t};const s=e=>{if(process.platform==="win32"){const i=/[<>:"|?*]/.test(e.replace(a.parse(e).root,""));if(i){const i=new Error(`Path contains invalid characters: ${e}`);i.code="EINVAL";throw i}}};e.exports=((e,i)=>Promise.resolve().then(()=>{s(e);i=Object.assign({},o,i);const n=r(i.fs.mkdir);const t=r(i.fs.stat);const c=e=>{return n(e,i.mode).then(()=>e).catch(i=>{if(i.code==="ENOENT"){if(i.message.includes("null bytes")||a.dirname(e)===e){throw i}return c(a.dirname(e)).then(()=>c(e))}return t(e).then(i=>i.isDirectory()?e:Promise.reject()).catch(()=>{throw i})})};return c(a.resolve(e))}));e.exports.sync=((e,i)=>{s(e);i=Object.assign({},o,i);const n=e=>{try{i.fs.mkdirSync(e,i.mode)}catch(t){if(t.code==="ENOENT"){if(t.message.includes("null bytes")||a.dirname(e)===e){throw t}n(a.dirname(e));return n(e)}try{if(!i.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw t}}return e};return n(a.resolve(e))})},3:function(e,i,n){var t=n(669);var a=n(45);var r=n(791);var o=n(286);var s=n(441).Writable;var c=n(441).PassThrough;var p=function(){};var l=function(e){e&=511;return e&&512-e};var u=function(e,i){var n=new d(e,i);n.end();return n};var f=function(e,i){if(i.path)e.name=i.path;if(i.linkpath)e.linkname=i.linkpath;if(i.size)e.size=parseInt(i.size,10);e.pax=i;return e};var d=function(e,i){this._parent=e;this.offset=i;c.call(this)};t.inherits(d,c);d.prototype.destroy=function(e){this._parent.destroy(e)};var m=function(e){if(!(this instanceof m))return new m(e);s.call(this,e);e=e||{};this._offset=0;this._buffer=a();this._missing=0;this._partial=false;this._onparse=p;this._header=null;this._stream=null;this._overflow=null;this._cb=null;this._locked=false;this._destroyed=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;var i=this;var n=i._buffer;var t=function(){i._continue()};var c=function(e){i._locked=false;if(e)return i.destroy(e);if(!i._stream)t()};var h=function(){i._stream=null;var e=l(i._header.size);if(e)i._parse(e,x);else i._parse(512,w);if(!i._locked)t()};var x=function(){i._buffer.consume(l(i._header.size));i._parse(512,w);t()};var v=function(){var e=i._header.size;i._paxGlobal=o.decodePax(n.slice(0,e));n.consume(e);h()};var b=function(){var e=i._header.size;i._pax=o.decodePax(n.slice(0,e));if(i._paxGlobal)i._pa
//# sourceMappingURL=index.js.map