@await-widget/runtime 0.0.47 → 0.0.48
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/bin/await-widget.js +5 -0
- package/package.json +1 -1
package/bin/await-widget.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/* eslint-disable n/prefer-global/buffer, no-bitwise, unicorn/no-array-sort */
|
|
3
3
|
import crypto from 'node:crypto';
|
|
4
|
+
import {execFileSync} from 'node:child_process';
|
|
4
5
|
import fs from 'node:fs';
|
|
5
6
|
import http from 'node:http';
|
|
6
7
|
import os from 'node:os';
|
|
@@ -921,6 +922,10 @@ function printServerUrls(port, token) {
|
|
|
921
922
|
console.log('');
|
|
922
923
|
console.log(recommended.url);
|
|
923
924
|
console.log('');
|
|
925
|
+
if (process.platform === 'darwin') {
|
|
926
|
+
execFileSync('pbcopy', {input: recommended.url});
|
|
927
|
+
console.log('Connection URL copied to clipboard.');
|
|
928
|
+
}
|
|
924
929
|
}
|
|
925
930
|
|
|
926
931
|
if (otherUrls.length > 0) {
|