Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@lumir-company/admin-server-api
Advanced tools
관리자 시스템을 위한 API SDK 패키지입니다.
npm install @lumir-company/admin-server-api
import { AuthAPI } from '@lumir-company/admin-server-api';
const authApi = new AuthAPI('http://your-api-url');
// 로그인
const token = await authApi.login({
accountId: 'your-id',
password: 'your-password',
});
import { NoticeAPI } from '@lumir-company/admin-server-api';
const noticeApi = new NoticeAPI('http://your-api-url');
noticeApi.setToken(token.accessToken);
// 공지사항 목록 조회
const { data } = await noticeApi.getNotices(1, 10);
// 공지사항 상세 조회
const notice = await noticeApi.getNoticeById('notice-id');
import { NewsAPI } from '@lumir-company/admin-server-api';
const newsApi = new NewsAPI('http://your-api-url');
newsApi.setToken(token.accessToken);
// 뉴스 목록 조회
const { data } = await newsApi.getNews(1, 10);
// 뉴스 상세 조회
const news = await newsApi.getNewsById('news-id');
import { PressReleaseAPI } from '@lumir-company/admin-server-api';
const pressReleaseApi = new PressReleaseAPI('http://your-api-url');
pressReleaseApi.setToken(token.accessToken);
// 보도자료 목록 조회
const { data } = await pressReleaseApi.getPressReleases(1, 10);
// 보도자료 상세 조회
const pressRelease =
await pressReleaseApi.getPressReleaseById('press-release-id');
import { S3API } from '@lumir-company/admin-server-api';
const s3Api = new S3API('http://your-api-url');
s3Api.setToken(token.accessToken);
// 파일 다운로드
const fileResponse = await s3Api.getFile('file-key', true);
import { PageViewAPI, PageName } from '@lumir-company/admin-server-api';
export enum PageName {
MAIN = '메인 페이지',
DISCLOSURE = '전자공고',
SHAREHOLDER = '주주정보',
NEWS = '루미르스토리',
VIDEO = '영상',
BROCHURE = '정보자료',
}
const pageViewApi = new PageViewAPI('http://your-api-url');
// 페이지 진입 시 기록
await pageViewApi.createPageView({
sessionId: 'user-session-id',
pageName: PageName.MAIN,
enterTime: new Date(),
url: 'https://lumir.space/',
});
// 페이지 이탈 시 업데이트
await pageViewApi.updatePageView({
sessionId: 'user-session-id',
pageName: PageName.MAIN,
exitTime: new Date(),
stayDuration: 60000, // 밀리초 단위
});
login({ accountId, password })
: 로그인하여 토큰을 반환setToken(token)
: API 요청에 사용할 토큰 설정getNotices(page, limit)
: 공지사항 목록 조회getNoticeById(id)
: 특정 공지사항 조회setToken(token)
: API 요청에 사용할 토큰 설정getNews(page, limit)
: 뉴스 목록 조회getNewsById(id)
: 특정 뉴스 조회setToken(token)
: API 요청에 사용할 토큰 설정getPressReleases(page, limit)
: 보도자료 목록 조회getPressReleaseById(id)
: 특정 보도자료 조회setToken(token)
: API 요청에 사용할 토큰 설정getFile(key, download)
: 파일 다운로드/조회createPageView(data)
: 페이지뷰 데이터 생성updatePageView(data)
: 페이지뷰 데이터 업데이트 (종료 시간 및 체류 시간)FAQs
관리자 시스템을 위한 API SDK 패키지입니다.
The npm package @lumir-company/admin-server-api receives a total of 61 weekly downloads. As such, @lumir-company/admin-server-api popularity was classified as not popular.
We found that @lumir-company/admin-server-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.