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

@seamapi/http

Package Overview
Dependencies
Maintainers
6
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@seamapi/http - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

6

lib/seam/connect/client.d.ts

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

import { type Axios, type AxiosRequestConfig } from 'axios';
import { type AxiosInstance, type AxiosRequestConfig } from 'axios';
import { type AxiosRetry } from 'axios-retry';
export type Client = Axios;
export type Client = AxiosInstance;
export interface ClientOptions {

@@ -10,3 +10,3 @@ axiosOptions?: AxiosRequestConfig;

type AxiosRetryConfig = Parameters<AxiosRetry>[1];
export declare const createClient: (options: ClientOptions) => Axios;
export declare const createClient: (options: ClientOptions) => AxiosInstance;
export {};
export * from './options.js';
export * from './routes//index.js';
export * from './seam-http.js';
export * from './options.js';
export * from './routes//index.js';
export * from './seam-http.js';
//# sourceMappingURL=index.js.map

@@ -6,4 +6,6 @@ import type { Client, ClientOptions } from './client.js';

}
export type SeamHttpFromPublishableKeyOptions = SeamHttpCommonOptions;
export type SeamHttpOptionsFromEnv = SeamHttpCommonOptions;
export interface SeamHttpFromPublishableKeyOptions extends SeamHttpCommonOptions {
}
export interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {
}
export interface SeamHttpOptionsWithClient {

@@ -10,0 +12,0 @@ client: Client;

{
"name": "@seamapi/http",
"version": "0.2.0",
"version": "0.2.1",
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",

@@ -55,2 +55,3 @@ "type": "module",

"typecheck": "tsc",
"docs:build": "typedoc",
"test": "c8 ava",

@@ -92,3 +93,3 @@ "pretest": "tsx src/index.ts",

"devDependencies": {
"@seamapi/fake-seam-connect": "^1.21.0",
"@seamapi/fake-seam-connect": "^1.22.0",
"@seamapi/types": "^1.24.0",

@@ -115,4 +116,5 @@ "@types/eslint": "^8.44.2",

"type-fest": "^4.3.1",
"typedoc": "^0.25.2",
"typescript": "^5.1.0"
}
}

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

import axios, { type Axios, type AxiosRequestConfig } from 'axios'
import axios, { type AxiosInstance, type AxiosRequestConfig } from 'axios'
import axiosRetry, { type AxiosRetry, exponentialDelay } from 'axios-retry'

@@ -6,3 +6,3 @@

export type Client = Axios
export type Client = AxiosInstance

@@ -17,3 +17,3 @@ export interface ClientOptions {

export const createClient = (options: ClientOptions): Axios => {
export const createClient = (options: ClientOptions): AxiosInstance => {
if (options.client != null) return options.client

@@ -20,0 +20,0 @@

export * from './options.js'
export * from './routes//index.js'
export * from './seam-http.js'

@@ -13,5 +13,6 @@ import type { Client, ClientOptions } from './client.js'

export type SeamHttpFromPublishableKeyOptions = SeamHttpCommonOptions
export interface SeamHttpFromPublishableKeyOptions
extends SeamHttpCommonOptions {}
export type SeamHttpOptionsFromEnv = SeamHttpCommonOptions
export interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {}

@@ -18,0 +19,0 @@ export interface SeamHttpOptionsWithClient {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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