@wise/wds-codemods 0.0.1-experimental-063df14 → 0.0.1-experimental-3e28ce1
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/index.js +222 -5264
- package/dist/index.js.map +1 -1
- package/dist/{reportManualReview-cd73vDXT.js → reportManualReview-DQ00-OKx.js} +1 -10
- package/dist/{reportManualReview-cd73vDXT.js.map → reportManualReview-DQ00-OKx.js.map} +1 -1
- package/dist/transforms/button.js +1 -1
- package/package.json +1 -3
|
@@ -5,9 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
8
|
var __copyProps = (to, from, except, desc) => {
|
|
12
9
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
10
|
key = keys[i];
|
|
@@ -38,12 +35,6 @@ const reportManualReview = async (filePath, message) => {
|
|
|
38
35
|
};
|
|
39
36
|
|
|
40
37
|
//#endregion
|
|
41
|
-
Object.defineProperty(exports, '__commonJS', {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () {
|
|
44
|
-
return __commonJS;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
38
|
Object.defineProperty(exports, '__toESM', {
|
|
48
39
|
enumerable: true,
|
|
49
40
|
get: function () {
|
|
@@ -56,4 +47,4 @@ Object.defineProperty(exports, 'reportManualReview', {
|
|
|
56
47
|
return reportManualReview;
|
|
57
48
|
}
|
|
58
49
|
});
|
|
59
|
-
//# sourceMappingURL=reportManualReview-
|
|
50
|
+
//# sourceMappingURL=reportManualReview-DQ00-OKx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportManualReview-
|
|
1
|
+
{"version":3,"file":"reportManualReview-DQ00-OKx.js","names":["path","fs"],"sources":["../src/utils/reportManualReview.ts"],"sourcesContent":["import fs from 'node:fs/promises';\n\nimport path from 'path';\n\nconst REPORT_PATH = path.resolve(process.cwd(), 'codemod-report.txt');\n\nconst reportManualReview = async (filePath: string, message: string): Promise<void> => {\n const lineMatch = /at line (\\d+)/u.exec(message);\n const lineNumber = lineMatch?.[1];\n\n const cleanMessage = message.replace(/ at line \\d+/u, '');\n const lineInfo = lineNumber ? `:${lineNumber}` : '';\n\n await fs.appendFile(REPORT_PATH, `[${filePath}${lineInfo}] ${cleanMessage}\\n`, 'utf8');\n};\n\nexport default reportManualReview;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,cAAcA,kBAAK,QAAQ,QAAQ,OAAO;AAEhD,MAAM,qBAAqB,OAAO,UAAkB,YAAmC;CACrF,MAAM,YAAY,iBAAiB,KAAK;CACxC,MAAM,aAAa,YAAY;CAE/B,MAAM,eAAe,QAAQ,QAAQ,iBAAiB;CACtD,MAAM,WAAW,aAAa,IAAI,eAAe;AAEjD,OAAMC,yBAAG,WAAW,aAAa,IAAI,WAAW,SAAS,IAAI,aAAa,KAAK;AAChF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_reportManualReview = require('../reportManualReview-
|
|
2
|
+
const require_reportManualReview = require('../reportManualReview-DQ00-OKx.js');
|
|
3
3
|
|
|
4
4
|
//#region src/transforms/helpers/hasImport.ts
|
|
5
5
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/wds-codemods",
|
|
3
|
-
"version": "0.0.1-experimental-
|
|
3
|
+
"version": "0.0.1-experimental-3e28ce1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "Wise Payments Ltd.",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"@commitlint/config-conventional": "^19.8.1",
|
|
49
49
|
"@inquirer/testing": "^2.1.49",
|
|
50
50
|
"@jest/globals": "^30.0.5",
|
|
51
|
-
"@transferwise/components": "^46.105.4",
|
|
52
51
|
"@types/jest": "^30.0.0",
|
|
53
52
|
"@types/jscodeshift": "^17.3.0",
|
|
54
53
|
"@types/node": "^24.3.0",
|
|
@@ -59,7 +58,6 @@
|
|
|
59
58
|
"eslint": "^9.34.0",
|
|
60
59
|
"husky": "^9.1.7",
|
|
61
60
|
"jest": "^30.0.5",
|
|
62
|
-
"jest-file-snapshot": "^0.7.0",
|
|
63
61
|
"prettier": "^3.6.2",
|
|
64
62
|
"semver": "^7.7.2",
|
|
65
63
|
"ts-jest": "^29.4.1",
|