[Pkg-javascript-commits] [node-array-flatten] 01/03: Imported Upstream version 2.1.0

Thorsten Alteholz alteholz at moszumanska.debian.org
Sun Jun 19 17:07:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

alteholz pushed a commit to branch master
in repository node-array-flatten.

commit c487a52251ef8ca06f90b3c7ba704fe7ece54411
Author: Thorsten Alteholz <debian at alteholz.de>
Date:   Sun Jun 19 18:55:20 2016 +0200

    Imported Upstream version 2.1.0
---
 array-flatten.d.ts | 14 ++++++++++++++
 bower.json         |  4 ++--
 package.json       |  5 +++--
 3 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/array-flatten.d.ts b/array-flatten.d.ts
new file mode 100644
index 0000000..453a560
--- /dev/null
+++ b/array-flatten.d.ts
@@ -0,0 +1,14 @@
+declare function flatten <T> (array: flatten.NestedArray<T>): T[];
+
+declare namespace flatten {
+  interface NestedArray <T> {
+    [index: number]: T | NestedArray<T>;
+    length: number;
+  }
+
+  export function from <T> (array: NestedArray<T>): T[];
+  export function depth <T> (array: NestedArray<T>, depth: number): NestedArray<T>;
+  export function depthFrom <T> (array: NestedArray<T>, depth: number): NestedArray<T>;
+}
+
+export = flatten;
diff --git a/bower.json b/bower.json
index 6514566..468addf 100644
--- a/bower.json
+++ b/bower.json
@@ -1,9 +1,9 @@
 {
   "name": "array-flatten",
-  "version": "2.0.0",
+  "version": "2.1.0",
   "homepage": "https://github.com/blakeembrey/array-flatten",
   "authors": [
-    "{{{author}}}"
+    "Blake Embrey"
   ],
   "description": "Flatten an array of nested arrays into a single flat array",
   "main": "array-flatten.js",
diff --git a/package.json b/package.json
index 6bbb54d..ed1c22f 100644
--- a/package.json
+++ b/package.json
@@ -1,10 +1,12 @@
 {
   "name": "array-flatten",
-  "version": "2.0.0",
+  "version": "2.1.0",
   "description": "Flatten nested arrays",
   "main": "array-flatten.js",
+  "typings": "array-flatten.d.ts",
   "files": [
     "array-flatten.js",
+    "array-flatten.d.ts",
     "LICENSE"
   ],
   "scripts": {
@@ -40,7 +42,6 @@
     "benchmarked": "^0.1.4",
     "istanbul": "^0.4.0",
     "mocha": "^2.2.4",
-    "pre-commit": "^1.0.7",
     "standard": "^5.3.1"
   }
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-array-flatten.git



More information about the Pkg-javascript-commits mailing list