aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sparkles
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/sparkles
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
downloadwallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz
update packages
Diffstat (limited to 'node_modules/sparkles')
-rw-r--r--node_modules/sparkles/LICENSE2
-rw-r--r--node_modules/sparkles/README.md27
-rw-r--r--node_modules/sparkles/index.js12
-rw-r--r--node_modules/sparkles/package.json28
4 files changed, 48 insertions, 21 deletions
diff --git a/node_modules/sparkles/LICENSE b/node_modules/sparkles/LICENSE
index 2d92a2b7f..fb6dcd486 100644
--- a/node_modules/sparkles/LICENSE
+++ b/node_modules/sparkles/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2014 Blaine Bublitz
+Copyright (c) 2014 Blaine Bublitz <blaine.bublitz@gmail.com> and Eric Schoffstall <yo@contra.io>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/node_modules/sparkles/README.md b/node_modules/sparkles/README.md
index 8dfdb9cb2..3655d49fb 100644
--- a/node_modules/sparkles/README.md
+++ b/node_modules/sparkles/README.md
@@ -1,7 +1,12 @@
-sparkles
-========
+<p align="center">
+ <a href="http://gulpjs.com">
+ <img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
+ </a>
+</p>
-[![Build Status](https://travis-ci.org/phated/sparkles.svg?branch=master)](https://travis-ci.org/phated/sparkles)
+# sparkles
+
+[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
Namespaced global event emitter
@@ -39,3 +44,19 @@ This is a "global emitter"; shortened: "glitter" but it was already taken; so we
## License
MIT
+
+[downloads-image]: http://img.shields.io/npm/dm/sparkles.svg
+[npm-url]: https://www.npmjs.com/package/sparkles
+[npm-image]: http://img.shields.io/npm/v/sparkles.svg
+
+[travis-url]: https://travis-ci.org/gulpjs/sparkles
+[travis-image]: http://img.shields.io/travis/gulpjs/sparkles.svg?label=travis-ci
+
+[appveyor-url]: https://ci.appveyor.com/project/gulpjs/sparkles
+[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/sparkles.svg?label=appveyor
+
+[coveralls-url]: https://coveralls.io/r/gulpjs/sparkles
+[coveralls-image]: http://img.shields.io/coveralls/gulpjs/sparkles/master.svg
+
+[gitter-url]: https://gitter.im/gulpjs/gulp
+[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
diff --git a/node_modules/sparkles/index.js b/node_modules/sparkles/index.js
index 1183745d5..e29363294 100644
--- a/node_modules/sparkles/index.js
+++ b/node_modules/sparkles/index.js
@@ -5,17 +5,17 @@ var EventEmitter = require('events').EventEmitter;
var sparklesNamespace = 'store@sparkles';
var defaultNamespace = 'default';
-function getStore(){
+function getStore() {
var store = global[sparklesNamespace];
- if(!store){
+ if (!store) {
store = global[sparklesNamespace] = {};
}
return store;
}
-function getEmitter(namespace){
+function getEmitter(namespace) {
var store = getStore();
@@ -23,10 +23,10 @@ function getEmitter(namespace){
var ee = store[namespace];
- if(!ee){
+ if (!ee) {
ee = store[namespace] = new EventEmitter();
ee.setMaxListeners(0);
- ee.remove = function remove(){
+ ee.remove = function remove() {
ee.removeAllListeners();
delete store[namespace];
};
@@ -35,7 +35,7 @@ function getEmitter(namespace){
return ee;
}
-function exists(namespace){
+function exists(namespace) {
var store = getStore();
return !!(store[namespace]);
diff --git a/node_modules/sparkles/package.json b/node_modules/sparkles/package.json
index 6de095d76..b55dd3886 100644
--- a/node_modules/sparkles/package.json
+++ b/node_modules/sparkles/package.json
@@ -1,10 +1,12 @@
{
"name": "sparkles",
- "version": "1.0.0",
+ "version": "1.0.1",
"description": "Namespaced global event emitter",
- "author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com/)",
- "contributors": [],
- "repository": "phated/sparkles",
+ "author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
+ "contributors": [
+ "Blaine Bublitz <blaine.bublitz@gmail.com>"
+ ],
+ "repository": "gulpjs/sparkles",
"license": "MIT",
"engines": {
"node": ">= 0.10"
@@ -15,16 +17,20 @@
"index.js"
],
"scripts": {
- "test": "lab -cvL --ignore store@sparkles"
+ "lint": "eslint .",
+ "pretest": "npm run lint",
+ "test": "mocha --async-only",
+ "cover": "istanbul cover _mocha --report lcovonly",
+ "coveralls": "npm run cover && istanbul-coveralls"
},
"dependencies": {},
"devDependencies": {
- "@phated/eslint-config-iceddev": "^0.2.1",
- "code": "^1.5.0",
- "eslint": "^1.3.1",
- "eslint-plugin-mocha": "^0.5.1",
- "eslint-plugin-react": "^3.3.1",
- "lab": "^5.16.0"
+ "eslint": "^2.13.0",
+ "eslint-config-gulp": "^3.0.1",
+ "expect": "^1.20.2",
+ "istanbul": "^0.4.3",
+ "istanbul-coveralls": "^1.0.3",
+ "mocha": "^3.5.3"
},
"keywords": [
"ee",