Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

6to5

Package Overview
Dependencies
Maintainers
1
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

6to5 - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

8

lib/6to5/util.js

@@ -135,4 +135,7 @@ var estraverse = require("estraverse");

exports.template = function (name, nodes, keepExpression) {
var template = _.cloneDeep(exports.templates[name]);
var template = exports.templates[name];
if (!template) throw new ReferenceError("unknown template " + name);
template = _.cloneDeep(template);
if (!_.isEmpty(nodes)) {

@@ -201,2 +204,5 @@ traverse.replace(template, function (node) {

var templatesLoc = __dirname + "/templates";
if (!fs.existsSync(templatesLoc)) {
throw new Error("no templates directory - this is most likely the result of a broken `npm publish`. Please report to https://github.com/sebmck/6to5/issues");
}

@@ -203,0 +209,0 @@ _.each(fs.readdirSync(templatesLoc), function (name) {

2

package.json
{
"name": "6to5",
"description": "Turn ES6 code into vanilla ES5 with no runtime required",
"version": "0.1.4",
"version": "0.1.5",
"author": "Sebastian McKenzie <sebmck@gmail.com>",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/sebmck/6to5",

@@ -170,3 +170,3 @@ <p align="center">

When using the [require hook](#require-hook) the aforementioned polyfill is
required.
automatically required.

@@ -176,7 +176,9 @@ If you're planning on using 6to5 output in the browser then it's up to you

and [es6-shim](https://raw.githubusercontent.com/paulmillr/es6-shim/master/es6-shim.js)
support the vast majority of polyfill concerns.
fill the vast majority of polyfill concerns.
#### For-of
Iterator/Symbol polyfill required.
A polyfill is required for for-of functionality that implements `Symbol` and
adds `prototype[Symbol.iterator]` behaviour to built-ins. Using the polyfills
specified in [polyfill](#polyfill) suffices.

@@ -199,4 +201,5 @@ ### Classes

Instead of mapping to a runtime, 6to5 maps directly to the equivalent ES5. This
means that your transpiled code will be as simple as possible.
means that your transpiled code will be as simple as possible and is
**exactly** the equivalent ES5.
### Performance
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc