Skip to content
Permalink
Browse files

Adopt a BSD-style license.

Closes #12.
  • Loading branch information...
benjamn committed Oct 7, 2013
1 parent 1afa592 commit fd48c02cb29a655500e00ae3635607a99df0903a
Showing with 121 additions and 0 deletions.
  1. +14 −0 LICENSE
  2. +7 −0 PATENTS
  3. +9 −0 lib/emit.js
  4. +9 −0 lib/hoist.js
  5. +9 −0 lib/leap.js
  6. +9 −0 lib/meta.js
  7. +9 −0 lib/util.js
  8. +9 −0 lib/visit.js
  9. +9 −0 main.js
  10. +1 −0 package.json
  11. +9 −0 runtime/dev.js
  12. +9 −0 runtime/min.js
  13. +9 −0 test/run.js
  14. +9 −0 test/tests.es6.js
14 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.
@@ -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.
@@ -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;
@@ -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;
@@ -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;
@@ -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");
@@ -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;
@@ -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;
@@ -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;
@@ -40,6 +40,7 @@
"semver": "~2.1.0",
"browserify": "~2.33.0"
},
"license": "BSD",
"engines": {
"node": ">= 0.11"
}
@@ -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;

Some generated files are not rendered by default. Learn more.

@@ -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");
@@ -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");

0 comments on commit fd48c02

Please sign in to comment.
You can’t perform that action at this time.