
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@ts-racers/gitlab-fetch
Advanced tools
library to get groups, projects, pipelines and commits from gitlab
library to get groups, projects, pipelines and commits from gitlab
npm install @ts-racers/gitlab-fetch # or yarn add @ts-racers/gitlab-fetch
import { GitlabFetch } from '@ts-racers/gitlab-fetch';
const { groups } = new GitlabFetch('gitlab-token');
(async () => {
// get one group
const myGroup = await groups.getOne('my-group');
console.log(myGroup);
/*
{
id: number;
avatarUrl?: string
description: string;
name: string;
fullName: string;
path: string;
} | undefined
*/
// get one group and yours subgroups
const descendantGroups = await groups.descendantGroups({
fullPath: 'my-group',
includeParentDescendants: true, // default is false
});
console.log(descendantGroups);
/*
{
group: {id: number; ... }
subgroups: Array<{id: number; ... }>
} | undefined
*/
})();
import { GitlabFetch } from '@ts-racers/gitlab-fetch';
const { projects } = new GitlabFetch('gitlab-token');
(async () => {
// get one group
const myProjects = await projects.projectsByGroup({
fullPath: 'my-group',
includeSubGroups: true, // default is false
});
console.log(myProjects);
/*
{
group: {id: number, ... },
projects: Array<{
id: number;
name: string;
fullPath: string;
path: string;
webUrl: string;
sshUrlToRepo: string;
httpUrlToRepo: string;
description: null | string;
avatarUrl?: string;
languages: {
names: string[];
percentages: Array<{
name: string;
share: number;
}>;
};
createdAt: Date;
lastActivityAt: Date;
defaultBranch: string;
pipelineCounts: {
finished: number;
pending: number;
running: number;
all: number;
};
topics: string[];
}>
} | undefined
*/
// get one group and yours subgroups
const descendantGroups = await groups.descendantGroups({
fullPath: 'my-group',
includeParentDescendants: true, // default is false
});
console.log(descendantGroups);
/*
{
group: {id: number; ... }
subgroups: Array<{id: number; ... }>
} | undefined
*/
})();
import { GitlabFetch } from '@ts-racers/gitlab-fetch';
const { pipelines } = new GitlabFetch(
'gitlab-token'
);
(async () => {
// get pipelines and jobs
const pipesAndJobs = await pipelines.pipelinesAndJobs({
fullPath: 'path/of/my/gitlab-project',
updatedAfter: new Date(), // default is undefined
});
console.log(pipesAndJobs);
/*
{
pipelines: Array<{
project_fullPath: string;
id: number;
coverage: number;
createdAt: Date;
startedAt: Date;
finishedAt: Date;
ref: string;
refPath: string;
beforeSha: string;
sha: string;
status: string;
duration: number;
queuedDuration: number;
commit: {
authorName: string;
authoredDate: Date;
sha: string;
webUrl: string;
};
}>
jobs: Array<{
pipeline_id: number;
project_fullPath: string;
name: string;
refName: string;
coverage: number;
queuedDuration: number;
duration: number;
id: number;
stage_name: string;
createdByTag: boolean;
status: string;
createdAt: Date;
startedAt?: Date;
finishedAt?: Date;
}>
}
*/
import { GitlabFetch } from '@ts-racers/gitlab-fetch';
const { mergeRequests } = new GitlabFetch(
'gitlab-token'
);
(async () => {
// get merge requests commits
const mergeRequestsCommits = await mergeRequests.mergeRequestsCommits({
fullPath: 'path/of/my/gitlab-project',
targetBranches: ["master", "main"],
updatedAfter: new Date(), // default is undefined
});
console.log(mergeRequestsCommits);
/*
[
{
project_fullPath: string;
id: number;
sourceBranch: string;
targetBranch: string;
mergedAt: Date;
createdAt: Date;
approved: boolean;
approvedBy: Array<{ name: string; username: string }>;
author: { name: string; username: string };
commits: Array<{
sha: string;
shortId: string;
title: string;
authorName: string;
authorEmail: string;
authoredDate: Date;
description: string;
}>;
}
]
*/
FAQs
library to get groups, projects, pipelines and commits from gitlab
We found that @ts-racers/gitlab-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.