magic-renamer 18.0.30 → 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.
@@ -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.29)
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
@@ -233171,14 +233171,27 @@ function serializer(replacer, cycleReplacer) {
233171
233171
  /***/ }),
233172
233172
 
233173
233173
  /***/ 73994:
233174
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
233174
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
233175
233175
 
233176
233176
  "use strict";
233177
233177
 
233178
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
233179
+ if (k2 === undefined) k2 = k;
233180
+ var desc = Object.getOwnPropertyDescriptor(m, k);
233181
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
233182
+ desc = { enumerable: true, get: function() { return m[k]; } };
233183
+ }
233184
+ Object.defineProperty(o, k2, desc);
233185
+ }) : (function(o, m, k, k2) {
233186
+ if (k2 === undefined) k2 = k;
233187
+ o[k2] = m[k];
233188
+ }));
233189
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
233190
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
233191
+ };
233178
233192
  Object.defineProperty(exports, "__esModule", ({ value: true }));
233179
- const tslib_1 = __nccwpck_require__(51878);
233180
- tslib_1.__exportStar(__nccwpck_require__(60108), exports);
233181
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/json10-writer/dist/index.js.map
233193
+ __exportStar(__nccwpck_require__(60108), exports);
233194
+ //# sourceMappingURL=index.js.map
233182
233195
 
233183
233196
  /***/ }),
233184
233197
 
@@ -233231,7 +233244,7 @@ function toAst(src) {
233231
233244
  // no array or object exist in the JSON5
233232
233245
  return jscodeshift('x={}');
233233
233246
  }
233234
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/json10-writer/dist/lib/index.js.map
233247
+ //# sourceMappingURL=index.js.map
233235
233248
 
233236
233249
  /***/ }),
233237
233250
 
@@ -233267,7 +233280,7 @@ function unquoteKey(prop) {
233267
233280
  prop.key = jscodeshift.identifier(prop.key.value);
233268
233281
  }
233269
233282
  }
233270
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/json10-writer/dist/lib/setKeyQuoteUsage.js.map
233283
+ //# sourceMappingURL=setKeyQuoteUsage.js.map
233271
233284
 
233272
233285
  /***/ }),
233273
233286
 
@@ -233359,7 +233372,7 @@ function isObject(value) {
233359
233372
  function isArray(value) {
233360
233373
  return Array.isArray(value);
233361
233374
  }
233362
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/json10-writer/dist/lib/writeValue.js.map
233375
+ //# sourceMappingURL=writeValue.js.map
233363
233376
 
233364
233377
  /***/ }),
233365
233378
 
@@ -421287,7 +421300,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
421287
421300
  };
421288
421301
  Object.defineProperty(exports, "__esModule", ({ value: true }));
421289
421302
  __exportStar(__nccwpck_require__(74271), exports);
421290
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/index.js.map
421303
+ //# sourceMappingURL=index.js.map
421291
421304
 
421292
421305
  /***/ }),
421293
421306
 
@@ -421410,7 +421423,7 @@ const checkSyncIfCommandExists = (commandName) => {
421410
421423
  }
421411
421424
  };
421412
421425
  exports.checkSyncIfCommandExists = checkSyncIfCommandExists;
421413
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/command-exists.js.map
421426
+ //# sourceMappingURL=command-exists.js.map
421414
421427
 
421415
421428
  /***/ }),
421416
421429
 
@@ -421524,7 +421537,7 @@ class CLI {
421524
421537
  }
421525
421538
  }
421526
421539
  exports.CLI = CLI;
421527
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/core-cli.js.map
421540
+ //# sourceMappingURL=core-cli.js.map
421528
421541
 
421529
421542
  /***/ }),
421530
421543
 
@@ -421540,7 +421553,7 @@ exports.CoreConfig = {
421540
421553
  globalSystemToolMode: 'globalSystemToolMode',
421541
421554
  },
421542
421555
  };
421543
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/core-config.js.map
421556
+ //# sourceMappingURL=core-config.js.map
421544
421557
 
421545
421558
  /***/ }),
421546
421559
 
@@ -421853,7 +421866,7 @@ const crossPlatformPath = (pathStringOrPathParts) => {
421853
421866
  };
421854
421867
  exports.crossPlatformPath = crossPlatformPath;
421855
421868
  //#endregion
421856
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/core-imports.js.map
421869
+ //# sourceMappingURL=core-imports.js.map
421857
421870
 
421858
421871
  /***/ }),
421859
421872
 
@@ -422045,7 +422058,7 @@ var CoreModels;
422045
422058
  CoreModels.MimeTypesObj = CoreModels.mimeTypes;
422046
422059
  //#endregion
422047
422060
  })(CoreModels || (exports.CoreModels = CoreModels = {}));
422048
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/core-models.js.map
422061
+ //# sourceMappingURL=core-models.js.map
422049
422062
 
422050
422063
  /***/ }),
422051
422064
 
@@ -422066,7 +422079,7 @@ exports.frameworkNameBe = global['frameworkName'] ? global['frameworkName'] : ''
422066
422079
  //#endregion
422067
422080
  exports.frameworkNameBe = frameworkNameBeTmp;
422068
422081
  exports.frameworkName = isBrowser ? 'taon' : exports.frameworkNameBe;
422069
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/framework-name.js.map
422082
+ //# sourceMappingURL=framework-name.js.map
422070
422083
 
422071
422084
  /***/ }),
422072
422085
 
@@ -422127,7 +422140,7 @@ class HelpersIsomorphic {
422127
422140
  }
422128
422141
  }
422129
422142
  exports.HelpersIsomorphic = HelpersIsomorphic;
422130
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/helpers-isomorphic.js.map
422143
+ //# sourceMappingURL=helpers-isomorphic.js.map
422131
422144
 
422132
422145
  /***/ }),
422133
422146
 
@@ -422738,7 +422751,7 @@ class HelpersMessages extends helpers_isomorphic_1.HelpersIsomorphic {
422738
422751
  }
422739
422752
  }
422740
422753
  exports.HelpersMessages = HelpersMessages;
422741
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/helpers-messages.js.map
422754
+ //# sourceMappingURL=helpers-messages.js.map
422742
422755
 
422743
422756
  /***/ }),
422744
422757
 
@@ -422754,7 +422767,7 @@ exports.HelpersCore = void 0;
422754
422767
  const core_imports_1 = __nccwpck_require__(8418);
422755
422768
  const json5Write = __nccwpck_require__(73994);
422756
422769
  const buffer_1 = __nccwpck_require__(14300);
422757
- const electron_1 = __nccwpck_require__(72298);
422770
+ // import { ipcMain, screen } from 'electron';
422758
422771
  //#endregion
422759
422772
  /* */
422760
422773
  /* */
@@ -422854,6 +422867,7 @@ class HelpersCore extends helpers_messages_1.HelpersMessages {
422854
422867
  //#endregion
422855
422868
  //#region methods / electron ipc renderer
422856
422869
  /**
422870
+ * @deprecated
422857
422871
  * get electron browser ipc renderer
422858
422872
  */
422859
422873
  get ipcRenderer() {
@@ -422866,6 +422880,7 @@ class HelpersCore extends helpers_messages_1.HelpersMessages {
422866
422880
  /* */
422867
422881
  /* */
422868
422882
  /* */
422883
+ /* */
422869
422884
  }
422870
422885
  //#endregion
422871
422886
  //#region methods / electron webframe
@@ -422873,6 +422888,7 @@ class HelpersCore extends helpers_messages_1.HelpersMessages {
422873
422888
  * get electron web frame
422874
422889
  */
422875
422890
  get webFrame() {
422891
+ //typeof webFrame
422876
422892
  //#region @backend
422877
422893
  return;
422878
422894
  //#endregion
@@ -422881,10 +422897,12 @@ class HelpersCore extends helpers_messages_1.HelpersMessages {
422881
422897
  /* */
422882
422898
  /* */
422883
422899
  /* */
422900
+ /* */
422884
422901
  }
422885
422902
  //#endregion
422886
422903
  //#region methods / electron ipc renderer
422887
422904
  /**
422905
+ * @deprecated
422888
422906
  * get electron backend ipc main proces
422889
422907
  */
422890
422908
  get ipcMain() {
@@ -422892,7 +422910,7 @@ class HelpersCore extends helpers_messages_1.HelpersMessages {
422892
422910
  if (!this.isElectron) {
422893
422911
  return;
422894
422912
  }
422895
- return electron_1.ipcMain;
422913
+ return void 0;
422896
422914
  //#endregion
422897
422915
  }
422898
422916
  //#endregion
@@ -424888,7 +424906,7 @@ command: ${command}
424888
424906
  }
424889
424907
  }
424890
424908
  exports.HelpersCore = HelpersCore;
424891
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/helpers.js.map
424909
+ //# sourceMappingURL=helpers.js.map
424892
424910
 
424893
424911
  /***/ }),
424894
424912
 
@@ -424925,7 +424943,7 @@ __exportStar(__nccwpck_require__(72067), exports);
424925
424943
  var helpers_2 = __nccwpck_require__(12177);
424926
424944
  Object.defineProperty(exports, "CoreHelpers", ({ enumerable: true, get: function () { return helpers_2.HelpersCore; } }));
424927
424945
  exports.Helpers = helpers_1.HelpersCore.InstanceCore;
424928
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/index.js.map
424946
+ //# sourceMappingURL=index.js.map
424929
424947
 
424930
424948
  /***/ }),
424931
424949
 
@@ -424989,7 +425007,7 @@ class PROGRESS_DATA {
424989
425007
  date;
424990
425008
  }
424991
425009
  exports.PROGRESS_DATA = PROGRESS_DATA;
424992
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/progress-data.js.map
425010
+ //# sourceMappingURL=progress-data.js.map
424993
425011
 
424994
425012
  /***/ }),
424995
425013
 
@@ -425079,7 +425097,7 @@ exports.requiredForDev = {
425079
425097
  //#endregion
425080
425098
  ],
425081
425099
  };
425082
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/required-global-npm-packages.js.map
425100
+ //# sourceMappingURL=required-global-npm-packages.js.map
425083
425101
 
425084
425102
  /***/ }),
425085
425103
 
@@ -426348,6 +426366,7 @@ var UtilsOs;
426348
426366
  // @ts-ignore
426349
426367
  if (typeof window !== 'undefined' &&
426350
426368
  typeof window.process === 'object' &&
426369
+ // @ts-ignore
426351
426370
  window.process.type === 'renderer') {
426352
426371
  return true;
426353
426372
  }
@@ -427083,7 +427102,7 @@ var UtilsTerminal;
427083
427102
  //#endregion
427084
427103
  })(UtilsTerminal || (exports.UtilsTerminal = UtilsTerminal = {}));
427085
427104
  //#endregion
427086
- //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-core/dist/lib/utils.js.map
427105
+ //# sourceMappingURL=utils.js.map
427087
427106
 
427088
427107
  /***/ }),
427089
427108
 
@@ -442372,7 +442391,7 @@ class HelpersTaon extends tnp_core_5.CoreHelpers {
442372
442391
  */
442373
442392
  async ncc(pathToJsFile, outputFilePath, options) {
442374
442393
  //#region @backendFunc
442375
- const { beforeWrite, additionalExternals } = options || {};
442394
+ const { beforeWrite, additionalExternals, skipRemovingElectron, skipFixingSQLlite, } = options || {};
442376
442395
  //#region quick fixes for output
442377
442396
  // existsSync()
442378
442397
  //#endregion
@@ -442403,7 +442422,12 @@ class HelpersTaon extends tnp_core_5.CoreHelpers {
442403
442422
  //#endregion
442404
442423
  });
442405
442424
  let output = data.code;
442406
- output = index_1.UtilsQuickFixes.replaceSQLliteFaultyCode(output);
442425
+ if (!skipFixingSQLlite) {
442426
+ output = index_1.UtilsQuickFixes.replaceSQLliteFaultyCode(output);
442427
+ }
442428
+ if (!skipRemovingElectron) {
442429
+ output = index_1.UtilsQuickFixes.replaceElectronWithNothing(output);
442430
+ }
442407
442431
  if (tnp_core_1._.isFunction(beforeWrite)) {
442408
442432
  output = await index_1.Helpers.runSyncOrAsync({
442409
442433
  functionFn: beforeWrite,
@@ -442426,7 +442450,6 @@ class HelpersTaon extends tnp_core_5.CoreHelpers {
442426
442450
  ],
442427
442451
  });
442428
442452
  }
442429
- // debugger
442430
442453
  index_1.Helpers.writeFile(outputFilePath, output);
442431
442454
  index_1.Helpers.taskDone('Bundling finish');
442432
442455
  //#endregion
@@ -445145,7 +445168,7 @@ var UtilsQuickFixes;
445145
445168
  *
445146
445169
  * @param node_modules/sql.js/dist/sql-wasm.js
445147
445170
  */
445148
- function replaceSQLliteFaultyCode(contentofSQLWasmJS) {
445171
+ UtilsQuickFixes.replaceSQLliteFaultyCode = (contentofSQLWasmJS) => {
445149
445172
  //#region @backendFunc
445150
445173
  const replace = [
445151
445174
  [
@@ -445161,9 +445184,16 @@ var UtilsQuickFixes;
445161
445184
  });
445162
445185
  return contentofSQLWasmJS;
445163
445186
  //#endregion
445164
- }
445165
- UtilsQuickFixes.replaceSQLliteFaultyCode = replaceSQLliteFaultyCode;
445187
+ };
445166
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
+ };
445167
445197
  })(UtilsQuickFixes || (exports.UtilsQuickFixes = UtilsQuickFixes = {}));
445168
445198
  //#endregion
445169
445199
  //# sourceMappingURL=/Users/dfilipiak/npm/taon-dev/tnp-helpers/dist/lib/utils.js.map
@@ -652730,7 +652760,7 @@ module.exports = require("crypto");
652730
652760
  /***/ ((module) => {
652731
652761
 
652732
652762
  "use strict";
652733
- module.exports = require("electron");
652763
+
652734
652764
 
652735
652765
  /***/ }),
652736
652766
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-renamer",
3
- "version": "18.0.30",
3
+ "version": "18.0.32",
4
4
  "license": "UNLICENSED",
5
5
  "author": "Dariusz Filipiak",
6
6
  "private": false,
@@ -4,9 +4,9 @@
4
4
  "title": "Magic Renamer"
5
5
  },
6
6
  "buildInfo": {
7
- "number": 302,
8
- "date": "2025-04-07T14:29:51.000Z",
9
- "hash": "44db0398fcb267becad47642c7686c0fbe6f097d"
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",