Update gradle-actions-caching library to v0.8.0 (#993)

Updates to the latest gradle-actions-caching library, bringing experimental support for caching of project content.
This commit is contained in:
Bot Githubaction authored and GitHub committed 2026-06-16 18:07:10 +00:00
1 parent 54d3208a40
commit bbaaec0da2
3 files changed
+15 -3

No files matched your search

+12
View File
@@ -37,6 +37,8 @@ export declare interface CacheOptions {
strictMatch: boolean; strictMatch: boolean;
cleanup: 'always' | 'on-success' | 'never'; cleanup: 'always' | 'on-success' | 'never';
encryptionKey?: string; encryptionKey?: string;
develocityAccessToken?: string;
develocityServerUrl?: string;
includes: string[]; includes: string[];
excludes: string[]; excludes: string[];
} }
@@ -45,12 +47,22 @@ export declare interface CacheOptions {
export declare interface CacheReport { export declare interface CacheReport {
status: CacheStatus; status: CacheStatus;
cleanup?: CacheCleanupStatus; cleanup?: CacheCleanupStatus;
projectCache?: ProjectCacheStatus;
entries: CacheEntryReport[]; entries: CacheEntryReport[];
} }
/** @public */ /** @public */
export declare type CacheStatus = 'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available'; export declare type CacheStatus = 'enabled' | 'read-only' | 'write-only' | 'disabled' | 'disabled-existing-home' | 'not-available';
/**
* Status of project-entry caching (build-logic artifacts + configuration-cache data) for a run.
* The first three are set on restore (always ungated); the rest are set on save and reflect the
* two-tier gate (opt-in + Develocity trial, then encryption key + Gradle version). Still beta.
*
* @public
*/
declare type ProjectCacheStatus = 'not-enabled' | 'trial-expired' | 'trial-not-licensed' | 'no-encryption-key' | 'enabled';
/** @public */ /** @public */
export declare function restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>; export declare function restore(gradleUserHome: string, cacheOptions: CacheOptions): Promise<void>;
+2 -2
View File
@@ -1,2 +1,2 @@
const a0_0x1bd7a2=a0_0x2cb3;(function(_0x56f501,_0x179f84){const _0x46a052=a0_0x2cb3,_0x2d7dec=_0x56f501();while(!![]){try{const _0x3d411c=parseInt(_0x46a052(0x1160))/0x1+parseInt(_0x46a052(0x50a))/0x2*(-parseInt(_0x46a052(0x12a8))/0x3)+parseInt(_0x46a052(0x160a))/0x4+parseInt(_0x46a052(0x833))/0x5+parseInt(_0x46a052(0x1207))/0x6+parseInt(_0x46a052(0xd9f))/0x7+-parseInt(_0x46a052(0x529))/0x8*(parseInt(_0x46a052(0x601))/0x9);if(_0x3d411c===_0x179f84)break;else _0x2d7dec['push'](_0x2d7dec['shift']());}catch(_0x2c27a4){_0x2d7dec['push'](_0x2d7dec['shift']());}}}(a0_0x5878,0xcea34));import*as a0_0x5527ee from'os';import a0_0x5b6b58,{EOL as a0_0x130149}from'os';import*as a0_0x79e382 from'crypto';import*as a0_0x2a5768 from'fs';import a0_0x22a574,{promises,writeFileSync,existsSync,readFileSync}from'fs';import*as a0_0x15ae89 from'path';import a0_0x195bed from'path';import*as a0_0x442a45 from'http';import a0_0x5711b4 from'http';import*as a0_0x48a11e from'https';import a0_0xcb849 from'https';import a0_0x2d67a2 from'net';import a0_0x1c135b from'tls';import*as a0_0x2ffe87 from'events';import a0_0x37cc87,{EventEmitter}from'events';import a0_0x9c5225,{ok}from'assert';import*as a0_0x34090f from'util';import a0_0x504494 from'util';import a0_0x22a2d4 from'node:assert';import a0_0xb73604 from'node:net';import a0_0x4e3b64 from'node:http';import a0_0x342e8b,{Transform,Readable as a0_0x30f2c6}from'node:stream';import a0_0x10b5be from'node:buffer';import a0_0x4bf44a,{inspect}from'node:util';import a0_0x58740a from'node:querystring';import a0_0x4166fc from'node:events';import a0_0x4fab14 from'node:diagnostics_channel';import a0_0x204cf0 from'node:tls';import a0_0x2aded1 from'node:zlib';import a0_0x20d593 from'node:perf_hooks';import a0_0x2f58a6 from'node:util/types';import a0_0x180a6b from'node:worker_threads';import a0_0x582c3b from'node:url';import a0_0x5c863e from'node:async_hooks';import a0_0x1a08a7 from'node:console';import a0_0x19b828 from'node:dns';import a0_0x5db89b,{StringDecoder}from'string_decoder';import*as a0_0x54345f from'child_process';import{setTimeout as a0_0x5a7f3d}from'timers';import*as a0_0x550281 from'stream';import{Readable}from'stream';import a0_0x4ee6b8,{URL as a0_0x3bf3a5}from'url';import*as a0_0x12b669 from'buffer';import{Buffer as a0_0x48fdd3}from'buffer';import a0_0x462391,{EOL as a0_0xc62905}from'node:os';import a0_0x3888c2 from'node:process';import a0_0x58cc3a from'node:https';import a0_0x189fcf from'tty';import{createHmac}from'node:crypto';import a0_0x5cef57 from'node:fs';function toCommandValue(_0x2a7a97){const _0x267496=a0_0x2cb3;if(_0x2a7a97===null||_0x2a7a97===undefined)return'';else{if(typeof _0x2a7a97===_0x267496(0x7b9)||_0x2a7a97 instanceof String)return _0x2a7a97;}return JSON[_0x267496(0x350)](_0x2a7a97);}function toCommandProperties(_0x73c5c7){const _0x307137=a0_0x2cb3;if(!Object[_0x307137(0xb4b)](_0x73c5c7)['length'])return{};return{'title':_0x73c5c7['title'],'file':_0x73c5c7[_0x307137(0x16b7)],'line':_0x73c5c7['startLine'],'endLine':_0x73c5c7[_0x307137(0x7a8)],'col':_0x73c5c7[_0x307137(0xa6d)],'endColumn':_0x73c5c7[_0x307137(0x1692)]};}function issueCommand(_0x287431,_0x475d0f,_0x355bba){const _0x2dbd9f=a0_0x2cb3,_0x5cfff7=new Command(_0x287431,_0x475d0f,_0x355bba);process[_0x2dbd9f(0x14d5)][_0x2dbd9f(0x10dc)](_0x5cfff7[_0x2dbd9f(0x105d)]()+a0_0x5527ee[_0x2dbd9f(0x8cf)]);}function issue(_0x335c6d,_0x1d7af7=''){issueCommand(_0x335c6d,{},_0x1d7af7);}const CMD_STRING='::';class Command{constructor(_0x97db11,_0x52dc8e,_0x45637d){const _0x2a8ba7=a0_0x2cb3;!_0x97db11&&(_0x97db11=_0x2a8ba7(0x4b8)),this[_0x2a8ba7(0x11d5)]=_0x97db11,this['properties']=_0x52dc8e,this['message']=_0x45637d;}[a0_0x1bd7a2(0x105d)](){const _0x4a14a6=a0_0x1bd7a2;let _0x438344=CMD_STRING+this['command'];if(this[_0x4a14a6(0x6e0)]&&Object[_0x4a14a6(0xb4b)](this[_0x4a14a6(0x6e0)])[_0x4a14a6(0x908)]>0x0){_0x438344+='\x20';let _0x223f9f=!![];for(const _0x59e430 in this[_0x4a14a6(0x6e0)]){if(this[_0x4a14a6(0x6e0)][_0x4a14a6(0xb75)](_0x59e430)){const _0x3775f8=this[_0x4a14a6(0x6e0)][_0x59e430];_0x3775f8&&(_0x223f9f?_0x223f9f=![]:_0x438344+=',',_0x438344+=_0x59e430+'='+escapeProperty(_0x3775f8));}}}return _0x438344+=''+CMD_STRING+escapeData(this['message']),_0x438344;}}function escapeData(_0x115656){const _0x28d52c=a0_0x1bd7a2;return toCommandValue(_0x115656)[_0x28d52c(0x1589)](/%/g,_0x28d52c(0x914))[_0x28d52c(0x1589)](/\r/g,_0x28d52c(0xda5))[_0x28d52c(0x1589)](/\n/g,'%0A');}function escapeProperty(_0x456485){const _0x3e8611=a0_0x1bd7a2;return toCommandValue(_0x456485)[_0x3e8611(0x1589)](/%/g,_0x3e8611(0x914))[_0x3e8611(0x1589)](/\r/g,_0x3e8611(0xda5))[_0x3e8611(0x1589)](/\n/g,_0x3e8611(0x1477))[_0x3e8611(0x1589)](/:/g,_0x3e8611(0x495))[_0x3e8611(0x1589)](/,/g,_0x3e8611(0x7d5));}function issueFileCommand(_0x56eed7,_0x98fe28){const _0x150e68=a0_0x1bd7a2,_0x35d866=process.env[`GITHUB_${_0x56eed7}`];if(!_0x35d866)throw new Error(_0x150e68(0xe2d)+_0x56eed7);if(!a0_0x2a5768[_0x150e68(0x1394)](_0x35d866))throw new Error('Missing\x20fiLine truncated const a0_0x186cca=a0_0x3fae;(function(_0x19fbc1,_0xc9386e){const _0x154fda=a0_0x3fae,_0x9aa6cc=_0x19fbc1();while(!![]){try{const _0x30c0c0=parseInt(_0x154fda(0x930))/0x1+parseInt(_0x154fda(0x229))/0x2*(parseInt(_0x154fda(0x12e0))/0x3)+-parseInt(_0x154fda(0x72c))/0x4*(parseInt(_0x154fda(0xee5))/0x5)+-parseInt(_0x154fda(0x1219))/0x6+-parseInt(_0x154fda(0x593))/0x7+parseInt(_0x154fda(0x155a))/0x8*(-parseInt(_0x154fda(0xa2a))/0x9)+-parseInt(_0x154fda(0x17d5))/0xa*(-parseInt(_0x154fda(0x299))/0xb);if(_0x30c0c0===_0xc9386e)break;else _0x9aa6cc['push'](_0x9aa6cc['shift']());}catch(_0x365429){_0x9aa6cc['push'](_0x9aa6cc['shift']());}}}(a0_0xc33b,0xd3998));import*as a0_0x11ec7a from'os';import a0_0x407526,{EOL as a0_0x56c255}from'os';import*as a0_0x34a8db from'crypto';import*as a0_0x2465d1 from'fs';import a0_0x491e48,{promises,writeFileSync,existsSync,readFileSync}from'fs';import*as a0_0x12c453 from'path';import a0_0x5e2be1 from'path';import*as a0_0x1f93e4 from'http';import a0_0x3c0c86 from'http';import*as a0_0x40a420 from'https';import a0_0x20c5c3 from'https';import a0_0x48c06a from'net';import a0_0x1996ff from'tls';import*as a0_0x2c71f7 from'events';import a0_0x4d78b1,{EventEmitter}from'events';import a0_0x50eef2,{ok}from'assert';import*as a0_0x308e54 from'util';import a0_0x1ebf6b from'util';import a0_0x4d562a from'node:assert';import a0_0x5a0d2f from'node:net';import a0_0x2cc764 from'node:http';import a0_0xcd5e5c,{Transform,Readable as a0_0x41473a}from'node:stream';import a0_0x59b96b from'node:buffer';import a0_0x8886a9,{inspect}from'node:util';import a0_0x8fcf40 from'node:querystring';import a0_0x31458d from'node:events';import a0_0x4df72a from'node:diagnostics_channel';import a0_0x3c3aac from'node:tls';import a0_0x494a47 from'node:zlib';import a0_0x3adee7 from'node:perf_hooks';import a0_0x1333f4 from'node:util/types';import a0_0x4472d5 from'node:worker_threads';import a0_0x50823d from'node:url';import a0_0x16867d from'node:async_hooks';import a0_0x144526 from'node:console';import a0_0x16684c from'node:dns';import a0_0x4de31d,{StringDecoder}from'string_decoder';import*as a0_0x2ec908 from'child_process';import{setTimeout as a0_0x126f3f}from'timers';import*as a0_0x147022 from'stream';import{Readable}from'stream';import a0_0x1aa9d6,{URL as a0_0xd3dd58}from'url';import*as a0_0x17b8de from'buffer';import{Buffer as a0_0x5e373b}from'buffer';import a0_0xb7e8e4,{EOL as a0_0x1d98d2}from'node:os';import a0_0x5e83dd from'node:process';import a0_0x50ac5f from'node:https';import a0_0x9250bc from'tty';import{createHmac}from'node:crypto';import a0_0x5cd1c4 from'node:fs';import*as a0_0x3d41e3 from'zlib';function toCommandValue(_0xd5d341){const _0x44c259=a0_0x3fae;if(_0xd5d341===null||_0xd5d341===undefined)return'';else{if(typeof _0xd5d341==='string'||_0xd5d341 instanceof String)return _0xd5d341;}return JSON[_0x44c259(0x1000)](_0xd5d341);}function toCommandProperties(_0x22d617){const _0x375bf3=a0_0x3fae;if(!Object[_0x375bf3(0x109d)](_0x22d617)['length'])return{};return{'title':_0x22d617['title'],'file':_0x22d617[_0x375bf3(0x1724)],'line':_0x22d617[_0x375bf3(0x380)],'endLine':_0x22d617[_0x375bf3(0x120b)],'col':_0x22d617[_0x375bf3(0x54e)],'endColumn':_0x22d617[_0x375bf3(0xfd9)]};}function issueCommand(_0x12d293,_0x173108,_0x485840){const _0x1d914b=a0_0x3fae,_0x2ee01f=new Command(_0x12d293,_0x173108,_0x485840);process[_0x1d914b(0xbfb)]['write'](_0x2ee01f[_0x1d914b(0x10e3)]()+a0_0x11ec7a[_0x1d914b(0x590)]);}function issue(_0x245c3f,_0x79e7e5=''){issueCommand(_0x245c3f,{},_0x79e7e5);}const CMD_STRING='::';class Command{constructor(_0x48f6d6,_0x7305f5,_0x3c0e45){const _0x2ad1e8=a0_0x3fae;!_0x48f6d6&&(_0x48f6d6=_0x2ad1e8(0x14da)),this[_0x2ad1e8(0xc1a)]=_0x48f6d6,this[_0x2ad1e8(0x939)]=_0x7305f5,this['message']=_0x3c0e45;}[a0_0x186cca(0x10e3)](){const _0x2f08ba=a0_0x186cca;let _0x4c39d3=CMD_STRING+this['command'];if(this[_0x2f08ba(0x939)]&&Object[_0x2f08ba(0x109d)](this[_0x2f08ba(0x939)])['length']>0x0){_0x4c39d3+='\x20';let _0x56bfcb=!![];for(const _0x2f0fca in this[_0x2f08ba(0x939)]){if(this[_0x2f08ba(0x939)][_0x2f08ba(0x15bb)](_0x2f0fca)){const _0x2e9006=this[_0x2f08ba(0x939)][_0x2f0fca];_0x2e9006&&(_0x56bfcb?_0x56bfcb=![]:_0x4c39d3+=',',_0x4c39d3+=_0x2f0fca+'='+escapeProperty(_0x2e9006));}}}return _0x4c39d3+=''+CMD_STRING+escapeData(this['message']),_0x4c39d3;}}function escapeData(_0x4ee5ea){const _0x36a447=a0_0x186cca;return toCommandValue(_0x4ee5ea)['replace'](/%/g,_0x36a447(0xf1c))[_0x36a447(0x99c)](/\r/g,_0x36a447(0xb85))['replace'](/\n/g,_0x36a447(0xfdd));}function escapeProperty(_0xa7a933){const _0xc50725=a0_0x186cca;return toCommandValue(_0xa7a933)['replace'](/%/g,_0xc50725(0xf1c))['replace'](/\r/g,_0xc50725(0xb85))[_0xc50725(0x99c)](/\n/g,_0xc50725(0xfdd))[_0xc50725(0x99c)](/:/g,_0xc50725(0x297))[_0xc50725(0x99c)](/,/g,_0xc50725(0xcb7));}function issueFileCommand(_0x226e10,_0x165256){const _0x5648fe=a0_0x186cca,_0x1f0d20=process.env[`GITHUB_${_0x226e10}`];if(!_0x1f0d20)throw new Error(_0x5648fe(0xb1a)+_0x226e10);if(!a0_0x246Line truncated
()=>new ArrayBuffer(0x0));}function isJSONResponse(_0x35a3ca){const _0x163dc6=a0_0x1bd7a2;return _0x35a3ca[_0x163dc6(0x48b)]===_0x163dc6(0x32e)||_0x35a3ca[_0x163dc6(0x48b)]===_0x163dc6(0x1050);}function toErrorMessage(_0x3d27f0){const _0x507ba4=a0_0x1bd7a2;if(typeof _0x3d27f0===_0x507ba4(0x7b9))return _0x3d27f0;if(_0x3d27f0 instanceof ArrayBuffer)return'Unknown\x20error';if(_0x507ba4(0xdba)in _0x3d27f0){const _0x2f2cb2='documentation_url'in _0x3d27f0?_0x507ba4(0x157e)+_0x3d27f0[_0x507ba4(0x660)]:'';return Array[_0x507ba4(0xc9f)](_0x3d27f0[_0x507ba4(0x245)])?_0x3d27f0[_0x507ba4(0xdba)]+':\x20'+_0x3d27f0[_0x507ba4(0x245)]['map'](_0x5f1ffb=>JSON[_0x507ba4(0x350)](_0x5f1ffb))[_0x507ba4(0xea3)](',\x20')+_0x2f2cb2:''+_0x3d27f0['message']+_0x2f2cb2;}return _0x507ba4(0x847)+JSON[_0x507ba4(0x350)](_0x3d27f0);}function withDefaults$1(_0x251c3f,_0x1a8760){const _0x5a2f0c=a0_0x1bd7a2,_0x48a963=_0x251c3f[_0x5a2f0c(0x15fb)](_0x1a8760),_0x4d9022=function(_0x54c8bc,_0x11f126){const _0x4fa6e2=_0x5a2f0c,_0x520895=_0x48a963['merge'](_0x54c8bc,_0x11f126);if(!_0x520895[_0x4fa6e2(0x12f8)]||!_0x520895[_0x4fa6e2(0x12f8)][_0x4fa6e2(0xca2)])return fetchWrapper(_0x48a963[_0x4fa6e2(0x624)](_0x520895));const _0x22a61c=(_0x1188b0,_0x51508c)=>{const _0x4806ec=_0x4fa6e2;return fetchWrapper(_0x48a963[_0x4806ec(0x624)](_0x48a963[_0x4806ec(0xf11)](_0x1188b0,_0x51508c)));};return Object[_0x4fa6e2(0x9fc)](_0x22a61c,{'endpoint':_0x48a963,'defaults':withDefaults$1[_0x4fa6e2(0xe78)](null,_0x48a963)}),_0x520895[_0x4fa6e2(0x12f8)][_0x4fa6e2(0xca2)](_0x22a61c,_0x520895);};return Object[_0x5a2f0c(0x9fc)](_0x4d9022,{'endpoint':_0x48a963,'defaults':withDefaults$1[_0x5a2f0c(0xe78)](null,_0x48a963)});}var request=withDefaults$1(endpoint,defaults_default),VERSION$3=a0_0x1bd7a2(0xac2);function _buildMessageForResponseErrors(_0x36bb84){const _0x210d01=a0_0x1bd7a2;return _0x210d01(0x4b9)+_0x36bb84[_0x210d01(0x245)]['map'](_0x43ca44=>_0x210d01(0x157e)+_0x43ca44['message'])[_0x210d01(0xea3)]('\x0a');}var GraphqlResponseError=class extends Error{constructor(_0x614a92,_0x5cca33,_0x58c692){const _0x2ca2f1=a0_0x1bd7a2;super(_buildMessageForResponseErrors(_0x58c692)),this['request']=_0x614a92,this['headers']=_0x5cca33,this[_0x2ca2f1(0x1657)]=_0x58c692,this[_0x2ca2f1(0x245)]=_0x58c692['errors'],this[_0x2ca2f1(0x6d5)]=_0x58c692[_0x2ca2f1(0x6d5)],Error[_0x2ca2f1(0x1641)]&&Error[_0x2ca2f1(0x1641)](this,this[_0x2ca2f1(0xe76)]);}[a0_0x1bd7a2(0x301)]='GraphqlResponseError';['errors'];[a0_0x1bd7a2(0x6d5)];},NON_VARIABLE_OPTIONS=[a0_0x1bd7a2(0x16e0),a0_0x1bd7a2(0x156f),'url',a0_0x1bd7a2(0x10cb),a0_0x1bd7a2(0x12f8),a0_0x1bd7a2(0xf8f),'mediaType',a0_0x1bd7a2(0x7e1)],FORBIDDEN_VARIABLE_OPTIONS=[a0_0x1bd7a2(0xf8f),'method','url'],GHES_V3_SUFFIX_REGEX=/\/api\/v3\/?$/;function graphql(_0x4ba26c,_0x19d39e,_0x1f21c6){const _0x5b03d7=a0_0x1bd7a2;if(_0x1f21c6){if(typeof _0x19d39e===_0x5b03d7(0x7b9)&&_0x5b03d7(0xf8f)in _0x1f21c6)return Promise[_0x5b03d7(0xad4)](new Error('[@octokit/graphql]\x20\x22query\x22\x20cannot\x20be\x20used\x20as\x20variable\x20name'));for(const _0x4e0c95 in _0x1f21c6){if(!FORBIDDEN_VARIABLE_OPTIONS['includes'](_0x4e0c95))continue;return Promise[_0x5b03d7(0xad4)](new Error(_0x5b03d7(0x8cb)+_0x4e0c95+_0x5b03d7(0x18c)));}}const _0x48ca1e=typeof _0x19d39e===_0x5b03d7(0x7b9)?Object[_0x5b03d7(0x9fc)]({'query':_0x19d39e},_0x1f21c6):_0x19d39e,_0x33a317=Object[_0x5b03d7(0xb4b)](_0x48ca1e)[_0x5b03d7(0x1737)]((_0x17a6ce,_0x39dbba)=>{const _0x24de7d=_0x5b03d7;if(NON_VARIABLE_OPTIONS[_0x24de7d(0x112d)](_0x39dbba))return _0x17a6ce[_0x39dbba]=_0x48ca1e[_0x39dbba],_0x17a6ce;return!_0x17a6ce['variables']&&(_0x17a6ce[_0x24de7d(0x359)]={}),_0x17a6ce[_0x24de7d(0x359)][_0x39dbba]=_0x48ca1e[_0x39dbba],_0x17a6ce;},{}),_0x37b0f4=_0x48ca1e['baseUrl']||_0x4ba26c[_0x5b03d7(0xfb2)][_0x5b03d7(0x1600)]['baseUrl'];return GHES_V3_SUFFIX_REGEX[_0x5b03d7(0x733)](_0x37b0f4)&&(_0x33a317[_0x5b03d7(0x13f6)]=_0x37b0f4[_0x5b03d7(0x1589)](GHES_V3_SUFFIX_REGEX,_0x5b03d7(0xb1b))),_0x4ba26c(_0x33a317)[_0x5b03d7(0xb71)](_0x13c136=>{const _0x97057c=_0x5b03d7;if(_0x13c136['data'][_0x97057c(0x245)]){const _0x3ebccd={};for(const _0x53603c of Object[_0x97057c(0xb4b)](_0x13c136[_0x97057c(0x10cb)])){_0x3ebccd[_0x53603c]=_0x13c136[_0x97057c(0x10cb)][_0x53603c];}throw new GraphqlResponseError(_0x33a317,_0x3ebccd,_0x13c136[_0x97057c(0x6d5)]);}return _0x13c136['data'][_0x97057c(0x6d5)];});}function withDefaults(_0x55ca8a,_0x17263c){const _0x42f71e=a0_0x1bd7a2,_0x5886ba=_0x55ca8a[_0x42f71e(0x15fb)](_0x17263c),_0x1db650=(_0x18376f,_0x5e5c14)=>{return graphql(_0x5886ba,_0x18376f,_0x5e5c14);};return Object[_0x42f71e(0x9fc)](_0x1db650,{'defaults':withDefaults[_0x42f71e(0xe78)](null,_0x5886ba),'endpoint':_0x5886ba[_0x42f71e(0xfb2)]});}withDefaults(request,{'headers':{'user-agent':'octokit-graphql.js/'+VERSION$3+'\x20'+getUserAgent()},'method':a0_0x1bd7a2(0xe5e),'url':a0_0x1bd7a2(0x1001)});function withCustomRequest(_0x2b4fc3){const _0x368c82=a0_0x1bd7a2;return withDefaults(_0x2b4fc3,{'method':_0x368c82(0xe5e),'url':_0x3Line truncated ()=>new ArrayBuffer(0x0));}function isJSONResponse(_0x2c29cd){const _0x27cc66=a0_0x186cca;return _0x2c29cd['type']===_0x27cc66(0x859)||_0x2c29cd[_0x27cc66(0x888)]===_0x27cc66(0x678);}function toErrorMessage(_0x32ad24){const _0x12375e=a0_0x186cca;if(typeof _0x32ad24===_0x12375e(0x26f))return _0x32ad24;if(_0x32ad24 instanceof ArrayBuffer)return _0x12375e(0x34a);if(_0x12375e(0x5b1)in _0x32ad24){const _0x10abfb='documentation_url'in _0x32ad24?_0x12375e(0x606)+_0x32ad24[_0x12375e(0x22f)]:'';return Array[_0x12375e(0x977)](_0x32ad24['errors'])?_0x32ad24['message']+':\x20'+_0x32ad24[_0x12375e(0xbaa)][_0x12375e(0xc84)](_0x54de46=>JSON[_0x12375e(0x1000)](_0x54de46))[_0x12375e(0x103d)](',\x20')+_0x10abfb:''+_0x32ad24[_0x12375e(0x5b1)]+_0x10abfb;}return'Unknown\x20error:\x20'+JSON[_0x12375e(0x1000)](_0x32ad24);}function withDefaults$1(_0x1e4ec2,_0x5e40f2){const _0x2cab9d=a0_0x186cca,_0x387c5c=_0x1e4ec2[_0x2cab9d(0x1330)](_0x5e40f2),_0x52d82d=function(_0x4abee3,_0x40bd58){const _0x117e31=_0x2cab9d,_0x1bbc3c=_0x387c5c[_0x117e31(0x7b6)](_0x4abee3,_0x40bd58);if(!_0x1bbc3c['request']||!_0x1bbc3c[_0x117e31(0x1082)][_0x117e31(0x375)])return fetchWrapper(_0x387c5c[_0x117e31(0x16d8)](_0x1bbc3c));const _0x374dd0=(_0x269a13,_0x539118)=>{const _0xe691e7=_0x117e31;return fetchWrapper(_0x387c5c[_0xe691e7(0x16d8)](_0x387c5c['merge'](_0x269a13,_0x539118)));};return Object[_0x117e31(0x101f)](_0x374dd0,{'endpoint':_0x387c5c,'defaults':withDefaults$1['bind'](null,_0x387c5c)}),_0x1bbc3c[_0x117e31(0x1082)]['hook'](_0x374dd0,_0x1bbc3c);};return Object['assign'](_0x52d82d,{'endpoint':_0x387c5c,'defaults':withDefaults$1['bind'](null,_0x387c5c)});}var request=withDefaults$1(endpoint,defaults_default),VERSION$3='0.0.0-development';function _buildMessageForResponseErrors(_0x115109){const _0x4ad9c8=a0_0x186cca;return _0x4ad9c8(0x9cd)+_0x115109['errors'][_0x4ad9c8(0xc84)](_0x8c07c8=>_0x4ad9c8(0x606)+_0x8c07c8['message'])[_0x4ad9c8(0x103d)]('\x0a');}var GraphqlResponseError=class extends Error{constructor(_0x2913b1,_0x38afbc,_0x5f5667){const _0x28a3e2=a0_0x186cca;super(_buildMessageForResponseErrors(_0x5f5667)),this[_0x28a3e2(0x1082)]=_0x2913b1,this[_0x28a3e2(0x597)]=_0x38afbc,this[_0x28a3e2(0x9ca)]=_0x5f5667,this[_0x28a3e2(0xbaa)]=_0x5f5667[_0x28a3e2(0xbaa)],this[_0x28a3e2(0x1671)]=_0x5f5667[_0x28a3e2(0x1671)],Error[_0x28a3e2(0x92a)]&&Error[_0x28a3e2(0x92a)](this,this[_0x28a3e2(0x2a0)]);}['name']='GraphqlResponseError';[a0_0x186cca(0xbaa)];[a0_0x186cca(0x1671)];},NON_VARIABLE_OPTIONS=['method',a0_0x186cca(0x1465),'url',a0_0x186cca(0x597),a0_0x186cca(0x1082),'query',a0_0x186cca(0xa8f),a0_0x186cca(0xece)],FORBIDDEN_VARIABLE_OPTIONS=['query',a0_0x186cca(0x1738),'url'],GHES_V3_SUFFIX_REGEX=/\/api\/v3\/?$/;function graphql(_0x45f4d8,_0x38c4fe,_0x5e0c2b){const _0x246b98=a0_0x186cca;if(_0x5e0c2b){if(typeof _0x38c4fe===_0x246b98(0x26f)&&_0x246b98(0xad3)in _0x5e0c2b)return Promise['reject'](new Error(_0x246b98(0xc7c)));for(const _0x49ca4f in _0x5e0c2b){if(!FORBIDDEN_VARIABLE_OPTIONS['includes'](_0x49ca4f))continue;return Promise[_0x246b98(0x6b1)](new Error(_0x246b98(0x11d0)+_0x49ca4f+_0x246b98(0x30b)));}}const _0x37dc76=typeof _0x38c4fe===_0x246b98(0x26f)?Object[_0x246b98(0x101f)]({'query':_0x38c4fe},_0x5e0c2b):_0x38c4fe,_0x5a28e0=Object[_0x246b98(0x109d)](_0x37dc76)[_0x246b98(0x12d1)]((_0x505a8d,_0x496a13)=>{const _0x1683d1=_0x246b98;if(NON_VARIABLE_OPTIONS[_0x1683d1(0xa8c)](_0x496a13))return _0x505a8d[_0x496a13]=_0x37dc76[_0x496a13],_0x505a8d;return!_0x505a8d[_0x1683d1(0xe17)]&&(_0x505a8d[_0x1683d1(0xe17)]={}),_0x505a8d[_0x1683d1(0xe17)][_0x496a13]=_0x37dc76[_0x496a13],_0x505a8d;},{}),_0x4a73d6=_0x37dc76[_0x246b98(0x1465)]||_0x45f4d8[_0x246b98(0x7c6)][_0x246b98(0x53a)]['baseUrl'];return GHES_V3_SUFFIX_REGEX[_0x246b98(0xd57)](_0x4a73d6)&&(_0x5a28e0[_0x246b98(0x153b)]=_0x4a73d6[_0x246b98(0x99c)](GHES_V3_SUFFIX_REGEX,_0x246b98(0x12fa))),_0x45f4d8(_0x5a28e0)[_0x246b98(0x1007)](_0x316342=>{const _0x5240bf=_0x246b98;if(_0x316342['data'][_0x5240bf(0xbaa)]){const _0x2f9cf0={};for(const _0x3b3f8d of Object[_0x5240bf(0x109d)](_0x316342[_0x5240bf(0x597)])){_0x2f9cf0[_0x3b3f8d]=_0x316342[_0x5240bf(0x597)][_0x3b3f8d];}throw new GraphqlResponseError(_0x5a28e0,_0x2f9cf0,_0x316342[_0x5240bf(0x1671)]);}return _0x316342[_0x5240bf(0x1671)][_0x5240bf(0x1671)];});}function withDefaults(_0x2b2640,_0x5cbc3a){const _0x4465ab=a0_0x186cca,_0x523dcb=_0x2b2640[_0x4465ab(0x1330)](_0x5cbc3a),_0x415f99=(_0x201a17,_0x4a2684)=>{return graphql(_0x523dcb,_0x201a17,_0x4a2684);};return Object[_0x4465ab(0x101f)](_0x415f99,{'defaults':withDefaults[_0x4465ab(0xc7e)](null,_0x523dcb),'endpoint':_0x523dcb[_0x4465ab(0x7c6)]});}withDefaults(request,{'headers':{'user-agent':a0_0x186cca(0x1833)+VERSION$3+'\x20'+getUserAgent()},'method':'POST','url':a0_0x186cca(0xc82)});function withCustomRequest(_0x3d7fc6){const _0x2d5221=a0_0x186cca;return withDefaults(_0x3d7fc6,{'method':_0x2d5221(0xc5a),'url':_0x2d5221(0xc82)});}var b64url=a0_0x186cca(0x85f),sep='\x5c.',jwtRE=new RegExp('^'+b64url+sep+b64url+sep+Line truncated
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "gradle-actions-caching", "name": "gradle-actions-caching",
"version": "0.7.0", "version": "0.8.0",
"type": "module", "type": "module",
"main": "./index.js", "main": "./index.js",
"types": "./index.d.ts", "types": "./index.d.ts",