
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
####FreshDocs makes sure that your documents never get stale
First, an example!
//Get a document
var document = Documents.findById("some object id value")
document.update({title: "A title for out collaborative thing"})
document.on("update", function() {
//this will log "A better title, for our collaborative thing"
console.log(document.get("title"))
})
Meanwhile, someone else...
var document = Documents.findById("some object id value")
document.update({title: "A better title, for our collaborative thing"})
Right, it wouldn't be very useful if your documents stayed up to date, but not your collections!
Another Example!
var documents = Documents.find({awesome: true})
documents.on("add", function(newDocument) {
console.log(newDocument.get("title"))
}
Meanwhile
Document.create({title: "An awesome document", awesome: true})
Updated for you like magic!
So you need to validate your data? Cool, we can do that.
When you're creating a FreshDocument instance, you just pass the validation middleware in with your validations
var Things = FreshDocuments("things",
Validations({ title:
{ length: { between: [4, 100]
, message: "Invalid length"}}}))
Blam your titles have to be between 4 and 100 characters
Embedding documents is easy with the Embed middleware. var OtherThing = FreshDocuments("others") var Things = FreshDocuments("things", Embed({other: OtherThing}) //one other thing
var Things = FreshDocuments("things",
Embed({others: [OtherThing]}) //many other things
Yes, the documentation is pretty bad right now, It'll get updated as soon as the api stabilizes. :-D
Any contributions are welcome, features, ideas, bugs, criticism. I would be especially grateful for feedback on the api.
Thanks to Chad Seibert and Brian Goslinga (qbg on github) for help with brainstorming and implementation details
Also thanks to marcello3d for making the awesome Mongolian https://github.com/marcello3d/node-mongolian mongodb driver
FAQs
MongoDB ODM that keeps your docs from getting stale
The npm package FreshDocs receives a total of 0 weekly downloads. As such, FreshDocs popularity was classified as not popular.
We found that FreshDocs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.