Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
cavalion-blocks
Advanced tools
Changelog
2018-09-15 - 0.8.4
Readme
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/universe
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() {
})]
]];
FAQs
`blocks-dot-js` `[].js`
The npm package cavalion-blocks receives a total of 6 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 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.