[Pkg-javascript-commits] [node-function-bind] 01/03: New upstream version 1.1.1

Bastien Roucariès rouca at moszumanska.debian.org
Wed Oct 4 21:12:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-function-bind.

commit cc204447dbf9e47fd80ae4e30ae3b460abdd7b3c
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Wed Oct 4 22:36:00 2017 +0200

    New upstream version 1.1.1
---
 .eslintrc         |   2 +
 .gitignore        |   6 ++
 .jscs.json        |  21 ++++++-
 .npmrc            |   1 +
 .travis.yml       | 161 ++++++++++++++++++++++++++++++++++++++++++------------
 implementation.js |   4 ++
 index.js          |   2 +
 package.json      |  23 +++-----
 test/.eslintrc    |   9 +++
 test/index.js     |   2 +
 10 files changed, 180 insertions(+), 51 deletions(-)

diff --git a/.eslintrc b/.eslintrc
index 420b253..9b33d8e 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -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 --git a/.gitignore b/.gitignore
index 8363b8e..dbb555f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+# gitignore
 .DS_Store
 .monitor
 .*.swp
@@ -14,3 +15,8 @@ compile
 .lock-wscript
 coverage
 node_modules
+
+# Only apps should have lockfiles
+npm-shrinkwrap.json
+package-lock.json
+yarn.lock
diff --git a/.jscs.json b/.jscs.json
index d7047f6..8c44794 100644
--- a/.jscs.json
+++ b/.jscs.json
@@ -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 --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..43c97e7
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1 @@
+package-lock=false
diff --git a/.travis.yml b/.travis.yml
index caabb46..85f70d2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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 at 1.4.28 ;; 2.*) npm install -g npm at 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 at 1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm at 1.4.28 ;; 2.*) npm install -g npm at 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 at 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 at 1.3 && npm install -g npm at 1.4.28 && npm install -g npm at 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
diff --git a/implementation.js b/implementation.js
index 5e91272..cc4daec 100644
--- a/implementation.js
+++ b/implementation.js
@@ -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 --git a/index.js b/index.js
index 60ba578..3bb6b96 100644
--- a/index.js
+++ b/index.js
@@ -1,3 +1,5 @@
+'use strict';
+
 var implementation = require('./implementation');
 
 module.exports = Function.prototype.bind || implementation;
diff --git a/package.json b/package.json
index 0e017a4..20a1727 100644
--- a/package.json
+++ b/package.json
@@ -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 --git a/test/.eslintrc b/test/.eslintrc
new file mode 100644
index 0000000..8a56d5b
--- /dev/null
+++ b/test/.eslintrc
@@ -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 --git a/test/index.js b/test/index.js
index ba1bfad..2edecce 100644
--- a/test/index.js
+++ b/test/index.js
@@ -1,3 +1,5 @@
+// jscs:disable requireUseStrict
+
 var test = require('tape');
 
 var functionBind = require('../implementation');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-function-bind.git



More information about the Pkg-javascript-commits mailing list