domain-browser
Advanced tools
Comparing version 1.0.1 to 1.1.0
16
index.js
/*global define:false require:false */ | ||
(function (name, context, definition) { | ||
if (typeof module !== 'undefined' && module.exports) module.exports = definition(); | ||
else if (typeof define === 'function' && define.amd) define(definition); | ||
else if (typeof provide === 'function') provide(name, definition()); | ||
else context[name] = definition(); | ||
})('domain-browser', this, function(){ | ||
module.exports = (function(){ | ||
// Import Events | ||
var events = null; | ||
if ( window ) { | ||
events = require('events-browser'); | ||
} else { | ||
events = require('events'); | ||
} | ||
var events = require('events'); | ||
@@ -35,2 +25,2 @@ // Export Domain | ||
return domain; | ||
}); | ||
}).call(this); |
@@ -1,5 +0,9 @@ | ||
# The MIT License | ||
Copyright © 2013+ [Bevry Pty Ltd](http://bevry.me) | ||
<!-- LICENSEFILE/ --> | ||
# License | ||
Copyright © Bevry Pty Ltd <us@bevry.me> (http://bevry.me) | ||
## The MIT License | ||
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: | ||
@@ -10,1 +14,5 @@ | ||
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. | ||
<!-- /LICENSEFILE --> | ||
{ | ||
"title": "Node's [domain module](http://nodejs.org/api/domain.html) for the web browser", | ||
"name": "domain-browser", | ||
"version": "1.0.1", | ||
"description": "Node's domain for the web browser", | ||
"version": "1.1.0", | ||
"description": "Note, this is merely an evented try...catch with the same API as node. Nothing more.", | ||
"homepage": "https://github.com/bevry/domain-browser", | ||
"license": { | ||
"type": "MIT" | ||
}, | ||
"badges": { | ||
"travis": true, | ||
"npm": true, | ||
"gittip": "bevry", | ||
"flattr": "344188/balupton-on-Flattr", | ||
"paypal": "QB8GQPZAH84N6" | ||
}, | ||
"keywords": [ | ||
"domain", "trycatch", "try", "catch", "node-compat", "ender.js", "component", "component.io", "umd", "amd", "require.js", "browser" | ||
"domain", | ||
"trycatch", | ||
"try", | ||
"catch", | ||
"node-compat", | ||
"ender.js", | ||
"component", | ||
"component.io", | ||
"umd", | ||
"amd", | ||
"require.js", | ||
"browser" | ||
], | ||
@@ -23,3 +45,2 @@ "author": "Bevry Pty Ltd <us@bevry.me> (http://bevry.me)", | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
@@ -32,3 +53,6 @@ "node": ">=0.4", | ||
}, | ||
"main": "./index.js" | ||
"main": "./index.js", | ||
"devDependencies": { | ||
"projectz": "~0.2.5" | ||
} | ||
} |
@@ -1,38 +0,89 @@ | ||
# Domain Browser | ||
[![NPM version](https://badge.fury.io/js/domain-browser.png)](https://npmjs.org/package/domain-browser "View this project on NPM") | ||
[![Gittip donate button](http://badgr.co/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip") | ||
[![Flattr donate button](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![PayPayl donate button](https://www.paypalobjects.com/en_AU/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
<!-- TITLE/ --> | ||
[Node's domain](http://nodejs.org/api/domain.html) for the web browser | ||
# Node's [domain module](http://nodejs.org/api/domain.html) for the web browser | ||
<!-- /TITLE --> | ||
<!-- BADGES/ --> | ||
[![Build Status](http://img.shields.io/travis-ci/bevry/domain-browser.png?branch=master)](http://travis-ci.org/bevry/domain-browser "Check this project's build status on TravisCI") | ||
[![NPM version](http://badge.fury.io/js/domain-browser.png)](https://npmjs.org/package/domain-browser "View this project on NPM") | ||
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip") | ||
[![Flattr donate button](http://img.shields.io/flattr/donate.png?color=yellow)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
<!-- /BADGES --> | ||
<!-- DESCRIPTION/ --> | ||
Note, this is merely an evented try...catch with the same API as node. Nothing more. | ||
<!-- /DESCRIPTION --> | ||
## Usage | ||
<!-- INSTALL/ --> | ||
## Install | ||
### [Node](http://nodejs.org/), [Browserify](http://browserify.org/) | ||
- Use: `require('domain-browser')` | ||
- Install: 'npm install --save domain-browser' | ||
- Install: `npm install --save domain-browser` | ||
### [Ender](http://ender.jit.su/) | ||
- Use: `require('domain-browser')` | ||
- Install: `ender add domain-browser'` | ||
- Install: `ender add domain-browser` | ||
## [Component](http://github.com/component/component) | ||
- Use: `require('domain-browser')` | ||
- Install: `component install bevry/domain-browser` | ||
<!-- /INSTALL --> | ||
## [Bower](http://bower.io/) | ||
- Use: `require('domain-browser')` | ||
- Install: `bower install domain-browser` | ||
<!-- HISTORY/ --> | ||
## History | ||
[You can discover the version history inside the `History.md` file](https://github.com/bevry/domain-browser/blob/master/History.md#files) | ||
[Discover the change history by heading on over to the `History.md` file.](https://github.com/bevry/domain-browser/blob/master/History.md#files) | ||
<!-- /HISTORY --> | ||
<!-- BACKERS/ --> | ||
## Backers | ||
### Maintainers | ||
These amazing people are maintaining this project: | ||
- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton) | ||
### Sponsors | ||
No sponsors yet! Will you be the first? | ||
[![Gittip donate button](http://img.shields.io/gittip/bevry.png)](https://www.gittip.com/bevry/ "Donate weekly to this project using Gittip") | ||
[![Flattr donate button](http://img.shields.io/flattr/donate.png?color=yellow)](http://flattr.com/thing/344188/balupton-on-Flattr "Donate monthly to this project using Flattr") | ||
[![PayPayl donate button](http://img.shields.io/paypal/donate.png?color=yellow)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QB8GQPZAH84N6 "Donate once-off to this project using Paypal") | ||
### Contributors | ||
These amazing people have contributed code to this project: | ||
- Benjamin Lupton <b@lupton.cc> (https://github.com/balupton) - [view contributions](https://github.com/bevry/domain-browser/commits?author=balupton) | ||
[Become a contributor!](https://github.com/bevry/domain-browser/blob/master/Contributing.md#files) | ||
<!-- /BACKERS --> | ||
<!-- LICENSE/ --> | ||
## License | ||
Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/) | ||
<br/>Copyright © 2013+ [Bevry Pty Ltd](http://bevry.me) | ||
Licensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT license](http://creativecommons.org/licenses/MIT/) | ||
Copyright © Bevry Pty Ltd <us@bevry.me> (http://bevry.me) | ||
<!-- /LICENSE --> | ||
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6517
6
90
1
23