@apimatic/core
Advanced tools
Comparing version 0.10.6 to 0.10.7
@@ -85,3 +85,3 @@ import { __spreadArray, __read, __assign, __awaiter, __generator, __values } from 'tslib'; | ||
DefaultRequestBuilder.prototype.header = function (name, value) { | ||
if (value === undefined) { | ||
if (value === null || typeof value === 'undefined') { | ||
return; | ||
@@ -88,0 +88,0 @@ } |
@@ -36,3 +36,3 @@ /// <reference types="node" /> | ||
contentType(contentTypeHeaderValue: string): void; | ||
header(name: string, value?: string | boolean | number | bigint): void; | ||
header(name: string, value?: string | boolean | number | bigint | null): void; | ||
headers(headersToMerge: Record<string, string>): void; | ||
@@ -101,3 +101,3 @@ query(name: string, value: QueryValue, prefixFormat?: ArrayPrefixFunction): void; | ||
contentType(contentTypeHeaderValue: string): void; | ||
header(name: string, value?: string | boolean | number | bigint): void; | ||
header(name: string, value?: string | boolean | number | bigint | null): void; | ||
headers(headersToMerge: Record<string, string>): void; | ||
@@ -104,0 +104,0 @@ query(name: string, value: QueryValue, prefixFormat?: ArrayPrefixFunction): void; |
@@ -84,3 +84,3 @@ "use strict"; | ||
DefaultRequestBuilder.prototype.header = function (name, value) { | ||
if (value === undefined) { | ||
if (value === null || typeof value === 'undefined') { | ||
return; | ||
@@ -87,0 +87,0 @@ } |
{ | ||
"name": "@apimatic/core", | ||
"author": "APIMatic Ltd.", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
@@ -0,0 +0,0 @@ import { HttpResponse } from '@apimatic/core-interfaces'; |
export * from '@apimatic/core-interfaces'; |
/// <reference lib="dom" /> |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import JSONBig from '@apimatic/json-bigint'; |
@@ -0,0 +0,0 @@ import { SchemaValidationError } from '../schema'; |
@@ -0,0 +0,0 @@ import { ApiResponse, HttpRequest } from '../coreInterfaces'; |
export * from '@apimatic/file-wrapper'; |
export * from '@apimatic/http-headers'; |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ import flatMap from 'lodash.flatmap'; |
export * from '@apimatic/http-query'; |
@@ -119,3 +119,3 @@ import JSONBig from '@apimatic/json-bigint'; | ||
contentType(contentTypeHeaderValue: string): void; | ||
header(name: string, value?: string | boolean | number | bigint): void; | ||
header(name: string, value?: string | boolean | number | bigint | null): void; | ||
headers(headersToMerge: Record<string, string>): void; | ||
@@ -281,5 +281,5 @@ query( | ||
name: string, | ||
value?: string | boolean | number | bigint | ||
value?: string | boolean | number | bigint | null | ||
): void { | ||
if (value === undefined) { | ||
if (value === null || typeof value === 'undefined') { | ||
return; | ||
@@ -286,0 +286,0 @@ } |
@@ -0,0 +0,0 @@ import { getHeader } from './httpHeaders'; |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ // tslint:disable-next-line:no-reference |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ import { LogLevel, LoggerInterface } from '@apimatic/core-interfaces'; |
@@ -0,0 +0,0 @@ import { LogLevel, LoggingOptions } from '@apimatic/core-interfaces'; |
@@ -0,0 +0,0 @@ import { LogLevel, LoggerInterface } from '@apimatic/core-interfaces'; |
@@ -0,0 +0,0 @@ import { LoggerInterface, LogLevel } from '../coreInterfaces'; |
export * from '@apimatic/schema'; |
// tslint:disable-next-line:no-empty-interface | ||
interface Blob {} |
@@ -0,0 +0,0 @@ export interface XmlSerializerInterface { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195504
1