@punks/backend-core 0.0.76 → 0.0.77
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.
- package/dist/cjs/index.js +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/utils/encoding.d.ts +5 -0
- package/dist/cjs/types/utils/index.d.ts +1 -0
- package/dist/cjs/types/utils/uid.d.ts +1 -0
- package/dist/esm/index.js +13 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/utils/encoding.d.ts +5 -0
- package/dist/esm/types/utils/index.d.ts +1 -0
- package/dist/esm/types/utils/uid.d.ts +1 -0
- package/dist/index.d.ts +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare const encodeUtf8: (value: Uint8Array) => string;
|
|
3
|
+
export declare const decodeUtf8: (value: string) => Buffer;
|
|
4
|
+
export declare const encodeBase64: (value: Uint8Array) => string;
|
|
5
|
+
export declare const decodeBase64: (value: string) => Buffer;
|
|
@@ -6,6 +6,7 @@ export { getDirectoryFilePaths } from "./files";
|
|
|
6
6
|
export { joinPath, splitPath, ensureDirectory, getDirectoryPath, createDayPath, } from "./paths";
|
|
7
7
|
export * from "./strings";
|
|
8
8
|
export * from "./objects";
|
|
9
|
+
export * from "./encoding";
|
|
9
10
|
export { maskVariable } from "./variables";
|
|
10
11
|
export * from "./text";
|
|
11
12
|
export * from "./threading";
|
package/dist/index.d.ts
CHANGED
|
@@ -251,6 +251,11 @@ declare const jsonSerialize: (obj: any, options?: {
|
|
|
251
251
|
prettify?: boolean;
|
|
252
252
|
}) => string;
|
|
253
253
|
|
|
254
|
+
declare const encodeUtf8: (value: Uint8Array) => string;
|
|
255
|
+
declare const decodeUtf8: (value: string) => Buffer;
|
|
256
|
+
declare const encodeBase64: (value: Uint8Array) => string;
|
|
257
|
+
declare const decodeBase64: (value: string) => Buffer;
|
|
258
|
+
|
|
254
259
|
declare const maskVariable: (value: string | undefined, unmaskedLength?: number) => string;
|
|
255
260
|
|
|
256
261
|
declare const pluralize: (word: string) => string;
|
|
@@ -271,6 +276,7 @@ declare const mapOrThrow: <T>({ mapper, throw: throwFn, }: {
|
|
|
271
276
|
}) => T;
|
|
272
277
|
|
|
273
278
|
declare const newUuid: () => string;
|
|
279
|
+
declare const generateHash: (length: number) => string;
|
|
274
280
|
|
|
275
281
|
declare function serializeQueryString(obj: {
|
|
276
282
|
[key: string]: any;
|
|
@@ -315,4 +321,4 @@ type ExcelParseOptions = {
|
|
|
315
321
|
};
|
|
316
322
|
declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any;
|
|
317
323
|
|
|
318
|
-
export { AppServiceReference, ConsoleLogger, CsvBuildOptions, CsvColumnDefinition, DatadogLogger, Dict, ExcelColumnDefinition, ExcelKeyTransform, ExcelParseOptions, ExcelSheetDefinition, FileLogger, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, LocalizedField, Log, LogLevel, MetaSerializationType, Optional, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, buildUrl, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, createDayPath, csvBuild, csvParse, deserializeQueryString, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, floorDateToSecond, getDirectoryFilePaths, getDirectoryPath, getQueryParameter, groupBy, indexes, isNullOrUndefined, iterate, joinPath, joinUrl, jsonDistinct, jsonSerialize, last, logMemoryUsage, mapAsync, mapOrThrow, maskVariable, mergeDeep, multipleSplit, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, processArrayItemMove, range, removeUndefinedProps, selectMany, serializeQueryString, sleep, sort, splitPath, subArrays, subtractTime, testInternetConnection, toArrayDict, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart, updateQueryParameters };
|
|
324
|
+
export { AppServiceReference, ConsoleLogger, CsvBuildOptions, CsvColumnDefinition, DatadogLogger, Dict, ExcelColumnDefinition, ExcelKeyTransform, ExcelParseOptions, ExcelSheetDefinition, FileLogger, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, LocalizedField, Log, LogLevel, MetaSerializationType, Optional, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, buildUrl, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, createDayPath, csvBuild, csvParse, decodeBase64, decodeUtf8, deserializeQueryString, distinct, distinctElements, encodeBase64, encodeUtf8, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, floorDateToSecond, generateHash, getDirectoryFilePaths, getDirectoryPath, getQueryParameter, groupBy, indexes, isNullOrUndefined, iterate, joinPath, joinUrl, jsonDistinct, jsonSerialize, last, logMemoryUsage, mapAsync, mapOrThrow, maskVariable, mergeDeep, multipleSplit, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, processArrayItemMove, range, removeUndefinedProps, selectMany, serializeQueryString, sleep, sort, splitPath, subArrays, subtractTime, testInternetConnection, toArrayDict, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart, updateQueryParameters };
|