@studysync/draft-js-modifiers 0.5.0 → 0.5.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.
- package/README.md +9 -4
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -8,19 +8,24 @@
|
|
|
8
8
|
Modular state modifiers for [Draft.js](https://draftjs.org/)
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
yarn add @studysync/draft-js-modifiers draft-js
|
|
11
|
+
yarn add @studysync/draft-js-modifiers draft-js
|
|
12
12
|
|
|
13
13
|
# or
|
|
14
14
|
|
|
15
|
-
npm i @studysync/draft-js-modifiers draft-js
|
|
15
|
+
npm i @studysync/draft-js-modifiers draft-js
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
This package ships with `immutable@3.8.3`, the patched `3.x` line for the prototype-pollution advisory described in the GitHub advisory for [`immutable`](https://github.com/advisories/GHSA-wf6x-7x77-mvgw).
|
|
19
|
+
|
|
20
|
+
When your app also uses other legacy Draft.js packages, force a single patched `immutable` 3.x version at the app root:
|
|
19
21
|
|
|
20
22
|
```json
|
|
21
23
|
{
|
|
22
24
|
"overrides": {
|
|
23
|
-
"immutable": "3.8.3"
|
|
25
|
+
"immutable": "3.8.3",
|
|
26
|
+
"draft-js": {
|
|
27
|
+
"immutable": "3.8.3"
|
|
28
|
+
}
|
|
24
29
|
},
|
|
25
30
|
"resolutions": {
|
|
26
31
|
"immutable": "3.8.3"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studysync/draft-js-modifiers",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "Modular state modifiers for Draft.js",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -41,8 +41,10 @@
|
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"draft-js": "^0.11.7"
|
|
45
|
-
|
|
44
|
+
"draft-js": "^0.11.7"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"immutable": "3.8.3"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
50
|
"@babel/cli": "7.17.0",
|
|
@@ -59,7 +61,6 @@
|
|
|
59
61
|
"eslint-plugin-babel": "^5.1.0",
|
|
60
62
|
"eslint-plugin-flowtype": "^2.47.1",
|
|
61
63
|
"flow-bin": "^0.70.0",
|
|
62
|
-
"immutable": "3.8.3",
|
|
63
64
|
"nyc": "^11.8.0",
|
|
64
65
|
"react": ">=17",
|
|
65
66
|
"react-dom": ">=17"
|