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

Bastien Roucariès rouca at moszumanska.debian.org
Sun Mar 11 22:05:13 UTC 2018


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 da63b68bf45de0fe8cec718339f67d58574be5c7
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Mar 9 23:34:50 2018 +0100

    New upstream version 1.1.1+ds
---
 module-has/.gitignore     |  4 ++++
 module-has/.jshintrc      | 14 ++++++++++++++
 module-has/.npmignore     |  3 +++
 module-has/LICENSE-MIT    | 22 ++++++++++++++++++++++
 module-has/README.mkd     | 18 ++++++++++++++++++
 module-has/package.json   | 37 +++++++++++++++++++++++++++++++++++++
 module-has/src/index.js   |  3 +++
 module-has/test/.jshintrc |  7 +++++++
 module-has/test/index.js  | 10 ++++++++++
 9 files changed, 118 insertions(+)

diff --git a/module-has/.gitignore b/module-has/.gitignore
new file mode 100644
index 0000000..1a22f88
--- /dev/null
+++ b/module-has/.gitignore
@@ -0,0 +1,4 @@
+/node_modules/
+/build/
+*.log
+*~
diff --git a/module-has/.jshintrc b/module-has/.jshintrc
new file mode 100644
index 0000000..6a61a73
--- /dev/null
+++ b/module-has/.jshintrc
@@ -0,0 +1,14 @@
+{
+  "curly": true,
+  "eqeqeq": true,
+  "immed": true,
+  "latedef": true,
+  "newcap": true,
+  "noarg": true,
+  "sub": true,
+  "undef": true,
+  "boss": true,
+  "eqnull": true,
+  "node": true,
+  "browser": true
+}
\ No newline at end of file
diff --git a/module-has/.npmignore b/module-has/.npmignore
new file mode 100644
index 0000000..8419859
--- /dev/null
+++ b/module-has/.npmignore
@@ -0,0 +1,3 @@
+/node_modules/
+*.log
+*~
diff --git a/module-has/LICENSE-MIT b/module-has/LICENSE-MIT
new file mode 100644
index 0000000..ae7014d
--- /dev/null
+++ b/module-has/LICENSE-MIT
@@ -0,0 +1,22 @@
+Copyright (c) 2013 Thiago de Arruda
+
+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.
diff --git a/module-has/README.mkd b/module-has/README.mkd
new file mode 100644
index 0000000..635e3a4
--- /dev/null
+++ b/module-has/README.mkd
@@ -0,0 +1,18 @@
+# has
+
+> Object.prototype.hasOwnProperty.call shortcut
+
+## Installation
+
+```sh
+npm install --save has
+```
+
+## Usage
+
+```js
+var has = require('has');
+
+has({}, 'hasOwnProperty'); // false
+has(Object.prototype, 'hasOwnProperty'); // true
+```
diff --git a/module-has/package.json b/module-has/package.json
new file mode 100644
index 0000000..5b01638
--- /dev/null
+++ b/module-has/package.json
@@ -0,0 +1,37 @@
+{
+  "name": "has",
+  "description": "Object.prototype.hasOwnProperty.call shortcut",
+  "version": "1.0.1",
+  "homepage": "https://github.com/tarruda/has",
+  "author": {
+    "name": "Thiago de Arruda",
+    "email": "tpadilha84 at gmail.com"
+  },
+  "repository": {
+    "type": "git",
+    "url": "git://github.com/tarruda/has.git"
+  },
+  "bugs": {
+    "url": "https://github.com/tarruda/has/issues"
+  },
+  "licenses": [
+    {
+      "type": "MIT",
+      "url": "https://github.com/tarruda/has/blob/master/LICENSE-MIT"
+    }
+  ],
+  "main": "./src/index",
+  "dependencies": {
+    "function-bind": "^1.0.2"
+  },
+  "devDependencies": {
+    "chai": "~1.7.2",
+    "mocha": "^1.21.4"
+  },
+  "engines": {
+    "node": ">= 0.8.0"
+  },
+  "scripts": {
+    "test": "node_modules/mocha/bin/mocha"
+  }
+}
diff --git a/module-has/src/index.js b/module-has/src/index.js
new file mode 100644
index 0000000..cdf3285
--- /dev/null
+++ b/module-has/src/index.js
@@ -0,0 +1,3 @@
+var bind = require('function-bind');
+
+module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
diff --git a/module-has/test/.jshintrc b/module-has/test/.jshintrc
new file mode 100644
index 0000000..e1da2e4
--- /dev/null
+++ b/module-has/test/.jshintrc
@@ -0,0 +1,7 @@
+{
+  "globals": {
+    "expect": false,
+    "run": false
+  },
+  "expr": true
+}
\ No newline at end of file
diff --git a/module-has/test/index.js b/module-has/test/index.js
new file mode 100644
index 0000000..38909b0
--- /dev/null
+++ b/module-has/test/index.js
@@ -0,0 +1,10 @@
+global.expect = require('chai').expect;
+var has = require('../src');
+
+
+describe('has', function() {
+  it('works!', function() {
+    expect(has({}, 'hasOwnProperty')).to.be.false;
+    expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
+  });
+});

-- 
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