
Security News
gem.coop Tests Dependency Cooldowns as Package Ecosystems Move to Slow Down Attacks
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.
@codemirror/buildhelper
Advanced tools
Helper scripts to build and test CodeMirror packages.
The exports (build and watch) from this package build packages
that conform to the conventions of the various @codemirror packages.
They do the following:
Mangle the code to convert our /// doc comments to /** */
comments, so that TypeScript will not strip them.
Run the TypeScript compiler, catching the output in memory.
Run rollup and rollup-plugin-dts on the result to emit the CommonJS
and ES modules, as well as a bundled .d.ts file, to dist/.
There's also a cm-buildhelper binary which builds the main file
specified as its first argument. This is used by the individual
packages in their prepare scripts.
NOTE: This tool will add a /*@__PURE__*/ annotation in front of
every top-level function call, to allow tree-shaking of things like
Facet.define(...). This is likely to break some styles of code
(which, say, uses a side-effecting helper function to build up some
top-level data structure), but I wasn't able to find another approach
for working with the crude current state of JS dead-code detection
tools.
The cm-runtests binary helps run tests. Given a list of directories,
it'll run ./test/test-*.js as plain mocha tests, and
./test/webtest-*.js using a Selenium headless browser.
You can also pass it a --server argument to start a test server that
you can interact with in your browser.
In web tests, you can import tempView(doc, extensions?) from
"@codemirror/buildhelper/lib/tempview" to quickly create a temporary
hidden editor.
FAQs
Helper package to build CodeMirror packages
The npm package @codemirror/buildhelper receives a total of 18,409 weekly downloads. As such, @codemirror/buildhelper popularity was classified as popular.
We found that @codemirror/buildhelper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.

Security News
Following multiple malicious extension incidents, Open VSX outlines new safeguards designed to catch risky uploads earlier.

Research
/Security News
Threat actors compromised four oorzc Open VSX extensions with more than 22,000 downloads, pushing malicious versions that install a staged loader, evade Russian-locale systems, pull C2 from Solana memos, and steal macOS credentials and wallets.