Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@jsep-plugin/arrow
Advanced tools
A JSEP plugin for adding arrow-function support. Allows expressions of the form:
jsep('a.find(v => v === 1)');
jsep('a.map((v, i) => i)');
jsep('a.map(() => true');
npm install @jsep-plugin/arrow
# or
yarn add @jsep-plugin/arrow
import jsep from 'jsep';
import jsepArrow from '@jsep-plugin/arrow';
jsep.plugins.register(jsepArrow);
1.0.0 - 2021-08-22
Rewrote to ESM, added a plugin system, and fixed numerous grammar issues. For most standard use-cases, this release should not be a breaking change, as every effort was made to maintain compatibility.
build
folder to dist
(#130). The package file structure is now:├── CHANGELOG.md
├── LICENSE
├── README.md
├── package.json
├── dist
│ ├── jsep.js
│ ├── jsep.min.js
│ ├── cjs
│ │ ├── jsep.cjs.js
│ │ ├── jsep.cjs.min.js
│ ├── iife
│ │ ├── jsep.iife.js
│ │ ├── jsep.iife.min.js
LogicalExpression
and treat it as a BinaryExpression
(#100)missing unaryOp argument
unexpected "?"
.
now throws unexpected .
()()
now throws unexpected "("
a.this
, a.true
, a.false
, a.null
now match esprima and treat the property as an identifier instead of a literal or ThisExpression() => ...
)a = 2
, a++
)await a.find(async (v1, v2) => await v1(v2))
)/* .. */
and // ...
)new Date()
){a: 1, b}
)/123/ig
)fn(...a)
, [1, ...b]
, {...c}
)`hi ${name}`
, msg`hig ${name}`
)(1, 2)
now returns a SequenceExpression instead of throwing an Unclosed (
errorFAQs
Adds arrow-function support
The npm package @jsep-plugin/arrow receives a total of 6,525 weekly downloads. As such, @jsep-plugin/arrow popularity was classified as popular.
We found that @jsep-plugin/arrow demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.