@ibgib/core-gib 0.1.54 → 0.1.55
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/CHANGELOG.md +10 -3
- package/README.md +12 -15
- package/dist/keystone/aggregate-details.respec.d.mts +2 -0
- package/dist/keystone/aggregate-details.respec.d.mts.map +1 -0
- package/dist/keystone/aggregate-details.respec.mjs +118 -0
- package/dist/keystone/aggregate-details.respec.mjs.map +1 -0
- package/dist/keystone/keystone-constants.d.mts +5 -0
- package/dist/keystone/keystone-constants.d.mts.map +1 -1
- package/dist/keystone/keystone-constants.mjs +6 -1
- package/dist/keystone/keystone-constants.mjs.map +1 -1
- package/dist/keystone/keystone-helpers.d.mts +7 -1
- package/dist/keystone/keystone-helpers.d.mts.map +1 -1
- package/dist/keystone/keystone-helpers.mjs +5 -2
- package/dist/keystone/keystone-helpers.mjs.map +1 -1
- package/dist/keystone/keystone-service-v1.d.mts +51 -0
- package/dist/keystone/keystone-service-v1.d.mts.map +1 -1
- package/dist/keystone/keystone-service-v1.mjs +176 -9
- package/dist/keystone/keystone-service-v1.mjs.map +1 -1
- package/dist/keystone/keystone-service-v1.respec.mjs +40 -98
- package/dist/keystone/keystone-service-v1.respec.mjs.map +1 -1
- package/dist/keystone/keystone-types.d.mts +5 -0
- package/dist/keystone/keystone-types.d.mts.map +1 -1
- package/dist/sync/graft-info/graft-info-helpers.respec.mjs +8 -8
- package/dist/sync/graft-info/graft-info-helpers.respec.mjs.map +1 -1
- package/dist/sync/sync-conflict-adv-multitimelines.respec.mjs +26 -30
- package/dist/sync/sync-conflict-adv-multitimelines.respec.mjs.map +1 -1
- package/dist/sync/sync-conflict-basic-divergence.respec.mjs +7 -8
- package/dist/sync/sync-conflict-basic-divergence.respec.mjs.map +1 -1
- package/dist/sync/sync-conflict-basic-multitimelines.respec.mjs +10 -11
- package/dist/sync/sync-conflict-basic-multitimelines.respec.mjs.map +1 -1
- package/dist/sync/sync-conflict-text-merge.respec.mjs +30 -33
- package/dist/sync/sync-conflict-text-merge.respec.mjs.map +1 -1
- package/dist/sync/sync-constants.d.mts +1 -56
- package/dist/sync/sync-constants.d.mts.map +1 -1
- package/dist/sync/sync-constants.mjs +2 -59
- package/dist/sync/sync-constants.mjs.map +1 -1
- package/dist/sync/sync-helpers.d.mts +0 -1
- package/dist/sync/sync-helpers.d.mts.map +1 -1
- package/dist/sync/sync-helpers.mjs +1 -6
- package/dist/sync/sync-helpers.mjs.map +1 -1
- package/dist/sync/sync-innerspace-constants.respec.mjs +5 -9
- package/dist/sync/sync-innerspace-constants.respec.mjs.map +1 -1
- package/dist/sync/sync-innerspace-deep-updates.respec.mjs +6 -7
- package/dist/sync/sync-innerspace-deep-updates.respec.mjs.map +1 -1
- package/dist/sync/sync-innerspace-dest-ahead-withid.respec.mjs +22 -22
- package/dist/sync/sync-innerspace-dest-ahead-withid.respec.mjs.map +1 -1
- package/dist/sync/sync-innerspace-dest-ahead.respec.mjs +8 -9
- package/dist/sync/sync-innerspace-dest-ahead.respec.mjs.map +1 -1
- package/dist/sync/sync-innerspace-multiple-timelines.respec.mjs +6 -7
- package/dist/sync/sync-innerspace-multiple-timelines.respec.mjs.map +1 -1
- package/dist/sync/sync-innerspace-partial-update.respec.mjs +7 -8
- package/dist/sync/sync-innerspace-partial-update.respec.mjs.map +1 -1
- package/dist/sync/sync-innerspace.respec.mjs +8 -11
- package/dist/sync/sync-innerspace.respec.mjs.map +1 -1
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-http-node-adapter.mjs +10 -5
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-http-node-adapter.mjs.map +1 -1
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-types.d.mts +3 -1
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-types.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-v1.d.mts +4 -2
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-v1.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-v1.mjs +37 -6
- package/dist/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-v1.mjs.map +1 -1
- package/dist/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-types.d.mts +3 -1
- package/dist/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-types.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-v1.d.mts +4 -2
- package/dist/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-v1.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-v1.mjs +37 -0
- package/dist/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-v1.mjs.map +1 -1
- package/dist/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-types.d.mts +7 -1
- package/dist/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-types.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-v1.d.mts +10 -2
- package/dist/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-v1.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-v1.mjs +50 -38
- package/dist/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-v1.mjs.map +1 -1
- package/dist/sync/sync-peer/sync-peer-types.d.mts +21 -5
- package/dist/sync/sync-peer/sync-peer-types.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-v1.d.mts +30 -5
- package/dist/sync/sync-peer/sync-peer-v1.d.mts.map +1 -1
- package/dist/sync/sync-peer/sync-peer-v1.mjs +41 -25
- package/dist/sync/sync-peer/sync-peer-v1.mjs.map +1 -1
- package/dist/sync/sync-saga-context/sync-saga-context-helpers.d.mts +2 -11
- package/dist/sync/sync-saga-context/sync-saga-context-helpers.d.mts.map +1 -1
- package/dist/sync/sync-saga-context/sync-saga-context-helpers.mjs +7 -51
- package/dist/sync/sync-saga-context/sync-saga-context-helpers.mjs.map +1 -1
- package/dist/sync/sync-saga-context/sync-saga-context-types.d.mts +1 -47
- package/dist/sync/sync-saga-context/sync-saga-context-types.d.mts.map +1 -1
- package/dist/sync/sync-saga-coordinator.d.mts +6 -58
- package/dist/sync/sync-saga-coordinator.d.mts.map +1 -1
- package/dist/sync/sync-saga-coordinator.mjs +23 -425
- package/dist/sync/sync-saga-coordinator.mjs.map +1 -1
- package/dist/sync/sync-saga-message/sync-saga-message-types.d.mts +2 -2
- package/dist/sync/sync-saga-message/sync-saga-message-types.d.mts.map +1 -1
- package/dist/sync/sync-types.d.mts +2 -19
- package/dist/sync/sync-types.d.mts.map +1 -1
- package/dist/sync/sync-types.mjs.map +1 -1
- package/dist/test/mock-space.mjs +1 -1
- package/dist/test/mock-space.mjs.map +1 -1
- package/dist/test-helpers.d.mts +0 -6
- package/dist/test-helpers.d.mts.map +1 -1
- package/dist/test-helpers.mjs +2 -25
- package/dist/test-helpers.mjs.map +1 -1
- package/package.json +7 -31
- package/src/keystone/aggregate-details.respec.mts +137 -0
- package/src/keystone/docs/architecture.md +16 -0
- package/src/keystone/keystone-constants.mts +6 -1
- package/src/keystone/keystone-helpers.mts +9 -1
- package/src/keystone/keystone-service-v1.mts +216 -8
- package/src/keystone/keystone-service-v1.respec.mts +39 -103
- package/src/keystone/keystone-types.mts +6 -0
- package/src/sync/README.md +18 -0
- package/src/sync/docs/architecture.md +21 -0
- package/src/sync/graft-info/graft-info-helpers.respec.mts +7 -7
- package/src/sync/sync-conflict-adv-multitimelines.respec.mts +25 -29
- package/src/sync/sync-conflict-basic-divergence.respec.mts +6 -7
- package/src/sync/sync-conflict-basic-multitimelines.respec.mts +9 -10
- package/src/sync/sync-conflict-text-merge.respec.mts +29 -32
- package/src/sync/sync-constants.mts +2 -62
- package/src/sync/sync-helpers.mts +1 -8
- package/src/sync/sync-id-testlog.txt +421 -0
- package/src/sync/sync-innerspace-constants.respec.mts +4 -8
- package/src/sync/sync-innerspace-deep-updates.respec.mts +5 -6
- package/src/sync/sync-innerspace-dest-ahead-withid.respec.mts +23 -25
- package/src/sync/sync-innerspace-dest-ahead.respec.mts +7 -8
- package/src/sync/sync-innerspace-multiple-timelines.respec.mts +5 -6
- package/src/sync/sync-innerspace-partial-update.respec.mts +6 -7
- package/src/sync/sync-innerspace.respec.mts +7 -10
- package/src/sync/sync-peer/sync-peer-http-receiver/sync-http-node-adapter.mts +5 -5
- package/src/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-types.mts +5 -1
- package/src/sync/sync-peer/sync-peer-http-receiver/sync-peer-http-receiver-v1.mts +30 -9
- package/src/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-types.mts +3 -1
- package/src/sync/sync-peer/sync-peer-http-sender/sync-peer-http-sender-v1.mts +29 -2
- package/src/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-types.mts +7 -1
- package/src/sync/sync-peer/sync-peer-innerspace/sync-peer-innerspace-v1.mts +51 -38
- package/src/sync/sync-peer/sync-peer-types.mts +23 -6
- package/src/sync/sync-peer/sync-peer-v1.mts +68 -28
- package/src/sync/sync-saga-context/sync-saga-context-helpers.mts +6 -66
- package/src/sync/sync-saga-context/sync-saga-context-types.mts +1 -48
- package/src/sync/sync-saga-coordinator.mts +12 -552
- package/src/sync/sync-saga-message/sync-saga-message-types.mts +2 -3
- package/src/sync/sync-types.mts +2 -22
- package/src/sync/unused-identity-backup.mts.md +311 -0
- package/src/test/mock-space.mts +1 -1
- package/src/test-helpers.mts +1 -26
- package/test_output.log +0 -0
- package/test_output_utf8.txt +398 -0
- package/.vscode/core-gib-snippets.code-snippets +0 -293
- package/.vscode/launch.json +0 -40
- package/.vscode/settings.json +0 -58
- package/.vscode/tasks.json +0 -37
- package/dist/sync/sync-peer/sync-peer-http.respec.d.mts +0 -2
- package/dist/sync/sync-peer/sync-peer-http.respec.d.mts.map +0 -1
- package/dist/sync/sync-peer/sync-peer-http.respec.mjs +0 -340
- package/dist/sync/sync-peer/sync-peer-http.respec.mjs.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-helper.d.mts +0 -42
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-helper.d.mts.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-helper.mjs +0 -312
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-helper.mjs.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-types.d.mts +0 -84
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-types.d.mts.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-types.mjs +0 -65
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-types.mjs.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-v1.d.mts +0 -73
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-v1.d.mts.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-v1.mjs +0 -667
- package/dist/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-v1.mjs.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_createAndInit.node-filesystem-space-v1.respec.d.mts +0 -2
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_createAndInit.node-filesystem-space-v1.respec.d.mts.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_createAndInit.node-filesystem-space-v1.respec.mjs +0 -67
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_createAndInit.node-filesystem-space-v1.respec.mjs.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_persistTransformResult.node-filesystem-space-v1.respec.d.mts +0 -2
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_persistTransformResult.node-filesystem-space-v1.respec.d.mts.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_persistTransformResult.node-filesystem-space-v1.respec.mjs +0 -67
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_persistTransformResult.node-filesystem-space-v1.respec.mjs.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_putGetDelete.node-filesystem-space-v1.respec.d.mts +0 -2
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_putGetDelete.node-filesystem-space-v1.respec.d.mts.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_putGetDelete.node-filesystem-space-v1.respec.mjs +0 -68
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_putGetDelete.node-filesystem-space-v1.respec.mjs.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_registerNewIbGib_GetLatest.node-filesystem-space-v1.respec.d.mts +0 -2
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_registerNewIbGib_GetLatest.node-filesystem-space-v1.respec.d.mts.map +0 -1
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_registerNewIbGib_GetLatest.node-filesystem-space-v1.respec.mjs +0 -69
- package/dist/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_registerNewIbGib_GetLatest.node-filesystem-space-v1.respec.mjs.map +0 -1
- package/src/sync/sync-peer/sync-peer-http.respec.mts +0 -396
- package/src/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-helper.mts +0 -298
- package/src/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-types.mts +0 -150
- package/src/witness/space/filesystem-space/node-filesystem-space/node-filesystem-space-v1.mts +0 -666
- package/src/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_createAndInit.node-filesystem-space-v1.respec.mts +0 -87
- package/src/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_persistTransformResult.node-filesystem-space-v1.respec.mts +0 -88
- package/src/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_putGetDelete.node-filesystem-space-v1.respec.mts +0 -88
- package/src/witness/space/filesystem-space/node-filesystem-space/respec/testSpace_registerNewIbGib_GetLatest.node-filesystem-space-v1.respec.mts +0 -90
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"this Fn lc try..catch rethrow": {
|
|
3
|
-
"scope": "javascript,typescript",
|
|
4
|
-
"prefix": "lc_trycatch_rethrow_this",
|
|
5
|
-
"body": [
|
|
6
|
-
"const lc = `\\${this.lc}[\\${this.$1.name}]`;",
|
|
7
|
-
"try {",
|
|
8
|
-
"\t$SELECTION$0",
|
|
9
|
-
"} catch (error) {",
|
|
10
|
-
"\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
11
|
-
"\tthrow error;",
|
|
12
|
-
"}"
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
"this Fn lc try..catch..finally rethrow": {
|
|
16
|
-
"scope": "javascript,typescript",
|
|
17
|
-
"prefix": "lc_trycatchfinally_rethrow_this",
|
|
18
|
-
"body": [
|
|
19
|
-
"const lc = `\\${this.lc}[\\${this.$1.name}]`;",
|
|
20
|
-
"try {",
|
|
21
|
-
"\t$SELECTION$0",
|
|
22
|
-
"} catch (error) {",
|
|
23
|
-
"\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
24
|
-
"\tthrow error;",
|
|
25
|
-
"} finally {",
|
|
26
|
-
"\t$2",
|
|
27
|
-
"}"
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
"this Fn lc try..catch..finally rethrow with logging": {
|
|
31
|
-
"scope": "javascript,typescript",
|
|
32
|
-
"prefix": "lc_trycatchfinally_rethrow_withlogging_this",
|
|
33
|
-
"body": [
|
|
34
|
-
"const lc = `\\${this.lc}[\\${this.$1.name}]`;",
|
|
35
|
-
"try {",
|
|
36
|
-
"\tif (logalot) { console.log(`\\${lc} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }",
|
|
37
|
-
"\t$SELECTION$0",
|
|
38
|
-
"} catch (error) {",
|
|
39
|
-
"\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
40
|
-
"\tthrow error;",
|
|
41
|
-
"} finally {",
|
|
42
|
-
"\tif (logalot) { console.log(`\\${lc} complete.`); }",
|
|
43
|
-
"}"
|
|
44
|
-
],
|
|
45
|
-
},
|
|
46
|
-
"this Fn func async lc try..catch rethrow": {
|
|
47
|
-
"scope": "javascript,typescript",
|
|
48
|
-
"prefix": "this_func_lc_trycatch_rethrow_this",
|
|
49
|
-
"body": [
|
|
50
|
-
"${1:async }${2:fnName}({",
|
|
51
|
-
"\t$3,",
|
|
52
|
-
"}: {",
|
|
53
|
-
"\t$3: $4,",
|
|
54
|
-
"}): Promise<$5> {",
|
|
55
|
-
"\tconst lc = `\\${this.lc}[\\${this.$2.name}]`;",
|
|
56
|
-
"\ttry {",
|
|
57
|
-
"\t\t$SELECTION$0",
|
|
58
|
-
"\t} catch (error) {",
|
|
59
|
-
"\t\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
60
|
-
"\t\tthrow error;",
|
|
61
|
-
"\t}",
|
|
62
|
-
"}"
|
|
63
|
-
],
|
|
64
|
-
},
|
|
65
|
-
"this Fn func async lc try..catch..finally rethrow": {
|
|
66
|
-
"scope": "javascript,typescript",
|
|
67
|
-
"prefix": "this_func_lc_trycatchfinally_rethrow_this",
|
|
68
|
-
"body": [
|
|
69
|
-
"${1:async }${2:fnName}({",
|
|
70
|
-
"\t$3,",
|
|
71
|
-
"}: {",
|
|
72
|
-
"\t$3: $4,",
|
|
73
|
-
"}): Promise<$5> {",
|
|
74
|
-
"\tconst lc = `\\${this.lc}[\\${this.$2.name}]`;",
|
|
75
|
-
"\ttry {",
|
|
76
|
-
"\t\t$SELECTION$0",
|
|
77
|
-
"\t} catch (error) {",
|
|
78
|
-
"\t\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
79
|
-
"\t\tthrow error;",
|
|
80
|
-
"\t} finally {",
|
|
81
|
-
"\t\t$6",
|
|
82
|
-
"\t}",
|
|
83
|
-
"}"
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
"this Fn func async lc try..catch..finally rethrow with logging": {
|
|
87
|
-
"scope": "javascript,typescript",
|
|
88
|
-
"prefix": "this_func_lc_trycatchfinally_rethrow_withlogging_this",
|
|
89
|
-
"body": [
|
|
90
|
-
"${1:async }${2:fnName}({",
|
|
91
|
-
"\t$3,",
|
|
92
|
-
"}: {",
|
|
93
|
-
"\t$3: $4,",
|
|
94
|
-
"}): Promise<$5> {",
|
|
95
|
-
"\tconst lc = `\\${this.lc}[\\${this.$2.name}]`;",
|
|
96
|
-
"\ttry {",
|
|
97
|
-
"\t\tif (logalot) { console.log(`\\${lc} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }",
|
|
98
|
-
"\t\t$SELECTION$0",
|
|
99
|
-
"\t} catch (error) {",
|
|
100
|
-
"\t\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
101
|
-
"\t\tthrow error;",
|
|
102
|
-
"\t} finally {",
|
|
103
|
-
"\t\tif (logalot) { console.log(`\\${lc} complete.`); }",
|
|
104
|
-
"\t}",
|
|
105
|
-
"}"
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
"Fn lc try..catch rethrow": {
|
|
109
|
-
"scope": "javascript,typescript",
|
|
110
|
-
"prefix": "lc_trycatch_rethrow",
|
|
111
|
-
"body": [
|
|
112
|
-
"const lc = `[\\${$1.name}]`;",
|
|
113
|
-
"try {",
|
|
114
|
-
"\t$SELECTION$0",
|
|
115
|
-
"} catch (error) {",
|
|
116
|
-
"\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
117
|
-
"\tthrow error;",
|
|
118
|
-
"}"
|
|
119
|
-
],
|
|
120
|
-
},
|
|
121
|
-
"Fn lc try..catch..finally rethrow": {
|
|
122
|
-
"scope": "javascript,typescript",
|
|
123
|
-
"prefix": "lc_trycatchfinally_rethrow",
|
|
124
|
-
"body": [
|
|
125
|
-
"const lc = `[\\${$1.name}]`;",
|
|
126
|
-
"try {",
|
|
127
|
-
"\t$SELECTION$0",
|
|
128
|
-
"} catch (error) {",
|
|
129
|
-
"\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
130
|
-
"\tthrow error;",
|
|
131
|
-
"} finally {",
|
|
132
|
-
"\t$2",
|
|
133
|
-
"}"
|
|
134
|
-
],
|
|
135
|
-
},
|
|
136
|
-
"Fn lc try..catch..finally rethrow with logging": {
|
|
137
|
-
"scope": "javascript,typescript",
|
|
138
|
-
"prefix": "lc_trycatchfinally_rethrow_withlogging",
|
|
139
|
-
"body": [
|
|
140
|
-
"const lc = `[\\${$1.name}]`;",
|
|
141
|
-
"try {",
|
|
142
|
-
"\tif (logalot) { console.log(`\\${lc} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }",
|
|
143
|
-
"\t$SELECTION$0",
|
|
144
|
-
"} catch (error) {",
|
|
145
|
-
"\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
146
|
-
"\tthrow error;",
|
|
147
|
-
"} finally {",
|
|
148
|
-
"\tif (logalot) { console.log(`\\${lc} complete.`); }",
|
|
149
|
-
"}"
|
|
150
|
-
],
|
|
151
|
-
},
|
|
152
|
-
"Fn func async lc try..catch rethrow": {
|
|
153
|
-
"scope": "javascript,typescript",
|
|
154
|
-
"prefix": "func_lc_trycatch_rethrow",
|
|
155
|
-
"body": [
|
|
156
|
-
"${1:export async function} ${2:fnName}({",
|
|
157
|
-
"\t$3,",
|
|
158
|
-
"}: {",
|
|
159
|
-
"\t$3: $4,",
|
|
160
|
-
"}): Promise<$5> {",
|
|
161
|
-
"\tconst lc = `[\\${$2.name}]`;",
|
|
162
|
-
"\ttry {",
|
|
163
|
-
"\t\t$SELECTION$0",
|
|
164
|
-
"\t} catch (error) {",
|
|
165
|
-
"\t\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
166
|
-
"\t\tthrow error;",
|
|
167
|
-
"\t}",
|
|
168
|
-
"}"
|
|
169
|
-
],
|
|
170
|
-
},
|
|
171
|
-
"Fn func async lc try..catch..finally rethrow": {
|
|
172
|
-
"scope": "javascript,typescript",
|
|
173
|
-
"prefix": "func_lc_trycatchfinally_rethrow",
|
|
174
|
-
"body": [
|
|
175
|
-
"${1:export async function} ${2:fnName}({",
|
|
176
|
-
"\t$3,",
|
|
177
|
-
"}: {",
|
|
178
|
-
"\t$3: $4,",
|
|
179
|
-
"}): Promise<$5> {",
|
|
180
|
-
"\tconst lc = `[\\${$2.name}]`;",
|
|
181
|
-
"\ttry {",
|
|
182
|
-
"\t\t$SELECTION$0",
|
|
183
|
-
"\t} catch (error) {",
|
|
184
|
-
"\t\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
185
|
-
"\t\tthrow error;",
|
|
186
|
-
"\t} finally {",
|
|
187
|
-
"\t\t$6",
|
|
188
|
-
"\t}",
|
|
189
|
-
"}"
|
|
190
|
-
],
|
|
191
|
-
},
|
|
192
|
-
"Fn func async lc try..catch..finally rethrow with logging": {
|
|
193
|
-
"scope": "javascript,typescript",
|
|
194
|
-
"prefix": "func_lc_trycatchfinally_rethrow_withlogging",
|
|
195
|
-
"body": [
|
|
196
|
-
"${1:export async function} ${2:fnName}({",
|
|
197
|
-
"\t$3,",
|
|
198
|
-
"}: {",
|
|
199
|
-
"\t$3: $4,",
|
|
200
|
-
"}): Promise<$5> {",
|
|
201
|
-
"\tconst lc = `[\\${$2.name}]`;",
|
|
202
|
-
"\ttry {",
|
|
203
|
-
"\t\tif (logalot) { console.log(`\\${lc} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }",
|
|
204
|
-
"\t\t$SELECTION$0",
|
|
205
|
-
"\t} catch (error) {",
|
|
206
|
-
"\t\tconsole.error(`\\${lc} \\${extractErrorMsg(error)}`);",
|
|
207
|
-
"\t\tthrow error;",
|
|
208
|
-
"\t} finally {",
|
|
209
|
-
"\t\tif (logalot) { console.log(`\\${lc} complete.`); }",
|
|
210
|
-
"\t}",
|
|
211
|
-
"}"
|
|
212
|
-
],
|
|
213
|
-
},
|
|
214
|
-
"throw new error with guid": {
|
|
215
|
-
"scope": "javascript,typescript",
|
|
216
|
-
"prefix": "throw_new_error_with_guid",
|
|
217
|
-
"body": [
|
|
218
|
-
"$0throw new Error(`$1 (E: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); "
|
|
219
|
-
],
|
|
220
|
-
},
|
|
221
|
-
"throw new error with guid (UNEXPECTED)": {
|
|
222
|
-
"scope": "javascript,typescript",
|
|
223
|
-
"prefix": "throw_new_error_with_guid_unexpected",
|
|
224
|
-
"body": [
|
|
225
|
-
"$0throw new Error(`(UNEXPECTED) $1? (E: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); "
|
|
226
|
-
],
|
|
227
|
-
},
|
|
228
|
-
"throw new error with guid not implemented": {
|
|
229
|
-
"scope": "javascript,typescript",
|
|
230
|
-
"prefix": "throw_new_error_with_guid_not_impl",
|
|
231
|
-
"body": [
|
|
232
|
-
"$0throw new Error(`not implemented (E: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); "
|
|
233
|
-
],
|
|
234
|
-
},
|
|
235
|
-
"if..throw with guid": {
|
|
236
|
-
"scope": "javascript,typescript",
|
|
237
|
-
"prefix": "if_throw_with_guid",
|
|
238
|
-
"body": [
|
|
239
|
-
"$0if ($1) { throw new Error(`$2 (E: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }"
|
|
240
|
-
],
|
|
241
|
-
},
|
|
242
|
-
"if logalot log": {
|
|
243
|
-
"scope": "javascript,typescript",
|
|
244
|
-
"prefix": "if_logalot_log",
|
|
245
|
-
"body": [
|
|
246
|
-
"$0if (logalot$1) { console.${2:log}(`\\${lc} $3 (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`); }"
|
|
247
|
-
],
|
|
248
|
-
},
|
|
249
|
-
"surround log if logalot log": {
|
|
250
|
-
"scope": "javascript,typescript",
|
|
251
|
-
"prefix": "surround_log_if_logalot",
|
|
252
|
-
"body": [
|
|
253
|
-
"if (logalot) { $SELECTION }"
|
|
254
|
-
],
|
|
255
|
-
},
|
|
256
|
-
"surround if logalot timer console time-timeEnd": {
|
|
257
|
-
"scope": "javascript,typescript",
|
|
258
|
-
"prefix": "surround_if_logalot_timer_console_time_timeend",
|
|
259
|
-
"body": [
|
|
260
|
-
"let timerName: string;",
|
|
261
|
-
"const timerEnabled = true",
|
|
262
|
-
"if (logalot && timerEnabled) {",
|
|
263
|
-
"\ttimerName = lc.substring(0, ${1:24}) + '[timer $RANDOM_HEX]';",
|
|
264
|
-
"\tconsole.log(`\\${timerName} starting... (I: $RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$RANDOM_HEX$CURRENT_YEAR_SHORT)`);",
|
|
265
|
-
"\tconsole.time(timerName);",
|
|
266
|
-
"}",
|
|
267
|
-
"// can intersperse with calls to console.timeLog for intermediate times",
|
|
268
|
-
"// if (logalot) { console.timeLog(timerName); }",
|
|
269
|
-
"",
|
|
270
|
-
"$0$SELECTION",
|
|
271
|
-
"",
|
|
272
|
-
"if (logalot && timerEnabled) {",
|
|
273
|
-
"\tconsole.timeEnd(timerName);",
|
|
274
|
-
"\tconsole.log(`\\${timerName} complete.`);",
|
|
275
|
-
"}",
|
|
276
|
-
],
|
|
277
|
-
},
|
|
278
|
-
"if logalot global ibgib timer": {
|
|
279
|
-
"scope": "javascript,typescript",
|
|
280
|
-
"prefix": "if_logalot_ibgib_timer",
|
|
281
|
-
"body": [
|
|
282
|
-
"if (logalot) { console.log(`\\${lc}\\${c.GLOBAL_TIMER_NAME}`); console.timeLog(c.GLOBAL_TIMER_NAME); }$0"
|
|
283
|
-
],
|
|
284
|
-
},
|
|
285
|
-
"return early": {
|
|
286
|
-
"scope": "javascript,typescript",
|
|
287
|
-
"prefix": "return_early",
|
|
288
|
-
"description": "I like to indicate returning early in a function in a comment, so it's more obvious in the editor if I'm scanning for comments.",
|
|
289
|
-
"body": [
|
|
290
|
-
"return$1; /* <<<< returns early */$0",
|
|
291
|
-
],
|
|
292
|
-
},
|
|
293
|
-
}
|
package/.vscode/launch.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"type": "node",
|
|
9
|
-
"request": "launch",
|
|
10
|
-
"name": "npm debug",
|
|
11
|
-
"runtimeExecutable": "npm",
|
|
12
|
-
"runtimeArgs": [
|
|
13
|
-
"run",
|
|
14
|
-
"debug",
|
|
15
|
-
],
|
|
16
|
-
"port": 9229,
|
|
17
|
-
"sourceMaps": true,
|
|
18
|
-
"skipFiles": [
|
|
19
|
-
"<node_internals>/**"
|
|
20
|
-
]
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"type": "node",
|
|
24
|
-
"request": "launch",
|
|
25
|
-
"name": "Debug Respec Tests",
|
|
26
|
-
"skipFiles": [
|
|
27
|
-
"<node_internals>/**"
|
|
28
|
-
],
|
|
29
|
-
"program": "${workspaceFolder}/dist/respec-gib.node.mjs",
|
|
30
|
-
"preLaunchTask": "npm: build:test",
|
|
31
|
-
"cwd": "${workspaceFolder}",
|
|
32
|
-
"console": "integratedTerminal",
|
|
33
|
-
"internalConsoleOptions": "neverOpen",
|
|
34
|
-
"sourceMaps": true,
|
|
35
|
-
"outFiles": [
|
|
36
|
-
"${workspaceFolder}/dist/**/*.mjs"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
package/.vscode/settings.json
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"typescript.tsdk": "node_modules/typescript/lib",
|
|
3
|
-
"search.exclude": {
|
|
4
|
-
"**/*.BAK": true,
|
|
5
|
-
"**/*.bak": true,
|
|
6
|
-
"**/dist": true
|
|
7
|
-
},
|
|
8
|
-
"files.watcherExclude": {
|
|
9
|
-
"**/*.BAK": true,
|
|
10
|
-
"**/*.bak": true
|
|
11
|
-
},
|
|
12
|
-
"editor.formatOnSave": true,
|
|
13
|
-
"files.insertFinalNewline": true,
|
|
14
|
-
"files.trimFinalNewlines": true,
|
|
15
|
-
"debug.node.autoAttach": "on",
|
|
16
|
-
"files.trimTrailingWhitespace": true,
|
|
17
|
-
"workbench.colorTheme": "Kimbie Dark",
|
|
18
|
-
"workbench.colorCustomizations": {
|
|
19
|
-
"editor.background": "#08143c",
|
|
20
|
-
"sideBar.background": "#0e1a42",
|
|
21
|
-
"editor.lineHighlightBackground": "#00ff2f18",
|
|
22
|
-
"editor.selectionBackground": "#10259c96",
|
|
23
|
-
"activityBar.activeBackground": "#3333ff",
|
|
24
|
-
"activityBar.background": "#3333ff",
|
|
25
|
-
"activityBar.foreground": "#e7e7e7",
|
|
26
|
-
"activityBar.inactiveForeground": "#e7e7e799",
|
|
27
|
-
"activityBarBadge.background": "#600000",
|
|
28
|
-
"activityBarBadge.foreground": "#e7e7e7",
|
|
29
|
-
"commandCenter.border": "#e7e7e799",
|
|
30
|
-
"sash.hoverBorder": "#3333ff",
|
|
31
|
-
"statusBar.background": "#0000ff",
|
|
32
|
-
"statusBar.foreground": "#e7e7e7",
|
|
33
|
-
"statusBarItem.hoverBackground": "#3333ff",
|
|
34
|
-
"statusBarItem.remoteBackground": "#0000ff",
|
|
35
|
-
"statusBarItem.remoteForeground": "#e7e7e7",
|
|
36
|
-
"titleBar.activeBackground": "#0000ff",
|
|
37
|
-
"titleBar.activeForeground": "#e7e7e7",
|
|
38
|
-
"titleBar.inactiveBackground": "#0000ff99",
|
|
39
|
-
"titleBar.inactiveForeground": "#e7e7e799"
|
|
40
|
-
},
|
|
41
|
-
"editor.tokenColorCustomizations": {
|
|
42
|
-
"[Kimbie Dark]": {
|
|
43
|
-
"variables": "#c77a22",
|
|
44
|
-
"comments": "#fffb128c",
|
|
45
|
-
"textMateRules": [
|
|
46
|
-
{
|
|
47
|
-
"name": "Lists",
|
|
48
|
-
"scope": "markup.list",
|
|
49
|
-
"settings": {
|
|
50
|
-
"foreground": "#cb76d6"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"peacock.color": "blue",
|
|
57
|
-
"insertGuid.pasteAutomatically": "{n}"
|
|
58
|
-
}
|
package/.vscode/tasks.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
-
// for the documentation about the tasks.json format
|
|
4
|
-
"version": "2.0.0",
|
|
5
|
-
"tasks": [
|
|
6
|
-
{
|
|
7
|
-
"type": "npm",
|
|
8
|
-
"script": "build",
|
|
9
|
-
"group": "build",
|
|
10
|
-
"problemMatcher": []
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"type": "npm",
|
|
14
|
-
"script": "test",
|
|
15
|
-
"group": "build",
|
|
16
|
-
"problemMatcher": []
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"type": "npm",
|
|
20
|
-
"script": "clean",
|
|
21
|
-
"group": "build",
|
|
22
|
-
"problemMatcher": []
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "npm",
|
|
26
|
-
"script": "build:test",
|
|
27
|
-
"group": "build",
|
|
28
|
-
"problemMatcher": []
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "npm",
|
|
32
|
-
"script": "prepare:publish",
|
|
33
|
-
"group": "build",
|
|
34
|
-
"problemMatcher": []
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-peer-http.respec.d.mts","sourceRoot":"","sources":["../../../src/sync/sync-peer/sync-peer-http.respec.mts"],"names":[],"mappings":""}
|