* Add test case demonstrating invalid behavior * Add conditional check for child properties so RHS is not duplicated * Add recursive check to find any nested non single-property case * Add case for array destructuring * Add test case for a nested rest element * More safely recurse through array destructuring * Traverse assignment and nested rest operations * Refactor to be more clear which case statement we are executing against * Update missed snapshots * Update packages/babel-plugin-proposal-object-rest-spread/src/index.js Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com> * Filter null array elements, add early return, remove optional chaining * Use stronger type assertions * Update fall through to be false; add early return to RestElement case * Move hasMoreThanOneBinding to its own file with distinct tests * Rename testing helper to more appropriately match business logic * Yarn Dedup & rename hasMoreThanOneBinding to shouldStoreRHSInTemporaryVariable Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"name": "@babel/plugin-proposal-object-rest-spread",
|
|
"version": "7.14.7",
|
|
"description": "Compile object rest and spread to ES5",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/babel/babel.git",
|
|
"directory": "packages/babel-plugin-proposal-object-rest-spread"
|
|
},
|
|
"homepage": "https://babel.dev/docs/en/next/babel-plugin-proposal-object-rest-spread",
|
|
"license": "MIT",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"main": "./lib/index.js",
|
|
"keywords": [
|
|
"babel-plugin"
|
|
],
|
|
"dependencies": {
|
|
"@babel/compat-data": "workspace:^7.14.7",
|
|
"@babel/helper-compilation-targets": "workspace:^7.14.5",
|
|
"@babel/helper-plugin-utils": "workspace:^7.14.5",
|
|
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
|
"@babel/plugin-transform-parameters": "workspace:^7.14.5"
|
|
},
|
|
"peerDependencies": {
|
|
"@babel/core": "^7.0.0-0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "workspace:*",
|
|
"@babel/helper-plugin-test-runner": "workspace:*",
|
|
"@babel/parser": "workspace:*"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.9.0"
|
|
},
|
|
"author": "The Babel Team (https://babel.dev/team)"
|
|
}
|