pl-api: fix regression with version parsing

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-10-19 01:06:53 +02:00
parent 5537563644
commit 5befd8e9db
4 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ const mimeSchema = v.pipe(v.string(), v.regex(/^\w+\/[-+.\w]+$/));
const coerceObject = <T extends v.ObjectEntries>(shape: T) =>
v.pipe(
v.any(),
v.transform((input) => typeof input === 'object' ? input : {}),
v.transform((input) => typeof input === 'object' && input !== null ? input : {}),
v.object(shape),
);

View File

@ -1,6 +1,6 @@
{
"name": "pl-api",
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"homepage": "https://github.com/mkljczk/pl-fe/tree/fork/packages/pl-api",
"repository": {

View File

@ -101,7 +101,7 @@
"mini-css-extract-plugin": "^2.9.1",
"multiselect-react-dropdown": "^2.0.25",
"path-browserify": "^1.0.1",
"pl-api": "^0.1.1",
"pl-api": "^0.1.2",
"postcss": "^8.4.47",
"process": "^0.11.10",
"punycode": "^2.1.1",

View File

@ -7590,10 +7590,10 @@ pkg-dir@^4.1.0:
dependencies:
find-up "^4.0.0"
pl-api@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.1.1.tgz#e3465482697ea53e10bba510c5217c42b1d40ab0"
integrity sha512-JFao273dOG9XgrunqlfJn+e3DUr001MePCmJasQwaX3aPjM/L158hKfCnYPmoDKn1u5bfekMK6tVauBtbnkmqA==
pl-api@^0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/pl-api/-/pl-api-0.1.2.tgz#08794b017f64c58ce128074afdd2144f715359e2"
integrity sha512-HZNrEDvnL1+8yax7lZwe/vCELme8ieNQB6LzUKTQU8qqhMSk7EdLBeEUQok/csyAu0X+IaSsoWKMA91xYzpuGA==
dependencies:
blurhash "^2.0.5"
http-link-header "^1.1.3"