@pleasenobugs/core 0.3.0 → 0.5.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.
package/dist/address.d.ts CHANGED
@@ -12,6 +12,18 @@
12
12
  * // → 'NQ070000000000000000000000000000000000'
13
13
  */
14
14
  export declare function normalizeAddress(address: string): string;
15
+ /**
16
+ * An address cut to its first and last four characters, the way a wallet
17
+ * shows one in a list: `NQ12 … AB34`. Enough to tell two people apart on a
18
+ * board, not enough to send anybody anything.
19
+ *
20
+ * What a post shows for an author who chose no name and did not post
21
+ * anonymously (see `Post.short`).
22
+ *
23
+ * @example
24
+ * shortAddress('NQ12 3456 7890 ABCD EFGH JKLM NPQR STUV AB34') // → 'NQ12 … AB34'
25
+ */
26
+ export declare function shortAddress(address: string): string;
15
27
  /**
16
28
  * Whether a string is shaped like a Nimiq address (in any spelling). Shape
17
29
  * only: the checksum is the wallet's business, and a signature from a key
@@ -1 +1 @@
1
- {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../src/address.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAEtD"}
1
+ {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../src/address.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAGpD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAEtD"}
package/dist/address.js CHANGED
@@ -14,6 +14,21 @@
14
14
  export function normalizeAddress(address) {
15
15
  return address.replace(/\s+/g, '').toUpperCase();
16
16
  }
17
+ /**
18
+ * An address cut to its first and last four characters, the way a wallet
19
+ * shows one in a list: `NQ12 … AB34`. Enough to tell two people apart on a
20
+ * board, not enough to send anybody anything.
21
+ *
22
+ * What a post shows for an author who chose no name and did not post
23
+ * anonymously (see `Post.short`).
24
+ *
25
+ * @example
26
+ * shortAddress('NQ12 3456 7890 ABCD EFGH JKLM NPQR STUV AB34') // → 'NQ12 … AB34'
27
+ */
28
+ export function shortAddress(address) {
29
+ const a = normalizeAddress(address);
30
+ return `${a.slice(0, 4)} … ${a.slice(-4)}`;
31
+ }
17
32
  /**
18
33
  * Whether a string is shaped like a Nimiq address (in any spelling). Shape
19
34
  * only: the checksum is the wallet's business, and a signature from a key
@@ -1 +1 @@
1
- {"version":3,"file":"address.js","sourceRoot":"","sources":["../src/address.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AACnD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,CAAU;IACvC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,uBAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AACpF,CAAC"}
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../src/address.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;AACnD,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,OAAe;IAC1C,MAAM,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,CAAU;IACvC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,uBAAuB,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AACpF,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The code a wallet's identicon is drawn from, without the address.
3
+ *
4
+ * Every Nimiq wallet shows the same little picture for an address: Nimiq's
5
+ * identicons (`@nimiq/identicons`, MIT) hash the address as the wallet writes
6
+ * it, spaced (`NQ07 0000 ...`), into a string of digits, and the first twelve
7
+ * pick the colours and the parts. This is those twelve, so a board can show
8
+ * somebody's identicon while the address stays on the server: the digits say
9
+ * which picture, and nothing about which wallet.
10
+ *
11
+ * Changing this changes every identicon on every board, so it is part of the
12
+ * v1 contract, like the login message.
13
+ *
14
+ * @example
15
+ * identiconCode('NQ07 0000 0000 0000 0000 0000 0000 0000 0000') // → twelve digits
16
+ */
17
+ export declare function identiconCode(address: string): string;
18
+ /** Whether a string is shaped like an identicon code. */
19
+ export declare function isIdenticonCode(v: unknown): v is string;
20
+ //# sourceMappingURL=identicon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identicon.d.ts","sourceRoot":"","sources":["../src/identicon.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAIrD;AAED,yDAAyD;AACzD,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAEvD"}
@@ -0,0 +1,49 @@
1
+ import { normalizeAddress } from './address.js';
2
+ /**
3
+ * The code a wallet's identicon is drawn from, without the address.
4
+ *
5
+ * Every Nimiq wallet shows the same little picture for an address: Nimiq's
6
+ * identicons (`@nimiq/identicons`, MIT) hash the address as the wallet writes
7
+ * it, spaced (`NQ07 0000 ...`), into a string of digits, and the first twelve
8
+ * pick the colours and the parts. This is those twelve, so a board can show
9
+ * somebody's identicon while the address stays on the server: the digits say
10
+ * which picture, and nothing about which wallet.
11
+ *
12
+ * Changing this changes every identicon on every board, so it is part of the
13
+ * v1 contract, like the login message.
14
+ *
15
+ * @example
16
+ * identiconCode('NQ07 0000 0000 0000 0000 0000 0000 0000 0000') // → twelve digits
17
+ */
18
+ export function identiconCode(address) {
19
+ // The hash is a float written out, so in theory it can carry an exponent;
20
+ // a digit stands in for anything else rather than refusing the post.
21
+ return makeHash(spaced(address)).slice(0, 12).replace(/\D/g, '0');
22
+ }
23
+ /** Whether a string is shaped like an identicon code. */
24
+ export function isIdenticonCode(v) {
25
+ return typeof v === 'string' && /^\d{12}$/.test(v);
26
+ }
27
+ /** The spelling wallets show, and hash: groups of four, one space apart. */
28
+ function spaced(address) {
29
+ return normalizeAddress(address).replace(/(.{4})(?=.)/g, '$1 ');
30
+ }
31
+ // Ported as-is from @nimiq/identicons 1.6.2 (MIT, © 2017 Nimiq), so the
32
+ // picture matches the one in the wallet digit for digit.
33
+ function makeHash(text) {
34
+ const r = ('' +
35
+ text
36
+ .split('')
37
+ .map((c) => Number(c.charCodeAt(0)) + 3)
38
+ .reduce((a, e) => a * (1 - a) * chaosHash(e), 0.5))
39
+ .split('')
40
+ .reduce((a, e) => e + a, '');
41
+ return r.replace('.', r[5]).substr(4, 17).padEnd(13, r[5]);
42
+ }
43
+ function chaosHash(n) {
44
+ let r = 1 / n;
45
+ for (let i = 0; i < 100; i++)
46
+ r = (1 - r) * r * 3.569956786876;
47
+ return r;
48
+ }
49
+ //# sourceMappingURL=identicon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identicon.js","sourceRoot":"","sources":["../src/identicon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM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CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,SAAS,CAAC,CAAS;IAC1B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE;QAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC;IAC/D,OAAO,CAAC,CAAC;AACX,CAAC"}
package/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export * from './login.js';
5
5
  export * from './similar.js';
6
6
  export * from './sort.js';
7
7
  export * from './thread.js';
8
+ export * from './identicon.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -5,4 +5,5 @@ export * from './login.js';
5
5
  export * from './similar.js';
6
6
  export * from './sort.js';
7
7
  export * from './thread.js';
8
+ export * from './identicon.js';
8
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
package/dist/login.d.ts CHANGED
@@ -28,8 +28,8 @@ export declare const DASHBOARD_PROJECT = "dashboard";
28
28
  * the v1 contract.
29
29
  *
30
30
  * @example
31
- * loginMessage({ project: 'shitti', origin: 'https://shitti.me', issued: 0 })
32
- * // → 'PleaseNoBugs login\nProject: shitti\nOrigin: https://shitti.me\nIssued: 1970-01-01T00:00:00.000Z'
31
+ * loginMessage({ project: 'myapp', origin: 'https://my.app', issued: 0 })
32
+ * // → 'PleaseNoBugs login\nProject: myapp\nOrigin: https://my.app\nIssued: 1970-01-01T00:00:00.000Z'
33
33
  */
34
34
  export declare function loginMessage(args: {
35
35
  project: string;
@@ -41,7 +41,7 @@ export declare function loginMessage(args: {
41
41
  * if it is not a URL at all (which then simply never matches anything).
42
42
  *
43
43
  * @example
44
- * normalizeOrigin('https://Shitti.me/') // → 'https://shitti.me'
44
+ * normalizeOrigin('https://My.App/') // → 'https://my.app'
45
45
  */
46
46
  export declare function normalizeOrigin(origin: string): string;
47
47
  /**
package/dist/login.js CHANGED
@@ -27,8 +27,8 @@ export const DASHBOARD_PROJECT = 'dashboard';
27
27
  * the v1 contract.
28
28
  *
29
29
  * @example
30
- * loginMessage({ project: 'shitti', origin: 'https://shitti.me', issued: 0 })
31
- * // → 'PleaseNoBugs login\nProject: shitti\nOrigin: https://shitti.me\nIssued: 1970-01-01T00:00:00.000Z'
30
+ * loginMessage({ project: 'myapp', origin: 'https://my.app', issued: 0 })
31
+ * // → 'PleaseNoBugs login\nProject: myapp\nOrigin: https://my.app\nIssued: 1970-01-01T00:00:00.000Z'
32
32
  */
33
33
  export function loginMessage(args) {
34
34
  return [
@@ -43,7 +43,7 @@ export function loginMessage(args) {
43
43
  * if it is not a URL at all (which then simply never matches anything).
44
44
  *
45
45
  * @example
46
- * normalizeOrigin('https://Shitti.me/') // → 'https://shitti.me'
46
+ * normalizeOrigin('https://My.App/') // → 'https://my.app'
47
47
  */
48
48
  export function normalizeOrigin(origin) {
49
49
  try {
package/dist/rules.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { PostFix, PostKind, PostStatus, Rules, ShotRule } from './types.js';
2
2
  /**
3
- * The limits a new project starts with. These are the numbers Shitti's board
4
- * ran on, where they had been tried on real people before being written here.
3
+ * The limits a new project starts with. These are the numbers the board of
4
+ * the app PleaseNoBugs grew out of ran on, where they had been tried on real people before being written here.
5
5
  */
6
6
  export declare const DEFAULT_RULES: Readonly<Rules>;
7
7
  export declare const SHOT_RULES: readonly ShotRule[];
package/dist/rules.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The limits a new project starts with. These are the numbers Shitti's board
3
- * ran on, where they had been tried on real people before being written here.
2
+ * The limits a new project starts with. These are the numbers the board of
3
+ * the app PleaseNoBugs grew out of ran on, where they had been tried on real people before being written here.
4
4
  */
5
5
  export const DEFAULT_RULES = Object.freeze({
6
6
  perDay: 5,
package/dist/similar.d.ts CHANGED
@@ -22,7 +22,7 @@ export interface Matchable {
22
22
  * @param projectNoise words common in *this* app, like its own name
23
23
  *
24
24
  * @example
25
- * const likeThis = createMatcher(['shitti', 'nim', 'taak', 'task']);
25
+ * const likeThis = createMatcher(['nim', 'wallet', 'task']);
26
26
  * likeThis(posts, 'de camera opent niet bij het bewijs');
27
27
  * // → the existing "camera opent niet" post, if there is one
28
28
  */
package/dist/similar.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Words too common to say anything about what a post is about, one group per
3
3
  * language the widget speaks.
4
4
  *
5
- * **A new language owes this table a group.** Shitti added German without one,
5
+ * **A new language owes this table a group.** German was once added without one,
6
6
  * which left "aufgabe" significant where its Dutch and English twins were not:
7
7
  * two unrelated German posts sharing it and one filler word matched, and the
8
8
  * suggestions filled with lookalikes nobody meant.
@@ -45,7 +45,7 @@ const NOISE = [
45
45
  * @param projectNoise words common in *this* app, like its own name
46
46
  *
47
47
  * @example
48
- * const likeThis = createMatcher(['shitti', 'nim', 'taak', 'task']);
48
+ * const likeThis = createMatcher(['nim', 'wallet', 'task']);
49
49
  * likeThis(posts, 'de camera opent niet bij het bewijs');
50
50
  * // → the existing "camera opent niet" post, if there is one
51
51
  */
package/dist/types.d.ts CHANGED
@@ -95,9 +95,11 @@ export type ShotRule = 'board' | 'owners' | 'off';
95
95
  /**
96
96
  * One post, as a reader receives it.
97
97
  *
98
- * What is *not* here is the point: the author's address and the list of who
99
- * voted never leave the server. A reader learns only whether they wrote it
100
- * themselves and whether they voted.
98
+ * What is *not* here is the point: the author's whole address and the list
99
+ * of who voted never leave the server. A reader learns only whether they
100
+ * wrote it themselves and whether they voted, and, for an author who chose
101
+ * no name and did not post anonymously, a short form of the address
102
+ * (`short`).
101
103
  */
102
104
  export interface Post {
103
105
  id: string;
@@ -114,6 +116,18 @@ export interface Post {
114
116
  /** The author's display name. Absent when they posted anonymously or never
115
117
  * chose one. Never an address: a name is a label, an address an identity. */
116
118
  who?: string;
119
+ /**
120
+ * The author's identicon, as the code `identiconCode` makes from their
121
+ * address: the picture their wallet shows, never the address. Only on a post
122
+ * that is not anonymous. `GET /v1/identicons/:code.svg` draws it.
123
+ */
124
+ face?: string;
125
+ /**
126
+ * The author's address cut short, `NQ12 … AB34` (see `shortAddress`), shown
127
+ * beside the identicon when they chose no name. Only on a post that is not
128
+ * anonymous and has no `who`. Never the whole address.
129
+ */
130
+ short?: string;
117
131
  /** The app's latest message, for widgets from before `thread`. */
118
132
  reply?: PostReply;
119
133
  /**
@@ -185,6 +199,10 @@ export interface Project extends PublicProject {
185
199
  export interface Me {
186
200
  owner: boolean;
187
201
  name?: string;
202
+ /** This wallet's identicon code, to show beside the name before posting. */
203
+ face?: string;
204
+ /** This wallet's address cut short, `NQ12 … AB34`: what others see without a name. */
205
+ short?: string;
188
206
  /** Posts left in this wallet's rolling day. The allowance itself is
189
207
  * `rules.perDay`: read it from the project, never from a copy. */
190
208
  left: number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,WAAW,OAAO;IACtB,4DAA4D;IAC5D,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,OAAO;IACtB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,IAAI,CAAC,EAA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E,MAAM,CAAC;CAClB;AAED,mEAAmE;AACnE,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,mEAAmE;AACnE,MAAM,MAAM,SAAS,GACjB,aAAa,GACb,cAAc,GACd,WAAW,GACX,WAAW,GACX,oBAAoB,GACpB,YAAY,GACZ,SAAS,GACT,WAAW,GACX,WAAW,GACX,UAAU,GACV,eAAe,GACf,QAAQ,GACR,UAAU,GACV,cAAc,GACd,WAAW,GACX,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pleasenobugs/core",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Types, rules, the login message and the lookalike matcher shared by every PleaseNoBugs package.",
5
5
  "license": "MIT",
6
6
  "repository": {