
Security News
npm Introduces minimumReleaseAge and Bulk OIDC Configuration
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.
mydb-client
Advanced tools
MyDB client component.
$ component install cloudup/mydb-client
var mydb = require('mydb')('mydb.host.com');
mydb.get('/woot/woot');
Connects to the mydb
listening on url.
If a parameter is not supplied it will connect to window.location
Alternatively, an engine.io client options object can be supplied.
Creates a Document by subscribing to the supplied url.
Supplying a url is optional, if a vanilla document is desired. See
Document#load below.
Each document represents a subscription to a given resource URL.
Returns the associated manager.
Returns the sebscription id.
unloaded: no subscription (default when no url was provided)loading: loading a resourceloaded: resource is loadedunloading: subscription is being destroyedReturns the url this document is loaded from / loading.
Loads a document from the given URL. If fn is supplied, it's passed
to ready.
Calls the supplied fn when the resource is loaded. If the resource
is already loaded, the function is fired on the next tick.
Returns the value of the given key, which can use dot
notation.
It throws if the document is not loaded.
If fn is supplied, ready is called first, and the value is passed
to the callback.
Subscribes to changes for the given key.
fn gets called upon any operation.value property
of the log object. For example, if the operation is a $push, the
value that's pushed is the first parameter.after). For example, if the operation is acting on an array,
like pushing, pulling or popping, you will still get the reference
to the entire array.log object
returned by mongo-query.Calls ready, then calls fn with the initial value of the given
key, and subscribes to subsequent change events for key.
Calls ready, then calls fn for each value of the array found under
key.
Destroys this subscription. fn gets called when the unsubscription
for the current id is confirmed.
MIT
FAQs
MyDB client component
The npm package mydb-client receives a total of 3 weekly downloads. As such, mydb-client popularity was classified as not popular.
We found that mydb-client 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
npm rolls out a package release cooldown and scalable trusted publishing updates as ecosystem adoption of install safeguards grows.

Security News
AI agents are writing more code than ever, and that's creating new supply chain risks. Feross joins the Risky Business Podcast to break down what that means for open source security.

Research
/Security News
Socket uncovered four malicious NuGet packages targeting ASP.NET apps, using a typosquatted dropper and localhost proxy to steal Identity data and backdoor apps.