airwallex-payment-elements
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -1,2 +0,2 @@ | ||
import { css, LitElement, html } from 'lit-element'; | ||
import { css, html, LitElement } from 'lit-element'; | ||
const CHECKOUT_IFRAME_NAME = 'airwallex_checkout_frame'; | ||
@@ -14,3 +14,3 @@ export class Airwallex extends LitElement { | ||
cancelUrl: { type: String }, | ||
errorUrl: { type: String }, | ||
errorUrl: { type: String } | ||
}; | ||
@@ -22,9 +22,10 @@ } | ||
width: 100%; | ||
height: 600px; | ||
height: 950px; | ||
} | ||
iframe { | ||
width: 100%; | ||
height: 550px; | ||
height: 950px; | ||
margin: 4px; | ||
}`; | ||
} | ||
`; | ||
} | ||
@@ -61,3 +62,3 @@ checkoutEventHandler(event) { | ||
<iframe | ||
frameBorder="0" | ||
frameborder="0" | ||
allowtransparency="true" | ||
@@ -64,0 +65,0 @@ importance="high" |
{ | ||
"name": "airwallex-payment-elements", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"main": "dist/index.js", | ||
@@ -21,2 +21,8 @@ "module": "dist/index.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.5.5", | ||
"@webcomponents/webcomponentsjs": "^2.2.10", | ||
"core-js": "^3.2.0", | ||
"husky": "^3.0.3", | ||
"lint-staged": "^9.2.1", | ||
"prettier": "^1.18.2", | ||
"rollup": "^1.19.4", | ||
@@ -31,11 +37,27 @@ "rollup-plugin-analyzer": "^3.1.2", | ||
"tslint": "^5.18.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"typescript": "^3.5.3", | ||
"@babel/core": "^7.5.5", | ||
"@webcomponents/webcomponentsjs": "^2.2.10", | ||
"core-js": "^3.2.0" | ||
"tslint-plugin-prettier": "^2.0.1", | ||
"typescript": "^3.5.3" | ||
}, | ||
"dependencies": { | ||
"lit-element": "^2.2.1" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"prettier": { | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"arrowParens": "always", | ||
"trailingComma": "none" | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { css, LitElement, html } from 'lit-element'; | ||
import { css, html, LitElement } from 'lit-element'; | ||
@@ -21,3 +21,3 @@ const CHECKOUT_IFRAME_NAME = 'airwallex_checkout_frame'; | ||
cancelUrl: { type: String }, | ||
errorUrl: { type: String }, | ||
errorUrl: { type: String } | ||
}; | ||
@@ -29,9 +29,10 @@ } | ||
width: 100%; | ||
height: 600px; | ||
height: 950px; | ||
} | ||
iframe { | ||
width: 100%; | ||
height: 550px; | ||
height: 950px; | ||
margin: 4px; | ||
}`; | ||
} | ||
`; | ||
} | ||
@@ -68,3 +69,3 @@ checkoutEventHandler(event: MessageEvent) { | ||
<iframe | ||
frameBorder="0" | ||
frameborder="0" | ||
allowtransparency="true" | ||
@@ -75,9 +76,3 @@ importance="high" | ||
allowpaymentrequest="true" | ||
src="https://${ | ||
this.host | ||
}/checkout/${ | ||
this.paymentId | ||
}?origin=${ | ||
window.location.origin | ||
}" | ||
src="https://${this.host}/checkout/${this.paymentId}?origin=${window.location.origin}" | ||
title="Secure airwallex payment frame" | ||
@@ -84,0 +79,0 @@ /> |
@@ -69,4 +69,4 @@ { | ||
"include": [ | ||
"src/**/*" | ||
"src/*" | ||
] | ||
} |
{ | ||
"extends": ["tslint:latest", "tslint-eslint-rules"], | ||
"extends": ["tslint:latest", "tslint-eslint-rules", "tslint-plugin-prettier", "tslint-config-prettier"], | ||
"rules": { | ||
"member-access": false, | ||
"ordered-imports": false, | ||
"object-literal-sort-keys": false, | ||
"quotemark": [true, "single" ], | ||
"max-line-length": [true, { "limit": 120, "ignore-pattern": "([A-Z,])?([0-9])+([.| ])?"} ], | ||
@@ -9,0 +7,0 @@ "no-submodule-imports": [true, "core-js", "@webcomponents"], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
2824974
2940
19
1