Socket
Socket
Sign inDemoInstall

@types/browser-or-node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/browser-or-node - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

browser-or-node/index.d.ts

@@ -1,7 +0,1 @@

// Type definitions for browser-or-node 1.3
// Project: https://github.com/flexdinesh/browser-or-node
// Definitions by: Jussi Kinnula <https://github.com/jussikinnula>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
export const isBrowser: boolean;

@@ -8,0 +2,0 @@ export const isWebWorker: boolean;

11

browser-or-node/package.json
{
"name": "@types/browser-or-node",
"version": "1.3.0",
"version": "1.3.1",
"description": "TypeScript definitions for browser-or-node",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browser-or-node",
"license": "MIT",

@@ -9,4 +10,4 @@ "contributors": [

"name": "Jussi Kinnula",
"url": "https://github.com/jussikinnula",
"githubUsername": "jussikinnula"
"githubUsername": "jussikinnula",
"url": "https://github.com/jussikinnula"
}

@@ -23,4 +24,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "72f5af2fb2879458a894135ca45d0adae425d8759d154f01d96f049346f8f685",
"typeScriptVersion": "3.3"
"typesPublisherContentHash": "26433e74c82f23db4e8b7bcbf3567e4b5860dfaaad9204960ff4c6ac1c0d494f",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,16 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browser-or-node.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browser-or-node/index.d.ts)
````ts
export const isBrowser: boolean;
export const isWebWorker: boolean;
export const isNode: boolean;
export function isJsDom(): boolean;
````
### Additional Details
* Last updated: Wed, 02 Dec 2020 06:49:49 GMT
* Last updated: Tue, 17 Oct 2023 22:10:13 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [Jussi Kinnula](https://github.com/jussikinnula).
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