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.
cavalion-blocks
Advanced tools
function override_stuff() {
["A", "B"].valuesOf(this).applyTo(this, override);
function override(A, B) {
}
["A", "B", "C"].map(key => this[key]).forEach((A, B, C) => {
this.A = function() { };
this.B = function() { };
this.C = function() { };
});
["execute", "render"].mapAndApply(this, function(execute, render) {});
var f = k => this[k];
override.apply(this, mapKeysOf(this, ["A", "B"]));
this.clicked = 0;
for(var k in this) {
var inherited = this[k];
if(k === "click") {
this[k] = function() {
this.clicked++;
return inherited.apply(this, arguments);
};
}
}
}
function blocks1() {
// without Blocks:
var panel = new (require("vcl/ui/Panel"))();
panel.setEnabled(false);
// with Blocks:
var panel = Blocks.create(["vcl-ui:Panel", { enabled: false }]);
// with Blocks & messing with Array.prototype
Array.prototype.create = function() { /* ... */ };
var panel = ["vcl-ui:Panel", { enabled: false }].create();
}
/*- WOW! I just saw a way to get rid of/isolate the Vars-stuff (so obvious, but elegant; only use it TCN **there where needed**) */
["Page, Vars", {}, []];
["html:div Page List", {}, []];
// local ------ I ---- global
function blocks2() {
// Blocks.override ( === [].override) - seems HUGE:
["vcl-ui:Tab", {
select: [].override(function(select) {
return function() {
return select.apply(arguments);
};
})
}];
// Some pages...
["Page, code/Source", [
["Executable", "refresh", {
execute: function() {}
}],
]];
define(["blocks!Page", "veldoffice!Meetpunt"], function(Page, models) {
// var Source = models.Source;
return new Page([]);
});
require(["blocks!Page, veldoffice:Meetpunt<veldoffice-1635252>", {}, function(Page, Meetpunt) {
}]);
["Page, veldoffice:Meetpunt", "", (Page, Meetpunt) => {
}];
/*- this/local --- I --- global/that
inner -------- I --------- outer
So (local) versus (global), but wtf is "I" doing there in the middle?
"I" is processing global to local and local to global
*/
}
["Page", [
["#workspaces", {}, [].override(function() {
})]
]];
2020-04-07 - 0.9.14
FAQs
`blocks-dot-js` `[].js`
The npm package cavalion-blocks receives a total of 3 weekly downloads. As such, cavalion-blocks popularity was classified as not popular.
We found that cavalion-blocks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
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.