
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@telekom/tjs
Advanced tools
Lightweight JavaScript structure framework.
Building is done with the help of UglifyJS. A ready-to-use "production ready" version can be found inside the dist folder.
npm run build
Tests are realized with the help of Jasmine and Karma and can be executed via CLI.
npm run test
The structure of a component is not completely fixed, but there are some restrictions and a recommended structure definitely exists, so here is a documentation of it.
// each component needs a name for reference and optionally
// a list of dependency names of other components. these
// dependent components are then provided by the $wire argument.
T.add('Component', ['Dependency'], function ($wire) {
// the constructor function is either called during initialization
// phase (DOMContentLoaded) or on demand if the component is requested
// manually, but never more than once.
var $construct = function () {
$private.method();
return $public;
};
// the private object is secured by the closure context and
// can not be accessed from outside the component instance.
var $private = {
method: function () {
$wire['Dependency'].method();
}
};
// the public object will be returned by the constructor function
// and is thereby accessible if the component is requested.
var $public = {
method: function () {
$private.method();
}
};
// returns the public object as the instance.
return $construct();
});
// request a component manually by its name reference. returns
// either the existing instance or builds a new one on demand.
T.get('Component').method();
Example components can be found inside the example folder to show off the recommended structure. If the provided HTML page is called with the special query parameter debug (?debug for example), some informative log messages are printed to the browser console.
FAQs
Lightweight JavaScript structure framework.
We found that @telekom/tjs 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.