
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
mapper-json
Advanced tools
将一个json 通过 规则定义,生产两一个 json
import MapperJson from 'mapper-json'
// 数据
const source = {
foo: 'bar',
t1: 1,
t2: 't2',
numstr: '12.1',
str_arr: '1|2|1|3',
category: 'shehui',
};
// 规则
const rules = {
baz: 'foo',
arr: ['t1', 't2'],
switch: [
{
op: 'switch',
options: [
{
result: '社会',
leftSelect: 'category',
operation: 'eq',
rightValue: 'shehui'
}
]
},
],
}
// 转换
const result = MapperJson.tranWithRules(source, rules);
// or
const mapperJsonInstance = new MapperJson(rules);
const result = mapperJsonInstance.trans(source);
// const result = {
// baz: 'bar',
// arr: [1, 't2'],
// switch: ['社会']
// };
FAQs
json 对象转换
We found that mapper-json 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.