@putkoff/abstract-utilities 0.1.222 → 0.1.224

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 (90) hide show
  1. package/dist/cjs/index.js +18 -0
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/index.js +18 -1
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/index.cjs +0 -0
  6. package/dist/index.cjs.map +0 -0
  7. package/dist/index.d.ts +2 -1
  8. package/dist/index.js +0 -0
  9. package/dist/index.js.map +0 -0
  10. package/dist/types/functions/auth_utils/imports.d.ts +0 -0
  11. package/dist/types/functions/auth_utils/index.d.ts +0 -0
  12. package/dist/types/functions/auth_utils/src/index.d.ts +0 -0
  13. package/dist/types/functions/auth_utils/src/token_utils.d.ts +0 -0
  14. package/dist/types/functions/config_utils/imports.d.ts +0 -0
  15. package/dist/types/functions/config_utils/index.d.ts +0 -0
  16. package/dist/types/functions/config_utils/src/config_utils.d.ts +0 -0
  17. package/dist/types/functions/config_utils/src/index.d.ts +0 -0
  18. package/dist/types/functions/constants_utils/index.d.ts +0 -0
  19. package/dist/types/functions/constants_utils/src/constants.d.ts +0 -0
  20. package/dist/types/functions/constants_utils/src/index.d.ts +0 -0
  21. package/dist/types/functions/env_utils/imports.d.ts +0 -0
  22. package/dist/types/functions/env_utils/index.d.ts +0 -0
  23. package/dist/types/functions/env_utils/src/index.d.ts +0 -0
  24. package/dist/types/functions/env_utils/src/window_utils.d.ts +0 -0
  25. package/dist/types/functions/fetch_utils/imports.d.ts +0 -0
  26. package/dist/types/functions/fetch_utils/index.d.ts +0 -0
  27. package/dist/types/functions/fetch_utils/src/fetch_utils.d.ts +0 -0
  28. package/dist/types/functions/fetch_utils/src/index.d.ts +0 -0
  29. package/dist/types/functions/fetch_utils/src/utils.d.ts +0 -0
  30. package/dist/types/functions/index.d.ts +0 -0
  31. package/dist/types/functions/path_utils/imports.d.ts +0 -0
  32. package/dist/types/functions/path_utils/index.d.ts +0 -0
  33. package/dist/types/functions/path_utils/src/base_dirs.d.ts +0 -0
  34. package/dist/types/functions/path_utils/src/function_dirs.d.ts +0 -0
  35. package/dist/types/functions/path_utils/src/index.d.ts +0 -0
  36. package/dist/types/functions/path_utils/src/misc_dirs.d.ts +0 -0
  37. package/dist/types/functions/path_utils/src/path_utils.browser.d.ts +0 -0
  38. package/dist/types/functions/path_utils/src/path_utils.d.ts +0 -0
  39. package/dist/types/functions/path_utils/src/path_utils.node.d.ts +0 -0
  40. package/dist/types/functions/path_utils/src/paths.d.ts +0 -0
  41. package/dist/types/functions/path_utils/src/src_dirs.d.ts +0 -0
  42. package/dist/types/functions/read_utils/imports.d.ts +0 -0
  43. package/dist/types/functions/read_utils/index.d.ts +0 -0
  44. package/dist/types/functions/read_utils/src/index.d.ts +0 -0
  45. package/dist/types/functions/read_utils/src/read_utils.browser.d.ts +0 -0
  46. package/dist/types/functions/read_utils/src/utils.browser.d.ts +0 -0
  47. package/dist/types/functions/read_utils/src/utils.d.ts +0 -0
  48. package/dist/types/functions/rndm_utils/imports.d.ts +0 -0
  49. package/dist/types/functions/rndm_utils/index.d.ts +0 -0
  50. package/dist/types/functions/rndm_utils/src/index.d.ts +0 -0
  51. package/dist/types/functions/rndm_utils/src/utils.d.ts +0 -0
  52. package/dist/types/functions/safe_utils/imports.d.ts +0 -0
  53. package/dist/types/functions/safe_utils/index.d.ts +0 -0
  54. package/dist/types/functions/safe_utils/src/index.d.ts +0 -0
  55. package/dist/types/functions/safe_utils/src/safe_document.d.ts +0 -0
  56. package/dist/types/functions/safe_utils/src/safe_globals.d.ts +0 -0
  57. package/dist/types/functions/safe_utils/src/safe_storage.d.ts +0 -0
  58. package/dist/types/functions/safe_utils/src/safe_window.d.ts +0 -0
  59. package/dist/types/functions/string_utils/index.d.ts +0 -0
  60. package/dist/types/functions/string_utils/src/index.d.ts +0 -0
  61. package/dist/types/functions/string_utils/src/string_utils.d.ts +0 -0
  62. package/dist/types/functions/type_utils/imports.d.ts +0 -0
  63. package/dist/types/functions/type_utils/index.d.ts +0 -0
  64. package/dist/types/functions/type_utils/src/index.d.ts +0 -0
  65. package/dist/types/functions/type_utils/src/type_utils.d.ts +1 -0
  66. package/dist/types/functions/ui_utils/imports.d.ts +0 -0
  67. package/dist/types/functions/ui_utils/index.d.ts +0 -0
  68. package/dist/types/functions/ui_utils/src/button.d.ts +0 -0
  69. package/dist/types/functions/ui_utils/src/checkbox.d.ts +0 -0
  70. package/dist/types/functions/ui_utils/src/index.d.ts +0 -0
  71. package/dist/types/functions/ui_utils/src/input.d.ts +0 -0
  72. package/dist/types/functions/ui_utils/src/spinner.d.ts +0 -0
  73. package/dist/types/functions/variable_utils/imports.d.ts +0 -0
  74. package/dist/types/functions/variable_utils/index.d.ts +0 -0
  75. package/dist/types/functions/variable_utils/src/index.d.ts +0 -0
  76. package/dist/types/functions/variable_utils/src/variable_utils.d.ts +0 -0
  77. package/dist/types/index.d.ts +0 -0
  78. package/dist/types/types/index.d.ts +0 -0
  79. package/dist/types/types/src/ChangePassword.d.ts +0 -0
  80. package/dist/types/types/src/Files.d.ts +0 -0
  81. package/dist/types/types/src/index.d.ts +0 -0
  82. package/dist/types/types/src/login.d.ts +0 -0
  83. package/dist/types/types/src/logout.d.ts +0 -0
  84. package/dist/types/types/src/utils.d.ts +0 -0
  85. package/dist/types/utils/imports.d.ts +0 -0
  86. package/dist/types/utils/index.d.ts +0 -0
  87. package/dist/types/utils/src/Input.d.ts +0 -0
  88. package/dist/types/utils/src/config.d.ts +0 -0
  89. package/dist/types/utils/src/index.d.ts +0 -0
  90. package/package.json +1 -1
package/dist/esm/index.js CHANGED
@@ -1143,6 +1143,23 @@ function isNum(obj) {
1143
1143
  }
1144
1144
  return isStrInString(obj, getNums());
1145
1145
  }
1146
+ function ensure_number(object) {
1147
+ if (isNum(object)) {
1148
+ return Number(object);
1149
+ }
1150
+ let nuString = '';
1151
+ const object_str = assureString(object);
1152
+ const str_spl = object_str.split('');
1153
+ for (const obj in str_spl) {
1154
+ if (isNum(obj)) {
1155
+ nuString += obj;
1156
+ }
1157
+ }
1158
+ if (nuString != '') {
1159
+ return Number(nuString);
1160
+ }
1161
+ return 0;
1162
+ }
1146
1163
  function getAlphas() {
1147
1164
  return 'abcdefghijklmnopqrstuvwxyz';
1148
1165
  }
@@ -1605,5 +1622,5 @@ function get_keyword_string(keywords) {
1605
1622
  return allString;
1606
1623
  }
1607
1624
 
1608
- export { API_PREFIX, BASE_URL, Button, Checkbox, DEV_PREFIX, DOMAIN_NAME, Input, PROD_PREFIX, PROTOCOL, SUB_DIR, Spinner, alertit, assureArray, assureString, callStorage, callWindowMethod, capitalize, capitalize_str, checkResponse, cleanArray, cleanText, create_list_string, currentUsername, currentUsernames, decodeJwt, eatAll, eatEnd, eatInner, eatOuter, ensure_list, fetchIndexHtml, fetchIndexHtmlContainer, fetchIt, geAuthsUtilsDirectory, geBackupsUtilsDirectory, geConstantsUtilsDirectory, geEnvUtilsDirectory, geFetchUtilsDirectory, geFileUtilsDirectory, gePathUtilsDirectory, geStaticDirectory, geStringUtilsDirectory, geTypeUtilsDirectory, get, getAbsDir, getAbsPath, getAlphaNum, getAlphas, getAuthorizationHeader, getBaseDir, getBody, getChar, getCleanArray, getComponentsUtilsDirectory, getConfigContent, getConfigJson, getConfigVar, getDbConfigsPath, getDistDir, getDocumentProp, getEnvDir, getEnvPath, getFetchVars, getFunctionsDir, getFunctionsUtilsDirectory, getHeaders, getHooksUtilsDirectory, getHtmlDirectory, getLibUtilsDirectory, getMethod, getNums, getPublicDir, getResult, getSafeDocument, getSafeLocalStorage, getSafeWindow, getSchemasDirPath, getSchemasPath, getSrcDir, getSubstring, getToken, getWindowHost, getWindowProp, get_basename, get_dirname, get_extname, get_filename, get_key_value, get_keyword_string, get_splitext, get_window, get_window_location, get_window_parts, get_window_pathname, isLoggedIn, isNum, isStrInString, isTokenExpired, isType, make_path, make_sanitized_path, normalizeUrl, parseResult, processKeywords, readJsonFile, removeToken, requireToken, safeGlobalProp, safeStorage, sanitizeFilename, stripPrefixes, truncateString, tryParse };
1625
+ export { API_PREFIX, BASE_URL, Button, Checkbox, DEV_PREFIX, DOMAIN_NAME, Input, PROD_PREFIX, PROTOCOL, SUB_DIR, Spinner, alertit, assureArray, assureString, callStorage, callWindowMethod, capitalize, capitalize_str, checkResponse, cleanArray, cleanText, create_list_string, currentUsername, currentUsernames, decodeJwt, eatAll, eatEnd, eatInner, eatOuter, ensure_list, ensure_number, fetchIndexHtml, fetchIndexHtmlContainer, fetchIt, geAuthsUtilsDirectory, geBackupsUtilsDirectory, geConstantsUtilsDirectory, geEnvUtilsDirectory, geFetchUtilsDirectory, geFileUtilsDirectory, gePathUtilsDirectory, geStaticDirectory, geStringUtilsDirectory, geTypeUtilsDirectory, get, getAbsDir, getAbsPath, getAlphaNum, getAlphas, getAuthorizationHeader, getBaseDir, getBody, getChar, getCleanArray, getComponentsUtilsDirectory, getConfigContent, getConfigJson, getConfigVar, getDbConfigsPath, getDistDir, getDocumentProp, getEnvDir, getEnvPath, getFetchVars, getFunctionsDir, getFunctionsUtilsDirectory, getHeaders, getHooksUtilsDirectory, getHtmlDirectory, getLibUtilsDirectory, getMethod, getNums, getPublicDir, getResult, getSafeDocument, getSafeLocalStorage, getSafeWindow, getSchemasDirPath, getSchemasPath, getSrcDir, getSubstring, getToken, getWindowHost, getWindowProp, get_basename, get_dirname, get_extname, get_filename, get_key_value, get_keyword_string, get_splitext, get_window, get_window_location, get_window_parts, get_window_pathname, isLoggedIn, isNum, isStrInString, isTokenExpired, isType, make_path, make_sanitized_path, normalizeUrl, parseResult, processKeywords, readJsonFile, removeToken, requireToken, safeGlobalProp, safeStorage, sanitizeFilename, stripPrefixes, truncateString, tryParse };
1609
1626
  //# sourceMappingURL=index.js.map