Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release main #1647

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: release main
release-please[bot] authored Mar 17, 2025

Verified

This commit was signed with the committer’s verified signature.
rygine Ry Racherbaumer
commit d3ee50360a142fca12ed39bf7bc5d0520c67474a
18 changes: 9 additions & 9 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"packages/abstractions": "1.0.0-preview.86",
"packages/authentication/azure": "1.0.0-preview.86",
"packages/authentication/spfx": "1.0.0-preview.86",
"packages/bundle": "1.0.0-preview.86",
"packages/http/fetch": "1.0.0-preview.86",
"packages/serialization/form": "1.0.0-preview.86",
"packages/serialization/json": "1.0.0-preview.86",
"packages/serialization/multipart": "1.0.0-preview.86",
"packages/serialization/text": "1.0.0-preview.86"
"packages/abstractions": "1.0.0-preview.87",
"packages/authentication/azure": "1.0.0-preview.87",
"packages/authentication/spfx": "1.0.0-preview.87",
"packages/bundle": "1.0.0-preview.87",
"packages/http/fetch": "1.0.0-preview.87",
"packages/serialization/form": "1.0.0-preview.87",
"packages/serialization/json": "1.0.0-preview.87",
"packages/serialization/multipart": "1.0.0-preview.87",
"packages/serialization/text": "1.0.0-preview.87"
}
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/abstractions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-abstractions@1.0.0-preview.86...@microsoft/kiota-abstractions@1.0.0-preview.87) (2025-03-17)


### Bug Fixes

* use compatible iterator types for the base types ([9608918](https://github.com/microsoft/kiota-typescript/commit/96089183ea88bebed54a63cb2b845aaec8fa24bb))
* use compatible iterator types for the base types ([3b2c7fa](https://github.com/microsoft/kiota-typescript/commit/3b2c7fa7b98b4467ea36dad5bed1f9cbcfcea486))

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-abstractions@1.0.0-preview.85...@microsoft/kiota-abstractions@1.0.0-preview.86) (2025-03-12)


2 changes: 1 addition & 1 deletion packages/abstractions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-abstractions",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Core abstractions for kiota generated libraries in TypeScript and JavaScript",
"main": "dist/es/src/index.js",
"module": "dist/es/src/index.js",
14 changes: 14 additions & 0 deletions packages/authentication/azure/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-authentication-azure@1.0.0-preview.86...@microsoft/kiota-authentication-azure@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-authentication-azure:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-authentication-azure@1.0.0-preview.85...@microsoft/kiota-authentication-azure@1.0.0-preview.86) (2025-03-12)


4 changes: 2 additions & 2 deletions packages/authentication/azure/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-authentication-azure",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Authentication provider for Kiota using Azure Identity",
"main": "dist/es/src/index.js",
"module": "dist/es/src/index.js",
@@ -33,7 +33,7 @@
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@azure/core-auth": "^1.5.0",
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"@opentelemetry/api": "^1.7.0",
"tslib": "^2.6.2"
},
14 changes: 14 additions & 0 deletions packages/authentication/spfx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-authentication-spfx@1.0.0-preview.86...@microsoft/kiota-authentication-spfx@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-authentication-spfx:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-authentication-spfx@1.0.0-preview.85...@microsoft/kiota-authentication-spfx@1.0.0-preview.86) (2025-03-12)


4 changes: 2 additions & 2 deletions packages/authentication/spfx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-authentication-spfx",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Authentication provider for using Kiota in SPFx solutions",
"main": "dist/es/src/index.js",
"module": "dist/es/src/index.js",
@@ -42,7 +42,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"@microsoft/sp-http": "^1.15.2",
"@opentelemetry/api": "^1.7.0",
"tslib": "^2.6.2"
19 changes: 19 additions & 0 deletions packages/bundle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-bundle@1.0.0-preview.86...@microsoft/kiota-bundle@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-bundle:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87
* @microsoft/kiota-http-fetchlibrary bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87
* @microsoft/kiota-serialization-form bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87
* @microsoft/kiota-serialization-json bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87
* @microsoft/kiota-serialization-multipart bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87
* @microsoft/kiota-serialization-text bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-bundle@1.0.0-preview.85...@microsoft/kiota-bundle@1.0.0-preview.86) (2025-03-12)


14 changes: 7 additions & 7 deletions packages/bundle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-bundle",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Kiota Bundle package providing default implementations for client setup for kiota generated libraries in TypeScript and JavaScript",
"main": "dist/es/src/index.js",
"module": "dist/es/src/index.js",
@@ -31,12 +31,12 @@
},
"homepage": "https://github.com/microsoft/kiota#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.86",
"@microsoft/kiota-serialization-form": "^1.0.0-preview.86",
"@microsoft/kiota-serialization-json": "^1.0.0-preview.86",
"@microsoft/kiota-serialization-multipart": "^1.0.0-preview.86",
"@microsoft/kiota-serialization-text": "^1.0.0-preview.86"
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.87",
"@microsoft/kiota-serialization-form": "^1.0.0-preview.87",
"@microsoft/kiota-serialization-json": "^1.0.0-preview.87",
"@microsoft/kiota-serialization-multipart": "^1.0.0-preview.87",
"@microsoft/kiota-serialization-text": "^1.0.0-preview.87"
},
"publishConfig": {
"access": "public"
14 changes: 14 additions & 0 deletions packages/http/fetch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-http-fetchlibrary@1.0.0-preview.86...@microsoft/kiota-http-fetchlibrary@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-http-fetchlibrary:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-http-fetchlibrary@1.0.0-preview.85...@microsoft/kiota-http-fetchlibrary@1.0.0-preview.86) (2025-03-12)


4 changes: 2 additions & 2 deletions packages/http/fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-http-fetchlibrary",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Kiota request adapter implementation with fetch",
"keywords": [
"Kiota",
@@ -34,7 +34,7 @@
"test": "npm run test:node && npm run test:browser"
},
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"@opentelemetry/api": "^1.7.0",
"tslib": "^2.6.2"
},
14 changes: 14 additions & 0 deletions packages/serialization/form/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-form@1.0.0-preview.86...@microsoft/kiota-serialization-form@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-serialization-form:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-form@1.0.0-preview.85...@microsoft/kiota-serialization-form@1.0.0-preview.86) (2025-03-12)


4 changes: 2 additions & 2 deletions packages/serialization/form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-form",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Implementation of Kiota Serialization interfaces for URI from encoded",
"main": "dist/es/src/index.js",
"browser": {
@@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"tslib": "^2.6.2"
},
"publishConfig": {
14 changes: 14 additions & 0 deletions packages/serialization/json/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-json@1.0.0-preview.86...@microsoft/kiota-serialization-json@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-serialization-json:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-json@1.0.0-preview.85...@microsoft/kiota-serialization-json@1.0.0-preview.86) (2025-03-12)


4 changes: 2 additions & 2 deletions packages/serialization/json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-json",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Implementation of Kiota Serialization interfaces for JSON",
"main": "dist/es/src/index.js",
"type": "module",
@@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"tslib": "^2.6.2"
},
"publishConfig": {
16 changes: 16 additions & 0 deletions packages/serialization/multipart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-multipart@1.0.0-preview.86...@microsoft/kiota-serialization-multipart@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-serialization-multipart:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87
* devDependencies
* @microsoft/kiota-serialization-json bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-multipart@1.0.0-preview.85...@microsoft/kiota-serialization-multipart@1.0.0-preview.86) (2025-03-12)


6 changes: 3 additions & 3 deletions packages/serialization/multipart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-multipart",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Implementation of Kiota Serialization interfaces for multipart form data",
"main": "dist/es/src/index.js",
"module": "dist/es/src/index.js",
@@ -35,11 +35,11 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"tslib": "^2.6.2"
},
"devDependencies": {
"@microsoft/kiota-serialization-json": "^1.0.0-preview.86"
"@microsoft/kiota-serialization-json": "^1.0.0-preview.87"
},
"publishConfig": {
"access": "public"
14 changes: 14 additions & 0 deletions packages/serialization/text/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [1.0.0-preview.87](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-text@1.0.0-preview.86...@microsoft/kiota-serialization-text@1.0.0-preview.87) (2025-03-17)


### Miscellaneous Chores

* **@microsoft/kiota-serialization-text:** Synchronize microsoft-kiota versions


### Dependencies

* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.86 to ^1.0.0-preview.87

## [1.0.0-preview.86](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-serialization-text@1.0.0-preview.85...@microsoft/kiota-serialization-text@1.0.0-preview.86) (2025-03-12)


4 changes: 2 additions & 2 deletions packages/serialization/text/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/kiota-serialization-text",
"version": "1.0.0-preview.86",
"version": "1.0.0-preview.87",
"description": "Implementation of Kiota Serialization interfaces for text",
"main": "dist/es/src/index.js",
"browser": {
@@ -39,7 +39,7 @@
},
"homepage": "https://github.com/microsoft/kiota-typescript#readme",
"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
"@microsoft/kiota-abstractions": "^1.0.0-preview.87",
"tslib": "^2.6.2"
},
"publishConfig": {

Unchanged files with check annotations Beta

* Registers the default serializer to the registry.
* @param type the class of the factory to be registered.
*/
export function registerDefaultSerializer(type: new () => SerializationWriterFactory): void {

Check warning on line 14 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 14 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 14 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
if (!type) throw new Error("Type is required");
const serializer = new type();
SerializationWriterFactoryRegistry.defaultInstance.contentTypeAssociatedFactories.set(serializer.getValidContentType(), serializer);
* Registers the default deserializer to the registry.
* @param type the class of the factory to be registered.
*/
export function registerDefaultDeserializer(type: new () => ParseNodeFactory): void {

Check warning on line 23 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 23 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 23 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
if (!type) throw new Error("Type is required");
const deserializer = new type();
ParseNodeFactoryRegistry.defaultInstance.contentTypeAssociatedFactories.set(deserializer.getValidContentType(), deserializer);
* @param original The serialization writer to enable the backing store on.
* @returns A new serialization writer with the backing store enabled.
*/
export function enableBackingStoreForSerializationWriterFactory(original: SerializationWriterFactory): SerializationWriterFactory {

Check warning on line 33 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 33 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 33 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
if (!original) throw new Error("Original must be specified");
let result = original;
if (original instanceof SerializationWriterFactoryRegistry) {
* @param original The parse node factory to enable the backing store on.
* @returns A new parse node factory with the backing store enabled.
*/
export function enableBackingStoreForParseNodeFactory(original: ParseNodeFactory): ParseNodeFactory {

Check warning on line 50 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 50 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 50 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
if (!original) throw new Error("Original must be specified");
let result = original;
if (original instanceof ParseNodeFactoryRegistry) {
* Enables the backing store on the given parse node factory registry.
* @param registry The parse node factory registry to enable the backing store on.
*/
function enableBackingStoreForParseNodeRegistry(registry: ParseNodeFactoryRegistry): void {

Check warning on line 65 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 65 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 65 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
for (const [k, v] of registry.contentTypeAssociatedFactories) {
if (!(v instanceof BackingStoreParseNodeFactory || v instanceof ParseNodeFactoryRegistry)) {
registry.contentTypeAssociatedFactories.set(k, new BackingStoreParseNodeFactory(v));
* Enables the backing store on the given serialization factory registry.
* @param registry The serialization factory registry to enable the backing store on.
*/
function enableBackingStoreForSerializationRegistry(registry: SerializationWriterFactoryRegistry): void {

Check warning on line 76 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 76 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 76 in packages/abstractions/src/apiClientBuilder.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
for (const [k, v] of registry.contentTypeAssociatedFactories) {
if (!(v instanceof BackingStoreSerializationWriterProxyFactory || v instanceof SerializationWriterFactoryRegistry)) {
registry.contentTypeAssociatedFactories.set(k, new BackingStoreSerializationWriterProxyFactory(v));
* Validates the protocol of the url.
* @param url - The url to validate.
*/
export function validateProtocol(url: string): void {

Check warning on line 14 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 14 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 14 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
if (!isLocalhostUrl(url) && !url.toLocaleLowerCase().startsWith("https://") && !windowUrlStartsWithHttps()) {
throw new Error("Authentication scheme can only be used with https requests");
}
* Checks if the window url starts with https.
* @returns True if the window url starts with https, false otherwise.
*/
function windowUrlStartsWithHttps(): boolean {

Check warning on line 24 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 24 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 24 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
if (!inNodeEnv()) {
return window.location.protocol.toLocaleLowerCase() === "https:";
}
* @param urlString - The url to check.
* @returns True if the url is a localhost url, false otherwise.
*/
export function isLocalhostUrl(urlString: string): boolean {

Check warning on line 36 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 36 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 36 in packages/abstractions/src/authentication/validateProtocol.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
try {
const url = new URL(urlString);
return localhostStrings.has(url.hostname);
* @param digits The number of digits to pad
* @returns The formatted segment
*/
export function formatSegment(segment: number, digits = 2): string {

Check warning on line 104 in packages/abstractions/src/dateOnly.ts

GitHub Actions / build (18.x)

Use const or class constructors instead of named functions

Check warning on line 104 in packages/abstractions/src/dateOnly.ts

GitHub Actions / build (20.x)

Use const or class constructors instead of named functions

Check warning on line 104 in packages/abstractions/src/dateOnly.ts

GitHub Actions / build (22.x)

Use const or class constructors instead of named functions
return segment.toString().padStart(digits, "0");
}