Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Compiles JavaScript written using ES6 for-of to ES3 syntax. For example, this:
Compiles JavaScript written using ES6 for-of to ES3 syntax. For example, this:
for (var a of b) {
console.log(a);
}
compiles to this:
var $__getIterator = function(iterable) {
var sym = (typeof Symbol === "function" ? Symbol.iterator : "@@iterator");
if (typeof iterable[sym] === "function") {
return iterable[sym]();
} else if (Object.prototype.toString.call(iterable) === "[object Array]") {
return $__arrayIterator(iterable);
} else {
throw new TypeError();
}
};
var $__arrayIterator = function(array) {
var index = 0;
return {
next: function() {
if (index >= array.length) {
return {
done: true,
value: void 0
};
} else {
return {
done: false,
value: array[index++]
};
}
}
};
};
for (var $__0 = $__getIterator(b), $__1; !($__1 = $__0.next()).done; ) {
var a = $__1.value;
console.log(a);
}
$ npm install es6-for-of
Browserify support is built in.
$ npm install es6-for-of # install local dependency
$ browserify -t es6-for-of $file
First, install the development dependencies:
$ npm install
Then, try running the tests:
$ npm test
FAQs
Compiles JavaScript written using ES6 for-of to ES3 syntax. For example, this:
We found that es6-for-of 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.