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
10
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 2.1.0 to 2.2.0

types/models/bin-details.d.ts

2

package.json
{
"name": "@basis-theory/basis-theory-js",
"version": "2.1.0",
"version": "2.2.0",
"repository": "https://github.com/Basis-Theory/basis-theory-js",

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

@@ -8,6 +8,2 @@ import { BasisTheoryServiceOptions } from '../service';

update(id: string, model: UpdateToken, options?: RequestOptions): Promise<Token>;
createAssociation(parentId: string, childId: string, options?: RequestOptions): Promise<void>;
deleteAssociation(parentId: string, childId: string, options?: RequestOptions): Promise<void>;
createChild(parentId: string, token: CreateToken, options?: RequestOptions): Promise<Token>;
listChildren(parentId: string, query?: ListTokensQuery, options?: RequestOptions): Promise<PaginatedList<Token>>;
search(searchRequest: SearchTokensRequest, options?: RequestOptions): Promise<PaginatedList<Token>>;

@@ -14,0 +10,0 @@ readonly client: import("axios").AxiosInstance;

@@ -43,22 +43,2 @@ "use strict";

async createAssociation(parentId, childId, options) {
const url = `/${parentId}/children/${childId}`;
await this.client.post(url, {}, (0, _common.createRequestConfig)(options));
}
async deleteAssociation(parentId, childId, options) {
const url = `/${parentId}/children/${childId}`;
await this.client.delete(url, (0, _common.createRequestConfig)(options));
}
createChild(parentId, token, options) {
const url = `/${parentId}/children`;
return this.client.post(url, token, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor);
}
listChildren(parentId, query = {}, options = {}) {
const url = `/${parentId}/children${(0, _common.getQueryParams)(query)}`;
return this.client.get(url, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor);
}
search(searchRequest, options) {

@@ -65,0 +45,0 @@ return this.client.post('/search', searchRequest, (0, _common.createRequestConfig)(options)).then(_utils.dataExtractor);

@@ -13,2 +13,3 @@ export * from './tokens';

export * from './cards';
export * from './bin-details';
export * from './util';

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

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

@@ -165,0 +178,0 @@

@@ -0,1 +1,2 @@

import type { BinDetails } from './bin-details';
import type { Primitive, TokenBase } from './shared';

@@ -31,2 +32,5 @@ declare const DATA_CLASSIFICATIONS: readonly ["general", "bank", "pci", "pii"];

}
interface TokenEnrichments {
binDetails?: BinDetails;
}
interface Token<DataType = Primitive> extends TokenBase {

@@ -41,2 +45,3 @@ data: TokenData<DataType>;

expiresAt?: string;
enrichments?: TokenEnrichments;
}

@@ -51,3 +56,3 @@ type CreateToken<DataType = Primitive> = Pick<Token<DataType>, 'type' | 'data' | 'privacy' | 'containers' | 'metadata' | 'encryption' | 'searchIndexes' | 'fingerprintExpression' | 'mask' | 'expiresAt'> & {

}>;
export type { Token, CreateToken, UpdateToken, DataArray, DataObject, TokenData, DataClassification, DataImpactLevel, DataRestrictionPolicy, };
export type { Token, TokenEnrichments, CreateToken, UpdateToken, DataArray, DataObject, TokenData, DataClassification, DataImpactLevel, DataRestrictionPolicy, };
export { DATA_CLASSIFICATIONS, DATA_IMPACT_LEVELS, DATA_RESTRICTION_POLICIES };

@@ -14,8 +14,4 @@ import type { Token, CreateToken, TokenType, UpdateToken } from '../../../types/models';

interface Tokens extends Create<Token, CreateToken>, Update<Token, UpdateToken>, Retrieve<Token<any>>, Delete, List<Token, ListTokensQuery> {
createAssociation(parentId: string, childId: string, options?: RequestOptions): Promise<void>;
deleteAssociation(parentId: string, childId: string, options?: RequestOptions): Promise<void>;
createChild(parentId: string, token: CreateToken, options?: RequestOptions): Promise<Token>;
listChildren(parentId: string, query?: ListTokensQuery, options?: RequestOptions): Promise<PaginatedList<Token>>;
search(searchRequest: SearchTokensRequest, options?: RequestOptions): Promise<PaginatedList<Token>>;
}
export type { Tokens, ListTokensQuery, SearchTokensRequest };
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