Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Yara means a good harvest, but to achieve it, you need water. Aƕa is like water; it assembles the drops of its core components into powerful streams of customer experiences. It flows through the product UI, bringing it to life.
Yara
意味着丰收,但要实现丰收,需要水。Aƕa
就像水一样,它将其核心组件的点滴汇聚成强大的客户体验流。它流淌在产品的界面上,使其生动起来。
ahua-taro
是基于 linaria
的样式方案,所以需要进行相关配置:
安装依赖
yarn add @linaria/babel-preset @linaria/webpack-loader
修改配置
// config/index.js
const config = {
...
webpackChain: (chain, webpack) => {
+ // linaria/loader 选项详见 https://github.com/callstack/linaria/blob/master/docs/BUNDLERS_INTEGRATION.md#webpack
+ chain.module
+ .rule('script')
+ .use('linariaLoader')
+ .loader('@linaria/webpack-loader')
+ .options({
+ sourceMap: process.env.NODE_ENV !== 'production',
+ });
+ chain.module // fixes https://github.com/graphql/graphql-js/issues/1272
+ .rule('mjs$')
+ .test(/\.mjs$/)
+ .include.add(/node_modules/)
+ .end()
+ .type('javascript/auto');
+ chain.merge({
+ module: {
+ rule: {
+ pageLoader: {
+ test: /pages\/.+index\.tsx$/,
+ use: [
+ {
+ loader: path.resolve(
+ __dirname,
+ '../node_modules/ahua-taro/dist/page-loader',
+ ),
+ options: {},
+ },
+ ],
+ },
+ polyfillLoader: {
+ test: /tsx?$/,
+ use: [
+ {
+ loader: path.resolve(
+ __dirname,
+ '../node_modules/ahua-taro/dist/polyfill-loader.js',
+ ),
+ options: {},
+ },
+ ],
+ },
+ },
+ },
+ });
...
}
根目录添加 linaria.config.js
文件
// linaria.config.js
// linaria 配置详见 https://github.com/callstack/linaria/blob/master/docs/CONFIGURATION.md#options
module.exports = {
rules: [
{
action: require("@linaria/shaker").default,
},
{
test: /node_modules[/\\](?!@tarojs)/,
action: "ignore",
},
{
test: /(?!.*\/ahua-taro\/dist\/page-loader\.js).*ahua-taro\/dist\/.*\.js$/,
action: "ignore",
},
{
test: /icon-set/,
action: "ignore",
},
],
};
# 安装依赖
yarn install
# 编译
yarn build
# 热编译
yarn build:watch
# 本地发布
yalc publish
# 其他项目安装本地发布的包
yalc add ahua-taro
# 修改版本号
yarn version
# 发布到npm
npm publish
FAQs
Yara means a good harvest, but to achieve it, you need water. Aƕa is like water; it assembles the drops of its core components into powerful streams of customer experiences. It flows through the product UI, bringing it to life.
The npm package ahua-taro receives a total of 65 weekly downloads. As such, ahua-taro popularity was classified as not popular.
We found that ahua-taro 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.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.