kryptheon 0.1.48 → 0.1.50
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/README.md +435 -333
- package/bin/kryptheon.js +231 -16
- package/kryptheon-code.js +158 -2
- package/kryptheon-dashboard-page.js +78 -6
- package/kryptheon-dashboard.html +9 -0
- package/kryptheon-dashboard.js +241 -13
- package/kryptheon-edge.js +83 -14
- package/kryptheon-heal.js +57 -0
- package/kryptheon-payments-run.js +501 -0
- package/kryptheon-payments.js +626 -0
- package/kryptheon-probe-fixture.js +175 -8
- package/kryptheon-probe.js +368 -317
- package/kryptheon-reliability.js +430 -40
- package/kryptheon-replay.js +0 -0
- package/kryptheon-secrets.js +14 -3
- package/package.json +12 -5
package/kryptheon-replay.js
CHANGED
|
Binary file
|
package/kryptheon-secrets.js
CHANGED
|
@@ -125,13 +125,24 @@ function missingSecretLines(specName, names, options) {
|
|
|
125
125
|
* Writes .env.example so nobody has to get the encoding right by hand.
|
|
126
126
|
*
|
|
127
127
|
* Plain UTF-8, no byte order mark. Never overwrites: the file may already hold
|
|
128
|
-
* names from an earlier recording, and clobbering it would lose them.
|
|
128
|
+
* names from an earlier recording, and clobbering it would lose them. A name
|
|
129
|
+
* it does not have yet is added at the end - each account now has its own
|
|
130
|
+
* (blind round 19), so a second account's recording brings a second name.
|
|
131
|
+
* Returns the file when it wrote to it, null when there was nothing to add.
|
|
129
132
|
*/
|
|
130
133
|
function writeEnvExample(dir, names) {
|
|
131
134
|
const file = path.join(dir, '.env.example');
|
|
132
|
-
if (fs.existsSync(file)) return null;
|
|
133
|
-
const body = (names || []).map((name) => name + '=yourpassword').join('\n') + '\n';
|
|
134
135
|
try {
|
|
136
|
+
if (fs.existsSync(file)) {
|
|
137
|
+
let raw = fs.readFileSync(file, 'utf8');
|
|
138
|
+
if (raw.charCodeAt(0) === 0xfeff) raw = raw.slice(1);
|
|
139
|
+
const there = readEnvFile(file);
|
|
140
|
+
const add = (names || []).filter((name) => !(name in there));
|
|
141
|
+
if (!add.length) return null;
|
|
142
|
+
fs.appendFileSync(file, (raw.length && !raw.endsWith('\n') ? '\n' : '') + add.map((name) => name + '=yourpassword').join('\n') + '\n', { encoding: 'utf8' });
|
|
143
|
+
return file;
|
|
144
|
+
}
|
|
145
|
+
const body = (names || []).map((name) => name + '=yourpassword').join('\n') + '\n';
|
|
135
146
|
fs.writeFileSync(file, body, { encoding: 'utf8' });
|
|
136
147
|
return file;
|
|
137
148
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kryptheon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
4
4
|
"description": "Record what you do in your app and get plain-language reports when it breaks.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -50,16 +50,19 @@
|
|
|
50
50
|
"kryptheon-probe-fixture.js",
|
|
51
51
|
"kryptheon-probe-reporter.js",
|
|
52
52
|
"kryptheon-probe.config.js",
|
|
53
|
-
"kryptheon-reliability.js"
|
|
53
|
+
"kryptheon-reliability.js",
|
|
54
|
+
"kryptheon-payments.js",
|
|
55
|
+
"kryptheon-payments-run.js"
|
|
54
56
|
],
|
|
55
57
|
"engines": {
|
|
56
58
|
"node": ">=20.6.0"
|
|
57
59
|
},
|
|
58
60
|
"dependencies": {
|
|
59
|
-
"@playwright/test": "^1.62.1"
|
|
61
|
+
"@playwright/test": "^1.62.1",
|
|
62
|
+
"pg": "^8.23.0"
|
|
60
63
|
},
|
|
61
64
|
"scripts": {
|
|
62
|
-
"check": "node kryptheon-store.check.js && node kryptheon-code.check.js && node kryptheon-constdata.check.js && node kryptheon-listitems.check.js && node kryptheon-accept.check.js && node kryptheon-keys.check.js && node kryptheon-dashboard.check.js && node kryptheon-edge.check.js && node kryptheon-reliability.check.js && node kryptheon-autostart.check.js && node kryptheon-changes.check.js && node kryptheon-look.check.js && node kryptheon-verify.check.js && node kryptheon-recheck.check.js && node kryptheon-reporter.check.js && node kryptheon-signature.check.js && node kryptheon-signature.stream.check.js && node kryptheon-signature.baseline.check.js && node kryptheon-signature.settle.check.js && node kryptheon-signature.number.check.js && node kryptheon-signature.rows.check.js && node kryptheon-env.check.js && node kryptheon-watchdog.check.js && node kryptheon-phone.check.js && node kryptheon-homedash.check.js && node kryptheon-record.check.js && node kryptheon-selectors.check.js && node kryptheon-recordings.check.js && node kryptheon-testfiles.check.js && node kryptheon-cleanup.check.js && node kryptheon-orphan.check.js && node kryptheon-project.check.js && node kryptheon-setup.check.js && node kryptheon-browser.check.js && node kryptheon-heal.check.js && node kryptheon-load.check.js && node kryptheon-package.check.js",
|
|
65
|
+
"check": "node kryptheon-store.check.js && node kryptheon-code.check.js && node kryptheon-constdata.check.js && node kryptheon-listitems.check.js && node kryptheon-accept.check.js && node kryptheon-keys.check.js && node kryptheon-dashboard.check.js && node kryptheon-edge.check.js && node kryptheon-reliability.check.js && node kryptheon-payments-dash.check.js && node kryptheon-embedded.check.js && node kryptheon-autostart.check.js && node kryptheon-changes.check.js && node kryptheon-look.check.js && node kryptheon-verify.check.js && node kryptheon-recheck.check.js && node kryptheon-reporter.check.js && node kryptheon-signature.check.js && node kryptheon-signature.stream.check.js && node kryptheon-signature.baseline.check.js && node kryptheon-signature.settle.check.js && node kryptheon-signature.number.check.js && node kryptheon-signature.rows.check.js && node kryptheon-env.check.js && node kryptheon-watchdog.check.js && node kryptheon-phone.check.js && node kryptheon-homedash.check.js && node kryptheon-record.check.js && node kryptheon-selectors.check.js && node kryptheon-recordings.check.js && node kryptheon-testfiles.check.js && node kryptheon-cleanup.check.js && node kryptheon-orphan.check.js && node kryptheon-project.check.js && node kryptheon-setup.check.js && node kryptheon-browser.check.js && node kryptheon-heal.check.js && node kryptheon-load.check.js && node kryptheon-package.check.js",
|
|
63
66
|
"check:store": "node kryptheon-store.check.js",
|
|
64
67
|
"check:code": "node kryptheon-code.check.js",
|
|
65
68
|
"check:constdata": "node kryptheon-constdata.check.js",
|
|
@@ -92,7 +95,11 @@
|
|
|
92
95
|
"check:testfiles": "node kryptheon-testfiles.check.js",
|
|
93
96
|
"check:listitems": "node kryptheon-listitems.check.js",
|
|
94
97
|
"check:edge": "node kryptheon-edge.check.js",
|
|
95
|
-
"check:reliability": "node kryptheon-reliability.check.js"
|
|
98
|
+
"check:reliability": "node kryptheon-reliability.check.js",
|
|
99
|
+
"check:payments": "node kryptheon-payments.check.js",
|
|
100
|
+
"check:payments-run": "node kryptheon-payments-run.check.js",
|
|
101
|
+
"check:payments-dash": "node kryptheon-payments-dash.check.js",
|
|
102
|
+
"check:embedded": "node kryptheon-embedded.check.js"
|
|
96
103
|
},
|
|
97
104
|
"keywords": [
|
|
98
105
|
"playwright",
|