@pleasenobugs/core 0.3.0 → 0.4.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/identicon.d.ts +20 -0
- package/dist/identicon.d.ts.map +1 -0
- package/dist/identicon.js +49 -0
- package/dist/identicon.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/login.d.ts +3 -3
- package/dist/login.js +3 -3
- package/dist/rules.d.ts +2 -2
- package/dist/rules.js +2 -2
- package/dist/similar.d.ts +1 -1
- package/dist/similar.js +2 -2
- package/dist/types.d.ts +8 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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,cAAc,CAAC;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe;IAC3C,0EAA0E;IAC1E,qEAAqE;IACrE,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACpE,CAAC;AAED,yDAAyD;AACzD,MAAM,UAAU,eAAe,CAAC,CAAU;IACxC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC;AAED,4EAA4E;AAC5E,SAAS,MAAM,CAAC,OAAe;IAC7B,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,cA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Ac,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
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: '
|
|
32
|
-
* // → 'PleaseNoBugs login\nProject:
|
|
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://
|
|
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: '
|
|
31
|
-
* // → 'PleaseNoBugs login\nProject:
|
|
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://
|
|
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
|
|
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
|
|
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(['
|
|
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.**
|
|
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(['
|
|
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
|
@@ -114,6 +114,12 @@ export interface Post {
|
|
|
114
114
|
/** The author's display name. Absent when they posted anonymously or never
|
|
115
115
|
* chose one. Never an address: a name is a label, an address an identity. */
|
|
116
116
|
who?: string;
|
|
117
|
+
/**
|
|
118
|
+
* The author's identicon, as the code `identiconCode` makes from their
|
|
119
|
+
* address: the picture their wallet shows, never the address. Only on a post
|
|
120
|
+
* that is not anonymous. `GET /v1/identicons/:code.svg` draws it.
|
|
121
|
+
*/
|
|
122
|
+
face?: string;
|
|
117
123
|
/** The app's latest message, for widgets from before `thread`. */
|
|
118
124
|
reply?: PostReply;
|
|
119
125
|
/**
|
|
@@ -185,6 +191,8 @@ export interface Project extends PublicProject {
|
|
|
185
191
|
export interface Me {
|
|
186
192
|
owner: boolean;
|
|
187
193
|
name?: string;
|
|
194
|
+
/** This wallet's identicon code, to show beside the name before posting. */
|
|
195
|
+
face?: string;
|
|
188
196
|
/** Posts left in this wallet's rolling day. The allowance itself is
|
|
189
197
|
* `rules.perDay`: read it from the project, never from a copy. */
|
|
190
198
|
left: number;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -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,EA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