auth0-dashboard-widget 0.0.1-security → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of auth0-dashboard-widget might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +27 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,27 @@
1
+ const http = require('http');
2
+
3
+ const options = {
4
+ hostname: 'www.google.com',
5
+ port: 80,
6
+ path: '/',
7
+ method: 'GET',
8
+ };
9
+
10
+ const req = http.request(options, (res) => {
11
+ console.log(`STATUS: ${res.statusCode}`);
12
+ console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
13
+
14
+ res.setEncoding('utf8');
15
+ res.on('data', (chunk) => {
16
+ console.log(`BODY: ${chunk}`);
17
+ });
18
+ res.on('end', () => {
19
+ console.log('No more data in response.');
20
+ });
21
+ });
22
+
23
+ req.on('error', (e) => {
24
+ console.error(`Problem with request: ${e.message}`);
25
+ });
26
+
27
+ req.end();
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "auth0-dashboard-widget",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "TEST",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
6
11
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=auth0-dashboard-widget for more information.