Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apimatic/core

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apimatic/core - npm Package Compare versions

Comparing version 0.10.13 to 0.10.14

10

lib/http/requestBuilder.d.ts

@@ -11,3 +11,2 @@ /// <reference types="node" />

export declare type RequestBuilderFactory<BaseUrlParamType, AuthParams> = (httpMethod: HttpMethod, path?: string) => RequestBuilder<BaseUrlParamType, AuthParams>;
declare type QueryValue = string | string[] | number | number[] | bigint | Array<bigint> | boolean | boolean[] | null | undefined;
export declare function skipEncode<T extends PathTemplatePrimitiveTypes>(value: T): SkipEncode<T>;

@@ -38,4 +37,4 @@ export declare type ApiErrorConstructor = new (response: HttpContext, message: string) => any;

headers(headersToMerge: Record<string, string>): void;
query(name: string, value: QueryValue | Record<string, QueryValue>, prefixFormat?: ArrayPrefixFunction): void;
query(parameters?: Record<string, QueryValue> | null, prefixFormat?: ArrayPrefixFunction): void;
query(name: string, value: unknown | Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void;
query(parameters?: Record<string, unknown> | null, prefixFormat?: ArrayPrefixFunction): void;
form(parameters: Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void;

@@ -103,4 +102,4 @@ formData(parameters: Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void;

headers(headersToMerge: Record<string, string>): void;
query(name: string, value: QueryValue | Record<string, QueryValue>, prefixFormat?: ArrayPrefixFunction): void;
query(parameters?: Record<string, QueryValue> | null, prefixFormat?: ArrayPrefixFunction): void;
query(name: string, value: unknown | Record<string, unknown>, prefixFormat?: ArrayPrefixFunction): void;
query(parameters?: Record<string, unknown> | null, prefixFormat?: ArrayPrefixFunction): void;
text(body: string | number | bigint | boolean | null | undefined): void;

@@ -133,3 +132,2 @@ json(data: unknown): void;

export declare function createRequestBuilderFactory<BaseUrlParamType, AuthParams>(httpClient: HttpClientInterface, baseUrlProvider: (arg?: BaseUrlParamType) => string, apiErrorConstructor: ApiErrorConstructor, authenticationProvider: AuthenticatorInterface<AuthParams>, retryConfig: RetryConfiguration, xmlSerializer?: XmlSerializerInterface, apiLogger?: ApiLoggerInterface): RequestBuilderFactory<BaseUrlParamType, AuthParams>;
export {};
//# sourceMappingURL=requestBuilder.d.ts.map

4

package.json
{
"name": "@apimatic/core",
"author": "APIMatic Ltd.",
"version": "0.10.13",
"version": "0.10.14",
"license": "MIT",

@@ -86,3 +86,3 @@ "sideEffects": false,

},
"gitHead": "e6eca29f8d49f29e5aee126152b0a50da23824dc"
"gitHead": "5aa53ee2f99b9893d1ff7891fa5b3a48568d64a1"
}

@@ -67,14 +67,2 @@ import JSONBig from '@apimatic/json-bigint';

type QueryValue =
| string
| string[]
| number
| number[]
| bigint
| Array<bigint>
| boolean
| boolean[]
| null
| undefined;
export function skipEncode<T extends PathTemplatePrimitiveTypes>(

@@ -120,7 +108,7 @@ value: T

name: string,
value: QueryValue | Record<string, QueryValue>,
value: unknown | Record<string, unknown>,
prefixFormat?: ArrayPrefixFunction
): void;
query(
parameters?: Record<string, QueryValue> | null,
parameters?: Record<string, unknown> | null,
prefixFormat?: ArrayPrefixFunction

@@ -292,11 +280,11 @@ ): void;

name: string,
value: QueryValue | Record<string, QueryValue>,
value: unknown | Record<string, unknown>,
prefixFormat?: ArrayPrefixFunction
): void;
public query(
parameters?: Record<string, QueryValue> | null,
parameters?: Record<string, unknown> | null,
prefixFormat?: ArrayPrefixFunction
): void;
public query(
nameOrParameters: string | Record<string, QueryValue> | null | undefined,
nameOrParameters: string | Record<string, unknown> | null | undefined,
value?: unknown,

@@ -303,0 +291,0 @@ prefixFormat?: ArrayPrefixFunction

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