Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jul 26, 2024
1 parent 222ed7c commit 66bf589
Show file tree
Hide file tree
Showing 4 changed files with 404 additions and 427 deletions.
21 changes: 9 additions & 12 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8559,7 +8559,7 @@ var import_which = __toESM(require_lib2());
// package.json
var version2 = "2.3.1";

// node_modules/.pnpm/@badrap+valita@0.3.8/node_modules/@badrap/valita/dist/node-mjs/index.mjs
// node_modules/.pnpm/@badrap+valita@0.3.9/node_modules/@badrap/valita/dist/node-mjs/index.mjs
function joinIssues(left, right) {
return left ? { ok: false, code: "join", left, right } : right;
}
Expand Down Expand Up @@ -8879,6 +8879,11 @@ var ObjectType = class _ObjectType extends Type {
this.restType = restType;
this.checks = checks;
this.name = "object";
this._invalidType = {
ok: false,
code: "invalid_type",
expected: ["object"]
};
}
check(func, error) {
const issue = { ok: false, code: "custom_error", error };
Expand All @@ -8891,6 +8896,9 @@ var ObjectType = class _ObjectType extends Type {
]);
}
func(v, flags) {
if (!isObject(v)) {
return this._invalidType;
}
let func = this._func;
if (func === void 0) {
func = createObjectMatcher(this.shape, this.restType, this.checks);
Expand Down Expand Up @@ -8943,16 +8951,8 @@ function createObjectMatcher(shape, rest, checks) {
}
const keys = [...requiredKeys, ...optionalKeys];
const totalCount = keys.length;
const invalidType = {
ok: false,
code: "invalid_type",
expected: ["object"]
};
if (totalCount === 0 && rest?.name === "unknown") {
return function(obj, _) {
if (!isObject(obj)) {
return invalidType;
}
if (checks !== void 0) {
for (let i = 0; i < checks.length; i++) {
if (!checks[i].func(obj)) {
Expand Down Expand Up @@ -8986,9 +8986,6 @@ function createObjectMatcher(shape, rest, checks) {
}
}
return function(obj, flags) {
if (!isObject(obj)) {
return invalidType;
}
let copied = false;
let output = obj;
let issues;
Expand Down
2 changes: 1 addition & 1 deletion dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"**/pnpm-lock.yaml"
],
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.2.wasm",
"https://plugins.dprint.dev/typescript-0.91.4.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.1.wasm",
"https://plugins.dprint.dev/prettier-0.40.0.json@68c668863ec834d4be0f6f5ccaab415df75336a992aceb7eeeb14fdf096a9e9c"
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@actions/core": "^1.10.1",
"@actions/http-client": "~2.1.1",
"@actions/tool-cache": "^2.0.1",
"@badrap/valita": "^0.3.8",
"@badrap/valita": "^0.3.9",
"@iarna/toml": "^2.2.5",
"jsonc-parser": "^3.3.1",
"semver": "^6.3.1",
Expand All @@ -27,24 +27,24 @@
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
"@tsconfig/strictest": "^2.0.5",
"@types/node": "^20.14.10",
"@types/node": "^20.14.12",
"@types/semver": "^6.2.7",
"@types/shell-quote": "^1.7.5",
"@types/which": "^3.0.4",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@vitest/coverage-v8": "^2.0.1",
"dprint": "^0.47.1",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitest/coverage-v8": "^2.0.4",
"dprint": "^0.47.2",
"esbuild": "^0.23.0",
"eslint": "^8.57.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^54.0.0",
"husky": "^9.0.11",
"eslint-plugin-unicorn": "^55.0.0",
"husky": "^9.1.2",
"jest-serializer-path": "^0.1.15",
"klona": "^2.0.6",
"rimraf": "^5.0.8",
"typescript": "~5.5.3",
"vitest": "^2.0.1"
"rimraf": "^6.0.1",
"typescript": "~5.5.4",
"vitest": "^2.0.4"
},
"overrides": {
"vite": {
Expand Down
Loading

0 comments on commit 66bf589

Please sign in to comment.