Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
ECMAScript 7 compatibility shims for legacy JavaScript engines.
es7-shim.js
exports an object that contains shims that can be used to monkeypatch a JavaScript context to contain all ECMAScript 7 methods that can be faithfully emulated with a legacy JavaScript engine.
es7-shim.browser.js
calls the “shim” method on the export of es7-shim.js
which actually modifies the global object, including replacing native methods when engine-specific bugs exist.
Published on npm are dist/es7-shim.js
and dist/es7-shim.min.js
which are pre-prepared browserified versions of es7-shim.browser.js
.
Every shim in this module is a separate, independent npm
module.
To be included, all shims must have a ".shim()" method that installs the shim into the global object whenever it is necessary. It should also handle any engine-specific specific to the method it is shimming.
Simply clone the repo, npm install
, and run npm test
Array.prototype
:
includes
standaloneMap.prototype
:
toJSON
standaloneObject
:
getOwnPropertyDescriptors
standaloneentries
standalonevalues
standaloneRegExp
:
escape
standaloneSet.prototype
:
toJSON
standaloneSIMD
: standalone
String.prototype
:
at
standaloneFAQs
ECMAScript 7 compatibility shims for legacy JavaScript engines
We found that es7-shim 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.