Socket
Socket
Sign inDemoInstall

localtunnel

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

localtunnel - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.0.1 (2021-01-09)
- Upgrade dependencies
# 2.0.0 (2019-09-16)

@@ -2,0 +6,0 @@

16

localtunnel.spec.js

@@ -26,3 +26,3 @@ /* eslint-disable no-console */

test('query localtunnel server w/ ident', async done => {
it('query localtunnel server w/ ident', async done => {
const tunnel = await localtunnel({ port: fakePort });

@@ -57,3 +57,3 @@ assert.ok(new RegExp('^https://.*localtunnel.me$').test(tunnel.url));

test('request specific domain', async () => {
it('request specific domain', async () => {
const subdomain = Math.random()

@@ -68,3 +68,3 @@ .toString(36)

describe('--local-host localhost', () => {
test('override Host header with local-host', async done => {
it('override Host header with local-host', async done => {
const tunnel = await localtunnel({ port: fakePort, local_host: 'localhost' });

@@ -90,3 +90,3 @@ assert.ok(new RegExp('^https://.*localtunnel.me$').test(tunnel.url));

res.on('end', () => {
assert.equal(body, 'localhost');
assert.strictEqual(body, 'localhost');
tunnel.close();

@@ -102,3 +102,3 @@ done();

describe('--local-host 127.0.0.1', () => {
test('override Host header with local-host', async done => {
it('override Host header with local-host', async done => {
const tunnel = await localtunnel({ port: fakePort, local_host: '127.0.0.1' });

@@ -126,3 +126,3 @@ assert.ok(new RegExp('^https://.*localtunnel.me$').test(tunnel.url));

res.on('end', () => {
assert.equal(body, '127.0.0.1');
assert.strictEqual(body, '127.0.0.1');
tunnel.close();

@@ -136,3 +136,3 @@ done();

test('send chunked request', async done => {
it('send chunked request', async done => {
const tunnel = await localtunnel({ port: fakePort, local_host: '127.0.0.1' });

@@ -161,3 +161,3 @@ assert.ok(new RegExp('^https://.*localtunnel.me$').test(tunnel.url));

res.on('end', () => {
assert.equal(body, '127.0.0.1');
assert.strictEqual(body, '127.0.0.1');
tunnel.close();

@@ -164,0 +164,0 @@ done();

{
"name": "localtunnel",
"description": "Expose localhost to the world",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",

@@ -18,15 +18,15 @@ "repository": {

"bin": {
"lt": "./bin/lt.js"
"lt": "bin/lt.js"
},
"scripts": {
"test": "mocha --ui qunit --reporter list --timeout 60000 -- *.spec.js"
"test": "mocha --reporter list --timeout 60000 -- *.spec.js"
},
"dependencies": {
"axios": "0.19.0",
"debug": "4.1.1",
"axios": "0.21.1",
"debug": "4.3.1",
"openurl": "1.1.1",
"yargs": "13.3.0"
"yargs": "16.2.0"
},
"devDependencies": {
"mocha": "~1.17.0"
"mocha": "~8.2.1"
},

@@ -36,2 +36,2 @@ "engines": {

}
}
}

@@ -114,2 +114,4 @@ # localtunnel

_C#/.NET_ [localtunnel-client](https://github.com/angelobreuer/localtunnel-client)
## server

@@ -116,0 +118,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc