gaboesquivel 3.9.6 → 3.9.7

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
@@ -41,6 +41,7 @@ declare function getProjectBySlug(slug: string): Project | undefined;
41
41
  declare function getTechStackByTag(tag: Tag): TechStackItemWithProjects | null;
42
42
  declare function getTechStackBySlug(slug: string): TechStackItemWithProjects | null;
43
43
  declare function getProjectsByTechnology(tag: Tag): Project[];
44
+ declare function getProjectsByTechnologySlug(slug: string): Project[];
44
45
  declare function gaboLog(): void;
45
46
 
46
- export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackBySlug, getTechStackByTag, projects, techStack };
47
+ export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getProjectsByTechnologySlug, getTechStackBySlug, getTechStackByTag, projects, techStack };
package/dist/index.d.ts CHANGED
@@ -41,6 +41,7 @@ declare function getProjectBySlug(slug: string): Project | undefined;
41
41
  declare function getTechStackByTag(tag: Tag): TechStackItemWithProjects | null;
42
42
  declare function getTechStackBySlug(slug: string): TechStackItemWithProjects | null;
43
43
  declare function getProjectsByTechnology(tag: Tag): Project[];
44
+ declare function getProjectsByTechnologySlug(slug: string): Project[];
44
45
  declare function gaboLog(): void;
45
46
 
46
- export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackBySlug, getTechStackByTag, projects, techStack };
47
+ export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getProjectsByTechnologySlug, getTechStackBySlug, getTechStackByTag, projects, techStack };
package/dist/index.js CHANGED
@@ -23,6 +23,7 @@ __export(index_exports, {
23
23
  gaboLog: () => gaboLog,
24
24
  getProjectBySlug: () => getProjectBySlug,
25
25
  getProjectsByTechnology: () => getProjectsByTechnology,
26
+ getProjectsByTechnologySlug: () => getProjectsByTechnologySlug,
26
27
  getTechStackBySlug: () => getTechStackBySlug,
27
28
  getTechStackByTag: () => getTechStackByTag,
28
29
  projects: () => projects,
@@ -2477,6 +2478,11 @@ function getTechStackBySlug(slug) {
2477
2478
  function getProjectsByTechnology(tag) {
2478
2479
  return projects.filter((project) => project.tech.includes(tag));
2479
2480
  }
2481
+ function getProjectsByTechnologySlug(slug) {
2482
+ const tech = techStack.find((tech2) => tech2.slug === slug);
2483
+ if (!tech) return [];
2484
+ return projects.filter((project) => project.tech.includes(tech.tag));
2485
+ }
2480
2486
  function gaboLog() {
2481
2487
  console.log({ projects, tech: techStack });
2482
2488
  }
@@ -2485,6 +2491,7 @@ function gaboLog() {
2485
2491
  gaboLog,
2486
2492
  getProjectBySlug,
2487
2493
  getProjectsByTechnology,
2494
+ getProjectsByTechnologySlug,
2488
2495
  getTechStackBySlug,
2489
2496
  getTechStackByTag,
2490
2497
  projects,
package/dist/index.mjs CHANGED
@@ -2445,6 +2445,11 @@ function getTechStackBySlug(slug) {
2445
2445
  function getProjectsByTechnology(tag) {
2446
2446
  return projects.filter((project) => project.tech.includes(tag));
2447
2447
  }
2448
+ function getProjectsByTechnologySlug(slug) {
2449
+ const tech = techStack.find((tech2) => tech2.slug === slug);
2450
+ if (!tech) return [];
2451
+ return projects.filter((project) => project.tech.includes(tech.tag));
2452
+ }
2448
2453
  function gaboLog() {
2449
2454
  console.log({ projects, tech: techStack });
2450
2455
  }
@@ -2452,6 +2457,7 @@ export {
2452
2457
  gaboLog,
2453
2458
  getProjectBySlug,
2454
2459
  getProjectsByTechnology,
2460
+ getProjectsByTechnologySlug,
2455
2461
  getTechStackBySlug,
2456
2462
  getTechStackByTag,
2457
2463
  projects,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaboesquivel",
3
- "version": "3.9.6",
3
+ "version": "3.9.7",
4
4
  "description": "Gabo Esquivel - Software Engineer",
5
5
  "author": "Gabo Esquivel",
6
6
  "main": "./dist/index.js",