@putkoff/abstract-utilities 1.0.113 → 1.0.125
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/cjs/client.js +1 -51
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/functions.js +4 -14
- package/dist/cjs/functions.js.map +1 -1
- package/dist/cjs/index.js +4 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{print_utils-DzyRoj6m.js → print_utils-DhPs0s0W.js} +6 -16
- package/dist/cjs/print_utils-DhPs0s0W.js.map +1 -0
- package/dist/cjs/safe_storage-B6MYZDKg.js +941 -0
- package/dist/cjs/safe_storage-B6MYZDKg.js.map +1 -0
- package/dist/esm/client.js +2 -48
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/functions.js +2 -12
- package/dist/esm/functions.js.map +1 -1
- package/dist/esm/index.js +2 -12
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{print_utils-qqcMhSul.js → print_utils-gTxtZBM7.js} +2 -12
- package/dist/esm/print_utils-gTxtZBM7.js.map +1 -0
- package/dist/esm/safe_storage-D4QfcTw0.js +897 -0
- package/dist/esm/safe_storage-D4QfcTw0.js.map +1 -0
- package/dist/types/client/auth/index.d.ts +1 -1
- package/dist/types/client/auth/src/index.d.ts +1 -1
- package/dist/types/client/fetch/src/fetch_auth.d.ts +1 -1
- package/dist/types/client/fetch/src/index.d.ts +1 -1
- package/dist/types/client/index.d.ts +1 -2
- package/dist/types/client/ui_utils/index.d.ts +1 -1
- package/dist/types/client/ui_utils/src/index.d.ts +4 -4
- package/dist/types/functions/auth_utils/imports.d.ts +2 -2
- package/dist/types/functions/auth_utils/index.d.ts +1 -1
- package/dist/types/functions/auth_utils/src/index.d.ts +1 -1
- package/dist/types/functions/auth_utils/src/jwt_core.d.ts +1 -1
- package/dist/types/functions/auth_utils/src/token_utils (Copy).d.ts +1 -1
- package/dist/types/functions/auth_utils/src/token_utils.d.ts +1 -1
- package/dist/types/functions/config_utils/imports.d.ts +3 -3
- package/dist/types/functions/config_utils/index.d.ts +1 -1
- package/dist/types/functions/config_utils/src/config_utils.d.ts +1 -1
- package/dist/types/functions/config_utils/src/index.d.ts +1 -1
- package/dist/types/functions/constants_utils/index.d.ts +1 -1
- package/dist/types/functions/constants_utils/src/index.d.ts +1 -1
- package/dist/types/functions/env_utils/imports.d.ts +1 -1
- package/dist/types/functions/env_utils/index.d.ts +1 -1
- package/dist/types/functions/env_utils/src/index.d.ts +1 -1
- package/dist/types/functions/fetch_utils/imports.d.ts +2 -2
- package/dist/types/functions/fetch_utils/index.d.ts +1 -1
- package/dist/types/functions/fetch_utils/src/index.d.ts +3 -3
- package/dist/types/functions/fetch_utils/src/utils.d.ts +1 -1
- package/dist/types/functions/inspect_utils/index.d.ts +2 -2
- package/dist/types/functions/inspect_utils/src/index.d.ts +1 -1
- package/dist/types/functions/math_utils/conversions.d.ts +1 -1
- package/dist/types/functions/math_utils/index.d.ts +6 -6
- package/dist/types/functions/path_utils/imports.d.ts +2 -2
- package/dist/types/functions/path_utils/index.d.ts +1 -1
- package/dist/types/functions/path_utils/src/index.d.ts +6 -6
- package/dist/types/functions/print_utils/imports.d.ts +1 -1
- package/dist/types/functions/print_utils/index.d.ts +1 -1
- package/dist/types/functions/print_utils/src/index.d.ts +1 -1
- package/dist/types/functions/read_utils/imports.d.ts +1 -1
- package/dist/types/functions/read_utils/index.d.ts +1 -1
- package/dist/types/functions/read_utils/src/index.d.ts +3 -3
- package/dist/types/functions/rndm_utils/imports.d.ts +0 -1
- package/dist/types/functions/rndm_utils/index.d.ts +1 -1
- package/dist/types/functions/rndm_utils/src/index.d.ts +1 -1
- package/dist/types/functions/safe_utils/imports.d.ts +1 -1
- package/dist/types/functions/safe_utils/index.d.ts +1 -1
- package/dist/types/functions/safe_utils/src/index.d.ts +4 -4
- package/dist/types/functions/size_utils/index.d.ts +1 -1
- package/dist/types/functions/size_utils/src/index.d.ts +1 -1
- package/dist/types/functions/string_utils/index.d.ts +1 -1
- package/dist/types/functions/string_utils/src/index.d.ts +2 -2
- package/dist/types/functions/type_utils/imports.d.ts +0 -1
- package/dist/types/functions/type_utils/index.d.ts +1 -1
- package/dist/types/functions/type_utils/src/imports.d.ts +0 -1
- package/dist/types/functions/type_utils/src/index.d.ts +6 -6
- package/dist/types/functions/variable_utils/imports.d.ts +1 -1
- package/dist/types/functions/variable_utils/index.d.ts +1 -1
- package/dist/types/functions/variable_utils/src/index.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/server/index.d.ts +1 -1
- package/dist/types/server/src/index.d.ts +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/path-browserify.d.ts +2 -3
- package/dist/types/types/src/index.d.ts +4 -4
- package/dist/types/utils/imports.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/src/index.d.ts +2 -2
- package/package.json +2 -2
- package/dist/cjs/print_utils-DzyRoj6m.js.map +0 -1
- package/dist/cjs/safe_storage-CJgWghnh.js +0 -15986
- package/dist/cjs/safe_storage-CJgWghnh.js.map +0 -1
- package/dist/esm/print_utils-qqcMhSul.js.map +0 -1
- package/dist/esm/safe_storage-CMuv35Vo.js +0 -15941
- package/dist/esm/safe_storage-CMuv35Vo.js.map +0 -1
- package/dist/types/client/auth/index.js +0 -3
- package/dist/types/client/auth/src/index.js +0 -3
- package/dist/types/client/auth/src/token_client.js +0 -73
- package/dist/types/client/fetch/src/fetch_auth.js +0 -26
- package/dist/types/client/fetch/src/index.js +0 -2
- package/dist/types/client/index.js +0 -4
- package/dist/types/client/ui_utils/index.js +0 -2
- package/dist/types/client/ui_utils/src/button.js +0 -34
- package/dist/types/client/ui_utils/src/checkbox.js +0 -18
- package/dist/types/client/ui_utils/src/index.js +0 -4
- package/dist/types/client/ui_utils/src/input.js +0 -18
- package/dist/types/client/ui_utils/src/spinner.js +0 -5
- package/dist/types/functions/auth_utils/imports.js +0 -1
- package/dist/types/functions/auth_utils/index.js +0 -1
- package/dist/types/functions/auth_utils/src/index.js +0 -1
- package/dist/types/functions/auth_utils/src/jwt_core.js +0 -25
- package/dist/types/functions/auth_utils/src/token_utils (Copy).js +0 -25
- package/dist/types/functions/auth_utils/src/token_utils.js +0 -105
- package/dist/types/functions/config_utils/imports.js +0 -2
- package/dist/types/functions/config_utils/index.js +0 -1
- package/dist/types/functions/config_utils/src/config_utils.js +0 -83
- package/dist/types/functions/config_utils/src/index.js +0 -1
- package/dist/types/functions/constants_utils/index.js +0 -1
- package/dist/types/functions/constants_utils/src/constants.js +0 -7
- package/dist/types/functions/constants_utils/src/index.js +0 -1
- package/dist/types/functions/env_utils/imports.js +0 -1
- package/dist/types/functions/env_utils/index.js +0 -1
- package/dist/types/functions/env_utils/src/index.js +0 -1
- package/dist/types/functions/env_utils/src/window_utils.js +0 -47
- package/dist/types/functions/fetch_utils/imports.js +0 -1
- package/dist/types/functions/fetch_utils/index.js +0 -1
- package/dist/types/functions/fetch_utils/src/fetch_utils.js +0 -70
- package/dist/types/functions/fetch_utils/src/index.js +0 -3
- package/dist/types/functions/fetch_utils/src/url_utils.js +0 -86
- package/dist/types/functions/fetch_utils/src/utils.js +0 -102
- package/dist/types/functions/index.js +0 -17
- package/dist/types/functions/inspect_utils/imports.js +0 -1
- package/dist/types/functions/inspect_utils/index.js +0 -2
- package/dist/types/functions/inspect_utils/src/caller_utils.js +0 -28
- package/dist/types/functions/inspect_utils/src/index.js +0 -1
- package/dist/types/functions/math_utils/bigint_utils.js +0 -36
- package/dist/types/functions/math_utils/constants.js +0 -37
- package/dist/types/functions/math_utils/conversions.js +0 -129
- package/dist/types/functions/math_utils/index.js +0 -6
- package/dist/types/functions/math_utils/safe_math.js +0 -35
- package/dist/types/functions/math_utils/scaleInterfaces.js +0 -3
- package/dist/types/functions/math_utils/time_utils.js +0 -4
- package/dist/types/functions/path_utils/imports.js +0 -27
- package/dist/types/functions/path_utils/index.js +0 -1
- package/dist/types/functions/path_utils/src/base_dirs.js +0 -17
- package/dist/types/functions/path_utils/src/function_dirs.js +0 -42
- package/dist/types/functions/path_utils/src/index.js +0 -6
- package/dist/types/functions/path_utils/src/misc_dirs.js +0 -15
- package/dist/types/functions/path_utils/src/path_utils.js +0 -160
- package/dist/types/functions/path_utils/src/paths.js +0 -12
- package/dist/types/functions/path_utils/src/src_dirs.js +0 -25
- package/dist/types/functions/print_utils/imports.js +0 -1
- package/dist/types/functions/print_utils/index.js +0 -1
- package/dist/types/functions/print_utils/src/index.js +0 -1
- package/dist/types/functions/print_utils/src/print_utils.js +0 -14
- package/dist/types/functions/read_utils/imports.js +0 -1
- package/dist/types/functions/read_utils/index.js +0 -1
- package/dist/types/functions/read_utils/src/index.js +0 -3
- package/dist/types/functions/read_utils/src/readJsonFile.browser.js +0 -26
- package/dist/types/functions/read_utils/src/readJsonFile.js +0 -35
- package/dist/types/functions/read_utils/src/readJsonFile.node.js +0 -13
- package/dist/types/functions/rndm_utils/imports.js +0 -1
- package/dist/types/functions/rndm_utils/index.js +0 -1
- package/dist/types/functions/rndm_utils/src/index.js +0 -1
- package/dist/types/functions/rndm_utils/src/utils.js +0 -12
- package/dist/types/functions/safe_utils/imports.js +0 -1
- package/dist/types/functions/safe_utils/index.js +0 -1
- package/dist/types/functions/safe_utils/src/index.js +0 -4
- package/dist/types/functions/safe_utils/src/safe_document.js +0 -12
- package/dist/types/functions/safe_utils/src/safe_globals.js +0 -14
- package/dist/types/functions/safe_utils/src/safe_storage.js +0 -50
- package/dist/types/functions/safe_utils/src/safe_window.js +0 -42
- package/dist/types/functions/size_utils/index.js +0 -1
- package/dist/types/functions/size_utils/src/index.js +0 -1
- package/dist/types/functions/size_utils/src/sizeUtils.js +0 -44
- package/dist/types/functions/string_utils/index.js +0 -1
- package/dist/types/functions/string_utils/src/index.js +0 -2
- package/dist/types/functions/string_utils/src/quote_utils.js +0 -17
- package/dist/types/functions/string_utils/src/string_utils.js +0 -186
- package/dist/types/functions/type_utils/imports.js +0 -1
- package/dist/types/functions/type_utils/index.js +0 -1
- package/dist/types/functions/type_utils/src/clean_utils.js +0 -38
- package/dist/types/functions/type_utils/src/ensure_utils.js +0 -84
- package/dist/types/functions/type_utils/src/imports.js +0 -1
- package/dist/types/functions/type_utils/src/index.js +0 -6
- package/dist/types/functions/type_utils/src/json_utils.js +0 -93
- package/dist/types/functions/type_utils/src/list_utils.js +0 -83
- package/dist/types/functions/type_utils/src/mime_utils.js +0 -314
- package/dist/types/functions/type_utils/src/null_utils.js +0 -21
- package/dist/types/functions/type_utils/src/type_utils.js +0 -39
- package/dist/types/functions/variable_utils/imports.js +0 -1
- package/dist/types/functions/variable_utils/index.js +0 -1
- package/dist/types/functions/variable_utils/src/index.js +0 -1
- package/dist/types/functions/variable_utils/src/variable_utils.js +0 -34
- package/dist/types/index.js +0 -2
- package/dist/types/server/index.js +0 -2
- package/dist/types/server/src/index.js +0 -2
- package/dist/types/server/src/mime_utils.js +0 -314
- package/dist/types/types/index.js +0 -1
- package/dist/types/types/path-browserify.js +0 -1
- package/dist/types/types/src/Files.js +0 -1
- package/dist/types/types/src/index.js +0 -4
- package/dist/types/types/src/login.js +0 -1
- package/dist/types/types/src/logout.js +0 -1
- package/dist/types/types/src/utils.js +0 -1
- package/dist/types/utils/imports.js +0 -1
- package/dist/types/utils/index.js +0 -1
- package/dist/types/utils/src/Input.js +0 -2
- package/dist/types/utils/src/config.js +0 -27
- package/dist/types/utils/src/index.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe_storage-B6MYZDKg.js","sources":["../../src/functions/auth_utils/src/jwt_core.ts","../../node_modules/path-browserify/index.js","../../src/functions/type_utils/src/mime_utils.ts","../../src/functions/safe_utils/src/safe_globals.ts","../../src/functions/safe_utils/src/safe_storage.ts"],"sourcesContent":["/**\n * Helpers for dealing with the JWT stored in localStorage.\n */\nimport type { JwtPayload } from './../imports'\n\n\n\n/** True if token is structurally bad or its exp ≤ now. */\nexport function isTokenExpired(token: string): boolean {\n try {\n const payload = decodeJwt(token);\n return Date.now() / 1000 >= payload.exp;\n } catch {\n return true; // treat malformed token as expired\n }\n}\n\n/* ------------------------------------------------------------------ */\n/* internals */\n/* ------------------------------------------------------------------ */\n\nexport function decodeJwt(token: string): JwtPayload {\n const [header, payload, signature] = token.split(\".\");\n if (!header || !payload || !signature) {\n throw new Error(\"Malformed JWT\");\n }\n\n // Handle URL-safe Base64\n let b64 = payload.replace(/-/g, \"+\").replace(/_/g, \"/\");\n // Add padding if necessary\n b64 = b64.padEnd(Math.ceil(b64.length / 4) * 4, \"=\");\n\n const jsonText = atob(b64);\n return JSON.parse(jsonText) as JwtPayload;\n}","// 'path' module extracted from Node.js v8.11.1 (only the posix part)\n// transplited with Babel\n\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nfunction assertPath(path) {\n if (typeof path !== 'string') {\n throw new TypeError('Path must be a string. Received ' + JSON.stringify(path));\n }\n}\n\n// Resolves . and .. elements in a path with directory names\nfunction normalizeStringPosix(path, allowAboveRoot) {\n var res = '';\n var lastSegmentLength = 0;\n var lastSlash = -1;\n var dots = 0;\n var code;\n for (var i = 0; i <= path.length; ++i) {\n if (i < path.length)\n code = path.charCodeAt(i);\n else if (code === 47 /*/*/)\n break;\n else\n code = 47 /*/*/;\n if (code === 47 /*/*/) {\n if (lastSlash === i - 1 || dots === 1) {\n // NOOP\n } else if (lastSlash !== i - 1 && dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 /*.*/ || res.charCodeAt(res.length - 2) !== 46 /*.*/) {\n if (res.length > 2) {\n var lastSlashIndex = res.lastIndexOf('/');\n if (lastSlashIndex !== res.length - 1) {\n if (lastSlashIndex === -1) {\n res = '';\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf('/');\n }\n lastSlash = i;\n dots = 0;\n continue;\n }\n } else if (res.length === 2 || res.length === 1) {\n res = '';\n lastSegmentLength = 0;\n lastSlash = i;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n if (res.length > 0)\n res += '/..';\n else\n res = '..';\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0)\n res += '/' + path.slice(lastSlash + 1, i);\n else\n res = path.slice(lastSlash + 1, i);\n lastSegmentLength = i - lastSlash - 1;\n }\n lastSlash = i;\n dots = 0;\n } else if (code === 46 /*.*/ && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\n\nfunction _format(sep, pathObject) {\n var dir = pathObject.dir || pathObject.root;\n var base = pathObject.base || (pathObject.name || '') + (pathObject.ext || '');\n if (!dir) {\n return base;\n }\n if (dir === pathObject.root) {\n return dir + base;\n }\n return dir + sep + base;\n}\n\nvar posix = {\n // path.resolve([from ...], to)\n resolve: function resolve() {\n var resolvedPath = '';\n var resolvedAbsolute = false;\n var cwd;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path;\n if (i >= 0)\n path = arguments[i];\n else {\n if (cwd === undefined)\n cwd = process.cwd();\n path = cwd;\n }\n\n assertPath(path);\n\n // Skip empty entries\n if (path.length === 0) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charCodeAt(0) === 47 /*/*/;\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);\n\n if (resolvedAbsolute) {\n if (resolvedPath.length > 0)\n return '/' + resolvedPath;\n else\n return '/';\n } else if (resolvedPath.length > 0) {\n return resolvedPath;\n } else {\n return '.';\n }\n },\n\n normalize: function normalize(path) {\n assertPath(path);\n\n if (path.length === 0) return '.';\n\n var isAbsolute = path.charCodeAt(0) === 47 /*/*/;\n var trailingSeparator = path.charCodeAt(path.length - 1) === 47 /*/*/;\n\n // Normalize the path\n path = normalizeStringPosix(path, !isAbsolute);\n\n if (path.length === 0 && !isAbsolute) path = '.';\n if (path.length > 0 && trailingSeparator) path += '/';\n\n if (isAbsolute) return '/' + path;\n return path;\n },\n\n isAbsolute: function isAbsolute(path) {\n assertPath(path);\n return path.length > 0 && path.charCodeAt(0) === 47 /*/*/;\n },\n\n join: function join() {\n if (arguments.length === 0)\n return '.';\n var joined;\n for (var i = 0; i < arguments.length; ++i) {\n var arg = arguments[i];\n assertPath(arg);\n if (arg.length > 0) {\n if (joined === undefined)\n joined = arg;\n else\n joined += '/' + arg;\n }\n }\n if (joined === undefined)\n return '.';\n return posix.normalize(joined);\n },\n\n relative: function relative(from, to) {\n assertPath(from);\n assertPath(to);\n\n if (from === to) return '';\n\n from = posix.resolve(from);\n to = posix.resolve(to);\n\n if (from === to) return '';\n\n // Trim any leading backslashes\n var fromStart = 1;\n for (; fromStart < from.length; ++fromStart) {\n if (from.charCodeAt(fromStart) !== 47 /*/*/)\n break;\n }\n var fromEnd = from.length;\n var fromLen = fromEnd - fromStart;\n\n // Trim any leading backslashes\n var toStart = 1;\n for (; toStart < to.length; ++toStart) {\n if (to.charCodeAt(toStart) !== 47 /*/*/)\n break;\n }\n var toEnd = to.length;\n var toLen = toEnd - toStart;\n\n // Compare paths to find the longest common path from root\n var length = fromLen < toLen ? fromLen : toLen;\n var lastCommonSep = -1;\n var i = 0;\n for (; i <= length; ++i) {\n if (i === length) {\n if (toLen > length) {\n if (to.charCodeAt(toStart + i) === 47 /*/*/) {\n // We get here if `from` is the exact base path for `to`.\n // For example: from='/foo/bar'; to='/foo/bar/baz'\n return to.slice(toStart + i + 1);\n } else if (i === 0) {\n // We get here if `from` is the root\n // For example: from='/'; to='/foo'\n return to.slice(toStart + i);\n }\n } else if (fromLen > length) {\n if (from.charCodeAt(fromStart + i) === 47 /*/*/) {\n // We get here if `to` is the exact base path for `from`.\n // For example: from='/foo/bar/baz'; to='/foo/bar'\n lastCommonSep = i;\n } else if (i === 0) {\n // We get here if `to` is the root.\n // For example: from='/foo'; to='/'\n lastCommonSep = 0;\n }\n }\n break;\n }\n var fromCode = from.charCodeAt(fromStart + i);\n var toCode = to.charCodeAt(toStart + i);\n if (fromCode !== toCode)\n break;\n else if (fromCode === 47 /*/*/)\n lastCommonSep = i;\n }\n\n var out = '';\n // Generate the relative path based on the path difference between `to`\n // and `from`\n for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n if (i === fromEnd || from.charCodeAt(i) === 47 /*/*/) {\n if (out.length === 0)\n out += '..';\n else\n out += '/..';\n }\n }\n\n // Lastly, append the rest of the destination (`to`) path that comes after\n // the common path parts\n if (out.length > 0)\n return out + to.slice(toStart + lastCommonSep);\n else {\n toStart += lastCommonSep;\n if (to.charCodeAt(toStart) === 47 /*/*/)\n ++toStart;\n return to.slice(toStart);\n }\n },\n\n _makeLong: function _makeLong(path) {\n return path;\n },\n\n dirname: function dirname(path) {\n assertPath(path);\n if (path.length === 0) return '.';\n var code = path.charCodeAt(0);\n var hasRoot = code === 47 /*/*/;\n var end = -1;\n var matchedSlash = true;\n for (var i = path.length - 1; i >= 1; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n } else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n\n if (end === -1) return hasRoot ? '/' : '.';\n if (hasRoot && end === 1) return '//';\n return path.slice(0, end);\n },\n\n basename: function basename(path, ext) {\n if (ext !== undefined && typeof ext !== 'string') throw new TypeError('\"ext\" argument must be a string');\n assertPath(path);\n\n var start = 0;\n var end = -1;\n var matchedSlash = true;\n var i;\n\n if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n if (ext.length === path.length && ext === path) return '';\n var extIdx = ext.length - 1;\n var firstNonSlashEnd = -1;\n for (i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else {\n if (firstNonSlashEnd === -1) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching\n matchedSlash = false;\n firstNonSlashEnd = i + 1;\n }\n if (extIdx >= 0) {\n // Try to match the explicit extension\n if (code === ext.charCodeAt(extIdx)) {\n if (--extIdx === -1) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = i;\n }\n } else {\n // Extension does not match, so our result is the entire path\n // component\n extIdx = -1;\n end = firstNonSlashEnd;\n }\n }\n }\n }\n\n if (start === end) end = firstNonSlashEnd;else if (end === -1) end = path.length;\n return path.slice(start, end);\n } else {\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n } else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n\n if (end === -1) return '';\n return path.slice(start, end);\n }\n },\n\n extname: function extname(path) {\n assertPath(path);\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n for (var i = path.length - 1; i >= 0; --i) {\n var code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1)\n startDot = i;\n else if (preDotState !== 1)\n preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n return '';\n }\n return path.slice(startDot, end);\n },\n\n format: function format(pathObject) {\n if (pathObject === null || typeof pathObject !== 'object') {\n throw new TypeError('The \"pathObject\" argument must be of type Object. Received type ' + typeof pathObject);\n }\n return _format('/', pathObject);\n },\n\n parse: function parse(path) {\n assertPath(path);\n\n var ret = { root: '', dir: '', base: '', ext: '', name: '' };\n if (path.length === 0) return ret;\n var code = path.charCodeAt(0);\n var isAbsolute = code === 47 /*/*/;\n var start;\n if (isAbsolute) {\n ret.root = '/';\n start = 1;\n } else {\n start = 0;\n }\n var startDot = -1;\n var startPart = 0;\n var end = -1;\n var matchedSlash = true;\n var i = path.length - 1;\n\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n var preDotState = 0;\n\n // Get non-dir info\n for (; i >= start; --i) {\n code = path.charCodeAt(i);\n if (code === 47 /*/*/) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === 46 /*.*/) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1) startDot = i;else if (preDotState !== 1) preDotState = 1;\n } else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n\n if (startDot === -1 || end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {\n if (end !== -1) {\n if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);else ret.base = ret.name = path.slice(startPart, end);\n }\n } else {\n if (startPart === 0 && isAbsolute) {\n ret.name = path.slice(1, startDot);\n ret.base = path.slice(1, end);\n } else {\n ret.name = path.slice(startPart, startDot);\n ret.base = path.slice(startPart, end);\n }\n ret.ext = path.slice(startDot, end);\n }\n\n if (startPart > 0) ret.dir = path.slice(0, startPart - 1);else if (isAbsolute) ret.dir = '/';\n\n return ret;\n },\n\n sep: '/',\n delimiter: ':',\n win32: null,\n posix: null\n};\n\nposix.posix = posix;\n\nmodule.exports = posix;\n","// mediaTypes.ts\nimport * as fs from \"node:fs\";\nimport * as fsp from \"node:fs/promises\";\nimport * as path from \"node:path\";\n\n/** ---- Types ---- */\nexport type MimeByExt = Record<string, string>;\nexport type MediaMap = Record<string, MimeByExt>;\nexport type MediaCategory = keyof typeof MIME_TYPES;\n\nexport interface MediaOptions {\n /** Alias to mirror the Python **kwargs['media_types'] behavior */\n media_types?: Iterable<string> | string[] | null;\n}\n\n/** ---- Data: large but explicit, mirrors your Python mapping ---- */\nexport const MIME_TYPES = {\n image: {\n \".jpg\": \"image/jpeg\",\n \".jpeg\": \"image/jpeg\",\n \".png\": \"image/png\",\n \".gif\": \"image/gif\",\n \".bmp\": \"image/bmp\",\n \".tiff\": \"image/tiff\",\n \".webp\": \"image/webp\",\n \".svg\": \"image/svg+xml\",\n \".ico\": \"image/vnd.microsoft.icon\",\n \".heic\": \"image/heic\",\n \".psd\": \"image/vnd.adobe.photoshop\",\n \".raw\": \"image/x-raw\",\n },\n video: {\n \".mp4\": \"video/mp4\",\n \".webm\": \"video/webm\",\n \".ogg\": \"video/ogg\",\n \".mov\": \"video/quicktime\",\n \".avi\": \"video/x-msvideo\",\n \".mkv\": \"video/x-matroska\",\n \".flv\": \"video/x-flv\",\n \".wmv\": \"video/x-ms-wmv\",\n \".3gp\": \"video/3gpp\",\n \".ts\": \"video/mp2t\",\n \".mpeg\": \"video/mpeg\",\n \".mpg\": \"video/mpg\",\n },\n audio: {\n \".mp3\": \"audio/mpeg\",\n \".wav\": \"audio/wav\",\n \".flac\": \"audio/flac\",\n \".aac\": \"audio/aac\",\n \".ogg\": \"audio/ogg\",\n \".m4a\": \"audio/mp4\",\n \".opus\": \"audio/opus\",\n },\n document: {\n \".pdf\": \"application/pdf\",\n \".doc\": \"application/msword\",\n \".docx\":\n \"application/vnd.openxmlformats-officedocument.wordprocessingml.document\",\n \".odt\": \"application/vnd.oasis.opendocument.text\",\n \".txt\": \"text/plain\",\n \".rtf\": \"application/rtf\",\n \".md\": \"text/markdown\",\n \".markdown\": \"text/markdown\",\n \".tex\": \"application/x-tex\",\n \".log\": \"text/plain\",\n \".json\": \"application/json\",\n \".xml\": \"application/xml\",\n \".yaml\": \"application/x-yaml\",\n \".yml\": \"application/x-yaml\",\n \".ini\": \"text/plain\",\n \".cfg\": \"text/plain\",\n \".toml\": \"application/toml\",\n \".csv\": \"text/csv\",\n \".tsv\": \"text/tab-separated-values\",\n },\n presentation: {\n \".ppt\": \"application/vnd.ms-powerpoint\",\n \".pptx\":\n \"application/vnd.openxmlformats-officedocument.presentationml.presentation\",\n \".odp\": \"application/vnd.oasis.opendocument.presentation\",\n },\n spreadsheet: {\n \".xls\": \"application/vnd.ms-excel\",\n \".xlsx\":\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\",\n \".ods\": \"application/vnd.oasis.opendocument.spreadsheet\",\n \".csv\": \"text/csv\",\n \".tsv\": \"text/tab-separated-values\",\n },\n code: {\n \".py\": \"text/x-python\",\n \".java\": \"text/x-java-source\",\n \".c\": \"text/x-c\",\n \".cpp\": \"text/x-c++\",\n \".h\": \"text/x-c\",\n \".hpp\": \"text/x-c++\",\n \".js\": \"application/javascript\",\n \".cjs\": \"application/javascript\",\n \".mjs\": \"application/javascript\",\n \".jsx\": \"application/javascript\",\n \".ts\": \"application/typescript\",\n \".tsx\": \"application/typescript\",\n \".rb\": \"text/x-ruby\",\n \".php\": \"application/x-php\",\n \".go\": \"text/x-go\",\n \".rs\": \"text/rust\",\n \".swift\": \"text/x-swift\",\n \".kt\": \"text/x-kotlin\",\n \".sh\": \"application/x-shellscript\",\n \".bash\": \"application/x-shellscript\",\n \".ps1\": \"application/x-powershell\",\n \".sql\": \"application/sql\",\n \".yml\": \"application/x-yaml\",\n \".coffee\": \"text/coffeescript\",\n \".lua\": \"text/x-lua\",\n },\n archive: {\n \".zip\": \"application/zip\",\n \".tar\": \"application/x-tar\",\n \".gz\": \"application/gzip\",\n \".tgz\": \"application/gzip\",\n \".bz2\": \"application/x-bzip2\",\n \".xz\": \"application/x-xz\",\n \".rar\": \"application/vnd.rar\",\n \".7z\": \"application/x-7z-compressed\",\n \".iso\": \"application/x-iso9660-image\",\n \".dmg\": \"application/x-apple-diskimage\",\n \".jar\": \"application/java-archive\",\n \".war\": \"application/java-archive\",\n \".whl\": \"application/python-wheel\",\n \".egg\": \"application/python-egg\",\n },\n font: {\n \".ttf\": \"font/ttf\",\n \".otf\": \"font/otf\",\n \".woff\": \"font/woff\",\n \".woff2\": \"font/woff2\",\n \".eot\": \"application/vnd.ms-fontobject\",\n },\n executable: {\n \".exe\": \"application/vnd.microsoft.portable-executable\",\n \".dll\": \"application/vnd.microsoft.portable-executable\",\n \".bin\": \"application/octet-stream\",\n \".deb\": \"application/vnd.debian.binary-package\",\n \".rpm\": \"application/x-rpm\",\n },\n} as const;\n\n/** Mirror of MEDIA_TYPES in Python: category -> Set of extensions */\nexport const MEDIA_TYPES: Record<MediaCategory, Set<string>> = Object.fromEntries(\n Object.entries(MIME_TYPES).map(([cat, mapping]) => [\n cat,\n new Set(Object.keys(mapping)),\n ])\n) as Record<MediaCategory, Set<string>>;\n\n/** ---- Helpers ---- */\nfunction toCategorySet(\n categories?: Iterable<string> | string[] | null,\n): Set<MediaCategory> {\n const allCats = new Set(Object.keys(MIME_TYPES)) as Set<string>;\n if (!categories) {\n // all categories\n return new Set(allCats) as Set<MediaCategory>;\n }\n const out = new Set<MediaCategory>();\n for (const c of categories as Iterable<string>) {\n const key = String(c) as MediaCategory;\n if (allCats.has(key)) out.add(key);\n }\n return out.size ? out : (new Set(allCats) as Set<MediaCategory>);\n}\n\nfunction normalizeCategories<T extends MediaOptions | undefined>(\n categories?: Iterable<string> | string[] | null,\n opts?: T,\n): Set<MediaCategory> {\n const selected = categories ?? opts?.media_types ?? null;\n return toCategorySet(selected);\n}\n\nfunction extOf(input: string): string {\n // Behaves like pathlib.Path(...).suffix.lower(): last extension only; lowercased.\n let ext = path.extname(input || \"\");\n if (!ext && input && input.startsWith(\".\")) {\n // user passed \".jpg\" directly\n ext = input;\n }\n return (ext || \"\").toLowerCase();\n}\n\nfunction unionExts(categories: Set<MediaCategory>): Set<string> {\n const out = new Set<string>();\n for (const c of categories) {\n const set = MEDIA_TYPES[c];\n for (const e of set) out.add(e);\n }\n return out;\n}\n\n/** ---- API (Python parity) ---- */\n\n/**\n * Return a sub-map of MEDIA_TYPES for the given categories.\n * If categories is falsy, returns all categories.\n */\nexport function getMediaMap(\n categories?: Iterable<string> | string[] | null,\n opts?: MediaOptions,\n): Partial<Record<MediaCategory, Set<string>>> {\n const cats = normalizeCategories(categories, opts);\n const result: Partial<Record<MediaCategory, Set<string>>> = {};\n for (const c of cats) result[c] = new Set(MEDIA_TYPES[c]);\n return result;\n}\n\n/**\n * Return a flat, sorted list of all extensions for the given categories.\n */\nexport function getMediaExts(\n categories?: Iterable<string> | string[] | null,\n opts?: MediaOptions,\n): string[] {\n const cats = normalizeCategories(categories, opts);\n return Array.from(unionExts(cats)).sort();\n}\n\n/**\n * Given a file path or extension, return its media category (e.g. \"image\") or null.\n * Mirrors Python's confirm_type.\n */\nexport function confirmType(\n pathOrExt: string,\n categories?: Iterable<string> | string[] | null,\n opts?: MediaOptions,\n): MediaCategory | null {\n const cats = normalizeCategories(categories, opts);\n const ext = extOf(pathOrExt);\n // Preserve object insertion order like Python dict iteration\n for (const [category, exts] of Object.entries(MEDIA_TYPES) as [\n MediaCategory,\n Set<string>,\n ][]) {\n if (!cats.has(category)) continue;\n if (ext && exts.has(ext)) return category;\n }\n return null;\n}\n\n/**\n * True if the given file path or extension belongs to one of the categories.\n */\nexport function isMediaType(\n pathOrExt: string,\n categories?: Iterable<string> | string[] | null,\n opts?: MediaOptions,\n): boolean {\n return confirmType(pathOrExt, categories, opts) !== null;\n}\n\n/**\n * Look up the MIME type by extension; fall back to 'application/octet-stream'.\n */\nexport function getMimeType(pathOrExt: string): string {\n const ext = extOf(pathOrExt);\n for (const mapping of Object.values(MIME_TYPES)) {\n if (ext && mapping[ext as keyof typeof mapping]) {\n return mapping[ext as keyof typeof mapping] as string;\n }\n }\n return \"application/octet-stream\";\n}\n\nexport function getAllFileTypesSync(\n directory: string,\n categories?: Iterable<string> | string[] | null,\n opts?: MediaOptions,\n): string[] {\n // 🧩 Skip entirely if fs isn't available\n if (!fs || !path) return [];\n\n try {\n const stat = fs.statSync(directory);\n if (!stat.isDirectory()) return [];\n\n const cats = normalizeCategories(categories, opts);\n const wanted = unionExts(cats);\n const results: string[] = [];\n\n function walkSync(dir: string) {\n const entries = fs.readdirSync(dir, { withFileTypes: true });\n for (const ent of entries) {\n const full = path.join(dir, ent.name);\n if (ent.isDirectory()) {\n walkSync(full);\n } else if (ent.isFile()) {\n const ext = path.extname(ent.name).toLowerCase();\n if (wanted.has(ext)) results.push(full);\n }\n }\n }\n\n walkSync(directory);\n return results;\n } catch {\n return [];\n }\n}\n\nexport async function getAllFileTypes(\n directory: string,\n categories?: Iterable<string> | string[] | null,\n opts?: MediaOptions,\n): Promise<string[]> {\n // 🧩 Skip entirely if fsp isn't available\n if (!fsp || !path) return [];\n\n try {\n const stat = await fsp.stat(directory);\n if (!stat.isDirectory()) return [];\n\n const cats = normalizeCategories(categories, opts);\n const wanted = unionExts(cats);\n const results: string[] = [];\n\n async function walkAsync(dir: string): Promise<void> {\n const entries = await fsp.readdir(dir, { withFileTypes: true });\n for (const ent of entries) {\n const full = path.join(dir, ent.name);\n if (ent.isDirectory()) {\n await walkAsync(full);\n } else if (ent.isFile()) {\n const ext = path.extname(ent.name).toLowerCase();\n if (wanted.has(ext)) results.push(full);\n }\n }\n }\n\n await walkAsync(directory);\n return results;\n } catch {\n return [];\n }\n}\n\n\n/** Optional convenience re-exports that mirror your Python names */\nexport const get_all_file_types = getAllFileTypes;\nexport const get_media_map = getMediaMap;\nexport const get_media_exts = getMediaExts;\nexport const confirm_type = confirmType;\nexport const is_media_type = isMediaType;\nexport const get_mime_type = getMimeType;\n","/** \n * Safely walk `globalThis` (or window/document) by a chain of property names.\n * Returns `undefined` if any step is missing.\n */\nexport function safeGlobalProp<T = any>(...path: string[]): T | undefined {\n let obj: any = globalThis;\n for (const key of path) {\n if (obj == null || typeof obj !== \"object\" || !(key in obj)) {\n return undefined;\n }\n obj = obj[key];\n }\n return obj as T;\n}\n","\nimport {safeGlobalProp} from './safe_globals'\n/**\n * Returns `window` if running in a browser, otherwise `undefined`.\n */\n\n\nexport function getSafeLocalStorage(): Storage | undefined {\n if (typeof window === 'undefined') return undefined;\n try {\n return window.localStorage;\n } catch {\n return undefined; // e.g. Safari private-mode block\n }\n}\n\n/**\n * Call a Storage method by name, silencing any errors or missing storage.\n *\n * @param method One of the keys of the Storage interface: \"getItem\", \"setItem\", etc.\n * @param args The arguments you’d normally pass to that method.\n * @returns The method’s return value, or undefined if storage/method isn’t available.\n */\nexport function callStorage<\n K extends keyof Storage\n>(\n method: K,\n ...args: Parameters<Storage[K]>\n): ReturnType<Storage[K]> | undefined {\n const storage = getSafeLocalStorage();\n if (!storage) return undefined;\n\n const fn = storage[method];\n if (typeof fn !== 'function') return undefined;\n\n try {\n return fn.apply(storage, args) as ReturnType<Storage[K]>;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Safely call storage methods (`localStorage` or `sessionStorage`) without blowing up.\n * Returns `undefined` on any error.\n */\nexport function safeStorage<\n S extends \"localStorage\" | \"sessionStorage\",\n K extends keyof Storage\n>(\n storageName: S,\n method: K,\n ...args: Parameters<Storage[K]>\n): ReturnType<Storage[K]> | undefined {\n try {\n const store = safeGlobalProp<Storage>(storageName);\n if (!store || typeof store[method] !== \"function\") return undefined;\n return store[method](...args);\n } catch {\n return undefined;\n }\n}\n"],"names":["path","fs","fsp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;AACM,SAAU,cAAc,CAAC,KAAa,EAAA;AAC1C,IAAA,IAAI;AACF,QAAA,MAAM,OAAO,GAAG,SAAS,CAAC,KAAK,CAAC;QAChC,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,IAAI,OAAO,CAAC,GAAG;IACzC;AAAE,IAAA,MAAM;QACN,OAAO,IAAI,CAAC;IACd;AACF;AAEA;AACA;AACA;AAEM,SAAU,SAAS,CAAC,KAAa,EAAA;AACrC,IAAA,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC;IACrD,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,IAAI,CAAC,SAAS,EAAE;AACrC,QAAA,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC;IAClC;;AAGA,IAAA,IAAI,GAAG,GAAG,OAAO,CAAC,O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,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC;IAC/B;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,SAAS;IAClB;AACF;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
|
package/dist/esm/client.js
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import { r as callStorage, i as isTokenExpired, d as decodeJwt } from './safe_storage-
|
|
1
|
+
import { r as callStorage, i as isTokenExpired, d as decodeJwt } from './safe_storage-D4QfcTw0.js';
|
|
2
2
|
import 'path';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:path';
|
|
5
5
|
import 'util';
|
|
6
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
7
6
|
import 'node:fs/promises';
|
|
8
|
-
import 'fs';
|
|
9
|
-
import 'os';
|
|
10
|
-
import 'stream';
|
|
11
|
-
import 'buffer';
|
|
12
|
-
import 'events';
|
|
13
|
-
import 'zlib';
|
|
14
|
-
import 'tty';
|
|
15
|
-
import 'string_decoder';
|
|
16
|
-
import 'http';
|
|
17
|
-
import 'https';
|
|
18
7
|
|
|
19
8
|
/** Read raw JWT from LocalStorage (or null if absent) */
|
|
20
9
|
function getToken() {
|
|
@@ -87,40 +76,5 @@ function removeToken() {
|
|
|
87
76
|
}
|
|
88
77
|
}
|
|
89
78
|
|
|
90
|
-
|
|
91
|
-
function Button({ children, color = 'gray', variant = 'default', className = '', ...rest }) {
|
|
92
|
-
const base = 'rounded px-3 py-1 text-sm font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 transition-colors duration-150';
|
|
93
|
-
const variantStyles = {
|
|
94
|
-
default: '',
|
|
95
|
-
icon: 'p-1 bg-transparent hover:bg-gray-100',
|
|
96
|
-
primary: 'text-white',
|
|
97
|
-
secondary: '',
|
|
98
|
-
};
|
|
99
|
-
const palette = {
|
|
100
|
-
gray: variant === 'primary'
|
|
101
|
-
? 'bg-gray-600 hover:bg-gray-700 focus:ring-gray-500'
|
|
102
|
-
: 'bg-gray-200 hover:bg-gray-300 focus:ring-gray-400',
|
|
103
|
-
green: 'bg-green-600 text-white hover:bg-green-700 focus:ring-green-500',
|
|
104
|
-
blue: variant === 'primary'
|
|
105
|
-
? 'bg-blue-600 hover:bg-blue-700 focus:ring-blue-500'
|
|
106
|
-
: 'bg-blue-200 hover:bg-blue-300 focus:ring-blue-400',
|
|
107
|
-
};
|
|
108
|
-
return (jsx("button", { className: `${base} ${variantStyles[variant]} ${palette[color]} ${className}`, ...rest, children: children }));
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// src/client/ui_utils/src/checkbox.tsx
|
|
112
|
-
function Checkbox({ label, ...rest }) {
|
|
113
|
-
return (jsxs("label", { className: 'flex items-center gap-2 mb-4', children: [jsx("input", { type: 'checkbox', ...rest }), jsx("span", { children: label })] }));
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// src/client/ui_utils/src/input.tsx
|
|
117
|
-
function Input({ label, trailing, ...rest }) {
|
|
118
|
-
return (jsxs("label", { className: 'mb-4 block', children: [jsx("span", { className: 'block text-sm font-medium mb-1', children: label }), jsxs("div", { className: 'flex gap-2', children: [jsx("input", { className: 'flex-1 rounded border px-2 py-1 disabled:bg-gray-100', ...rest }), trailing] })] }));
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function Spinner() {
|
|
122
|
-
return (jsx("p", { className: 'animate-pulse', children: "Loading\u2026" }));
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { Button, Checkbox, Input, Spinner, currentUsername, currentUsernames, getAuthorizationHeader, getToken, isLoggedIn, removeToken, requireToken };
|
|
79
|
+
export { currentUsername, currentUsernames, getAuthorizationHeader, getToken, isLoggedIn, removeToken, requireToken };
|
|
126
80
|
//# sourceMappingURL=client.js.map
|
package/dist/esm/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sources":["../../src/client/auth/src/token_client.ts"
|
|
1
|
+
{"version":3,"file":"client.js","sources":["../../src/client/auth/src/token_client.ts"],"sourcesContent":["'use client';\nimport {\n isTokenExpired,\n decodeJwt,\n callStorage,\n} from '../../../functions';\n\n\n/** Read raw JWT from LocalStorage (or null if absent) */\nexport function getToken(): string | null | any {\n return callStorage('getItem', 'token');\n}\n\n\nexport function isLoggedIn() {\n const tok = getToken();\n return !!tok && !isTokenExpired(tok ?? \"\");\n}\n\n\n/**\n * Add a Bearer Authorization header.\n * A shallow copy of headers is returned so callers can keep chaining.\n */\nexport function getAuthorizationHeader(\n headers: Record<string, string> | null = {},\n token: string | null = null\n): Record<string, string> {\n token = token ?? getToken();\n headers = headers || {}\n if (token) headers[\"Authorization\"] = `Bearer ${token}`;\n return { ...headers };\n}\n\n\n/** Throw + redirect if there’s no valid token; otherwise return it. */\nexport function requireToken(): string {\n const tok = getToken();\n if (!tok || isTokenExpired(tok)) {\n console.warn(\"→ No token or expired token, redirecting to login…\");\n localStorage.removeItem(\"token\");\n window.location.href = '/';\n throw new Error(\"Redirecting to login…\");\n }\n return tok;\n}\n\n\n\n\n/** Convenience wrapper: return username from the JWT (or null). */\nexport function currentUsername() {\n const tok = getToken();\n if (!tok) return null;\n try {\n const { username } = decodeJwt(tok);\n return username ?? null;\n } catch {\n return null;\n }\n}\nexport function currentUsernames() {\n const tok = getToken();\n if (!tok) return null;\n try {\n const parts = tok.split(\".\");\n if (parts.length !== 3) return null;\n let b64 = parts[1].replace(/-/g, \"+\").replace(/_/g, \"/\");\n b64 = b64.padEnd(Math.ceil(b64.length / 4) * 4, \"=\");\n const jsonText = atob(b64);\n const payload = JSON.parse(jsonText);\n return payload.username ?? null;\n } catch {\n return null;\n }\n}\n\n/** Remove the JWT from LocalStorage */\nexport function removeToken(): void {\n try {\n callStorage('removeItem', 'token');\n } catch (err) {\n console.warn(\"Failed to remove token:\", err);\n }\n}"],"names":[],"mappings":";;;;;;;AAQA;SACgB,QAAQ,GAAA;AACtB,IAAA,OAAO,WAAW,CAAC,SAAS,EAAE,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;AAAE,QAAA,OAAO,IAAI;AACrB,IAAA,IAAI;QACF,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC;AAC5B,QAAA,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;AAAE,YAAA,OAAO,IAAI;QACnC,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;QACxD,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC;AACpD,QAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC;QAC1B,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;AACpC,QAAA,OAAO,OAAO,CAAC,QAAQ,IAAI,IAAI;IACjC;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF;AAEA;SACgB,WAAW,GAAA;AACzB,IAAA,IAAI;AACF,QAAA,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC;IACpC;IAAE,OAAO,GAAG,EAAE;AACZ,QAAA,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,GAAG,CAAC;IAC9C;AACF;;;;"}
|
package/dist/esm/functions.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
export { a as MEDIA_TYPES, M as MIME_TYPES, r as callStorage, c as confirmType, n as confirm_type, d as decodeJwt, j as getAllFileTypes, h as getAllFileTypesSync, b as getMediaExts, g as getMediaMap, f as getMimeType, q as getSafeLocalStorage, k as get_all_file_types, m as get_media_exts, l as get_media_map, p as get_mime_type, e as isMediaType, i as isTokenExpired, o as is_media_type, t as safeGlobalProp, s as safeStorage } from './safe_storage-
|
|
2
|
-
export { A as API_PREFIX, bf as ATTOSECOND, B as BASE_URL, bl as CENTISECOND, bp as DAY, bF as DAY_IN_S, bm as DECISECOND, b as DEV_PREFIX, aO as DIST_ALIASES, aQ as DIST_FACTORS, D as DOMAIN_NAME, b1 as DistanceConverter, bC as FEET_PER_METER, bg as FEMTOSECOND, bo as HOUR, bE as HOUR_IN_S, bA as KMS_PER_METER, bz as METERS_PER_FOOT, bx as METERS_PER_KM, by as METERS_PER_MILE, bj as MICROSECOND, bB as MILES_PER_METER, bk as MILISECOND, bn as MINUTE, bD as MIN_IN_S, br as MONTH, bH as MONTH_IN_S, bJ as MPerS_TO_MiPerH, bI as MiPerH_TO_MPerS, bi as NANOSECOND, bv as PI, bw as PI2, bh as PICOSECOND, a as PROD_PREFIX, P as PROTOCOL, bd as SECOND, bu as SECONDS_PER_DAY, bt as SECONDS_PER_HOUR, bs as SECONDS_PER_MINUTE, S as SUB_DIR, b3 as SpeedConverter, aP as TIME_ALIASES, aR as TIME_FACTORS, b2 as TimeConverter, bq as YEAR, bG as YEAR_IN_S, be as ZEPTOSECOND, ap as alertit, cb as assureArray, bU as assureList, bZ as assureNumber, c3 as assureString, ca as assure_array, bV as assure_list, c0 as assure_number, c5 as assure_string, c6 as assurearray, bX as assurelist, b$ as assurenumber, c4 as assurestring, cB as callWindowMethod, aS as canonDist, aT as canonTime, au as capitalize, at as capitalize_str, q as checkResponse, bN as cleanArray, bM as cleanText, bL as convertBigInts, a_ as convertDistance, b0 as convertSpeed, a$ as convertTime, aC as create_list_string, cK as dataSize, cI as dataSizeInMb, cL as debugPrint, aU as distanceToMeters, az as eatAll, aA as eatElse, ax as eatInner, ay as eatOuter, aD as eatall, aE as eatinner, aF as eatouter, cr as emptyObjectToNull, aG as ends_in_quotes, c9 as ensureArray, bW as ensureList, b_ as ensureNumber, c2 as ensureString, c8 as ensure_array, bQ as ensure_list, bR as ensure_number, bS as ensure_string, c7 as ensurearray, bT as ensurelist, bY as ensurenumber, c1 as ensurestring, cG as exceedsMbLimit, aM as exponential, cg as extractInsertData, i as fetchIndexHtml, j as fetchIndexHtmlContainer, f as fetchIt, ce as findKeyValue, bc as fmt, bP as formatNumber, b5 as fromMeters, ba as fromMps, b7 as fromSeconds, a2 as geAuthsUtilsDirectory, a3 as geBackupsUtilsDirectory, a4 as geConstantsUtilsDirectory, a5 as geEnvUtilsDirectory, a6 as geFetchUtilsDirectory, a7 as geFileUtilsDirectory, a8 as gePathUtilsDirectory, ac as geStaticDirectory, a9 as geStringUtilsDirectory, aa as geTypeUtilsDirectory, cd as get, $ as getAbsDir, a0 as getAbsPath, cl as getAlphaNum, co as getAlphas, ah as getBaseDir, Y as getBasename, n as getBody, ck as getChar, bO as getCleanArray, ag as getComponentsUtilsDirectory, ct as getConfig, cx as getConfigContent, am as getDbConfigsPath, _ as getDirname, aj as getDistDir, cz as getDocumentProp, ak as getEnvDir, al as getEnvPath, U as getExtname, o as getFetchVars, W as getFilename, a1 as getFunctionsDir, af as getFunctionsUtilsDirectory, m as getHeaders, ae as getHooksUtilsDirectory, h as getHtmlDirectory, cp as getIfNone, cJ as getJsonSizeInMb, cM as getLastCaller, ad as getLibUtilsDirectory, l as getMethod, cm as getNums, ai as getPublicDir, k as getResult, cy as getSafeDocument, cA as getSafeWindow, ao as getSchemasDirPath, an as getSchemasPath, Q as getSplitext, ab as getSrcDir, aq as getSubstring, cD as getWindowHost, cC as getWindowProp, y as get_basename, x as get_dirname, C as get_extname, z as get_filename, s as get_full_path, r as get_full_url, cc as get_key_value, cF as get_keyword_string, F as get_relative_path, E as get_splitext, g as get_window, c as get_window_location, e as get_window_parts, d as get_window_pathname, X as getbasename, Z as getdirname, T as getextname, V as getfilename, R as getsplitext, bb as isFiniteNum, cn as isNum, cj as isStrInString, bK as isTimeInterval, ci as isType, aN as isZero, cs as loadConfig, ch as loadInnerJson, N as makePath, G as make_path, I as make_sanitized_path, M as makepath, cq as mergeNotNullValues, aV as metersToDistance, aZ as mpsToSpeed, J as normalizeUrl, cf as omitKeys, p as parseResult, L as pathJoin, O as path_join, t as path_to_url, K as pathjoin, cE as processKeywords, cw as readJsonFile, cu as readJsonFileBrowser, cv as readJsonFileNode, aL as roundPercentage, aJ as safeDivide, cH as safeJsonSizeInMb, aK as safeMultiply, aI as safeNums, H as sanitizeFilename, ar as sanitizeString, aX as secondsToTime, aY as speedToMps, av as stripPrefixes, aH as stripQuotes, aW as timeToSeconds, b4 as toMeters, b6 as toSeconds, as as truncateString, aw as tryEatPrefix, aB as tryParse, u as urlJoin, v as url_to_path, w as urljoin, b9 as velocityFromMs, b8 as velocityToMs } from './print_utils-
|
|
1
|
+
export { a as MEDIA_TYPES, M as MIME_TYPES, r as callStorage, c as confirmType, n as confirm_type, d as decodeJwt, j as getAllFileTypes, h as getAllFileTypesSync, b as getMediaExts, g as getMediaMap, f as getMimeType, q as getSafeLocalStorage, k as get_all_file_types, m as get_media_exts, l as get_media_map, p as get_mime_type, e as isMediaType, i as isTokenExpired, o as is_media_type, t as safeGlobalProp, s as safeStorage } from './safe_storage-D4QfcTw0.js';
|
|
2
|
+
export { A as API_PREFIX, bf as ATTOSECOND, B as BASE_URL, bl as CENTISECOND, bp as DAY, bF as DAY_IN_S, bm as DECISECOND, b as DEV_PREFIX, aO as DIST_ALIASES, aQ as DIST_FACTORS, D as DOMAIN_NAME, b1 as DistanceConverter, bC as FEET_PER_METER, bg as FEMTOSECOND, bo as HOUR, bE as HOUR_IN_S, bA as KMS_PER_METER, bz as METERS_PER_FOOT, bx as METERS_PER_KM, by as METERS_PER_MILE, bj as MICROSECOND, bB as MILES_PER_METER, bk as MILISECOND, bn as MINUTE, bD as MIN_IN_S, br as MONTH, bH as MONTH_IN_S, bJ as MPerS_TO_MiPerH, bI as MiPerH_TO_MPerS, bi as NANOSECOND, bv as PI, bw as PI2, bh as PICOSECOND, a as PROD_PREFIX, P as PROTOCOL, bd as SECOND, bu as SECONDS_PER_DAY, bt as SECONDS_PER_HOUR, bs as SECONDS_PER_MINUTE, S as SUB_DIR, b3 as SpeedConverter, aP as TIME_ALIASES, aR as TIME_FACTORS, b2 as TimeConverter, bq as YEAR, bG as YEAR_IN_S, be as ZEPTOSECOND, ap as alertit, cb as assureArray, bU as assureList, bZ as assureNumber, c3 as assureString, ca as assure_array, bV as assure_list, c0 as assure_number, c5 as assure_string, c6 as assurearray, bX as assurelist, b$ as assurenumber, c4 as assurestring, cB as callWindowMethod, aS as canonDist, aT as canonTime, au as capitalize, at as capitalize_str, q as checkResponse, bN as cleanArray, bM as cleanText, bL as convertBigInts, a_ as convertDistance, b0 as convertSpeed, a$ as convertTime, aC as create_list_string, cK as dataSize, cI as dataSizeInMb, cL as debugPrint, aU as distanceToMeters, az as eatAll, aA as eatElse, ax as eatInner, ay as eatOuter, aD as eatall, aE as eatinner, aF as eatouter, cr as emptyObjectToNull, aG as ends_in_quotes, c9 as ensureArray, bW as ensureList, b_ as ensureNumber, c2 as ensureString, c8 as ensure_array, bQ as ensure_list, bR as ensure_number, bS as ensure_string, c7 as ensurearray, bT as ensurelist, bY as ensurenumber, c1 as ensurestring, cG as exceedsMbLimit, aM as exponential, cg as extractInsertData, i as fetchIndexHtml, j as fetchIndexHtmlContainer, f as fetchIt, ce as findKeyValue, bc as fmt, bP as formatNumber, b5 as fromMeters, ba as fromMps, b7 as fromSeconds, a2 as geAuthsUtilsDirectory, a3 as geBackupsUtilsDirectory, a4 as geConstantsUtilsDirectory, a5 as geEnvUtilsDirectory, a6 as geFetchUtilsDirectory, a7 as geFileUtilsDirectory, a8 as gePathUtilsDirectory, ac as geStaticDirectory, a9 as geStringUtilsDirectory, aa as geTypeUtilsDirectory, cd as get, $ as getAbsDir, a0 as getAbsPath, cl as getAlphaNum, co as getAlphas, ah as getBaseDir, Y as getBasename, n as getBody, ck as getChar, bO as getCleanArray, ag as getComponentsUtilsDirectory, ct as getConfig, cx as getConfigContent, am as getDbConfigsPath, _ as getDirname, aj as getDistDir, cz as getDocumentProp, ak as getEnvDir, al as getEnvPath, U as getExtname, o as getFetchVars, W as getFilename, a1 as getFunctionsDir, af as getFunctionsUtilsDirectory, m as getHeaders, ae as getHooksUtilsDirectory, h as getHtmlDirectory, cp as getIfNone, cJ as getJsonSizeInMb, cM as getLastCaller, ad as getLibUtilsDirectory, l as getMethod, cm as getNums, ai as getPublicDir, k as getResult, cy as getSafeDocument, cA as getSafeWindow, ao as getSchemasDirPath, an as getSchemasPath, Q as getSplitext, ab as getSrcDir, aq as getSubstring, cD as getWindowHost, cC as getWindowProp, y as get_basename, x as get_dirname, C as get_extname, z as get_filename, s as get_full_path, r as get_full_url, cc as get_key_value, cF as get_keyword_string, F as get_relative_path, E as get_splitext, g as get_window, c as get_window_location, e as get_window_parts, d as get_window_pathname, X as getbasename, Z as getdirname, T as getextname, V as getfilename, R as getsplitext, bb as isFiniteNum, cn as isNum, cj as isStrInString, bK as isTimeInterval, ci as isType, aN as isZero, cs as loadConfig, ch as loadInnerJson, N as makePath, G as make_path, I as make_sanitized_path, M as makepath, cq as mergeNotNullValues, aV as metersToDistance, aZ as mpsToSpeed, J as normalizeUrl, cf as omitKeys, p as parseResult, L as pathJoin, O as path_join, t as path_to_url, K as pathjoin, cE as processKeywords, cw as readJsonFile, cu as readJsonFileBrowser, cv as readJsonFileNode, aL as roundPercentage, aJ as safeDivide, cH as safeJsonSizeInMb, aK as safeMultiply, aI as safeNums, H as sanitizeFilename, ar as sanitizeString, aX as secondsToTime, aY as speedToMps, av as stripPrefixes, aH as stripQuotes, aW as timeToSeconds, b4 as toMeters, b6 as toSeconds, as as truncateString, aw as tryEatPrefix, aB as tryParse, u as urlJoin, v as url_to_path, w as urljoin, b9 as velocityFromMs, b8 as velocityToMs } from './print_utils-gTxtZBM7.js';
|
|
3
3
|
export { inspect } from 'util';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:fs/promises';
|
|
6
6
|
import 'node:path';
|
|
7
|
-
import 'fs';
|
|
8
7
|
import 'path';
|
|
9
|
-
import 'os';
|
|
10
|
-
import 'stream';
|
|
11
|
-
import 'buffer';
|
|
12
|
-
import 'events';
|
|
13
|
-
import 'zlib';
|
|
14
|
-
import 'tty';
|
|
15
|
-
import 'string_decoder';
|
|
16
|
-
import 'http';
|
|
17
|
-
import 'https';
|
|
18
8
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"functions.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
export { a as MEDIA_TYPES, M as MIME_TYPES, r as callStorage, c as confirmType, n as confirm_type, d as decodeJwt, j as getAllFileTypes, h as getAllFileTypesSync, b as getMediaExts, g as getMediaMap, f as getMimeType, q as getSafeLocalStorage, k as get_all_file_types, m as get_media_exts, l as get_media_map, p as get_mime_type, e as isMediaType, i as isTokenExpired, o as is_media_type, t as safeGlobalProp, s as safeStorage } from './safe_storage-
|
|
2
|
-
export { A as API_PREFIX, bf as ATTOSECOND, B as BASE_URL, bl as CENTISECOND, bp as DAY, bF as DAY_IN_S, bm as DECISECOND, b as DEV_PREFIX, aO as DIST_ALIASES, aQ as DIST_FACTORS, D as DOMAIN_NAME, b1 as DistanceConverter, bC as FEET_PER_METER, bg as FEMTOSECOND, bo as HOUR, bE as HOUR_IN_S, bA as KMS_PER_METER, bz as METERS_PER_FOOT, bx as METERS_PER_KM, by as METERS_PER_MILE, bj as MICROSECOND, bB as MILES_PER_METER, bk as MILISECOND, bn as MINUTE, bD as MIN_IN_S, br as MONTH, bH as MONTH_IN_S, bJ as MPerS_TO_MiPerH, bI as MiPerH_TO_MPerS, bi as NANOSECOND, bv as PI, bw as PI2, bh as PICOSECOND, a as PROD_PREFIX, P as PROTOCOL, bd as SECOND, bu as SECONDS_PER_DAY, bt as SECONDS_PER_HOUR, bs as SECONDS_PER_MINUTE, S as SUB_DIR, b3 as SpeedConverter, aP as TIME_ALIASES, aR as TIME_FACTORS, b2 as TimeConverter, bq as YEAR, bG as YEAR_IN_S, be as ZEPTOSECOND, ap as alertit, cb as assureArray, bU as assureList, bZ as assureNumber, c3 as assureString, ca as assure_array, bV as assure_list, c0 as assure_number, c5 as assure_string, c6 as assurearray, bX as assurelist, b$ as assurenumber, c4 as assurestring, cB as callWindowMethod, aS as canonDist, aT as canonTime, au as capitalize, at as capitalize_str, q as checkResponse, bN as cleanArray, bM as cleanText, bL as convertBigInts, a_ as convertDistance, b0 as convertSpeed, a$ as convertTime, aC as create_list_string, cK as dataSize, cI as dataSizeInMb, cL as debugPrint, aU as distanceToMeters, az as eatAll, aA as eatElse, ax as eatInner, ay as eatOuter, aD as eatall, aE as eatinner, aF as eatouter, cr as emptyObjectToNull, aG as ends_in_quotes, c9 as ensureArray, bW as ensureList, b_ as ensureNumber, c2 as ensureString, c8 as ensure_array, bQ as ensure_list, bR as ensure_number, bS as ensure_string, c7 as ensurearray, bT as ensurelist, bY as ensurenumber, c1 as ensurestring, cG as exceedsMbLimit, aM as exponential, cg as extractInsertData, i as fetchIndexHtml, j as fetchIndexHtmlContainer, f as fetchIt, ce as findKeyValue, bc as fmt, bP as formatNumber, b5 as fromMeters, ba as fromMps, b7 as fromSeconds, a2 as geAuthsUtilsDirectory, a3 as geBackupsUtilsDirectory, a4 as geConstantsUtilsDirectory, a5 as geEnvUtilsDirectory, a6 as geFetchUtilsDirectory, a7 as geFileUtilsDirectory, a8 as gePathUtilsDirectory, ac as geStaticDirectory, a9 as geStringUtilsDirectory, aa as geTypeUtilsDirectory, cd as get, $ as getAbsDir, a0 as getAbsPath, cl as getAlphaNum, co as getAlphas, ah as getBaseDir, Y as getBasename, n as getBody, ck as getChar, bO as getCleanArray, ag as getComponentsUtilsDirectory, ct as getConfig, cx as getConfigContent, am as getDbConfigsPath, _ as getDirname, aj as getDistDir, cz as getDocumentProp, ak as getEnvDir, al as getEnvPath, U as getExtname, o as getFetchVars, W as getFilename, a1 as getFunctionsDir, af as getFunctionsUtilsDirectory, m as getHeaders, ae as getHooksUtilsDirectory, h as getHtmlDirectory, cp as getIfNone, cJ as getJsonSizeInMb, cM as getLastCaller, ad as getLibUtilsDirectory, l as getMethod, cm as getNums, ai as getPublicDir, k as getResult, cy as getSafeDocument, cA as getSafeWindow, ao as getSchemasDirPath, an as getSchemasPath, Q as getSplitext, ab as getSrcDir, aq as getSubstring, cD as getWindowHost, cC as getWindowProp, y as get_basename, x as get_dirname, C as get_extname, z as get_filename, s as get_full_path, r as get_full_url, cc as get_key_value, cF as get_keyword_string, F as get_relative_path, E as get_splitext, g as get_window, c as get_window_location, e as get_window_parts, d as get_window_pathname, X as getbasename, Z as getdirname, T as getextname, V as getfilename, R as getsplitext, bb as isFiniteNum, cn as isNum, cj as isStrInString, bK as isTimeInterval, ci as isType, aN as isZero, cs as loadConfig, ch as loadInnerJson, N as makePath, G as make_path, I as make_sanitized_path, M as makepath, cq as mergeNotNullValues, aV as metersToDistance, aZ as mpsToSpeed, J as normalizeUrl, cf as omitKeys, p as parseResult, L as pathJoin, O as path_join, t as path_to_url, K as pathjoin, cE as processKeywords, cw as readJsonFile, cu as readJsonFileBrowser, cv as readJsonFileNode, aL as roundPercentage, aJ as safeDivide, cH as safeJsonSizeInMb, aK as safeMultiply, aI as safeNums, H as sanitizeFilename, ar as sanitizeString, aX as secondsToTime, aY as speedToMps, av as stripPrefixes, aH as stripQuotes, aW as timeToSeconds, b4 as toMeters, b6 as toSeconds, as as truncateString, aw as tryEatPrefix, aB as tryParse, u as urlJoin, v as url_to_path, w as urljoin, b9 as velocityFromMs, b8 as velocityToMs } from './print_utils-
|
|
1
|
+
export { a as MEDIA_TYPES, M as MIME_TYPES, r as callStorage, c as confirmType, n as confirm_type, d as decodeJwt, j as getAllFileTypes, h as getAllFileTypesSync, b as getMediaExts, g as getMediaMap, f as getMimeType, q as getSafeLocalStorage, k as get_all_file_types, m as get_media_exts, l as get_media_map, p as get_mime_type, e as isMediaType, i as isTokenExpired, o as is_media_type, t as safeGlobalProp, s as safeStorage } from './safe_storage-D4QfcTw0.js';
|
|
2
|
+
export { A as API_PREFIX, bf as ATTOSECOND, B as BASE_URL, bl as CENTISECOND, bp as DAY, bF as DAY_IN_S, bm as DECISECOND, b as DEV_PREFIX, aO as DIST_ALIASES, aQ as DIST_FACTORS, D as DOMAIN_NAME, b1 as DistanceConverter, bC as FEET_PER_METER, bg as FEMTOSECOND, bo as HOUR, bE as HOUR_IN_S, bA as KMS_PER_METER, bz as METERS_PER_FOOT, bx as METERS_PER_KM, by as METERS_PER_MILE, bj as MICROSECOND, bB as MILES_PER_METER, bk as MILISECOND, bn as MINUTE, bD as MIN_IN_S, br as MONTH, bH as MONTH_IN_S, bJ as MPerS_TO_MiPerH, bI as MiPerH_TO_MPerS, bi as NANOSECOND, bv as PI, bw as PI2, bh as PICOSECOND, a as PROD_PREFIX, P as PROTOCOL, bd as SECOND, bu as SECONDS_PER_DAY, bt as SECONDS_PER_HOUR, bs as SECONDS_PER_MINUTE, S as SUB_DIR, b3 as SpeedConverter, aP as TIME_ALIASES, aR as TIME_FACTORS, b2 as TimeConverter, bq as YEAR, bG as YEAR_IN_S, be as ZEPTOSECOND, ap as alertit, cb as assureArray, bU as assureList, bZ as assureNumber, c3 as assureString, ca as assure_array, bV as assure_list, c0 as assure_number, c5 as assure_string, c6 as assurearray, bX as assurelist, b$ as assurenumber, c4 as assurestring, cB as callWindowMethod, aS as canonDist, aT as canonTime, au as capitalize, at as capitalize_str, q as checkResponse, bN as cleanArray, bM as cleanText, bL as convertBigInts, a_ as convertDistance, b0 as convertSpeed, a$ as convertTime, aC as create_list_string, cK as dataSize, cI as dataSizeInMb, cL as debugPrint, aU as distanceToMeters, az as eatAll, aA as eatElse, ax as eatInner, ay as eatOuter, aD as eatall, aE as eatinner, aF as eatouter, cr as emptyObjectToNull, aG as ends_in_quotes, c9 as ensureArray, bW as ensureList, b_ as ensureNumber, c2 as ensureString, c8 as ensure_array, bQ as ensure_list, bR as ensure_number, bS as ensure_string, c7 as ensurearray, bT as ensurelist, bY as ensurenumber, c1 as ensurestring, cG as exceedsMbLimit, aM as exponential, cg as extractInsertData, i as fetchIndexHtml, j as fetchIndexHtmlContainer, f as fetchIt, ce as findKeyValue, bc as fmt, bP as formatNumber, b5 as fromMeters, ba as fromMps, b7 as fromSeconds, a2 as geAuthsUtilsDirectory, a3 as geBackupsUtilsDirectory, a4 as geConstantsUtilsDirectory, a5 as geEnvUtilsDirectory, a6 as geFetchUtilsDirectory, a7 as geFileUtilsDirectory, a8 as gePathUtilsDirectory, ac as geStaticDirectory, a9 as geStringUtilsDirectory, aa as geTypeUtilsDirectory, cd as get, $ as getAbsDir, a0 as getAbsPath, cl as getAlphaNum, co as getAlphas, ah as getBaseDir, Y as getBasename, n as getBody, ck as getChar, bO as getCleanArray, ag as getComponentsUtilsDirectory, ct as getConfig, cx as getConfigContent, am as getDbConfigsPath, _ as getDirname, aj as getDistDir, cz as getDocumentProp, ak as getEnvDir, al as getEnvPath, U as getExtname, o as getFetchVars, W as getFilename, a1 as getFunctionsDir, af as getFunctionsUtilsDirectory, m as getHeaders, ae as getHooksUtilsDirectory, h as getHtmlDirectory, cp as getIfNone, cJ as getJsonSizeInMb, cM as getLastCaller, ad as getLibUtilsDirectory, l as getMethod, cm as getNums, ai as getPublicDir, k as getResult, cy as getSafeDocument, cA as getSafeWindow, ao as getSchemasDirPath, an as getSchemasPath, Q as getSplitext, ab as getSrcDir, aq as getSubstring, cD as getWindowHost, cC as getWindowProp, y as get_basename, x as get_dirname, C as get_extname, z as get_filename, s as get_full_path, r as get_full_url, cc as get_key_value, cF as get_keyword_string, F as get_relative_path, E as get_splitext, g as get_window, c as get_window_location, e as get_window_parts, d as get_window_pathname, X as getbasename, Z as getdirname, T as getextname, V as getfilename, R as getsplitext, bb as isFiniteNum, cn as isNum, cj as isStrInString, bK as isTimeInterval, ci as isType, aN as isZero, cs as loadConfig, ch as loadInnerJson, N as makePath, G as make_path, I as make_sanitized_path, M as makepath, cq as mergeNotNullValues, aV as metersToDistance, aZ as mpsToSpeed, J as normalizeUrl, cf as omitKeys, p as parseResult, L as pathJoin, O as path_join, t as path_to_url, K as pathjoin, cE as processKeywords, cw as readJsonFile, cu as readJsonFileBrowser, cv as readJsonFileNode, aL as roundPercentage, aJ as safeDivide, cH as safeJsonSizeInMb, aK as safeMultiply, aI as safeNums, H as sanitizeFilename, ar as sanitizeString, aX as secondsToTime, aY as speedToMps, av as stripPrefixes, aH as stripQuotes, aW as timeToSeconds, b4 as toMeters, b6 as toSeconds, as as truncateString, aw as tryEatPrefix, aB as tryParse, u as urlJoin, v as url_to_path, w as urljoin, b9 as velocityFromMs, b8 as velocityToMs } from './print_utils-gTxtZBM7.js';
|
|
3
3
|
export { inspect } from 'util';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:fs/promises';
|
|
6
6
|
import 'node:path';
|
|
7
|
-
import 'fs';
|
|
8
7
|
import 'path';
|
|
9
|
-
import 'os';
|
|
10
|
-
import 'stream';
|
|
11
|
-
import 'buffer';
|
|
12
|
-
import 'events';
|
|
13
|
-
import 'zlib';
|
|
14
|
-
import 'tty';
|
|
15
|
-
import 'string_decoder';
|
|
16
|
-
import 'http';
|
|
17
|
-
import 'https';
|
|
18
8
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import { u as pathBrowserify,
|
|
2
|
+
import { u as pathBrowserify, t as safeGlobalProp } from './safe_storage-D4QfcTw0.js';
|
|
3
3
|
import { readFileSync } from 'node:fs';
|
|
4
4
|
import { isAbsolute, resolve } from 'node:path';
|
|
5
5
|
import { inspect } from 'util';
|
|
@@ -1276,8 +1276,6 @@ function isTimeInterval(timeObj, interval) {
|
|
|
1276
1276
|
return (Date.now() / 1000 - timeObj) < (interval - 1);
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
|
-
// src/functions/typeUtils/numUtils.ts
|
|
1280
|
-
const FILE_LOCATION = 'src/functions/typeUtils/numUtils.ts';
|
|
1281
1279
|
/**
|
|
1282
1280
|
* Recursively traverse the object and convert BigInts to numbers or strings.
|
|
1283
1281
|
*
|
|
@@ -1300,14 +1298,6 @@ function convertBigInts(obj, convertToNumber = true) {
|
|
|
1300
1298
|
}
|
|
1301
1299
|
}
|
|
1302
1300
|
catch (error) {
|
|
1303
|
-
logEvent({
|
|
1304
|
-
message: 'Error converting BigInt',
|
|
1305
|
-
logType: 'warn',
|
|
1306
|
-
details: error.message,
|
|
1307
|
-
function_name: 'convertBigInts',
|
|
1308
|
-
file_location: FILE_LOCATION
|
|
1309
|
-
});
|
|
1310
|
-
return obj;
|
|
1311
1301
|
}
|
|
1312
1302
|
return obj;
|
|
1313
1303
|
}
|
|
@@ -1619,4 +1609,4 @@ function debugPrint(value, label = null) {
|
|
|
1619
1609
|
}
|
|
1620
1610
|
|
|
1621
1611
|
export { getAbsDir as $, API_PREFIX as A, BASE_URL as B, get_extname as C, DOMAIN_NAME as D, get_splitext as E, get_relative_path as F, make_path as G, sanitizeFilename as H, make_sanitized_path as I, normalizeUrl as J, pathjoin as K, pathJoin as L, makepath as M, makePath as N, path_join as O, PROTOCOL as P, getSplitext as Q, getsplitext as R, SUB_DIR as S, getextname as T, getExtname as U, getfilename as V, getFilename as W, getbasename as X, getBasename as Y, getdirname as Z, getDirname as _, PROD_PREFIX as a, convertTime as a$, getAbsPath as a0, getFunctionsDir as a1, geAuthsUtilsDirectory as a2, geBackupsUtilsDirectory as a3, geConstantsUtilsDirectory as a4, geEnvUtilsDirectory as a5, geFetchUtilsDirectory as a6, geFileUtilsDirectory as a7, gePathUtilsDirectory as a8, geStringUtilsDirectory as a9, eatElse as aA, tryParse as aB, create_list_string as aC, eatall as aD, eatinner as aE, eatouter as aF, ends_in_quotes as aG, stripQuotes as aH, safeNums as aI, safeDivide as aJ, safeMultiply as aK, roundPercentage as aL, exponential as aM, isZero as aN, DIST_ALIASES as aO, TIME_ALIASES as aP, DIST_FACTORS as aQ, TIME_FACTORS as aR, canonDist as aS, canonTime as aT, distanceToMeters as aU, metersToDistance as aV, timeToSeconds as aW, secondsToTime as aX, speedToMps as aY, mpsToSpeed as aZ, convertDistance as a_, geTypeUtilsDirectory as aa, getSrcDir as ab, geStaticDirectory as ac, getLibUtilsDirectory as ad, getHooksUtilsDirectory as ae, getFunctionsUtilsDirectory as af, getComponentsUtilsDirectory as ag, getBaseDir as ah, getPublicDir as ai, getDistDir as aj, getEnvDir as ak, getEnvPath as al, getDbConfigsPath as am, getSchemasPath as an, getSchemasDirPath as ao, alertit as ap, getSubstring as aq, sanitizeString as ar, truncateString as as, capitalize_str as at, capitalize as au, stripPrefixes as av, tryEatPrefix as aw, eatInner as ax, eatOuter as ay, eatAll as az, DEV_PREFIX as b, assurenumber as b$, convertSpeed as b0, DistanceConverter as b1, TimeConverter as b2, SpeedConverter as b3, toMeters as b4, fromMeters as b5, toSeconds as b6, fromSeconds as b7, velocityToMs as b8, velocityFromMs as b9, KMS_PER_METER as bA, MILES_PER_METER as bB, FEET_PER_METER as bC, MIN_IN_S as bD, HOUR_IN_S as bE, DAY_IN_S as bF, YEAR_IN_S as bG, MONTH_IN_S as bH, MiPerH_TO_MPerS as bI, MPerS_TO_MiPerH as bJ, isTimeInterval as bK, convertBigInts as bL, cleanText as bM, cleanArray as bN, getCleanArray as bO, formatNumber as bP, ensure_list as bQ, ensure_number as bR, ensure_string as bS, ensurelist as bT, assureList as bU, assure_list as bV, ensureList as bW, assurelist as bX, ensurenumber as bY, assureNumber as bZ, ensureNumber as b_, fromMps as ba, isFiniteNum as bb, fmt as bc, SECOND as bd, ZEPTOSECOND as be, ATTOSECOND as bf, FEMTOSECOND as bg, PICOSECOND as bh, NANOSECOND as bi, MICROSECOND as bj, MILISECOND as bk, CENTISECOND as bl, DECISECOND as bm, MINUTE as bn, HOUR as bo, DAY as bp, YEAR as bq, MONTH as br, SECONDS_PER_MINUTE as bs, SECONDS_PER_HOUR as bt, SECONDS_PER_DAY as bu, PI as bv, PI2 as bw, METERS_PER_KM as bx, METERS_PER_MILE as by, METERS_PER_FOOT as bz, get_window_location as c, assure_number as c0, ensurestring as c1, ensureString as c2, assureString as c3, assurestring as c4, assure_string as c5, assurearray as c6, ensurearray as c7, ensure_array as c8, ensureArray as c9, getSafeWindow as cA, callWindowMethod as cB, getWindowProp as cC, getWindowHost as cD, processKeywords as cE, get_keyword_string as cF, exceedsMbLimit as cG, safeJsonSizeInMb as cH, dataSizeInMb as cI, getJsonSizeInMb as cJ, dataSize as cK, debugPrint as cL, getLastCaller as cM, assure_array as ca, assureArray as cb, get_key_value as cc, get as cd, findKeyValue as ce, omitKeys as cf, extractInsertData as cg, loadInnerJson as ch, isType as ci, isStrInString as cj, getChar as ck, getAlphaNum as cl, getNums as cm, isNum as cn, getAlphas as co, getIfNone as cp, mergeNotNullValues as cq, emptyObjectToNull as cr, loadConfig as cs, getConfig as ct, readJsonFileBrowser as cu, readJsonFileNode as cv, readJsonFile as cw, getConfigContent as cx, getSafeDocument as cy, getDocumentProp as cz, get_window_pathname as d, get_window_parts as e, fetchIt as f, get_window as g, getHtmlDirectory as h, fetchIndexHtml as i, fetchIndexHtmlContainer as j, getResult as k, getMethod as l, getHeaders as m, getBody as n, getFetchVars as o, parseResult as p, checkResponse as q, get_full_url as r, get_full_path as s, path_to_url as t, urlJoin as u, url_to_path as v, urljoin as w, get_dirname as x, get_basename as y, get_filename as z };
|
|
1622
|
-
//# sourceMappingURL=print_utils-
|
|
1612
|
+
//# sourceMappingURL=print_utils-gTxtZBM7.js.map
|