diff -Nru node-function-bind-1.1.0/debian/changelog node-function-bind-1.1.1/debian/changelog --- node-function-bind-1.1.0/debian/changelog 2016-02-28 15:12:25.000000000 +0000 +++ node-function-bind-1.1.1/debian/changelog 2017-10-04 20:37:22.000000000 +0000 @@ -1,3 +1,12 @@ +node-function-bind (1.1.1-1) unstable; urgency=medium + + * Team upload + * New upstream release + * Bump policy and debhelper (no changes) + * Run testsuite + + -- Bastien Roucariès Wed, 04 Oct 2017 22:37:22 +0200 + node-function-bind (1.1.0-1) unstable; urgency=low * Initial release (Closes: #814281) diff -Nru node-function-bind-1.1.0/debian/compat node-function-bind-1.1.1/debian/compat --- node-function-bind-1.1.0/debian/compat 2016-02-28 15:12:25.000000000 +0000 +++ node-function-bind-1.1.1/debian/compat 2017-10-04 20:37:22.000000000 +0000 @@ -1 +1 @@ -9 +10 diff -Nru node-function-bind-1.1.0/debian/control node-function-bind-1.1.1/debian/control --- node-function-bind-1.1.0/debian/control 2016-02-28 15:12:25.000000000 +0000 +++ node-function-bind-1.1.1/debian/control 2017-10-04 20:37:22.000000000 +0000 @@ -1,12 +1,14 @@ Source: node-function-bind -Section: web +Section: javascript Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Ross Gammon -Build-Depends: debhelper (>= 9), - dh-buildinfo, - nodejs -Standards-Version: 3.9.7 +Build-Depends: debhelper (>= 10) + , dh-buildinfo + , dpkg-dev (>= 1.17.14) + , node-tap (>= 10.7.2) + , node-tape (>= 4.6.3) +Standards-Version: 4.1.1 Homepage: https://github.com/Raynos/function-bind Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-function-bind.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-function-bind.git diff -Nru node-function-bind-1.1.0/debian/rules node-function-bind-1.1.1/debian/rules --- node-function-bind-1.1.0/debian/rules 2016-02-28 15:12:25.000000000 +0000 +++ node-function-bind-1.1.1/debian/rules 2017-10-04 20:37:22.000000000 +0000 @@ -6,3 +6,12 @@ %: dh $@ + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) + tap -R spec test/*.js +else + @echo '**********************************************************' + @echo 'Skip test suite ' + @echo '**********************************************************' +endif diff -Nru node-function-bind-1.1.0/debian/tests/control node-function-bind-1.1.1/debian/tests/control --- node-function-bind-1.1.0/debian/tests/control 2016-02-28 15:12:25.000000000 +0000 +++ node-function-bind-1.1.1/debian/tests/control 2017-10-04 20:37:22.000000000 +0000 @@ -1,2 +1,7 @@ Tests: require -Depends: node-function-bind +Depends: node-function-bind, nodejs (>= 6) + +Tests: runtestsuite +Depends: node-function-bind, nodejs (>= 6) + , node-tap (>= 10.7.2) + , node-tape (>= 4.6.3) \ No newline at end of file diff -Nru node-function-bind-1.1.0/debian/tests/require node-function-bind-1.1.1/debian/tests/require --- node-function-bind-1.1.0/debian/tests/require 2016-02-28 15:12:25.000000000 +0000 +++ node-function-bind-1.1.1/debian/tests/require 2017-10-04 20:37:22.000000000 +0000 @@ -1,3 +1,3 @@ #!/bin/sh set -e -nodejs -e "require('function-bind');" +node -e "require('function-bind');" diff -Nru node-function-bind-1.1.0/debian/tests/runtestsuite node-function-bind-1.1.1/debian/tests/runtestsuite --- node-function-bind-1.1.0/debian/tests/runtestsuite 1970-01-01 00:00:00.000000000 +0000 +++ node-function-bind-1.1.1/debian/tests/runtestsuite 2017-10-04 20:37:22.000000000 +0000 @@ -0,0 +1,32 @@ +#!/bin/sh +set -e + +# notice the / at end in order to load this module +PACKAGE='function-bind' +SEDCMD="s,(require|resolve)\s*[(]\s*'[.][.]/,\\1('$PACKAGE/,g" +SEDERROR="Code[[:space:]]*coverage[ ]*is[ ]*disabled" + +tmpdir=$(mktemp -d) +trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP + +cp -r test $tmpdir/test +find test/ -maxdepth 1 -name '*.js' -print0 | \ + xargs -0 -n1 \ + sh -c 'set -e; echo "TESTING: $3"; sed -E "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir" +cd $tmpdir + + +TAPCMD="" + +TAPCMD() { + set -e; + tap -R spec test/*.js +} + +SEDERROR () { + set -e + sed -e "/$SEDERROR/w /dev/fd/2" -e "/$SEDERROR/d" +} + +TAPCMD 2> error.log +exec 3>&1 ;SEDERROR < error.log 2>&3 >&2 3>&- diff -Nru node-function-bind-1.1.0/.eslintrc node-function-bind-1.1.1/.eslintrc --- node-function-bind-1.1.0/.eslintrc 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/.eslintrc 2017-08-28 07:49:38.000000000 +0000 @@ -4,6 +4,8 @@ "extends": "@ljharb", "rules": { + "func-name-matching": 0, + "indent": [2, 4], "max-nested-callbacks": [2, 3], "max-params": [2, 3], "max-statements": [2, 20], diff -Nru node-function-bind-1.1.0/.gitignore node-function-bind-1.1.1/.gitignore --- node-function-bind-1.1.0/.gitignore 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/.gitignore 2017-08-28 07:49:38.000000000 +0000 @@ -1,3 +1,4 @@ +# gitignore .DS_Store .monitor .*.swp @@ -14,3 +15,8 @@ .lock-wscript coverage node_modules + +# Only apps should have lockfiles +npm-shrinkwrap.json +package-lock.json +yarn.lock diff -Nru node-function-bind-1.1.0/implementation.js node-function-bind-1.1.1/implementation.js --- node-function-bind-1.1.0/implementation.js 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/implementation.js 2017-08-28 07:49:38.000000000 +0000 @@ -1,3 +1,7 @@ +'use strict'; + +/* eslint no-invalid-this: 1 */ + var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible '; var slice = Array.prototype.slice; var toStr = Object.prototype.toString; diff -Nru node-function-bind-1.1.0/index.js node-function-bind-1.1.1/index.js --- node-function-bind-1.1.0/index.js 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/index.js 2017-08-28 07:49:38.000000000 +0000 @@ -1,3 +1,5 @@ +'use strict'; + var implementation = require('./implementation'); module.exports = Function.prototype.bind || implementation; diff -Nru node-function-bind-1.1.0/.jscs.json node-function-bind-1.1.1/.jscs.json --- node-function-bind-1.1.0/.jscs.json 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/.jscs.json 2017-08-28 07:49:38.000000000 +0000 @@ -45,7 +45,7 @@ "disallowSpacesInsideArrayBrackets": true, - "disallowQuotedKeysInObjects": "allButReserved", + "disallowQuotedKeysInObjects": { "allExcept": ["reserved"] }, "disallowSpaceAfterObjectKeys": true, @@ -154,6 +154,23 @@ "requireCapitalizedConstructorsNew": { "allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"] - } + }, + + "requireImportAlphabetized": false, + + "requireSpaceBeforeObjectValues": true, + "requireSpaceBeforeDestructuredValues": true, + + "disallowSpacesInsideTemplateStringPlaceholders": true, + + "disallowArrayDestructuringReturn": false, + + "requireNewlineBeforeSingleStatementsInIf": false, + + "disallowUnusedVariables": true, + + "requireSpacesInsideImportedObjectBraces": true, + + "requireUseStrict": true } diff -Nru node-function-bind-1.1.0/.npmrc node-function-bind-1.1.1/.npmrc --- node-function-bind-1.1.0/.npmrc 1970-01-01 00:00:00.000000000 +0000 +++ node-function-bind-1.1.1/.npmrc 2017-08-28 07:49:38.000000000 +0000 @@ -0,0 +1 @@ +package-lock=false diff -Nru node-function-bind-1.1.0/package.json node-function-bind-1.1.1/package.json --- node-function-bind-1.1.0/package.json 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/package.json 2017-08-28 07:49:38.000000000 +0000 @@ -1,6 +1,6 @@ { "name": "function-bind", - "version": "1.1.0", + "version": "1.1.1", "description": "Implementation of Function.prototype.bind", "keywords": [ "function", @@ -27,23 +27,19 @@ }, "dependencies": {}, "devDependencies": { - "tape": "^4.4.0", + "@ljharb/eslint-config": "^12.2.1", "covert": "^1.1.0", - "jscs": "^2.9.0", - "eslint": "^2.0.0", - "@ljharb/eslint-config": "^2.1.0" + "eslint": "^4.5.0", + "jscs": "^3.0.7", + "tape": "^4.8.0" }, - "licenses": [ - { - "type": "MIT", - "url": "http://github.com/Raynos/function-bind/raw/master/LICENSE" - } - ], + "license": "MIT", "scripts": { - "test": "npm run lint && npm run tests-only && npm run coverage-quiet", + "pretest": "npm run lint", + "test": "npm run tests-only", + "posttest": "npm run coverage -- --quiet", "tests-only": "node test", "coverage": "covert test/*.js", - "coverage-quiet": "covert test/*.js --quiet", "lint": "npm run jscs && npm run eslint", "jscs": "jscs *.js */*.js", "eslint": "eslint *.js */*.js" @@ -65,4 +61,3 @@ ] } } - diff -Nru node-function-bind-1.1.0/test/.eslintrc node-function-bind-1.1.1/test/.eslintrc --- node-function-bind-1.1.0/test/.eslintrc 1970-01-01 00:00:00.000000000 +0000 +++ node-function-bind-1.1.1/test/.eslintrc 2017-08-28 07:49:38.000000000 +0000 @@ -0,0 +1,9 @@ +{ + "rules": { + "array-bracket-newline": 0, + "array-element-newline": 0, + "max-statements-per-line": [2, { "max": 2 }], + "no-invalid-this": 0, + "no-magic-numbers": 0, + } +} diff -Nru node-function-bind-1.1.0/test/index.js node-function-bind-1.1.1/test/index.js --- node-function-bind-1.1.0/test/index.js 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/test/index.js 2017-08-28 07:49:38.000000000 +0000 @@ -1,3 +1,5 @@ +// jscs:disable requireUseStrict + var test = require('tape'); var functionBind = require('../implementation'); diff -Nru node-function-bind-1.1.0/.travis.yml node-function-bind-1.1.1/.travis.yml --- node-function-bind-1.1.0/.travis.yml 2016-02-14 08:28:22.000000000 +0000 +++ node-function-bind-1.1.1/.travis.yml 2017-08-28 07:49:38.000000000 +0000 @@ -1,77 +1,168 @@ language: node_js +os: + - linux node_js: - - "5.6" - - "5.5" - - "5.4" - - "5.3" - - "5.2" - - "5.1" - - "5.0" - - "4.3" - - "4.2" - - "4.1" - - "4.0" + - "8.4" + - "7.10" + - "6.11" + - "5.12" + - "4.8" - "iojs-v3.3" - - "iojs-v3.2" - - "iojs-v3.1" - - "iojs-v3.0" - "iojs-v2.5" - - "iojs-v2.4" - - "iojs-v2.3" - - "iojs-v2.2" - - "iojs-v2.1" - - "iojs-v2.0" - "iojs-v1.8" - - "iojs-v1.7" - - "iojs-v1.6" - - "iojs-v1.5" - - "iojs-v1.4" - - "iojs-v1.3" - - "iojs-v1.2" - - "iojs-v1.1" - - "iojs-v1.0" - "0.12" - - "0.11" - "0.10" - - "0.9" - "0.8" - - "0.6" - - "0.4" before_install: - - 'if [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi' - - 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi' + - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi' + - 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g npm@4.5 ; else npm install -g npm; fi; fi' +install: + - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;' script: - - 'if [ "${TRAVIS_NODE_VERSION}" != "4.3" ]; then npm run tests-only ; else npm test ; fi' + - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi' + - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi' + - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi' + - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi' sudo: false +env: + - TEST=true matrix: fast_finish: true - allow_failures: + include: + - node_js: "node" + env: PRETEST=true + - node_js: "4" + env: COVERAGE=true + - node_js: "8.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "8.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "8.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "8.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.9" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.8" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "7.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.10" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.9" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.8" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.3" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.2" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.1" + env: TEST=true ALLOW_FAILURE=true + - node_js: "6.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.11" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.10" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.9" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.8" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "5.6" + env: TEST=true ALLOW_FAILURE=true - node_js: "5.5" + env: TEST=true ALLOW_FAILURE=true - node_js: "5.4" + env: TEST=true ALLOW_FAILURE=true - node_js: "5.3" + env: TEST=true ALLOW_FAILURE=true - node_js: "5.2" + env: TEST=true ALLOW_FAILURE=true - node_js: "5.1" + env: TEST=true ALLOW_FAILURE=true - node_js: "5.0" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.7" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.6" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.5" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.4" + env: TEST=true ALLOW_FAILURE=true + - node_js: "4.3" + env: TEST=true ALLOW_FAILURE=true - node_js: "4.2" + env: TEST=true ALLOW_FAILURE=true - node_js: "4.1" + env: TEST=true ALLOW_FAILURE=true - node_js: "4.0" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v3.2" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v3.1" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v3.0" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v2.4" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v2.3" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v2.2" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v2.1" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v2.0" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.7" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.6" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.5" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.4" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.3" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.2" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.1" + env: TEST=true ALLOW_FAILURE=true - node_js: "iojs-v1.0" + env: TEST=true ALLOW_FAILURE=true - node_js: "0.11" + env: TEST=true ALLOW_FAILURE=true - node_js: "0.9" + env: TEST=true ALLOW_FAILURE=true - node_js: "0.6" + env: TEST=true ALLOW_FAILURE=true - node_js: "0.4" + env: TEST=true ALLOW_FAILURE=true + allow_failures: + - os: osx + - env: TEST=true ALLOW_FAILURE=true