gaboesquivel 3.4.1 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -23,25 +23,17 @@ interface TechStackItem {
23
23
  intro: string[];
24
24
  experience: string[];
25
25
  }
26
+ interface TechStackItemWithProjects extends TechStackItem {
27
+ projects: Project[];
28
+ }
26
29
 
27
30
  declare const projects: Project[];
28
31
 
29
32
  declare const techStack: TechStackItem[];
30
33
 
31
34
  declare function getProjectBySlug(slug: string): Project | undefined;
32
- declare function getTechStackByTag(tag: string): {
33
- projects: Project[];
34
- name?: string | undefined;
35
- icon?: string | undefined;
36
- tag?: string | undefined;
37
- image?: string | undefined;
38
- description?: string | undefined;
39
- link?: string | undefined;
40
- since?: string | undefined;
41
- intro?: string[] | undefined;
42
- experience?: string[] | undefined;
43
- };
35
+ declare function getTechStackByTag(tag: string): TechStackItemWithProjects | null;
44
36
  declare function getProjectsByTechnology(tag: string): Project[];
45
37
  declare function gaboLog(): void;
46
38
 
47
- export { type Project, type TechStackItem, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
39
+ export { type Project, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
package/dist/index.d.ts CHANGED
@@ -23,25 +23,17 @@ interface TechStackItem {
23
23
  intro: string[];
24
24
  experience: string[];
25
25
  }
26
+ interface TechStackItemWithProjects extends TechStackItem {
27
+ projects: Project[];
28
+ }
26
29
 
27
30
  declare const projects: Project[];
28
31
 
29
32
  declare const techStack: TechStackItem[];
30
33
 
31
34
  declare function getProjectBySlug(slug: string): Project | undefined;
32
- declare function getTechStackByTag(tag: string): {
33
- projects: Project[];
34
- name?: string | undefined;
35
- icon?: string | undefined;
36
- tag?: string | undefined;
37
- image?: string | undefined;
38
- description?: string | undefined;
39
- link?: string | undefined;
40
- since?: string | undefined;
41
- intro?: string[] | undefined;
42
- experience?: string[] | undefined;
43
- };
35
+ declare function getTechStackByTag(tag: string): TechStackItemWithProjects | null;
44
36
  declare function getProjectsByTechnology(tag: string): Project[];
45
37
  declare function gaboLog(): void;
46
38
 
47
- export { type Project, type TechStackItem, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
39
+ export { type Project, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
package/dist/index.js CHANGED
@@ -1088,8 +1088,10 @@ function getProjectBySlug(slug) {
1088
1088
  return projects.find((project) => project.slug === slug);
1089
1089
  }
1090
1090
  function getTechStackByTag(tag) {
1091
+ const tech = techStack.find((tech2) => tech2.tag === tag);
1092
+ if (!tech) return null;
1091
1093
  return {
1092
- ...techStack.find((tech) => tech.tag === tag),
1094
+ ...tech,
1093
1095
  projects: getProjectsByTechnology(tag)
1094
1096
  };
1095
1097
  }
package/dist/index.mjs CHANGED
@@ -1057,8 +1057,10 @@ function getProjectBySlug(slug) {
1057
1057
  return projects.find((project) => project.slug === slug);
1058
1058
  }
1059
1059
  function getTechStackByTag(tag) {
1060
+ const tech = techStack.find((tech2) => tech2.tag === tag);
1061
+ if (!tech) return null;
1060
1062
  return {
1061
- ...techStack.find((tech) => tech.tag === tag),
1063
+ ...tech,
1062
1064
  projects: getProjectsByTechnology(tag)
1063
1065
  };
1064
1066
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaboesquivel",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Gabo Esquivel - Software Engineer",
5
5
  "author": "Gabo Esquivel",
6
6
  "main": "./dist/index.js",