🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@dossierhq/core

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dossierhq/core - npm Package Compare versions

Comparing version
0.7.17
to
0.7.18
+2
-2
lib/client/JsonUtils.d.ts

@@ -18,3 +18,3 @@ import { type ErrorType, type Result } from '../ErrorResult.js';

};
export interface JsonEntityInfo extends Omit<EntityInfo, 'createdAt' | 'updatedAt'> {
interface JsonEntityInfo extends Omit<EntityInfo, 'createdAt' | 'updatedAt'> {
createdAt: string;

@@ -26,3 +26,3 @@ updatedAt: string;

}
export interface JsonPublishedEntityInfo extends Omit<PublishedEntityInfo, 'createdAt'> {
interface JsonPublishedEntityInfo extends Omit<PublishedEntityInfo, 'createdAt'> {
createdAt: string;

@@ -29,0 +29,0 @@ }

@@ -7,3 +7,3 @@ import type { ErrorType, Result } from '../ErrorResult.js';

import { type ContentTransformerEntityFieldsOptions, type ContentTransformerOptions } from './ContentTransformer.js';
export type ContentNormalizerOptions = ContentTransformerOptions;
type ContentNormalizerOptions = ContentTransformerOptions;
export type ContentNormalizerEntityFieldsOptions = ContentTransformerEntityFieldsOptions;

@@ -13,1 +13,2 @@ export declare function normalizeEntityFields<TEntity extends EntityLike<string, object>>(schema: Schema | PublishedSchema, path: ContentValuePath, entity: Readonly<TEntity>, options?: ContentNormalizerEntityFieldsOptions): Result<TEntity['fields'], typeof ErrorType.BadRequest | typeof ErrorType.Generic>;

export declare function normalizeContentField<TSchema extends Schema | PublishedSchema>(schema: TSchema, path: ContentValuePath, fieldSpec: TSchema['spec']['entityTypes' | 'componentTypes'][number]['fields'][number], value: unknown, options?: ContentNormalizerOptions): Result<unknown, typeof ErrorType.BadRequest | typeof ErrorType.Generic>;
export {};
import { type ErrorType, type Result } from '../ErrorResult.js';
import type { RichText, RichTextNode } from '../Types.js';
import { type ContentValuePath } from './ContentPath.js';
export type RichTextNodeTransformer<TError extends ErrorType> = (path: ContentValuePath, node: Readonly<RichTextNode>) => Result<Readonly<RichTextNode | null>, TError>;
type RichTextNodeTransformer<TError extends ErrorType> = (path: ContentValuePath, node: Readonly<RichTextNode>) => Result<Readonly<RichTextNode | null>, TError>;
export declare function transformRichText<T extends Readonly<RichText> | RichText, TError extends ErrorType>(path: ContentValuePath, richText: T, transformer: RichTextNodeTransformer<TError>): Result<T | null, TError | typeof ErrorType.BadRequest | typeof ErrorType.Generic>;
export {};
{
"name": "@dossierhq/core",
"version": "0.7.17",
"version": "0.7.18",
"description": "The core Dossier library used by clients and server alike, used to interact with schema and entities directly, as well as remotely through a client.",

@@ -34,7 +34,7 @@ "keywords": [

"devDependencies": {
"@vitest/coverage-v8": "~3.0.8",
"eslint": "~9.21.0",
"typescript": "~5.8.2",
"vitest": "~3.0.8",
"@dossierhq/eslint-config": "1.0.1",
"@vitest/coverage-v8": "~3.1.2",
"eslint": "~9.26.0",
"typescript": "~5.8.3",
"vitest": "~3.1.2",
"@dossierhq/eslint-config": "1.0.2",
"@dossierhq/typescript-config": "1.0.2"

@@ -41,0 +41,0 @@ },