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 +8 -0
- package/package.json +1 -1
- package/src/management/ActionsManager.js +10 -2
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
|
@@ -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,
|
|
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
|
/**
|