@punks/backend-core 0.0.64 → 0.0.65

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.
@@ -10,4 +10,5 @@ export * from "./threading";
10
10
  export { buildTree, TreeNodeBuilder } from "./trees";
11
11
  export * from "./mappings";
12
12
  export * from "./uid";
13
+ export { serializeQueryString, buildUrl, deserializeQueryString, getQueryParameter, updateQueryParameters, } from "./urls";
13
14
  export { ExcelSheetDefinition, ExcelKeyTransform, ExcelColumnDefinition as ExcelRowBuilder, ExcelParseOptions, excelBuild, excelParse, } from "./xls";
@@ -0,0 +1,13 @@
1
+ export declare function serializeQueryString(obj: {
2
+ [key: string]: any;
3
+ }): string;
4
+ export declare const buildUrl: (path: string, query: {
5
+ [key: string]: any;
6
+ }) => string;
7
+ export declare function deserializeQueryString(queryString: string): {
8
+ [key: string]: any;
9
+ };
10
+ export declare const getQueryParameter: (name: string, location?: Location) => any;
11
+ export declare const updateQueryParameters: (queryString: string, params: {
12
+ [key: string]: any;
13
+ }) => string;
package/dist/index.d.ts CHANGED
@@ -250,6 +250,20 @@ declare const mapOrThrow: <T>({ mapper, throw: throwFn, }: {
250
250
 
251
251
  declare const newUuid: () => string;
252
252
 
253
+ declare function serializeQueryString(obj: {
254
+ [key: string]: any;
255
+ }): string;
256
+ declare const buildUrl: (path: string, query: {
257
+ [key: string]: any;
258
+ }) => string;
259
+ declare function deserializeQueryString(queryString: string): {
260
+ [key: string]: any;
261
+ };
262
+ declare const getQueryParameter: (name: string, location?: Location) => any;
263
+ declare const updateQueryParameters: (queryString: string, params: {
264
+ [key: string]: any;
265
+ }) => string;
266
+
253
267
  interface ExcelColumnDefinition<T> {
254
268
  value: (row: T) => any;
255
269
  header: string;
@@ -271,4 +285,4 @@ type ExcelParseOptions = {
271
285
  };
272
286
  declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
273
287
 
274
- export { AppServiceReference, CsvColumnDefinition as ColumnDefinition, ConsoleLogger, CsvBuildOptions, DatadogLogger, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, FileLogger, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, LocalizedField, Log, LogLevel, MetaSerializationType, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, createDayPath, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, groupBy, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, jsonSerialize, last, logMemoryUsage, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, processArrayItemMove, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toArrayDict, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
288
+ export { AppServiceReference, CsvColumnDefinition as ColumnDefinition, ConsoleLogger, CsvBuildOptions, DatadogLogger, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, FileLogger, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, LocalizedField, Log, LogLevel, MetaSerializationType, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, buildUrl, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, createDayPath, csvBuild, csvParse, deserializeQueryString, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, getQueryParameter, groupBy, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, jsonSerialize, last, logMemoryUsage, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, processArrayItemMove, range, removeUndefinedProps, selectMany, serializeQueryString, sleep, sort, splitPath, subArrays, subtractTime, toArrayDict, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart, updateQueryParameters };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-core",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "WebPunks Backend Core",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",