gaboesquivel 3.3.0 → 3.3.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
@@ -28,4 +28,19 @@ declare const projects: Project[];
28
28
 
29
29
  declare const techStack: TechStackItem[];
30
30
 
31
- export { projects, techStack };
31
+ 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
+ };
44
+ declare function getProjectsByTechnology(tag: string): Project[];
45
+
46
+ export { getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
package/dist/index.d.ts CHANGED
@@ -28,4 +28,19 @@ declare const projects: Project[];
28
28
 
29
29
  declare const techStack: TechStackItem[];
30
30
 
31
- export { projects, techStack };
31
+ 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
+ };
44
+ declare function getProjectsByTechnology(tag: string): Project[];
45
+
46
+ export { getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
package/dist/index.js CHANGED
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ getProjectBySlug: () => getProjectBySlug,
24
+ getProjectsByTechnology: () => getProjectsByTechnology,
25
+ getTechStackByTag: () => getTechStackByTag,
23
26
  projects: () => projects,
24
27
  techStack: () => techStack
25
28
  });
@@ -1078,8 +1081,25 @@ var techStack = [
1078
1081
  ]
1079
1082
  }
1080
1083
  ];
1084
+
1085
+ // src/api.ts
1086
+ function getProjectBySlug(slug) {
1087
+ return projects.find((project) => project.slug === slug);
1088
+ }
1089
+ function getTechStackByTag(tag) {
1090
+ return {
1091
+ ...techStack.find((tech) => tech.tag === tag),
1092
+ projects: getProjectsByTechnology(tag)
1093
+ };
1094
+ }
1095
+ function getProjectsByTechnology(tag) {
1096
+ return projects.filter((project) => project.technologies.includes(tag));
1097
+ }
1081
1098
  // Annotate the CommonJS export names for ESM import in node:
1082
1099
  0 && (module.exports = {
1100
+ getProjectBySlug,
1101
+ getProjectsByTechnology,
1102
+ getTechStackByTag,
1083
1103
  projects,
1084
1104
  techStack
1085
1105
  });
package/dist/index.mjs CHANGED
@@ -1051,7 +1051,24 @@ var techStack = [
1051
1051
  ]
1052
1052
  }
1053
1053
  ];
1054
+
1055
+ // src/api.ts
1056
+ function getProjectBySlug(slug) {
1057
+ return projects.find((project) => project.slug === slug);
1058
+ }
1059
+ function getTechStackByTag(tag) {
1060
+ return {
1061
+ ...techStack.find((tech) => tech.tag === tag),
1062
+ projects: getProjectsByTechnology(tag)
1063
+ };
1064
+ }
1065
+ function getProjectsByTechnology(tag) {
1066
+ return projects.filter((project) => project.technologies.includes(tag));
1067
+ }
1054
1068
  export {
1069
+ getProjectBySlug,
1070
+ getProjectsByTechnology,
1071
+ getTechStackByTag,
1055
1072
  projects,
1056
1073
  techStack
1057
1074
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaboesquivel",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "Gabo Esquivel - Software Engineer",
5
5
  "author": "Gabo Esquivel",
6
6
  "main": "./dist/index.js",
package/src/api.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { projects } from './projects';
2
+ import { techStack } from './tech';
3
+
4
+ export function getProjectBySlug(slug: string) {
5
+ return projects.find((project) => project.slug === slug);
6
+ }
7
+
8
+ export function getTechStackByTag(tag: string) {
9
+ return {
10
+ ...techStack.find((tech) => tech.tag === tag),
11
+ projects: getProjectsByTechnology(tag)
12
+ }
13
+ }
14
+
15
+ export function getProjectsByTechnology(tag: string) {
16
+ return projects.filter((project) => project.technologies.includes(tag));
17
+ }
package/src/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './projects'
2
- export * from './tech'
2
+ export * from './tech'
3
+ export * from './api'