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 1.4.0 to 1.5.0

lib/6to5/transformers/unicode-regex.js

8

FEATURES.md

@@ -153,1 +153,9 @@ # Features

```
## Unicode regex
```javascript
var string = 'fooπŸ’©bar';
var match = string.match(/foo(.)bar/u);
console.log(match[1]);
```

3

lib/6to5/transform.js

@@ -110,3 +110,4 @@ var traverse = require("./traverse");

restParameters: require("./transformers/rest-parameters"),
forOf: require("./transformers/for-of")
forOf: require("./transformers/for-of"),
unicodeRegex: require("./transformers/unicode-regex")
};

@@ -8,2 +8,18 @@ var b = require("ast-types").builders;

exports.TaggedTemplateExpression = function (node) {
var args = [];
var quasi = node.quasi;
var strings = quasi.quasis.map(function (elem) {
return b.literal(elem.value.raw);
});
args.push(b.arrayExpression(strings));
_.each(quasi.expressions, function (expr) {
args.push(expr);
});
return b.callExpression(node.tag, args);
};
exports.TemplateLiteral = function (node) {

@@ -10,0 +26,0 @@ var nodes = [];

{
"name": "6to5",
"description": "Turn ES6 code into vanilla ES5 with source maps and no runtime",
"version": "1.4.0",
"version": "1.5.0",
"author": "Sebastian McKenzie <sebmck@gmail.com>",

@@ -49,3 +49,4 @@ "homepage": "https://github.com/sebmck/6to5",

"es6-shim": "^0.18.0",
"es6-symbol": "^0.1.1"
"es6-symbol": "^0.1.1",
"regexpu": "^0.2.2"
},

@@ -52,0 +53,0 @@ "devDependencies": {

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

- [Template literals](FEATURES.md#template-literals)
- [Unicode Regex](FEATURES.md#unicode-regex)

@@ -247,2 +248,3 @@ To be implemented:

| Template literals | βœ“ | βœ“ | βœ“ | βœ“ | βœ“ | βœ“ |
| Unicode regex | βœ“ | βœ“ | | βœ“ | βœ“ | |

@@ -249,0 +251,0 @@ #### 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