microcms-js-sdk 2.3.2 → 2.3.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.
Files changed (2) hide show
  1. package/README.md +12 -2
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  It helps you to use microCMS from JavaScript and Node.js applications.
4
4
 
5
+ <a href="https://discord.com/invite/K3DPqw4EJ2" target="_blank"><img src="https://img.shields.io/badge/Discord-%235865F2.svg?style=for-the-badge&logo=discord&logoColor=white" alt="Discord"></a>
6
+
5
7
  ## Getting Started
6
8
 
7
9
  ### Install
@@ -18,7 +20,7 @@ $ yarn add microcms-js-sdk
18
20
 
19
21
  CDN support.
20
22
 
21
- ```
23
+ ```html
22
24
  <script src="https://unpkg.com/microcms-js-sdk@latest/dist/umd/microcms-js-sdk.js"></script>
23
25
  ```
24
26
 
@@ -102,7 +104,7 @@ client
102
104
  .catch((err) => console.error(err));
103
105
  ```
104
106
 
105
- #### WRITE API
107
+ #### CREATE API
106
108
 
107
109
  The following is how to use the write system when making a request to the write system API.
108
110
 
@@ -161,7 +163,11 @@ client
161
163
  })
162
164
  .then((res) => console.log(res.id))
163
165
  .catch((err) => console.error(err));
166
+ ```
167
+
168
+ ### UPDATE API
164
169
 
170
+ ```javascript
165
171
  // Update content
166
172
  client
167
173
  .update({
@@ -184,7 +190,11 @@ client
184
190
  })
185
191
  .then((res) => console.log(res.id))
186
192
  .catch((err) => console.error(err));
193
+ ```
187
194
 
195
+ ### DELETE API
196
+
197
+ ```javascript
188
198
  // Delete content
189
199
  client
190
200
  .delete({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microcms-js-sdk",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "JavaScript SDK Client for microCMS.",
5
5
  "main": "./dist/cjs/microcms-js-sdk.js",
6
6
  "module": "./dist/esm/microcms-js-sdk.js",
@@ -30,6 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "cross-fetch": "^3.1.5",
33
+ "encoding": "^0.1.13",
33
34
  "qs": "^6.10.1"
34
35
  },
35
36
  "devDependencies": {