
Security News
Free Certified Patch for Critical Rails Active Storage Vulnerability
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.
@cp949/geul-model
Advanced tools
geul 문서의 독자 JSON 스키마와 검증을 담당하는 패키지다. 프레임워크·렌더러·DOM 어디에도 의존하지 않는 순수 타입과 함수만 내보낸다 — @cp949/geul-io·@cp949/geul-core·@cp949/geul-react가 공유하는 문서 타입의 단일 소스다.
공개 함수 전부 브라우저 DOM 전역(document/window)을 참조하지 않는다. 순수 Node.js 환경에서도 그대로 동작한다 — 저장된 문서를 검증하거나, 클라이언트가 보낸 JSON을 신뢰하기 전에 서버에서 재검증할 때 쓸 수 있다.
패키지 자체가 이를 컴파일 타임에도 강제한다 — tsconfig.json이 lib에 DOM을 포함하지 않아 소스 어디서도 document/window를 전역 식별자로 참조할 수 없다.
import { createEmptyDocument, createRandomDocumentId, parseDocument } from "@cp949/geul-model";
// 인자는 블록 id를 만드는 함수다.
// createRandomDocumentId는 Chrome75 호환 UUID v4 생성기이자 createEmptyDocument의
// 기본값이다 — 인자를 생략해도 같지만, 여기서는 명시했다.
const emptyDocument = createEmptyDocument(createRandomDocumentId);
// 외부(저장소, API 요청 body 등)에서 받은 값은 신뢰하지 않고 재검증한다.
const result = parseDocument(rawJsonFromStorage);
if (result.ok) {
const validated = result.value; // Document
} else {
result.error; // { code: DocumentErrorCode, path, message }
}
Document, Block(paragraph·heading·table·image 등 14종), InlineContentItem, TextMarkparseDocument(전체 문서 shape·의미 검증), isValidDocumentId, isValidCodeBlockSource, isSupportedLinkHref/isSupportedMediaUrl 등 필드별 판정 함수parseTableColumns/serializeTableColumns(표 열 폭 속성 왕복), GridCell 등 논리 격자 타입 — 표는 셀 병합을 포함한 논리 격자 정합성까지 이 패키지가 검증한다canonicalizeTextMarks/isCanonicalTextMarks(마크 정규형), appendOrMergeInlineItem@cp949/geul-io, 에디터 편집 세션은 @cp949/geul-core가 담당한다.Document는 순수 데이터다 — 편집 히스토리(undo/redo)나 에디터 세션 상태를 포함하지 않는다.FAQs
geul 에디터의 독자 문서 JSON 스키마와 검증 — 프레임워크·DOM 비의존
The npm package @cp949/geul-model receives a total of 0 weekly downloads. As such, @cp949/geul-model popularity was classified as not popular.
We found that @cp949/geul-model demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.

Security News
/Threat Research
A malicious Ruby gem runs a credential-stealing worm during installation, poisons AI coding tools, and can wipe files when a stolen GitHub token is revoked.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.