@wirexapp/card-sdk-web 0.1.0-beta.0 → 0.1.0-beta.1
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/CHANGELOG.md +19 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @wirexapp/card-sdk-web
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 737c0f8: Named environments replace free-form frame origins: pass
|
|
8
|
+
`environment: 'dev' | 'uat' | 'prod'` (default `'prod'`) and the SDK resolves
|
|
9
|
+
the baked-in Wirex frame origin — origins are no longer partner input.
|
|
10
|
+
`frameOrigin` remains as an explicit local-development override that takes
|
|
11
|
+
precedence; unknown environments throw at creation time.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [737c0f8]
|
|
16
|
+
- @wirexapp/card-sdk-core@0.1.0-beta.1
|
|
17
|
+
- @wirexapp/card-topup-web@0.1.0-beta.1
|
|
18
|
+
- @wirexapp/card-oct-web@0.1.0-beta.1
|
|
19
|
+
- @wirexapp/card-reveal-web@0.1.0-beta.1
|
|
20
|
+
- @wirexapp/card-3ds-web@0.1.0-beta.1
|
|
21
|
+
|
|
3
22
|
## 0.1.0-beta.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `@wirexapp/card-topup-web`, `@wirexapp/card-oct-web` or
|
|
7
7
|
* `@wirexapp/card-reveal-web` directly.
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { buildFrameUrl, resolveFrameOrigin, PciCollectElement, PciCollectGroup, } from '@wirexapp/card-sdk-core';
|
|
10
10
|
import { PciRevealElement } from '@wirexapp/card-reveal-web';
|
|
11
11
|
export * from '@wirexapp/card-3ds-web';
|
|
12
12
|
export * from '@wirexapp/card-sdk-core';
|
|
@@ -16,7 +16,7 @@ export * from '@wirexapp/card-topup-web';
|
|
|
16
16
|
/** Entry point. Mirrors the vendor pattern (Stripe/VGS): the npm package is a
|
|
17
17
|
* thin, CHD-free loader; everything sensitive lives in the frames. */
|
|
18
18
|
export const createPciSdk = (config) => {
|
|
19
|
-
|
|
19
|
+
resolveFrameOrigin(config); // validate early — unknown environment throws here, not at first mount
|
|
20
20
|
return {
|
|
21
21
|
createCollectElement: elementConfig => new PciCollectElement(buildFrameUrl(config, 'collect'), elementConfig),
|
|
22
22
|
createCollectGroup: groupConfig => new PciCollectGroup(buildFrameUrl(config, 'collect-field'), groupConfig),
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAIhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAA+B,MAAM,2BAA2B,CAAC;AAE1F,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AAUzC;uEACuE;AACvE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,MAAoB,EAAU,EAAE;IAC3D,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,uEAAuE;IACnG,OAAO;QACL,oBAAoB,EAAE,aAAa,CAAC,EAAE,CACpC,IAAI,iBAAiB,CAAC,aAAa,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,CAAC;QACxE,kBAAkB,EAAE,WAAW,CAAC,EAAE,CAChC,IAAI,eAAe,CAAC,aAAa,CAAC,MAAM,EAAE,eAAe,CAAC,EAAE,WAAW,CAAC;QAC1E,mBAAmB,EAAE,aAAa,CAAC,EAAE,CACnC,IAAI,gBAAgB,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;KACvE,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirexapp/card-sdk-web",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Umbrella over the Wirex PCI card SDK capability packages (topup, oct, reveal) with the createPciSdk factory. CHD-free loader.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"prepublishOnly": "yarn clean && yarn build"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@wirexapp/card-3ds-web": "0.1.0-beta.
|
|
41
|
-
"@wirexapp/card-oct-web": "0.1.0-beta.
|
|
42
|
-
"@wirexapp/card-reveal-web": "0.1.0-beta.
|
|
43
|
-
"@wirexapp/card-sdk-core": "0.1.0-beta.
|
|
44
|
-
"@wirexapp/card-topup-web": "0.1.0-beta.
|
|
40
|
+
"@wirexapp/card-3ds-web": "0.1.0-beta.1",
|
|
41
|
+
"@wirexapp/card-oct-web": "0.1.0-beta.1",
|
|
42
|
+
"@wirexapp/card-reveal-web": "0.1.0-beta.1",
|
|
43
|
+
"@wirexapp/card-sdk-core": "0.1.0-beta.1",
|
|
44
|
+
"@wirexapp/card-topup-web": "0.1.0-beta.1"
|
|
45
45
|
}
|
|
46
46
|
}
|