Import Debian changes 4.1.3+~4.0.2-ok1

node-tough-cookie (4.1.3+~4.0.2-ok1) nile; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2024-05-07 15:09:04 +08:00 committed by luoyaoming
parent 7b0ded04ce
commit 78bd1d0dc2
17 changed files with 292 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
node-tough-cookie (4.1.3+~4.0.2-ok1) nile; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.top> Tue, 07 May 2024 15:09:04 +0800

35
debian/control vendored Normal file
View File

@ -0,0 +1,35 @@
Source: node-tough-cookie
Maintainer: openKylin Developers <packaging@lists.openkylin.top>
Uploaders: Pirate Praveen <praveen@debian.org>
Section: javascript
Testsuite: autopkgtest-pkg-nodejs
Priority: optional
Build-Depends:
debhelper-compat (= 13)
, dh-sequence-nodejs
, node-async <!nocheck>
, node-psl <!nocheck>
, node-punycode <!nocheck>
, node-universalify <!nocheck>
, node-url-parse <!nocheck>
, node-vows <!nocheck>
Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/js-team/node-tough-cookie
Vcs-Git: https://salsa.debian.org/js-team/node-tough-cookie.git
Homepage: https://github.com/salesforce/tough-cookie
Rules-Requires-Root: no
Package: node-tough-cookie
Architecture: all
Depends:
${misc:Depends}
, node-psl
, node-punycode
, node-universalify
, node-url-parse
Provides: ${nodejs:Provides}
Description: RFC6265 Cookies and Cookie Jar for node.js
This library just provides a way to read and write RFC6265 HTTP cookie
headers.
.
Node.js is an event-based server-side JavaScript engine.

69
debian/copyright vendored Normal file
View File

@ -0,0 +1,69 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: tough-cookie
Upstream-Contact: https://github.com/salesforce/tough-cookie/issues
Source: https://github.com/salesforce/tough-cookie
https://registry.npmjs.org/@types/tough-cookie
Files-Excluded: lib/pubsuffix.js
Files: *
Copyright: 2015, Salesforce.com, Inc.
Jeremy Stashewsky <jstashewsky@salesforce.com>
License: BSD-3-Clause
Files: typestough-cookie/*
Copyright: Microsoft Corporation
License: Expat
Files: debian/*
Copyright: 2017 Pirate Praveen <praveen@debian.org>
2019-2023, Yadd <yadd@debian.org>
License: BSD-3-Clause
Files: debian/tests/test_modules/string.prototype.repeat/*
Copyright: Mathias Bynens <http://mathiasbynens.be/>
License: Expat
License: BSD-3-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.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 HOLDERS 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.

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
README.md

6
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,6 @@
[DEFAULT]
pristine-tar=True
component=['typestough-cookie']
[import-orig]
filter=[ '.gitignore', '.travis.yml', '.git*' ]

1
debian/nodejs/root_modules vendored Normal file
View File

@ -0,0 +1 @@
*

20
debian/patches/drop-one-test.patch vendored Normal file
View File

@ -0,0 +1,20 @@
Description: drop one test incompatible with Debian CI machines
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2023-07-08
--- a/test/node_util_fallback_test.js
+++ b/test/node_util_fallback_test.js
@@ -83,12 +83,6 @@
assert.equal(inspect("util.inspect"), "fallback");
}
},
- "util usage in Cookie": {
- "custom inspect for Cookie still works": function() {
- const cookie = Cookie.parse("a=1; Domain=example.com; Path=/");
- assert.equal(cookie.inspect(), util.inspect(cookie));
- }
- },
"util usage in MemoryCookie": {
"when store is empty": {
topic: function() {

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
drop-one-test.patch

8
debian/rules vendored Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@

4
debian/salsa-ci.yml vendored Normal file
View File

@ -0,0 +1,4 @@
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

5
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1,5 @@
# Data
source-is-missing [lib/cookie.js]
very-long-line-length-in-source-file * [lib/cookie.js:*]
very-long-line-length-in-source-file * [LICENSE:*]
very-long-line-length-in-source-file * [*.md:*]

1
debian/tests/pkg-js/test vendored Normal file
View File

@ -0,0 +1 @@
vows test/*_test.js

View File

@ -0,0 +1,67 @@
{
"_from": "string.prototype.repeat@^0.2.0",
"_id": "string.prototype.repeat@0.2.0",
"_inBundle": false,
"_integrity": "sha1-q6Nt4I3O5qWjN9SbLqHaGyj8Ds8=",
"_location": "/string.prototype.repeat",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "string.prototype.repeat@^0.2.0",
"name": "string.prototype.repeat",
"escapedName": "string.prototype.repeat",
"rawSpec": "^0.2.0",
"saveSpec": null,
"fetchSpec": "^0.2.0"
},
"_requiredBy": [
"#DEV:/"
],
"_resolved": "https://registry.npmjs.org/string.prototype.repeat/-/string.prototype.repeat-0.2.0.tgz",
"_shasum": "aba36de08dcee6a5a337d49b2ea1da1b28fc0ecf",
"_spec": "string.prototype.repeat@^0.2.0",
"_where": "/home/xavier/dev/debian/src/pkg-js/packages/node-tough-cookie",
"author": {
"name": "Mathias Bynens",
"url": "http://mathiasbynens.be/"
},
"bugs": {
"url": "https://github.com/mathiasbynens/String.prototype.repeat/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.",
"directories": {
"test": "tests"
},
"files": [
"LICENSE-MIT.txt",
"repeat.js"
],
"homepage": "http://mths.be/repeat",
"keywords": [
"string",
"repeat",
"es6",
"ecmascript",
"polyfill"
],
"licenses": [
{
"type": "MIT",
"url": "http://mths.be/mit"
}
],
"main": "repeat.js",
"name": "string.prototype.repeat",
"repository": {
"type": "git",
"url": "git+https://github.com/mathiasbynens/String.prototype.repeat.git"
},
"scripts": {
"cover": "istanbul cover --report html --verbose --dir coverage tests/tests.js",
"test": "node tests/tests.js"
},
"version": "0.2.0"
}

View File

@ -0,0 +1,50 @@
/*! http://mths.be/repeat v0.2.0 by @mathias */
if (!String.prototype.repeat) {
(function() {
'use strict'; // needed to support `apply`/`call` with `undefined`/`null`
var defineProperty = (function() {
// IE 8 only supports `Object.defineProperty` on DOM elements
try {
var object = {};
var $defineProperty = Object.defineProperty;
var result = $defineProperty(object, object, object) && $defineProperty;
} catch(error) {}
return result;
}());
var repeat = function(count) {
if (this == null) {
throw TypeError();
}
var string = String(this);
// `ToInteger`
var n = count ? Number(count) : 0;
if (n != n) { // better `isNaN`
n = 0;
}
// Account for out-of-bounds indices
if (n < 0 || n == Infinity) {
throw RangeError();
}
var result = '';
while (n) {
if (n % 2 == 1) {
result += string;
}
if (n > 1) {
string += string;
}
n >>= 1;
}
return result;
};
if (defineProperty) {
defineProperty(String.prototype, 'repeat', {
'value': repeat,
'configurable': true,
'writable': true
});
} else {
String.prototype.repeat = repeat;
}
}());
}

6
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,6 @@
---
Archive: GitHub
Bug-Database: https://github.com/salesforce/tough-cookie/issues
Bug-Submit: https://github.com/salesforce/tough-cookie/issues/new
Repository: https://github.com/salesforce/tough-cookie.git
Repository-Browse: https://github.com/salesforce/tough-cookie

12
debian/watch vendored Normal file
View File

@ -0,0 +1,12 @@
version=4
opts=\
repacksuffix=+dfsg,\
repack,compression=xz,\
dversionmangle=auto,\
filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-tough-cookie-$1/ \
https://github.com/salesforce/tough-cookie/tags .*/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=typestough-cookie,pgpmode=none" \
https://registry.npmjs.org/@types/tough-cookie https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-([\d\.]+)@ARCHIVE_EXT@ group