Run of fresh-releases for node-color-string

Try this locally (using the lintian-brush package):

debcheckout node-color-string
cd node-color-string
new-upstream --refresh-patches

Merge these changes:

git pull https://janitor.debian.net/git/node-color-string fresh-releases/main
git pull https://janitor.debian.net/git/node-color-string fresh-releases/pristine-tar
git pull https://janitor.debian.net/git/node-color-string fresh-releases/upstream

Summary

Merged new upstream version: 1.5.5 (was: 1.5.4).

Diff

Branch: main

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c2658d7
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules/
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..3748f3f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,10 @@
+sudo: false
+language: node_js
+node_js:
+  - 0.12
+  - iojs
+  - 4
+  - 5
+  - 6
+  - 7
+  - stable
diff --git a/debian/changelog b/debian/changelog
index 299dfc1..b77dbd7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-color-string (1.5.5-1) UNRELEASED; urgency=low
+
+  * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sat, 29 May 2021 00:46:17 -0000
+
 node-color-string (1.5.4-1) unstable; urgency=medium
 
   * Team upload
diff --git a/index.js b/index.js
index 7098c4c..25fba85 100644
--- a/index.js
+++ b/index.js
@@ -129,7 +129,7 @@ cs.get.hsl = function (string) {
 		return null;
 	}
 
-	var hsl = /^hsla?\(\s*([+-]?(?:\d*\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
+	var hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
 	var match = string.match(hsl);
 
 	if (match) {
@@ -150,7 +150,7 @@ cs.get.hwb = function (string) {
 		return null;
 	}
 
-	var hwb = /^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
+	var hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/;
 	var match = string.match(hwb);
 
 	if (match) {
diff --git a/package.json b/package.json
index f2eaecc..905f7b7 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "color-string",
   "description": "Parser and generator for CSS color strings",
-  "version": "1.5.4",
+  "version": "1.5.5",
   "author": "Heather Arthur <fayearthur@gmail.com>",
   "contributors": [
     "Maxime Thirouin",
diff --git a/types-color-string/LICENSE b/types-color-string/LICENSE
deleted file mode 100644
index 2107107..0000000
--- a/types-color-string/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-    MIT License
-
-    Copyright (c) Microsoft Corporation. All rights reserved.
-
-    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/types-color-string/README.md b/types-color-string/README.md
deleted file mode 100644
index 55d7a0f..0000000
--- a/types-color-string/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Installation
-> `npm install --save @types/color-string`
-
-# Summary
-This package contains type definitions for color-string (https://github.com/qix-/color-string#readme).
-
-# Details
-Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/color-string
-
-Additional Details
- * Last updated: Sat, 22 Jul 2017 19:03:51 GMT
- * Dependencies: none
- * Global values: none
-
-# Credits
-These definitions were written by BendingBender <https://github.com/BendingBender>, Dan Marshall <https://github.com/danmarshall>.
diff --git a/types-color-string/index.d.ts b/types-color-string/index.d.ts
deleted file mode 100644
index 4eda883..0000000
--- a/types-color-string/index.d.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-// Type definitions for color-string 1.5
-// Project: https://github.com/qix-/color-string#readme
-// Definitions by: BendingBender <https://github.com/BendingBender>
-//                 Dan Marshall <https://github.com/danmarshall>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-export type Color = [number, number, number, number];
-
-export interface ColorDescriptor {
-    model: 'rgb' | 'hsl' | 'hwb';
-    value: Color;
-}
-
-export function get(colorString: string): ColorDescriptor | null;
-
-export namespace get {
-    function hsl(colorString: string): Color | null;
-    function hwb(colorString: string): Color | null;
-    function rgb(colorString: string): Color | null;
-}
-
-export namespace to {
-    function hex(...args: Array<number | number[]>): string;
-    function rgb(...args: Array<number | number[]>): string;
-    namespace rgb {
-        function percent(...args: Array<number | number[]>): string;
-    }
-    function keyword(...args: Array<number | number[]>): string;
-    function hsl(...args: Array<number | number[]>): string;
-    function hwb(...args: Array<number | number[]>): string;
-}
diff --git a/types-color-string/package.json b/types-color-string/package.json
deleted file mode 100644
index 92d1161..0000000
--- a/types-color-string/package.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
-    "name": "@types/color-string",
-    "version": "1.5.0",
-    "description": "TypeScript definitions for color-string",
-    "license": "MIT",
-    "contributors": [
-        {
-            "name": "BendingBender",
-            "url": "https://github.com/BendingBender"
-        },
-        {
-            "name": "Dan Marshall",
-            "url": "https://github.com/danmarshall"
-        }
-    ],
-    "main": "",
-    "repository": {
-        "type": "git",
-        "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
-    },
-    "scripts": {},
-    "dependencies": {},
-    "peerDependencies": {},
-    "typesPublisherContentHash": "ec3f34c8c1a1391a64046a9756fe9f2311ac8ce46531fe381f4d4c5a706b434a",
-    "typeScriptVersion": "2.0"
-}
\ No newline at end of file

Branch: pristine-tar

diff --git a/node-color-string_1.5.5.orig.tar.gz.delta b/node-color-string_1.5.5.orig.tar.gz.delta
new file mode 100644
index 0000000..92a8542
Binary files /dev/null and b/node-color-string_1.5.5.orig.tar.gz.delta differ
diff --git a/node-color-string_1.5.5.orig.tar.gz.id b/node-color-string_1.5.5.orig.tar.gz.id
new file mode 100644
index 0000000..1c354b8
--- /dev/null
+++ b/node-color-string_1.5.5.orig.tar.gz.id
@@ -0,0 +1 @@
+b6b78a3852ae32c14f37e08d7168ef094955873c

Branch: upstream

Tag: upstream/1.5.5

Diff is too long (more than 200 lines). Download the raw diff.

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases node-color-string

Lintian Result

Full worker log Full build log