A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
cleanup internal package resolution
Amruth Pillai0f8f2fe56083
diff --git a/apps/server/src/auth/strategy/github.strategy.ts b/apps/server/src/auth/strategy/github.strategy.tsindex ef501b3c7..7425c6de5 100644--- a/apps/server/src/auth/strategy/github.strategy.ts+++ b/apps/server/src/auth/strategy/github.strategy.ts@@ -30,14 +30,14 @@ export class GitHubStrategy extends PassportStrategy(Strategy, "github") {let user: User | null = null;- if (!email) throw new BadRequestException();+ if (!email) throw new BadRequestException(ErrorMessage.InvalidCredentials);try {const user =(await this.userService.findOneByIdentifier(email)) ??(username && (await this.userService.findOneByIdentifier(username)));- if (!user) throw new Error("User not found.");+ if (!user) throw new Error(ErrorMessage.InvalidCredentials);done(null, user);} catch {diff --git a/apps/server/src/auth/strategy/google.strategy.ts b/apps/server/src/auth/strategy/google.strategy.tsindex 5eb985d4a..ff446d4b2 100644--- a/apps/server/src/auth/strategy/google.strategy.ts+++ b/apps/server/src/auth/strategy/google.strategy.ts@@ -30,14 +30,14 @@ export class GoogleStrategy extends PassportStrategy(Strategy, "google") {let user: User | null = null;- if (!email) throw new BadRequestException();+ if (!email) throw new BadRequestException(ErrorMessage.InvalidCredentials);try {const user =(await this.userService.findOneByIdentifier(email)) ??(username && (await this.userService.findOneByIdentifier(username)));- if (!user) throw new Error("User not found.");+ if (!user) throw new Error(ErrorMessage.InvalidCredentials);done(null, user);} catch {diff --git a/libs/schema/package.json b/libs/schema/package.jsonindex 5bee1075e..682e7c370 100644--- a/libs/schema/package.json+++ b/libs/schema/package.json@@ -8,10 +8,12 @@"publishConfig": {"access": "public"},- "dependencies": {- "@reactive-resume/utils": "*",+ "peerDependencies": {"zod": "^3.23.8","@paralleldrive/cuid2": "^2.2.2",+ "@swc/helpers": "^0.5.15"+ },+ "devDependencies": {"@swc/helpers": "~0.5.11"}}diff --git a/libs/schema/src/sample.ts b/libs/schema/src/sample.tsindex 22f319f49..8ce89dbe0 100644--- a/libs/schema/src/sample.ts+++ b/libs/schema/src/sample.ts@@ -1,4 +1,4 @@-import { ResumeData } from ".";+import { ResumeData } from "./index";export const sampleResume: ResumeData = {basics: {diff --git a/libs/schema/src/sections/index.ts b/libs/schema/src/sections/index.tsindex 556410c4b..121b216c9 100644--- a/libs/schema/src/sections/index.ts+++ b/libs/schema/src/sections/index.ts@@ -1,6 +1,6 @@-import { FilterKeys } from "@reactive-resume/utils";import { z } from "zod";+import { FilterKeys } from "../shared";import { idSchema } from "../shared";import { awardSchema } from "./award";import { certificationSchema } from "./certification";diff --git a/libs/schema/src/shared/index.ts b/libs/schema/src/shared/index.tsindex e3140fbfb..a6244bedb 100644--- a/libs/schema/src/shared/index.ts+++ b/libs/schema/src/shared/index.ts@@ -1,3 +1,4 @@export * from "./id";export * from "./item";+export * from "./types";export * from "./url";diff --git a/libs/schema/src/shared/types.ts b/libs/schema/src/shared/types.tsnew file mode 100644index 000000000..cbd6b22b9--- /dev/null+++ b/libs/schema/src/shared/types.ts@@ -0,0 +1,3 @@+export type FilterKeys<T, Condition> = {+ [Key in keyof T]: T[Key] extends Condition ? Key : never;+}[keyof T];diff --git a/package.json b/package.jsonindex bb5724f84..20c1d2fe7 100644--- a/package.json+++ b/package.json@@ -95,7 +95,7 @@"eslint-plugin-jsx-a11y": "^6.10.2","eslint-plugin-lingui": "^0.9.0","eslint-plugin-prettier": "^5.2.1",- "eslint-plugin-react": "^7.37.3",+ "eslint-plugin-react": "^7.37.4","eslint-plugin-react-hooks": "^4.6.2","eslint-plugin-simple-import-sort": "^12.1.1","eslint-plugin-tailwindcss": "^3.17.5",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 03e46cee9..1dfcb1916 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -574,8 +574,8 @@ importers:specifier: ^5.2.1version: 5.2.1(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])eslint-plugin-react:- specifier: ^7.37.3- version: 7.37.3([email protected])+ specifier: ^7.37.4+ version: 7.37.4([email protected])eslint-plugin-react-hooks:specifier: ^4.6.2version: 4.6.2([email protected])@@ -6345,8 +6345,8 @@ packages:peerDependencies:eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0- resolution: {integrity: sha512-DomWuTQPFYZwF/7c9W2fkKkStqZmBd3uugfqBYLdkZ3Hii23WzZuOLUskGxB8qkSKqftxEeGL1TB2kMhrce0jA==}+ resolution: {integrity: sha512-BGP0jRmfYyvOyvMoRX/uoUeW+GqNj9y16bPQzqAHf3AYII/tDs+jMN0dBVkl88/OZwNGwrVFxE7riHsXVfy/LQ==}engines: {node: '>=4'}peerDependencies:eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7@@ -16805,7 +16805,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8is-array-buffer: 3.0.4@@ -16817,12 +16817,12 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1- es-abstract: 1.23.3+ es-abstract: 1.23.9es-object-atoms: 1.0.0- get-intrinsic: 1.2.4- is-string: 1.0.7+ get-intrinsic: 1.2.7+ is-string: 1.1.1@@ -16830,9 +16830,9 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1- es-abstract: 1.23.3+ es-abstract: 1.23.9es-errors: 1.3.0es-object-atoms: 1.0.0es-shim-unscopables: 1.0.2@@ -16869,16 +16869,16 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1- es-abstract: 1.23.3+ es-abstract: 1.23.9es-errors: 1.3.0es-shim-unscopables: 1.0.2dependencies:array-buffer-byte-length: 1.0.1- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1es-abstract: 1.23.3es-errors: 1.3.0@@ -17297,8 +17297,8 @@ snapshots:dependencies:call-bind-apply-helpers: 1.0.1- es-define-property: 1.0.0- get-intrinsic: 1.2.4+ es-define-property: 1.0.1+ get-intrinsic: 1.2.7set-function-length: 1.2.2@@ -17859,7 +17859,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8es-errors: 1.3.0is-data-view: 1.0.1@@ -17871,7 +17871,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8es-errors: 1.3.0is-data-view: 1.0.1@@ -17883,7 +17883,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8es-errors: 1.3.0is-data-view: 1.0.1@@ -18298,7 +18298,7 @@ snapshots:define-properties: 1.2.1es-abstract: 1.23.9es-errors: 1.3.0- es-set-tostringtag: 2.0.3+ es-set-tostringtag: 2.1.0function-bind: 1.1.2get-intrinsic: 1.2.7globalthis: 1.0.4@@ -18344,8 +18344,8 @@ snapshots:dependencies:is-callable: 1.2.7- is-date-object: 1.0.5- is-symbol: 1.0.4+ is-date-object: 1.1.0+ is-symbol: 1.1.1optionalDependencies:@@ -18519,7 +18519,7 @@ snapshots:dependencies:eslint: 8.57.0dependencies:array-includes: 3.1.8array.prototype.findlast: 1.2.5@@ -19127,7 +19127,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1es-abstract: 1.23.3functions-have-names: 1.2.3@@ -19194,7 +19194,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8es-errors: 1.3.0get-intrinsic: 1.2.4@@ -19351,7 +19351,7 @@ snapshots:dependencies:- es-define-property: 1.0.0+ es-define-property: 1.0.1@@ -19691,12 +19691,12 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8has-tostringtag: 1.0.2dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8get-intrinsic: 1.2.4@@ -19727,7 +19727,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8has-tostringtag: 1.0.2@@ -19856,7 +19856,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8dependencies:@@ -19877,7 +19877,7 @@ snapshots:dependencies:- has-symbols: 1.0.3+ has-symbols: 1.1.0dependencies:@@ -19899,7 +19899,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8dependencies:@@ -20469,8 +20469,8 @@ snapshots:dependencies:array-includes: 3.1.8array.prototype.flat: 1.3.2- object.assign: 4.1.5- object.values: 1.2.0+ object.assign: 4.1.7+ object.values: 1.2.1dependencies:@@ -21600,7 +21600,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1has-symbols: 1.0.3object-keys: 1.1.1@@ -21616,15 +21616,15 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1es-object-atoms: 1.0.0dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1- es-abstract: 1.23.3+ es-abstract: 1.23.9es-object-atoms: 1.0.0@@ -22845,7 +22845,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1es-errors: 1.3.0set-function-name: 2.0.2@@ -23009,7 +23009,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8get-intrinsic: 1.2.4has-symbols: 1.0.3isarray: 2.0.5@@ -23293,7 +23293,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8es-errors: 1.3.0get-intrinsic: 1.2.4object-inspect: 1.13.1@@ -23526,7 +23526,7 @@ snapshots:dependencies:define-properties: 1.2.1- es-abstract: 1.23.3+ es-abstract: 1.23.9dependencies:@@ -23540,7 +23540,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1es-abstract: 1.23.3es-object-atoms: 1.0.0@@ -23560,7 +23560,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8define-properties: 1.2.1es-object-atoms: 1.0.0@@ -24035,7 +24035,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8es-errors: 1.3.0is-typed-array: 1.1.13@@ -24047,7 +24047,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8for-each: 0.3.3gopd: 1.0.1has-proto: 1.0.3@@ -24064,7 +24064,7 @@ snapshots:dependencies:available-typed-arrays: 1.0.7- call-bind: 1.0.7+ call-bind: 1.0.8for-each: 0.3.3gopd: 1.0.1has-proto: 1.0.3@@ -24082,7 +24082,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8for-each: 0.3.3gopd: 1.0.1has-proto: 1.0.3@@ -24125,7 +24125,7 @@ snapshots:dependencies:- call-bind: 1.0.7+ call-bind: 1.0.8has-bigints: 1.0.2has-symbols: 1.0.3which-boxed-primitive: 1.0.2@@ -24556,7 +24556,7 @@ snapshots:is-bigint: 1.0.4is-boolean-object: 1.1.2is-number-object: 1.0.7- is-string: 1.0.7+ is-string: 1.1.1is-symbol: 1.0.4@@ -24593,7 +24593,7 @@ snapshots:dependencies:available-typed-arrays: 1.0.7- call-bind: 1.0.7+ call-bind: 1.0.8for-each: 0.3.3gopd: 1.0.1has-tostringtag: 1.0.2