@punks/backend-core 0.0.23 → 0.0.25

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.
@@ -1,3 +1,4 @@
1
1
  export * from "./abstractions";
2
2
  export * from "./logging";
3
+ export * from "./types";
3
4
  export * from "./utils";
@@ -0,0 +1,2 @@
1
+ import { PortableTextBlock } from "@portabletext/types";
2
+ export type RichText = PortableTextBlock[];
@@ -1,3 +1,4 @@
1
1
  export * from "./abstractions";
2
2
  export * from "./logging";
3
+ export * from "./types";
3
4
  export * from "./utils";
@@ -0,0 +1,2 @@
1
+ import { PortableTextBlock } from "@portabletext/types";
2
+ export type RichText = PortableTextBlock[];
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  /// <reference types="node" />
2
+ import { PortableTextBlock } from '@portabletext/types';
3
+
2
4
  interface IResolveServiceOptions {
3
5
  optional?: boolean;
4
6
  }
@@ -40,6 +42,8 @@ declare class Log {
40
42
  static getLogger(loggerName: string): ILogger;
41
43
  }
42
44
 
45
+ type RichText = PortableTextBlock[];
46
+
43
47
  declare const range: (start: number, end: number) => number[];
44
48
  declare const indexes: (startIndex: number, count: number) => number[];
45
49
  interface Dict<TVal> {
@@ -125,4 +129,4 @@ type ExcelParseOptions = {
125
129
  };
126
130
  declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
127
131
 
128
- export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, Log, LogLevel, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, newUuid, notNull, notUndefined, pluralize, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
132
+ export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, Log, LogLevel, RichText, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, newUuid, notNull, notUndefined, pluralize, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-core",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "description": "WebPunks Backend Core",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -23,6 +23,7 @@
23
23
  "license": "ISC",
24
24
  "devDependencies": {
25
25
  "@babel/core": "^7.21.0",
26
+ "@portabletext/types": "^2.0.8",
26
27
  "@rollup/plugin-commonjs": "^21.0.1",
27
28
  "@rollup/plugin-node-resolve": "^13.0.6",
28
29
  "@rollup/plugin-typescript": "^11.0.0",
@@ -38,7 +39,9 @@
38
39
  "tslib": "^2.5.0",
39
40
  "typescript": "^5.1.6"
40
41
  },
41
- "peerDependencies": {},
42
+ "peerDependencies": {
43
+ "@portabletext/types": "^2.0.8"
44
+ },
42
45
  "dependencies": {},
43
46
  "jest": {
44
47
  "transform": {