babel-features
Advanced tools
Comparing version 2.0.0-beta to 2.0.0
{ | ||
"name": "babel-features", | ||
"version": "2.0.0-beta", | ||
"version": "2.0.0", | ||
"description": "Test babel features, can be used to generate babel options for specific compilation targets", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node test" | ||
"prepublish": "node build", | ||
"test": "node test", | ||
"test-es2015": "BABEL_DISABLE_CACHE=1 babel-node --presets es2015 test", | ||
"test-features": "BABEL_DISABLE_CACHE=1 babel-node --presets features test", | ||
"test-generator": "BABEL_DISABLE_CACHE=1 babel-node test -w transform-async-to-generator,transform-es2015-generator-return", | ||
"test-function-name": "BABEL_DISABLE_CACHE=1 babel-node --plugins transform-es2015-function-name test" | ||
}, | ||
@@ -16,5 +21,2 @@ "repository": { | ||
], | ||
"peerDependencies": { | ||
"babel-core": "6.x" | ||
}, | ||
"author": "HE Shi-Jun <johnhax@gmail.com>", | ||
@@ -25,3 +27,15 @@ "license": "ISC", | ||
}, | ||
"homepage": "https://github.com/hax/babel-features#readme" | ||
"homepage": "https://github.com/hax/babel-features#readme", | ||
"devDependencies": { | ||
"babel-cli": "^6.4.5", | ||
"babel-plugin-syntax-function-sent": "^6.8.0", | ||
"babel-plugin-transform-es2015-generator-return": "^1.0.1", | ||
"babel-polyfill": "^6.9.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-preset-features": "^2.0.2", | ||
"babel-preset-stage-0": "^6.5.0" | ||
}, | ||
"dependencies": { | ||
"js-yaml": "^3.6.1" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # babel-features | ||
NOTE: The latest version (2.x) is for babel 6.x, for babel 5.x please use version 1.x | ||
NOTE: The latest version (2.x) is for babel 6.x, for babel 5.x please use [version 1.x](https://github.com/hax/babel-features/tree/1.x) | ||
@@ -22,3 +22,3 @@ ## Install | ||
// { 'es3-member-expression-literals': true, | ||
// 'es3-property-Literals': true, | ||
// 'es3-property-literals': true, | ||
// 'es5-property-mutators': true, | ||
@@ -47,2 +47,5 @@ // 'es2015-arrow-functions': true, | ||
### Use babel preset | ||
See https://github.com/ariporad/babel-preset-features | ||
### Use babel register | ||
@@ -49,0 +52,0 @@ ```js |
13
test.js
'use strict' | ||
var f = require('./') | ||
var f = require('./lib') | ||
console.log('Node.js:', process.versions.node) | ||
console.log('V8:', process.versions.v8) | ||
console.log() | ||
console.log('babel features test result:') | ||
console.log(f.test()) | ||
console.log(f.options()) | ||
console.log() | ||
console.log('recommended plugins:') | ||
console.log(f.options().plugins) | ||
console.log() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
21339
42
633
0
59
7
2
2
+ Addedjs-yaml@^3.6.1
+ Addedargparse@1.0.10(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedsprintf-js@1.0.3(transitive)
- Removedansi-regex@2.1.1(transitive)
- Removedansi-styles@2.2.1(transitive)
- Removedbabel-code-frame@6.26.0(transitive)
- Removedbabel-core@6.26.3(transitive)
- Removedbabel-generator@6.26.1(transitive)
- Removedbabel-helpers@6.24.1(transitive)
- Removedbabel-messages@6.23.0(transitive)
- Removedbabel-register@6.26.0(transitive)
- Removedbabel-runtime@6.26.0(transitive)
- Removedbabel-template@6.26.0(transitive)
- Removedbabel-traverse@6.26.0(transitive)
- Removedbabel-types@6.26.0(transitive)
- Removedbabylon@6.18.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedchalk@1.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcore-js@2.6.12(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddetect-indent@4.0.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesutils@2.0.3(transitive)
- Removedglobals@9.18.0(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhome-or-tmp@2.0.0(transitive)
- Removedinvariant@2.2.4(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedjs-tokens@3.0.2(transitive)
- Removedjsesc@1.3.0(transitive)
- Removedjson5@0.5.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedms@2.0.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedregenerator-runtime@0.11.1(transitive)
- Removedrepeating@2.0.1(transitive)
- Removedslash@1.0.0(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsource-map-support@0.4.18(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedto-fast-properties@1.0.3(transitive)
- Removedtrim-right@1.0.1(transitive)