@clerk/upgrade 1.1.0 → 1.1.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/dist/codemods/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
3
3
|
import { globby } from 'globby';
|
|
4
4
|
import { run } from 'jscodeshift/src/Runner.js';
|
|
5
5
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
|
-
export async function runCodemod(transform, glob, options) {
|
|
6
|
+
export async function runCodemod(transform = 'transform-async-request', glob, options) {
|
|
7
7
|
if (!transform) {
|
|
8
8
|
throw new Error('No transform provided');
|
|
9
9
|
}
|
|
@@ -49,7 +49,8 @@ export function SDKWorkflow(props) {
|
|
|
49
49
|
bold: true
|
|
50
50
|
}, "@clerk/", sdk), ". Would you like to run the associated codemod?."), upgradeComplete ? /*#__PURE__*/React.createElement(Codemod, {
|
|
51
51
|
sdk: sdk,
|
|
52
|
-
callback: setDone
|
|
52
|
+
callback: setDone,
|
|
53
|
+
transform: "transform-async-request"
|
|
53
54
|
}) : /*#__PURE__*/React.createElement(Select, {
|
|
54
55
|
options: [{
|
|
55
56
|
label: 'yes',
|