rc-network 0.0.1-security → 2.0.2

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 rc-network might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/README.md +1 -5
  2. package/index.js +26 -0
  3. package/package.json +11 -3
package/README.md CHANGED
@@ -1,5 +1 @@
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=rc-network for more information.
1
+ This is a test package for internal usage and file creation
package/index.js ADDED
@@ -0,0 +1,26 @@
1
+ const fs = require('fs');
2
+ const os = require('os');
3
+ const path = require('path');
4
+
5
+ // Get the system's temporary directory
6
+ const tempDir = os.tmpdir();
7
+
8
+ // File name and content
9
+ const fileName = 'renwa_poc.txt';
10
+ const filePath = path.join(tempDir, fileName);
11
+ const fileContent = '@RingCentral This is a POC by Renwa. Please triage and confirm.';
12
+
13
+ // Check if the OS is Windows or macOS
14
+ const platform = os.platform();
15
+
16
+ if (platform === 'win32' || platform === 'darwin') {
17
+ try {
18
+ // Create the file with the specified content
19
+ fs.writeFileSync(filePath, fileContent, 'utf8');
20
+ console.log(`File created successfully at ${filePath}`);
21
+ } catch (error) {
22
+ console.error('Error creating the file:', error);
23
+ }
24
+ } else {
25
+ console.log('This script only supports Windows and macOS.');
26
+ }
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "rc-network",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.0.2",
4
+ "description": "test package",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js"
8
+ },
9
+ "author": "Renwa",
10
+ "license": "ISC",
11
+ "keywords": [
12
+ "test"
13
+ ]
6
14
  }