New Upstream Snapshot - node-require-directory
Ready changes
Summary
Merged new upstream version: 2.1.1+~2.1.2+git20160920.1.d1fd7dc (was: 2.1.1+~2.1.2).
Resulting package
Built on 2022-11-14T15:56 (took 10m48s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-snapshots node-require-directory
Lintian Result
- node-require-directory_2.1.1+~2.1.2+git20160920.1.d1fd7dc-1~jan+nus1.dsc
- node-require-directory_2.1.1+~2.1.2+git20160920.1.d1fd7dc-1~jan+nus1_all.deb
- node-require-directory_2.1.1+~2.1.2+git20160920.1.d1fd7dc-1~jan+nus1_amd64.buildinfo
- node-require-directory_2.1.1+~2.1.2+git20160920.1.d1fd7dc-1~jan+nus1_amd64.changes
Diff
diff --git a/.npmignore b/.npmignore
deleted file mode 100644
index 47cf365..0000000
--- a/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-test/**
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..31fcedc
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,10 @@
+language: node_js
+
+node_js:
+ - 6
+ - 4
+ - 0.10
+
+cache:
+ directories:
+ - node_modules
diff --git a/README.markdown b/README.markdown
index 926a063..9373a67 100644
--- a/README.markdown
+++ b/README.markdown
@@ -98,9 +98,9 @@ var requireDirectory = require('require-directory'),
var requireDirectory = require('require-directory'),
check = function(path){
if(/onlyinclude.js$/.test(path)){
- return true; // don't include
+ return true; // go ahead and include
}else{
- return false; // go ahead and include
+ return false; // don't include
}
},
hash = requireDirectory(module, {include: check});
diff --git a/debian/changelog b/debian/changelog
index b35a62c..3a081e5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-require-directory (2.1.1+~2.1.2+git20160920.1.d1fd7dc-1) UNRELEASED; urgency=low
+
+ * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk> Mon, 14 Nov 2022 15:50:04 -0000
+
node-require-directory (2.1.1+~2.1.2-1) unstable; urgency=medium
* Team upload
diff --git a/types-require-directory/LICENSE b/types-require-directory/LICENSE
deleted file mode 100755
index 9e841e7..0000000
--- a/types-require-directory/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-require-directory/README.md b/types-require-directory/README.md
deleted file mode 100755
index 11ec095..0000000
--- a/types-require-directory/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Installation
-> `npm install --save @types/require-directory`
-
-# Summary
-This package contains type definitions for require-directory (https://github.com/troygoode/node-require-directory/).
-
-# Details
-Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-directory.
-
-### Additional Details
- * Last updated: Wed, 07 Jul 2021 18:02:24 GMT
- * Dependencies: [@types/node](https://npmjs.com/package/@types/node)
- * Global values: none
-
-# Credits
-These definitions were written by [Ihor Chulinda](https://github.com/Igmat).
diff --git a/types-require-directory/index.d.ts b/types-require-directory/index.d.ts
deleted file mode 100755
index 5f43fd0..0000000
--- a/types-require-directory/index.d.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-// Type definitions for require-directory 2.1
-// Project: https://github.com/troygoode/node-require-directory/
-// Definitions by: Ihor Chulinda <https://github.com/Igmat>
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-// TypeScript Version: 2.4
-/// <reference types="node" />
-
-declare namespace requireDirectory {
- /**
- * @description function that checks path for whitelisting/blacklisting
- * @param path path of required module
- * @returns true if path have to be whitelisted/blacklisted, false otherwise
- */
- type CheckPathFn = (path: string) => boolean;
-
- interface RequireDirectoryResult<T> {
- /**
- * @description module itself or hash of modules in subdirectory with name of this directory
- */
- [index: string]: RequireDirectoryResult<T> | T;
- }
- interface RequireDirectoryOptions<T, U = T> {
- /**
- * @description array of file extensions that will be included in resulting hash as modules
- * @default "['js', 'json', 'coffee']"
- */
- extensions?: string[] | undefined;
- /**
- * @description option to include subdirectories
- * @default true
- */
- recurse?: boolean | undefined;
- /**
- * @description RegExp or function for whitelisting modules
- * @default undefined
- */
- include?: RegExp | CheckPathFn | undefined;
- /**
- * @description RegExp or function for blacklisting modules
- * @default undefined
- */
- exclude?: RegExp | CheckPathFn | undefined;
- /**
- * @description function for renaming modules in resulting hash
- * @param name name of required module
- * @returns transformed name of module
- * @default "change nothing"
- */
- rename?(name: string): string;
- /**
- * @description function that will be called for each required module
- * @param obj required module
- * @returns transformed module OR nothing (in second case module itself will be added to hash)
- * @default "change nothing"
- */
- visit?(obj: T): U | void;
- }
-
- /**
- * @description default options that is used for "require-directory" module
- */
- const defaults: RequireDirectoryOptions<any>;
-}
-
-/**
- * @description function for requiring directory content as hash of modules
- * @param m module for which has will be created
- * @param path path to directory, if you want to build hash for another one (default to __dirname)
- * @param options object with options for require-directory call
- * @returns hash of modules in specified directory
- */
-declare function requireDirectory<T, U>(
- m: NodeModule,
- path?: string | requireDirectory.RequireDirectoryOptions<T, U>,
- options?: requireDirectory.RequireDirectoryOptions<T, U>): requireDirectory.RequireDirectoryResult<U>;
-
-export = requireDirectory;
diff --git a/types-require-directory/package.json b/types-require-directory/package.json
deleted file mode 100755
index 5341bcd..0000000
--- a/types-require-directory/package.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "name": "@types/require-directory",
- "version": "2.1.2",
- "description": "TypeScript definitions for require-directory",
- "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/require-directory",
- "license": "MIT",
- "contributors": [
- {
- "name": "Ihor Chulinda",
- "url": "https://github.com/Igmat",
- "githubUsername": "Igmat"
- }
- ],
- "main": "",
- "types": "index.d.ts",
- "repository": {
- "type": "git",
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
- "directory": "types/require-directory"
- },
- "scripts": {},
- "dependencies": {
- "@types/node": "*"
- },
- "typesPublisherContentHash": "ef69e808a9c9f10bb778f928eb3be0cf2a2aba81c4bb298dfc028137a54057bc",
- "typeScriptVersion": "3.6"
-}
\ 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/require-directory/index.d.ts -rw-r--r-- root/root /usr/share/nodejs/@types/require-directory/package.json
Control files: lines which differ (wdiff format)
Provides: node-types-require-directory (= 2.1.2)