mirror of
https://github.com/Swatinem/rust-cache.git
synced 2024-11-23 06:16:07 +08:00
parent
a95ba19544
commit
f27990c89a
26
dist/restore/index.js
vendored
26
dist/restore/index.js
vendored
@ -5994,7 +5994,7 @@ class OidcClient {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
throw new Error(`Failed to get ID Token. \n
|
throw new Error(`Failed to get ID Token. \n
|
||||||
Error Code : ${error.statusCode}\n
|
Error Code : ${error.statusCode}\n
|
||||||
Error Message: ${error.result.message}`);
|
Error Message: ${error.message}`);
|
||||||
});
|
});
|
||||||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
||||||
if (!id_token) {
|
if (!id_token) {
|
||||||
@ -63222,7 +63222,7 @@ function skipVoid(str, ptr, banNewLines, banComments) {
|
|||||||
? ptr
|
? ptr
|
||||||
: skipVoid(str, skipComment(str, ptr), banNewLines);
|
: skipVoid(str, skipComment(str, ptr), banNewLines);
|
||||||
}
|
}
|
||||||
function skipUntil(str, ptr, sep, end) {
|
function skipUntil(str, ptr, sep, end, banNewLines = false) {
|
||||||
if (!end) {
|
if (!end) {
|
||||||
ptr = indexOfNewline(str, ptr);
|
ptr = indexOfNewline(str, ptr);
|
||||||
return ptr < 0 ? str.length : ptr;
|
return ptr < 0 ? str.length : ptr;
|
||||||
@ -63238,6 +63238,9 @@ function skipUntil(str, ptr, sep, end) {
|
|||||||
else if (c === end) {
|
else if (c === end) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
else if (banNewLines && (c === '\n' || c === '\r' && str[i + 1] === '\n')) {
|
||||||
|
return i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
throw new TomlError('cannot find end of structure', {
|
throw new TomlError('cannot find end of structure', {
|
||||||
toml: str,
|
toml: str,
|
||||||
@ -63513,7 +63516,18 @@ function extractValue(str, ptr, end) {
|
|||||||
let endPtr;
|
let endPtr;
|
||||||
if (c === '"' || c === "'") {
|
if (c === '"' || c === "'") {
|
||||||
endPtr = getStringEnd(str, ptr);
|
endPtr = getStringEnd(str, ptr);
|
||||||
return [parseString(str, ptr, endPtr), endPtr + +(!!end && str[endPtr] === ',')];
|
let parsed = parseString(str, ptr, endPtr);
|
||||||
|
if (end) {
|
||||||
|
endPtr = skipVoid(str, endPtr, end !== ']');
|
||||||
|
if (str[endPtr] && str[endPtr] !== ',' && str[endPtr] !== end && str[endPtr] !== '\n' && str[endPtr] !== '\r') {
|
||||||
|
throw new TomlError('unexpected character encountered', {
|
||||||
|
toml: str,
|
||||||
|
ptr: endPtr,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
endPtr += (+(str[endPtr] === ','));
|
||||||
|
}
|
||||||
|
return [parsed, endPtr];
|
||||||
}
|
}
|
||||||
endPtr = skipUntil(str, ptr, ',', end);
|
endPtr = skipUntil(str, ptr, ',', end);
|
||||||
let slice = sliceAndTrimEndOf(str, ptr, endPtr - (+(str[endPtr - 1] === ',')), end === ']');
|
let slice = sliceAndTrimEndOf(str, ptr, endPtr - (+(str[endPtr - 1] === ',')), end === ']');
|
||||||
@ -63779,7 +63793,7 @@ function peekTable(key, table, meta, type) {
|
|||||||
if (i) {
|
if (i) {
|
||||||
t = hasOwn ? t[k] : (t[k] = {});
|
t = hasOwn ? t[k] : (t[k] = {});
|
||||||
m = (state = m[k]).c;
|
m = (state = m[k]).c;
|
||||||
if (type === 0 /* Type.DOTTED */ && state.t === 1 /* Type.EXPLICIT */) {
|
if (type === 0 /* Type.DOTTED */ && (state.t === 1 /* Type.EXPLICIT */ || state.t === 2 /* Type.ARRAY */)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (state.t === 2 /* Type.ARRAY */) {
|
if (state.t === 2 /* Type.ARRAY */) {
|
||||||
@ -63799,7 +63813,7 @@ function peekTable(key, table, meta, type) {
|
|||||||
}
|
}
|
||||||
m[k] = {
|
m[k] = {
|
||||||
t: i < key.length - 1 && type === 2 /* Type.ARRAY */
|
t: i < key.length - 1 && type === 2 /* Type.ARRAY */
|
||||||
? 0 /* Type.DOTTED */
|
? 3 /* Type.ARRAY_DOTTED */
|
||||||
: type,
|
: type,
|
||||||
d: false,
|
d: false,
|
||||||
i: 0,
|
i: 0,
|
||||||
@ -63808,7 +63822,7 @@ function peekTable(key, table, meta, type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
state = m[k];
|
state = m[k];
|
||||||
if (state.t !== type) {
|
if (state.t !== type && !(type === 1 /* Type.EXPLICIT */ && state.t === 3 /* Type.ARRAY_DOTTED */)) {
|
||||||
// Bad key type!
|
// Bad key type!
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
26
dist/save/index.js
vendored
26
dist/save/index.js
vendored
@ -5994,7 +5994,7 @@ class OidcClient {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
throw new Error(`Failed to get ID Token. \n
|
throw new Error(`Failed to get ID Token. \n
|
||||||
Error Code : ${error.statusCode}\n
|
Error Code : ${error.statusCode}\n
|
||||||
Error Message: ${error.result.message}`);
|
Error Message: ${error.message}`);
|
||||||
});
|
});
|
||||||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
||||||
if (!id_token) {
|
if (!id_token) {
|
||||||
@ -63224,7 +63224,7 @@ function skipVoid(str, ptr, banNewLines, banComments) {
|
|||||||
? ptr
|
? ptr
|
||||||
: skipVoid(str, skipComment(str, ptr), banNewLines);
|
: skipVoid(str, skipComment(str, ptr), banNewLines);
|
||||||
}
|
}
|
||||||
function skipUntil(str, ptr, sep, end) {
|
function skipUntil(str, ptr, sep, end, banNewLines = false) {
|
||||||
if (!end) {
|
if (!end) {
|
||||||
ptr = indexOfNewline(str, ptr);
|
ptr = indexOfNewline(str, ptr);
|
||||||
return ptr < 0 ? str.length : ptr;
|
return ptr < 0 ? str.length : ptr;
|
||||||
@ -63240,6 +63240,9 @@ function skipUntil(str, ptr, sep, end) {
|
|||||||
else if (c === end) {
|
else if (c === end) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
else if (banNewLines && (c === '\n' || c === '\r' && str[i + 1] === '\n')) {
|
||||||
|
return i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
throw new TomlError('cannot find end of structure', {
|
throw new TomlError('cannot find end of structure', {
|
||||||
toml: str,
|
toml: str,
|
||||||
@ -63515,7 +63518,18 @@ function extractValue(str, ptr, end) {
|
|||||||
let endPtr;
|
let endPtr;
|
||||||
if (c === '"' || c === "'") {
|
if (c === '"' || c === "'") {
|
||||||
endPtr = getStringEnd(str, ptr);
|
endPtr = getStringEnd(str, ptr);
|
||||||
return [parseString(str, ptr, endPtr), endPtr + +(!!end && str[endPtr] === ',')];
|
let parsed = parseString(str, ptr, endPtr);
|
||||||
|
if (end) {
|
||||||
|
endPtr = skipVoid(str, endPtr, end !== ']');
|
||||||
|
if (str[endPtr] && str[endPtr] !== ',' && str[endPtr] !== end && str[endPtr] !== '\n' && str[endPtr] !== '\r') {
|
||||||
|
throw new TomlError('unexpected character encountered', {
|
||||||
|
toml: str,
|
||||||
|
ptr: endPtr,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
endPtr += (+(str[endPtr] === ','));
|
||||||
|
}
|
||||||
|
return [parsed, endPtr];
|
||||||
}
|
}
|
||||||
endPtr = skipUntil(str, ptr, ',', end);
|
endPtr = skipUntil(str, ptr, ',', end);
|
||||||
let slice = sliceAndTrimEndOf(str, ptr, endPtr - (+(str[endPtr - 1] === ',')), end === ']');
|
let slice = sliceAndTrimEndOf(str, ptr, endPtr - (+(str[endPtr - 1] === ',')), end === ']');
|
||||||
@ -63781,7 +63795,7 @@ function peekTable(key, table, meta, type) {
|
|||||||
if (i) {
|
if (i) {
|
||||||
t = hasOwn ? t[k] : (t[k] = {});
|
t = hasOwn ? t[k] : (t[k] = {});
|
||||||
m = (state = m[k]).c;
|
m = (state = m[k]).c;
|
||||||
if (type === 0 /* Type.DOTTED */ && state.t === 1 /* Type.EXPLICIT */) {
|
if (type === 0 /* Type.DOTTED */ && (state.t === 1 /* Type.EXPLICIT */ || state.t === 2 /* Type.ARRAY */)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (state.t === 2 /* Type.ARRAY */) {
|
if (state.t === 2 /* Type.ARRAY */) {
|
||||||
@ -63801,7 +63815,7 @@ function peekTable(key, table, meta, type) {
|
|||||||
}
|
}
|
||||||
m[k] = {
|
m[k] = {
|
||||||
t: i < key.length - 1 && type === 2 /* Type.ARRAY */
|
t: i < key.length - 1 && type === 2 /* Type.ARRAY */
|
||||||
? 0 /* Type.DOTTED */
|
? 3 /* Type.ARRAY_DOTTED */
|
||||||
: type,
|
: type,
|
||||||
d: false,
|
d: false,
|
||||||
i: 0,
|
i: 0,
|
||||||
@ -63810,7 +63824,7 @@ function peekTable(key, table, meta, type) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
state = m[k];
|
state = m[k];
|
||||||
if (state.t !== type) {
|
if (state.t !== type && !(type === 1 /* Type.EXPLICIT */ && state.t === 3 /* Type.ARRAY_DOTTED */)) {
|
||||||
// Bad key type!
|
// Bad key type!
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
32
package-lock.json
generated
32
package-lock.json
generated
@ -11,16 +11,16 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/buildjet-cache": "npm:github-actions.cache-buildjet@0.2.0",
|
"@actions/buildjet-cache": "npm:github-actions.cache-buildjet@0.2.0",
|
||||||
"@actions/cache": "^3.2.2",
|
"@actions/cache": "^3.2.2",
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/glob": "^0.4.0",
|
"@actions/glob": "^0.4.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"smol-toml": "^1.1.1"
|
"smol-toml": "1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.38.0",
|
||||||
"linefix": "^0.1.1",
|
"linefix": "^0.1.1",
|
||||||
"typescript": "5.1.6"
|
"typescript": "5.2.2"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/Swatinem"
|
"url": "https://github.com/sponsors/Swatinem"
|
||||||
@ -77,9 +77,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
"version": "1.10.0",
|
"version": "1.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.1.tgz",
|
||||||
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
|
"integrity": "sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/http-client": "^2.0.1",
|
"@actions/http-client": "^2.0.1",
|
||||||
"uuid": "^8.3.2"
|
"uuid": "^8.3.2"
|
||||||
@ -342,9 +342,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vercel/ncc": {
|
"node_modules/@vercel/ncc": {
|
||||||
"version": "0.36.1",
|
"version": "0.38.0",
|
||||||
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz",
|
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.0.tgz",
|
||||||
"integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==",
|
"integrity": "sha512-B4YKZMm/EqMptKSFyAq4q2SlgJe+VCmEH6Y8gf/E1pTlWbsUJpuH1ymik2Ex3aYO5mCWwV1kaSYHSQOT8+4vHA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"ncc": "dist/ncc/cli.js"
|
"ncc": "dist/ncc/cli.js"
|
||||||
@ -513,9 +513,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/smol-toml": {
|
"node_modules/smol-toml": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.1.3.tgz",
|
||||||
"integrity": "sha512-qyYMygHyDKiy82iiKTH/zXr0DZmEpsou0AMZnkXdYhA/0LhPLoZ/xHaOBrbecLbAJ/Gd5KhMWWH8TXtgv1g+DQ==",
|
"integrity": "sha512-qTyy6Owjho1ISBmxj4HdrFWB2kMQ5RczU6J04OqslSfdSH656OIHuomHS4ZDvhwm37nig/uXyiTMJxlC9zIVfw==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18",
|
"node": ">= 18",
|
||||||
"pnpm": ">= 8"
|
"pnpm": ">= 8"
|
||||||
@ -540,9 +540,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "5.1.6",
|
"version": "5.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
|
||||||
"integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",
|
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
|
@ -24,16 +24,16 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/buildjet-cache": "npm:github-actions.cache-buildjet@0.2.0",
|
"@actions/buildjet-cache": "npm:github-actions.cache-buildjet@0.2.0",
|
||||||
"@actions/cache": "^3.2.2",
|
"@actions/cache": "^3.2.2",
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.1",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/glob": "^0.4.0",
|
"@actions/glob": "^0.4.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"smol-toml": "^1.1.1"
|
"smol-toml": "1.1.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "^0.36.1",
|
"@vercel/ncc": "^0.38.0",
|
||||||
"linefix": "^0.1.1",
|
"linefix": "^0.1.1",
|
||||||
"typescript": "5.1.6"
|
"typescript": "5.2.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "ncc build --target es2020 -o dist/restore src/restore.ts && ncc build --target es2020 -o dist/save src/save.ts && linefix dist"
|
"prepare": "ncc build --target es2020 -o dist/restore src/restore.ts && ncc build --target es2020 -o dist/save src/save.ts && linefix dist"
|
||||||
|
Loading…
Reference in New Issue
Block a user