Comparing version 1.0.0 to 2.0.0
10
index.js
@@ -1,6 +0,6 @@ | ||
'use strict'; | ||
const semver = require('semver'); | ||
import process from 'node:process'; | ||
import semver from 'semver'; | ||
module.exports = semverRange => { | ||
const env = process.env; | ||
export default function isHyper(semverRange) { | ||
const {env} = process; | ||
@@ -16,2 +16,2 @@ if (env.TERM_PROGRAM !== 'Hyper' && env.TERM_PROGRAM !== 'HyperTerm') { | ||
return true; | ||
}; | ||
} |
{ | ||
"name": "is-hyper", | ||
"version": "1.0.0", | ||
"description": "Check if you're running in Hyper", | ||
"license": "MIT", | ||
"repository": "sindresorhus/is-hyper", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"hyper", | ||
"app", | ||
"terminal", | ||
"term", | ||
"console", | ||
"semver", | ||
"version", | ||
"check", | ||
"detect", | ||
"hyperterm" | ||
], | ||
"dependencies": { | ||
"semver": "^5.3.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"xo": "*" | ||
} | ||
"name": "is-hyper", | ||
"version": "2.0.0", | ||
"description": "Check if you're running in Hyper", | ||
"license": "MIT", | ||
"repository": "sindresorhus/is-hyper", | ||
"funding": "https://github.com/sponsors/sindresorhus", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "https://sindresorhus.com" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"sideEffects": false, | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"keywords": [ | ||
"hyper", | ||
"app", | ||
"terminal", | ||
"term", | ||
"console", | ||
"semver", | ||
"version", | ||
"check", | ||
"detect", | ||
"hyperterm" | ||
], | ||
"dependencies": { | ||
"semver": "^7.6.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^6.1.2", | ||
"xo": "^0.58.0" | ||
} | ||
} |
@@ -1,13 +0,11 @@ | ||
# is-hyper [![Build Status](https://travis-ci.org/sindresorhus/is-hyper.svg?branch=master)](https://travis-ci.org/sindresorhus/is-hyper) | ||
# is-hyper | ||
> Check if you're running in [Hyper](https://hyper.is) | ||
## Install | ||
```sh | ||
npm install is-hyper | ||
``` | ||
$ npm install --save is-hyper | ||
``` | ||
## Usage | ||
@@ -18,3 +16,3 @@ | ||
```js | ||
const isHyper = require('is-hyper'); | ||
import isHyper from 'is-hyper'; | ||
@@ -28,6 +26,5 @@ isHyper(); | ||
## API | ||
### isHyper([semverRange]) | ||
### isHyper(semverRange?) | ||
@@ -41,6 +38,1 @@ Returns a `boolean`. | ||
Match a specific [version range](https://github.com/npm/node-semver#advanced-range-syntax). | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
3032
5
25
1
Yes
36
+ Addedsemver@7.7.1(transitive)
- Removedsemver@5.7.2(transitive)
Updatedsemver@^7.6.0