@azure/core-util
Advanced tools
Comparing version 1.7.0 to 1.7.1-alpha.20240202.3
@@ -24,2 +24,6 @@ // Copyright (c) Microsoft Corporation. | ||
/** | ||
* A constant that indicates whether the environment the code is running is Bun.sh. | ||
*/ | ||
export const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined"; | ||
/** | ||
* A constant that indicates whether the environment the code is running is Node.JS. | ||
@@ -31,8 +35,5 @@ */ | ||
// Deno thought it was a good idea to spoof process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions | ||
!isDeno; | ||
!isDeno && | ||
!isBun; | ||
/** | ||
* A constant that indicates whether the environment the code is running is Bun.sh. | ||
*/ | ||
export const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined"; | ||
/** | ||
* A constant that indicates whether the environment the code is running is in React-Native. | ||
@@ -39,0 +40,0 @@ */ |
@@ -300,2 +300,6 @@ 'use strict'; | ||
/** | ||
* A constant that indicates whether the environment the code is running is Bun.sh. | ||
*/ | ||
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined"; | ||
/** | ||
* A constant that indicates whether the environment the code is running is Node.JS. | ||
@@ -307,8 +311,5 @@ */ | ||
// Deno thought it was a good idea to spoof process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions | ||
!isDeno; | ||
!isDeno && | ||
!isBun; | ||
/** | ||
* A constant that indicates whether the environment the code is running is Bun.sh. | ||
*/ | ||
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined"; | ||
/** | ||
* A constant that indicates whether the environment the code is running is in React-Native. | ||
@@ -315,0 +316,0 @@ */ |
{ | ||
"name": "@azure/core-util", | ||
"version": "1.7.0", | ||
"version": "1.7.1-alpha.20240202.3", | ||
"description": "Core library for shared utility methods", | ||
@@ -68,5 +68,5 @@ "sdk-type": "client", | ||
"devDependencies": { | ||
"@azure/dev-tool": "^1.0.0", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0", | ||
"@azure-tools/vite-plugin-browser-test-map": "^1.0.0", | ||
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb", | ||
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb", | ||
"@azure-tools/vite-plugin-browser-test-map": ">=1.0.0-alpha <1.0.0-alphb", | ||
"@microsoft/api-extractor": "^7.31.1", | ||
@@ -73,0 +73,0 @@ "@types/node": "^18.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
106999
1025
1