Comparing version 1.0.0 to 1.0.1
@@ -9,3 +9,4 @@ declare const IS_TEST: boolean; | ||
declare const IS_ENV_WITH_DOM: boolean; | ||
export { IS_TEST as isTest, IS_ELECTRON as isElectron, IS_ELECTRON_MAIN as isElectronMain, IS_ELECTRON_RENDERER as isElectronRenderer, IS_NODE as isNode, IS_BROWSER as isBrowser, IS_WEBWORKER as isWebWorker, IS_ENV_WITH_DOM as isEnvWithDom }; | ||
declare const IS_REACT_NATIVE: boolean; | ||
export { IS_TEST as isTest, IS_ELECTRON as isElectron, IS_ELECTRON_MAIN as isElectronMain, IS_ELECTRON_RENDERER as isElectronRenderer, IS_NODE as isNode, IS_BROWSER as isBrowser, IS_WEBWORKER as isWebWorker, IS_ENV_WITH_DOM as isEnvWithDom, IS_REACT_NATIVE as isReactNative }; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "wherearewe", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -20,3 +20,3 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"aegir": "^31.0.3" | ||
"aegir": "^36.1.3" | ||
}, | ||
@@ -26,5 +26,4 @@ "types": "./dist/src/index.d.ts", | ||
"src", | ||
"dist", | ||
"tsconfig.json" | ||
"dist" | ||
] | ||
} |
@@ -13,7 +13,8 @@ 'use strict' | ||
const IS_ELECTRON_RENDERER = IS_ELECTRON && IS_ENV_WITH_DOM | ||
const IS_NODE = typeof require === 'function' && typeof process !== 'undefined' && typeof process.release !== 'undefined' && process.release.name === 'node' && !IS_ELECTRON | ||
const IS_NODE = typeof require === 'function' && typeof globalThis.process !== 'undefined' && typeof globalThis.process.release !== 'undefined' && globalThis.process.release.name === 'node' && !IS_ELECTRON | ||
// @ts-ignore | ||
// eslint-disable-next-line no-undef | ||
const IS_WEBWORKER = typeof importScripts === 'function' && typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope | ||
const IS_TEST = typeof process !== 'undefined' && typeof process.env !== 'undefined' && process.env.NODE_ENV === 'test' | ||
const IS_TEST = typeof globalThis.process !== 'undefined' && typeof globalThis.process.env !== 'undefined' && globalThis.process.env.NODE_ENV === 'test' | ||
const IS_REACT_NATIVE = typeof navigator !== 'undefined' && navigator.product === 'ReactNative' | ||
@@ -31,3 +32,4 @@ module.exports = { | ||
isWebWorker: IS_WEBWORKER, | ||
isEnvWithDom: IS_ENV_WITH_DOM | ||
isEnvWithDom: IS_ENV_WITH_DOM, | ||
isReactNative: IS_REACT_NATIVE | ||
} |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
1
3422
5
39