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

@alwatr/platform-info

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/platform-info - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

## [1.0.7](https://github.com/Alwatr/nanolib/compare/@alwatr/platform-info@1.0.6...@alwatr/platform-info@1.0.7) (2024-01-03)
**Note:** Version bump only for package @alwatr/platform-info
## [1.0.6](https://github.com/Alwatr/nanolib/compare/@alwatr/platform-info@1.0.5...@alwatr/platform-info@1.0.6) (2023-12-26)

@@ -8,0 +12,0 @@

46

dist/main.d.ts

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

/**
* Represents information about the current platform.
*/
interface PlatformInfo {
/**
* The current platform name.
* - `browser` for browsers.
* - `node` for node.js environments.
* - `semi-node` for node.js like environments such as nw.js, deno, etc.
* - `unknown` for unknown environments.
*/
name: 'browser' | 'node' | 'semi-node' | 'unknown';
/**
* 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 web worker.
*/
isWebWorker: boolean;
/**
* Whether the current platform is deno.
*/
isDeno: boolean;
/**
* Whether the current platform is nw.js.
*/
isNw: boolean;
/**
* Whether the current platform is electron.
*/
isElectron: boolean;
}
/**
* Represents information about the current platform.
*/
declare const platformInfo: PlatformInfo;
export {};
//# sourceMappingURL=main.d.ts.map
{
"name": "@alwatr/platform-info",
"version": "1.0.6",
"version": "1.0.7",
"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.",

@@ -78,9 +78,9 @@ "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",

"devDependencies": {
"@alwatr/nano-build": "^1.2.2",
"@alwatr/nano-build": "^1.2.3",
"@alwatr/prettier-config": "^1.0.4",
"@alwatr/tsconfig-base": "^1.0.5",
"@types/node": "^20.10.5",
"@alwatr/tsconfig-base": "^1.1.0",
"@types/node": "^20.10.6",
"typescript": "^5.3.3"
},
"gitHead": "23c9b6e85fca92a2c43e0c6e82168c944cd5fab3"
"gitHead": "96633d3581bd3faba937ddc3997e32a8d69ce1e4"
}

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

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