Skip to content

Commit

Permalink
Update to smol-toml 1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-herkamp committed Oct 18, 2023
1 parent 3351704 commit 426852e
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 50 deletions.
34 changes: 21 additions & 13 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62971,7 +62971,7 @@ var promises_default = /*#__PURE__*/__nccwpck_require__.n(promises_);
// EXTERNAL MODULE: external "os"
var external_os_ = __nccwpck_require__(2037);
var external_os_default = /*#__PURE__*/__nccwpck_require__.n(external_os_);
;// CONCATENATED MODULE: ../smol-toml/dist/error.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/error.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63036,7 +63036,7 @@ class TomlError extends Error {
}
}

;// CONCATENATED MODULE: ../smol-toml/dist/date.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/date.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63163,7 +63163,7 @@ class TomlDate extends Date {
}
}

;// CONCATENATED MODULE: ../smol-toml/dist/util.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/util.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63268,7 +63268,7 @@ function getStringEnd(str, seek) {
return seek;
}

;// CONCATENATED MODULE: ../smol-toml/dist/primitive.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/primitive.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63442,7 +63442,7 @@ function parseValue(value, toml, ptr) {
return date;
}

;// CONCATENATED MODULE: ../smol-toml/dist/extract.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/extract.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63517,8 +63517,16 @@ function extractValue(str, ptr, end) {
if (c === '"' || c === "'") {
endPtr = getStringEnd(str, ptr);
let parsed = parseString(str, ptr, endPtr);
if (end)
endPtr = skipUntil(str, endPtr, ',', end, end !== ']');
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);
Expand All @@ -63539,7 +63547,7 @@ function extractValue(str, ptr, end) {
];
}

;// CONCATENATED MODULE: ../smol-toml/dist/struct.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/struct.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63743,7 +63751,7 @@ function parseArray(str, ptr) {
return [res, ptr];
}

;// CONCATENATED MODULE: ../smol-toml/dist/parse.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/parse.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63785,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 @@ -63805,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 @@ -63814,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 Expand Up @@ -63893,7 +63901,7 @@ function parse(toml) {
return res;
}

;// CONCATENATED MODULE: ../smol-toml/dist/index.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/index.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
34 changes: 21 additions & 13 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62973,7 +62973,7 @@ var promises_default = /*#__PURE__*/__nccwpck_require__.n(promises_);
// EXTERNAL MODULE: external "os"
var external_os_ = __nccwpck_require__(2037);
var external_os_default = /*#__PURE__*/__nccwpck_require__.n(external_os_);
;// CONCATENATED MODULE: ../smol-toml/dist/error.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/error.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63038,7 +63038,7 @@ class TomlError extends Error {
}
}

;// CONCATENATED MODULE: ../smol-toml/dist/date.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/date.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63165,7 +63165,7 @@ class TomlDate extends Date {
}
}

;// CONCATENATED MODULE: ../smol-toml/dist/util.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/util.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63270,7 +63270,7 @@ function getStringEnd(str, seek) {
return seek;
}

;// CONCATENATED MODULE: ../smol-toml/dist/primitive.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/primitive.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63444,7 +63444,7 @@ function parseValue(value, toml, ptr) {
return date;
}

;// CONCATENATED MODULE: ../smol-toml/dist/extract.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/extract.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63519,8 +63519,16 @@ function extractValue(str, ptr, end) {
if (c === '"' || c === "'") {
endPtr = getStringEnd(str, ptr);
let parsed = parseString(str, ptr, endPtr);
if (end)
endPtr = skipUntil(str, endPtr, ',', end, end !== ']');
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);
Expand All @@ -63541,7 +63549,7 @@ function extractValue(str, ptr, end) {
];
}

;// CONCATENATED MODULE: ../smol-toml/dist/struct.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/struct.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63745,7 +63753,7 @@ function parseArray(str, ptr) {
return [res, ptr];
}

;// CONCATENATED MODULE: ../smol-toml/dist/parse.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/parse.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -63787,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 @@ -63807,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 @@ -63816,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 Expand Up @@ -63895,7 +63903,7 @@ function parse(toml) {
return res;
}

;// CONCATENATED MODULE: ../smol-toml/dist/index.js
;// CONCATENATED MODULE: ./node_modules/smol-toml/dist/index.js
/*!
* Copyright (c) Squirrel Chat et al., All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
Expand Down
31 changes: 8 additions & 23 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@actions/exec": "^1.1.1",
"@actions/glob": "^0.4.0",
"@actions/io": "^1.1.3",
"smol-toml": "file:../smol-toml"
"smol-toml": "1.1.3"
},
"devDependencies": {
"@vercel/ncc": "^0.38.0",
Expand Down

0 comments on commit 426852e

Please sign in to comment.