@followupus/common 0.8.8 → 0.9.0

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.
@@ -44,6 +44,7 @@ export interface DeltaMessages {
44
44
  rootId: string;
45
45
  };
46
46
  }
47
+ export declare const INDEX_DISTANCE = 16384;
47
48
  export declare const PREFIX_PK: {
48
49
  WORKSPACE: string;
49
50
  FOLDER: string;
@@ -24,6 +24,7 @@ export const DELTA_ROOT_SCHEMA_NAME = {
24
24
  BOARDS: "BOARDS",
25
25
  SPACES: "SPACES",
26
26
  };
27
+ export const INDEX_DISTANCE = 16384;
27
28
  export const PREFIX_PK = {
28
29
  WORKSPACE: "WS",
29
30
  FOLDER: "FD",
@@ -0,0 +1 @@
1
+ export declare const nanoid5: (size?: number | undefined) => string;
@@ -0,0 +1,3 @@
1
+ import { customAlphabet } from "nanoid";
2
+ const alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
3
+ export const nanoid5 = customAlphabet(alphabet, 5);
@@ -1 +1,2 @@
1
1
  export * from "./validator.js";
2
+ export * from "./idUtil.js";
@@ -1 +1,2 @@
1
1
  export * from "./validator.js";
2
+ export * from "./idUtil.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@followupus/common",
3
- "version": "0.8.8",
3
+ "version": "0.9.0",
4
4
  "description": "followup common utils npm package with TypeScript and VSCode",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -67,7 +67,8 @@
67
67
  "dependencies": {
68
68
  "async-validator": "^4.2.5",
69
69
  "dayjs": "^1.11.10",
70
- "lodash": "^4.17.21"
70
+ "lodash": "^4.17.21",
71
+ "nanoid": "^5.0.1"
71
72
  },
72
73
  "scripts": {
73
74
  "dev": "tsc --watch",