Skip to content

Commit

Permalink
Bump babel-plugin-tester from 7.0.1 to 10.0.0 (#221)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Aaron Chambers <[email protected]>
  • Loading branch information
dependabot-preview[bot] and achambers authored Nov 24, 2020
1 parent 6d4aaec commit 7ed7ab0
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 32 deletions.
43 changes: 21 additions & 22 deletions nodetests/babel-plugin-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const pluginTester = require('babel-plugin-tester');
const pluginTester = require('babel-plugin-tester').default;
const plugin = require('../babel-plugin');

pluginTester({
Expand All @@ -24,16 +24,16 @@ pluginTester({
});
`,
output: `
import { Component } from '@ember/component';
import { computed } from '@ember/computed';
import { Component } from "@ember/component";
import { computed } from "@ember/computed";
export default Component.extend({
discount: computed(function () {
if (this.get("launchDarkly.new-pricing")) {
return 5;
}
return 2;
})
}),
});
`
},
Expand All @@ -56,16 +56,16 @@ pluginTester({
});
`,
output: `
import { Component } from '@ember/component';
import { computed } from '@ember/computed';
import { Component } from "@ember/component";
import { computed } from "@ember/computed";
export default Component.extend({
discount: computed(function () {
if (this.get("launchDarkly.new-pricing")) {
return 5;
}
return 2;
})
}),
});
`
},
Expand Down Expand Up @@ -99,8 +99,8 @@ pluginTester({
});
`,
output: `
import { Component } from '@ember/component';
import { computedWithVariation } from 'ember-launch-darkly';
import { Component } from "@ember/component";
import { computedWithVariation } from "ember-launch-darkly";
export default Component.extend({
discount: computedWithVariation("launchDarkly.new-pricing", function () {
if (this.get("launchDarkly.new-pricing")) {
Expand All @@ -111,15 +111,15 @@ pluginTester({
}),
colors: computedWithVariation("launchDarkly.{red,green}", function () {
if (this.get("launchDarkly.red")) {
return 'red';
return "red";
}
if (this.get("launchDarkly.green")) {
return 'green';
return "green";
}
return 'blue';
})
return "blue";
}),
});
`
},
Expand Down Expand Up @@ -153,8 +153,8 @@ pluginTester({
});
`,
output: `
import { Component } from '@ember/component';
import { computedWithVariation as computed } from 'ember-launch-darkly';
import { Component } from "@ember/component";
import { computedWithVariation as computed } from "ember-launch-darkly";
export default Component.extend({
discount: computed("launchDarkly.new-pricing", function () {
if (this.get("launchDarkly.new-pricing")) {
Expand All @@ -165,15 +165,15 @@ pluginTester({
}),
colors: computed("launchDarkly.{red,green}", function () {
if (this.get("launchDarkly.red")) {
return 'red';
return "red";
}
if (this.get("launchDarkly.green")) {
return 'green';
return "green";
}
return 'blue';
})
return "blue";
}),
});
`
},
Expand All @@ -195,16 +195,15 @@ pluginTester({
});
`,
output: `
import { Component } from '@ember/component';
import { Component } from "@ember/component";
export default Component.extend({
discount() {
if (this.get("launchDarkly.new-pricing")) {
return 5;
}
return 2;
}
},
});
`
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"@ember/optional-features": "^0.7.0",
"babel-plugin-tester": "^7.0.1",
"babel-plugin-tester": "^10.0.0",
"broccoli-asset-rev": "^3.0.0",
"broccoli-funnel": "^3.0.3",
"broccoli-merge-trees": "^4.2.0",
Expand Down
82 changes: 73 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@
esutils "^2.0.2"
js-tokens "^4.0.0"

"@babel/parser@^7.1.0":
version "7.12.7"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.12.7.tgz#fee7b39fe809d0e73e5b25eecaf5780ef3d73056"
integrity sha512-oWR02Ubp4xTLCAqPRiNIuMVgNO5Aif/xpXtabhzW2HWUD47XJsAB4Zd/Rg30+XeQA3juXigV7hlquOTmwqLiwg==

"@babel/parser@^7.10.4", "@babel/parser@^7.11.5":
version "7.11.5"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.11.5.tgz#c7ff6303df71080ec7a4f5b8c003c58f1cf51037"
Expand Down Expand Up @@ -1651,6 +1656,15 @@
globals "^11.1.0"
lodash "^4.17.19"

"@babel/types@^7.0.0", "@babel/types@^7.3.0":
version "7.12.7"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.12.7.tgz#6039ff1e242640a29452c9ae572162ec9a8f5d13"
integrity sha512-MNyI92qZq6jrQkXvtIiykvl4WtoRrVV9MPn+ZfsoEENjiWcBQ3ZSHrkxnJWgWtLX3XXqX5hrSQ+X69wkmesXuQ==
dependencies:
"@babel/helper-validator-identifier" "^7.10.4"
lodash "^4.17.19"
to-fast-properties "^2.0.0"

"@babel/types@^7.1.6", "@babel/types@^7.3.2", "@babel/types@^7.3.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6":
version "7.8.6"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.8.6.tgz#629ecc33c2557fcde7126e58053127afdb3e6d01"
Expand Down Expand Up @@ -1980,6 +1994,47 @@
dependencies:
defer-to-connect "^2.0.0"

"@types/babel-plugin-tester@^9.0.0":
version "9.0.1"
resolved "https://registry.yarnpkg.com/@types/babel-plugin-tester/-/babel-plugin-tester-9.0.1.tgz#5f1dc3b9da821b119f74544cda308d1e040c4cba"
integrity sha512-RGZzADCDXd9MIxQzOM2I6guMFRtZw+XwVx+vmPliPAvGeh228ZYA3hoTEF9u3jNR2Nf/gyb55HI3D9pMl3m1LA==
dependencies:
"@types/babel__core" "*"
"@types/prettier" "*"

"@types/babel__core@*":
version "7.1.12"
resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.12.tgz#4d8e9e51eb265552a7e4f1ff2219ab6133bdfb2d"
integrity sha512-wMTHiiTiBAAPebqaPiPDLFA4LYPKr6Ph0Xq/6rq1Ur3v66HXyG+clfR9CNETkD7MQS8ZHvpQOtA53DLws5WAEQ==
dependencies:
"@babel/parser" "^7.1.0"
"@babel/types" "^7.0.0"
"@types/babel__generator" "*"
"@types/babel__template" "*"
"@types/babel__traverse" "*"

"@types/babel__generator@*":
version "7.6.2"
resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.2.tgz#f3d71178e187858f7c45e30380f8f1b7415a12d8"
integrity sha512-MdSJnBjl+bdwkLskZ3NGFp9YcXGx5ggLpQQPqtgakVhsWK0hTtNYhjpZLlWQTviGTvF8at+Bvli3jV7faPdgeQ==
dependencies:
"@babel/types" "^7.0.0"

"@types/babel__template@*":
version "7.4.0"
resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.0.tgz#0c888dd70b3ee9eebb6e4f200e809da0076262be"
integrity sha512-NTPErx4/FiPCGScH7foPyr+/1Dkzkni+rHiYHHoTjvwou7AQzJkNeD60A9CXRy+ZEN2B1bggmkTMCDb+Mv5k+A==
dependencies:
"@babel/parser" "^7.1.0"
"@babel/types" "^7.0.0"

"@types/babel__traverse@*":
version "7.0.15"
resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.0.15.tgz#db9e4238931eb69ef8aab0ad6523d4d4caa39d03"
integrity sha512-Pzh9O3sTK8V6I1olsXpCfj2k/ygO2q1X0vhhnDrEQyYLHZesWz+zMZMVcwXLCYf0U36EtmyYaFGPfXlTtDHe3A==
dependencies:
"@babel/types" "^7.3.0"

"@types/cacheable-request@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.1.tgz#5d22f3dded1fd3a84c0bbeb5039a7419c2c91976"
Expand Down Expand Up @@ -2063,6 +2118,11 @@
resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==

"@types/prettier@*":
version "2.1.5"
resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.1.5.tgz#b6ab3bba29e16b821d84e09ecfaded462b816b00"
integrity sha512-UEyp8LwZ4Dg30kVU2Q3amHHyTn1jEdhCIE59ANed76GaT1Vp76DD3ZWSAxgCrw6wJ0TqeoBpqmfUHiUDPs//HQ==

"@types/responselike@*", "@types/responselike@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.0.tgz#251f4fe7d154d2bad125abe1b429b23afd262e29"
Expand Down Expand Up @@ -3145,15 +3205,14 @@ babel-plugin-syntax-trailing-function-commas@^6.22.0:
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3"
integrity sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=

babel-plugin-tester@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/babel-plugin-tester/-/babel-plugin-tester-7.0.1.tgz#75730c51f30184ddb5fc4aa79bb514a73769fe82"
integrity sha512-+K1d6BGmFDSMVtf9HG4sPhIZEHLVnUIV3BeJGkpR+l7Y5MCaB9Gv98kWFbqtmg/B3DVRFT3UncyAeOdc91HooQ==
babel-plugin-tester@^10.0.0:
version "10.0.0"
resolved "https://registry.yarnpkg.com/babel-plugin-tester/-/babel-plugin-tester-10.0.0.tgz#7ece63c50ee76cc4b486f99d6a2a4cf78c836fe5"
integrity sha512-RHlDIUtfdlFvUXHTWroyL3iz9OZnPYgcaDIUrp4ejXrzSClRx3ldJlhaOauvblJqZEPb/7HR32gLZT45lgOXFg==
dependencies:
common-tags "^1.4.0"
invariant "^2.2.2"
lodash.mergewith "^4.6.0"
path-exists "^4.0.0"
"@types/babel-plugin-tester" "^9.0.0"
lodash.mergewith "^4.6.2"
prettier "^2.0.1"
strip-indent "^3.0.0"

babel-plugin-transform-async-to-generator@^6.22.0:
Expand Down Expand Up @@ -9393,7 +9452,7 @@ lodash.merge@^4.6.0, lodash.merge@^4.6.2:
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"
integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==

lodash.mergewith@^4.6.0:
lodash.mergewith@^4.6.2:
version "4.6.2"
resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.2.tgz#617121f89ac55f59047c7aec1ccd6654c6590f55"
integrity sha512-GK3g5RPZWTRSeLSpgP8Xhra+pnjBC56q9FZYe1d5RN3TJ35dbkGy3YqBSMbyCrlbi+CM9Z3Jk5yTL7RCsqboyQ==
Expand Down Expand Up @@ -10921,6 +10980,11 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=

prettier@^2.0.1:
version "2.2.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.2.0.tgz#8a03c7777883b29b37fb2c4348c66a78e980418b"
integrity sha512-yYerpkvseM4iKD/BXLYUkQV5aKt4tQPqaGW6EsZjzyu0r7sVZZNPJW4Y8MyKmicp6t42XUPcBVA+H6sB3gqndw==

printf@^0.5.1:
version "0.5.2"
resolved "https://registry.yarnpkg.com/printf/-/printf-0.5.2.tgz#8546e01a1f647b1dff510ae92bdc92beb8c9b2f9"
Expand Down

0 comments on commit 7ed7ab0

Please sign in to comment.