Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
针对sm公司业务定制的用于模块化解析的工具。
因公司前端业务框架的原因,前端开发不能使用市面上的模块化类库,如seajs,requireJs,modJs等。
此工具是在编译阶段,将采用commonJS规范的模块化代码,转译成闭包形式的代码。
a-object.js
module.exports = {
sayName: function(name) {
console.log(name);;;
var tt = '6';
}
}
b-function.js
var aobj = require('./a-object.js');
module.exports = function(word) {
aobj.sayName(word + 'test');
}
alp release -d ./output
a-object.js
window.sm = window.sm || {};
(function (sm) {
sm.a_object_js = {
sayName: function (name) {
console.log(name);;
var tt = '6';
}
};
}(sm));
b-function.js
window.sm = window.sm || {};
(function (sm, a_object_js) {
var aobj = a_object_js;
sm.b_function_js = function (word) {
aobj.sayName(word + 'test');
};
}(sm, sm.a_object_js));
FAQs
分析Html文件依赖的js文件和css文件
The npm package alpaca-sm receives a total of 4 weekly downloads. As such, alpaca-sm popularity was classified as not popular.
We found that alpaca-sm 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.