Skip to content

Commit 0e3f5b0

Browse files
committed
Fix Babel runtime
1 parent d3b2ee8 commit 0e3f5b0

File tree

4 files changed

+2223
-1795
lines changed

4 files changed

+2223
-1795
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## v1.0.5 (2018-08-13)
2+
3+
- Upgrade dependencies

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "braintree-web-drop-in-react",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "React component for Braintree Web Drop-In (v3)",
55
"main": "dist/index.js",
66
"scripts": {
@@ -26,16 +26,16 @@
2626
"react-dom": ">=15.1.0"
2727
},
2828
"dependencies": {
29-
"braintree-web-drop-in": "^1.11.0",
30-
"prop-types": ">=15.6.0",
31-
"@noderize/runtime": "^0.3.11"
29+
"braintree-web-drop-in": "^1.12.0",
30+
"prop-types": ">=15.1.0",
31+
"@noderize/runtime": "^0.7.5"
3232
},
3333
"devDependencies": {
34-
"@babel/preset-react": "^7.0.0-beta.40",
35-
"@noderize/scripts": "^0.3.11",
36-
"react": ">=15.1.0",
37-
"react-dom": ">=15.1.0",
38-
"react-test-renderer": "^16.2.0"
34+
"@babel/preset-react": "^7.0.0-rc.1",
35+
"@noderize/scripts": "^0.7.5",
36+
"react": ">=16.4.2",
37+
"react-dom": ">=16.4.2",
38+
"react-test-renderer": "^16.4.2"
3939
},
4040
"noderize": {
4141
"babel": {

src/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import DropIn from "./index";
55
describe("DropIn", () => {
66
it("Calls dropin.create on instantiation", () => {
77
const braintreeWebDropIn = require("braintree-web-drop-in");
8-
braintreeWebDropIn.create = jest.genMockFunction();
8+
braintreeWebDropIn.create = jest.fn();
99

1010
const component = renderer.create(
1111
<DropIn options={{ authorization: "bogus" }} />
@@ -17,7 +17,7 @@ describe("DropIn", () => {
1717

1818
it("Calls teardown on destruction", done => {
1919
const braintreeWebDropIn = require("braintree-web-drop-in");
20-
const teardownMock = jest.genMockFunction();
20+
const teardownMock = jest.fn();
2121
braintreeWebDropIn.create = () =>
2222
new Promise(resolve => {
2323
resolve({ teardown: teardownMock });

0 commit comments

Comments
 (0)