[Pkg-javascript-commits] [node-mime-types] 05/08: refresh patches
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Sep 5 06:24:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository node-mime-types.
commit 12309bf84674fd509a6447b27d281b43585f78ee
Author: Pirate Praveen <praveen at debian.org>
Date: Tue Sep 5 10:43:20 2017 +0530
refresh patches
---
.../patches/0002-update-tests-with-new-mimes.patch | 20 --------------------
debian/patches/0003-exports-mime.db.patch | 7 ++++---
2 files changed, 4 insertions(+), 23 deletions(-)
diff --git a/debian/patches/0002-update-tests-with-new-mimes.patch b/debian/patches/0002-update-tests-with-new-mimes.patch
index 326cd9a..03743cc 100644
--- a/debian/patches/0002-update-tests-with-new-mimes.patch
+++ b/debian/patches/0002-update-tests-with-new-mimes.patch
@@ -35,23 +35,3 @@ Forwarded: not-needed
+assert.equal(db['video/x-matroska'].extensions[0], 'mpv')
})
})
---- a/test/mime.js
-+++ b/test/mime.js
-@@ -33,7 +33,7 @@
- // Test extensions
- //
-
--eq('txt', mime.extension(mime.types.text));
-+eq('asc', mime.extension(mime.types.text));
- eq('html', mime.extension(mime.types.htm));
- eq('bin', mime.extension('application/octet-stream'));
- eq('bin', mime.extension('application/octet-stream '));
-@@ -51,7 +51,7 @@
-
- eq('application/font-woff', mime.lookup('file.woff'));
- eq('application/octet-stream', mime.lookup('file.buffer'));
--eq('audio/mp4', mime.lookup('file.m4a'));
-+eq('audio/mpeg', mime.lookup('file.m4a'));
- eq('font/opentype', mime.lookup('file.otf'));
-
- //
diff --git a/debian/patches/0003-exports-mime.db.patch b/debian/patches/0003-exports-mime.db.patch
index dc09e35..e7a1e68 100644
--- a/debian/patches/0003-exports-mime.db.patch
+++ b/debian/patches/0003-exports-mime.db.patch
@@ -9,10 +9,11 @@ Forwarded: not-needed
--- a/index.js
+++ b/index.js
-@@ -1,5 +1,6 @@
+@@ -13,6 +13,7 @@
+ */
var db = require('mime-db')
+exports.db = db
+ var extname = require('path').extname
- // types[extension] = type
- exports.types = Object.create(null)
+ /**
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mime-types.git
More information about the Pkg-javascript-commits
mailing list