publishing v1 of action

This commit is contained in:
Paul Merlin 2019-09-21 16:11:55 +02:00
parent 91baa89272
commit 2d5ca45eab
569 changed files with 61688 additions and 2 deletions

2
node_modules/listenercount/.npmignore generated vendored Normal file
View file

@ -0,0 +1,2 @@
node_modules
.DS_Store

5
node_modules/listenercount/LICENSE.md generated vendored Normal file
View file

@ -0,0 +1,5 @@
Copyright (c) MMXV jden <jason@denizac.org>
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

50
node_modules/listenercount/README.md generated vendored Normal file
View file

@ -0,0 +1,50 @@
# listenercount
backwards compatible version of builtin events.listenercount
[![js standard style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)]()
[![build status](https://circleci.com/gh/jden/node-listenercount.svg?&style=shield)][circleci]
[circleci]: https://circleci.com/gh/jden/node-listenercount
[standard]: http://standardjs.com/
A polyfill of Node.js 0.12+'s events.listenerCount function for Node.js 0.10. Uses the builtin if present, otherwise uses polyfill implementation.
## usage
```js
var listenerCount = require('listenercount')
var EventEmitter = require('events').EventEmitter
var ee = new EventEmitter()
ee.on('event', function () {})
listenerCount(ee, 'event') // => 1
listenerCount(ee, 'foo') // => 0
```
## api
### `listenerCount(ee : EventEmitter, eventName : String) => Number`
Returns the number of listeners for a given `eventName` on an EventEmitter.
## installation
$ npm install listenercount
## running the tests
From package root:
$ npm install
$ npm test
## contributors
- jden <jason@denizac.org>
## license
ISC. (c) MMXVI jden <jason@denizac.org>. See LICENSE.md

6
node_modules/listenercount/circle.yml generated vendored Normal file
View file

@ -0,0 +1,6 @@
test:
override:
- nvm use 0.10 && npm test
- nvm use 0.12 && npm test
- nvm use 4.0 && npm test
- nvm use 5.0 && npm test

16
node_modules/listenercount/index.js generated vendored Normal file
View file

@ -0,0 +1,16 @@
'use strict'
var listenerCount = require('events').listenerCount
// listenerCount isn't in node 0.10, so here's a basic polyfill
listenerCount = listenerCount || function (ee, event) {
var listeners = ee && ee._events && ee._events[event]
if (Array.isArray(listeners)) {
return listeners.length
} else if (typeof listeners === 'function') {
return 1
} else {
return 0
}
}
module.exports = listenerCount

64
node_modules/listenercount/package.json generated vendored Normal file
View file

@ -0,0 +1,64 @@
{
"_args": [
[
"listenercount@1.0.1",
"/Users/paul/src/codeartisans/gradle-command-action"
]
],
"_from": "listenercount@1.0.1",
"_id": "listenercount@1.0.1",
"_inBundle": false,
"_integrity": "sha1-hMinKrWcRyUyFIDJdeZQg0LnCTc=",
"_location": "/listenercount",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "listenercount@1.0.1",
"name": "listenercount",
"escapedName": "listenercount",
"rawSpec": "1.0.1",
"saveSpec": null,
"fetchSpec": "1.0.1"
},
"_requiredBy": [
"/unzipper"
],
"_resolved": "https://registry.npmjs.org/listenercount/-/listenercount-1.0.1.tgz",
"_spec": "1.0.1",
"_where": "/Users/paul/src/codeartisans/gradle-command-action",
"author": {
"name": "jden",
"email": "jason@denizac.org"
},
"bugs": {
"url": "https://github.com/jden/node-listenercount/issues"
},
"description": "backwards compatible version of builtin events.listenercount",
"devDependencies": {
"mochi": "0.3.0",
"standard": "^4.0.1"
},
"homepage": "https://github.com/jden/node-listenercount#readme",
"keywords": [
"eventemitter",
"events",
"listener",
"count",
"listenercount",
"polyfill",
"native",
"builtin"
],
"license": "ISC",
"main": "index.js",
"name": "listenercount",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/jden/node-listenercount.git"
},
"scripts": {
"test": "standard && mochi"
},
"version": "1.0.1"
}

31
node_modules/listenercount/test/test.js generated vendored Normal file
View file

@ -0,0 +1,31 @@
/* globals describe, it, beforeEach */
'use strict'
var mochi = require('mochi')
var expect = mochi.expect
var EventEmitter = require('events').EventEmitter
describe('listenercount', function () {
var listenerCount = require('../')
var ee
beforeEach(function () {
ee = new EventEmitter()
})
it('counts 0', function () {
expect(listenerCount(ee, 'event')).to.equal(0)
})
it('counts 1', function () {
ee.on('event', function () {})
expect(listenerCount(ee, 'event')).to.equal(1)
})
it('counts many', function () {
ee.on('event', function () {})
ee.on('event', function () {})
ee.on('event', function () {})
expect(listenerCount(ee, 'event')).to.equal(3)
})
})