Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
arango-tools
Advanced tools
ArangoJS describes itself as "The official ArangoDB low-level JavaScript client". The "low-level" part never really meant much to me in my inital usage. Over time I've been finding patterns in my own usage and accumulated workarounds, which I kept telling myself I would extract into a library. This is that library.
The makeDatabase
call returns a set of functions that allow you to query,
truncate and drop the database you just created.
Databases and collections that are asked for via makeDatabase
will be created
if they don't already exist.
let { makeDatabase } = await ArangoTools({ rootPass, url })
let {query, truncate, drop, collections} = await makeDatabase({
dbname: 'foo',
user,
password,
documentCollections: ['widgets'],
})
await collections.widgets.save({foo: "bar"})
let cursor = await query`
FOR widget IN widgets
FILTER widget.foo === "bar"
RETURN widget
`
await cursor.all()
// [{foo: "bar"}]
await drop()
Arango-tools also provides a helper function that generates a database name from the current file which is helpful for tests:
var response = await makeDatabase({
dbname: dbNameFromFile(__filename),
user: 'mike',
password: 'secret',
documentCollections: ['foos'],
})
This library is very focused on smoothing out the process of using Arango as a document store in a TDD workflow. Much of the other functionality of Arango will still require ArangoJS to access. TODO:
FAQs
tools for working with ArangoDB
The npm package arango-tools receives a total of 32 weekly downloads. As such, arango-tools popularity was classified as not popular.
We found that arango-tools 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.