aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-05-05 14:07:33 +0100
committerGitHub <noreply@github.com>2020-05-05 21:07:33 +0800
commit6bf14869359dbdc70aa5352d39234729e83cd4f9 (patch)
treecbf8d5f041e627784bd0501259d9a17e60f6143a
parentffa19431773aec2205b4dfe7bbcc6d20e4e733fb (diff)
downloadtracifyjs-6bf14869359dbdc70aa5352d39234729e83cd4f9.tar.gz
tracifyjs-6bf14869359dbdc70aa5352d39234729e83cd4f9.zip
update links to repository after rename (#3847)
-rw-r--r--README.md10
-rw-r--r--lib/ast.js2
-rw-r--r--lib/compress.js16
-rw-r--r--lib/mozilla-ast.js2
-rw-r--r--lib/output.js8
-rw-r--r--lib/parse.js4
-rw-r--r--lib/propmangle.js2
-rw-r--r--lib/scope.js2
-rw-r--r--lib/sourcemap.js2
-rw-r--r--lib/transform.js2
-rw-r--r--lib/utils.js2
-rw-r--r--package.json2
-rw-r--r--test/compress.js2
13 files changed, 28 insertions, 28 deletions
diff --git a/README.md b/README.md
index c22808d8..ec7457ab 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,8 @@ UglifyJS 3
UglifyJS is a JavaScript parser, minifier, compressor and beautifier toolkit.
#### Note:
-- **`uglify-js@3` has a simplified [API](#api-reference) and [CLI](#command-line-usage) that is not backwards compatible with [`uglify-js@2`](https://github.com/mishoo/UglifyJS2/tree/v2.x)**.
-- **Documentation for UglifyJS `2.x` releases can be found [here](https://github.com/mishoo/UglifyJS2/tree/v2.x)**.
+- **`uglify-js@3` has a simplified [API](#api-reference) and [CLI](#command-line-usage) that is not backwards compatible with [`uglify-js@2`](https://github.com/mishoo/UglifyJS/tree/v2.x)**.
+- **Documentation for UglifyJS `2.x` releases can be found [here](https://github.com/mishoo/UglifyJS/tree/v2.x)**.
- `uglify-js` only supports JavaScript (ECMAScript 5).
- To minify ECMAScript 2015 or above, transpile using tools like [Babel](https://babeljs.io/).
@@ -913,7 +913,7 @@ can pass additional arguments that control the code output:
- `wrap_iife` (default `false`) -- pass `true` to wrap immediately invoked
function expressions. See
- [#640](https://github.com/mishoo/UglifyJS2/issues/640) for more details.
+ [#640](https://github.com/mishoo/UglifyJS/issues/640) for more details.
# Miscellaneous
@@ -1072,8 +1072,8 @@ var result = UglifyJS.minify(ast, {
### Working with Uglify AST
Transversal and transformation of the native AST can be performed through
-[`TreeWalker`](https://github.com/mishoo/UglifyJS2/blob/master/lib/ast.js) and
-[`TreeTransformer`](https://github.com/mishoo/UglifyJS2/blob/master/lib/transform.js)
+[`TreeWalker`](https://github.com/mishoo/UglifyJS/blob/master/lib/ast.js) and
+[`TreeTransformer`](https://github.com/mishoo/UglifyJS/blob/master/lib/transform.js)
respectively.
### ESTree / SpiderMonkey AST
diff --git a/lib/ast.js b/lib/ast.js
index a3b80214..1f6f717d 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
diff --git a/lib/compress.js b/lib/compress.js
index 59e4d861..eb359df9 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
@@ -212,7 +212,7 @@ merge(Compressor.prototype, {
node.hoist_declarations(this);
node.process_boolean_returns(this);
}
- // Before https://github.com/mishoo/UglifyJS2/pull/1602 AST_Node.optimize()
+ // Before https://github.com/mishoo/UglifyJS/pull/1602 AST_Node.optimize()
// would call AST_Node.transform() if a different instance of AST_Node is
// produced after OPT().
// This corrupts TreeWalker.stack, which cause AST look-ups to malfunction.
@@ -4392,7 +4392,7 @@ merge(Compressor.prototype, {
}
if (node instanceof AST_LabeledStatement && node.body instanceof AST_For) {
// Certain combination of unused name + side effect leads to invalid AST:
- // https://github.com/mishoo/UglifyJS2/issues/1830
+ // https://github.com/mishoo/UglifyJS/issues/1830
// We fix it at this stage by moving the label inwards, back to the `for`.
descend(node, tt);
if (node.body instanceof AST_BlockStatement) {
@@ -4413,9 +4413,9 @@ merge(Compressor.prototype, {
}, function(node, in_list) {
if (node instanceof AST_For) {
// Certain combination of unused name + side effect leads to invalid AST:
- // https://github.com/mishoo/UglifyJS2/issues/44
- // https://github.com/mishoo/UglifyJS2/issues/1838
- // https://github.com/mishoo/UglifyJS2/issues/3371
+ // https://github.com/mishoo/UglifyJS/issues/44
+ // https://github.com/mishoo/UglifyJS/issues/1838
+ // https://github.com/mishoo/UglifyJS/issues/3371
// We fix it at this stage by moving the `var` outside the `for`.
var block;
if (node.init instanceof AST_BlockStatement) {
@@ -5468,7 +5468,7 @@ merge(Compressor.prototype, {
&& self.condition instanceof AST_Binary && self.condition.operator == "||") {
// although the code length of self.condition and negated are the same,
// negated does not require additional surrounding parentheses.
- // see https://github.com/mishoo/UglifyJS2/issues/979
+ // see https://github.com/mishoo/UglifyJS/issues/979
negated_is_best = true;
}
body.push(make_node(AST_SimpleStatement, self, {
@@ -6087,7 +6087,7 @@ merge(Compressor.prototype, {
return x instanceof AST_String;
})) {
// quite a corner-case, but we can handle it:
- // https://github.com/mishoo/UglifyJS2/issues/203
+ // https://github.com/mishoo/UglifyJS/issues/203
// if the code argument is a constant, then we can minify it.
try {
var code = "n(function(" + self.args.slice(0, -1).map(function(arg) {
diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js
index b6fb29bf..e538d6e8 100644
--- a/lib/mozilla-ast.js
+++ b/lib/mozilla-ast.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
diff --git a/lib/output.js b/lib/output.js
index 31c7a4b4..62050b4d 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
@@ -783,8 +783,8 @@ function OutputStream(options) {
var p = output.parent();
if (p instanceof AST_PropAccess && p.expression === this) {
var value = this.value;
- // https://github.com/mishoo/UglifyJS2/issues/115
- // https://github.com/mishoo/UglifyJS2/pull/1009
+ // https://github.com/mishoo/UglifyJS/issues/115
+ // https://github.com/mishoo/UglifyJS/pull/1009
if (value < 0 || /^0/.test(make_num(value))) {
return true;
}
@@ -1149,7 +1149,7 @@ function OutputStream(options) {
function parenthesize_for_noin(node, output, noin) {
var parens = false;
// need to take some precautions here:
- // https://github.com/mishoo/UglifyJS2/issues/60
+ // https://github.com/mishoo/UglifyJS/issues/60
if (noin) node.walk(new TreeWalker(function(node) {
if (parens || node instanceof AST_Scope) return true;
if (node instanceof AST_Binary && node.operator == "in") {
diff --git a/lib/parse.js b/lib/parse.js
index a04533a4..abbf2df4 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
@@ -948,7 +948,7 @@ function parse($TEXT, options) {
if (!(stat instanceof AST_IterationStatement)) {
// check for `continue` that refers to this label.
// those should be reported as syntax errors.
- // https://github.com/mishoo/UglifyJS2/issues/287
+ // https://github.com/mishoo/UglifyJS/issues/287
label.references.forEach(function(ref) {
if (ref instanceof AST_Continue) {
ref = ref.label.start;
diff --git a/lib/propmangle.js b/lib/propmangle.js
index 9f8bc7fd..ebd1f4e9 100644
--- a/lib/propmangle.js
+++ b/lib/propmangle.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
diff --git a/lib/scope.js b/lib/scope.js
index adbfe4ac..2f49df76 100644
--- a/lib/scope.js
+++ b/lib/scope.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
diff --git a/lib/sourcemap.js b/lib/sourcemap.js
index 0e982f09..c2587c88 100644
--- a/lib/sourcemap.js
+++ b/lib/sourcemap.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
diff --git a/lib/transform.js b/lib/transform.js
index e97cb741..153713dc 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
diff --git a/lib/utils.js b/lib/utils.js
index 32d410a1..2451c536 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -1,7 +1,7 @@
/***********************************************************************
A JavaScript tokenizer / parser / beautifier / compressor.
- https://github.com/mishoo/UglifyJS2
+ https://github.com/mishoo/UglifyJS
-------------------------------- (C) ---------------------------------
diff --git a/package.json b/package.json
index f58dc3a6..44dfeedc 100644
--- a/package.json
+++ b/package.json
@@ -11,7 +11,7 @@
"Alex Lam <alexlamsl@gmail.com>",
"Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)"
],
- "repository": "mishoo/UglifyJS2",
+ "repository": "mishoo/UglifyJS",
"main": "tools/node.js",
"bin": {
"uglifyjs": "bin/uglifyjs"
diff --git a/test/compress.js b/test/compress.js
index 7672b208..cd2284c4 100644
--- a/test/compress.js
+++ b/test/compress.js
@@ -63,7 +63,7 @@ function make_code(ast, options) {
function parse_test(file) {
var script = fs.readFileSync(file, "utf8");
- // TODO try/catch can be removed after fixing https://github.com/mishoo/UglifyJS2/issues/348
+ // TODO try/catch can be removed after fixing https://github.com/mishoo/UglifyJS/issues/348
try {
var ast = U.parse(script, {
filename: file