tnp-core 21.0.175 → 21.0.176

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.
Files changed (83) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/fesm2022/tnp-core-browser.mjs +69 -1
  3. package/browser/fesm2022/tnp-core-browser.mjs.map +1 -1
  4. package/browser/package.json +1 -1
  5. package/browser/types/tnp-core-browser.d.ts +9 -1
  6. package/browser-prod/fesm2022/tnp-core-browser-prod.mjs +69 -1
  7. package/browser-prod/fesm2022/tnp-core-browser-prod.mjs.map +1 -1
  8. package/browser-prod/package.json +1 -1
  9. package/browser-prod/types/tnp-core-browser-prod.d.ts +9 -1
  10. package/full-dts/build-info._auto-generated_.d.ts +1 -1
  11. package/full-dts/index.d.ts +1 -0
  12. package/full-dts/lowdb/adapters/browser/LocalStorage.d.ts +5 -0
  13. package/full-dts/lowdb/adapters/browser/SessionStorage.d.ts +5 -0
  14. package/full-dts/lowdb/adapters/browser/WebStorage.d.ts +9 -0
  15. package/full-dts/utils-browser.d.ts +8 -0
  16. package/lib/build-info._auto-generated_.d.ts +1 -1
  17. package/lib/build-info._auto-generated_.js +1 -1
  18. package/lib/index.d.ts +1 -0
  19. package/lib/index.js +1 -0
  20. package/lib/index.js.map +1 -1
  21. package/lib/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
  22. package/lib/lowdb/adapters/browser/LocalStorage.js +13 -0
  23. package/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -0
  24. package/lib/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
  25. package/lib/lowdb/adapters/browser/SessionStorage.js +13 -0
  26. package/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -0
  27. package/lib/lowdb/adapters/browser/WebStorage.d.ts +8 -0
  28. package/lib/lowdb/adapters/browser/WebStorage.js +24 -0
  29. package/lib/lowdb/adapters/browser/WebStorage.js.map +1 -0
  30. package/lib/package.json +1 -1
  31. package/lib/utils-browser.d.ts +7 -0
  32. package/lib/utils-browser.js +34 -0
  33. package/lib/utils-browser.js.map +1 -0
  34. package/lib/utils-os.js +50 -23
  35. package/lib/utils-os.js.map +1 -1
  36. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  37. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  38. package/lib-esm/lib/index.d.ts +1 -0
  39. package/lib-esm/lib/index.js +1 -0
  40. package/lib-esm/lib/index.js.map +1 -1
  41. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
  42. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js +9 -0
  43. package/lib-esm/lib/lowdb/adapters/browser/LocalStorage.js.map +1 -0
  44. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
  45. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js +9 -0
  46. package/lib-esm/lib/lowdb/adapters/browser/SessionStorage.js.map +1 -0
  47. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.d.ts +8 -0
  48. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js +20 -0
  49. package/lib-esm/lib/lowdb/adapters/browser/WebStorage.js.map +1 -0
  50. package/lib-esm/lib/utils-browser.d.ts +7 -0
  51. package/lib-esm/lib/utils-browser.js +30 -0
  52. package/lib-esm/lib/utils-browser.js.map +1 -0
  53. package/lib-esm/lib/utils-os.js +50 -23
  54. package/lib-esm/lib/utils-os.js.map +1 -1
  55. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  56. package/lib-prod/build-info._auto-generated_.js +1 -1
  57. package/lib-prod/index.d.ts +1 -0
  58. package/lib-prod/index.js +1 -0
  59. package/lib-prod/index.js.map +1 -1
  60. package/lib-prod/lowdb/adapters/browser/LocalStorage.d.ts +4 -0
  61. package/lib-prod/lowdb/adapters/browser/LocalStorage.js +9 -0
  62. package/lib-prod/lowdb/adapters/browser/LocalStorage.js.map +1 -0
  63. package/lib-prod/lowdb/adapters/browser/SessionStorage.d.ts +4 -0
  64. package/lib-prod/lowdb/adapters/browser/SessionStorage.js +9 -0
  65. package/lib-prod/lowdb/adapters/browser/SessionStorage.js.map +1 -0
  66. package/lib-prod/lowdb/adapters/browser/WebStorage.d.ts +8 -0
  67. package/lib-prod/lowdb/adapters/browser/WebStorage.js +20 -0
  68. package/lib-prod/lowdb/adapters/browser/WebStorage.js.map +1 -0
  69. package/lib-prod/package.json +1 -1
  70. package/lib-prod/utils-browser.d.ts +7 -0
  71. package/lib-prod/utils-browser.js +30 -0
  72. package/lib-prod/utils-browser.js.map +1 -0
  73. package/lib-prod/utils-os.js +50 -23
  74. package/lib-prod/utils-os.js.map +1 -1
  75. package/package.json +1 -1
  76. package/websql/fesm2022/tnp-core-websql.mjs +69 -1
  77. package/websql/fesm2022/tnp-core-websql.mjs.map +1 -1
  78. package/websql/package.json +1 -1
  79. package/websql/types/tnp-core-websql.d.ts +9 -1
  80. package/websql-prod/fesm2022/tnp-core-websql-prod.mjs +69 -1
  81. package/websql-prod/fesm2022/tnp-core-websql-prod.mjs.map +1 -1
  82. package/websql-prod/package.json +1 -1
  83. package/websql-prod/types/tnp-core-websql-prod.d.ts +9 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "commitHash": "6c02f378046a508c3b4a01d8ee83bd77f9a42b1b",
3
- "commitName": "chore: update",
4
- "commitDate": "17-10-2026 01:58:24"
2
+ "commitHash": "7918f4bef32d29a3c8a54a05e5a200fb06f08a41",
3
+ "commitName": "feat: utils browser",
4
+ "commitDate": "18-10-2026 16:56:38"
5
5
  }
@@ -5548,6 +5548,44 @@ ${opt.subtitle ? opt.subtitle + '\n' : ''}${opt.body ?? ''}
5548
5548
  /* */
5549
5549
  /* */
5550
5550
  /* */
5551
+ /* */
5552
+ /* */
5553
+ /* */
5554
+ /* */
5555
+ /* */
5556
+ /* */
5557
+ /* */
5558
+ /* */
5559
+ /* */
5560
+ /* */
5561
+ /* */
5562
+ /* */
5563
+ /* */
5564
+ /* */
5565
+ /* */
5566
+ /* */
5567
+ /* */
5568
+ /* */
5569
+ /* */
5570
+ /* */
5571
+ /* */
5572
+ /* */
5573
+ /* */
5574
+ /* */
5575
+ /* */
5576
+ /* */
5577
+ /* */
5578
+ /* */
5579
+ /* */
5580
+ /* */
5581
+ /* */
5582
+ /* */
5583
+ /* */
5584
+ /* */
5585
+ /* */
5586
+ /* */
5587
+ /* */
5588
+ /* */
5551
5589
  };
5552
5590
  //#endregion
5553
5591
  //#region utils os / safe exit program clean up fn
@@ -14790,6 +14828,36 @@ var UtilsTempFolder;
14790
14828
  //#endregion
14791
14829
  })(UtilsTempFolder || (UtilsTempFolder = {}));
14792
14830
 
14831
+ class UtilsBrowser {
14832
+ //#region user agent
14833
+ static get userAgent() {
14834
+ if (typeof navigator === 'undefined') {
14835
+ return '';
14836
+ }
14837
+ return navigator.userAgent || '';
14838
+ }
14839
+ //#endregion
14840
+ //#region embedded browsers
14841
+ static get isMessengerBrowser() {
14842
+ const ua = this.userAgent;
14843
+ return /Messenger/i.test(ua) || /FB_IAB.*Messenger/i.test(ua);
14844
+ }
14845
+ static get isFacebookBrowser() {
14846
+ const ua = this.userAgent;
14847
+ return /FBAN|FBAV|FB_IAB/i.test(ua);
14848
+ }
14849
+ static get isInstagramBrowser() {
14850
+ return /Instagram/i.test(this.userAgent);
14851
+ }
14852
+ static get isEmbeddedBrowser() {
14853
+ const ua = this.userAgent;
14854
+ return (this.isMessengerBrowser ||
14855
+ this.isFacebookBrowser ||
14856
+ this.isInstagramBrowser ||
14857
+ /\bwv\b/i.test(ua));
14858
+ }
14859
+ }
14860
+
14793
14861
  const jsoncFormattingOptions = {
14794
14862
  insertSpaces: true,
14795
14863
  tabSize: 2,
@@ -15320,5 +15388,5 @@ var index = {};
15320
15388
  * Generated bundle index. Do not edit.
15321
15389
  */
15322
15390
 
15323
- export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, TaonStateMachine, Utils, UtilsBinary, UtilsCli, UtilsCliClassMethod, UtilsDotFile, UtilsEnv, UtilsEtcHosts, UtilsExecProc, UtilsFilesFolders, UtilsFilesFoldersSync, UtilsHttp, UtilsI18n, UtilsJson, UtilsJwt, UtilsMdDocs, UtilsMessages, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsPasswords, UtilsProcess, UtilsProcessLogger, UtilsProgress, UtilsProjects, UtilsSecretEnv, UtilsStdinStdoutLogger, UtilsString, UtilsStringRegex, UtilsSudo, UtilsTempFolder, UtilsTerminal, UtilsTime, UtilsWaitNotifier, UtilsYaml, _, appRelatedFiles, areTrustedForPatchUpdate, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, decodeEnv, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, execAsyncVscode, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, json5, micromatch, mkdirp, ncp, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonCutNextLineCut, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, taonSkipCut, tempFoldersName, tnpPackageName, updateJsoncContent, urlRepoTaon, urlRepoTaonContainers, win32Path };
15391
+ export { $, BaselineSiteJoinprefix, CLI, CoreConfig, CoreModels, DbBinaryFormatEnum, ExecAsyncVscodeError, FilePathMetaData, FilesNames, GlobalLibTypeName, GlobalStorage, GlobalTaskManager, GlobalTaskManagerClass, Helpers, LibTypeArr, LibTypeEnum, PREFIXES, REGEX_REGION, TAGS, TaonStateMachine, Utils, UtilsBinary, UtilsBrowser, UtilsCli, UtilsCliClassMethod, UtilsDotFile, UtilsEnv, UtilsEtcHosts, UtilsExecProc, UtilsFilesFolders, UtilsFilesFoldersSync, UtilsHttp, UtilsI18n, UtilsJson, UtilsJwt, UtilsMdDocs, UtilsMessages, UtilsMigrations, UtilsNetwork, UtilsOs, UtilsPasswords, UtilsProcess, UtilsProcessLogger, UtilsProgress, UtilsProjects, UtilsSecretEnv, UtilsStdinStdoutLogger, UtilsString, UtilsStringRegex, UtilsSudo, UtilsTempFolder, UtilsTerminal, UtilsTime, UtilsWaitNotifier, UtilsYaml, _, appRelatedFiles, areTrustedForPatchUpdate, backendNodejsOnlyFiles, backendWebsqlNodejsFiles, baseTaonDevProjectsNames, chalk, child_process, chokidar, config, crossPlatformPath, dateformat, decodeEnv, dockerTemplates, dotTaonFolder, dotTnpFolder, encoding, execAsyncVscode, extAllowedToExportAndReplaceTSJSCodeFiles, extAllowedToReplace, extForSassLikeFiles, extForStyles, extTemplatesFiles, fg, fileName, filesNotAllowedToClean, folderName, frameworkName, frameworkNameBe, frontEndOnly, frontendFiles, fse, glob, globalSpinner, http, https, isCloudflareWorker, isElevated, json5, micromatch, mkdirp, ncp, notAllowedNames, notAllowedProjectNames, notNeededForExportFiles, os, path, ps, psList, requireDefault, requiredForDev, rimraf, spawn, startAsync, taonActionFromParent, taonBasePathToGlobalDockerTemplatesFn, taonContainers, taonCutNextLineCut, taonPackageName, taonProjects, taonRepoPathUserInUserDirFn, taonSkipCut, tempFoldersName, tnpPackageName, updateJsoncContent, urlRepoTaon, urlRepoTaonContainers, win32Path };
15324
15392
  //# sourceMappingURL=tnp-core-browser.mjs.map