
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
betajs-data
Advanced tools
BetaJS-Data is a general-purpose JavaScript framework for handling RESTful operations and ActiveRecord abstractions.
BetaJS-Data is a general-purpose JavaScript framework for handling RESTful operations and ActiveRecord abstractions.
You can use the library in the browser, in your NodeJS project and compile it as well.
<script src="betajs/dist/betajs.min.js"></script>
<script src="betajs-data/dist/betajs-data.min.js"></script>
var BetaJS = require('betajs/dist/beta.js');
require('betajs-data/dist/betajs-data.js');
git clone https://github.com/betajs/betajs-data.git
npm install
grunt
The BetaJS Data module contains the following subsystems:
{
"gender": "male",
"age": {
"$gt": 16
},
"first_name": {
"$sw": "S"
}
}
evaluate(query, {"gender": "female", ...}) === false
evaluate(query, {"age": 16, ...}) === false
evaluate(query, {"first_name": "Guybrush", ...}) === false
evaluate(query, {"gender": "male", "age": 17, "first_name": "Simon"}) === true
store.insert(instance).success(function (data) {
// Instance was inserted, and the updated data of instance is data (including the id)
}).error(function (error) {
// Could not insert instance
});
store.query(query, constraints).success(function (iterator) {
// Store was succesfully queried; the query result is an iterator over matched instances.
}).error(function (error) {
// Could not execute query
});
var MyModel = BetaJS.Data.Modelling.Model.extend(null, {
}, function (inherited) {
return {
_initializeScheme: function () {
var scheme = inherited._initializeScheme.call(this);
scheme.first_name = {
type: "string"
};
scheme.last_name = {
type: "string"
};
return scheme;
}
};
});
var myTable = new BetaJS.Data.Modelling.Table(store, MyModel);
var tableQC = new BetaJS.Data.Collections.TableQueryCollection(table, query, options);
var storeQC = new BetaJS.Data.Collections.StoreQueryCollection(store, query, options);
Resource | URL |
---|---|
Homepage | https://betajs.com |
Git | git://github.com/betajs/betajs-data.git |
Repository | https://github.com/betajs/betajs-data |
Blog | https://blog.betajs.com |
https://twitter.com/thebetajs | |
Gitter | https://gitter.im/betajs/betajs-data |
Target | Versions |
---|---|
Firefox | 3 - Latest |
Chrome | 18 - Latest |
Safari | 4 - Latest |
Opera | 12 - Latest |
Internet Explorer | 6 - Latest |
Edge | 12 - Latest |
Yandex | Latest |
iOS | 3.0 - Latest |
Android | 4.4 - Latest |
NodeJS | 4.0 - Latest |
Resource | URL |
---|---|
betajs-data.js | http://cdn.rawgit.com/betajs/betajs-data/master/dist/betajs-data.js |
betajs-data.min.js | http://cdn.rawgit.com/betajs/betajs-data/master/dist/betajs-data.min.js |
betajs-data-noscoped.js | http://cdn.rawgit.com/betajs/betajs-data/master/dist/betajs-data-noscoped.js |
betajs-data-noscoped.min.js | http://cdn.rawgit.com/betajs/betajs-data/master/dist/betajs-data-noscoped.min.js |
Resource | URL |
---|---|
Test Suite | Run |
Name | URL |
---|---|
betajs | Open |
Name | URL |
---|---|
betajs-scoped | Open |
betajs-shims | Open |
Apache-2.0
FAQs
BetaJS-Data is a general-purpose JavaScript framework for handling RESTful operations and ActiveRecord abstractions.
We found that betajs-data 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.