diff -pruN 0.5.0-1/debian/browserify-lite.1 0.5.0-3/debian/browserify-lite.1 --- 0.5.0-1/debian/browserify-lite.1 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/browserify-lite.1 2019-01-07 15:33:03.000000000 +0000 @@ -0,0 +1,39 @@ +.TH browserify-lite "1" "January 2019" +.SH NAME +browserify-lite \- bundle javascript file +.SH SYNOPSIS +.B browserify-lite +\fI\,./entry-file.js --outfile bundle.js\/\fR +.SH DESCRIPTION +Browserify-lite is a tool that allows developers to write Node.js-style modules that compile for use in the browser. + +This tool is a lite version a browserify: +.RS +.IP \(bu +No builtin Node.js shims. +.IP \(bu +Naive AST tokenization for require instead of true AST parsing. +All require statements are found regardless of if they are in an `if` +statement or a function body that is never called. +.IP \(bu +Only supports a single entry file and the +\fB\-\-outfile\fR +parameter, +nothing else. +.IP \(bu +No source maps. +.IP \(bu +Minimal dependencies. +.RE +.SH OPTIONS +.TP +\fB\-\-outfile\fR +Write the browserify bundle to this file +.TP +\fB\-\-standalone\fR xyz +Export as window.xyz +.TP +\fB\-\-help\fR +Help screen +.SH SEE ALSO +browserify(1) diff -pruN 0.5.0-1/debian/changelog 0.5.0-3/debian/changelog --- 0.5.0-1/debian/changelog 2017-07-05 18:48:50.000000000 +0000 +++ 0.5.0-3/debian/changelog 2019-01-09 22:30:54.000000000 +0000 @@ -1,3 +1,27 @@ +node-browserify-lite (0.5.0-3) unstable; urgency=medium + + * Bug fix: "autopkgtest regression", thanks to Graham Inggs (Closes: + #918833). + + -- Bastien Roucariès Wed, 09 Jan 2019 23:30:54 +0100 + +node-browserify-lite (0.5.0-2) unstable; urgency=medium + + * Move to section javascript + * Bump compat and policy + * Add myself as uploader + * Depends on nodejs >=6. Thus drop nodejs patch. + * Bug fix: "Updating the node-browserify-lite Uploaders list", thanks to + Tobias Frost (Closes: #909874). + * Bug fix: "Quoting fixed in autopkgtest 5.2", thanks to Graham Inggs + (Closes: #894929). + * Add running test suite as debci + * Bug fix: "unreproducible output order", thanks to Rebecca N. Palmer + (Closes: #918361). + * Generate example under debci + + -- Bastien Roucariès Mon, 07 Jan 2019 15:03:54 +0100 + node-browserify-lite (0.5.0-1) unstable; urgency=medium * Team upload diff -pruN 0.5.0-1/debian/compat 0.5.0-3/debian/compat --- 0.5.0-1/debian/compat 2017-07-05 07:08:11.000000000 +0000 +++ 0.5.0-3/debian/compat 2019-01-07 15:30:31.000000000 +0000 @@ -1 +1 @@ -9 +12 diff -pruN 0.5.0-1/debian/control 0.5.0-3/debian/control --- 0.5.0-1/debian/control 2017-07-05 07:08:11.000000000 +0000 +++ 0.5.0-3/debian/control 2019-01-07 15:31:27.000000000 +0000 @@ -1,15 +1,16 @@ Source: node-browserify-lite -Section: web -Priority: extra +Section: javascript +Priority: optional Maintainer: Debian Javascript Maintainers -Uploaders: Andrew Kelley +Uploaders: Bastien Roucariès Build-Depends: - debhelper (>= 9) + debhelper (>= 12) , dh-buildinfo - , nodejs - , node-pend - , help2man -Standards-Version: 3.9.8 + , nodejs (>= 6) + , node-pend + , uglifyjs + , node-source-map +Standards-Version: 4.3.0 Homepage: https://github.com/andrewrk/browserify-lite Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-browserify-lite.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-browserify-lite.git @@ -18,7 +19,7 @@ Package: node-browserify-lite Architecture: all Depends: ${misc:Depends} - , nodejs + , nodejs (>= 6) , node-pend (>= 1.1.3) Description: bundle client-side JavaScript using Node.js-style module syntax browserify-lite scans a JavaScript file for require() statements and then diff -pruN 0.5.0-1/debian/copyright 0.5.0-3/debian/copyright --- 0.5.0-1/debian/copyright 2017-07-05 07:08:11.000000000 +0000 +++ 0.5.0-3/debian/copyright 2019-01-07 13:47:02.000000000 +0000 @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: browserify-lite Upstream-Contact: https://github.com/andrewrk/browserify-lite/issues Source: https://github.com/andrewrk/browserify-lite diff -pruN 0.5.0-1/debian/examples 0.5.0-3/debian/examples --- 0.5.0-1/debian/examples 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples 2019-01-07 15:36:41.000000000 +0000 @@ -0,0 +1 @@ +debian/examples.d/* \ No newline at end of file diff -pruN 0.5.0-1/debian/examples.d/bundle.compress.html 0.5.0-3/debian/examples.d/bundle.compress.html --- 0.5.0-1/debian/examples.d/bundle.compress.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/bundle.compress.html 2019-01-07 14:51:39.000000000 +0000 @@ -0,0 +1,12 @@ + + + + + bundle + + + + + See console for the message. Source is main.js. Compressed mangled. + + diff -pruN 0.5.0-1/debian/examples.d/bundle.compress.js.map 0.5.0-3/debian/examples.d/bundle.compress.js.map --- 0.5.0-1/debian/examples.d/bundle.compress.js.map 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/bundle.compress.js.map 2019-01-07 16:04:32.000000000 +0000 @@ -0,0 +1 @@ +{"version":3,"sources":["bundle.js"],"names":["modules","cache","entry","req","name","exports","m","call","modRequire","window","alias","id","Error","0","require","module","global","printer","print","./printer","1","i","max","console","log"],"mappings":"CAAA,SAAUA,EAASC,EAAOC,GACxBC,EAAID,EACJ,SAASC,GAAIC,GACX,GAAIH,EAAMG,GAAO,MAAOH,GAAMG,GAAMC,OACpC,IAAIC,GAAIL,EAAMG,IAASC,WACvBL,GAAQI,GAAM,GAAGG,KAAKD,EAAED,QAASG,EAAYF,EAAGA,EAAED,QAASI,OAC3D,OAAOH,GAAED,OACT,SAASG,GAAWE,GAClB,GAAIC,GAAKX,EAAQI,GAAM,GAAGM,EAC1B,KAAKC,EAAI,KAAM,IAAIC,OAAM,sBAAwBF,EACjD,OAAOP,GAAIQ,QAGbE,GAAI,SAASC,EAAQC,EAAOV,EAAQW,GACxC,GAAIC,GAAUH,EAAQ,YAEtBG,GAAQC,MAAM,IACdD,GAAQC,MAAM,IACdD,GAAQC,MAAM,IACdD,GAAQC,MAAM,OACVC,YAAY,IAAIC,GAAI,SAASN,EAAQC,EAAOV,EAAQW,GACxD,GAAIK,GAAI,CACR,IAAIC,GAAM,EAEVP,GAAOV,SACLa,MAAO,WACL,IAAKG,GAAK,EAAGA,IAAMC,GAAO,CACxBC,QAAQC,IAAIH,GAEdC,GAAO,eAGG","file":"bundle.compress.js"} \ No newline at end of file diff -pruN 0.5.0-1/debian/examples.d/bundle.html 0.5.0-3/debian/examples.d/bundle.html --- 0.5.0-1/debian/examples.d/bundle.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/bundle.html 2019-01-07 14:40:10.000000000 +0000 @@ -0,0 +1,12 @@ + + + + + bundle + + + + + See console for the message. Source is main.js + + diff -pruN 0.5.0-1/debian/examples.d/bundle.min.html 0.5.0-3/debian/examples.d/bundle.min.html --- 0.5.0-1/debian/examples.d/bundle.min.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/bundle.min.html 2019-01-07 14:41:15.000000000 +0000 @@ -0,0 +1,12 @@ + + + + + bundle + + + + + See console for the message. Source is main.js + + diff -pruN 0.5.0-1/debian/examples.d/bundle.min.js.map 0.5.0-3/debian/examples.d/bundle.min.js.map --- 0.5.0-1/debian/examples.d/bundle.min.js.map 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/bundle.min.js.map 2019-01-07 16:04:33.000000000 +0000 @@ -0,0 +1 @@ +{"version":3,"sources":["bundle.js"],"names":["modules","cache","entry","req","name","exports","m","call","modRequire","window","alias","id","Error","0","require","module","global","printer","print","./printer","1","i","max","console","log"],"mappings":"CAAA,SAAUA,QAASC,MAAOC,OACxBC,IAAID,MACJ,SAASC,KAAIC,MACX,GAAIH,MAAMG,MAAO,MAAOH,OAAMG,MAAMC,OACpC,IAAIC,GAAIL,MAAMG,OAASC,WACvBL,SAAQI,MAAM,GAAGG,KAAKD,EAAED,QAASG,WAAYF,EAAGA,EAAED,QAASI,OAC3D,OAAOH,GAAED,OACT,SAASG,YAAWE,OAClB,GAAIC,IAAKX,QAAQI,MAAM,GAAGM,MAC1B,KAAKC,GAAI,KAAM,IAAIC,OAAM,sBAAwBF,MACjD,OAAOP,KAAIQ,SAGbE,GAAI,SAASC,QAAQC,OAAOV,QAAQW,QACxC,GAAIC,SAAUH,QAAQ,YAEtBG,SAAQC,MAAM,IACdD,SAAQC,MAAM,IACdD,SAAQC,MAAM,IACdD,SAAQC,MAAM,OACVC,YAAY,IAAIC,GAAI,SAASN,QAAQC,OAAOV,QAAQW,QACxD,GAAIK,GAAI,CACR,IAAIC,KAAM,EAEVP,QAAOV,SACLa,MAAO,WACL,IAAKG,GAAK,EAAGA,IAAMC,KAAO,CACxBC,QAAQC,IAAIH,GAEdC,KAAO,eAGG","file":"bundle.min.js"} \ No newline at end of file diff -pruN 0.5.0-1/debian/examples.d/main.js 0.5.0-3/debian/examples.d/main.js --- 0.5.0-1/debian/examples.d/main.js 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/main.js 2019-01-07 14:25:13.000000000 +0000 @@ -0,0 +1,6 @@ +var printer = require('./printer'); + +printer.print('1'); +printer.print('2'); +printer.print('3'); +printer.print('4'); \ No newline at end of file diff -pruN 0.5.0-1/debian/examples.d/printer.js 0.5.0-3/debian/examples.d/printer.js --- 0.5.0-1/debian/examples.d/printer.js 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/printer.js 2019-01-07 14:24:32.000000000 +0000 @@ -0,0 +1,11 @@ +var i = 1; +var max = 30; + +module.exports = { + print: function () { + for (i -= 1; i++ < max; ) { + console.log(i); + } + max *= 1.1; + } +}; \ No newline at end of file diff -pruN 0.5.0-1/debian/examples.d/standalone.compress.html 0.5.0-3/debian/examples.d/standalone.compress.html --- 0.5.0-1/debian/examples.d/standalone.compress.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/standalone.compress.html 2019-01-07 14:55:00.000000000 +0000 @@ -0,0 +1,12 @@ + + + + + standalone + + + + + See console for the message. Source is main.js + + diff -pruN 0.5.0-1/debian/examples.d/standalone.compress.js.map 0.5.0-3/debian/examples.d/standalone.compress.js.map --- 0.5.0-1/debian/examples.d/standalone.compress.js.map 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/standalone.compress.js.map 2019-01-07 16:04:34.000000000 +0000 @@ -0,0 +1 @@ +{"version":3,"sources":["standalone.js"],"names":["modules","cache","entry","window","example","req","name","exports","m","call","modRequire","alias","id","Error","0","require","module","global","printer","print","./printer","1","i","max","console","log"],"mappings":"CAAA,SAAUA,EAASC,EAAOC,GACxBC,OAAOC,QAAUC,EAAIH,EACrB,SAASG,GAAIC,GACX,GAAIL,EAAMK,GAAO,MAAOL,GAAMK,GAAMC,OACpC,IAAIC,GAAIP,EAAMK,IAASC,WACvBP,GAAQM,GAAM,GAAGG,KAAKD,EAAED,QAASG,EAAYF,EAAGA,EAAED,QAASJ,OAC3D,OAAOK,GAAED,OACT,SAASG,GAAWC,GAClB,GAAIC,GAAKZ,EAAQM,GAAM,GAAGK,EAC1B,KAAKC,EAAI,KAAM,IAAIC,OAAM,sBAAwBF,EACjD,OAAON,GAAIO,QAGbE,GAAI,SAASC,EAAQC,EAAOT,EAAQU,GACxC,GAAIC,GAAUH,EAAQ,YAEtBG,GAAQC,MAAM,IACdD,GAAQC,MAAM,IACdD,GAAQC,MAAM,IACdD,GAAQC,MAAM,OACVC,YAAY,IAAIC,GAAI,SAASN,EAAQC,EAAOT,EAAQU,GACxD,GAAIK,GAAI,CACR,IAAIC,GAAM,EAEVP,GAAOT,SACLY,MAAO,WACL,IAAKG,GAAK,EAAGA,IAAMC,GAAO,CACxBC,QAAQC,IAAIH,GAEdC,GAAO,eAGG","file":"standalone.compress.js"} \ No newline at end of file diff -pruN 0.5.0-1/debian/examples.d/standalone.html 0.5.0-3/debian/examples.d/standalone.html --- 0.5.0-1/debian/examples.d/standalone.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/standalone.html 2019-01-07 14:40:02.000000000 +0000 @@ -0,0 +1,12 @@ + + + + + standalone + + + + + See console for the message. Source is main.js + + diff -pruN 0.5.0-1/debian/examples.d/standalone.min.html 0.5.0-3/debian/examples.d/standalone.min.html --- 0.5.0-1/debian/examples.d/standalone.min.html 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/standalone.min.html 2019-01-07 14:41:30.000000000 +0000 @@ -0,0 +1,12 @@ + + + + + standalone + + + + + See console for the message. Source is main.js + + diff -pruN 0.5.0-1/debian/examples.d/standalone.min.js.map 0.5.0-3/debian/examples.d/standalone.min.js.map --- 0.5.0-1/debian/examples.d/standalone.min.js.map 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/examples.d/standalone.min.js.map 2019-01-07 16:04:34.000000000 +0000 @@ -0,0 +1 @@ +{"version":3,"sources":["standalone.js"],"names":["modules","cache","entry","window","example","req","name","exports","m","call","modRequire","alias","id","Error","0","require","module","global","printer","print","./printer","1","i","max","console","log"],"mappings":"CAAA,SAAUA,QAASC,MAAOC,OACxBC,OAAOC,QAAUC,IAAIH,MACrB,SAASG,KAAIC,MACX,GAAIL,MAAMK,MAAO,MAAOL,OAAMK,MAAMC,OACpC,IAAIC,GAAIP,MAAMK,OAASC,WACvBP,SAAQM,MAAM,GAAGG,KAAKD,EAAED,QAASG,WAAYF,EAAGA,EAAED,QAASJ,OAC3D,OAAOK,GAAED,OACT,SAASG,YAAWC,OAClB,GAAIC,IAAKZ,QAAQM,MAAM,GAAGK,MAC1B,KAAKC,GAAI,KAAM,IAAIC,OAAM,sBAAwBF,MACjD,OAAON,KAAIO,SAGbE,GAAI,SAASC,QAAQC,OAAOT,QAAQU,QACxC,GAAIC,SAAUH,QAAQ,YAEtBG,SAAQC,MAAM,IACdD,SAAQC,MAAM,IACdD,SAAQC,MAAM,IACdD,SAAQC,MAAM,OACVC,YAAY,IAAIC,GAAI,SAASN,QAAQC,OAAOT,QAAQU,QACxD,GAAIK,GAAI,CACR,IAAIC,KAAM,EAEVP,QAAOT,SACLY,MAAO,WACL,IAAKG,GAAK,EAAGA,IAAMC,KAAO,CACxBC,QAAQC,IAAIH,GAEdC,KAAO,eAGG","file":"standalone.min.js"} \ No newline at end of file diff -pruN 0.5.0-1/debian/patches/0001-sort-module-list.patch 0.5.0-3/debian/patches/0001-sort-module-list.patch --- 0.5.0-1/debian/patches/0001-sort-module-list.patch 1970-01-01 00:00:00.000000000 +0000 +++ 0.5.0-3/debian/patches/0001-sort-module-list.patch 2019-01-07 14:32:02.000000000 +0000 @@ -0,0 +1,20 @@ +Subject: Ease reproductible build +author: Rebecca N. Palmer" + +Sort module list in order to be reproductible + +Forwarded: https://github.com/andrewrk/browserify-lite/issues/12 + +Index: node-browserify-lite/index.js +=================================================================== +--- node-browserify-lite.orig/index.js ++++ node-browserify-lite/index.js +@@ -79,6 +79,8 @@ function renderBundle(options, cb) { + + function render(entrySourcePath, cb) { + var modules = Object.keys(sources); ++ // for reproductible build ++ modules.sort(); + var aliases = {}; + modules.forEach(function(canonicalSourcePath, index) { + aliases[canonicalSourcePath] = index; diff -pruN 0.5.0-1/debian/patches/nodejs-shebang.patch 0.5.0-3/debian/patches/nodejs-shebang.patch --- 0.5.0-1/debian/patches/nodejs-shebang.patch 2017-07-05 07:08:11.000000000 +0000 +++ 0.5.0-3/debian/patches/nodejs-shebang.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,12 +0,0 @@ -Description: fix nodejs shebang line -Author: Andrew Kelley -Forwarded: not-needed - ---- node-browserify-lite-0.2.0.orig/cli.js -+++ node-browserify-lite-0.2.0/cli.js -@@ -1,4 +1,4 @@ --#!/usr/bin/env node -+#!/usr/bin/nodejs - - var fs = require('fs'); - var browserifyLite = require('./'); diff -pruN 0.5.0-1/debian/patches/series 0.5.0-3/debian/patches/series --- 0.5.0-1/debian/patches/series 2017-07-05 07:08:11.000000000 +0000 +++ 0.5.0-3/debian/patches/series 2019-01-07 13:58:01.000000000 +0000 @@ -1 +1 @@ -nodejs-shebang.patch +0001-sort-module-list.patch diff -pruN 0.5.0-1/debian/rules 0.5.0-3/debian/rules --- 0.5.0-1/debian/rules 2017-07-05 07:08:11.000000000 +0000 +++ 0.5.0-3/debian/rules 2019-01-09 22:27:21.000000000 +0000 @@ -7,18 +7,44 @@ %: dh $@ +BROWSERIFY_LITE?=$(CURDIR)/cli.js +EXAMPLES_DIR=debian/examples.d + override_dh_auto_test: - nodejs test.js +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) + node test.js +else + @echo '**********************************************************' + @echo 'Skip test suite ' + @echo '**********************************************************' +endif + +%.min.js: %.js + cd $(dir $@) && uglifyjs $(notdir $<) --verbose --source-map $(notdir $@).map -o $(notdir $@) + +%.compress.js: %.js + cd $(dir $@) && uglifyjs $(notdir $<) -m --verbose --source-map $(notdir $@).map -o $(notdir $@) + +$(EXAMPLES_DIR)/bundle.js: $(EXAMPLES_DIR)/main.js + NODE_PATH=. $(BROWSERIFY_LITE) $< --outfile $@ + +$(EXAMPLES_DIR)/standalone.js: $(EXAMPLES_DIR)/main.js + NODE_PATH=. $(BROWSERIFY_LITE) $< --standalone 'example' --outfile $@ + + +EXAMPLES_DEST=$(EXAMPLES_DIR)/bundle.js $(EXAMPLES_DIR)/bundle.compress.js $(EXAMPLES_DIR)/bundle.min.js $(EXAMPLES_DIR)/standalone.js $(EXAMPLES_DIR)/standalone.min.js $(EXAMPLES_DIR)/standalone.compress.js + +examples: $(EXAMPLES_DEST) -override_dh_auto_build: - debian/rules debian/browserify-lite.1 +ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) +override_dh_auto_build: $(EXAMPLES_DEST) + dh_auto_build +endif -debian/browserify-lite.1: - help2man --no-discard-stderr -N -n "bundle client-side JavaScript using Node.js-style module syntax" ./cli.js -o "$@" override_dh_auto_clean: dh_auto_clean - rm -f debian/browserify-lite.1 + rm -f $(EXAMPLES_DIR)/bundle*.js $(EXAMPLES_DIR)/standalone*.js override_dh_fixperms: dh_fixperms diff -pruN 0.5.0-1/debian/tests/control 0.5.0-3/debian/tests/control --- 0.5.0-1/debian/tests/control 2017-07-05 07:08:11.000000000 +0000 +++ 0.5.0-3/debian/tests/control 2019-01-07 22:42:06.000000000 +0000 @@ -1,2 +1,8 @@ -Test-Command: nodejs -e "require('"'"'browserify-lite'"'"');" -Depends: @ +Test-Command: node -e "require('browserify-lite');" +Depends: @, nodejs (>= 6) + +Test-Command: node test.js +Depends: @, nodejs (>= 6) + +Test-Command: make -f debian/rules examples +Depends: @, nodejs (>= 6), @builddeps@, make