aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/npm-pick-manifest')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/CHANGELOG.md223
-rw-r--r--sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/LICENSE.md16
-rw-r--r--sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/README.md157
-rw-r--r--sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/index.js218
-rw-r--r--sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/package.json43
5 files changed, 0 insertions, 657 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/CHANGELOG.md b/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/CHANGELOG.md
deleted file mode 100644
index c7170c56..00000000
--- a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/CHANGELOG.md
+++ /dev/null
@@ -1,223 +0,0 @@
-# Changelog
-
-All notable changes to this project will be documented in this file.
-
-## [6.1.1](https://github.com/npm/npm-pick-manifest/compare/v6.0.0...v6.1.0) (2020-04-07)
-
-* normalize package bins in returned manifest
-
-## [6.1.0](https://github.com/npm/npm-pick-manifest/compare/v6.0.0...v6.1.0) (2020-04-07)
-
-
-### Features
-
-* add 'avoid' semver range option ([c64973d](https://github.com/npm/npm-pick-manifest/commit/c64973d63ddf6797edf41c20df641f816d30ff03))
-* add avoidStrict option to strictly avoid ([c268796](https://github.com/npm/npm-pick-manifest/commit/c2687967b6294f5ce01aa6b59071e79272dc57de)), closes [#30](https://github.com/npm/npm-pick-manifest/issues/30)
-
-## [6.0.0](https://github.com/npm/npm-pick-manifest/compare/v5.0.0...v6.0.0) (2020-02-18)
-
-
-### ⚠ BREAKING CHANGES
-
-* 'enjoyBy' is no longer an acceptable alias.
-
-### Features
-
-* add GitHub Actions file for ci ([8985247](https://github.com/npm/npm-pick-manifest/commit/898524727fa157f46fdf4eb0c11148ae4808226b))
-
-
-### Bug Fixes
-
-* Handle edge cases around before:Date and filtering staged publishes ([ed2f92e](https://github.com/npm/npm-pick-manifest/commit/ed2f92e7fdc9cc7836b13ebc73e17d8fd296a07e))
-* remove figgy pudding ([c24fed2](https://github.com/npm/npm-pick-manifest/commit/c24fed25b8f77fbbcc3107030f2dfed55fa54222))
-* remove outdated cruft from docs ([aae7ef7](https://github.com/npm/npm-pick-manifest/commit/aae7ef7625ddddbac0548287e5d57b8f76593322))
-* update some missing {loose:true} semver configs ([4015424](https://github.com/npm/npm-pick-manifest/commit/40154244a3fe1af86462bc1d6165199fc3315c10))
-* Use canonical 'before' config name ([029de59](https://github.com/npm/npm-pick-manifest/commit/029de59bda6d3376f03760a00efe4ac9d997c623))
-
-## [5.0.0](https://github.com/npm/npm-pick-manifest/compare/v4.0.0...v5.0.0) (2019-12-15)
-
-
-### ⚠ BREAKING CHANGES
-
-* This drops support for node < 10.
-
-* normalize settings, drop old nodes, update deps ([dc2e61c](https://github.com/npm/npm-pick-manifest/commit/dc2e61cc06bd19e079128e77397df7593741da50))
-
-<a name="4.0.0"></a>
-# [4.0.0](https://github.com/npm/npm-pick-manifest/compare/v3.0.2...v4.0.0) (2019-11-11)
-
-
-### deps
-
-* bump npm-package-arg to v7 ([42c76d8](https://github.com/npm/npm-pick-manifest/commit/42c76d8)), closes [/github.com/npm/hosted-git-info/pull/38#issuecomment-520243803](https://github.com//github.com/npm/hosted-git-info/pull/38/issues/issuecomment-520243803)
-
-
-### BREAKING CHANGES
-
-* this drops support for ancient node versions.
-
-
-
-<a name="3.0.2"></a>
-## [3.0.2](https://github.com/npm/npm-pick-manifest/compare/v3.0.1...v3.0.2) (2019-08-30)
-
-
-
-<a name="3.0.1"></a>
-## [3.0.1](https://github.com/npm/npm-pick-manifest/compare/v3.0.0...v3.0.1) (2019-08-28)
-
-
-### Bug Fixes
-
-* throw 403 for forbidden major/minor versions ([003286e](https://github.com/npm/npm-pick-manifest/commit/003286e)), closes [#2](https://github.com/npm/npm-pick-manifest/issues/2)
-
-
-
-<a name="3.0.0"></a>
-# [3.0.0](https://github.com/npm/npm-pick-manifest/compare/v2.2.3...v3.0.0) (2019-08-20)
-
-
-### Features
-
-* throw forbidden error when package is blocked by policy ([ad2a962](https://github.com/npm/npm-pick-manifest/commit/ad2a962)), closes [#1](https://github.com/npm/npm-pick-manifest/issues/1)
-
-
-### BREAKING CHANGES
-
-* This adds a new error code when package versions are
-blocked.
-
-PR-URL: https://github.com/npm/npm-pick-manifest/pull/1
-Credit: @claudiahdz
-
-
-
-<a name="2.2.3"></a>
-## [2.2.3](https://github.com/npm/npm-pick-manifest/compare/v2.2.2...v2.2.3) (2018-10-31)
-
-
-### Bug Fixes
-
-* **enjoyBy:** rework semantics for enjoyBy again ([5e89b62](https://github.com/npm/npm-pick-manifest/commit/5e89b62))
-
-
-
-<a name="2.2.2"></a>
-## [2.2.2](https://github.com/npm/npm-pick-manifest/compare/v2.2.1...v2.2.2) (2018-10-31)
-
-
-### Bug Fixes
-
-* **enjoyBy:** rework semantics for enjoyBy ([5684f45](https://github.com/npm/npm-pick-manifest/commit/5684f45))
-
-
-
-<a name="2.2.1"></a>
-## [2.2.1](https://github.com/npm/npm-pick-manifest/compare/v2.2.0...v2.2.1) (2018-10-30)
-
-
-
-<a name="2.2.0"></a>
-# [2.2.0](https://github.com/npm/npm-pick-manifest/compare/v2.1.0...v2.2.0) (2018-10-30)
-
-
-### Bug Fixes
-
-* **audit:** npm audit fix --force ([d5ae6c4](https://github.com/npm/npm-pick-manifest/commit/d5ae6c4))
-
-
-### Features
-
-* **enjoyBy:** add opts.enjoyBy option to filter versions by date ([0b8a790](https://github.com/npm/npm-pick-manifest/commit/0b8a790))
-
-
-
-<a name="2.1.0"></a>
-# [2.1.0](https://github.com/npm/npm-pick-manifest/compare/v2.0.1...v2.1.0) (2017-10-18)
-
-
-### Features
-
-* **selection:** allow manually disabling deprecation skipping ([0d239d3](https://github.com/npm/npm-pick-manifest/commit/0d239d3))
-
-
-
-<a name="2.0.1"></a>
-## [2.0.1](https://github.com/npm/npm-pick-manifest/compare/v2.0.0...v2.0.1) (2017-10-18)
-
-
-
-<a name="2.0.0"></a>
-# [2.0.0](https://github.com/npm/npm-pick-manifest/compare/v1.0.4...v2.0.0) (2017-10-03)
-
-
-### Bug Fixes
-
-* **license:** relicense project according to npm policy (#3) ([ed743a0](https://github.com/npm/npm-pick-manifest/commit/ed743a0))
-
-
-### Features
-
-* **selection:** Avoid matching deprecated packages if possible ([3fc6c3a](https://github.com/npm/npm-pick-manifest/commit/3fc6c3a))
-
-
-### BREAKING CHANGES
-
-* **selection:** deprecated versions may be skipped now
-* **license:** This moves the license from CC0 to ISC and properly documents the copyright as belonging to npm, Inc.
-
-
-
-<a name="1.0.4"></a>
-## [1.0.4](https://github.com/npm/npm-pick-manifest/compare/v1.0.3...v1.0.4) (2017-06-29)
-
-
-### Bug Fixes
-
-* **npa:** bump npa version for bugfixes ([7cdaca7](https://github.com/npm/npm-pick-manifest/commit/7cdaca7))
-* **semver:** use loose semver parsing for *all* ops ([bbc0daa](https://github.com/npm/npm-pick-manifest/commit/bbc0daa))
-
-
-
-<a name="1.0.3"></a>
-## [1.0.3](https://github.com/npm/npm-pick-manifest/compare/v1.0.2...v1.0.3) (2017-05-04)
-
-
-### Bug Fixes
-
-* **semver:** use semver.clean() instead ([f4133b5](https://github.com/npm/npm-pick-manifest/commit/f4133b5))
-
-
-
-<a name="1.0.2"></a>
-## [1.0.2](https://github.com/npm/npm-pick-manifest/compare/v1.0.1...v1.0.2) (2017-05-04)
-
-
-### Bug Fixes
-
-* **picker:** spaces in `wanted` prevented match ([97a7d0a](https://github.com/npm/npm-pick-manifest/commit/97a7d0a))
-
-
-
-<a name="1.0.1"></a>
-## [1.0.1](https://github.com/npm/npm-pick-manifest/compare/v1.0.0...v1.0.1) (2017-04-24)
-
-
-### Bug Fixes
-
-* **deps:** forgot to add semver ([1876f4f](https://github.com/npm/npm-pick-manifest/commit/1876f4f))
-
-
-
-<a name="1.0.0"></a>
-# 1.0.0 (2017-04-24)
-
-
-### Features
-
-* **api:** initial implementation. ([b086912](https://github.com/npm/npm-pick-manifest/commit/b086912))
-
-
-### BREAKING CHANGES
-
-* **api:** ex nihilo
diff --git a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/LICENSE.md b/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/LICENSE.md
deleted file mode 100644
index 8d28acf8..00000000
--- a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/LICENSE.md
+++ /dev/null
@@ -1,16 +0,0 @@
-ISC License
-
-Copyright (c) npm, Inc.
-
-Permission to use, copy, modify, and/or distribute this software for
-any purpose with or without fee is hereby granted, provided that the
-above copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
-ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
-CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
-OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
-OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
-USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/README.md b/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/README.md
deleted file mode 100644
index 26ee43e0..00000000
--- a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/README.md
+++ /dev/null
@@ -1,157 +0,0 @@
-# npm-pick-manifest [![npm version](https://img.shields.io/npm/v/npm-pick-manifest.svg)](https://npm.im/npm-pick-manifest) [![license](https://img.shields.io/npm/l/npm-pick-manifest.svg)](https://npm.im/npm-pick-manifest) [![Travis](https://img.shields.io/travis/npm/npm-pick-manifest.svg)](https://travis-ci.org/npm/npm-pick-manifest) [![Coverage Status](https://coveralls.io/repos/github/npm/npm-pick-manifest/badge.svg?branch=latest)](https://coveralls.io/github/npm/npm-pick-manifest?branch=latest)
-
-[`npm-pick-manifest`](https://github.com/npm/npm-pick-manifest) is a standalone
-implementation of [npm](https://npmjs.com)'s semver range resolution algorithm.
-
-## Install
-
-`$ npm install --save npm-pick-manifest`
-
-## Table of Contents
-
-* [Example](#example)
-* [Features](#features)
-* [API](#api)
- * [`pickManifest()`](#pick-manifest)
-
-### Example
-
-```javascript
-const pickManifest = require('npm-pick-manifest')
-
-fetch('https://registry.npmjs.org/npm-pick-manifest').then(res => {
- return res.json()
-}).then(packument => {
- return pickManifest(packument, '^1.0.0')
-}) // get same manifest as npm would get if you `npm i npm-pick-manifest@^1.0.0`
-```
-
-### Features
-
-* Uses npm's exact [semver resolution algorithm](http://npm.im/semver).
-* Supports ranges, tags, and versions.
-* Prefers non-deprecated versions to deprecated versions.
-* Prefers versions whose `engines` requirements are satisfied over those
- that will raise a warning or error at install time.
-
-### API
-
-#### <a name="pick-manifest"></a> `> pickManifest(packument, selector, [opts]) -> manifest`
-
-Returns the manifest that best matches `selector`, or throws an error.
-
-Packuments are anything returned by metadata URLs from the npm registry. That
-is, they're objects with the following shape (only fields used by
-`npm-pick-manifest` included):
-
-```javascript
-{
- name: 'some-package',
- 'dist-tags': {
- foo: '1.0.1'
- },
- versions: {
- '1.0.0': { version: '1.0.0' },
- '1.0.1': { version: '1.0.1' },
- '1.0.2': { version: '1.0.2' },
- '2.0.0': { version: '2.0.0' }
- }
-}
-```
-
-The algorithm will follow npm's algorithm for semver resolution, and only
-`tag`, `range`, and `version` selectors are supported.
-
-The function will throw `ETARGET` if there was no matching manifest, and
-`ENOVERSIONS` if the packument object has no valid versions in `versions`.
-If the only matching manifest is included in a `policyRestrictions` section
-of the packument, then an `E403` is raised.
-
-#### <a name="pick-manifest-options"></a> Options
-
-All options are optional.
-
-* `includeStaged` - Boolean, default `false`. Include manifests in the
- `stagedVersions.versions` set, to support installing [staged
- packages](https://github.com/npm/rfcs/pull/92) when appropriate. Note
- that staged packages are always treated as lower priority than actual
- publishes, even when `includeStaged` is set.
-* `defaultTag` - String, default `'latest'`. The default `dist-tag` to
- install when no specifier is provided. Note that the version indicated
- by this specifier will be given top priority if it matches a supplied
- semver range.
-* `before` - String, Date, or Number, default `null`. This is passed to
- `new Date()`, so anything that works there will be valid. Do not
- consider _any_ manifests that were published after the date indicated.
- Note that this is only relevant when the packument includes a `time`
- field listing the publish date of all the packages.
-* `nodeVersion` - String, default `process.version`. The Node.js version
- to use when checking manifests for `engines` requirement satisfaction.
-* `npmVersion` - String, default `null`. The npm version to use when
- checking manifest for `engines` requirement satisfaction. (If `null`,
- then this particular check is skipped.)
-* `avoid` - String, default `null`. A SemVer range of
- versions that should be avoided. An avoided version MAY be selected if
- there is no other option, so when using this for version selection ensure
- that you check the result against the range to see if there was no
- alternative available.
-* `avoidStrict` Boolean, default `false`. If set to true, then
- `pickManifest` will never return a version in the `avoid` range. If the
- only available version in the `wanted` range is a version that should be
- avoided, then it will return a version _outside_ the `wanted` range,
- preferring to do so without making a SemVer-major jump, if possible. If
- there are no versions outside the `avoid` range, then throw an
- `ETARGET` error. It does this by calling pickManifest first with the
- `wanted` range, then with a `^` affixed to the version returned by the
- `wanted` range, and then with a `*` version range, and throwing if
- nothing could be found to satisfy the avoidance request.
-
-Return value is the manifest as it exists in the packument, possibly
-decorated with the following boolean flags:
-
-* `_shouldAvoid` The version is in the `avoid` range. Watch out!
-* `_outsideDependencyRange` The version is outside the `wanted` range,
- because `avoidStrict: true` was set.
-* `_isSemVerMajor` The `_outsideDependencyRange` result is a SemVer-major
- step up from the version returned by the `wanted` range.
-
-### Algorithm
-
-1. Create list of all versions in `versions`,
- `policyRestrictions.versions`, and (if `includeStaged` is set)
- `stagedVersions.versions`.
-2. If a `dist-tag` is requested,
- 1. If the manifest is not after the specified `before` date, then
- select that from the set.
- 2. If the manifest is after the specified `before` date, then re-start
- the selection looking for the highest SemVer range that is equal to
- or less than the `dist-tag` target.
-3. If a specific version is requested,
- 1. If the manifest is not after the specified `before` date, then
- select the specified manifest.
- 2. If the manifest is after the specified `before` date, then raise
- `ETARGET` error. (NB: this is a breaking change from v5, where a
- specified version would override the `before` setting.)
-4. (At this point we know a range is requested.)
-5. If the `defaultTag` refers to a `dist-tag` that satisfies the range (or
- if the range is `'*'` or `''`), and the manifest is published before the
- `before` setting, then select that manifest.
-6. If nothing is yet selected, sort by the following heuristics in order,
- and select the top item:
- 1. Prioritize versions that are not in the `avoid` range over those
- that are.
- 2. Prioritize versions that are not in `policyRestrictions` over those
- that are.
- 3. Prioritize published versions over staged versions.
- 4. Prioritize versions that are not deprecated, and which have a
- satisfied engines requirement, over those that are either deprecated
- or have an engines mismatch.
- 5. Prioritize versions that have a satisfied engines requirement over
- those that do not.
- 6. Prioritize versions that are not are not deprecated (but have a
- mismatched engines requirement) over those that are deprecated.
- 7. Prioritize higher SemVer precedence over lower SemVer precedence.
-7. If no manifest was selected, raise an `ETARGET` error.
-8. If the selected item is in the `policyRestrictions.versions` list, raise
- an `E403` error.
-9. Return the selected manifest.
diff --git a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/index.js b/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/index.js
deleted file mode 100644
index 69545052..00000000
--- a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/index.js
+++ /dev/null
@@ -1,218 +0,0 @@
-'use strict'
-
-const npa = require('npm-package-arg')
-const semver = require('semver')
-const { checkEngine } = require('npm-install-checks')
-const normalizeBin = require('npm-normalize-package-bin')
-
-const engineOk = (manifest, npmVersion, nodeVersion) => {
- try {
- checkEngine(manifest, npmVersion, nodeVersion)
- return true
- } catch (_) {
- return false
- }
-}
-
-const isBefore = (verTimes, ver, time) =>
- !verTimes || !verTimes[ver] || Date.parse(verTimes[ver]) <= time
-
-const avoidSemverOpt = { includePrerelease: true, loose: true }
-const shouldAvoid = (ver, avoid) =>
- avoid && semver.satisfies(ver, avoid, avoidSemverOpt)
-
-const decorateAvoid = (result, avoid) =>
- result && shouldAvoid(result.version, avoid)
- ? { ...result, _shouldAvoid: true }
- : result
-
-const pickManifest = (packument, wanted, opts) => {
- const {
- defaultTag = 'latest',
- before = null,
- nodeVersion = process.version,
- npmVersion = null,
- includeStaged = false,
- avoid = null,
- avoidStrict = false
- } = opts
-
- const { name, time: verTimes } = packument
- const versions = packument.versions || {}
-
- if (avoidStrict) {
- const looseOpts = {
- ...opts,
- avoidStrict: false
- }
-
- const result = pickManifest(packument, wanted, looseOpts)
- if (!result || !result._shouldAvoid) {
- return result
- }
-
- const caret = pickManifest(packument, `^${result.version}`, looseOpts)
- if (!caret || !caret._shouldAvoid) {
- return {
- ...caret,
- _outsideDependencyRange: true,
- _isSemVerMajor: false
- }
- }
-
- const star = pickManifest(packument, '*', looseOpts)
- if (!star || !star._shouldAvoid) {
- return {
- ...star,
- _outsideDependencyRange: true,
- _isSemVerMajor: true
- }
- }
-
- throw Object.assign(new Error(`No avoidable versions for ${name}`), {
- code: 'ETARGET',
- name,
- wanted,
- avoid,
- before,
- versions: Object.keys(versions)
- })
- }
-
- const staged = (includeStaged && packument.stagedVersions &&
- packument.stagedVersions.versions) || {}
- const restricted = (packument.policyRestrictions &&
- packument.policyRestrictions.versions) || {}
-
- const time = before && verTimes ? +(new Date(before)) : Infinity
- const spec = npa.resolve(name, wanted || defaultTag)
- const type = spec.type
- const distTags = packument['dist-tags'] || {}
-
- if (type !== 'tag' && type !== 'version' && type !== 'range') {
- throw new Error('Only tag, version, and range are supported')
- }
-
- // if the type is 'tag', and not just the implicit default, then it must
- // be that exactly, or nothing else will do.
- if (wanted && type === 'tag') {
- const ver = distTags[wanted]
- // if the version in the dist-tags is before the before date, then
- // we use that. Otherwise, we get the highest precedence version
- // prior to the dist-tag.
- if (isBefore(verTimes, ver, time)) {
- return decorateAvoid(versions[ver] || staged[ver] || restricted[ver], avoid)
- } else {
- return pickManifest(packument, `<=${ver}`, opts)
- }
- }
-
- // similarly, if a specific version, then only that version will do
- if (wanted && type === 'version') {
- const ver = semver.clean(wanted, { loose: true })
- const mani = versions[ver] || staged[ver] || restricted[ver]
- return isBefore(verTimes, ver, time) ? decorateAvoid(mani, avoid) : null
- }
-
- // ok, sort based on our heuristics, and pick the best fit
- const range = type === 'range' ? wanted : '*'
-
- // if the range is *, then we prefer the 'latest' if available
- // but skip this if it should be avoided, in that case we have
- // to try a little harder.
- const defaultVer = distTags[defaultTag]
- if (defaultVer &&
- (range === '*' || semver.satisfies(defaultVer, range, { loose: true })) &&
- !shouldAvoid(defaultVer, avoid)) {
- const mani = versions[defaultVer]
- if (mani && isBefore(verTimes, defaultVer, time)) {
- return mani
- }
- }
-
- // ok, actually have to sort the list and take the winner
- const allEntries = Object.entries(versions)
- .concat(Object.entries(staged))
- .concat(Object.entries(restricted))
- .filter(([ver, mani]) => isBefore(verTimes, ver, time))
-
- if (!allEntries.length) {
- throw Object.assign(new Error(`No versions available for ${name}`), {
- code: 'ENOVERSIONS',
- name,
- type,
- wanted,
- before,
- versions: Object.keys(versions)
- })
- }
-
- const sortSemverOpt = { loose: true }
- const entries = allEntries.filter(([ver, mani]) =>
- semver.satisfies(ver, range, { loose: true }))
- .sort((a, b) => {
- const [vera, mania] = a
- const [verb, manib] = b
- const notavoida = !shouldAvoid(vera, avoid)
- const notavoidb = !shouldAvoid(verb, avoid)
- const notrestra = !restricted[a]
- const notrestrb = !restricted[b]
- const notstagea = !staged[a]
- const notstageb = !staged[b]
- const notdepra = !mania.deprecated
- const notdeprb = !manib.deprecated
- const enginea = engineOk(mania, npmVersion, nodeVersion)
- const engineb = engineOk(manib, npmVersion, nodeVersion)
- // sort by:
- // - not an avoided version
- // - not restricted
- // - not staged
- // - not deprecated and engine ok
- // - engine ok
- // - not deprecated
- // - semver
- return (notavoidb - notavoida) ||
- (notrestrb - notrestra) ||
- (notstageb - notstagea) ||
- ((notdeprb && engineb) - (notdepra && enginea)) ||
- (engineb - enginea) ||
- (notdeprb - notdepra) ||
- semver.rcompare(vera, verb, sortSemverOpt)
- })
-
- return decorateAvoid(entries[0] && entries[0][1], avoid)
-}
-
-module.exports = (packument, wanted, opts = {}) => {
- const mani = pickManifest(packument, wanted, opts)
- const picked = mani && normalizeBin(mani)
- const policyRestrictions = packument.policyRestrictions
- const restricted = (policyRestrictions && policyRestrictions.versions) || {}
-
- if (picked && !restricted[picked.version]) {
- return picked
- }
-
- const { before = null, defaultTag = 'latest' } = opts
- const bstr = before ? new Date(before).toLocaleString() : ''
- const { name } = packument
- const pckg = `${name}@${wanted}` +
- (before ? ` with a date before ${bstr}` : '')
-
- const isForbidden = picked && !!restricted[picked.version]
- const polMsg = isForbidden ? policyRestrictions.message : ''
-
- const msg = !isForbidden ? `No matching version found for ${pckg}.`
- : `Could not download ${pckg} due to policy violations:\n${polMsg}`
-
- const code = isForbidden ? 'E403' : 'ETARGET'
- throw Object.assign(new Error(msg), {
- code,
- type: npa.resolve(packument.name, wanted).type,
- wanted,
- versions: Object.keys(packument.versions),
- name,
- distTags: packument['dist-tags'],
- defaultTag
- })
-}
diff --git a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/package.json b/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/package.json
deleted file mode 100644
index 4b4866cb..00000000
--- a/sandbox/testAppNevena/Front/node_modules/npm-pick-manifest/package.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "name": "npm-pick-manifest",
- "version": "6.1.1",
- "description": "Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.",
- "main": "index.js",
- "files": [
- "*.js"
- ],
- "scripts": {
- "coverage": "tap",
- "lint": "standard",
- "test": "tap",
- "posttest": "npm run lint",
- "preversion": "npm test",
- "postversion": "npm publish",
- "prepublishOnly": "git push origin --follow-tags"
- },
- "repository": "https://github.com/npm/npm-pick-manifest",
- "keywords": [
- "npm",
- "semver",
- "package manager"
- ],
- "author": {
- "name": "Kat Marchán",
- "email": "kzm@sykosomatic.org",
- "twitter": "maybekatz"
- },
- "license": "ISC",
- "dependencies": {
- "npm-install-checks": "^4.0.0",
- "npm-normalize-package-bin": "^1.0.1",
- "npm-package-arg": "^8.1.2",
- "semver": "^7.3.4"
- },
- "devDependencies": {
- "standard": "^14.3.1",
- "tap": "^14.11.0"
- },
- "tap": {
- "check-coverage": true
- }
-}