debian/0000755000000000000000000000000012230063246007164 5ustar debian/patches/0000755000000000000000000000000012230062175010613 5ustar debian/patches/series0000644000000000000000000000006512230062175012031 0ustar 2001_readable_stream.patch 2002_stream_counter.patch debian/patches/2001_readable_stream.patch0000644000000000000000000000057412230062175015416 0ustar Description: readable-stream is only needed for nodejs 0.8 compat Author: Jérémy Lal Forwarded: not-needed Last-Update: 2013-10-18 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ exports.Form = Form; -var stream = require('readable-stream') +var stream = require('stream') , util = require('util') , fs = require('fs') , crypto = require('crypto') debian/patches/2002_stream_counter.patch0000644000000000000000000000131512230062175015331 0ustar Description: add trivial StreamCounter implementation Author: Jérémy Lal Forwarded: not-needed Last-Update: 2013-10-18 --- a/index.js +++ b/index.js @@ -7,7 +7,6 @@ , path = require('path') , os = require('os') , StringDecoder = require('string_decoder').StringDecoder - , StreamCounter = require('stream-counter') var START = 0 , START_BOUNDARY = 1 @@ -616,3 +615,14 @@ return c | 0x20; } +function StreamCounter(options) { + stream.Writable.call(this, options); + this.bytes = 0; +} +util.inherits(StreamCounter, stream.Writable); + +StreamCounter.prototype._write = function(chunk, encoding, cb) { + this.bytes += chunk.length; + this.emit('progress'); + cb(); +}; debian/docs0000644000000000000000000000001212230062175010030 0ustar README.md debian/examples0000644000000000000000000000001212230062175010716 0ustar examples/*debian/watch0000644000000000000000000000025112230062175010213 0ustar version=3 opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-multiparty-$1.tar.gz/ \ https://github.com/superjoe30/node-multiparty/tags .*/archive/v?([\d\.]+).tar.gz debian/control0000644000000000000000000000160712230062175010573 0ustar Source: node-multiparty Section: web Priority: extra Maintainer: Debian Javascript Maintainers Uploaders: Jérémy Lal Build-Depends: debhelper (>= 8.0.0) , dh-buildinfo , nodejs Standards-Version: 3.9.4 Homepage: https://github.com/superjoe30/node-multiparty Vcs-Git: git://anonscm.debian.org/collab-maint/node-multiparty.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-multiparty.git Package: node-multiparty Architecture: all Depends: ${misc:Depends} , nodejs Description: Multipart/form-data parser for Node.js node-multiparty is a well-tested multipart/form-data parser for requests sent by HTTP clients. Files uploads are properly handled as streams, and are not written to disk by default. . This module is a fork of node-formidable. . Node.js is an event-based server-side javascript engine. debian/copyright0000644000000000000000000000233112230062175011116 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: multiparty Files: * Copyright: 2011-2013 Felix Geisendörfer, Andrew Kelley License: Expat License: Expat 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. debian/install0000644000000000000000000000004312230062175010552 0ustar index.js usr/lib/nodejs/multiparty debian/source/0000755000000000000000000000000012230062175010464 5ustar debian/source/format0000644000000000000000000000001412230062175011672 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212230062175010362 0ustar 8 debian/rules0000755000000000000000000000032712230063102010235 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_install: dh_install chmod -x debian/node-multiparty/usr/lib/nodejs/multiparty/index.js debian/changelog0000644000000000000000000000023612230062175011037 0ustar node-multiparty (2.2.0-1) unstable; urgency=low * Initial release (Closes: #725215) -- Jérémy Lal Fri, 18 Oct 2013 00:18:16 +0200