gaboesquivel 3.9.2 → 3.9.3
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +10 -0
- package/dist/index.mjs +9 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -38,7 +38,8 @@ declare const techStack: TechStackItem[];
|
|
|
38
38
|
|
|
39
39
|
declare function getProjectBySlug(slug: string): Project | undefined;
|
|
40
40
|
declare function getTechStackByTag(tag: Tag): TechStackItemWithProjects | null;
|
|
41
|
+
declare function getTechStackBySlug(slug: string): TechStackItemWithProjects | null;
|
|
41
42
|
declare function getProjectsByTechnology(tag: Tag): Project[];
|
|
42
43
|
declare function gaboLog(): void;
|
|
43
44
|
|
|
44
|
-
export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
|
|
45
|
+
export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackBySlug, getTechStackByTag, projects, techStack };
|
package/dist/index.d.ts
CHANGED
|
@@ -38,7 +38,8 @@ declare const techStack: TechStackItem[];
|
|
|
38
38
|
|
|
39
39
|
declare function getProjectBySlug(slug: string): Project | undefined;
|
|
40
40
|
declare function getTechStackByTag(tag: Tag): TechStackItemWithProjects | null;
|
|
41
|
+
declare function getTechStackBySlug(slug: string): TechStackItemWithProjects | null;
|
|
41
42
|
declare function getProjectsByTechnology(tag: Tag): Project[];
|
|
42
43
|
declare function gaboLog(): void;
|
|
43
44
|
|
|
44
|
-
export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, getTechStackByTag, projects, techStack };
|
|
45
|
+
export { type Project, type Tag, type TechStackItem, type TechStackItemWithProjects, gaboLog, getProjectBySlug, getProjectsByTechnology, 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
|
+
getTechStackBySlug: () => getTechStackBySlug,
|
|
26
27
|
getTechStackByTag: () => getTechStackByTag,
|
|
27
28
|
projects: () => projects,
|
|
28
29
|
techStack: () => techStack
|
|
@@ -2401,6 +2402,14 @@ function getTechStackByTag(tag) {
|
|
|
2401
2402
|
projects: getProjectsByTechnology(tag)
|
|
2402
2403
|
};
|
|
2403
2404
|
}
|
|
2405
|
+
function getTechStackBySlug(slug) {
|
|
2406
|
+
const tech = techStack.find((tech2) => tech2.slug === slug);
|
|
2407
|
+
if (!tech) return null;
|
|
2408
|
+
return {
|
|
2409
|
+
...tech,
|
|
2410
|
+
projects: getProjectsByTechnology(tech.tag)
|
|
2411
|
+
};
|
|
2412
|
+
}
|
|
2404
2413
|
function getProjectsByTechnology(tag) {
|
|
2405
2414
|
return projects.filter((project) => project.tech.includes(tag));
|
|
2406
2415
|
}
|
|
@@ -2412,6 +2421,7 @@ function gaboLog() {
|
|
|
2412
2421
|
gaboLog,
|
|
2413
2422
|
getProjectBySlug,
|
|
2414
2423
|
getProjectsByTechnology,
|
|
2424
|
+
getTechStackBySlug,
|
|
2415
2425
|
getTechStackByTag,
|
|
2416
2426
|
projects,
|
|
2417
2427
|
techStack
|
package/dist/index.mjs
CHANGED
|
@@ -2370,6 +2370,14 @@ function getTechStackByTag(tag) {
|
|
|
2370
2370
|
projects: getProjectsByTechnology(tag)
|
|
2371
2371
|
};
|
|
2372
2372
|
}
|
|
2373
|
+
function getTechStackBySlug(slug) {
|
|
2374
|
+
const tech = techStack.find((tech2) => tech2.slug === slug);
|
|
2375
|
+
if (!tech) return null;
|
|
2376
|
+
return {
|
|
2377
|
+
...tech,
|
|
2378
|
+
projects: getProjectsByTechnology(tech.tag)
|
|
2379
|
+
};
|
|
2380
|
+
}
|
|
2373
2381
|
function getProjectsByTechnology(tag) {
|
|
2374
2382
|
return projects.filter((project) => project.tech.includes(tag));
|
|
2375
2383
|
}
|
|
@@ -2380,6 +2388,7 @@ export {
|
|
|
2380
2388
|
gaboLog,
|
|
2381
2389
|
getProjectBySlug,
|
|
2382
2390
|
getProjectsByTechnology,
|
|
2391
|
+
getTechStackBySlug,
|
|
2383
2392
|
getTechStackByTag,
|
|
2384
2393
|
projects,
|
|
2385
2394
|
techStack
|