Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependencies #172

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5994,7 +5994,7 @@ class OidcClient {
.catch(error => {
throw new Error(`Failed to get ID Token. \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;
if (!id_token) {
Expand Down Expand Up @@ -63222,7 +63222,7 @@ function skipVoid(str, ptr, banNewLines, banComments) {
? ptr
: skipVoid(str, skipComment(str, ptr), banNewLines);
}
function skipUntil(str, ptr, sep, end) {
function skipUntil(str, ptr, sep, end, banNewLines = false) {
if (!end) {
ptr = indexOfNewline(str, ptr);
return ptr < 0 ? str.length : ptr;
Expand All @@ -63238,6 +63238,9 @@ function skipUntil(str, ptr, sep, end) {
else if (c === end) {
return i;
}
else if (banNewLines && (c === '\n' || c === '\r' && str[i + 1] === '\n')) {
return i;
}
}
throw new TomlError('cannot find end of structure', {
toml: str,
Expand Down Expand Up @@ -63513,7 +63516,18 @@ function extractValue(str, ptr, end) {
let endPtr;
if (c === '"' || c === "'") {
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);
let slice = sliceAndTrimEndOf(str, ptr, endPtr - (+(str[endPtr - 1] === ',')), end === ']');
Expand Down Expand Up @@ -63779,7 +63793,7 @@ function peekTable(key, table, meta, type) {
if (i) {
t = hasOwn ? t[k] : (t[k] = {});
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;
}
if (state.t === 2 /* Type.ARRAY */) {
Expand All @@ -63799,7 +63813,7 @@ function peekTable(key, table, meta, type) {
}
m[k] = {
t: i < key.length - 1 && type === 2 /* Type.ARRAY */
? 0 /* Type.DOTTED */
? 3 /* Type.ARRAY_DOTTED */
: type,
d: false,
i: 0,
Expand All @@ -63808,7 +63822,7 @@ function peekTable(key, table, meta, type) {
}
}
state = m[k];
if (state.t !== type) {
if (state.t !== type && !(type === 1 /* Type.EXPLICIT */ && state.t === 3 /* Type.ARRAY_DOTTED */)) {
// Bad key type!
return null;
}
Expand Down
26 changes: 20 additions & 6 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5994,7 +5994,7 @@ class OidcClient {
.catch(error => {
throw new Error(`Failed to get ID Token. \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;
if (!id_token) {
Expand Down Expand Up @@ -63224,7 +63224,7 @@ function skipVoid(str, ptr, banNewLines, banComments) {
? ptr
: skipVoid(str, skipComment(str, ptr), banNewLines);
}
function skipUntil(str, ptr, sep, end) {
function skipUntil(str, ptr, sep, end, banNewLines = false) {
if (!end) {
ptr = indexOfNewline(str, ptr);
return ptr < 0 ? str.length : ptr;
Expand All @@ -63240,6 +63240,9 @@ function skipUntil(str, ptr, sep, end) {
else if (c === end) {
return i;
}
else if (banNewLines && (c === '\n' || c === '\r' && str[i + 1] === '\n')) {
return i;
}
}
throw new TomlError('cannot find end of structure', {
toml: str,
Expand Down Expand Up @@ -63515,7 +63518,18 @@ function extractValue(str, ptr, end) {
let endPtr;
if (c === '"' || c === "'") {
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);
let slice = sliceAndTrimEndOf(str, ptr, endPtr - (+(str[endPtr - 1] === ',')), end === ']');
Expand Down Expand Up @@ -63781,7 +63795,7 @@ function peekTable(key, table, meta, type) {
if (i) {
t = hasOwn ? t[k] : (t[k] = {});
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;
}
if (state.t === 2 /* Type.ARRAY */) {
Expand All @@ -63801,7 +63815,7 @@ function peekTable(key, table, meta, type) {
}
m[k] = {
t: i < key.length - 1 && type === 2 /* Type.ARRAY */
? 0 /* Type.DOTTED */
? 3 /* Type.ARRAY_DOTTED */
: type,
d: false,
i: 0,
Expand All @@ -63810,7 +63824,7 @@ function peekTable(key, table, meta, type) {
}
}
state = m[k];
if (state.t !== type) {
if (state.t !== type && !(type === 1 /* Type.EXPLICIT */ && state.t === 3 /* Type.ARRAY_DOTTED */)) {
// Bad key type!
return null;
}
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
"dependencies": {
"@actions/buildjet-cache": "npm:github-actions.cache-buildjet@0.2.0",
"@actions/cache": "^3.2.2",
"@actions/core": "^1.10.0",
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/glob": "^0.4.0",
"@actions/io": "^1.1.3",
"smol-toml": "^1.1.1"
"smol-toml": "1.1.3"
},
"devDependencies": {
"@vercel/ncc": "^0.36.1",
"@vercel/ncc": "^0.38.0",
"linefix": "^0.1.1",
"typescript": "5.1.6"
"typescript": "5.2.2"
},
"scripts": {
"prepare": "ncc build --target es2020 -o dist/restore src/restore.ts && ncc build --target es2020 -o dist/save src/save.ts && linefix dist"
Expand Down
Loading