🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-class-constructor-call

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-class-constructor-call - npm Package Compare versions

Comparing version

to
6.24.1

6

package.json
{
"name": "babel-plugin-transform-class-constructor-call",
"version": "6.22.0",
"version": "6.24.1",
"description": "This plugin allows Babel to transform class constructors (deprecated)",

@@ -12,3 +12,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-class-constructor-call",

"dependencies": {
"babel-template": "^6.22.0",
"babel-template": "^6.24.1",
"babel-plugin-syntax-class-constructor-call": "^6.18.0",

@@ -18,4 +18,4 @@ "babel-runtime": "^6.22.0"

"devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0"
"babel-helper-plugin-test-runner": "^6.24.1"
}
}

@@ -26,3 +26,2 @@ # babel-plugin-transform-class-constructor-call (deprecated)

```
[Try in REPL](http://babeljs.io/repl/#?evaluate=true&presets=es2015%2Cstage-0&code=class%20Point%20%7B%0A%0A%20%20constructor(x%2C%20y)%20%7B%0A%20%20%20%20this.x%20%3D%20x%3B%0A%20%20%20%20this.y%20%3D%20y%3B%0A%20%20%7D%0A%0A%20%20call%20constructor(x%2C%20y)%20%7B%0A%20%20%20%20return%20new%20Point(x%2C%20y)%3B%0A%20%20%7D%0A%0A%7D%0A%0Alet%20p1%20%3D%20new%20Point(1%2C%202)%3B%20%2F%2F%20OK%0Alet%20p2%20%3D%20Point(3%2C%204)%3B%20%2F%2F%20OK)

@@ -64,3 +63,2 @@ ## Example

```
[Try in REPL](http://babeljs.io/repl/#?evaluate=true&presets=es2015%2Cstage-0&code=class%20Date%20%7B%0A%20%20constructor()%20%7B%0A%20%20%20%20%2F%2F%20...%0A%20%20%7D%0A%0A%20%20call%20constructor()%20%7B%0A%20%20%20%20let%20date%20%3D%20new%20Date()%3B%0A%20%20%20%20return%20date.toString()%3B%0A%20%20%7D%0A%7D%0A%0Alet%20now%20%3D%20new%20Date()%3B%20%2F%2F%20Get%20a%20Date%20instance%0Alet%20nowStr%20%3D%20Date()%3B%20%2F%2F%20Use%20the%20'call%20constructor()'%20part%20to%20get%20a%20string%20value%20of%20the%20current%20date)

@@ -67,0 +65,0 @@ ## Installation