Socket
Socket
Sign inDemoInstall

node-conditions

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.2.0

8

index.d.ts

@@ -7,2 +7,9 @@ export const BROWSER: boolean;

export const WORKER: boolean;
export const EDGE_ROUTINE: boolean;
export const WORKERD: boolean;
export const LAGON: boolean;
export const REACT_NATIVE: boolean;
export const NETLIFY: boolean;
export const ELECTRON: boolean;
export const EDGE_LIGHT: boolean;
export const DEVELOPMENT: boolean;

@@ -15,2 +22,3 @@ export const TEST: boolean;

export const SVELTE: boolean;
export const REACT_SERVER: boolean;
export const TYPES: boolean;

@@ -17,0 +25,0 @@ export const MODULE: boolean;

82

package.json
{
"name": "node-conditions",
"version": "1.1.0",
"version": "1.2.0",
"description": "node conditions as boolean flags",

@@ -98,2 +98,72 @@ "keywords": [

},
"./edge-routine": {
"import": {
"edge-routine": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"edge-routine": "./true.cjs",
"default": "./false.cjs"
}
},
"./workerd": {
"import": {
"workerd": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"workerd": "./true.cjs",
"default": "./false.cjs"
}
},
"./lagon": {
"import": {
"lagon": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"lagon": "./true.cjs",
"default": "./false.cjs"
}
},
"./react-native": {
"import": {
"react-native": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"react-native": "./true.cjs",
"default": "./false.cjs"
}
},
"./netlify": {
"import": {
"netlify": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"netlify": "./true.cjs",
"default": "./false.cjs"
}
},
"./electron": {
"import": {
"electron": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"electron": "./true.cjs",
"default": "./false.cjs"
}
},
"./edge-light": {
"import": {
"edge-light": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"edge-light": "./true.cjs",
"default": "./false.cjs"
}
},
"./development": {

@@ -169,2 +239,12 @@ "import": {

},
"./react-server": {
"import": {
"react-server": "./true.mjs",
"default": "./false.mjs"
},
"require": {
"react-server": "./true.cjs",
"default": "./false.cjs"
}
},
"./types": {

@@ -171,0 +251,0 @@ "import": {

@@ -59,2 +59,9 @@ # node-conditions

- WORKER
- EDGE_ROUTINE
- WORKERD
- LAGON
- REACT_NATIVE
- NETLIFY
- ELECTRON
- EDGE_LIGHT
- DEVELOPMENT

@@ -67,2 +74,3 @@ - TEST

- SVELTE
- REACT_SERVER
- TYPES

@@ -69,0 +77,0 @@ - MODULE

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc