Import Debian changes 6.0.2+~cs5.4.2-ok1
node-agent-base (6.0.2+~cs5.4.2-ok1) yangtze; urgency=medium * Build for openKylin.
This commit is contained in:
parent
c36ffc8542
commit
595e51a16d
|
@ -0,0 +1,5 @@
|
||||||
|
node-agent-base (6.0.2+~cs5.4.2-ok1) yangtze; urgency=medium
|
||||||
|
|
||||||
|
* Build for openKylin.
|
||||||
|
|
||||||
|
-- zhouganqing <zhouganqing@kylinos.cn> Fri, 17 Feb 2023 11:06:10 +0800
|
|
@ -0,0 +1,33 @@
|
||||||
|
Source: node-agent-base
|
||||||
|
Section: javascript
|
||||||
|
Testsuite: autopkgtest-pkg-nodejs
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: OpenKylin Developers <packaging@lists.openkylin.top>
|
||||||
|
Build-Depends: debhelper-compat (= 13)
|
||||||
|
, dh-sequence-nodejs
|
||||||
|
, expect <!nocheck>
|
||||||
|
, mocha <!nocheck>
|
||||||
|
, node-debug (>= 4~)
|
||||||
|
, node-semver (>= 7~)
|
||||||
|
, node-types-mocha
|
||||||
|
, node-typescript
|
||||||
|
, node-types-node
|
||||||
|
, openssl <!nocheck>
|
||||||
|
Standards-Version: 4.6.0
|
||||||
|
Homepage: https://github.com/TooTallNate/node-agent-base#readme
|
||||||
|
Vcs-Git: https://gitee.com/openkylin/node-agent-base.git
|
||||||
|
Vcs-Browser: https://gitee.com/openkylin/node-agent-base
|
||||||
|
Rules-Requires-Root: no
|
||||||
|
|
||||||
|
Package: node-agent-base
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}
|
||||||
|
, node-debug
|
||||||
|
, node-semver
|
||||||
|
Provides: ${nodejs:Provides}
|
||||||
|
Description: Turn a function into an http.Agent instance
|
||||||
|
This module provides an http.Agent generator. That is, you pass it an async
|
||||||
|
callback function, and it returns a new http.Agent instance that will invoke
|
||||||
|
the given callback function when sending outbound HTTP requests.
|
||||||
|
.
|
||||||
|
Node.js is an event-based server-side JavaScript engine.
|
|
@ -0,0 +1,41 @@
|
||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: node-agent-base
|
||||||
|
Upstream-Contact: https://github.com/TooTallNate/node-agent-base/issues
|
||||||
|
Source: https://github.com/TooTallNate/node-agent-base
|
||||||
|
https://registry.npmjs.org/async-listen
|
||||||
|
https://registry.npmjs.org/@types/agent-base
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2018, Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)
|
||||||
|
License: Expat
|
||||||
|
|
||||||
|
Files: types-*/*
|
||||||
|
Copyright: Microsoft Corporation
|
||||||
|
License: Expat
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2018 Per Andersson <avtobiff@debian.org>
|
||||||
|
2020 Andrius Merkys <merkys@debian.org>
|
||||||
|
2021 Vivek K J <vivekkj@protonmail.com>
|
||||||
|
License: Expat
|
||||||
|
|
||||||
|
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.
|
|
@ -0,0 +1 @@
|
||||||
|
README.md
|
|
@ -0,0 +1,6 @@
|
||||||
|
[DEFAULT]
|
||||||
|
pristine-tar=True
|
||||||
|
component=['async-listen', 'types-agent-base']
|
||||||
|
|
||||||
|
[import-orig]
|
||||||
|
filter=[ '.gitignore', '.travis.yml', '.git*' ]
|
|
@ -0,0 +1 @@
|
||||||
|
dist/test usr/share/nodejs/agent-base/dist
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/expect -f
|
||||||
|
|
||||||
|
spawn openssl req -new -x509 -days 3650 -nodes -sha256 -out test/ssl-cert-snakeoil.pem -keyout test/ssl-cert-snakeoil.key
|
||||||
|
send -- "\r"
|
||||||
|
send -- "\r"
|
||||||
|
send -- "\r"
|
||||||
|
send -- "\r"
|
||||||
|
send -- "\r"
|
||||||
|
send -- "\r"
|
||||||
|
send -- "\r"
|
||||||
|
expect eof
|
|
@ -0,0 +1 @@
|
||||||
|
@types/debug
|
|
@ -0,0 +1,4 @@
|
||||||
|
@types/mocha
|
||||||
|
@types/ms
|
||||||
|
@types/node
|
||||||
|
@types/semver
|
|
@ -0,0 +1 @@
|
||||||
|
*
|
|
@ -0,0 +1,34 @@
|
||||||
|
Description: ignore typescript ≥ 4.1 regression
|
||||||
|
Author: Xavier Guimard <yadd@debian.org>
|
||||||
|
Bug-Debian: https://bugs.debian.org/975794
|
||||||
|
Forwarded: no
|
||||||
|
Last-Update: 2021-10-27
|
||||||
|
|
||||||
|
--- a/src/promisify.ts
|
||||||
|
+++ b/src/promisify.ts
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
if (err) {
|
||||||
|
reject(err);
|
||||||
|
} else {
|
||||||
|
+ // @ts-ignore
|
||||||
|
resolve(rtn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--- a/test/test.ts
|
||||||
|
+++ b/test/test.ts
|
||||||
|
@@ -250,6 +250,7 @@
|
||||||
|
await req({ agent, ...info });
|
||||||
|
} catch (err) {
|
||||||
|
gotError = true;
|
||||||
|
+// @ts-ignore
|
||||||
|
assert.equal(err.message, 'bad');
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -277,6 +278,7 @@
|
||||||
|
await req({ agent, ...info });
|
||||||
|
} catch (err) {
|
||||||
|
gotError = true;
|
||||||
|
+// @ts-ignore
|
||||||
|
assert.equal(err.message, 'bad');
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
snakeoil-path.patch
|
||||||
|
fix-typescript.patch
|
|
@ -0,0 +1,13 @@
|
||||||
|
--- a/test/test.ts
|
||||||
|
+++ b/test/test.ts
|
||||||
|
@@ -27,8 +27,8 @@
|
||||||
|
};
|
||||||
|
|
||||||
|
const sslOptions = {
|
||||||
|
- key: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.key'),
|
||||||
|
- cert: fs.readFileSync(__dirname + '/ssl-cert-snakeoil.pem')
|
||||||
|
+ key: fs.readFileSync('test/ssl-cert-snakeoil.key'),
|
||||||
|
+ cert: fs.readFileSync('test/ssl-cert-snakeoil.pem')
|
||||||
|
};
|
||||||
|
|
||||||
|
function json(res: http.IncomingMessage): Promise<any> {
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
tsc
|
||||||
|
|
||||||
|
override_dh_clean:
|
||||||
|
dh_clean
|
||||||
|
rm -rf dist node_modules
|
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
|
@ -0,0 +1 @@
|
||||||
|
unapply-patches
|
|
@ -0,0 +1,2 @@
|
||||||
|
debian/make-snakeoil.exp
|
||||||
|
test/*.js
|
|
@ -0,0 +1,3 @@
|
||||||
|
mkdir --parents test
|
||||||
|
debian/make-snakeoil.exp
|
||||||
|
mocha --reporter spec dist/test/*.js
|
|
@ -0,0 +1,15 @@
|
||||||
|
version=4
|
||||||
|
opts=\
|
||||||
|
dversionmangle=auto,\
|
||||||
|
filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-agent-base-$1/ \
|
||||||
|
https://github.com/TooTallNate/node-agent-base/releases .*/archive/.*/v?([\d\.]+).tar.gz group
|
||||||
|
|
||||||
|
# It is not recommended use npmregistry. Please investigate more.
|
||||||
|
# Take a look at https://wiki.debian.org/debian/watch/
|
||||||
|
opts="searchmode=plain,ctype=nodejs,component=async-listen,pgpmode=none" \
|
||||||
|
https://registry.npmjs.org/async-listen https://registry.npmjs.org/async-listen/-/async-listen-([\d\.]+)@ARCHIVE_EXT@ checksum
|
||||||
|
|
||||||
|
# It is not recommended use npmregistry. Please investigate more.
|
||||||
|
# Take a look at https://wiki.debian.org/debian/watch/
|
||||||
|
opts="searchmode=plain,component=types-agent-base,ctype=nodejs,pgpmode=none" \
|
||||||
|
https://registry.npmjs.org/@types/agent-base https://registry.npmjs.org/@types/agent-base/-/agent-base-([\d\.]+)@ARCHIVE_EXT@ checksum
|
Loading…
Reference in New Issue