@zubyjs/share 1.0.79 → 1.0.81
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/index.d.ts +1 -1
- package/index.js +4 -1
- package/package.json +44 -43
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -20,14 +20,17 @@ export async function createTunnel({ config }) {
|
|
|
20
20
|
const port = server?.port;
|
|
21
21
|
if (!hostname || !port)
|
|
22
22
|
return;
|
|
23
|
+
logger?.startSpinner('┃ Starting tunnel for sharing...');
|
|
23
24
|
const tunnel = await startTunnel({
|
|
24
25
|
hostname,
|
|
25
26
|
port,
|
|
26
27
|
verifyTLS: false,
|
|
27
28
|
});
|
|
28
29
|
if (!tunnel) {
|
|
29
|
-
|
|
30
|
+
logger?.stopSpinner('');
|
|
31
|
+
return logger.error(' ┃ Share ❌ Failed to start the tunnel');
|
|
30
32
|
}
|
|
31
33
|
const tunnelUrl = await tunnel.getURL();
|
|
34
|
+
logger?.stopSpinner('');
|
|
32
35
|
logger?.info(` ┃ Share ${chalk.gray(tunnelUrl)}\r\n`);
|
|
33
36
|
}
|
package/package.json
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
2
|
+
"name": "@zubyjs/share",
|
|
3
|
+
"version": "1.0.81",
|
|
4
|
+
"description": "Zuby.js share plugin",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"release": "cd ./dist && npm publish --access public && cd ..",
|
|
9
|
+
"bump-version": "npm version patch",
|
|
10
|
+
"build": "rm -rf dist/ stage/ && mkdir dist && tsc && cp -rf package.json README.md stage/share/src/* dist/ && rm -rf stage/",
|
|
11
|
+
"push-build": "npm run build && cd dist && yalc push --force && cd ..",
|
|
12
|
+
"test": "vitest run",
|
|
13
|
+
"test:coverage": "vitest run --coverage"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"directory": "dist",
|
|
17
|
+
"linkDirectory": true
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"zuby": "^1.0.0"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"chalk": "5.3.0",
|
|
24
|
+
"untun": "0.1.3"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://gitlab.com/futrou/zuby.js/-/issues",
|
|
28
|
+
"email": "zuby@futrou.com"
|
|
29
|
+
},
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://gitlab.com/futrou/zuby.js.git"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://zubyjs.com",
|
|
36
|
+
"keywords": [
|
|
37
|
+
"zuby-plugin",
|
|
38
|
+
"zuby",
|
|
39
|
+
"share",
|
|
40
|
+
"tunnel",
|
|
41
|
+
"cloudflare"
|
|
42
|
+
],
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=18"
|
|
45
|
+
}
|
|
45
46
|
}
|