chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
require('./sourcemap-register.js');(()=>{var __webpack_modules__={27799:function(t,r,o){"use strict";var a=this&&this.__createBinding||(Object.create?function(t,r,o,a){if(a===undefined)a=o;var i=Object.getOwnPropertyDescriptor(r,o);if(!i||("get"in i?!r.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return r[o]}}}Object.defineProperty(t,a,i)}:function(t,r,o,a){if(a===undefined)a=o;t[a]=r[o]});var i=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var p=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o))a(r,t,o);i(r,t);return r};var c=this&&this.__awaiter||function(t,r,o,a){function adopt(t){return t instanceof o?t:new o((function(r){r(t)}))}return new(o||(o=Promise))((function(o,i){function fulfilled(t){try{step(a.next(t))}catch(t){i(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){i(t)}}function step(t){t.done?o(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.saveCache=r.restoreCache=r.isFeatureAvailable=r.ReserveCacheError=r.ValidationError=void 0;const d=p(o(42186));const A=p(o(71017));const l=p(o(91518));const u=p(o(98245));const b=o(56490);class ValidationError extends Error{constructor(t){super(t);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}r.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(t){super(t);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}r.ReserveCacheError=ReserveCacheError;function checkPaths(t){if(!t||t.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(t){if(t.length>512){throw new ValidationError(`Key Validation Error: ${t} cannot be larger than 512 characters.`)}const r=/^[^,]*$/;if(!r.test(t)){throw new ValidationError(`Key Validation Error: ${t} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}r.isFeatureAvailable=isFeatureAvailable;function restoreCache(t,r,o,a,i=false){return c(this,void 0,void 0,(function*(){checkPaths(t);o=o||[];const p=[r,...o];d.debug("Resolved Keys:");d.debug(JSON.stringify(p));if(p.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const t of p){checkKey(t)}const c=yield l.getCompressionMethod();let M="";try{const r=yield u.getCacheEntry(p,t,{compressionMethod:c,enableCrossOsArchive:i});if(!(r===null||r===void 0?void 0:r.archiveLocation)){return undefined}if(a===null||a===void 0?void 0:a.lookupOnly){d.info("Lookup only - skipping download");return r.cacheKey}M=A.join(yield l.createTempDirectory(),l.getCacheFileName(c));d.debug(`Archive Path: ${M}`);yield u.downloadCache(r.archiveLocation,M,a);if(d.isDebug()){yield(0,b.listTar)(M,c)}const o=l.getArchiveFileSizeInBytes(M);d.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);yield(0,b.extractTar)(M,c);d.info("Cache restored successfully");return r.cacheKey}catch(t){const r=t;if(r.name===ValidationError.name){throw t}else{d.warning(`Failed to restore: ${t.message}`)}}finally{try{yield l.unlinkFile(M)}catch(t){d.debug(`Failed to delete archive: ${t}`)}}return undefined}))}r.restoreCache=restoreCache;function saveCache(t,r,o,a=false){var i,p,M,m,z;return c(this,void 0,void 0,(function*(){checkPaths(t);checkKey(r);const c=yield l.getCompressionMethod();let O=-1;const h=yield l.resolvePaths(t);d.debug("Cache Paths:");d.debug(`${JSON.stringify(h)}`);if(h.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const g=yield l.createTempDirectory();const E=A.join(g,l.getCacheFileName(c));d.debug(`Archive Path: ${E}`);try{yield(0,b.createTar)(g,h,c);if(d.isDebug()){yield(0,b.listTar)(E,c)}const A=10*1024*1024*1024;const q=l.getArchiveFileSizeInBytes(E);d.debug(`File Size: ${q}`);if(q>A&&!l.isGhes()){throw new Error(`Cache size of ~${Math.round(q/(1024*1024))} MB (${q} B) is over the 10GB limit, not saving cache.`)}d.debug("Reserving Cache");const y=yield u.reserveCache(r,t,{compressionMethod:c,enableCrossOsArchive:a,cacheSize:q});if((i=y===null||y===void 0?void 0:y.result)===null||i===void 0?void 0:i.cacheId){O=(p=y===null||y===void 0?void 0:y.result)===null||p===void 0?void 0:p.cacheId}else if((y===null||y===void 0?void 0:y.statusCode)===400){throw new Error((m=(M=y===null||y===void 0?void 0:y.error)===null||M===void 0?void 0:M.message)!==null&&m!==void 0?m:`Cache size of ~${Math.round(q/(1024*1024))} MB (${q} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${r}, another job may be creating this cache. More details: ${(z=y===nullLine truncated
|
||||
require('./sourcemap-register.js');(()=>{var __webpack_modules__={27799:function(t,r,o){"use strict";var a=this&&this.__createBinding||(Object.create?function(t,r,o,a){if(a===undefined)a=o;var i=Object.getOwnPropertyDescriptor(r,o);if(!i||("get"in i?!r.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return r[o]}}}Object.defineProperty(t,a,i)}:function(t,r,o,a){if(a===undefined)a=o;t[a]=r[o]});var i=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var p=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var o in t)if(o!=="default"&&Object.prototype.hasOwnProperty.call(t,o))a(r,t,o);i(r,t);return r};var c=this&&this.__awaiter||function(t,r,o,a){function adopt(t){return t instanceof o?t:new o((function(r){r(t)}))}return new(o||(o=Promise))((function(o,i){function fulfilled(t){try{step(a.next(t))}catch(t){i(t)}}function rejected(t){try{step(a["throw"](t))}catch(t){i(t)}}function step(t){t.done?o(t.value):adopt(t.value).then(fulfilled,rejected)}step((a=a.apply(t,r||[])).next())}))};Object.defineProperty(r,"__esModule",{value:true});r.saveCache=r.restoreCache=r.isFeatureAvailable=r.ReserveCacheError=r.ValidationError=void 0;const d=p(o(42186));const A=p(o(71017));const l=p(o(91518));const u=p(o(98245));const b=o(56490);class ValidationError extends Error{constructor(t){super(t);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}r.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(t){super(t);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}r.ReserveCacheError=ReserveCacheError;function checkPaths(t){if(!t||t.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(t){if(t.length>512){throw new ValidationError(`Key Validation Error: ${t} cannot be larger than 512 characters.`)}const r=/^[^,]*$/;if(!r.test(t)){throw new ValidationError(`Key Validation Error: ${t} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}r.isFeatureAvailable=isFeatureAvailable;function restoreCache(t,r,o,a,i=false){return c(this,void 0,void 0,(function*(){checkPaths(t);o=o||[];const p=[r,...o];d.debug("Resolved Keys:");d.debug(JSON.stringify(p));if(p.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const t of p){checkKey(t)}const c=yield l.getCompressionMethod();let M="";try{const r=yield u.getCacheEntry(p,t,{compressionMethod:c,enableCrossOsArchive:i});if(!(r===null||r===void 0?void 0:r.archiveLocation)){return undefined}if(a===null||a===void 0?void 0:a.lookupOnly){d.info("Lookup only - skipping download");return r.cacheKey}M=A.join(yield l.createTempDirectory(),l.getCacheFileName(c));d.debug(`Archive Path: ${M}`);yield u.downloadCache(r.archiveLocation,M,a);if(d.isDebug()){yield(0,b.listTar)(M,c)}const o=l.getArchiveFileSizeInBytes(M);d.info(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);yield(0,b.extractTar)(M,c);d.info("Cache restored successfully");return r.cacheKey}catch(t){const r=t;if(r.name===ValidationError.name){throw t}else{d.warning(`Failed to restore: ${t.message}`)}}finally{try{yield l.unlinkFile(M)}catch(t){d.debug(`Failed to delete archive: ${t}`)}}return undefined}))}r.restoreCache=restoreCache;function saveCache(t,r,o,a=false){var i,p,M,m,z;return c(this,void 0,void 0,(function*(){checkPaths(t);checkKey(r);const c=yield l.getCompressionMethod();let O=-1;const h=yield l.resolvePaths(t);d.debug("Cache Paths:");d.debug(`${JSON.stringify(h)}`);if(h.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const g=yield l.createTempDirectory();const E=A.join(g,l.getCacheFileName(c));d.debug(`Archive Path: ${E}`);try{yield(0,b.createTar)(g,h,c);if(d.isDebug()){yield(0,b.listTar)(E,c)}const A=10*1024*1024*1024;const q=l.getArchiveFileSizeInBytes(E);d.debug(`File Size: ${q}`);if(q>A&&!l.isGhes()){throw new Error(`Cache size of ~${Math.round(q/(1024*1024))} MB (${q} B) is over the 10GB limit, not saving cache.`)}d.debug("Reserving Cache");const y=yield u.reserveCache(r,t,{compressionMethod:c,enableCrossOsArchive:a,cacheSize:q});if((i=y===null||y===void 0?void 0:y.result)===null||i===void 0?void 0:i.cacheId){O=(p=y===null||y===void 0?void 0:y.result)===null||p===void 0?void 0:p.cacheId}else if((y===null||y===void 0?void 0:y.statusCode)===400){throw new Error((m=(M=y===null||y===void 0?void 0:y.error)===null||M===void 0?void 0:M.message)!==null&&m!==void 0?m:`Cache size of ~${Math.round(q/(1024*1024))} MB (${q} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${r}, another job may be creating this cache. More details: ${(z=y===nullLine truncated
|
||||
/*!
|
||||
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user