New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@basis-theory/basis-theory-js

Package Overview
Dependencies
Maintainers
0
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basis-theory/basis-theory-js - npm Package Compare versions

Comparing version 4.8.0 to 4.9.0

elements/services/token-intents.d.ts

6

BasisTheory.d.ts

@@ -1,4 +0,4 @@

import type { BasisTheoryElements, CardElement, CardExpirationDateElement, CardNumberElement, CardVerificationCodeElement, CreateCardElementOptions, CreateCardExpirationDateElementOptions, CreateCardNumberElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, TextElement, TokenizeData as ElementsTokenizeData, Tokens as ElementsTokens } from './types/elements';
import type { BasisTheoryElements, CardElement, CardExpirationDateElement, CardNumberElement, CardVerificationCodeElement, CreateCardElementOptions, CreateCardExpirationDateElementOptions, CreateCardNumberElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, TextElement, TokenizeData as ElementsTokenizeData, Tokens as ElementsTokens, TokenIntents as ElementsTokenIntents } from './types/elements';
import type { TokenizeData } from './types/models';
import type { ApplicationKeys, Applications, ApplicationTemplates, BasisTheory as IBasisTheory, BasisTheoryInit, BasisTheoryInitOptions, BasisTheoryInitOptionsWithElements, BasisTheoryInitOptionsWithoutElements, HttpClient, Logs, Permissions, Proxies, Proxy, ReactorFormulas, Reactors, RequestOptions, Sessions, Tenants, ThreeDS, Tokens } from './types/sdk';
import type { ApplicationKeys, Applications, ApplicationTemplates, BasisTheory as IBasisTheory, BasisTheoryInit, BasisTheoryInitOptions, BasisTheoryInitOptionsWithElements, BasisTheoryInitOptionsWithoutElements, HttpClient, Logs, Permissions, Proxies, Proxy, ReactorFormulas, Reactors, RequestOptions, Sessions, Tenants, ThreeDS, TokenIntents, Tokens } from './types/sdk';
export declare class BasisTheory implements BasisTheoryInit, IBasisTheory, BasisTheoryElements {

@@ -22,2 +22,3 @@ private _initStatus;

private _tokens?;
private _tokenIntents?;
init(apiKey: string | undefined, options?: BasisTheoryInitOptionsWithoutElements): Promise<IBasisTheory>;

@@ -51,2 +52,3 @@ init(apiKey: string | undefined, options: BasisTheoryInitOptionsWithElements): Promise<IBasisTheory & BasisTheoryElements>;

get threeds(): ThreeDS;
get tokenIntents(): TokenIntents & ElementsTokenIntents;
/**

@@ -53,0 +55,0 @@ * @deprecated

@@ -152,2 +152,7 @@ "use strict";

});
this._tokenIntents = new ((0, _elements.delegateTokenIntents)(this._elements))({
apiKey,
baseURL: new URL(_common.CLIENT_BASE_PATHS.tokenIntents, baseUrl).toString(),
appInfo
});
this._initStatus = 'done';

@@ -264,2 +269,6 @@ } catch (error) {

}
get tokenIntents() {
return (0, _common.assertInit)(this._tokenIntents);
}
/* eslint-enable accessor-pairs */

@@ -266,0 +275,0 @@

@@ -43,3 +43,4 @@ "use strict";

sessions: 'sessions',
threeds: '3ds'
threeds: '3ds',
tokenIntents: 'token-intents'
};

@@ -46,0 +47,0 @@ exports.CLIENT_BASE_PATHS = CLIENT_BASE_PATHS;

export * from './tokenize';
export * from './tokens';
export * from './proxy';
export * from './token-intents';

@@ -44,2 +44,15 @@ "use strict";

});
});
var _tokenIntents = require("./token-intents");
Object.keys(_tokenIntents).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _tokenIntents[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _tokenIntents[key];
}
});
});
{
"name": "@basis-theory/basis-theory-js",
"version": "4.8.0",
"version": "4.9.0",
"repository": "https://github.com/Basis-Theory/basis-theory-js",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

import type { HttpClient } from '../../types/sdk';
import type { CardElementEvents, CardExpirationDateElementEvents, CardNumberElementEvents, CardVerificationCodeElementEvents, ElementEventListener, EventType, Subscription, TextElementEvents } from './events';
import type { CardElementValue, CardExpirationDateValue, CreateCardElementOptions, CreateCardExpirationDateElementOptions, CreateCardNumberElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, UpdateCardElementOptions, UpdateCardExpirationDateElementOptions, UpdateCardNumberElementOptions, UpdateCardVerificationCodeElementOptions, UpdateTextElementOptions } from './options';
import type { Proxy, Tokenize, Tokens } from './services';
import type { Proxy, Tokenize, Tokens, TokenIntents } from './services';
import type { CardMetadata, DataElementReference, ElementMetadata } from './shared';

@@ -53,2 +53,3 @@ interface BaseElement<UpdateOptions, ElementEvents> {

proxy: Proxy;
tokenIntents: TokenIntents;
createElement(type: 'card', options?: CreateCardElementOptions): CardElement;

@@ -55,0 +56,0 @@ createElement(type: 'text', options: CreateTextElementOptions): TextElement;

export * from './tokenize';
export * from './tokens';
export * from './proxy';
export * from './token-intents';

@@ -44,2 +44,15 @@ "use strict";

});
});
var _tokenIntents = require("./token-intents");
Object.keys(_tokenIntents).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _tokenIntents[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _tokenIntents[key];
}
});
});

@@ -15,1 +15,2 @@ export * from './tokens';

export * from './util';
export * from './token-intents';

@@ -187,2 +187,15 @@ "use strict";

});
});
var _tokenIntents = require("./token-intents");
Object.keys(_tokenIntents).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _tokenIntents[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _tokenIntents[key];
}
});
});
import type { BasisTheoryElements } from '../../types/elements';
import type { Applications, ApplicationTemplates, HttpClient, Logs, Permissions, Proxies, Proxy, ReactorFormulas, Reactors, Sessions, Tenants, Tokenize, Tokens, ThreeDS } from './services';
import type { Applications, ApplicationTemplates, HttpClient, Logs, Permissions, Proxies, Proxy, ReactorFormulas, Reactors, Sessions, Tenants, Tokenize, Tokens, ThreeDS, TokenIntents } from './services';
import { ApplicationKeys } from './services/applicationKeys';

@@ -46,2 +46,3 @@ interface ApplicationInfo {

threeds: ThreeDS;
tokenIntents: TokenIntents;
}

@@ -48,0 +49,0 @@ interface ClientUserAgent {

@@ -17,1 +17,2 @@ export * from './shared';

export * from './threeds';
export * from './token-intents';

@@ -213,2 +213,15 @@ "use strict";

});
});
var _tokenIntents = require("./token-intents");
Object.keys(_tokenIntents).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _tokenIntents[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _tokenIntents[key];
}
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc