action-setup/dist/index.js

1 line
209 KiB
JavaScript
Raw Permalink Normal View History

2020-10-05 22:51:43 +08:00
module.exports=function(n,e){"use strict";var f={};function __webpack_require__(e){if(f[e]){return f[e].exports}var r=f[e]={i:e,l:false,exports:{}};var l=true;try{n[e].call(r.exports,r,r.exports,__webpack_require__);l=false}finally{if(l)delete f[e]}r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(984)}return startup()}({15:function(n){"use strict";n.exports=function generate_comment(n,e,f){var r=" ";var l=n.schema[e];var s=n.errSchemaPath+"/"+e;var v=!n.opts.allErrors;var c=n.util.toQuotedString(l);if(n.opts.$comment===true){r+=" console.log("+c+");"}else if(typeof n.opts.$comment=="function"){r+=" self._opts.$comment("+c+", "+n.util.toQuotedString(s)+", validate.root.schema);"}return r}},23:function(n,e,f){"use strict";var r=f(636);function resolveYamlBoolean(n){if(n===null)return false;var e=n.length;return e===4&&(n==="true"||n==="True"||n==="TRUE")||e===5&&(n==="false"||n==="False"||n==="FALSE")}function constructYamlBoolean(n){return n==="true"||n==="True"||n==="TRUE"}function isBoolean(n){return Object.prototype.toString.call(n)==="[object Boolean]"}n.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(n){return n?"true":"false"},uppercase:function(n){return n?"TRUE":"FALSE"},camelcase:function(n){return n?"True":"False"}},defaultStyle:"lowercase"})},43:function(n,e,f){"use strict";var r=f(379),l=f(953),s=f(708),v=f(62);var c=f(687);var p=l.ucs2length;var b=f(926);var g=s.Validation;n.exports=compile;function compile(n,e,f,i){var w=this,d=this._opts,A=[undefined],j={},E=[],F={},O=[],R={},z=[];e=e||{schema:n,refVal:A,refs:j};var I=checkCompiling.call(this,n,e,i);var U=this._compilations[I.index];if(I.compiling)return U.callValidate=callValidate;var C=this._formats;var q=this.RULES;try{var Q=localCompile(n,e,f,i);U.validate=Q;var B=U.callValidate;if(B){B.schema=Q.schema;B.errors=null;B.refs=Q.refs;B.refVal=Q.refVal;B.root=Q.root;B.$async=Q.$async;if(d.sourceCode)B.source=Q.source}return Q}finally{endCompiling.call(this,n,e,i)}function callValidate(){var n=U.validate;var e=n.apply(this,arguments);callValidate.errors=n.errors;return e}function localCompile(n,f,v,i){var F=!f||f&&f.schema==n;if(f.schema!=e.schema)return compile.call(w,n,f,v,i);var R=n.$async===true;var I=c({isTop:true,schema:n,isRoot:F,baseId:i,root:f,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:s.MissingRef,RULES:q,validate:c,util:l,resolve:r,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:d,formats:C,logger:w.logger,self:w});I=vars(A,refValCode)+vars(E,patternCode)+vars(O,defaultCode)+vars(z,customRuleCode)+I;if(d.processCode)I=d.processCode(I,n);var U;try{var Q=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",I);U=Q(w,q,C,e,A,O,z,b,p,g);A[0]=U}catch(n){w.logger.error("Error compiling schema, function code:",I);throw n}U.schema=n;U.errors=null;U.refs=j;U.refVal=A;U.root=F?U:f;if(R)U.$async=true;if(d.sourceCode===true){U.source={code:I,patterns:E,defaults:O}}return U}function resolveRef(n,l,s){l=r.url(n,l);var v=j[l];var c,p;if(v!==undefined){c=A[v];p="refVal["+v+"]";return resolvedRef(c,p)}if(!s&&e.refs){var b=e.refs[l];if(b!==undefined){c=e.refVal[b];p=addLocalRef(l,c);return resolvedRef(c,p)}}p=addLocalRef(l);var g=r.call(w,localCompile,e,l);if(g===undefined){var i=f&&f[l];if(i){g=r.inlineRef(i,d.inlineRefs)?i:compile.call(w,i,e,f,n)}}if(g===undefined){removeLocalRef(l)}else{replaceLocalRef(l,g);return resolvedRef(g,p)}}function addLocalRef(n,e){var f=A.length;A[f]=e;j[n]=f;return"refVal"+f}function removeLocalRef(n){delete j[n]}function replaceLocalRef(n,e){var f=j[n];A[f]=e}function resolvedRef(n,e){return typeof n=="object"||typeof n=="boolean"?{code:e,schema:n,inline:true}:{code:e,$async:n&&!!n.$async}}function usePattern(n){var e=F[n];if(e===undefined){e=F[n]=E.length;E[e]=n}return"pattern"+e}function useDefault(n){switch(typeof n){case"boole