
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
v0.1.1
POO pour Nodejs & navigateur.
extend, equal et clone.
Fus est dans npm.
$ npm install fus
var fus = require('fus');
function Klass1(a)
{
this.a = a;
}
function Klass2(a, b)
{
// Appeller super
this.super(a); // Methode 1: TOUJOURS: Ne pas oublier
Klass2.super(this, a); // Methode 2 (Conseillé): Peut être oublié
this.b = b;
}
fus.extend(Klass2, Klass1); // Etend Klass2 avec Klass1
var exemple = new Klass2('a', 'b');
console.inspect(exemple);
Affiche:
{
a: 'a',
b: 'b'
}
Plus d'exemple sur extend dans exemple.js.
Ce sont les mêmes fonctions pour Nodejs et pour navigateur.
fus.extend(klass, parent)void Extend la klass avec la classe parent.
klass class Classe à étendre.parent class Classe parente.Le prototype de parent est copiée et la méthode et la fonction super() sont ajoutées à klass qui prend comme argument les mêmes arguments de parent.
Une classe étendue doit toujours exécuter la méthode this.super(arg, arg2) sauf si vous utilisez la fonction klass.super(this, arg, arg2) !
fus.clone(obj, recursif)Object Retourne la copie de obj. Si recursif est true, les propriétés seront clonnées aussi.
obj Object Objet à cloner.recursive boolean Copie récursive. (Optionnel, par défaut false)Si obj n'est pas un objet, clone retourne null.
fus.equal(obj1, obj2)boolean Retourne true si obj1 et obj2 sont identiques.
obj1 Object Objet 1.obj2 Object Objet 2.obj1 et obj2 peuvent être d'une instance ou d'une classe différente, seul les valeurs sont testées.
Si obj1 ou obj2 n'est pas un objet, une comparaison stricte === sera retournée.
The MIT License (MIT)
Copyright (c) 2013 juloo
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
POO pour Nodejs
We found that fus 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.