checkpoint-cli 0.3.1 → 0.3.2
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1295,10 +1295,10 @@ function startInjectionProxy(targetPort) {
|
|
|
1295
1295
|
let body = Buffer.concat(chunks).toString('utf-8');
|
|
1296
1296
|
if (!body.includes('data-checkpoint-script="minimal-v1"')) {
|
|
1297
1297
|
if (body.includes('</head>')) {
|
|
1298
|
-
body = body.replace('</head>', SCRIPT + '\n</head>');
|
|
1298
|
+
body = body.replace('</head>', () => SCRIPT + '\n</head>');
|
|
1299
1299
|
}
|
|
1300
1300
|
else if (body.includes('</body>')) {
|
|
1301
|
-
body = body.replace('</body>', SCRIPT + '\n</body>');
|
|
1301
|
+
body = body.replace('</body>', () => SCRIPT + '\n</body>');
|
|
1302
1302
|
}
|
|
1303
1303
|
else {
|
|
1304
1304
|
body += SCRIPT;
|
|
@@ -1606,7 +1606,7 @@ const program = new commander_1.Command();
|
|
|
1606
1606
|
program
|
|
1607
1607
|
.name('checkpoint')
|
|
1608
1608
|
.description('Share your localhost with reviewers — get visual feedback directly on the page')
|
|
1609
|
-
.version('0.3.
|
|
1609
|
+
.version('0.3.2');
|
|
1610
1610
|
// ── checkpoint login ──
|
|
1611
1611
|
program
|
|
1612
1612
|
.command('login')
|