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

@alwatr/platform-info

Package Overview
Dependencies
Maintainers
0
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.1.13 to 1.2.0

24

CHANGELOG.md

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

## [1.2.0](https://github.com/Alwatr/nanolib/compare/@alwatr/platform-info@1.1.13...@alwatr/platform-info@1.2.0) (2024-09-29)
### Features
* use `package-tracer` ([cc3c5f9](https://github.com/Alwatr/nanolib/commit/cc3c5f9c1a3d03f0d81b46835665f16a0426fd0d)) by @mohammadhonarvar
### Bug Fixes
* all dependeny topology ([1c17f34](https://github.com/Alwatr/nanolib/commit/1c17f349adf3e98e2a80ab2da4f0f81028dc9c5f)) by @mohammadhonarvar
### Code Refactoring
* **platform-info:** enhance type to prevent modification ([e62c0eb](https://github.com/Alwatr/nanolib/commit/e62c0eb14f6102efde4206f7ba72ecc5dc146ce2)) by @AliMD
* use new type-helper global types and remove all import types ([08b5d08](https://github.com/Alwatr/nanolib/commit/08b5d08c03c7c315382337239de0426462f384b8)) by @AliMD
### Miscellaneous Chores
* **platform-info:** change the license to AGPL-3.0 ([0ca6ad1](https://github.com/Alwatr/nanolib/commit/0ca6ad19a486e9bcfd3ddcaa5741fd5b2e0e4005)) by @ArmanAsadian
* Update build and lint scripts ([392d0b7](https://github.com/Alwatr/nanolib/commit/392d0b71f446bce336b0256119a80f07aff794ba)) by @AliMD
### Dependencies update
* bump @types/node ([3d80fed](https://github.com/Alwatr/nanolib/commit/3d80fedaf720af792feb060c2f81c737ebb84e11)) by @dependabot[bot]
## [1.1.13](https://github.com/Alwatr/nanolib/compare/@alwatr/platform-info@1.1.12...@alwatr/platform-info@1.1.13) (2024-09-21)

@@ -8,0 +32,0 @@

21

dist/main.d.ts

@@ -8,41 +8,38 @@ /**

*/
development: boolean;
readonly development: boolean;
/**
* Whether the current platform is node.js.
*/
isNode: boolean;
readonly isNode: boolean;
/**
* Whether the current platform is a browser.
*/
isBrowser: boolean;
readonly isBrowser: boolean;
/**
* Whether the current platform is a not a browser.
*/
isCli: boolean;
readonly isCli: boolean;
/**
* Whether the current platform is a web worker.
*/
isWebWorker: boolean;
readonly isWebWorker: boolean;
/**
* Whether the current platform is deno.
*/
isDeno: boolean;
readonly isDeno: boolean;
/**
* Whether the current platform is bun.
*/
isBun: boolean;
readonly isBun: boolean;
/**
* Whether the current platform is nw.js.
*/
isNw: boolean;
readonly isNw: boolean;
/**
* Whether the current platform is electron.
*/
isElectron: boolean;
readonly 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.1.13",
"version": "1.2.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.",

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

},
"license": "MIT",
"license": "AGPL-3.0-only",
"files": [

@@ -70,3 +70,3 @@ "**/*.{js,mjs,cjs,map,d.ts,html,md}",

"d": "yarn run build:es && yarn node --enable-source-maps --trace-warnings",
"build": "yarn run build:ts & yarn run build:es",
"build": "yarn run build:ts && yarn run build:es",
"build:es": "nano-build --preset=module",

@@ -79,10 +79,14 @@ "build:ts": "tsc --build",

},
"dependencies": {
"@alwatr/package-tracer": "^1.0.0"
},
"devDependencies": {
"@alwatr/nano-build": "^1.3.10",
"@alwatr/prettier-config": "^1.0.4",
"@alwatr/tsconfig-base": "^1.2.0",
"@types/node": "^22.5.5",
"@alwatr/nano-build": "^1.4.0",
"@alwatr/prettier-config": "^1.0.5",
"@alwatr/tsconfig-base": "^1.3.0",
"@alwatr/type-helper": "^2.0.0",
"@types/node": "^22.7.4",
"typescript": "^5.6.2"
},
"gitHead": "6d82461cfdee936b30cbc67473a5a5048773255a"
"gitHead": "cc1ea8b688232dcc60e9ebc904ec5566bc25c1ac"
}

@@ -38,1 +38,15 @@ # Platform Info

```
## Sponsors
The following companies, organizations, and individuals support Nitrobase ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
[![Exir Studio](https://avatars.githubusercontent.com/u/181194967?s=200&v=4)](https://exirstudio.com)
### Contributing
Contributions are welcome! Please read our [contribution guidelines](https://github.com/Alwatr/.github/blob/next/CONTRIBUTING.md) before submitting a pull request.
### License
This project is licensed under the [AGPL-3.0 License](LICENSE).

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

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