Security News
vlt Debuts New JavaScript Package Manager and Serverless Registry at NodeConf EU
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
clientside-model-manager
Advanced tools
sequelize and mongoose style object-modeling database-interface for the browser
var Backtest = function(object){
Object.assign(this, object); // when we retrieve an object from the database, append its values to this object
}
Backtest.prototype = {
find : async function(options){
// validate the options
var [valid, error] = this.validate_find_options(options);
if(valid !== true) throw error;
// pass request to server
var database_object = await api.get("/models/find/backtest", options); // let the server handle interpreting and validating the where string
// cast server response to backtest objects
var casted_object = new this.constructor(database_object); // same as `new Backtest(database_object)``
// return the data
return data;
},
}
var active_models = {
"Plan" : "/_models/plan.js",
"Funding" : "/_models/funding.js",
"Backtest" : {path:"/_models/backtest.js", preload:true}
}
var models = new Model_Manager(active_models)
module.exports = models;
var models = await require("path/to/models")
models.Backtest.find({
where : {
Parent : parent.type,
ParentId : parent.id,
}
})
Since making requests to the database is expensive from the client, the module manager comes with the ability to cache data. The only thing a developer must keep in mind while using the caching functionality is that the developer will need to manually trigger data_pulls from the database to ensure that data is up to date.
FAQs
sequelize and mongoose style object-modeling database-interface for the browser
The npm package clientside-model-manager receives a total of 0 weekly downloads. As such, clientside-model-manager popularity was classified as not popular.
We found that clientside-model-manager 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
vlt introduced its new package manager and a serverless registry this week, innovating in a space where npm has stagnated.
Security News
Research
The Socket Research Team uncovered a malicious Python package typosquatting the popular 'fabric' SSH library, silently exfiltrating AWS credentials from unsuspecting developers.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.