{ "diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/tmp.oHA2tTtq8K/b1/ejs.js_1.0.0+dfsg1-2_i386.changes", "source2": "/srv/reproducible-results/rbuild-debian/tmp.oHA2tTtq8K/b2/ejs.js_1.0.0+dfsg1-2_i386.changes", "unified_diff": null, "details": [ { "source1": "Files", "source2": "Files", "unified_diff": "@@ -1,3 +1,3 @@\n \n- a79101c93d435479ee5e2ab0cefc2bf8 13140 javascript optional libjs-ejs_1.0.0+dfsg1-2_all.deb\n+ 94965c593cb38b8bc68781d575ceba67 13112 javascript optional libjs-ejs_1.0.0+dfsg1-2_all.deb\n d178c69c75fe4372796c167022ffa19d 14860 javascript optional node-ejs_1.0.0+dfsg1-2_all.deb\n" }, { "source1": "libjs-ejs_1.0.0+dfsg1-2_all.deb", "source2": "libjs-ejs_1.0.0+dfsg1-2_all.deb", "unified_diff": null, "details": [ { "source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2019-02-15 02:21:53.000000 debian-binary\n -rw-r--r-- 0 0 0 1016 2019-02-15 02:21:53.000000 control.tar.xz\n--rw-r--r-- 0 0 0 11932 2019-02-15 02:21:53.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 11904 2019-02-15 02:21:53.000000 data.tar.xz\n" }, { "source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [ { "source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [ { "source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [ { "source1": "./md5sums", "source2": "./md5sums", "comments": [ "Files differ" ], "unified_diff": null } ] } ] } ] }, { "source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [ { "source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [ { "source1": "./usr/share/javascript/ejs/ejs.js", "source2": "./usr/share/javascript/ejs/ejs.js", "unified_diff": null, "details": [ { "source1": "js-beautify {}", "source2": "js-beautify {}", "unified_diff": "@@ -73,14 +73,219 @@\n .replace(/'/g, ''')\n .replace(/\"/g, '"');\n };\n \n \n }); // module: utils.js\n \n+ require.register(\"filters.js\", function(module, exports, require) {\n+ /*!\n+ * EJS - Filters\n+ * Copyright(c) 2010 TJ Holowaychuk \n+ * MIT Licensed\n+ */\n+\n+ /**\n+ * First element of the target `obj`.\n+ */\n+\n+ exports.first = function(obj) {\n+ return obj[0];\n+ };\n+\n+ /**\n+ * Last element of the target `obj`.\n+ */\n+\n+ exports.last = function(obj) {\n+ return obj[obj.length - 1];\n+ };\n+\n+ /**\n+ * Capitalize the first letter of the target `str`.\n+ */\n+\n+ exports.capitalize = function(str) {\n+ str = String(str);\n+ return str[0].toUpperCase() + str.substr(1, str.length);\n+ };\n+\n+ /**\n+ * Downcase the target `str`.\n+ */\n+\n+ exports.downcase = function(str) {\n+ return String(str).toLowerCase();\n+ };\n+\n+ /**\n+ * Uppercase the target `str`.\n+ */\n+\n+ exports.upcase = function(str) {\n+ return String(str).toUpperCase();\n+ };\n+\n+ /**\n+ * Sort the target `obj`.\n+ */\n+\n+ exports.sort = function(obj) {\n+ return Object.create(obj).sort();\n+ };\n+\n+ /**\n+ * Sort the target `obj` by the given `prop` ascending.\n+ */\n+\n+ exports.sort_by = function(obj, prop) {\n+ return Object.create(obj).sort(function(a, b) {\n+ a = a[prop], b = b[prop];\n+ if (a > b) return 1;\n+ if (a < b) return -1;\n+ return 0;\n+ });\n+ };\n+\n+ /**\n+ * Size or length of the target `obj`.\n+ */\n+\n+ exports.size = exports.length = function(obj) {\n+ return obj.length;\n+ };\n+\n+ /**\n+ * Add `a` and `b`.\n+ */\n+\n+ exports.plus = function(a, b) {\n+ return Number(a) + Number(b);\n+ };\n+\n+ /**\n+ * Subtract `b` from `a`.\n+ */\n+\n+ exports.minus = function(a, b) {\n+ return Number(a) - Number(b);\n+ };\n+\n+ /**\n+ * Multiply `a` by `b`.\n+ */\n+\n+ exports.times = function(a, b) {\n+ return Number(a) * Number(b);\n+ };\n+\n+ /**\n+ * Divide `a` by `b`.\n+ */\n+\n+ exports.divided_by = function(a, b) {\n+ return Number(a) / Number(b);\n+ };\n+\n+ /**\n+ * Join `obj` with the given `str`.\n+ */\n+\n+ exports.join = function(obj, str) {\n+ return obj.join(str || ', ');\n+ };\n+\n+ /**\n+ * Truncate `str` to `len`.\n+ */\n+\n+ exports.truncate = function(str, len, append) {\n+ str = String(str);\n+ if (str.length > len) {\n+ str = str.slice(0, len);\n+ if (append) str += append;\n+ }\n+ return str;\n+ };\n+\n+ /**\n+ * Truncate `str` to `n` words.\n+ */\n+\n+ exports.truncate_words = function(str, n) {\n+ var str = String(str),\n+ words = str.split(/ +/);\n+ return words.slice(0, n).join(' ');\n+ };\n+\n+ /**\n+ * Replace `pattern` with `substitution` in `str`.\n+ */\n+\n+ exports.replace = function(str, pattern, substitution) {\n+ return String(str).replace(pattern, substitution || '');\n+ };\n+\n+ /**\n+ * Prepend `val` to `obj`.\n+ */\n+\n+ exports.prepend = function(obj, val) {\n+ return Array.isArray(obj) ?\n+ [val].concat(obj) :\n+ val + obj;\n+ };\n+\n+ /**\n+ * Append `val` to `obj`.\n+ */\n+\n+ exports.append = function(obj, val) {\n+ return Array.isArray(obj) ?\n+ obj.concat(val) :\n+ obj + val;\n+ };\n+\n+ /**\n+ * Map the given `prop`.\n+ */\n+\n+ exports.map = function(arr, prop) {\n+ return arr.map(function(obj) {\n+ return obj[prop];\n+ });\n+ };\n+\n+ /**\n+ * Reverse the given `obj`.\n+ */\n+\n+ exports.reverse = function(obj) {\n+ return Array.isArray(obj) ?\n+ obj.reverse() :\n+ String(obj).split('').reverse().join('');\n+ };\n+\n+ /**\n+ * Get `prop` of the given `obj`.\n+ */\n+\n+ exports.get = function(obj, prop) {\n+ return obj[prop];\n+ };\n+\n+ /**\n+ * Packs the given `obj` into json string\n+ */\n+ exports.json = function(obj) {\n+ return JSON.stringify(obj);\n+ };\n+\n+ }); // module: filters.js\n+\n require.register(\"ejs.js\", function(module, exports, require) {\n \n /*!\n * EJS\n * Copyright(c) 2012 TJ Holowaychuk \n * MIT Licensed\n */\n@@ -447,214 +652,9 @@\n require.registerExtension('.ejs', function(src) {\n return compile(src, {});\n });\n }\n \n }); // module: ejs.js\n \n- require.register(\"filters.js\", function(module, exports, require) {\n- /*!\n- * EJS - Filters\n- * Copyright(c) 2010 TJ Holowaychuk \n- * MIT Licensed\n- */\n-\n- /**\n- * First element of the target `obj`.\n- */\n-\n- exports.first = function(obj) {\n- return obj[0];\n- };\n-\n- /**\n- * Last element of the target `obj`.\n- */\n-\n- exports.last = function(obj) {\n- return obj[obj.length - 1];\n- };\n-\n- /**\n- * Capitalize the first letter of the target `str`.\n- */\n-\n- exports.capitalize = function(str) {\n- str = String(str);\n- return str[0].toUpperCase() + str.substr(1, str.length);\n- };\n-\n- /**\n- * Downcase the target `str`.\n- */\n-\n- exports.downcase = function(str) {\n- return String(str).toLowerCase();\n- };\n-\n- /**\n- * Uppercase the target `str`.\n- */\n-\n- exports.upcase = function(str) {\n- return String(str).toUpperCase();\n- };\n-\n- /**\n- * Sort the target `obj`.\n- */\n-\n- exports.sort = function(obj) {\n- return Object.create(obj).sort();\n- };\n-\n- /**\n- * Sort the target `obj` by the given `prop` ascending.\n- */\n-\n- exports.sort_by = function(obj, prop) {\n- return Object.create(obj).sort(function(a, b) {\n- a = a[prop], b = b[prop];\n- if (a > b) return 1;\n- if (a < b) return -1;\n- return 0;\n- });\n- };\n-\n- /**\n- * Size or length of the target `obj`.\n- */\n-\n- exports.size = exports.length = function(obj) {\n- return obj.length;\n- };\n-\n- /**\n- * Add `a` and `b`.\n- */\n-\n- exports.plus = function(a, b) {\n- return Number(a) + Number(b);\n- };\n-\n- /**\n- * Subtract `b` from `a`.\n- */\n-\n- exports.minus = function(a, b) {\n- return Number(a) - Number(b);\n- };\n-\n- /**\n- * Multiply `a` by `b`.\n- */\n-\n- exports.times = function(a, b) {\n- return Number(a) * Number(b);\n- };\n-\n- /**\n- * Divide `a` by `b`.\n- */\n-\n- exports.divided_by = function(a, b) {\n- return Number(a) / Number(b);\n- };\n-\n- /**\n- * Join `obj` with the given `str`.\n- */\n-\n- exports.join = function(obj, str) {\n- return obj.join(str || ', ');\n- };\n-\n- /**\n- * Truncate `str` to `len`.\n- */\n-\n- exports.truncate = function(str, len, append) {\n- str = String(str);\n- if (str.length > len) {\n- str = str.slice(0, len);\n- if (append) str += append;\n- }\n- return str;\n- };\n-\n- /**\n- * Truncate `str` to `n` words.\n- */\n-\n- exports.truncate_words = function(str, n) {\n- var str = String(str),\n- words = str.split(/ +/);\n- return words.slice(0, n).join(' ');\n- };\n-\n- /**\n- * Replace `pattern` with `substitution` in `str`.\n- */\n-\n- exports.replace = function(str, pattern, substitution) {\n- return String(str).replace(pattern, substitution || '');\n- };\n-\n- /**\n- * Prepend `val` to `obj`.\n- */\n-\n- exports.prepend = function(obj, val) {\n- return Array.isArray(obj) ?\n- [val].concat(obj) :\n- val + obj;\n- };\n-\n- /**\n- * Append `val` to `obj`.\n- */\n-\n- exports.append = function(obj, val) {\n- return Array.isArray(obj) ?\n- obj.concat(val) :\n- obj + val;\n- };\n-\n- /**\n- * Map the given `prop`.\n- */\n-\n- exports.map = function(arr, prop) {\n- return arr.map(function(obj) {\n- return obj[prop];\n- });\n- };\n-\n- /**\n- * Reverse the given `obj`.\n- */\n-\n- exports.reverse = function(obj) {\n- return Array.isArray(obj) ?\n- obj.reverse() :\n- String(obj).split('').reverse().join('');\n- };\n-\n- /**\n- * Get `prop` of the given `obj`.\n- */\n-\n- exports.get = function(obj, prop) {\n- return obj[prop];\n- };\n-\n- /**\n- * Packs the given `obj` into json string\n- */\n- exports.json = function(obj) {\n- return JSON.stringify(obj);\n- };\n-\n- }); // module: filters.js\n-\n return require(\"ejs\");\n })();\n" } ] }, { "source1": "./usr/share/javascript/ejs/ejs.min.js", "source2": "./usr/share/javascript/ejs/ejs.min.js", "unified_diff": null, "details": [ { "source1": "js-beautify {}", "source2": "js-beautify {}", "unified_diff": "@@ -36,14 +36,97 @@\n }\n };\n require.register(\"utils.js\", function(module, exports, require) {\n exports.escape = function(html) {\n return String(html).replace(/&/g, \"&\").replace(//g, \">\").replace(/'/g, \"'\").replace(/\"/g, \""\")\n }\n });\n+ require.register(\"filters.js\", function(module, exports, require) {\n+ exports.first = function(obj) {\n+ return obj[0]\n+ };\n+ exports.last = function(obj) {\n+ return obj[obj.length - 1]\n+ };\n+ exports.capitalize = function(str) {\n+ str = String(str);\n+ return str[0].toUpperCase() + str.substr(1, str.length)\n+ };\n+ exports.downcase = function(str) {\n+ return String(str).toLowerCase()\n+ };\n+ exports.upcase = function(str) {\n+ return String(str).toUpperCase()\n+ };\n+ exports.sort = function(obj) {\n+ return Object.create(obj).sort()\n+ };\n+ exports.sort_by = function(obj, prop) {\n+ return Object.create(obj).sort(function(a, b) {\n+ a = a[prop], b = b[prop];\n+ if (a > b) return 1;\n+ if (a < b) return -1;\n+ return 0\n+ })\n+ };\n+ exports.size = exports.length = function(obj) {\n+ return obj.length\n+ };\n+ exports.plus = function(a, b) {\n+ return Number(a) + Number(b)\n+ };\n+ exports.minus = function(a, b) {\n+ return Number(a) - Number(b)\n+ };\n+ exports.times = function(a, b) {\n+ return Number(a) * Number(b)\n+ };\n+ exports.divided_by = function(a, b) {\n+ return Number(a) / Number(b)\n+ };\n+ exports.join = function(obj, str) {\n+ return obj.join(str || \", \")\n+ };\n+ exports.truncate = function(str, len, append) {\n+ str = String(str);\n+ if (str.length > len) {\n+ str = str.slice(0, len);\n+ if (append) str += append\n+ }\n+ return str\n+ };\n+ exports.truncate_words = function(str, n) {\n+ var str = String(str),\n+ words = str.split(/ +/);\n+ return words.slice(0, n).join(\" \")\n+ };\n+ exports.replace = function(str, pattern, substitution) {\n+ return String(str).replace(pattern, substitution || \"\")\n+ };\n+ exports.prepend = function(obj, val) {\n+ return Array.isArray(obj) ? [val].concat(obj) : val + obj\n+ };\n+ exports.append = function(obj, val) {\n+ return Array.isArray(obj) ? obj.concat(val) : obj + val\n+ };\n+ exports.map = function(arr, prop) {\n+ return arr.map(function(obj) {\n+ return obj[prop]\n+ })\n+ };\n+ exports.reverse = function(obj) {\n+ return Array.isArray(obj) ? obj.reverse() : String(obj).split(\"\").reverse().join(\"\")\n+ };\n+ exports.get = function(obj, prop) {\n+ return obj[prop]\n+ };\n+ exports.json = function(obj) {\n+ return JSON.stringify(obj)\n+ }\n+ });\n require.register(\"ejs.js\", function(module, exports, require) {\n var utils = require(\"./utils\"),\n path = require(\"path\"),\n dirname = path.dirname,\n extname = path.extname,\n join = path.join,\n fs = require(\"fs\"),\n@@ -240,92 +323,9 @@\n }\n } else if (require.registerExtension) {\n require.registerExtension(\".ejs\", function(src) {\n return compile(src, {})\n })\n }\n });\n- require.register(\"filters.js\", function(module, exports, require) {\n- exports.first = function(obj) {\n- return obj[0]\n- };\n- exports.last = function(obj) {\n- return obj[obj.length - 1]\n- };\n- exports.capitalize = function(str) {\n- str = String(str);\n- return str[0].toUpperCase() + str.substr(1, str.length)\n- };\n- exports.downcase = function(str) {\n- return String(str).toLowerCase()\n- };\n- exports.upcase = function(str) {\n- return String(str).toUpperCase()\n- };\n- exports.sort = function(obj) {\n- return Object.create(obj).sort()\n- };\n- exports.sort_by = function(obj, prop) {\n- return Object.create(obj).sort(function(a, b) {\n- a = a[prop], b = b[prop];\n- if (a > b) return 1;\n- if (a < b) return -1;\n- return 0\n- })\n- };\n- exports.size = exports.length = function(obj) {\n- return obj.length\n- };\n- exports.plus = function(a, b) {\n- return Number(a) + Number(b)\n- };\n- exports.minus = function(a, b) {\n- return Number(a) - Number(b)\n- };\n- exports.times = function(a, b) {\n- return Number(a) * Number(b)\n- };\n- exports.divided_by = function(a, b) {\n- return Number(a) / Number(b)\n- };\n- exports.join = function(obj, str) {\n- return obj.join(str || \", \")\n- };\n- exports.truncate = function(str, len, append) {\n- str = String(str);\n- if (str.length > len) {\n- str = str.slice(0, len);\n- if (append) str += append\n- }\n- return str\n- };\n- exports.truncate_words = function(str, n) {\n- var str = String(str),\n- words = str.split(/ +/);\n- return words.slice(0, n).join(\" \")\n- };\n- exports.replace = function(str, pattern, substitution) {\n- return String(str).replace(pattern, substitution || \"\")\n- };\n- exports.prepend = function(obj, val) {\n- return Array.isArray(obj) ? [val].concat(obj) : val + obj\n- };\n- exports.append = function(obj, val) {\n- return Array.isArray(obj) ? obj.concat(val) : obj + val\n- };\n- exports.map = function(arr, prop) {\n- return arr.map(function(obj) {\n- return obj[prop]\n- })\n- };\n- exports.reverse = function(obj) {\n- return Array.isArray(obj) ? obj.reverse() : String(obj).split(\"\").reverse().join(\"\")\n- };\n- exports.get = function(obj, prop) {\n- return obj[prop]\n- };\n- exports.json = function(obj) {\n- return JSON.stringify(obj)\n- }\n- });\n return require(\"ejs\")\n }();\n" } ] } ] } ] } ] } ] }