mirror of https://gitee.com/openkylin/npm.git
Import Debian changes 8.5.1~ds-ok1
npm (8.5.1~ds-ok1) yangtze; urgency=medium * Build for openKylin.
This commit is contained in:
parent
73846cac3f
commit
18504a6f24
|
@ -0,0 +1,11 @@
|
|||
npm (1.1.4~dfsg-1) unstable; urgency=low
|
||||
|
||||
This release of npm does not support previous modules layouts.
|
||||
Modules are now installed in ./node_modules when used in the default
|
||||
local mode.
|
||||
|
||||
More information can be found in the nodejs Modules documentation,
|
||||
/usr/share/doc/npm/README.Debian, and npm-folders(1) and npm-link(1)
|
||||
man pages.
|
||||
|
||||
-- Jérémy Lal <kapouer@melix.org> Tue, 25 Oct 2011 15:19:32 +0200
|
|
@ -0,0 +1,50 @@
|
|||
npm for Debian
|
||||
==============
|
||||
|
||||
nodejs Debian package provides /usr/bin/nodejs
|
||||
----------------------------------------------
|
||||
|
||||
Modules installed by npm can ship executables.
|
||||
These executables depend on /usr/bin/node, which is
|
||||
provided by the nodejs-legacy Debian package.
|
||||
|
||||
More information:
|
||||
/usr/share/doc/nodejs/README.Debian
|
||||
|
||||
|
||||
global mode npm
|
||||
---------------
|
||||
|
||||
When run in global mode, npm is configured like this :
|
||||
|
||||
prefix=/usr/local
|
||||
globalconfig=/etc/npmrc
|
||||
globalignorefile=/etc/npmignore
|
||||
|
||||
That means npm -g install mymodule will be installed in :
|
||||
|
||||
/usr/local/lib/node_modules/
|
||||
|
||||
If mymodule installs executables, they go to :
|
||||
|
||||
/usr/local/bin
|
||||
|
||||
And man pages to
|
||||
|
||||
/usr/local/share/man
|
||||
|
||||
Please read npm-config(1), npm-folders(1) and npm-link(1) man pages.
|
||||
|
||||
This global configuration is kept across a global self update of npm.
|
||||
It is not guaranteed it will stay like this, so it's safer to update
|
||||
npm debian package instead.
|
||||
|
||||
|
||||
do not confuse with /usr/lib/nodejs
|
||||
-----------------------------------
|
||||
|
||||
/usr/lib/nodejs directory is reserved for modules that are provided by a
|
||||
debian package.
|
||||
|
||||
|
||||
-- Jérémy Lal <kapouer@melix.org> Fri, 28 Jan 2011 00:33:28 +0200
|
|
@ -0,0 +1,24 @@
|
|||
git-buildpackage
|
||||
================
|
||||
|
||||
|
||||
CDBS+git-buildpackage
|
||||
---------------------
|
||||
|
||||
This source package uses CDBS and git-buildpackage. NMUs need not (but
|
||||
are encouraged to) make special use of these tools. In particular, the
|
||||
debian/control.in file can be completely ignored.
|
||||
|
||||
More info here: http://wiki.debian.org/CDBS+git-buildpackage
|
||||
|
||||
|
||||
symlinks to man pages
|
||||
---------------------
|
||||
|
||||
npm searches for man pages in ./man/man1/*.1, and that is why symlinks
|
||||
are there :
|
||||
/usr/share/man/man1/npm-xxx.1.gz -> /usr/share/npm/man/man1/xxx.1
|
||||
|
||||
npm does not search for man pages with .gz extension, so we get :
|
||||
E: npm: compressed-symlink-with-wrong-ext
|
||||
This is just to avoid having to patch npm.
|
|
@ -0,0 +1,2 @@
|
|||
* Generate html and man pages from ronnjs. Exclude them too.
|
||||
+ nodejs >= 0.6.12 ships node-marked. Check if npm will use that tool.
|
|
@ -0,0 +1,5 @@
|
|||
npm (8.5.1~ds-ok1) yangtze; urgency=medium
|
||||
|
||||
* Build for openKylin.
|
||||
|
||||
-- zhouganqing <zhouganqing@kylinos.cn> Thu, 16 Feb 2023 14:32:28 +0800
|
|
@ -0,0 +1,35 @@
|
|||
.nyc_output/
|
||||
debian/tests/test_modules/npm-registry-mock/.nyc_output/
|
||||
doc/misc/npm-index.md
|
||||
npmrc
|
||||
man/
|
||||
test/fixtures/config/userconfig-with-gc
|
||||
test/npm_cache_adduser-always-auth/
|
||||
test/npm_cache_anon-cli-metrics/
|
||||
test/npm_cache_bugs/
|
||||
test/npm_cache_ci-header/
|
||||
test/npm_cache_circular-dep/
|
||||
test/npm_cache_dedupe/
|
||||
test/npm_cache_deprecate/
|
||||
test/npm_cache_git-prepare/
|
||||
test/npm_cache_peer-deps/
|
||||
test/npm_cache_repo/
|
||||
test/npm_cache_shrinkwrap-_auth/
|
||||
test/tap/adduser-always-auth/
|
||||
test/tap/audit-fix/
|
||||
test/tap/bugs/
|
||||
test/tap/ci-header/
|
||||
test/tap/circular-dep/
|
||||
test/tap/dist-tag/
|
||||
test/tap/git-prepare/
|
||||
test/tap/false-name/
|
||||
test/tap/ignore-scripts/
|
||||
test/tap/pack-files-and-ignores/
|
||||
test/tap/pack/
|
||||
test/tap/peer-deps/
|
||||
test/tap/prepublish/
|
||||
test/tap/prune-dev-dep-cycle/
|
||||
test/tap/prune-dev-dep-with-bins/
|
||||
test/tap/shrinkwrap-_auth/
|
||||
test/tap/shrinkwrap-global-auth/
|
||||
test/tap/shrinkwrap-scoped-auth/
|
|
@ -0,0 +1,155 @@
|
|||
Source: npm
|
||||
Maintainer: OpenKylin Developers <packaging@lists.openkylin.top>
|
||||
Section: javascript
|
||||
Testsuite: autopkgtest-pkg-nodejs
|
||||
Priority: optional
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
bash-completion,
|
||||
dh-sequence-nodejs (>= 0.11.5~),
|
||||
help2man <!nodoc>,
|
||||
node-abbrev <!nocheck>,
|
||||
node-agent-base <!nocheck>,
|
||||
node-ansistyles <!nocheck>,
|
||||
node-aproba <!nocheck>,
|
||||
node-archy <!nocheck>,
|
||||
node-asap <!nocheck>,
|
||||
node-cacache <!nocheck>,
|
||||
node-chalk <!nocheck>,
|
||||
node-chownr <!nocheck>,
|
||||
node-cli-table3 <!nocheck>,
|
||||
node-colors <!nocheck>,
|
||||
node-columnify <!nocheck>,
|
||||
node-debug <!nocheck>,
|
||||
node-depd <!nocheck>,
|
||||
node-emoji-regex <!nocheck>,
|
||||
node-encoding <!nocheck>,
|
||||
node-glob <!nocheck>,
|
||||
node-got <!nocheck>,
|
||||
node-graceful-fs <!nocheck>,
|
||||
node-gyp <!nocheck>,
|
||||
node-hosted-git-info <!nocheck>,
|
||||
node-https-proxy-agent <!nocheck>,
|
||||
node-ini <!nocheck>,
|
||||
node-ip <!nocheck>,
|
||||
node-ip-regex <!nocheck>,
|
||||
node-json-parse-better-errors <!nocheck>,
|
||||
node-jsonparse <!nocheck>,
|
||||
node-lru-cache <!nocheck>,
|
||||
node-marked-man,
|
||||
node-minimatch <!nocheck>,
|
||||
node-minipass <!nocheck>,
|
||||
node-mkdirp <!nocheck>,
|
||||
node-ms <!nocheck>,
|
||||
node-negotiator <!nocheck>,
|
||||
node-nopt <!nocheck>,
|
||||
node-normalize-package-data <!nocheck>,
|
||||
node-npm-bundled <!nocheck>,
|
||||
node-npm-package-arg <!nocheck>,
|
||||
node-npmlog <!nocheck>,
|
||||
node-once <!nocheck>,
|
||||
node-opener <!nocheck>,
|
||||
node-promise-retry <!nocheck>,
|
||||
node-promzard <!nocheck>,
|
||||
node-read <!nocheck>,
|
||||
node-read-package-json <!nocheck>,
|
||||
node-rimraf <!nocheck>,
|
||||
node-semver <!nocheck>,
|
||||
node-ssri <!nocheck>,
|
||||
node-string-width <!nocheck>,
|
||||
node-strip-ansi <!nocheck>,
|
||||
node-tap <!nodoc>,
|
||||
node-tar <!nocheck>,
|
||||
node-text-table <!nocheck>,
|
||||
node-validate-npm-package-license <!nocheck>,
|
||||
node-validate-npm-package-name <!nocheck>,
|
||||
node-which <!nocheck>,
|
||||
node-wrappy <!nocheck>,
|
||||
node-write-file-atomic <!nocheck>,
|
||||
node-yallist
|
||||
Standards-Version: 4.6.0
|
||||
Vcs-Browser: https://gitee.com/openkylin/npm
|
||||
Vcs-Git: https://gitee.com/openkylin/npm.git
|
||||
Homepage: https://docs.npmjs.com/
|
||||
Rules-Requires-Root: no
|
||||
|
||||
Package: npm
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends},
|
||||
ca-certificates,
|
||||
node-abbrev,
|
||||
node-agent-base,
|
||||
node-ansistyles,
|
||||
node-aproba,
|
||||
node-archy,
|
||||
node-asap,
|
||||
node-cacache,
|
||||
node-chalk,
|
||||
node-chownr,
|
||||
node-cli-table3,
|
||||
node-colors,
|
||||
node-columnify,
|
||||
node-debug,
|
||||
node-depd,
|
||||
node-emoji-regex,
|
||||
node-encoding,
|
||||
node-glob,
|
||||
node-got,
|
||||
node-graceful-fs,
|
||||
node-gyp,
|
||||
node-hosted-git-info,
|
||||
node-https-proxy-agent,
|
||||
node-ini,
|
||||
node-ip,
|
||||
node-ip-regex,
|
||||
node-json-parse-better-errors,
|
||||
node-jsonparse,
|
||||
node-lru-cache,
|
||||
node-minimatch,
|
||||
node-minipass,
|
||||
node-mkdirp,
|
||||
node-ms,
|
||||
node-negotiator,
|
||||
node-nopt,
|
||||
node-normalize-package-data,
|
||||
node-npm-bundled,
|
||||
node-npm-package-arg,
|
||||
node-npmlog,
|
||||
node-once,
|
||||
node-promise-retry,
|
||||
node-promzard,
|
||||
node-read,
|
||||
node-read-package-json,
|
||||
node-rimraf,
|
||||
node-semver,
|
||||
node-ssri,
|
||||
node-string-width,
|
||||
node-strip-ansi,
|
||||
node-tar,
|
||||
node-text-table,
|
||||
node-validate-npm-package-license,
|
||||
node-validate-npm-package-name,
|
||||
node-which,
|
||||
node-wrappy,
|
||||
node-write-file-atomic,
|
||||
node-yallist,
|
||||
nodejs:any (>= 10),
|
||||
Recommends: git
|
||||
, node-tap
|
||||
Suggests: node-opener
|
||||
Provides: ${nodejs:Provides}
|
||||
, arborist (= ${arborist:Version})
|
||||
, npm-packlist (= ${npmpl:Version})
|
||||
, pacote (= ${pacote:Version})
|
||||
, qrcode-terminal (= ${qrt:Version})
|
||||
Description: package manager for Node.js
|
||||
Node.js is an event-based server-side javascript engine.
|
||||
.
|
||||
npm is the package manager for the Node JavaScript platform. It puts
|
||||
modules in place so that node can find them, and manages dependency
|
||||
conflicts intelligently.
|
||||
.
|
||||
It is extremely configurable to support a wide variety of use cases.
|
||||
Most commonly, it is used to publish, discover, install, and develop
|
||||
node programs.
|
||||
.
|
||||
Install also node-opener to have full npm features enabled.
|
|
@ -0,0 +1,501 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: npm
|
||||
Upstream-Contact: https://github.com/npm/cli/issues
|
||||
Source: https://github.com/npm/cli
|
||||
Repackaged for easier copyright maintainability - note also that underscore contains a minified file.
|
||||
Either external modules are available as debian packages, in which case
|
||||
they are removed; or they are not good candidates for being packaged
|
||||
at the moment, in which case they are kept.
|
||||
Files-Excluded:
|
||||
node_modules/abbrev
|
||||
node_modules/agent-base
|
||||
node_modules/aggregate-error
|
||||
node_modules/ansi-regex
|
||||
node_modules/ansi-styles
|
||||
node_modules/ansistyles
|
||||
node_modules/aproba
|
||||
node_modules/archy
|
||||
node_modules/are-we-there-yet
|
||||
node_modules/asap
|
||||
node_modules/balanced-match
|
||||
node_modules/binary-extensions
|
||||
node_modules/brace-expansion
|
||||
node_modules/builtins
|
||||
node_modules/cacache
|
||||
node_modules/chalk
|
||||
node_modules/chownr
|
||||
node_modules/clean-stack
|
||||
node_modules/cli-table3
|
||||
node_modules/clone
|
||||
node_modules/color-convert
|
||||
node_modules/color-name
|
||||
node_modules/colors
|
||||
node_modules/color-support
|
||||
node_modules/columnify
|
||||
node_modules/concat-map
|
||||
node_modules/console-control-strings
|
||||
node_modules/debug
|
||||
node_modules/defaults
|
||||
node_modules/delegates
|
||||
node_modules/depd
|
||||
node_modules/diff
|
||||
node_modules/emoji-regex
|
||||
node_modules/encoding
|
||||
node_modules/err-code
|
||||
node_modules/fs.realpath
|
||||
node_modules/function-bind
|
||||
node_modules/gauge
|
||||
node_modules/glob
|
||||
node_modules/graceful-fs
|
||||
node_modules/has
|
||||
node_modules/has-flag
|
||||
node_modules/has-unicode
|
||||
node_modules/hosted-git-info
|
||||
node_modules/http-cache-semantics
|
||||
node_modules/http-proxy-agent
|
||||
node_modules/https-proxy-agent
|
||||
node_modules/iconv-lite
|
||||
node_modules/imurmurhash
|
||||
node_modules/indent-string
|
||||
node_modules/inflight
|
||||
node_modules/inherits
|
||||
node_modules/ini
|
||||
node_modules/ip
|
||||
node_modules/ip-regex
|
||||
node_modules/is-core-module
|
||||
node_modules/is-fullwidth-code-point
|
||||
node_modules/isexe
|
||||
node_modules/is-typedarray
|
||||
node_modules/jsonparse
|
||||
node_modules/json-parse-even-better-errors
|
||||
node_modules/lru-cache
|
||||
node_modules/minimatch
|
||||
node_modules/minipass-collect
|
||||
node_modules/minipass-fetch
|
||||
node_modules/minipass-flush
|
||||
node_modules/minipass-json-stream
|
||||
node_modules/minipass-pipeline
|
||||
node_modules/minipass-sized
|
||||
node_modules/minipass
|
||||
node_modules/minizlib
|
||||
node_modules/mkdirp
|
||||
node_modules/ms
|
||||
node_modules/mute-stream
|
||||
node_modules/negotiator
|
||||
node_modules/node-gyp
|
||||
node_modules/nopt
|
||||
node_modules/normalize-package-data
|
||||
node_modules/npm-bundled
|
||||
node_modules/@npmcli/move-file
|
||||
node_modules/npmlog
|
||||
node_modules/npm-package-arg
|
||||
node_modules/once
|
||||
node_modules/opener
|
||||
node_modules/path-is-absolute
|
||||
node_modules/p-map
|
||||
node_modules/promise-inflight
|
||||
node_modules/promise-retry
|
||||
node_modules/promzard
|
||||
node_modules/read
|
||||
node_modules/readable-stream
|
||||
node_modules/read-package-json
|
||||
node_modules/retry
|
||||
node_modules/rimraf
|
||||
node_modules/safe-buffer
|
||||
node_modules/safer-buffer
|
||||
node_modules/semver
|
||||
node_modules/set-blocking
|
||||
node_modules/signal-exit
|
||||
node_modules/spdx-correct
|
||||
node_modules/spdx-exceptions
|
||||
node_modules/spdx-expression-parse
|
||||
node_modules/spdx-license-ids
|
||||
node_modules/ssri
|
||||
node_modules/string_decoder
|
||||
node_modules/string-width
|
||||
node_modules/strip-ansi
|
||||
node_modules/supports-color
|
||||
node_modules/tar
|
||||
node_modules/text-table
|
||||
node_modules/@tootallnate/once
|
||||
node_modules/typedarray-to-buffer
|
||||
node_modules/unique-filename
|
||||
node_modules/util-deprecate
|
||||
node_modules/validate-npm-package-license
|
||||
node_modules/validate-npm-package-name
|
||||
node_modules/wcwidth
|
||||
node_modules/which
|
||||
node_modules/wide-align
|
||||
node_modules/wrappy
|
||||
node_modules/write-file-atomic
|
||||
node_modules/yallist
|
||||
|
||||
Files: *
|
||||
Copyright: npm, Inc. and Contributors
|
||||
License: Artistic-2.0
|
||||
|
||||
Files: docs/*
|
||||
Copyright: 2015, gatsbyjs
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/*
|
||||
Copyright: npm, Inc.
|
||||
License: ISC
|
||||
|
||||
Files: node_modules/agentkeepalive/*
|
||||
Copyright: 2012-2015, fengmk2 <fengmk2@gmail.com>
|
||||
Joyent, Inc. and other Node contributors
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/ansicolors/*
|
||||
Copyright: 2013, Thorsten Lorenz
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/fastest-levenshtein/*
|
||||
Copyright: 2020 Kasper Unn Weihe
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/cidr-regex/*
|
||||
node_modules/is-cidr/*
|
||||
Copyright: silverwind
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/cli-columns/*
|
||||
Copyright: Shannon Moeller <me@shannonmoeller.com>
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/common-ancestor-path/*
|
||||
node_modules/dezalgo/*
|
||||
node_modules/fs-minipass/*
|
||||
node_modules/ignore-walk/*
|
||||
node_modules/json-stringify-nice/*
|
||||
node_modules/mkdirp-infer-owner/*
|
||||
node_modules/npm-packlist/*
|
||||
node_modules/pacote/*
|
||||
node_modules/promise-all-reject-late/*
|
||||
node_modules/promise-call-limit/*
|
||||
node_modules/readdir-scoped-modules/*
|
||||
node_modules/walk-up-path/*
|
||||
Copyright: Isaac Z. Schlueter
|
||||
License: ISC
|
||||
|
||||
Files: node_modules/debuglog/*
|
||||
Copyright: Joyent, Inc. and other Node contributors
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/humanize-ms/*
|
||||
Copyright: dead-horse <dead_horse@qq.com>
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/is-lambda/*
|
||||
Copyright: 2016-2017 Thomas Watson Steen
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/just-diff-apply/*
|
||||
node_modules/just-diff/*
|
||||
Copyright: 2016 angus croll
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/npm-install-checks/*
|
||||
Copyright: Robert Kowalski <rok@kowalski.gd>
|
||||
Isaac Z. Schlueter
|
||||
License: BSD-2-Clause
|
||||
|
||||
Files: node_modules/npm-user-validate/*
|
||||
Copyright: Robert Kowalski <rok@kowalski.gd>
|
||||
License: BSD-2-Clause
|
||||
|
||||
Files: node_modules/qrcode-terminal/*
|
||||
Copyright: Unknown
|
||||
License: Apache-2.0
|
||||
|
||||
Files: node_modules/qrcode-terminal/vendor/QRCode/*
|
||||
Copyright: 2009 Kazuhiko Arase
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/read-cmd-shim/*
|
||||
Copyright: 2015 Rebecca Turner
|
||||
License: ISC
|
||||
|
||||
Files: node_modules/smart-buffer/*
|
||||
node_modules/socks/*
|
||||
Copyright: 2013-2017, Josh Glazebrook
|
||||
License: Expat
|
||||
|
||||
Files: node_modules/tiny-relative-date/*
|
||||
Copyright: 2017, Joseph Wynn
|
||||
License: Expat
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2011-2019, Jérémy Lal <kapouer@melix.org>
|
||||
2011-2012, Jonas Smedegaard <dr@jones.dk>
|
||||
2018-2020, Pirate Praveen <praveen@debian.org>
|
||||
2019, Manas Kashyap <manaskashyaptech@gmail.com>
|
||||
2019-2021, Yadd <yadd@debian.org>
|
||||
License: Artistic-2.0
|
||||
|
||||
License: Apache-2.0
|
||||
On Debian systems, the complete text of the Apache version 2.0 license
|
||||
can be found in `/usr/share/common-licenses/Apache-2.0'.
|
||||
|
||||
License: Artistic-2.0
|
||||
The Artistic License 2.0
|
||||
.
|
||||
Copyright (c) 2000-2006, The Perl Foundation.
|
||||
.
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
.
|
||||
Preamble
|
||||
.
|
||||
This license establishes the terms under which a given free software
|
||||
Package may be copied, modified, distributed, and/or redistributed.
|
||||
The intent is that the Copyright Holder maintains some artistic
|
||||
control over the development of that Package while still keeping the
|
||||
Package available as open source and free software.
|
||||
.
|
||||
You are always permitted to make arrangements wholly outside of this
|
||||
license directly with the Copyright Holder of a given Package. If the
|
||||
terms of this license do not permit the full use that you propose to
|
||||
make of the Package, you should contact the Copyright Holder and seek
|
||||
a different licensing arrangement.
|
||||
.
|
||||
Definitions
|
||||
.
|
||||
"Copyright Holder" means the individual(s) or organization(s)
|
||||
named in the copyright notice for the entire Package.
|
||||
.
|
||||
"Contributor" means any party that has contributed code or other
|
||||
material to the Package, in accordance with the Copyright Holder's
|
||||
procedures.
|
||||
.
|
||||
"You" and "your" means any person who would like to copy,
|
||||
distribute, or modify the Package.
|
||||
.
|
||||
"Package" means the collection of files distributed by the
|
||||
Copyright Holder, and derivatives of that collection and/or of
|
||||
those files. A given Package may consist of either the Standard
|
||||
Version, or a Modified Version.
|
||||
.
|
||||
"Distribute" means providing a copy of the Package or making it
|
||||
accessible to anyone else, or in the case of a company or
|
||||
organization, to others outside of your company or organization.
|
||||
.
|
||||
"Distributor Fee" means any fee that you charge for Distributing
|
||||
this Package or providing support for this Package to another
|
||||
party. It does not mean licensing fees.
|
||||
.
|
||||
"Standard Version" refers to the Package if it has not been
|
||||
modified, or has been modified only in ways explicitly requested
|
||||
by the Copyright Holder.
|
||||
.
|
||||
"Modified Version" means the Package, if it has been changed, and
|
||||
such changes were not explicitly requested by the Copyright
|
||||
Holder.
|
||||
.
|
||||
"Original License" means this Artistic License as Distributed with
|
||||
the Standard Version of the Package, in its current version or as
|
||||
it may be modified by The Perl Foundation in the future.
|
||||
.
|
||||
"Source" form means the source code, documentation source, and
|
||||
configuration files for the Package.
|
||||
.
|
||||
"Compiled" form means the compiled bytecode, object code, binary,
|
||||
or any other form resulting from mechanical transformation or
|
||||
translation of the Source form.
|
||||
.
|
||||
.
|
||||
Permission for Use and Modification Without Distribution
|
||||
.
|
||||
(1) You are permitted to use the Standard Version and create and use
|
||||
Modified Versions for any purpose without restriction, provided that
|
||||
you do not Distribute the Modified Version.
|
||||
.
|
||||
.
|
||||
Permissions for Redistribution of the Standard Version
|
||||
.
|
||||
(2) You may Distribute verbatim copies of the Source form of the
|
||||
Standard Version of this Package in any medium without restriction,
|
||||
either gratis or for a Distributor Fee, provided that you duplicate
|
||||
all of the original copyright notices and associated disclaimers. At
|
||||
your discretion, such verbatim copies may or may not include a
|
||||
Compiled form of the Package.
|
||||
.
|
||||
(3) You may apply any bug fixes, portability changes, and other
|
||||
modifications made available from the Copyright Holder. The resulting
|
||||
Package will still be considered the Standard Version, and as such
|
||||
will be subject to the Original License.
|
||||
.
|
||||
.
|
||||
Distribution of Modified Versions of the Package as Source
|
||||
.
|
||||
(4) You may Distribute your Modified Version as Source (either gratis
|
||||
or for a Distributor Fee, and with or without a Compiled form of the
|
||||
Modified Version) provided that you clearly document how it differs
|
||||
from the Standard Version, including, but not limited to, documenting
|
||||
any non-standard features, executables, or modules, and provided that
|
||||
you do at least ONE of the following:
|
||||
.
|
||||
(a) make the Modified Version available to the Copyright Holder
|
||||
of the Standard Version, under the Original License, so that the
|
||||
Copyright Holder may include your modifications in the Standard
|
||||
Version.
|
||||
.
|
||||
(b) ensure that installation of your Modified Version does not
|
||||
prevent the user installing or running the Standard Version. In
|
||||
addition, the Modified Version must bear a name that is different
|
||||
from the name of the Standard Version.
|
||||
.
|
||||
(c) allow anyone who receives a copy of the Modified Version to
|
||||
make the Source form of the Modified Version available to others
|
||||
under
|
||||
.
|
||||
(i) the Original License or
|
||||
.
|
||||
(ii) a license that permits the licensee to freely copy,
|
||||
modify and redistribute the Modified Version using the same
|
||||
licensing terms that apply to the copy that the licensee
|
||||
received, and requires that the Source form of the Modified
|
||||
Version, and of any works derived from it, be made freely
|
||||
available in that license fees are prohibited but Distributor
|
||||
Fees are allowed.
|
||||
.
|
||||
.
|
||||
Distribution of Compiled Forms of the Standard Version
|
||||
or Modified Versions without the Source
|
||||
.
|
||||
(5) You may Distribute Compiled forms of the Standard Version without
|
||||
the Source, provided that you include complete instructions on how to
|
||||
get the Source of the Standard Version. Such instructions must be
|
||||
valid at the time of your distribution. If these instructions, at any
|
||||
time while you are carrying out such distribution, become invalid, you
|
||||
must provide new instructions on demand or cease further distribution.
|
||||
If you provide valid instructions or cease distribution within thirty
|
||||
days after you become aware that the instructions are invalid, then
|
||||
you do not forfeit any of your rights under this license.
|
||||
.
|
||||
(6) You may Distribute a Modified Version in Compiled form without
|
||||
the Source, provided that you comply with Section 4 with respect to
|
||||
the Source of the Modified Version.
|
||||
.
|
||||
.
|
||||
Aggregating or Linking the Package
|
||||
.
|
||||
(7) You may aggregate the Package (either the Standard Version or
|
||||
Modified Version) with other packages and Distribute the resulting
|
||||
aggregation provided that you do not charge a licensing fee for the
|
||||
Package. Distributor Fees are permitted, and licensing fees for other
|
||||
components in the aggregation are permitted. The terms of this license
|
||||
apply to the use and Distribution of the Standard or Modified Versions
|
||||
as included in the aggregation.
|
||||
.
|
||||
(8) You are permitted to link Modified and Standard Versions with
|
||||
other works, to embed the Package in a larger work of your own, or to
|
||||
build stand-alone binary or bytecode versions of applications that
|
||||
include the Package, and Distribute the result without restriction,
|
||||
provided the result does not expose a direct interface to the Package.
|
||||
.
|
||||
.
|
||||
Items That are Not Considered Part of a Modified Version
|
||||
.
|
||||
(9) Works (including, but not limited to, modules and scripts) that
|
||||
merely extend or make use of the Package, do not, by themselves, cause
|
||||
the Package to be a Modified Version. In addition, such works are not
|
||||
considered parts of the Package itself, and are not subject to the
|
||||
terms of this license.
|
||||
.
|
||||
.
|
||||
General Provisions
|
||||
.
|
||||
(10) Any use, modification, and distribution of the Standard or
|
||||
Modified Versions is governed by this Artistic License. By using,
|
||||
modifying or distributing the Package, you accept this license. Do not
|
||||
use, modify, or distribute the Package, if you do not accept this
|
||||
license.
|
||||
.
|
||||
(11) If your Modified Version has been derived from a Modified
|
||||
Version made by someone other than you, you are nevertheless required
|
||||
to ensure that your Modified Version complies with the requirements of
|
||||
this license.
|
||||
.
|
||||
(12) This license does not grant you the right to use any trademark,
|
||||
service mark, tradename, or logo of the Copyright Holder.
|
||||
.
|
||||
(13) This license includes the non-exclusive, worldwide,
|
||||
free-of-charge patent license to make, have made, use, offer to sell,
|
||||
sell, import and otherwise transfer the Package with respect to any
|
||||
patent claims licensable by the Copyright Holder that are necessarily
|
||||
infringed by the Package. If you institute patent litigation
|
||||
(including a cross-claim or counterclaim) against any party alleging
|
||||
that the Package constitutes direct or contributory patent
|
||||
infringement, then this Artistic License to you shall terminate on the
|
||||
date that such litigation is filed.
|
||||
.
|
||||
(14) Disclaimer of Warranty:
|
||||
THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS
|
||||
IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
|
||||
NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL
|
||||
LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: BSD-2-Clause
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
.
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
.
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
||||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
||||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License: Expat
|
||||
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.
|
||||
|
||||
License: ISC
|
||||
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 AUTHOR DISCLAIMS ALL
|
||||
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
||||
AUTHOR 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.
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,3 @@
|
|||
CONTRIBUTING.md
|
||||
README.md
|
||||
changelogs/*
|
|
@ -0,0 +1 @@
|
|||
debian/npmrc usr/share/nodejs/npm
|
|
@ -0,0 +1,3 @@
|
|||
usr/share/man usr/share/nodejs/npm/man
|
||||
usr/share/nodejs/npm usr/share/npm
|
||||
usr/share/man/man1/npm-arborist.1.gz usr/share/man/man1/arborist.1.gz
|
|
@ -0,0 +1,3 @@
|
|||
man/man1/*.1
|
||||
man/man5/n*.5
|
||||
man/man5/p*.5
|
|
@ -0,0 +1,3 @@
|
|||
node_modules/*
|
||||
node_modules/@*/*
|
||||
packages/*
|
|
@ -0,0 +1,2 @@
|
|||
bin
|
||||
lib
|
|
@ -0,0 +1,10 @@
|
|||
npm/node_modules @npmcli/node_modules
|
||||
npm/node_modules npm-packlist/node_modules
|
||||
npm/node_modules pacote/node_modules
|
||||
npm/bin/npm-cli.js /usr/bin/npm
|
||||
npm/bin/npx-cli.js /usr/bin/npx
|
||||
@npmcli/arborist/bin/index.js /usr/bin/arborist
|
||||
@npmcli/arborist/bin/index.js /usr/bin/npm-arborist
|
||||
npm-packlist/bin/index.js /usr/bin/npm-packlist
|
||||
pacote/lib/bin.js /usr/bin/pacote
|
||||
qrcode-terminal/bin/qrcode-terminal.js /usr/bin/qrcode-terminal
|
|
@ -0,0 +1,5 @@
|
|||
node_modules/@npmcli/*
|
||||
node_modules/npm-packlist
|
||||
packages/*
|
||||
node_modules/pacote
|
||||
node_modules/qrcode-terminal
|
|
@ -0,0 +1 @@
|
|||
lib/utils/completion.sh npm
|
|
@ -0,0 +1,6 @@
|
|||
# False positive
|
||||
executable-not-elf-or-script usr/share/nodejs/@npmcli/run-script/lib/node-gyp-bin/node-gyp.cmd
|
||||
extra-license-file usr/share/nodejs/@npmcli/arborist/bin/license.js
|
||||
repeated-path-segment arborist usr/share/nodejs/@npmcli/arborist/lib/arborist/
|
||||
# Unneeded chmod +x
|
||||
script-not-executable usr/share/nodejs/npm/node_modules/*
|
|
@ -0,0 +1,3 @@
|
|||
rm_conffile /etc/bash_completion.d/npm 5.8.0+ds6-4~
|
||||
dir_to_symlink /usr/share/npm nodejs/npm 7.0.8+ds-2~
|
||||
symlink_to_dir /usr/share/nodejs/npm ../npm 7.0.8+ds-2~
|
|
@ -0,0 +1,5 @@
|
|||
# DO NOT MODIFY THIS FILE - use /etc/npmrc instead.
|
||||
globalconfig=/etc/npmrc
|
||||
globalignorefile=/etc/npmignore
|
||||
prefix=/usr/local
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
Description: remove shebang from completion script
|
||||
Forwarded: not-needed
|
||||
Author: Jérémy Lal <kapouer@melix.org>
|
||||
Last-Update: 2012-04-07
|
||||
--- a/lib/utils/completion.sh
|
||||
+++ b/lib/utils/completion.sh
|
||||
@@ -1,4 +1,3 @@
|
||||
-#!/bin/bash
|
||||
###-begin-npm-completion-###
|
||||
#
|
||||
# npm command completion script
|
|
@ -0,0 +1,17 @@
|
|||
Author: Diane Trout <diane@ghic.org>
|
||||
Forwarded: not-needed
|
||||
Description: Use the Debian packaged version of node-gyp instead
|
||||
of the convenience copy that was removed on repack.
|
||||
Reviewed-By: Xavier Guimard <yadd@debian.org>
|
||||
Last-Update: 2020-10-08
|
||||
|
||||
--- a/bin/node-gyp-bin/node-gyp
|
||||
+++ b/bin/node-gyp-bin/node-gyp
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
if [ "x$npm_config_node_gyp" = "x" ]; then
|
||||
- node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@"
|
||||
+ /usr/bin/node-gyp "$@"
|
||||
else
|
||||
"$npm_config_node_gyp" "$@"
|
||||
fi
|
|
@ -0,0 +1,16 @@
|
|||
Description: don't install dependencies during build
|
||||
Author: Xavier Guimard <yadd@debian.org>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2021-09-22
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
# don't regenerate the snapshot if we're generating
|
||||
# snapshots, since presumably we just did that.
|
||||
-mandocs: dev-deps $(mandocs)
|
||||
+mandocs: $(mandocs)
|
||||
@ ! [ $${npm_lifecycle_event} = "snap" ] && \
|
||||
! [ $${npm_lifecycle_event} = "postsnap" ] && \
|
||||
TAP_SNAPSHOT=1 node test/lib/utils/config/definitions.js || true
|
|
@ -0,0 +1,19 @@
|
|||
Description: Use source-date-epoch as timestamp source for documentation
|
||||
Author: James Addison <jay+salsa@jp-hosting.net>
|
||||
Origin: https://salsa.debian.org/js-team/npm/-/merge_requests/7
|
||||
Forwarded: no
|
||||
Reviewed-By: Yadd <yadd@debian.org>
|
||||
Last-Update: 2021-11-27
|
||||
|
||||
--- a/scripts/docs-build.js
|
||||
+++ b/scripts/docs-build.js
|
||||
@@ -36,7 +36,8 @@
|
||||
.replace(/\[([^\]]+)\]\(\/using-npm\/([^)]+)\)/g, replacer)
|
||||
.trim()
|
||||
|
||||
- fs.writeFile(dest, marked(result), 'utf8', function (err) {
|
||||
+ var date = new Date(process.env.SOURCE_DATE_EPOCH)
|
||||
+ fs.writeFile(dest, marked(result, {date}), 'utf8', function (err) {
|
||||
if (err) {
|
||||
return console.log(err)
|
||||
}
|
|
@ -0,0 +1,95 @@
|
|||
Description: don't check for last version
|
||||
Author: Yadd <yadd@debian.org>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2021-12-13
|
||||
|
||||
--- a/lib/utils/update-notifier.js
|
||||
+++ b/lib/utils/update-notifier.js
|
||||
@@ -35,85 +35,8 @@
|
||||
}
|
||||
|
||||
const updateNotifier = async (npm, spec = 'latest') => {
|
||||
- // never check for updates in CI, when updating npm already, or opted out
|
||||
- if (!npm.config.get('update-notifier') ||
|
||||
- isGlobalNpmUpdate(npm) ||
|
||||
- ciDetect()) {
|
||||
- return null
|
||||
- }
|
||||
-
|
||||
- // if we're on a prerelease train, then updates are coming fast
|
||||
- // check for a new one daily. otherwise, weekly.
|
||||
- const { version } = npm
|
||||
- const current = semver.parse(version)
|
||||
-
|
||||
- // if we're on a beta train, always get the next beta
|
||||
- if (current.prerelease.length) {
|
||||
- spec = `^${version}`
|
||||
- }
|
||||
-
|
||||
- // while on a beta train, get updates daily
|
||||
- const duration = spec !== 'latest' ? DAILY : WEEKLY
|
||||
-
|
||||
- // if we've already checked within the specified duration, don't check again
|
||||
- if (!(await checkTimeout(npm, duration))) {
|
||||
- return null
|
||||
- }
|
||||
-
|
||||
- // if they're currently using a prerelease, nudge to the next prerelease
|
||||
- // otherwise, nudge to latest.
|
||||
- const useColor = log.useColor()
|
||||
-
|
||||
- const mani = await pacote.manifest(`npm@${spec}`, {
|
||||
- // always prefer latest, even if doing --tag=whatever on the cmd
|
||||
- defaultTag: 'latest',
|
||||
- ...npm.flatOptions,
|
||||
- }).catch(() => null)
|
||||
-
|
||||
- // if pacote failed, give up
|
||||
- if (!mani) {
|
||||
- return null
|
||||
- }
|
||||
-
|
||||
- const latest = mani.version
|
||||
-
|
||||
- // if the current version is *greater* than latest, we're on a 'next'
|
||||
- // and should get the updates from that release train.
|
||||
- // Note that this isn't another http request over the network, because
|
||||
- // the packument will be cached by pacote from previous request.
|
||||
- if (semver.gt(version, latest) && spec === 'latest') {
|
||||
- return updateNotifier(npm, `^${version}`)
|
||||
- }
|
||||
-
|
||||
- // if we already have something >= the desired spec, then we're done
|
||||
- if (semver.gte(version, latest)) {
|
||||
- return null
|
||||
- }
|
||||
-
|
||||
- // ok! notify the user about this update they should get.
|
||||
- // The message is saved for printing at process exit so it will not get
|
||||
- // lost in any other messages being printed as part of the command.
|
||||
- const update = semver.parse(mani.version)
|
||||
- const type = update.major !== current.major ? 'major'
|
||||
- : update.minor !== current.minor ? 'minor'
|
||||
- : update.patch !== current.patch ? 'patch'
|
||||
- : 'prerelease'
|
||||
- const typec = !useColor ? type
|
||||
- : type === 'major' ? chalk.red(type)
|
||||
- : type === 'minor' ? chalk.yellow(type)
|
||||
- : chalk.green(type)
|
||||
- const oldc = !useColor ? current : chalk.red(current)
|
||||
- const latestc = !useColor ? latest : chalk.green(latest)
|
||||
- const changelog = `https://github.com/npm/cli/releases/tag/v${latest}`
|
||||
- const changelogc = !useColor ? `<${changelog}>` : chalk.cyan(changelog)
|
||||
- const cmd = `npm install -g npm@${latest}`
|
||||
- const cmdc = !useColor ? `\`${cmd}\`` : chalk.green(cmd)
|
||||
- const message = `\nNew ${typec} version of npm available! ` +
|
||||
- `${oldc} -> ${latestc}\n` +
|
||||
- `Changelog: ${changelogc}\n` +
|
||||
- `Run ${cmdc} to update!\n`
|
||||
-
|
||||
- return message
|
||||
+ // Maintained by Debian JS Team
|
||||
+ return null
|
||||
}
|
||||
|
||||
// only update the notification timeout if we actually finished checking
|
|
@ -0,0 +1,64 @@
|
|||
Description: fix test
|
||||
Author: Yadd <yadd@debian.org>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2021-10-06
|
||||
|
||||
--- a/test/lib/edit.js
|
||||
+++ b/test/lib/edit.js
|
||||
@@ -52,11 +52,11 @@
|
||||
editorOpts = null
|
||||
})
|
||||
|
||||
- return edit.exec(['semver'], (err) => {
|
||||
+ return edit.exec(['init-package-json'], (err) => {
|
||||
if (err)
|
||||
throw err
|
||||
|
||||
- const path = resolve(__dirname, '../../node_modules/semver')
|
||||
+ const path = resolve(__dirname, '../../node_modules/init-package-json')
|
||||
t.strictSame(editorBin, EDITOR, 'used the correct editor')
|
||||
t.strictSame(editorArgs, [path], 'edited the correct directory')
|
||||
t.strictSame(editorOpts, { stdio: 'inherit' }, 'passed the correct opts')
|
||||
@@ -75,8 +75,8 @@
|
||||
})
|
||||
|
||||
rebuildFail = new Error('test error')
|
||||
- return edit.exec(['semver'], (err) => {
|
||||
- const path = resolve(__dirname, '../../node_modules/semver')
|
||||
+ return edit.exec(['init-package-json'], (err) => {
|
||||
+ const path = resolve(__dirname, '../../node_modules/init-package-json')
|
||||
t.strictSame(editorBin, EDITOR, 'used the correct editor')
|
||||
t.strictSame(editorArgs, [path], 'edited the correct directory')
|
||||
t.strictSame(editorOpts, { stdio: 'inherit' }, 'passed the correct opts')
|
||||
@@ -96,11 +96,11 @@
|
||||
EDITOR = 'vim'
|
||||
})
|
||||
|
||||
- return edit.exec(['semver'], (err) => {
|
||||
+ return edit.exec(['init-package-json'], (err) => {
|
||||
if (err)
|
||||
throw err
|
||||
|
||||
- const path = resolve(__dirname, '../../node_modules/semver')
|
||||
+ const path = resolve(__dirname, '../../node_modules/init-package-json')
|
||||
t.strictSame(editorBin, 'code', 'used the correct editor')
|
||||
t.strictSame(editorArgs, ['-w', path], 'edited the correct directory, keeping flags')
|
||||
t.strictSame(editorOpts, { stdio: 'inherit' }, 'passed the correct opts')
|
||||
@@ -125,7 +125,7 @@
|
||||
gracefulFs.lstat = _lstat
|
||||
})
|
||||
|
||||
- return edit.exec(['semver'], (err) => {
|
||||
+ return edit.exec(['init-package-json'], (err) => {
|
||||
t.match(err, /lstat failed/, 'user received correct error')
|
||||
t.end()
|
||||
})
|
||||
@@ -137,7 +137,7 @@
|
||||
EDITOR_CODE = 0
|
||||
})
|
||||
|
||||
- return edit.exec(['semver'], (err) => {
|
||||
+ return edit.exec(['init-package-json'], (err) => {
|
||||
t.match(err, /exited with code: 137/, 'user received correct error')
|
||||
t.end()
|
||||
})
|
|
@ -0,0 +1,70 @@
|
|||
Description: remove some tests (needs tap ≥ 14)
|
||||
Author: Xavier Guimard <yadd@debian.org>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2021-03-15
|
||||
|
||||
--- a/test/lib/utils/config.js
|
||||
+++ b/test/lib/utils/config.js
|
||||
@@ -65,28 +65,6 @@
|
||||
const os = { networkInterfaces, tmpdir }
|
||||
const pkg = { version: '7.0.0' }
|
||||
|
||||
-t.test('working network interfaces, not windows', t => {
|
||||
- const config = requireInject('../../../lib/utils/config.js', {
|
||||
- os,
|
||||
- '@npmcli/ci-detect': () => false,
|
||||
- '../../../lib/utils/is-windows.js': false,
|
||||
- '../../../package.json': pkg,
|
||||
- })
|
||||
- t.matchSnapshot(config)
|
||||
- t.end()
|
||||
-})
|
||||
-
|
||||
-t.test('no working network interfaces, on windows', t => {
|
||||
- const config = requireInject('../../../lib/utils/config.js', {
|
||||
- os: { tmpdir, networkInterfaces: networkInterfacesThrow },
|
||||
- '@npmcli/ci-detect': () => false,
|
||||
- '../../../lib/utils/is-windows.js': true,
|
||||
- '../../../package.json': pkg,
|
||||
- })
|
||||
- t.matchSnapshot(config)
|
||||
- t.end()
|
||||
-})
|
||||
-
|
||||
t.test('no comspec on windows', t => {
|
||||
delete process.env.ComSpec
|
||||
const config = requireInject('../../../lib/utils/config.js', {
|
||||
--- a/test/lib/utils/flat-options.js
|
||||
+++ b/test/lib/utils/flat-options.js
|
||||
@@ -142,7 +142,6 @@
|
||||
npmSession: '12345',
|
||||
cache: generatedFlat.cache.replace(/\\/g, '/'),
|
||||
}
|
||||
- t.matchSnapshot(clean, 'flat options')
|
||||
t.equal(generatedFlat.npmCommand, null, 'command not set yet')
|
||||
npm.command = 'view'
|
||||
t.equal(generatedFlat.npmCommand, 'view', 'command updated via getter')
|
||||
--- a/test/lib/utils/reify-finish.js
|
||||
+++ b/test/lib/utils/reify-finish.js
|
||||
@@ -63,21 +63,6 @@
|
||||
})
|
||||
})
|
||||
|
||||
-t.test('should write if everything above passes', async t => {
|
||||
- expectWrite = true
|
||||
- delete builtinConfMock.loadError
|
||||
- const path = t.testdir()
|
||||
- await reifyFinish(npm, {
|
||||
- options: { global: true },
|
||||
- actualTree: {
|
||||
- inventory: new Map([['node_modules/npm', {path}]]),
|
||||
- },
|
||||
- })
|
||||
- // windowwwwwwssss!!!!!
|
||||
- const data = fs.readFileSync(`${path}/npmrc`, 'utf8').replace(/\r\n/g, '\n')
|
||||
- t.matchSnapshot(data, 'written config')
|
||||
-})
|
||||
-
|
||||
t.test('works without fs.promises', async t => {
|
||||
t.doesNotThrow(() => requireInject('../../../lib/utils/reify-finish.js', {
|
||||
fs: { ...fs, promises: null },
|
|
@ -0,0 +1,6 @@
|
|||
2004_remove_shebang.patch
|
||||
2011_node-gyp-path.patch
|
||||
2012_dont_install_man_deps.patch
|
||||
2020_reproducible_documentation_build.patch
|
||||
dont-check-for-last-version.patch
|
||||
#fix-test.patch
|
|
@ -0,0 +1,57 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
# export DH_VERBOSE=1
|
||||
|
||||
export HOME=/tmp
|
||||
ARBORIST_VERSION=$(shell pkgjs-pjson node_modules/@npmcli/arborist version)
|
||||
NPM_PACKLIST_VERSION=$(shell pkgjs-pjson node_modules/npm-packlist version)
|
||||
PACOTE_VERSION=$(shell pkgjs-pjson node_modules/pacote version)
|
||||
QRT_VERSION=$(shell pkgjs-pjson node_modules/qrcode-terminal version)
|
||||
|
||||
%:
|
||||
dh $@ --with bash-completion
|
||||
|
||||
override_dh_auto_build:
|
||||
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
|
||||
prefix=/usr make mandocs
|
||||
help2man --no-discard-stderr -n "the npm tree doctor" -N \
|
||||
--version-string $(ARBORIST_VERSION) \
|
||||
node_modules/@npmcli/arborist/bin/index.js \
|
||||
>man/man1/npm-arborist.1
|
||||
node_modules/qrcode-terminal/bin/qrcode-terminal.js --help
|
||||
help2man -N -n 'The JavaScript Package Handler' --version-string $(PACOTE_VERSION) \
|
||||
node_modules/pacote/lib/bin.js >man/man1/pacote.1
|
||||
help2man -N -n 'List files to embed in npm package' --version-string $(NPM_PACKLIST_VERSION) \
|
||||
node_modules/npm-packlist/bin/index.js >man/man1/npm-packlist.1
|
||||
endif
|
||||
|
||||
override_dh_fixperms:
|
||||
dh_fixperms
|
||||
chmod a-x debian/npm/usr/share/nodejs/npm/lib/utils/completion.sh
|
||||
chmod a+x debian/npm/usr/share/nodejs/npm/bin/npm-cli.js
|
||||
chmod a+x debian/npm/usr/share/nodejs/npm/bin/npx-cli.js
|
||||
chmod a+x debian/npm/usr/share/nodejs/@npmcli/arborist/bin/index.js
|
||||
chmod a+x debian/npm/usr/share/nodejs/npm-packlist/bin/index.js
|
||||
chmod a+x debian/npm/usr/share/nodejs/pacote/lib/bin.js
|
||||
chmod a+x debian/npm/usr/share/nodejs/qrcode-terminal/bin/qrcode-terminal.js
|
||||
|
||||
override_dh_auto_test:
|
||||
# Test are lauched only during autopkgtest
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install --buildsystem=nodejs
|
||||
rm -vf debian/npm/usr/share/nodejs/npm/bin/node-gyp-bin/node-gyp.cmd \
|
||||
debian/npm/usr/share/nodejs/npm/bin/*.cmd \
|
||||
debian/npm/usr/share/nodejs/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp.cmd
|
||||
|
||||
override_dh_link:
|
||||
rm -rf debian/npm/usr/share/nodejs/npm/man
|
||||
dh_link
|
||||
|
||||
override_dh_gencontrol:
|
||||
dh_gencontrol -- -Vpacote:Version="$(PACOTE_VERSION)" \
|
||||
-Vqrt:Version="$(QRT_VERSION)" \
|
||||
-Vnpmpl:Version="$(NPM_PACKLIST_VERSION)" \
|
||||
-Varborist:Version="$(ARBORIST_VERSION)"
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
|
@ -0,0 +1,30 @@
|
|||
# False positives
|
||||
source-is-missing node_modules/emoji-regex/index.js
|
||||
source-is-missing node_modules/emoji-regex/text.js
|
||||
source-is-missing workspaces/*/test/fixtures/*
|
||||
source-contains-prebuilt-javascript-object node_modules/emoji-regex/es2015/index.js
|
||||
source-contains-prebuilt-javascript-object node_modules/emoji-regex/es2015/text.js
|
||||
source-contains-prebuilt-javascript-object node_modules/emoji-regex/index.js
|
||||
source-contains-prebuilt-javascript-object node_modules/emoji-regex/text.js
|
||||
source-contains-prebuilt-javascript-object workspaces/*/test/fixtures/*
|
||||
very-long-line-length-in-source-file *.md line *
|
||||
very-long-line-length-in-source-file *.json line *
|
||||
very-long-line-length-in-source-file changelogs/CHANGELOG-* line *
|
||||
very-long-line-length-in-source-file node_modules/emoji-regex/es2015/index.js line 5 is 11033 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/emoji-regex/es2015/text.js line 5 is 11034 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/emoji-regex/index.js line 5 is 10209 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/emoji-regex/text.js line 5 is 10210 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/smart-buffer/build/smartbuffer.js.map line 1 is 20978 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/smart-buffer/build/utils.js.map line 1 is 2024 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/socks-proxy-agent/dist/agent.js.map line 1 is 4149 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/socks/build/client/socksclient.js.map line 1 is 22601 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/socks/build/common/constants.js.map line 1 is 2402 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/socks/build/common/helpers.js.map line 1 is 3584 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/socks/build/common/receivebuffer.js.map line 1 is 1605 characters long (>512)
|
||||
very-long-line-length-in-source-file node_modules/socks/build/common/util.js.map line 1 is 662 characters long (>512)
|
||||
very-long-line-length-in-source-file smoke-tests/content/abbrev.json line 442 is 547 characters long (>512)
|
||||
very-long-line-length-in-source-file smoke-tests/content/promise-all-reject-late.json line *
|
||||
very-long-line-length-in-source-file smoke-tests/content/promise-all-reject-late.min.json line *
|
||||
very-long-line-length-in-source-file tap-snapshots/test/lib/commands/search.js.test.cjs line 19 is 1110 characters long (>512)
|
||||
very-long-line-length-in-source-file workspaces/*/test/fixtures/* line *
|
||||
very-long-line-length-in-source-file workspaces/arborist/docs/*.svg line *
|
|
@ -0,0 +1,8 @@
|
|||
Tests: install-test, no-duplication
|
||||
Depends: @
|
||||
Restrictions: allow-stderr, needs-internet, skippable
|
||||
|
||||
Test-Command: npm --version
|
||||
Depends: @
|
||||
Restrictions: superficial
|
||||
Features: test-name=npm-version
|
|
@ -0,0 +1,9 @@
|
|||
set -ex
|
||||
export HOME=${AUTOPKGTEST_TMP:-${TMPDIR:-/tmp}}
|
||||
/usr/bin/npm outdated || true
|
||||
cd "$AUTOPKGTEST_TMP"
|
||||
/usr/bin/npm list
|
||||
/usr/bin/npm init --yes
|
||||
/usr/bin/npm install --save-prod --production -q pretty-ms
|
||||
/usr/bin/npm view babel-core
|
||||
/usr/bin/npm search pretty-ms
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
RE=`grep node_modules/ debian/nodejs/root_modules | perl -ne 'chomp;m#^node_modules/(.*?)(?:/.*)?$# && push @a,$1;END{print "(",join("|",@a).")"}'`
|
||||
if pkgjs-ls|grep DUPLICATE|egrep -v "$RE"; then
|
||||
echo "code duplication found" >&2
|
||||
exit 77
|
||||
else
|
||||
echo "no duplication found"
|
||||
exit 0
|
||||
fi
|
|
@ -0,0 +1 @@
|
|||
require
|
|
@ -0,0 +1 @@
|
|||
test/lib/utils/update-notifier.js
|
|
@ -0,0 +1,10 @@
|
|||
version=4
|
||||
opts=\
|
||||
repacksuffix=~ds,\
|
||||
repack,compression=xz,\
|
||||
filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/npm-$1/,\
|
||||
dversionmangle=auto \
|
||||
https://github.com/npm/cli/tags .*/archive/.*/v?([\d\.]+).tar.gz
|
||||
|
||||
# Experimental releases
|
||||
# https://github.com/npm/cli/tags .*/archive/.*/v?([\d\.]+(?:\-[\w\.]+)?).tar.gz
|
Loading…
Reference in New Issue