auth0 2.38.1 → 2.39.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## [v2.39.0](https://github.com/auth0/node-auth0/tree/v2.39.0) (2022-01-31)
4
+
5
+ [Full Changelog](https://github.com/auth0/node-auth0/compare/v2.38.1...v2.39.0)
6
+
7
+ **Added**
8
+
9
+ - feat: update draft deploy [\#702](https://github.com/auth0/node-auth0/pull/702) ([TwelveNights](https://github.com/TwelveNights))
10
+
3
11
  ## [v2.38.1](https://github.com/auth0/node-auth0/tree/v2.38.1) (2022-01-27)
4
12
 
5
13
  [Full Changelog](https://github.com/auth0/node-auth0/compare/v2.38.0...v2.38.1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0",
3
- "version": "2.38.1",
3
+ "version": "2.39.0",
4
4
  "description": "SDK for Auth0 API v2",
5
5
  "main": "src/index.js",
6
6
  "sideEffects": false,
@@ -531,6 +531,7 @@ class ActionsManager {
531
531
  * @param {object} params Action parameters.
532
532
  * @param {string} params.id Action ID.
533
533
  * @param {string} params.version_id Action ID.
534
+ * @param {boolean} params.update_draft Update draft
534
535
  * @param {Function} [cb] Callback function.
535
536
  * @returns {Promise|undefined}
536
537
  */
@@ -542,11 +543,18 @@ class ActionsManager {
542
543
  delete params.action_id;
543
544
  }
544
545
 
546
+ const body = {};
547
+
548
+ if (params.update_draft) {
549
+ body.update_draft = params.update_draft;
550
+ delete params.update_draft;
551
+ }
552
+
545
553
  if (cb && cb instanceof Function) {
546
- return this.actionVersionDeploy.create(params, {}, cb);
554
+ return this.actionVersionDeploy.create(params, body, cb);
547
555
  }
548
556
 
549
- return this.actionVersionDeploy.create(params, {});
557
+ return this.actionVersionDeploy.create(params, body);
550
558
  }
551
559
 
552
560
  /**