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

@basetime/a2w-api-ts

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basetime/a2w-api-ts - npm Package Compare versions

Comparing version 0.1.22 to 0.1.23

dist/ApiKey.d.ts

28

dist/index.cjs.js

@@ -281,2 +281,30 @@ "use strict";

};
/**
* Returns the API keys for the authenticated organization.
*/
getApiKeys = async () => {
const url = `${_OrganizationsEndpoint.endpoint}/apiKeys`;
return await this.req.fetch(
url,
{
method: "GET"
},
false
);
};
/**
* Returns an API key by ID.
*
* @param id The ID of the API key.
*/
getApiKey = async (id) => {
const url = `${_OrganizationsEndpoint.endpoint}/apiKeys/${id}`;
return await this.req.fetch(
url,
{
method: "GET"
},
false
);
};
};

@@ -283,0 +311,0 @@

1

dist/index.d.ts

@@ -27,1 +27,2 @@ export { default as Client } from './Client';

export type { ScannerInvite } from './ScannerInvite';
export type { ApiKey } from './ApiKey';

@@ -247,2 +247,30 @@ // src/Endpoint.ts

};
/**
* Returns the API keys for the authenticated organization.
*/
getApiKeys = async () => {
const url = `${_OrganizationsEndpoint.endpoint}/apiKeys`;
return await this.req.fetch(
url,
{
method: "GET"
},
false
);
};
/**
* Returns an API key by ID.
*
* @param id The ID of the API key.
*/
getApiKey = async (id) => {
const url = `${_OrganizationsEndpoint.endpoint}/apiKeys/${id}`;
return await this.req.fetch(
url,
{
method: "GET"
},
false
);
};
};

@@ -249,0 +277,0 @@

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

import { ApiKey } from './ApiKey';
import Endpoint from './Endpoint';

@@ -39,2 +40,12 @@ import { Organization } from './Organization';

}>;
/**
* Returns the API keys for the authenticated organization.
*/
getApiKeys: () => Promise<ApiKey[]>;
/**
* Returns an API key by ID.
*
* @param id The ID of the API key.
*/
getApiKey: (id: string) => Promise<ApiKey | null>;
}

2

package.json
{
"name": "@basetime/a2w-api-ts",
"version": "0.1.22",
"version": "0.1.23",
"private": false,

@@ -5,0 +5,0 @@ "description": "Client library that communicates with the addtowallet API.",

Sorry, the diff of this file is not supported yet

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