@graffy/common 0.19.0 → 0.19.1-alpha.1

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.
Files changed (85) hide show
  1. package/coding/alphabet.js +5 -0
  2. package/coding/args.d.ts +5 -0
  3. package/coding/args.js +93 -0
  4. package/coding/base64.d.ts +2 -0
  5. package/coding/base64.js +41 -0
  6. package/coding/decodeTree.d.ts +2 -0
  7. package/coding/decodeTree.js +197 -0
  8. package/coding/decorate.js +211 -0
  9. package/coding/encodeTree.d.ts +2 -0
  10. package/coding/encodeTree.js +248 -0
  11. package/coding/id.js +4 -0
  12. package/coding/index.d.ts +8 -0
  13. package/{types/coding/index.d.ts → coding/index.js} +4 -4
  14. package/coding/number.d.ts +2 -0
  15. package/coding/number.js +39 -0
  16. package/coding/pack.d.ts +2 -0
  17. package/coding/pack.js +71 -0
  18. package/coding/path.d.ts +3 -0
  19. package/coding/path.js +41 -0
  20. package/coding/string.d.ts +2 -0
  21. package/coding/string.js +8 -0
  22. package/coding/struct.d.ts +11 -0
  23. package/coding/struct.js +163 -0
  24. package/index.d.ts +6 -0
  25. package/node/find.d.ts +2 -0
  26. package/node/find.js +14 -0
  27. package/node/index.d.ts +2 -0
  28. package/{types/node/index.d.ts → node/index.js} +1 -0
  29. package/node/types.d.ts +6 -0
  30. package/node/types.js +18 -0
  31. package/object.d.ts +4 -0
  32. package/object.js +86 -0
  33. package/ops/add.js +64 -0
  34. package/{types/ops → ops}/finalize.d.ts +1 -1
  35. package/ops/finalize.js +19 -0
  36. package/{types/ops → ops}/getKnown.d.ts +1 -4
  37. package/ops/getKnown.js +24 -0
  38. package/ops/index.d.ts +9 -0
  39. package/ops/merge.d.ts +3 -0
  40. package/ops/merge.js +112 -0
  41. package/ops/path.d.ts +6 -0
  42. package/ops/path.js +91 -0
  43. package/ops/setVersion.js +29 -0
  44. package/ops/sieve.d.ts +3 -0
  45. package/ops/sieve.js +193 -0
  46. package/{types/ops → ops}/slice.d.ts +2 -6
  47. package/ops/slice.js +153 -0
  48. package/ops/step.d.ts +6 -0
  49. package/ops/step.js +61 -0
  50. package/package.json +14 -8
  51. package/stream/index.d.ts +2 -0
  52. package/stream/makeWatcher.d.ts +10 -0
  53. package/stream/makeWatcher.js +19 -0
  54. package/stream/mergeStreams.js +20 -0
  55. package/util.d.ts +15 -0
  56. package/util.js +106 -0
  57. package/index.cjs +0 -1673
  58. package/index.mjs +0 -1673
  59. package/types/coding/args.d.ts +0 -5
  60. package/types/coding/base64.d.ts +0 -2
  61. package/types/coding/decodeTree.d.ts +0 -2
  62. package/types/coding/encodeTree.d.ts +0 -2
  63. package/types/coding/number.d.ts +0 -2
  64. package/types/coding/pack.d.ts +0 -2
  65. package/types/coding/path.d.ts +0 -3
  66. package/types/coding/string.d.ts +0 -2
  67. package/types/coding/struct.d.ts +0 -11
  68. package/types/node/find.d.ts +0 -2
  69. package/types/node/types.d.ts +0 -6
  70. package/types/object.d.ts +0 -4
  71. package/types/ops/merge.d.ts +0 -3
  72. package/types/ops/path.d.ts +0 -6
  73. package/types/ops/sieve.d.ts +0 -3
  74. package/types/ops/step.d.ts +0 -6
  75. package/types/stream/makeWatcher.d.ts +0 -16
  76. package/types/util.d.ts +0 -15
  77. package/{types/coding → coding}/alphabet.d.ts +0 -0
  78. package/{types/coding → coding}/decorate.d.ts +0 -0
  79. package/{types/coding → coding}/id.d.ts +0 -0
  80. package/{types/index.d.ts → index.js} +0 -0
  81. package/{types/ops → ops}/add.d.ts +0 -0
  82. package/{types/ops/index.d.ts → ops/index.js} +1 -1
  83. /package/{types/ops → ops}/setVersion.d.ts +0 -0
  84. /package/{types/stream/index.d.ts → stream/index.js} +0 -0
  85. /package/{types/stream → stream}/mergeStreams.d.ts +0 -0
@@ -1,5 +0,0 @@
1
- export function splitArgs(arg: any): {}[];
2
- export function encode(arg: any): {
3
- key: Uint8Array<any>;
4
- };
5
- export function decode(node: any): any;
@@ -1,2 +0,0 @@
1
- export function encode(u8Arr: any): string;
2
- export function decode(string: any, start?: number): any;
@@ -1,2 +0,0 @@
1
- export function decodeGraph(graph: any): any;
2
- export function decodeQuery(query: any): any;
@@ -1,2 +0,0 @@
1
- export function encodeGraph(obj: any, version?: number): any;
2
- export function encodeQuery(obj: any, version?: number): any;
@@ -1,2 +0,0 @@
1
- export function encode(number: any): Uint8Array<ArrayBuffer>;
2
- export function decode(u8Arr: any): number;
@@ -1,2 +0,0 @@
1
- export function pack(children: any, parentVersion: any): any;
2
- export function unpack(children: any, parentVersion: any): any;
@@ -1,3 +0,0 @@
1
- export function encode(path: any): any;
2
- export function decode(path: any): any[];
3
- export function splitRef($ref: any): {}[];
@@ -1,2 +0,0 @@
1
- export function encode(string: any): Uint8Array<ArrayBuffer>;
2
- export function decode(u8Arr: any): string;
@@ -1,11 +0,0 @@
1
- export function encode(value: any): Uint8Array<any>;
2
- export function decode(buffer: any): any;
3
- export const END: 0;
4
- export const NULL: 1;
5
- export const FALSE: 2;
6
- export const TRUE: 3;
7
- export const NUM: 4;
8
- export const STR: 5;
9
- export const ARR: 6;
10
- export const OBJ: 7;
11
- export const EOK: 127;
@@ -1,2 +0,0 @@
1
- export function findFirst(children: any, target: any, first: any, last: any): number;
2
- export function findLast(children: any, end: any, first: any, last: any): number;
@@ -1,6 +0,0 @@
1
- export function isRange(node: any): boolean;
2
- export function isBranch(node: any): boolean;
3
- export function isPrefix(node: any): any;
4
- export function isLink(node: any): boolean;
5
- export function isOlder(node: any, version: any): boolean;
6
- export function isNewer(node: any, version: any): boolean;
package/types/object.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export function mergeObject(base: any, change: any): any;
2
- export function cloneObject(object: any): any;
3
- export function wrapObject(object: any, path: any): any;
4
- export function unwrapObject(object: any, path: any): any;
@@ -1,3 +0,0 @@
1
- export default function merge(current: any, changes: any): any;
2
- export function insertRange(current: any, change: any, start?: number): number;
3
- export function insertNode(current: any, change: any, start?: number): any;
@@ -1,6 +0,0 @@
1
- export function wrapValue(value: any, path: any, version?: number): any;
2
- export function wrap(children: any, path: any, version?: number, prefix?: boolean): any;
3
- export function unwrap(tree: any, path: any): any;
4
- export function getNodeValue(node: any): any;
5
- export function remove(children: any, path: any): any;
6
- export const IS_VAL: unique symbol;
@@ -1,3 +0,0 @@
1
- export default function sieve(current: any, changes: any, result?: any[]): any[];
2
- export function insertRange(current: any, change: any, result: any, start?: number): number;
3
- export function insertNode(current: any, change: any, result: any, start?: number): any;
@@ -1,6 +0,0 @@
1
- export function keyStep(key: any): {
2
- key: any;
3
- step: number;
4
- };
5
- export function keyBefore(key: any): any;
6
- export function keyAfter(key: any): any;
@@ -1,16 +0,0 @@
1
- export default function makeWatcher(): {
2
- write: (change: any) => void;
3
- watch: (...args: any[]) => {
4
- debugId: any;
5
- next: () => any;
6
- return(value: any): Promise<{
7
- value: any;
8
- done: boolean;
9
- }>;
10
- throw(error: any): Promise<{
11
- value: any;
12
- done: boolean;
13
- }>;
14
- [Symbol.asyncIterator](): /*elided*/ any;
15
- };
16
- };
package/types/util.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export function isMinKey(key: any): boolean;
2
- export function isMaxKey(key: any): boolean;
3
- export function err(message: any, { cause, ...args }?: {
4
- cause?: any;
5
- }): void;
6
- export function errIf(message: any, condition: any, args: any): void;
7
- export function isEmpty(object: any): boolean;
8
- export function isDef(value: any): boolean;
9
- export function isPlainObject(arg: any): boolean;
10
- export function clone(obj: any): any;
11
- export function cmp(a: any, b: any): 0 | 1 | -1;
12
- export function find(items: any, compare: any, first?: number, last?: any): number;
13
- export function addStringify(buffer: any): any;
14
- export const MIN_KEY: Uint8Array<ArrayBuffer>;
15
- export const MAX_KEY: Uint8Array<ArrayBuffer>;
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -3,7 +3,7 @@ export { default as finalize } from "./finalize.js";
3
3
  export { default as getKnown } from "./getKnown.js";
4
4
  export { default as merge } from "./merge.js";
5
5
  export * from "./path.js";
6
- export * from "./step.js";
7
6
  export { default as setVersion } from "./setVersion.js";
8
7
  export { default as sieve } from "./sieve.js";
9
8
  export { default as slice } from "./slice.js";
9
+ export * from "./step.js";
File without changes
File without changes
File without changes