@e280/stz 0.0.0-1 → 0.0.0-10
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/package.json +8 -5
- package/s/clone/clone.test.ts +123 -123
- package/s/coalesce.ts +5 -0
- package/s/data/bytename/badge.test.ts +53 -0
- package/s/data/bytename/badge.ts +80 -0
- package/s/data/bytename/bytename.test.ts +49 -0
- package/s/data/{barname/barname.ts → bytename/bytename.ts} +39 -10
- package/s/data/bytename/index.ts +4 -0
- package/s/data/bytes.ts +10 -0
- package/s/deadline.ts +7 -5
- package/s/debounce/debounce.test.ts +73 -73
- package/s/deep/deep.test.ts +8 -8
- package/s/deep/parts/equal.test.ts +123 -124
- package/s/drill.ts +22 -0
- package/s/index.ts +9 -1
- package/s/loopy.ts +12 -0
- package/s/pubsub.ts +10 -4
- package/s/tests.test.ts +17 -0
- package/x/clone/clone.test.d.ts +15 -1
- package/x/clone/clone.test.js +106 -124
- package/x/clone/clone.test.js.map +1 -1
- package/x/coalesce.d.ts +1 -0
- package/x/coalesce.js +4 -0
- package/x/coalesce.js.map +1 -0
- package/x/data/bytename/badge.d.ts +26 -0
- package/x/data/bytename/badge.js +56 -0
- package/x/data/bytename/badge.js.map +1 -0
- package/x/data/bytename/badge.test.d.ts +24 -0
- package/x/data/bytename/badge.test.js +45 -0
- package/x/data/bytename/badge.test.js.map +1 -0
- package/x/data/bytename/bytename.d.ts +21 -0
- package/x/data/{barname/barname.js → bytename/bytename.js} +28 -11
- package/x/data/bytename/bytename.js.map +1 -0
- package/x/data/bytename/bytename.test.d.ts +17 -0
- package/x/data/bytename/bytename.test.js +41 -0
- package/x/data/bytename/bytename.test.js.map +1 -0
- package/x/data/bytename/index.d.ts +2 -0
- package/x/data/bytename/index.js +3 -0
- package/x/data/bytename/index.js.map +1 -0
- package/x/data/bytename/utils/prefixes.js.map +1 -0
- package/x/data/bytename/utils/suffixes.js.map +1 -0
- package/x/data/bytes.d.ts +1 -0
- package/x/data/bytes.js +9 -0
- package/x/data/bytes.js.map +1 -1
- package/x/deadline.d.ts +3 -2
- package/x/deadline.js +8 -4
- package/x/deadline.js.map +1 -1
- package/x/debounce/debounce.test.d.ts +8 -1
- package/x/debounce/debounce.test.js +70 -74
- package/x/debounce/debounce.test.js.map +1 -1
- package/x/deep/deep.test.d.ts +21 -1
- package/x/deep/deep.test.js +5 -9
- package/x/deep/deep.test.js.map +1 -1
- package/x/deep/parts/equal.test.d.ts +19 -1
- package/x/deep/parts/equal.test.js +107 -125
- package/x/deep/parts/equal.test.js.map +1 -1
- package/x/drill.d.ts +6 -0
- package/x/drill.js +14 -0
- package/x/drill.js.map +1 -0
- package/x/index.d.ts +7 -1
- package/x/index.js +7 -1
- package/x/index.js.map +1 -1
- package/x/loopy.d.ts +2 -0
- package/x/loopy.js +10 -0
- package/x/loopy.js.map +1 -0
- package/x/pubsub.d.ts +2 -2
- package/x/pubsub.js +10 -4
- package/x/pubsub.js.map +1 -1
- package/x/tests.test.js +14 -0
- package/x/tests.test.js.map +1 -0
- package/s/data/barname/badge.ts +0 -78
- package/s/data/barname/demo.ts +0 -49
- package/s/data/barname/index.ts +0 -4
- package/x/data/barname/badge.d.ts +0 -25
- package/x/data/barname/badge.js +0 -64
- package/x/data/barname/badge.js.map +0 -1
- package/x/data/barname/barname.d.ts +0 -7
- package/x/data/barname/barname.js.map +0 -1
- package/x/data/barname/demo.js +0 -45
- package/x/data/barname/demo.js.map +0 -1
- package/x/data/barname/index.d.ts +0 -2
- package/x/data/barname/index.js +0 -3
- package/x/data/barname/index.js.map +0 -1
- package/x/data/barname/utils/prefixes.js.map +0 -1
- package/x/data/barname/utils/suffixes.js.map +0 -1
- /package/{license → LICENSE} +0 -0
- /package/{readme.md → README.md} +0 -0
- /package/s/data/{barname → bytename}/utils/prefixes.ts +0 -0
- /package/s/data/{barname → bytename}/utils/suffixes.ts +0 -0
- /package/x/data/{barname → bytename}/utils/prefixes.d.ts +0 -0
- /package/x/data/{barname → bytename}/utils/prefixes.js +0 -0
- /package/x/data/{barname → bytename}/utils/suffixes.d.ts +0 -0
- /package/x/data/{barname → bytename}/utils/suffixes.js +0 -0
- /package/x/{data/barname/demo.d.ts → tests.test.d.ts} +0 -0
package/x/index.d.ts
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
export * from "./data/
|
|
1
|
+
export * from "./data/bytename/index.js";
|
|
2
2
|
export * from "./data/base58.js";
|
|
3
3
|
export * from "./data/base64.js";
|
|
4
4
|
export * from "./data/base64url.js";
|
|
5
5
|
export * from "./data/bytes.js";
|
|
6
6
|
export * from "./data/hex.js";
|
|
7
7
|
export * from "./data/txt.js";
|
|
8
|
+
export * from "./debounce/debounce.js";
|
|
9
|
+
export * from "./debounce/types.js";
|
|
10
|
+
export * from "./deep/deep.js";
|
|
11
|
+
export * from "./coalesce.js";
|
|
8
12
|
export * from "./concurrent.js";
|
|
9
13
|
export * from "./deadline.js";
|
|
10
14
|
export * from "./dedupe.js";
|
|
11
15
|
export * from "./defer-promise.js";
|
|
16
|
+
export * from "./drill.js";
|
|
12
17
|
export * from "./escape-regex.js";
|
|
13
18
|
export * from "./hat.js";
|
|
14
19
|
export * from "./is.js";
|
|
20
|
+
export * from "./loopy.js";
|
|
15
21
|
export * from "./map-g.js";
|
|
16
22
|
export * from "./nap.js";
|
|
17
23
|
export * from "./ob.js";
|
package/x/index.js
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
export * from "./data/
|
|
1
|
+
export * from "./data/bytename/index.js";
|
|
2
2
|
export * from "./data/base58.js";
|
|
3
3
|
export * from "./data/base64.js";
|
|
4
4
|
export * from "./data/base64url.js";
|
|
5
5
|
export * from "./data/bytes.js";
|
|
6
6
|
export * from "./data/hex.js";
|
|
7
7
|
export * from "./data/txt.js";
|
|
8
|
+
export * from "./debounce/debounce.js";
|
|
9
|
+
export * from "./debounce/types.js";
|
|
10
|
+
export * from "./deep/deep.js";
|
|
11
|
+
export * from "./coalesce.js";
|
|
8
12
|
export * from "./concurrent.js";
|
|
9
13
|
export * from "./deadline.js";
|
|
10
14
|
export * from "./dedupe.js";
|
|
11
15
|
export * from "./defer-promise.js";
|
|
16
|
+
export * from "./drill.js";
|
|
12
17
|
export * from "./escape-regex.js";
|
|
13
18
|
export * from "./hat.js";
|
|
14
19
|
export * from "./is.js";
|
|
20
|
+
export * from "./loopy.js";
|
|
15
21
|
export * from "./map-g.js";
|
|
16
22
|
export * from "./nap.js";
|
|
17
23
|
export * from "./ob.js";
|
package/x/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../s/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../s/index.ts"],"names":[],"mappings":"AACA,cAAc,0BAA0B,CAAA;AACxC,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAE7B,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AAEnC,cAAc,gBAAgB,CAAA;AAE9B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
|
package/x/loopy.d.ts
ADDED
package/x/loopy.js
ADDED
package/x/loopy.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loopy.js","sourceRoot":"","sources":["../s/loopy.ts"],"names":[],"mappings":"AACA,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,CAAS;IAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;QACzB,MAAM,CAAC,CAAA;AACT,CAAC;AAED,MAAM,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,IAAI,CAAmB;IACxD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE;YAC/B,MAAM,CAAC,CAAC,EAAE,CAAC,CAAqB,CAAA;AACnC,CAAC"}
|
package/x/pubsub.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export interface Pub<A extends any[] = []> extends Xub<A> {
|
|
|
13
13
|
}
|
|
14
14
|
export declare function xub<A extends any[] = []>(): [Pub<A>, Sub<A>];
|
|
15
15
|
/** create a subscriber fn that can be published to */
|
|
16
|
-
export declare function sub<A extends any[] = []>(): Sub<A>;
|
|
16
|
+
export declare function sub<A extends any[] = []>(listener?: Listener<A>): Sub<A>;
|
|
17
17
|
/** create a publisher fn that can be subscribed to */
|
|
18
|
-
export declare function pub<A extends any[] = []>(): Pub<A>;
|
|
18
|
+
export declare function pub<A extends any[] = []>(listener?: Listener<A>): Pub<A>;
|
package/x/pubsub.js
CHANGED
|
@@ -30,11 +30,17 @@ export function xub() {
|
|
|
30
30
|
return [pub, sub];
|
|
31
31
|
}
|
|
32
32
|
/** create a subscriber fn that can be published to */
|
|
33
|
-
export function sub() {
|
|
34
|
-
|
|
33
|
+
export function sub(listener) {
|
|
34
|
+
const fn = xub()[1];
|
|
35
|
+
if (listener)
|
|
36
|
+
fn.sub(listener);
|
|
37
|
+
return fn;
|
|
35
38
|
}
|
|
36
39
|
/** create a publisher fn that can be subscribed to */
|
|
37
|
-
export function pub() {
|
|
38
|
-
|
|
40
|
+
export function pub(listener) {
|
|
41
|
+
const fn = xub()[0];
|
|
42
|
+
if (listener)
|
|
43
|
+
fn.sub(listener);
|
|
44
|
+
return fn;
|
|
39
45
|
}
|
|
40
46
|
//# sourceMappingURL=pubsub.js.map
|
package/x/pubsub.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pubsub.js","sourceRoot":"","sources":["../s/pubsub.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAA;AAmB/C,MAAM,UAAU,GAAG;IAClB,MAAM,GAAG,GAAG,IAAI,GAAG,EAAe,CAAA;IAElC,SAAS,GAAG,CAAC,EAAe;QAC3B,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACX,OAAO,GAAG,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA,CAAC,CAAC,CAAA;IAChC,CAAC;IAED,KAAK,UAAU,GAAG,CAAC,GAAG,CAAI;QACzB,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IAChD,CAAC;IAED,KAAK,UAAU,IAAI;QAClB,MAAM,EAAC,OAAO,EAAE,OAAO,EAAC,GAAG,YAAY,EAAK,CAAA;QAC5C,MAAM,WAAW,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE;YAChC,OAAO,CAAC,CAAC,CAAC,CAAA;YACV,WAAW,EAAE,CAAA;QACd,CAAC,CAAC,CAAA;QACF,OAAO,OAAO,CAAA;IACf,CAAC;IAED,SAAS,KAAK;QACb,GAAG,CAAC,KAAK,EAAE,CAAA;IACZ,CAAC;IAED,GAAG,CAAC,GAA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QACF,OAAO,OAAO,CAAA;IACf,CAAC;IAED,SAAS,KAAK;QACb,GAAG,CAAC,KAAK,EAAE,CAAA;IACZ,CAAC;IAED,GAAG,CAAC,GAAG,GAAG,GAAG,CAAA;IACb,GAAG,CAAC,GAAG,GAAG,GAAG,CAAA;IACb,GAAG,CAAC,IAAI,GAAG,IAAI,CAAA;IACf,GAAG,CAAC,KAAK,GAAG,KAAK,CAAA;IAEjB,GAAG,CAAC,GAAG,GAAG,GAAG,CAAA;IACb,GAAG,CAAC,GAAG,GAAG,GAAG,CAAA;IACb,GAAG,CAAC,IAAI,GAAG,IAAI,CAAA;IACf,GAAG,CAAC,KAAK,GAAG,KAAK,CAAA;IAEjB,OAAO,CAAC,GAAG,EAAE,GAAG,CAAqB,CAAA;AACtC,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,GAAG,CAAuB,QAAsB;IAC/D,MAAM,EAAE,GAAG,GAAG,EAAK,CAAC,CAAC,CAAC,CAAA;IACtB,IAAI,QAAQ;QACX,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACjB,OAAO,EAAE,CAAA;AACV,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,GAAG,CAAuB,QAAsB;IAC/D,MAAM,EAAE,GAAG,GAAG,EAAK,CAAC,CAAC,CAAC,CAAA;IACtB,IAAI,QAAQ;QACX,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;IACjB,OAAO,EAAE,CAAA;AACV,CAAC"}
|
package/x/tests.test.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Science } from "@e280/science";
|
|
2
|
+
import cloneTest from "./clone/clone.test.js";
|
|
3
|
+
import badgeTest from "./data/bytename/badge.test.js";
|
|
4
|
+
import debounceTest from "./debounce/debounce.test.js";
|
|
5
|
+
import bytenameTest from "./data/bytename/bytename.test.js";
|
|
6
|
+
import deepTest from "./deep/deep.test.js";
|
|
7
|
+
await Science.run({
|
|
8
|
+
clone: cloneTest,
|
|
9
|
+
bytename: bytenameTest,
|
|
10
|
+
badge: badgeTest,
|
|
11
|
+
debounce: debounceTest,
|
|
12
|
+
deep: deepTest,
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=tests.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tests.test.js","sourceRoot":"","sources":["../s/tests.test.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAA;AAErC,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,SAAS,MAAM,+BAA+B,CAAA;AACrD,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,YAAY,MAAM,kCAAkC,CAAA;AAC3D,OAAO,QAAQ,MAAM,qBAAqB,CAAA;AAE1C,MAAM,OAAO,CAAC,GAAG,CAAC;IACjB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,QAAQ;CACd,CAAC,CAAA"}
|
package/s/data/barname/badge.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {Hex} from "../hex.js"
|
|
3
|
-
import {Base58} from "../base58.js"
|
|
4
|
-
import {Barname} from "./barname.js"
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Badge is a human-friendly presentation format for arbitrary binary data.
|
|
8
|
-
* - looks like "nomluc_rigpem.tg2bjNkjMh1H6M2b2EhD5V4x6XAqx9wyWddsBt"
|
|
9
|
-
* - the first bytes are shown in barname format
|
|
10
|
-
* - the rest of the data is in base58
|
|
11
|
-
* - designed to be a nice way to present 256-bit passport thumbprints
|
|
12
|
-
* - can be used for data of different lengths
|
|
13
|
-
* - preview size can be customized as 'leadCount', which defaults to 4
|
|
14
|
-
*/
|
|
15
|
-
export class Badge {
|
|
16
|
-
static readonly separator = "."
|
|
17
|
-
static readonly defaultLeadCount = 4
|
|
18
|
-
|
|
19
|
-
readonly hex: string
|
|
20
|
-
readonly string: string
|
|
21
|
-
readonly preview: string
|
|
22
|
-
|
|
23
|
-
constructor(
|
|
24
|
-
public readonly bytes: Uint8Array,
|
|
25
|
-
public readonly leadCount = Badge.defaultLeadCount,
|
|
26
|
-
) {
|
|
27
|
-
|
|
28
|
-
if (leadCount < 1)
|
|
29
|
-
throw new Error(`badge leadCount must be greater than 0 (was ${leadCount})`)
|
|
30
|
-
|
|
31
|
-
this.hex = Hex.string(this.bytes)
|
|
32
|
-
this.preview = Barname.string(this.bytes.slice(0, leadCount))
|
|
33
|
-
|
|
34
|
-
this.string = (bytes.length > leadCount)
|
|
35
|
-
? `${this.preview}.${Base58.string(this.bytes.slice(leadCount))}`
|
|
36
|
-
: this.preview
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
static parse(badge: string) {
|
|
40
|
-
const [barname, b58] = badge.split(Badge.separator)
|
|
41
|
-
|
|
42
|
-
// badge has a base58 component
|
|
43
|
-
if (b58) {
|
|
44
|
-
const appetizer = Barname.bytes(barname)
|
|
45
|
-
const entree = Base58.bytes(b58)
|
|
46
|
-
const bytes = new Uint8Array([...appetizer, ...entree])
|
|
47
|
-
return new this(bytes, appetizer.length)
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// badge is just a barname (no base58 part)
|
|
51
|
-
else {
|
|
52
|
-
const bytes = Barname.bytes(barname)
|
|
53
|
-
return new this(bytes, bytes.length)
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
static fromHex(hex: string, leadCount = this.defaultLeadCount) {
|
|
58
|
-
const bytes = Hex.bytes(hex)
|
|
59
|
-
return new this(bytes, leadCount)
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
static string(bytes: Uint8Array, leadCount = this.defaultLeadCount) {
|
|
63
|
-
return new this(bytes, leadCount).string
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
static bytes(badge: string) {
|
|
67
|
-
return this.parse(badge)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
static hex(badge: string) {
|
|
71
|
-
return this.parse(badge).hex
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
toString() {
|
|
75
|
-
return this.string
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
package/s/data/barname/demo.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import {Hex} from "../hex.js"
|
|
3
|
-
import {Badge} from "./badge.js"
|
|
4
|
-
import {Bytes} from "../bytes.js"
|
|
5
|
-
import {Barname} from "./barname.js"
|
|
6
|
-
|
|
7
|
-
for (const _ of Array(2)) {
|
|
8
|
-
const string = Barname.random(34)
|
|
9
|
-
const bytes = Barname.bytes(string)
|
|
10
|
-
const string2 = Barname.string(bytes)
|
|
11
|
-
console.log(string.replaceAll(" ", "\n"))
|
|
12
|
-
if (string !== string2)
|
|
13
|
-
throw new Error("barname fails equality check")
|
|
14
|
-
console.log("")
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
for (const _ of Array(10)) {
|
|
18
|
-
const bytes = Bytes.random(32)
|
|
19
|
-
const badge = new Badge(bytes)
|
|
20
|
-
const bytes2 = badge.bytes
|
|
21
|
-
console.log(badge.string)
|
|
22
|
-
if (Hex.string(bytes) !== Hex.string(bytes2))
|
|
23
|
-
throw new Error("badge fails equality check")
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
console.log("")
|
|
28
|
-
const alpha = `
|
|
29
|
-
dacsyd_labdun_fipsub_bonmel
|
|
30
|
-
fitlys_rovbud_sipnel_sonryx
|
|
31
|
-
sitrem_lasdyr_dovpun_nibwep
|
|
32
|
-
tippet_mapnub_ticnet_famset
|
|
33
|
-
wanteg
|
|
34
|
-
`
|
|
35
|
-
const bravo = `
|
|
36
|
-
dacsyd-labdun-fipsub-bonmel;
|
|
37
|
-
[fitlys rovbud sipnel sonryx]
|
|
38
|
-
sitrem/lasdyr/dovpun/nibwep
|
|
39
|
-
tippet+mapnub+ticnet+famset
|
|
40
|
-
wanteg++
|
|
41
|
-
`
|
|
42
|
-
const alphaHex = Hex.string(Barname.bytes(alpha))
|
|
43
|
-
const bravoHex = Hex.string(Barname.bytes(bravo))
|
|
44
|
-
if (alphaHex.length === 68 && alphaHex === bravoHex)
|
|
45
|
-
console.log("*barname parsing appears resilient to whitespace and garbage*")
|
|
46
|
-
else
|
|
47
|
-
throw new Error("barname resiliency failure")
|
|
48
|
-
}
|
|
49
|
-
|
package/s/data/barname/index.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Badge is a human-friendly presentation format for arbitrary binary data.
|
|
3
|
-
* - looks like "nomluc_rigpem.tg2bjNkjMh1H6M2b2EhD5V4x6XAqx9wyWddsBt"
|
|
4
|
-
* - the first bytes are shown in barname format
|
|
5
|
-
* - the rest of the data is in base58
|
|
6
|
-
* - designed to be a nice way to present 256-bit passport thumbprints
|
|
7
|
-
* - can be used for data of different lengths
|
|
8
|
-
* - preview size can be customized as 'leadCount', which defaults to 4
|
|
9
|
-
*/
|
|
10
|
-
export declare class Badge {
|
|
11
|
-
readonly bytes: Uint8Array;
|
|
12
|
-
readonly leadCount: number;
|
|
13
|
-
static readonly separator = ".";
|
|
14
|
-
static readonly defaultLeadCount = 4;
|
|
15
|
-
readonly hex: string;
|
|
16
|
-
readonly string: string;
|
|
17
|
-
readonly preview: string;
|
|
18
|
-
constructor(bytes: Uint8Array, leadCount?: number);
|
|
19
|
-
static parse(badge: string): Badge;
|
|
20
|
-
static fromHex(hex: string, leadCount?: number): Badge;
|
|
21
|
-
static string(bytes: Uint8Array, leadCount?: number): string;
|
|
22
|
-
static bytes(badge: string): Badge;
|
|
23
|
-
static hex(badge: string): string;
|
|
24
|
-
toString(): string;
|
|
25
|
-
}
|
package/x/data/barname/badge.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Hex } from "../hex.js";
|
|
2
|
-
import { Base58 } from "../base58.js";
|
|
3
|
-
import { Barname } from "./barname.js";
|
|
4
|
-
/**
|
|
5
|
-
* Badge is a human-friendly presentation format for arbitrary binary data.
|
|
6
|
-
* - looks like "nomluc_rigpem.tg2bjNkjMh1H6M2b2EhD5V4x6XAqx9wyWddsBt"
|
|
7
|
-
* - the first bytes are shown in barname format
|
|
8
|
-
* - the rest of the data is in base58
|
|
9
|
-
* - designed to be a nice way to present 256-bit passport thumbprints
|
|
10
|
-
* - can be used for data of different lengths
|
|
11
|
-
* - preview size can be customized as 'leadCount', which defaults to 4
|
|
12
|
-
*/
|
|
13
|
-
export class Badge {
|
|
14
|
-
bytes;
|
|
15
|
-
leadCount;
|
|
16
|
-
static separator = ".";
|
|
17
|
-
static defaultLeadCount = 4;
|
|
18
|
-
hex;
|
|
19
|
-
string;
|
|
20
|
-
preview;
|
|
21
|
-
constructor(bytes, leadCount = Badge.defaultLeadCount) {
|
|
22
|
-
this.bytes = bytes;
|
|
23
|
-
this.leadCount = leadCount;
|
|
24
|
-
if (leadCount < 1)
|
|
25
|
-
throw new Error(`badge leadCount must be greater than 0 (was ${leadCount})`);
|
|
26
|
-
this.hex = Hex.string(this.bytes);
|
|
27
|
-
this.preview = Barname.string(this.bytes.slice(0, leadCount));
|
|
28
|
-
this.string = (bytes.length > leadCount)
|
|
29
|
-
? `${this.preview}.${Base58.string(this.bytes.slice(leadCount))}`
|
|
30
|
-
: this.preview;
|
|
31
|
-
}
|
|
32
|
-
static parse(badge) {
|
|
33
|
-
const [barname, b58] = badge.split(Badge.separator);
|
|
34
|
-
// badge has a base58 component
|
|
35
|
-
if (b58) {
|
|
36
|
-
const appetizer = Barname.bytes(barname);
|
|
37
|
-
const entree = Base58.bytes(b58);
|
|
38
|
-
const bytes = new Uint8Array([...appetizer, ...entree]);
|
|
39
|
-
return new this(bytes, appetizer.length);
|
|
40
|
-
}
|
|
41
|
-
// badge is just a barname (no base58 part)
|
|
42
|
-
else {
|
|
43
|
-
const bytes = Barname.bytes(barname);
|
|
44
|
-
return new this(bytes, bytes.length);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
static fromHex(hex, leadCount = this.defaultLeadCount) {
|
|
48
|
-
const bytes = Hex.bytes(hex);
|
|
49
|
-
return new this(bytes, leadCount);
|
|
50
|
-
}
|
|
51
|
-
static string(bytes, leadCount = this.defaultLeadCount) {
|
|
52
|
-
return new this(bytes, leadCount).string;
|
|
53
|
-
}
|
|
54
|
-
static bytes(badge) {
|
|
55
|
-
return this.parse(badge);
|
|
56
|
-
}
|
|
57
|
-
static hex(badge) {
|
|
58
|
-
return this.parse(badge).hex;
|
|
59
|
-
}
|
|
60
|
-
toString() {
|
|
61
|
-
return this.string;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../s/data/barname/badge.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAA;AAC7B,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAA;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAA;AAEpC;;;;;;;;GAQG;AACH,MAAM,OAAO,KAAK;IASC;IACA;IATlB,MAAM,CAAU,SAAS,GAAG,GAAG,CAAA;IAC/B,MAAM,CAAU,gBAAgB,GAAG,CAAC,CAAA;IAE3B,GAAG,CAAQ;IACX,MAAM,CAAQ;IACd,OAAO,CAAQ;IAExB,YACkB,KAAiB,EACjB,YAAY,KAAK,CAAC,gBAAgB;QADlC,UAAK,GAAL,KAAK,CAAY;QACjB,cAAS,GAAT,SAAS,CAAyB;QAGnD,IAAI,SAAS,GAAG,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,+CAA+C,SAAS,GAAG,CAAC,CAAA;QAE7E,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAA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AQ,GAAa,EAAE,CAAA;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC;YACzC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;QAEvC,OAAO,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;YACrD,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAA;YACxD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,OAAO,CAAC,CAAA;YACnD,IAAI,MAAM,KAAK,CAAC,CAAC;gBAChB,MAAM,IAAI,KAAK,CAAC,mBAAmB,OAAO,EAAE,CAAC,CAAA;YAC9C,OAAO,MAAM,CAAA;QACd,CAAC,CAAC,CAAC,CAAA;IACJ,CAAC;CACD,CAAA"}
|
package/x/data/barname/demo.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Hex } from "../hex.js";
|
|
2
|
-
import { Badge } from "./badge.js";
|
|
3
|
-
import { Bytes } from "../bytes.js";
|
|
4
|
-
import { Barname } from "./barname.js";
|
|
5
|
-
for (const _ of Array(2)) {
|
|
6
|
-
const string = Barname.random(34);
|
|
7
|
-
const bytes = Barname.bytes(string);
|
|
8
|
-
const string2 = Barname.string(bytes);
|
|
9
|
-
console.log(string.replaceAll(" ", "\n"));
|
|
10
|
-
if (string !== string2)
|
|
11
|
-
throw new Error("barname fails equality check");
|
|
12
|
-
console.log("");
|
|
13
|
-
}
|
|
14
|
-
for (const _ of Array(10)) {
|
|
15
|
-
const bytes = Bytes.random(32);
|
|
16
|
-
const badge = new Badge(bytes);
|
|
17
|
-
const bytes2 = badge.bytes;
|
|
18
|
-
console.log(badge.string);
|
|
19
|
-
if (Hex.string(bytes) !== Hex.string(bytes2))
|
|
20
|
-
throw new Error("badge fails equality check");
|
|
21
|
-
}
|
|
22
|
-
{
|
|
23
|
-
console.log("");
|
|
24
|
-
const alpha = `
|
|
25
|
-
dacsyd_labdun_fipsub_bonmel
|
|
26
|
-
fitlys_rovbud_sipnel_sonryx
|
|
27
|
-
sitrem_lasdyr_dovpun_nibwep
|
|
28
|
-
tippet_mapnub_ticnet_famset
|
|
29
|
-
wanteg
|
|
30
|
-
`;
|
|
31
|
-
const bravo = `
|
|
32
|
-
dacsyd-labdun-fipsub-bonmel;
|
|
33
|
-
[fitlys rovbud sipnel sonryx]
|
|
34
|
-
sitrem/lasdyr/dovpun/nibwep
|
|
35
|
-
tippet+mapnub+ticnet+famset
|
|
36
|
-
wanteg++
|
|
37
|
-
`;
|
|
38
|
-
const alphaHex = Hex.string(Barname.bytes(alpha));
|
|
39
|
-
const bravoHex = Hex.string(Barname.bytes(bravo));
|
|
40
|
-
if (alphaHex.length === 68 && alphaHex === bravoHex)
|
|
41
|
-
console.log("*barname parsing appears resilient to whitespace and garbage*");
|
|
42
|
-
else
|
|
43
|
-
throw new Error("barname resiliency failure");
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=demo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"demo.js","sourceRoot":"","sources":["../../../s/data/barname/demo.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAA;AAC7B,OAAO,EAAC,KAAK,EAAC,MAAM,YAAY,CAAA;AAChC,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AACjC,OAAO,EAAC,OAAO,EAAC,MAAM,cAAc,CAAA;AAEpC,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,MAAM,MAAM,GAAG,OA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,EAAE,IAAI,QAAQ,KAAK,QAAQ;QAClD,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAA;;QAE5E,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;AAC/C,CAAC"}
|
package/x/data/barname/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../s/data/barname/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prefixes.js","sourceRoot":"","sources":["../../../../s/data/barname/utils/prefixes.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACvB,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK;IAC/F,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK;IAC/F,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK;IAC/F,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,K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AAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK;IAC/F,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK;IAC/F,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK;IAC/F,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK,EAAC,KAAK;CAC/F,CAAA"}
|
/package/{license → LICENSE}
RENAMED
|
File without changes
|
/package/{readme.md → README.md}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|