Socket
Socket
Sign inDemoInstall

flight-redirect

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

5

lib/core.js

@@ -73,3 +73,5 @@ 'use strict'

}
const info = this.checkAllowRouter(req.url)
const info = this.checkAllowRouter(req.url.replace(/^\/+/, ''))
// console.log(req.url, {info})
if(!info){

@@ -89,2 +91,3 @@ return

if(state){
return res.redirect(302, url)

@@ -91,0 +94,0 @@ }

2

package.json
{
"name": "flight-redirect",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,2 +26,4 @@ 'use strict'

const req = {url: 'domestic/list/NKG_BJS_SRT_1_0_0/?start=2018-07-05&back=2018-07-07'}
// 2.3
// const req = {url: 'domestic/list/NKG_BJS_SRT_1_0_0/?start=2018-07-05&back=2018-07-07'}
const res = {redirect(){

@@ -28,0 +30,0 @@ console.log(Array.prototype.slice.apply(arguments))

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc