Socket
Socket
Sign inDemoInstall

corsproxy

Package Overview
Dependencies
67
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.3.0

2

index.js

@@ -1,2 +0,2 @@

var addCorsHeaders = require('./lib/add-cors-headers')
var addCorsHeaders = require('hapi-cors-headers')
var pkg = require('./package.json')

@@ -3,0 +3,0 @@

@@ -14,2 +14,3 @@ {

"hapi": "^9.0.2",
"hapi-cors-headers": "^1.0.0",
"http-proxy": "~1.11",

@@ -50,3 +51,3 @@ "inert": "^3.0.1",

"license": "MIT",
"version": "1.2.1"
"version": "1.3.0"
}

@@ -15,4 +15,18 @@ /* global describe, it, beforeEach*/

.elementByCssSelector('h1').text()
.should.eventually.equal('CORS Proxy test')
.should.eventually.equal('CORS Proxy test')
})
it('Example 1 result is Error', function () {
return this.browser
.waitForConditionInBrowser('!! document.querySelector("#example-1 .result").textContent', 10000)
.elementByCssSelector('#example-1 .result').text()
.should.eventually.equal('Error')
})
it('Example 2 result is Error', function () {
return this.browser
.waitForConditionInBrowser('!! document.querySelector("#example-2 .result").textContent', 10000)
.elementByCssSelector('#example-2 .result').text()
.should.eventually.equal('Success')
})
})
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