@ozura/elements 1.3.0-next.60 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +1453 -1453
- package/dist/frame/element-frame.html +22 -22
- package/dist/frame/element-frame.js +0 -1
- package/dist/frame/tokenizer-frame.html +11 -11
- package/dist/frame/tokenizer-frame.js +2 -3
- package/dist/oz-elements.esm.js +1 -2
- package/dist/oz-elements.umd.js +1 -2
- package/dist/react/index.cjs.js +1 -1
- package/dist/react/index.cjs.js.map +1 -1
- package/dist/react/index.esm.js +1 -1
- package/dist/react/index.esm.js.map +1 -1
- package/dist/server/index.cjs.js +2 -2
- package/dist/server/index.cjs.js.map +1 -1
- package/dist/server/index.esm.js +2 -2
- package/dist/server/index.esm.js.map +1 -1
- package/dist/vue/index.cjs.js +1 -1
- package/dist/vue/index.cjs.js.map +1 -1
- package/dist/vue/index.esm.js +1 -1
- package/dist/vue/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/frame/element-frame.js.map +0 -1
- package/dist/frame/tokenizer-frame.js.map +0 -1
- package/dist/oz-elements.esm.js.map +0 -1
- package/dist/oz-elements.umd.js.map +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; connect-src 'none'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com https://use.typekit.net https://pro.fontawesome.com https://cdn.jsdelivr.net https://use.fontawesome.com; font-src https://fonts.gstatic.com https://fonts.googleapis.com https://use.typekit.net https://pro.fontawesome.com https://cdn.jsdelivr.net https://use.fontawesome.com; base-uri 'none'; form-action 'none';" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Secure Input</title>
|
|
8
|
-
<style>
|
|
9
|
-
*, *::before, *::after { box-sizing: border-box; }
|
|
10
|
-
html, body {
|
|
11
|
-
margin: 0;
|
|
12
|
-
padding: 0;
|
|
13
|
-
background: transparent;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
height: 100%;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<script src="./element-frame.js"></script>
|
|
21
|
-
</body>
|
|
22
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; connect-src 'none'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com https://use.typekit.net https://pro.fontawesome.com https://cdn.jsdelivr.net https://use.fontawesome.com; font-src https://fonts.gstatic.com https://fonts.googleapis.com https://use.typekit.net https://pro.fontawesome.com https://cdn.jsdelivr.net https://use.fontawesome.com; base-uri 'none'; form-action 'none';" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Secure Input</title>
|
|
8
|
+
<style>
|
|
9
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
10
|
+
html, body {
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
background: transparent;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<script src="./element-frame.js" integrity="sha384-xpV1wS1ZIxuDGHUg8WQAbQr94m8oGwI4CutCvD37d7sacy9sRmi4CA/EU62Mrd2I" crossorigin="anonymous"></script>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; connect-src https://
|
|
6
|
-
<title>Ozura Tokenizer</title>
|
|
7
|
-
</head>
|
|
8
|
-
<body>
|
|
9
|
-
<script src="./tokenizer-frame.js"></script>
|
|
10
|
-
</body>
|
|
11
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; connect-src https://api.ozuravault.com; base-uri 'none'; form-action 'none';" />
|
|
6
|
+
<title>Ozura Tokenizer</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<script src="./tokenizer-frame.js" integrity="sha384-jKzyFta4CjrMb8YW6wX9/MzSUp55uqUytZeya/g55SgF9IvsJ39Jveh4AhwszApc" crossorigin="anonymous"></script>
|
|
10
|
+
</body>
|
|
11
|
+
</html>
|
|
@@ -38,13 +38,13 @@ var _OzTokenizerFrame = (function (exports) {
|
|
|
38
38
|
* assembles the vault tokenization payload, and POSTs it directly to the
|
|
39
39
|
* vault API. The merchant page never sees raw card data.
|
|
40
40
|
*
|
|
41
|
-
* The vault URL is determined by "https://
|
|
41
|
+
* The vault URL is determined by "https://api.ozuravault.com", injected at build time.
|
|
42
42
|
* The tokenizer ignores any apiUrl sent by the SDK in OZ_TOKENIZE messages —
|
|
43
43
|
* an attacker who XSSes the merchant page cannot redirect where card data is
|
|
44
44
|
* sent because the destination is hardcoded in this Ozura-controlled bundle.
|
|
45
45
|
*/
|
|
46
46
|
var _a;
|
|
47
|
-
const VAULT_API_URL = "https://
|
|
47
|
+
const VAULT_API_URL = "https://api.ozuravault.com";
|
|
48
48
|
/**
|
|
49
49
|
* Validates and normalises a `parentOrigin` value supplied via URL hash params.
|
|
50
50
|
*
|
|
@@ -610,4 +610,3 @@ var _OzTokenizerFrame = (function (exports) {
|
|
|
610
610
|
return exports;
|
|
611
611
|
|
|
612
612
|
})({});
|
|
613
|
-
//# sourceMappingURL=tokenizer-frame.js.map
|
package/dist/oz-elements.esm.js
CHANGED
|
@@ -1077,7 +1077,7 @@ function isBankAccountMetadata(v) {
|
|
|
1077
1077
|
const r = v;
|
|
1078
1078
|
return typeof r.last4 === 'string' && typeof r.routingNumberLast4 === 'string';
|
|
1079
1079
|
}
|
|
1080
|
-
const DEFAULT_FRAME_BASE_URL = "https://
|
|
1080
|
+
const DEFAULT_FRAME_BASE_URL = "https://elements.ozura.com";
|
|
1081
1081
|
/**
|
|
1082
1082
|
* The main entry point for OzElements. Creates and manages iframe-based
|
|
1083
1083
|
* card input elements that keep raw card data isolated from the merchant page.
|
|
@@ -2273,4 +2273,3 @@ class OzVault {
|
|
|
2273
2273
|
_OzVault_waxKey = new WeakMap();
|
|
2274
2274
|
|
|
2275
2275
|
export { OzElement, OzError, OzVault, createSessionFetcher as createFetchWaxKey, createSessionFetcher, normalizeBankVaultError, normalizeCardSaleError, normalizeVaultError };
|
|
2276
|
-
//# sourceMappingURL=oz-elements.esm.js.map
|
package/dist/oz-elements.umd.js
CHANGED
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
const r = v;
|
|
1084
1084
|
return typeof r.last4 === 'string' && typeof r.routingNumberLast4 === 'string';
|
|
1085
1085
|
}
|
|
1086
|
-
const DEFAULT_FRAME_BASE_URL = "https://
|
|
1086
|
+
const DEFAULT_FRAME_BASE_URL = "https://elements.ozura.com";
|
|
1087
1087
|
/**
|
|
1088
1088
|
* The main entry point for OzElements. Creates and manages iframe-based
|
|
1089
1089
|
* card input elements that keep raw card data isolated from the merchant page.
|
|
@@ -2288,4 +2288,3 @@
|
|
|
2288
2288
|
exports.normalizeVaultError = normalizeVaultError;
|
|
2289
2289
|
|
|
2290
2290
|
}));
|
|
2291
|
-
//# sourceMappingURL=oz-elements.umd.js.map
|
package/dist/react/index.cjs.js
CHANGED
|
@@ -1027,7 +1027,7 @@ function isBankAccountMetadata(v) {
|
|
|
1027
1027
|
const r = v;
|
|
1028
1028
|
return typeof r.last4 === 'string' && typeof r.routingNumberLast4 === 'string';
|
|
1029
1029
|
}
|
|
1030
|
-
const DEFAULT_FRAME_BASE_URL = "https://
|
|
1030
|
+
const DEFAULT_FRAME_BASE_URL = "https://elements.ozura.com";
|
|
1031
1031
|
/**
|
|
1032
1032
|
* The main entry point for OzElements. Creates and manages iframe-based
|
|
1033
1033
|
* card input elements that keep raw card data isolated from the merchant page.
|