New Upstream Snapshot - node-replace-ext

Ready changes

Summary

Merged new upstream version: 2.0.0+git20211228.1.a7934a1 (was: 2.0.0).

Resulting package

Built on 2022-11-09T22:15 (took 11m42s)

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

apt install -t fresh-snapshots node-replace-ext

Lintian Result

Diff

diff --git a/.editorconfig b/.editorconfig
deleted file mode 100644
index e000b0c..0000000
--- a/.editorconfig
+++ /dev/null
@@ -1,13 +0,0 @@
-# http://editorconfig.org
-root = true
-
-[*]
-indent_style = space
-indent_size = 2
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-end_of_line = lf
-
-[*.md]
-trim_trailing_whitespace = false
diff --git a/.eslintignore b/.eslintignore
deleted file mode 100644
index 89141e4..0000000
--- a/.eslintignore
+++ /dev/null
@@ -1,3 +0,0 @@
-test/fixtures/
-coverage/
-.nyc_output/
diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644
index a5a4a17..0000000
--- a/.eslintrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-  "extends": "gulp"
-}
diff --git a/.npmrc b/.npmrc
deleted file mode 100644
index 43c97e7..0000000
--- a/.npmrc
+++ /dev/null
@@ -1 +0,0 @@
-package-lock=false
diff --git a/.prettierignore b/.prettierignore
deleted file mode 100644
index ed88d37..0000000
--- a/.prettierignore
+++ /dev/null
@@ -1,2 +0,0 @@
-coverage/
-.nyc_output/
diff --git a/LICENSE b/LICENSE
index 1b256a9..05a0a49 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2014-2020 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
+Copyright (c) 2014-2020, 2021 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io>
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index d77533f..2b1e2ec 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
 <p align="center">
-  <a href="http://gulpjs.com">
+  <a href="https://gulpjs.com">
     <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
   </a>
 </p>
@@ -29,12 +29,6 @@ Replaces the extension from `path` with `extension` and returns the updated path
 
 Does not replace the extension if `path` is not a string or is empty.
 
-## `replace-ext` for enterprise
-
-Available as part of the Tidelift Subscription.
-
-The maintainers of `replace-ext` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.][tidelift-url]
-
 ## License
 
 MIT
@@ -49,6 +43,4 @@ MIT
 
 [coveralls-url]: https://coveralls.io/r/gulpjs/replace-ext
 [coveralls-image]: https://img.shields.io/coveralls/gulpjs/replace-ext/master.svg?style=flat-square
-
-[tidelift-url]: https://tidelift.com/subscription/pkg/npm-replace-ext?utm_source=npm-replace-ext&utm_medium=referral&utm_campaign=enterprise&utm_term=repo
 <!-- prettier-ignore-end -->
diff --git a/debian/changelog b/debian/changelog
index 539bc6a..b90236e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-replace-ext (2.0.0+git20211228.1.a7934a1-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Wed, 09 Nov 2022 22:09:42 -0000
+
 node-replace-ext (2.0.0-1) unstable; urgency=medium
 
   * Team upload
diff --git a/package.json b/package.json
index 16077b6..6421e6f 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
   "repository": "gulpjs/replace-ext",
   "license": "MIT",
   "engines": {
-    "node": ">= 10"
+    "node": ">=10.13.0"
   },
   "main": "index.js",
   "files": [
@@ -23,11 +23,12 @@
     "test": "nyc mocha --async-only"
   },
   "devDependencies": {
-    "eslint": "^6.8.0",
-    "eslint-config-gulp": "^4.0.0",
-    "expect": "^25.4.0",
-    "mocha": "^7.1.2",
-    "nyc": "^15.0.1"
+    "eslint": "^7.32.0",
+    "eslint-config-gulp": "^5.0.1",
+    "eslint-plugin-node": "^11.1.0",
+    "expect": "^27.4.2",
+    "mocha": "^8.4.0",
+    "nyc": "^15.1.0"
   },
   "nyc": {
     "reporter": [
diff --git a/test/.eslintrc b/test/.eslintrc
deleted file mode 100644
index 06b940f..0000000
--- a/test/.eslintrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
-  "extends": "gulp/test"
-}
diff --git a/test/main.js b/test/main.js
deleted file mode 100644
index d13dab8..0000000
--- a/test/main.js
+++ /dev/null
@@ -1,87 +0,0 @@
-'use strict';
-
-var path = require('path');
-var os = require('os');
-
-var expect = require('expect');
-
-var replaceExt = require('../');
-
-describe('replace-ext', function () {
-  it('returns a valid replaced extension on long path', function (done) {
-    var fname = path.join(__dirname, './fixtures/test.coffee');
-    var expected = path.join(__dirname, './fixtures/test.js');
-    var result = replaceExt(fname, '.js');
-    expect(result).toEqual(expected);
-    done();
-  });
-
-  it('returns a valid replaced extension on basename', function (done) {
-    var fname = 'test.coffee';
-    var expected = 'test.js';
-    var result = replaceExt(fname, '.js');
-    expect(result).toEqual(expected);
-    done();
-  });
-
-  it('should not return a valid replaced extension on empty string', function (done) {
-    var fname = '';
-    var expected = '';
-    var result = replaceExt(fname, '.js');
-    expect(result).toEqual(expected);
-    done();
-  });
-
-  it('returns a valid removed extension on long path', function (done) {
-    var fname = path.join(__dirname, './fixtures/test.coffee');
-    var expected = path.join(__dirname, './fixtures/test');
-    var result = replaceExt(fname, '');
-    expect(result).toEqual(expected);
-    done();
-  });
-
-  it('returns a valid added extension on long path', function (done) {
-    var fname = path.join(__dirname, './fixtures/test');
-    var expected = path.join(__dirname, './fixtures/test.js');
-    var result = replaceExt(fname, '.js');
-    expect(result).toEqual(expected);
-    done();
-  });
-
-  it('should not replace when 1st arg is not a string (null)', function (done) {
-    var result = replaceExt(null, '.js');
-    expect(result).toEqual(null);
-    done();
-  });
-
-  it('should not replace when 1st arg is not a string (object)', function (done) {
-    var obj = {};
-    var result = replaceExt(obj, '.js');
-    expect(result).toEqual(obj);
-    done();
-  });
-
-  it('Should preserve the first dot of relative dir name.', function (done) {
-    if (os.platform() === 'win32') {
-      expect(replaceExt('a/b/c.js', '.ts')).toEqual('a\\b\\c.ts');
-      expect(replaceExt('./a/b/c.js', '.ts')).toEqual('.\\a\\b\\c.ts');
-      expect(replaceExt('../a/b/c.js', '.ts')).toEqual('..\\a\\b\\c.ts');
-      expect(replaceExt('/a/b/c.js', '.ts')).toEqual('\\a\\b\\c.ts');
-
-      expect(replaceExt('C:/a/b/c.js', '.ts')).toEqual('C:\\a\\b\\c.ts');
-
-      expect(replaceExt('a\\b\\c.js', '.ts')).toEqual('a\\b\\c.ts');
-      expect(replaceExt('.\\a\\b\\c.js', '.ts')).toEqual('.\\a\\b\\c.ts');
-      expect(replaceExt('..\\a\\b\\c.js', '.ts')).toEqual('..\\a\\b\\c.ts');
-      expect(replaceExt('\\a\\b\\c.js', '.ts')).toEqual('\\a\\b\\c.ts');
-
-      expect(replaceExt('C:\\a\\b\\c.js', '.ts')).toEqual('C:\\a\\b\\c.ts');
-    } else {
-      expect(replaceExt('a/b/c.js', '.ts')).toEqual('a/b/c.ts');
-      expect(replaceExt('./a/b/c.js', '.ts')).toEqual('./a/b/c.ts');
-      expect(replaceExt('../a/b/c.js', '.ts')).toEqual('../a/b/c.ts');
-      expect(replaceExt('/a/b/c.js', '.ts')).toEqual('/a/b/c.ts');
-    }
-    done();
-  });
-});
diff --git a/types-replace-ext/LICENSE b/types-replace-ext/LICENSE
deleted file mode 100644
index 9e841e7..0000000
--- a/types-replace-ext/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-    MIT License
-
-    Copyright (c) Microsoft Corporation.
-
-    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-replace-ext/README.md b/types-replace-ext/README.md
deleted file mode 100644
index 620475e..0000000
--- a/types-replace-ext/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Installation
-> `npm install --save @types/replace-ext`
-
-# Summary
-This package contains type definitions for replace-ext (https://github.com/wearefractal/replace-ext).
-
-# Details
-Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/replace-ext.
-
-### Additional Details
- * Last updated: Wed, 30 Sep 2020 21:32:42 GMT
- * Dependencies: none
- * Global values: none
-
-# Credits
-These definitions were written by [Deividas Bakanas](https://github.com/DeividasBakanas), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
diff --git a/types-replace-ext/index.d.ts b/types-replace-ext/index.d.ts
deleted file mode 100644
index c45e58f..0000000
--- a/types-replace-ext/index.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-// Type definitions for replace-ext 2.0
-// Project: https://github.com/wearefractal/replace-ext
-// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>
-//                 Piotr Błażejewicz <https://github.com/peterblazejewicz>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-
-/**
- * Replaces the extension from path with extension and returns the updated path string.
- *
- * Does not replace the extension if path is not a string or is empty.
- */
-declare function replaceExt(path: string, extension: string): string;
-
-export = replaceExt;
diff --git a/types-replace-ext/package.json b/types-replace-ext/package.json
deleted file mode 100644
index 7f8e741..0000000
--- a/types-replace-ext/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
-    "name": "@types/replace-ext",
-    "version": "2.0.0",
-    "description": "TypeScript definitions for replace-ext",
-    "license": "MIT",
-    "contributors": [
-        {
-            "name": "Deividas Bakanas",
-            "url": "https://github.com/DeividasBakanas",
-            "githubUsername": "DeividasBakanas"
-        },
-        {
-            "name": "Piotr Błażejewicz",
-            "url": "https://github.com/peterblazejewicz",
-            "githubUsername": "peterblazejewicz"
-        }
-    ],
-    "main": "",
-    "types": "index.d.ts",
-    "repository": {
-        "type": "git",
-        "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
-        "directory": "types/replace-ext"
-    },
-    "scripts": {},
-    "dependencies": {},
-    "typesPublisherContentHash": "7590f68a0ed95f6f7164e412c0f1ac05ec4313ed3e1c6a4c72af72a2a9fa98ea",
-    "typeScriptVersion": "3.2"
-}
\ No newline at end of file

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/share/nodejs/@types/replace-ext/index.d.ts
-rw-r--r--  root/root   /usr/share/nodejs/@types/replace-ext/package.json

Control files: lines which differ (wdiff format)

  • Provides: node-types-replace-ext (= 2.0.0)

More details

Full run details