@alwatr/platform-info
Advanced tools
Comparing version 1.0.7 to 1.1.0
@@ -6,2 +6,8 @@ # Change Log | ||
# [1.1.0](https://github.com/Alwatr/nanolib/compare/@alwatr/platform-info@1.0.7...@alwatr/platform-info@1.1.0) (2024-01-03) | ||
### Features | ||
* **platform-info:** support bun and isCli ([d693067](https://github.com/Alwatr/nanolib/commit/d693067b9d8de749d909600cfdc9587a7cd207f4)) by @njfamirm | ||
## [1.0.7](https://github.com/Alwatr/nanolib/compare/@alwatr/platform-info@1.0.6...@alwatr/platform-info@1.0.7) (2024-01-03) | ||
@@ -8,0 +14,0 @@ |
@@ -0,2 +1,47 @@ | ||
/** | ||
* Represents information about the current platform. | ||
*/ | ||
interface PlatformInfo { | ||
/** | ||
* Whether the NODE_ENV environment variable is not `production` or in browser location.hostname is `localhost`. | ||
*/ | ||
development: boolean; | ||
/** | ||
* Whether the current platform is node.js. | ||
*/ | ||
isNode: boolean; | ||
/** | ||
* Whether the current platform is a browser. | ||
*/ | ||
isBrowser: boolean; | ||
/** | ||
* Whether the current platform is a not a browser. | ||
*/ | ||
isCli: boolean; | ||
/** | ||
* Whether the current platform is a web worker. | ||
*/ | ||
isWebWorker: boolean; | ||
/** | ||
* Whether the current platform is deno. | ||
*/ | ||
isDeno: boolean; | ||
/** | ||
* Whether the current platform is bun. | ||
*/ | ||
isBun: boolean; | ||
/** | ||
* Whether the current platform is nw.js. | ||
*/ | ||
isNw: boolean; | ||
/** | ||
* Whether the current platform is electron. | ||
*/ | ||
isElectron: boolean; | ||
} | ||
/** | ||
* Represents information about the current platform. | ||
*/ | ||
export declare const platformInfo: PlatformInfo; | ||
export {}; | ||
//# sourceMappingURL=main.d.ts.map |
{ | ||
"name": "@alwatr/platform-info", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"description": "This module provides a way to detect the current platform where the script is running. It defines a constant `platformInfo` which holds the information about the current platform.", | ||
@@ -68,3 +68,3 @@ "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>", | ||
"cb": "yarn run clean && yarn run build", | ||
"d": "yarn run build:es && ALWATR_DEBUG=1 yarn node", | ||
"d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings", | ||
"build": "yarn run build:ts & yarn run build:es", | ||
@@ -79,3 +79,3 @@ "build:es": "nano-build --preset=module", | ||
"devDependencies": { | ||
"@alwatr/nano-build": "^1.2.3", | ||
"@alwatr/nano-build": "^1.3.0", | ||
"@alwatr/prettier-config": "^1.0.4", | ||
@@ -86,3 +86,3 @@ "@alwatr/tsconfig-base": "^1.1.0", | ||
}, | ||
"gitHead": "96633d3581bd3faba937ddc3997e32a8d69ce1e4" | ||
"gitHead": "f33492f47adda814385e51f38be86eeef9629e62" | ||
} |
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 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
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
17691
58