magic-renamer 18.0.31 → 18.0.32
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/assets/shared/shared_folder_info.txt +1 -1
- package/cli.js +18 -7
- package/package.json +1 -1
- package/tmp-environment.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
THIS FILE IS GENERATED. THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
|
2
2
|
|
|
3
|
-
Assets from this folder are being shipped with this npm package (magic-renamer@18.0.
|
|
3
|
+
Assets from this folder are being shipped with this npm package (magic-renamer@18.0.31)
|
|
4
4
|
created from this project.
|
|
5
5
|
|
|
6
6
|
THIS FILE IS GENERATED.THIS FILE IS GENERATED. THIS FILE IS GENERATED.
|
package/cli.js
CHANGED
|
@@ -442391,7 +442391,7 @@ class HelpersTaon extends tnp_core_5.CoreHelpers {
|
|
|
442391
442391
|
*/
|
|
442392
442392
|
async ncc(pathToJsFile, outputFilePath, options) {
|
|
442393
442393
|
//#region @backendFunc
|
|
442394
|
-
const { beforeWrite, additionalExternals } = options || {};
|
|
442394
|
+
const { beforeWrite, additionalExternals, skipRemovingElectron, skipFixingSQLlite, } = options || {};
|
|
442395
442395
|
//#region quick fixes for output
|
|
442396
442396
|
// existsSync()
|
|
442397
442397
|
//#endregion
|
|
@@ -442422,7 +442422,12 @@ class HelpersTaon extends tnp_core_5.CoreHelpers {
|
|
|
442422
442422
|
//#endregion
|
|
442423
442423
|
});
|
|
442424
442424
|
let output = data.code;
|
|
442425
|
-
|
|
442425
|
+
if (!skipFixingSQLlite) {
|
|
442426
|
+
output = index_1.UtilsQuickFixes.replaceSQLliteFaultyCode(output);
|
|
442427
|
+
}
|
|
442428
|
+
if (!skipRemovingElectron) {
|
|
442429
|
+
output = index_1.UtilsQuickFixes.replaceElectronWithNothing(output);
|
|
442430
|
+
}
|
|
442426
442431
|
if (tnp_core_1._.isFunction(beforeWrite)) {
|
|
442427
442432
|
output = await index_1.Helpers.runSyncOrAsync({
|
|
442428
442433
|
functionFn: beforeWrite,
|
|
@@ -442445,7 +442450,6 @@ class HelpersTaon extends tnp_core_5.CoreHelpers {
|
|
|
442445
442450
|
],
|
|
442446
442451
|
});
|
|
442447
442452
|
}
|
|
442448
|
-
// debugger
|
|
442449
442453
|
index_1.Helpers.writeFile(outputFilePath, output);
|
|
442450
442454
|
index_1.Helpers.taskDone('Bundling finish');
|
|
442451
442455
|
//#endregion
|
|
@@ -445164,7 +445168,7 @@ var UtilsQuickFixes;
|
|
|
445164
445168
|
*
|
|
445165
445169
|
* @param node_modules/sql.js/dist/sql-wasm.js
|
|
445166
445170
|
*/
|
|
445167
|
-
|
|
445171
|
+
UtilsQuickFixes.replaceSQLliteFaultyCode = (contentofSQLWasmJS) => {
|
|
445168
445172
|
//#region @backendFunc
|
|
445169
445173
|
const replace = [
|
|
445170
445174
|
[
|
|
@@ -445180,9 +445184,16 @@ var UtilsQuickFixes;
|
|
|
445180
445184
|
});
|
|
445181
445185
|
return contentofSQLWasmJS;
|
|
445182
445186
|
//#endregion
|
|
445183
|
-
}
|
|
445184
|
-
UtilsQuickFixes.replaceSQLliteFaultyCode = replaceSQLliteFaultyCode;
|
|
445187
|
+
};
|
|
445185
445188
|
//#endregion
|
|
445189
|
+
/**
|
|
445190
|
+
* for some reason electron is being bundled - and it is not needed for cli
|
|
445191
|
+
*/
|
|
445192
|
+
UtilsQuickFixes.replaceElectronWithNothing = (jsContent) => {
|
|
445193
|
+
//#region @backendFunc
|
|
445194
|
+
return jsContent.replace(`mod${'ule.exports'} = ${'requ' + 'ire'}("electron");`, '');
|
|
445195
|
+
//#endregion
|
|
445196
|
+
};
|
|
445186
445197
|
})(UtilsQuickFixes || (exports.UtilsQuickFixes = UtilsQuickFixes = {}));
|
|
445187
445198
|
//#endregion
|
|
445188
445199
|
//# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-helpers/dist/lib/utils.js.map
|
|
@@ -652749,7 +652760,7 @@ module.exports = require("crypto");
|
|
|
652749
652760
|
/***/ ((module) => {
|
|
652750
652761
|
|
|
652751
652762
|
"use strict";
|
|
652752
|
-
|
|
652763
|
+
|
|
652753
652764
|
|
|
652754
652765
|
/***/ }),
|
|
652755
652766
|
|
package/package.json
CHANGED
package/tmp-environment.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"title": "Magic Renamer"
|
|
5
5
|
},
|
|
6
6
|
"buildInfo": {
|
|
7
|
-
"number":
|
|
8
|
-
"date": "2025-04-
|
|
9
|
-
"hash": "
|
|
7
|
+
"number": 304,
|
|
8
|
+
"date": "2025-04-07T15:17:56.000Z",
|
|
9
|
+
"hash": "d924b384fc68eb59475691e6ad6157c54fbe7833"
|
|
10
10
|
},
|
|
11
11
|
"currentProjectName": "magic-renamer",
|
|
12
12
|
"currentProjectType": "isomorphic-lib",
|