aboutsummaryrefslogtreecommitdiff
path: root/node_modules/latest-version
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
committerMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
commitb22f6770c8bd084d66950655203c61dd701b3d90 (patch)
tree873d7fb19584ec2709b95cc1ca05a1fc7cfd0fc4 /node_modules/latest-version
parent383285ecd5292bf9a825e05904955b937de84cc9 (diff)
downloadequestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.gz
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.bz2
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.zip
Remove node_modules
Diffstat (limited to 'node_modules/latest-version')
-rw-r--r--node_modules/latest-version/index.d.ts42
-rw-r--r--node_modules/latest-version/index.js11
-rw-r--r--node_modules/latest-version/license9
-rw-r--r--node_modules/latest-version/package.json42
-rw-r--r--node_modules/latest-version/readme.md42
5 files changed, 0 insertions, 146 deletions
diff --git a/node_modules/latest-version/index.d.ts b/node_modules/latest-version/index.d.ts
deleted file mode 100644
index 8b3a89a..0000000
--- a/node_modules/latest-version/index.d.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-declare namespace latestVersion {
- interface Options {
- /**
- A semver range or [dist-tag](https://docs.npmjs.com/cli/dist-tag).
- */
- readonly version?: string;
- }
-}
-
-declare const latestVersion: {
- /**
- Get the latest version of an npm package.
-
- @example
- ```
- import latestVersion = require('latest-version');
-
- (async () => {
- console.log(await latestVersion('ava'));
- //=> '0.18.0'
-
- console.log(await latestVersion('@sindresorhus/df'));
- //=> '1.0.1'
-
- // Also works with semver ranges and dist-tags
- console.log(await latestVersion('npm', {version: 'latest-5'}));
- //=> '5.5.1'
- })();
- ```
- */
- (packageName: string, options?: latestVersion.Options): Promise<string>;
-
- // TODO: Remove this for the next major release, refactor the whole definition to:
- // declare function latestVersion(
- // packageName: string,
- // options?: latestVersion.Options
- // ): Promise<string>;
- // export = latestVersion;
- default: typeof latestVersion;
-};
-
-export = latestVersion;
diff --git a/node_modules/latest-version/index.js b/node_modules/latest-version/index.js
deleted file mode 100644
index b22e3ab..0000000
--- a/node_modules/latest-version/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-const packageJson = require('package-json');
-
-const lastestVersion = async (packageName, options) => {
- const {version} = await packageJson(packageName.toLowerCase(), options);
- return version;
-};
-
-module.exports = lastestVersion;
-// TODO: Remove this for the next major release
-module.exports.default = lastestVersion;
diff --git a/node_modules/latest-version/license b/node_modules/latest-version/license
deleted file mode 100644
index e7af2f7..0000000
--- a/node_modules/latest-version/license
+++ /dev/null
@@ -1,9 +0,0 @@
-MIT License
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/latest-version/package.json b/node_modules/latest-version/package.json
deleted file mode 100644
index 28c4ef2..0000000
--- a/node_modules/latest-version/package.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name": "latest-version",
- "version": "5.1.0",
- "description": "Get the latest version of an npm package",
- "license": "MIT",
- "repository": "sindresorhus/latest-version",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=8"
- },
- "scripts": {
- "test": "xo && ava && tsd"
- },
- "files": [
- "index.js",
- "index.d.ts"
- ],
- "keywords": [
- "latest",
- "version",
- "npm",
- "pkg",
- "package",
- "package.json",
- "current",
- "module"
- ],
- "dependencies": {
- "package-json": "^6.3.0"
- },
- "devDependencies": {
- "ava": "^1.4.1",
- "semver": "^6.0.0",
- "semver-regex": "^2.0.0",
- "tsd": "^0.7.2",
- "xo": "^0.24.0"
- }
-}
diff --git a/node_modules/latest-version/readme.md b/node_modules/latest-version/readme.md
deleted file mode 100644
index ee57266..0000000
--- a/node_modules/latest-version/readme.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# latest-version [![Build Status](https://travis-ci.org/sindresorhus/latest-version.svg?branch=master)](https://travis-ci.org/sindresorhus/latest-version)
-
-> Get the latest version of an npm package
-
-Fetches the version directly from the registry instead of depending on the massive [npm](https://github.com/npm/npm/blob/8b5e7b6ae5b4cd2d7d62eaf93b1428638b387072/package.json#L37-L85) module like the [latest](https://github.com/bahamas10/node-latest) module does.
-
-
-## Install
-
-```
-$ npm install latest-version
-```
-
-
-## Usage
-
-```js
-const latestVersion = require('latest-version');
-
-(async () => {
- console.log(await latestVersion('ava'));
- //=> '0.18.0'
-
- console.log(await latestVersion('@sindresorhus/df'));
- //=> '1.0.1'
-
- // Also works with semver ranges and dist-tags
- console.log(await latestVersion('npm', {version: 'latest-5'}));
- //=> '5.5.1'
-})();
-```
-
-
-## Related
-
-- [latest-version-cli](https://github.com/sindresorhus/latest-version-cli) - CLI for this module
-- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)