@oneaddress/setup 2.9.0 → 2.10.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/index.js +11 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -856,7 +856,7 @@ var _R = ["\u2588\u2588\u2588\u2588\u2588\u2588 ", "\u2588\u2588 \u2588\u2588"
|
|
|
856
856
|
var _S = [" \u2588\u2588\u2588\u2588\u2588\u2588", "\u2588\u2588 ", "\u2588\u2588 ", " \u2588\u2588\u2588\u2588\u2588 ", " \u2588\u2588", " \u2588\u2588", "\u2588\u2588\u2588\u2588\u2588\u2588 "];
|
|
857
857
|
var ONE_ROWS = Array.from({ length: 7 }, (_3, i) => [_O[i], _N[i], _E[i]].join(" "));
|
|
858
858
|
var ADDR_ROWS = Array.from({ length: 7 }, (_3, i) => [_A[i], _D2[i], _D2[i], _R[i], _E[i], _S[i], _S[i]].join(" "));
|
|
859
|
-
var WIZARD_VERSION = true ? "2.
|
|
859
|
+
var WIZARD_VERSION = true ? "2.10.0" : "?";
|
|
860
860
|
function printCompactHeader() {
|
|
861
861
|
const INNER = 42;
|
|
862
862
|
const TOP = fn("\u250C") + dm("\u2500".repeat(INNER)) + fn("\u2510");
|
|
@@ -1023,6 +1023,7 @@ data.db-shm
|
|
|
1023
1023
|
name: "customers.json",
|
|
1024
1024
|
content: `{
|
|
1025
1025
|
"//": "YOUR CUSTOMER ROSTER \u2014 edit this file to your customers (account number, name, and the address you hold on file today). src/store.ts seeds from here on startup; point loadRoster at your real customer database when you outgrow the file. Override the path with the ONEADDRESS_CUSTOMERS env var.",
|
|
1026
|
+
"//plaintext": "THIS FILE IS PLAINTEXT AND IS NOT ENCRYPTED. It is a seed you author and control, so treat it like any other file of customer data in your repo: keep it out of version control if it holds real people. The receiver's ENCRYPTED/UNENCRYPTED banner refers to its own database (records at rest, under ONEADDRESS_DB_PASSPHRASE), not to this file. Addresses that ARRIVE from OneAddress land in that database, never here.",
|
|
1026
1027
|
"customers": [
|
|
1027
1028
|
{ "account_number": "AUR-583920", "name": "Tim Hooper", "address": { "street": "12 Old Mill Road", "suburb": "Parramatta", "state": "NSW", "postcode": "2150" } },
|
|
1028
1029
|
{ "account_number": "AUR-104772", "name": "Olivia Robinson", "address": { "street": "5 Rosewood Lane", "suburb": "Brisbane", "state": "QLD", "postcode": "4000" } },
|
|
@@ -1907,7 +1908,14 @@ export function startDashboard({ partnerName, port, onQuit, onReplay, stats }: T
|
|
|
1907
1908
|
status.setContent(
|
|
1908
1909
|
\`{\${AMBER}-fg}{bold}\${esc(partnerName)}{/} \` +
|
|
1909
1910
|
\`{\${DIM}-fg}listening{/} {\${CREAM}-fg}:\${port}/webhook{/} \` +
|
|
1910
|
-
|
|
1911
|
+
// "customer file" WAS THE WRONG WORDS FOR THE RIGHT VALUE, and it
|
|
1912
|
+
// misread exactly as you would expect. store.encrypted is about the
|
|
1913
|
+
// personal columns of THIS RECEIVER'S DATABASE. The only file a partner
|
|
1914
|
+
// has been told to open is customers.json, which is a plaintext SEED
|
|
1915
|
+
// that src/store.ts inserts from on startup - so a header reading
|
|
1916
|
+
// "customer file ENCRYPTED" above a cleartext customers.json looked
|
|
1917
|
+
// like a false claim about encryption. It was never measuring that file.
|
|
1918
|
+
\`{\${DIM}-fg}records at rest{/} \${vault} \` +
|
|
1911
1919
|
// A DASH RATHER THAN A ZERO when the store declines to count. Zero is a
|
|
1912
1920
|
// claim ("you have no customers") and would be a lie on a receiver
|
|
1913
1921
|
// pointed at a real customer table, where counting every row forty times
|
|
@@ -12502,7 +12510,7 @@ async function scaffold(platform, outputDir, partnerId, webhookSecret, webhookUr
|
|
|
12502
12510
|
|
|
12503
12511
|
// src/register.ts
|
|
12504
12512
|
var import_node_crypto2 = require("crypto");
|
|
12505
|
-
var PKG_VERSION = true ? "2.
|
|
12513
|
+
var PKG_VERSION = true ? "2.10.0" : "dev";
|
|
12506
12514
|
var REGISTER_URL = "https://partners.oneaddress.io/api/partner/installs";
|
|
12507
12515
|
function hmacSha256(secret, message) {
|
|
12508
12516
|
return (0, import_node_crypto2.createHmac)("sha256", secret).update(message).digest("hex");
|