[Pkg-javascript-commits] [node-compressible] 08/13: use mime-db from mime-types modules

Leo Iannacone l3on-guest at moszumanska.debian.org
Sat Oct 11 12:41:45 UTC 2014


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

l3on-guest pushed a commit to branch master
in repository node-compressible.

commit 510cd353f516280066c92f4079c8f256549c2f53
Author: Leo Iannacone <l3on at ubuntu.com>
Date:   Fri Oct 10 12:20:13 2014 +0200

    use mime-db from mime-types modules
---
 .../patches/0000-use_mime-db_from_mime-types.patch   | 20 ++++++++++++++++++++
 debian/patches/series                                |  1 +
 index.js                                             |  2 +-
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/debian/patches/0000-use_mime-db_from_mime-types.patch b/debian/patches/0000-use_mime-db_from_mime-types.patch
new file mode 100644
index 0000000..5990911
--- /dev/null
+++ b/debian/patches/0000-use_mime-db_from_mime-types.patch
@@ -0,0 +1,20 @@
+Description: In Debian mime-db is blundled in mime-types
+ modules and exported as 'db' module's property.
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+
+---
+ index.js |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/index.js
++++ b/index.js
+@@ -8,7 +8,7 @@
+  * Module dependencies.
+  */
+
+-var db = require('mime-db')
++var db = require('mime-types').db
+
+ /**
+  * Module exports.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d07adaa
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0000-use_mime-db_from_mime-types.patch
diff --git a/index.js b/index.js
index db1955c..3ad72b0 100644
--- a/index.js
+++ b/index.js
@@ -8,7 +8,7 @@
  * Module dependencies.
  */
 
-var db = require('mime-db')
+var db = require('mime-types').db
 
 /**
  * Module exports.

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



More information about the Pkg-javascript-commits mailing list