
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@rbxts-js/pretty-format
Advanced tools
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/pretty-format
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/pretty-format
Stringify any Luau value
prettyFormat
doesn't distinguish between Tables
, Arrays
, Objects
, etc. and prints out all Lua table-like types as Table
.
Table {}
and an array with values is printed as Table {1, 2, 3,}
.printComplexValue
is reduced to just arrays and tables.prettyFormat
are not implemented yet.prettyFormat
formats Roblox DateTime
objects as a replacement for JS Date
.nil
, nan
and inf
over the JS null
, NaN
and Infinity
. The tests are modified accordingly.Symbol
, named Function
, Error
, Date
, BigInt
, etc.getConfig
is rewritten to avoid ternary operators.
loop is rewritten with a for
loop instead of an iterator.next()
.Collections.lua
deviates from upstream substantially since Lua only has tables. We only have two functions: printTableEntries
for formatting key, value pairs and printListItems
for formatting arrays.FAQs
Upstream: https://github.com/facebook/jest/tree/v27.4.7/packages/pretty-format
The npm package @rbxts-js/pretty-format receives a total of 403 weekly downloads. As such, @rbxts-js/pretty-format popularity was classified as not popular.
We found that @rbxts-js/pretty-format 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.