gaboesquivel 3.4.0 → 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 +6 -13
- package/dist/index.d.ts +6 -13
- package/dist/index.js +8 -1
- package/dist/index.mjs +7 -1
- package/package.json +2 -3
package/dist/index.d.mts
CHANGED
|
@@ -23,24 +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[];
|
|
37
|
+
declare function gaboLog(): void;
|
|
45
38
|
|
|
46
|
-
export { type Project, type TechStackItem, 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,24 +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[];
|
|
37
|
+
declare function gaboLog(): void;
|
|
45
38
|
|
|
46
|
-
export { type Project, type TechStackItem, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
|
|
39
|
+
export { type Project, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
|
package/dist/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
+
gaboLog: () => gaboLog,
|
|
23
24
|
getProjectBySlug: () => getProjectBySlug,
|
|
24
25
|
getProjectsByTechnology: () => getProjectsByTechnology,
|
|
25
26
|
getTechStackByTag: () => getTechStackByTag,
|
|
@@ -1087,16 +1088,22 @@ function getProjectBySlug(slug) {
|
|
|
1087
1088
|
return projects.find((project) => project.slug === slug);
|
|
1088
1089
|
}
|
|
1089
1090
|
function getTechStackByTag(tag) {
|
|
1091
|
+
const tech = techStack.find((tech2) => tech2.tag === tag);
|
|
1092
|
+
if (!tech) return null;
|
|
1090
1093
|
return {
|
|
1091
|
-
...
|
|
1094
|
+
...tech,
|
|
1092
1095
|
projects: getProjectsByTechnology(tag)
|
|
1093
1096
|
};
|
|
1094
1097
|
}
|
|
1095
1098
|
function getProjectsByTechnology(tag) {
|
|
1096
1099
|
return projects.filter((project) => project.technologies.includes(tag));
|
|
1097
1100
|
}
|
|
1101
|
+
function gaboLog() {
|
|
1102
|
+
console.log({ project: projects, tech: techStack });
|
|
1103
|
+
}
|
|
1098
1104
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1099
1105
|
0 && (module.exports = {
|
|
1106
|
+
gaboLog,
|
|
1100
1107
|
getProjectBySlug,
|
|
1101
1108
|
getProjectsByTechnology,
|
|
1102
1109
|
getTechStackByTag,
|
package/dist/index.mjs
CHANGED
|
@@ -1057,15 +1057,21 @@ 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
|
-
...
|
|
1063
|
+
...tech,
|
|
1062
1064
|
projects: getProjectsByTechnology(tag)
|
|
1063
1065
|
};
|
|
1064
1066
|
}
|
|
1065
1067
|
function getProjectsByTechnology(tag) {
|
|
1066
1068
|
return projects.filter((project) => project.technologies.includes(tag));
|
|
1067
1069
|
}
|
|
1070
|
+
function gaboLog() {
|
|
1071
|
+
console.log({ project: projects, tech: techStack });
|
|
1072
|
+
}
|
|
1068
1073
|
export {
|
|
1074
|
+
gaboLog,
|
|
1069
1075
|
getProjectBySlug,
|
|
1070
1076
|
getProjectsByTechnology,
|
|
1071
1077
|
getTechStackByTag,
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gaboesquivel",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Gabo Esquivel - Software Engineer",
|
|
5
5
|
"author": "Gabo Esquivel",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
10
|
-
"dev": "tsup src/index.ts --format cjs,esm --dts --watch"
|
|
11
|
-
"publish": "npm run build && npm publish --public"
|
|
10
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch"
|
|
12
11
|
},
|
|
13
12
|
"devDependencies": {
|
|
14
13
|
"tsup": "^8.4.0",
|