Skip to content

Commit

Permalink
Adopt a BSD-style license.
Browse files Browse the repository at this point in the history
Closes #12.
  • Loading branch information
benjamn committed Oct 7, 2013
1 parent 1afa592 commit fd48c02
Show file tree
Hide file tree
Showing 14 changed files with 121 additions and 0 deletions.
14 changes: 14 additions & 0 deletions LICENSE
@@ -0,0 +1,14 @@
BSD License

For "regenerator" software

Copyright (c) 2013, Facebook, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7 changes: 7 additions & 0 deletions PATENTS
@@ -0,0 +1,7 @@
Additional Grant of Patent Rights

“Software” means the "regenerator" software distributed by Facebook, Inc.

Facebook hereby grants you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (subject to the termination provision below) license under any rights in any patent claims owned by Facebook, to make, have made, use, sell, offer to sell, import, and otherwise transfer the Software. For avoidance of doubt, no license is granted under Facebook’s rights in any patent claims that are infringed by (i) modifications to the Software made by you or a third party, or (ii) the Software in combination with any software or other technology provided by you or a third party.

The license granted hereunder will terminate, automatically and without notice, for anyone that makes any claim (including by filing any lawsuit, assertion or other action) alleging (a) direct, indirect, or contributory infringement or inducement to infringe any patent: (i) by Facebook or any of its subsidiaries or affiliates, whether or not such claim is related to the Software, (ii) by any party if such claim arises in whole or in part from any software, product or service of Facebook or any of its subsidiaries or affiliates, whether or not such claim is related to the Software, or (iii) by any party relating to the Software; or (b) that any right in any patent claim of Facebook is invalid or unenforceable.
9 changes: 9 additions & 0 deletions lib/emit.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var assert = require("assert");
var types = require("ast-types");
var isArray = types.builtInTypes.array;
Expand Down
9 changes: 9 additions & 0 deletions lib/hoist.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var assert = require("assert");
var recast = require("recast");
var b = recast.builders;
Expand Down
9 changes: 9 additions & 0 deletions lib/leap.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var assert = require("assert");
var recast = require("recast");
var n = recast.namedTypes;
Expand Down
9 changes: 9 additions & 0 deletions lib/meta.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var assert = require("assert");
var m = require("private").makeAccessor();
var types = require("ast-types");
Expand Down
9 changes: 9 additions & 0 deletions lib/util.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

exports.guessTabWidth = function(source) {
var counts = []; // Sparse array.
var lastIndent = 0;
Expand Down
9 changes: 9 additions & 0 deletions lib/visit.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var assert = require("assert");
var recast = require("recast");
var hoist = require("./hoist").hoist;
Expand Down
9 changes: 9 additions & 0 deletions main.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var assert = require("assert");
var path = require("path");
var transform = require("./lib/visit").transform;
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -40,6 +40,7 @@
"semver": "~2.1.0",
"browserify": "~2.33.0"
},
"license": "BSD",
"engines": {
"node": ">= 0.11"
}
Expand Down
9 changes: 9 additions & 0 deletions runtime/dev.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

(function(global) {
var hasOwn = Object.prototype.hasOwnProperty;

Expand Down
9 changes: 9 additions & 0 deletions runtime/min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions test/run.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var fs = require("fs");
var path = require("path");
var semver = require("semver");
Expand Down
9 changes: 9 additions & 0 deletions test/tests.es6.js
@@ -1,3 +1,12 @@
/**
* Copyright (c) 2013, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

var assert = require("assert");
require("../runtime/dev");

Expand Down

0 comments on commit fd48c02

Please sign in to comment.