@basis-theory/basis-theory-js 1.58.0 → 1.59.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/BasisTheory.js CHANGED
@@ -19,8 +19,6 @@ var _permissions = require("./permissions");
19
19
 
20
20
  var _proxies = require("./proxies");
21
21
 
22
- var _proxy = require("./proxy");
23
-
24
22
  var _reactorFormulas = require("./reactor-formulas");
25
23
 
26
24
  var _reactors = require("./reactors");
@@ -118,7 +116,7 @@ class BasisTheory {
118
116
  baseURL: new URL(_common.CLIENT_BASE_PATHS.proxies, baseUrl).toString(),
119
117
  appInfo
120
118
  });
121
- this._proxy = new _proxy.BasisTheoryProxy({
119
+ this._proxy = new ((0, _elements.delegateProxy)(this._elements))({
122
120
  apiKey,
123
121
  baseURL: new URL(_common.CLIENT_BASE_PATHS.proxy, baseUrl).toString(),
124
122
  appInfo
@@ -1,2 +1,3 @@
1
1
  export * from './tokenize';
2
2
  export * from './tokens';
3
+ export * from './proxy';
@@ -28,4 +28,17 @@ Object.keys(_tokens).forEach(function (key) {
28
28
  return _tokens[key];
29
29
  }
30
30
  });
31
+ });
32
+
33
+ var _proxy = require("./proxy");
34
+
35
+ Object.keys(_proxy).forEach(function (key) {
36
+ if (key === "default" || key === "__esModule") return;
37
+ if (key in exports && exports[key] === _proxy[key]) return;
38
+ Object.defineProperty(exports, key, {
39
+ enumerable: true,
40
+ get: function () {
41
+ return _proxy[key];
42
+ }
43
+ });
31
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "1.58.0",
3
+ "version": "1.59.1",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -12,6 +12,7 @@ declare type ChangeEvent = BaseEvent<'change'> & {
12
12
  declare type CardChangeEvent = ChangeEvent & {
13
13
  cardBrand: Brand;
14
14
  cardLast4?: string;
15
+ cardBin?: string;
15
16
  };
16
17
  declare type InputFocusEvent = BaseEvent<'focus'> & Targeted;
17
18
  declare type InputBlurEvent = BaseEvent<'blur'> & Targeted;