From 78bd1d0dc226db274b12c44b3127c71e4e650b00 Mon Sep 17 00:00:00 2001 From: openKylinBot Date: Tue, 7 May 2024 15:09:04 +0800 Subject: [PATCH] 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. --- debian/changelog | 5 ++ debian/control | 35 ++++++++++ debian/copyright | 69 +++++++++++++++++++ debian/docs | 1 + debian/gbp.conf | 6 ++ debian/nodejs/root_modules | 1 + debian/patches/drop-one-test.patch | 20 ++++++ debian/patches/series | 1 + debian/rules | 8 +++ debian/salsa-ci.yml | 4 ++ debian/source/format | 1 + debian/source/lintian-overrides | 5 ++ debian/tests/pkg-js/test | 1 + .../string.prototype.repeat/package.json | 67 ++++++++++++++++++ .../string.prototype.repeat/repeat.js | 50 ++++++++++++++ debian/upstream/metadata | 6 ++ debian/watch | 12 ++++ 17 files changed, 292 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/gbp.conf create mode 100644 debian/nodejs/root_modules create mode 100644 debian/patches/drop-one-test.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/salsa-ci.yml create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 debian/tests/pkg-js/test create mode 100644 debian/tests/test_modules/string.prototype.repeat/package.json create mode 100644 debian/tests/test_modules/string.prototype.repeat/repeat.js create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..5c95f60 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +node-tough-cookie (4.1.3+~4.0.2-ok1) nile; urgency=medium + + * Build for openKylin. + + -- openKylinBot Tue, 07 May 2024 15:09:04 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d5cf4f4 --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: node-tough-cookie +Maintainer: openKylin Developers +Uploaders: Pirate Praveen +Section: javascript +Testsuite: autopkgtest-pkg-nodejs +Priority: optional +Build-Depends: + debhelper-compat (= 13) + , dh-sequence-nodejs + , node-async + , node-psl + , node-punycode + , node-universalify + , node-url-parse + , node-vows +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. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..caee451 --- /dev/null +++ b/debian/copyright @@ -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 +License: BSD-3-Clause + +Files: typestough-cookie/* +Copyright: Microsoft Corporation +License: Expat + +Files: debian/* +Copyright: 2017 Pirate Praveen + 2019-2023, Yadd +License: BSD-3-Clause + +Files: debian/tests/test_modules/string.prototype.repeat/* +Copyright: Mathias Bynens +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. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..b43bf86 --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README.md diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..397a6ef --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,6 @@ +[DEFAULT] +pristine-tar=True +component=['typestough-cookie'] + +[import-orig] +filter=[ '.gitignore', '.travis.yml', '.git*' ] diff --git a/debian/nodejs/root_modules b/debian/nodejs/root_modules new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/debian/nodejs/root_modules @@ -0,0 +1 @@ +* diff --git a/debian/patches/drop-one-test.patch b/debian/patches/drop-one-test.patch new file mode 100644 index 0000000..b695f54 --- /dev/null +++ b/debian/patches/drop-one-test.patch @@ -0,0 +1,20 @@ +Description: drop one test incompatible with Debian CI machines +Author: Yadd +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() { diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..43d8a46 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +drop-one-test.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..218df65 --- /dev/null +++ b/debian/rules @@ -0,0 +1,8 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..33c3a64 --- /dev/null +++ b/debian/salsa-ci.yml @@ -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 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..2027b55 --- /dev/null +++ b/debian/source/lintian-overrides @@ -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:*] diff --git a/debian/tests/pkg-js/test b/debian/tests/pkg-js/test new file mode 100644 index 0000000..6d19326 --- /dev/null +++ b/debian/tests/pkg-js/test @@ -0,0 +1 @@ +vows test/*_test.js diff --git a/debian/tests/test_modules/string.prototype.repeat/package.json b/debian/tests/test_modules/string.prototype.repeat/package.json new file mode 100644 index 0000000..ce509b4 --- /dev/null +++ b/debian/tests/test_modules/string.prototype.repeat/package.json @@ -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" +} diff --git a/debian/tests/test_modules/string.prototype.repeat/repeat.js b/debian/tests/test_modules/string.prototype.repeat/repeat.js new file mode 100644 index 0000000..30bf044 --- /dev/null +++ b/debian/tests/test_modules/string.prototype.repeat/repeat.js @@ -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; + } + }()); +} diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..f155464 --- /dev/null +++ b/debian/upstream/metadata @@ -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 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..0f6bd2b --- /dev/null +++ b/debian/watch @@ -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