Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
cla6-hidden
Advanced tools
This is an addon plugin for Cla6.js class system library. It provides the ability to hide some of the instance's properties and therefore make some of your api's logic private without exposing it. Although originally designed for use with Node.js and installable via npm install cla6-hidden
, it can also be used directly in the browser.
Cla6 Hidden is also installable via:
bower install cla6-hidden
var Klass = Cla6('Klass', {
constructor: function() {
this._hidden = 'hidden';
},
get hidden() {
return this._hidden;
}
});
var obj = new Klass();
console.log(obj.hidden); // hidden
console.log(obj._hidden); // undefined
You may also define hidden properties on the prototype. Don't worry, Cla6-Hidden also knows how to handle the inheritance process:
var Parent = Cla6('Parent', {
_foo: 'parent',
_bar: 'parent'
});
var Child = Cla6('Child').extend(Parent, {
_bar: 'child',
log: function() {
console.log(this._foo); // parent
console.log(this._bar); // child
}
});
obj = new Child();
obj.log();
var Cla6 = require('cla6');
var Cla6Hidden = require('cla6-hidden');
Cla6.use(Cla6Hidden);
The source is available for download from
GitHub.
Alternatively, you can install using Node Package Manager (npm
):
npm install cla6-hidden
FAQs
Hidden plugin for Cla6.js
The npm package cla6-hidden receives a total of 0 weekly downloads. As such, cla6-hidden popularity was classified as not popular.
We found that cla6-hidden 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.