
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@sovereignbase/utils
Advanced tools
Shared TypeScript utilities for removing repeated code across Sovereignbase codebases.
Shared TypeScript utilities for removing repeated code across Sovereignbase codebases.
structuredClone is required for successful safeStructuredClone() results.npm install @sovereignbase/utils
# or
pnpm add @sovereignbase/utils
# or
yarn add @sovereignbase/utils
# or
bun add @sovereignbase/utils
# or
deno add jsr:@sovereignbase/utils
# or
vlt install jsr:@sovereignbase/utils
prototype()import { prototype } from '@sovereignbase/utils'
prototype(null) // 'null'
prototype({ ok: true }) // 'record'
prototype(new URL('https://sovereignbase.dev')) // 'url'
Returns a normalized lowercase runtime tag for common primitives, serializable built-ins, and selected platform objects.
isUuidV7()import { isUuidV7 } from '@sovereignbase/utils'
const value = '018f0d1e-6c82-7d4b-91c1-8a7b5e2f4a10'
if (isUuidV7(value)) {
value // string, confirmed UUID v7
}
Checks that a value is a syntactically valid UUID version 7 string.
safeStructuredClone()import { safeStructuredClone } from '@sovereignbase/utils'
const result = safeStructuredClone({ ok: true, nested: { count: 1 } })
if (result[0]) {
const clone = result[1]
clone // deep cloned value
}
Attempts a structured clone and returns a tuple instead of throwing on unsupported values.
npm run test run passed on Node v22.14.0.5/5 passed.2/2 passed.100% statements, branches, functions, and lines.9/9 passed.9/9 passed.9/9 passed.9/9 passed.9/9 passed.9/9 passed.9/9 passed.5/5 Playwright projects passed (chromium, firefox, webkit, mobile-chrome, mobile-safari).npm run bench run: Node v22.14.0 on win32 x64.prototype(record): 8,060,210 ops/sec (248.1 ms).prototype(url): 3,624,304 ops/sec (551.8 ms).isUuidV7(valid): 3,575,658 ops/sec (279.7 ms).isUuidV7(invalid): 4,184,715 ops/sec (239.0 ms).safeStructuredClone(record): 110,503 ops/sec (2262.4 ms).safeStructuredClone(function): 28,112 ops/sec (8893.1 ms).Apache-2.0
FAQs
Shared TypeScript utilities for removing repeated code across Sovereignbase codebases.
We found that @sovereignbase/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.