Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
chai.js expect BDD api wrapped with camelCase
method names instead of dot.chaining.style
.
Lets you do:
expect(error).toHaveProperty("message");
instead ofexpect(error).to.have.property("message");
var expect = require("chaimel");
expect(42).notToBeAbove(43);
dot.chaining.style
is problematic for me because:
toLowerCase
, indexOf
, forEach
, hasOwnProperty
camelCase
doesObject.defineProperty
unidiomatic for the golden age of JavaScript. It's fully standard and fine, but my opinion is it fundamentally makes the language more magical and ruby-like and these are drawbacks not advantages.No, I left out abbreviations such as eql
, lt
gt
because I hate abbreviations. Use the full words and use deepEqual
instead of eql
. Having both equal
and eql
with different semantics is error-prone, hard to remember, and confusing to read.
The code is designed to work in node.js or in the browser via browserify. If you want vanilla browser support, file and issue and I can add the neccessary boilerplate.
npm test
MIT
FAQs
Expose chai expect chains as camelCase instead of series.of.dots
The npm package chaimel receives a total of 7 weekly downloads. As such, chaimel popularity was classified as not popular.
We found that chaimel demonstrated a not healthy version release cadence and project activity because the last version was released 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.