Socket
Socket
Sign inDemoInstall

es3ify

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

1

index.js

@@ -87,2 +87,3 @@ var Syntax = require('esprima').Syntax;

traverse(element, path, state);
utils.catchup(element.range[1], state);
}

@@ -89,0 +90,0 @@ });

2

package.json
{
"name": "es3ify",
"version": "0.2.0",
"version": "0.2.1",
"description": "Browserify transform to convert ES5 syntax to be ES3-compatible.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -19,2 +19,7 @@ var transform = require('../index.js').transform;

it('should not remove commas in strings in arrays', function() {
expect(transform('["2, 3, 4,"]'))
.toEqual('["2, 3, 4,"]');
});
it('should keep comments near a trailing comma', function() {

@@ -21,0 +26,0 @@ expect(transform('[2, 3, 4 /* = 2^2 */,// = 6 - 2\n]'))

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc