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

orb-billing

Package Overview
Dependencies
Maintainers
0
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orb-billing - npm Package Compare versions

Comparing version 4.24.0 to 4.25.0

13

CHANGELOG.md
# Changelog
## 4.25.0 (2024-09-29)
Full Changelog: [v4.24.0...v4.25.0](https://github.com/orbcorp/orb-node/compare/v4.24.0...v4.25.0)
### Features
* **api:** OpenAPI spec update via Stainless API ([#352](https://github.com/orbcorp/orb-node/issues/352)) ([8657379](https://github.com/orbcorp/orb-node/commit/8657379197b6950a9ae12d82484e03deea81b3fd))
### Chores
* **internal:** codegen related update ([#350](https://github.com/orbcorp/orb-node/issues/350)) ([842d7ad](https://github.com/orbcorp/orb-node/commit/842d7ad1ca4473d229b1fe335993c52ca98b98d2))
## 4.24.0 (2024-09-26)

@@ -4,0 +17,0 @@

3

core.d.ts

@@ -235,3 +235,4 @@

export declare const isHeadersProtocol: (headers: any) => headers is HeadersProtocol;
export declare const getRequiredHeader: (headers: HeadersLike, header: string) => string;
export declare const getRequiredHeader: (headers: HeadersLike | Headers, header: string) => string;
export declare const getHeader: (headers: HeadersLike | Headers, header: string) => string | undefined;
/**

@@ -238,0 +239,0 @@ * Encodes a string to Base64 format.

@@ -15,3 +15,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isObj = exports.toBase64 = exports.getRequiredHeader = exports.isHeadersProtocol = exports.isRunningInBrowser = exports.debug = exports.hasOwn = exports.isEmptyObj = exports.maybeCoerceBoolean = exports.maybeCoerceFloat = exports.maybeCoerceInteger = exports.coerceBoolean = exports.coerceFloat = exports.coerceInteger = exports.readEnv = exports.ensurePresent = exports.castToError = exports.sleep = exports.safeJSON = exports.isRequestOptions = exports.createResponseHeaders = exports.PagePromise = exports.AbstractPage = exports.APIClient = exports.APIPromise = exports.createForm = exports.multipartFormRequestOptions = exports.maybeMultipartFormRequestOptions = void 0;
exports.isObj = exports.toBase64 = exports.getHeader = exports.getRequiredHeader = exports.isHeadersProtocol = exports.isRunningInBrowser = exports.debug = exports.hasOwn = exports.isEmptyObj = exports.maybeCoerceBoolean = exports.maybeCoerceFloat = exports.maybeCoerceInteger = exports.coerceBoolean = exports.coerceFloat = exports.coerceInteger = exports.readEnv = exports.ensurePresent = exports.castToError = exports.sleep = exports.safeJSON = exports.isRequestOptions = exports.createResponseHeaders = exports.PagePromise = exports.AbstractPage = exports.APIClient = exports.APIPromise = exports.createForm = exports.multipartFormRequestOptions = exports.maybeMultipartFormRequestOptions = void 0;
const version_1 = require("./version.js");

@@ -245,3 +245,7 @@ const error_1 = require("./error.js");

}
reqHeaders['x-stainless-retry-count'] = String(retryCount);
// Don't set the retry count header if it was already set or removed by the caller. We check `headers`,
// which can contain nulls, instead of `reqHeaders` to account for the removal case.
if ((0, exports.getHeader)(headers, 'x-stainless-retry-count') === undefined) {
reqHeaders['x-stainless-retry-count'] = String(retryCount);
}
this.validateHeaders(reqHeaders, headers);

@@ -846,2 +850,10 @@ return reqHeaders;

const getRequiredHeader = (headers, header) => {
const foundHeader = (0, exports.getHeader)(headers, header);
if (foundHeader === undefined) {
throw new Error(`Could not find ${header} header`);
}
return foundHeader;
};
exports.getRequiredHeader = getRequiredHeader;
const getHeader = (headers, header) => {
const lowerCasedHeader = header.toLowerCase();

@@ -870,5 +882,5 @@ if ((0, exports.isHeadersProtocol)(headers)) {

}
throw new Error(`Could not find ${header} header`);
return undefined;
};
exports.getRequiredHeader = getRequiredHeader;
exports.getHeader = getHeader;
/**

@@ -875,0 +887,0 @@ * Encodes a string to Base64 format.

{
"name": "orb-billing",
"version": "4.24.0",
"version": "4.25.0",
"description": "The official TypeScript library for the Orb API",

@@ -5,0 +5,0 @@ "author": "Orb <team@withorb.com>",

@@ -352,3 +352,7 @@ import { VERSION } from './version';

reqHeaders['x-stainless-retry-count'] = String(retryCount);
// Don't set the retry count header if it was already set or removed by the caller. We check `headers`,
// which can contain nulls, instead of `reqHeaders` to account for the removal case.
if (getHeader(headers, 'x-stainless-retry-count') === undefined) {
reqHeaders['x-stainless-retry-count'] = String(retryCount);
}

@@ -1132,3 +1136,11 @@ this.validateHeaders(reqHeaders, headers);

export const getRequiredHeader = (headers: HeadersLike, header: string): string => {
export const getRequiredHeader = (headers: HeadersLike | Headers, header: string): string => {
const foundHeader = getHeader(headers, header);
if (foundHeader === undefined) {
throw new Error(`Could not find ${header} header`);
}
return foundHeader;
};
export const getHeader = (headers: HeadersLike | Headers, header: string): string | undefined => {
const lowerCasedHeader = header.toLowerCase();

@@ -1159,3 +1171,3 @@ if (isHeadersProtocol(headers)) {

throw new Error(`Could not find ${header} header`);
return undefined;
};

@@ -1162,0 +1174,0 @@

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

export const VERSION = '4.24.0'; // x-release-please-version
export const VERSION = '4.25.0'; // x-release-please-version

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

export declare const VERSION = "4.24.0";
export declare const VERSION = "4.25.0";
//# sourceMappingURL=version.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = '4.24.0'; // x-release-please-version
exports.VERSION = '4.25.0'; // x-release-please-version
//# sourceMappingURL=version.js.map

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 too big to display

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 too big to display

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