google-closure-compiler 20161024.3.0 → 20170409.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +327 -0
- package/compiler.jar +0 -0
- package/contrib/externs/angular-1.3-resource.js +6 -0
- package/contrib/externs/angular-1.3.js +4 -3
- package/contrib/externs/angular-1.4-resource.js +6 -0
- package/contrib/externs/angular-1.4.js +2 -2
- package/contrib/externs/angular-1.5-q_templated.js +19 -1
- package/contrib/externs/angular-1.5-resource.js +6 -0
- package/contrib/externs/angular-1.5.js +44 -9
- package/contrib/externs/angular-1.6-http-promise_templated.js +61 -0
- package/contrib/externs/angular-1.6-mocks.js +267 -0
- package/contrib/externs/angular-1.6-q_templated.js +194 -0
- package/contrib/externs/angular-1.6-resource.js +332 -0
- package/contrib/externs/{w3c_css.js → angular-1.6-test.js} +8 -6
- package/contrib/externs/angular-1.6.js +2646 -0
- package/contrib/externs/angular-cache-4.6.js +316 -0
- package/contrib/externs/angular-material-1.1.js +92 -33
- package/contrib/externs/angular-material.js +36 -5
- package/contrib/externs/chai-3.5.js +101 -2
- package/contrib/externs/chrome_extensions.js +267 -95
- package/contrib/externs/jasmine-2.0.js +23 -3
- package/contrib/externs/jquery-1.4.4.js +1 -1
- package/contrib/externs/jquery-1.5.js +1 -1
- package/contrib/externs/jquery-1.6.js +1 -1
- package/contrib/externs/jquery-3.0.js +2037 -0
- package/contrib/externs/jquery-3.1.js +2045 -0
- package/contrib/externs/maps/google_maps_api_v3.js +306 -263
- package/contrib/externs/maps/google_maps_api_v3_27.js +6732 -0
- package/contrib/externs/maps/google_maps_api_v3_28.js +6637 -0
- package/contrib/externs/maps/google_maps_api_v3_exp.js +41 -106
- package/contrib/externs/mocha-2.5.js +65 -14
- package/contrib/externs/polymer-1.0.js +43 -5
- package/contrib/externs/safari.js +58 -0
- package/contrib/externs/sinon-1.17.js +719 -10
- package/contrib/externs/sinon-chai-2.7.js +78 -0
- package/contrib/externs/w3c_eventsource.js +6 -17
- package/contrib/externs/web_component_tester-4.2.js +6 -0
- package/contrib/nodejs/crypto.js +6 -6
- package/lib/gulp/index.js +2 -2
- package/lib/node/closure-compiler.js +3 -1
- package/package.json +8 -9
- package/contrib/externs/jquery-1.3.2.externs.js +0 -714
- package/contrib/externs/w3c_gamepad.js +0 -91
- package/contrib/externs/w3c_midi.js +0 -293
- package/contrib/externs/w3c_pointer_events.js +0 -105
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2016 The Closure Compiler Authors.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Externs definitions for the Sinon Chai library, 2.7.0 branch.
|
|
19
|
+
*
|
|
20
|
+
* This file defines some virtual types, please don't use these directly, but
|
|
21
|
+
* follow the official API guidelines.
|
|
22
|
+
*
|
|
23
|
+
* @externs
|
|
24
|
+
* @see https://github.com/domenic/sinon-chai/tree/2.7.0
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/** @type {!ExpectChain} */ ExpectChain.prototype.always;
|
|
28
|
+
|
|
29
|
+
/** @type {!ExpectChainTerminal} */ ExpectChain.prototype.called;
|
|
30
|
+
/** @type {!ExpectChainTerminal} */ ExpectChain.prototype.calledOnce;
|
|
31
|
+
/** @type {!ExpectChainTerminal} */ ExpectChain.prototype.calledTwice;
|
|
32
|
+
/** @type {!ExpectChainTerminal} */ ExpectChain.prototype.calledThrice;
|
|
33
|
+
/** @type {!ExpectChainTerminal} */ ExpectChain.prototype.calledWithNew;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @param {number} n
|
|
37
|
+
*/
|
|
38
|
+
ExpectChain.prototype.callCount = function(n) {};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @param {!SinonSpy} spy
|
|
42
|
+
*/
|
|
43
|
+
ExpectChain.prototype.calledBefore = function(spy) {};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @param {!SinonSpy} spy
|
|
47
|
+
*/
|
|
48
|
+
ExpectChain.prototype.calledAfter = function(spy) {};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @param {*} context
|
|
52
|
+
*/
|
|
53
|
+
ExpectChain.prototype.calledOn = function(context) {};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @param {...*} args
|
|
57
|
+
*/
|
|
58
|
+
ExpectChain.prototype.calledWith = function(args) {};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @param {...*} args
|
|
62
|
+
*/
|
|
63
|
+
ExpectChain.prototype.calledWithExactly = function(args) {};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @param {...*} args
|
|
67
|
+
*/
|
|
68
|
+
ExpectChain.prototype.calledWithMatch = function(args) {};
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @param {*} obj
|
|
72
|
+
*/
|
|
73
|
+
ExpectChain.prototype.returned = function(obj) {};
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @param {*=} obj
|
|
77
|
+
*/
|
|
78
|
+
ExpectChain.prototype.thrown = function(obj) {};
|
|
@@ -29,26 +29,15 @@
|
|
|
29
29
|
*/
|
|
30
30
|
function EventSource(url, opt_eventSourceInitDict) {}
|
|
31
31
|
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* @return {undefined}
|
|
36
|
-
*/
|
|
37
|
-
EventSource.prototype.addEventListener = function(
|
|
38
|
-
type, listener, opt_useCapture) {};
|
|
32
|
+
/** @override */
|
|
33
|
+
EventSource.prototype.addEventListener = function(type, listener, opt_options) {
|
|
34
|
+
};
|
|
39
35
|
|
|
40
|
-
/**
|
|
41
|
-
* @param {boolean=} opt_useCapture
|
|
42
|
-
* @override
|
|
43
|
-
* @return {undefined}
|
|
44
|
-
*/
|
|
36
|
+
/** @override */
|
|
45
37
|
EventSource.prototype.removeEventListener = function(
|
|
46
|
-
type, listener,
|
|
38
|
+
type, listener, opt_options) {};
|
|
47
39
|
|
|
48
|
-
/**
|
|
49
|
-
* @override
|
|
50
|
-
* @return {boolean}
|
|
51
|
-
*/
|
|
40
|
+
/** @override */
|
|
52
41
|
EventSource.prototype.dispatchEvent = function(evt) {};
|
|
53
42
|
|
|
54
43
|
/**
|
package/contrib/nodejs/crypto.js
CHANGED
|
@@ -153,7 +153,7 @@ crypto.Cipher.prototype.update;
|
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* @name crypto.Cipher.prototype.final
|
|
156
|
-
* @param {string} output_encoding
|
|
156
|
+
* @param {string=} output_encoding
|
|
157
157
|
* @return {string|Buffer}
|
|
158
158
|
*/
|
|
159
159
|
crypto.Cipher.prototype.final;
|
|
@@ -186,7 +186,7 @@ crypto.Cipheriv.prototype.update;
|
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* @name crypto.Cipheriv.prototype.final
|
|
189
|
-
* @param {string} output_encoding
|
|
189
|
+
* @param {string=} output_encoding
|
|
190
190
|
* @return {string|Buffer}
|
|
191
191
|
*/
|
|
192
192
|
crypto.Cipheriv.prototype.final;
|
|
@@ -234,13 +234,13 @@ crypto.Decipher.prototype.update;
|
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* @name crypto.Decipher.prototype.final
|
|
237
|
-
* @param {string} output_encoding
|
|
237
|
+
* @param {string=} output_encoding
|
|
238
238
|
* @return {string|Buffer}
|
|
239
239
|
*/
|
|
240
240
|
crypto.Decipher.prototype.final;
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
|
-
* @param {string} output_encoding
|
|
243
|
+
* @param {string=} output_encoding
|
|
244
244
|
* @return {string|Buffer}
|
|
245
245
|
*/
|
|
246
246
|
crypto.Decipher.prototype.finaltol;
|
|
@@ -274,13 +274,13 @@ crypto.Decipheriv.prototype.update;
|
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* @name crypto.Decipheriv.prototype.final
|
|
277
|
-
* @param {string} output_encoding
|
|
277
|
+
* @param {string=} output_encoding
|
|
278
278
|
* @return {string|Buffer}
|
|
279
279
|
*/
|
|
280
280
|
crypto.Decipheriv.prototype.final;
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
|
-
* @param {string} output_encoding
|
|
283
|
+
* @param {string=} output_encoding
|
|
284
284
|
* @return {string|Buffer}
|
|
285
285
|
*/
|
|
286
286
|
crypto.Decipheriv.prototype.finaltol;
|
package/lib/gulp/index.js
CHANGED
|
@@ -76,7 +76,7 @@ module.exports = function(initOptions) {
|
|
|
76
76
|
|
|
77
77
|
pluginOptions = pluginOptions || {};
|
|
78
78
|
|
|
79
|
-
this.
|
|
79
|
+
this.compilationOptions_ = compilationOptions;
|
|
80
80
|
this.streamMode_ = pluginOptions.streamMode || 'BOTH';
|
|
81
81
|
this.logger_ = pluginOptions.logger || gulpLog;
|
|
82
82
|
this.PLUGIN_NAME_ = pluginOptions.pluginName || PLUGIN_NAME;
|
|
@@ -135,7 +135,7 @@ module.exports = function(initOptions) {
|
|
|
135
135
|
jsonFiles = [];
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
var compiler = new Compiler(this.
|
|
138
|
+
var compiler = new Compiler(this.compilationOptions_, extraCommandArguments);
|
|
139
139
|
|
|
140
140
|
// Add the gulp-specific argument so the compiler will understand the JSON encoded input
|
|
141
141
|
// for gulp, the stream mode will be 'BOTH', but when invoked from grunt, we only use
|
|
@@ -36,7 +36,9 @@ var contribPath = path.dirname(compilerPath) + '/contrib';
|
|
|
36
36
|
function Compiler(args, extraCommandArgs) {
|
|
37
37
|
this.commandArguments = (extraCommandArgs || []).slice();
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
if (Compiler.JAR_PATH) {
|
|
40
|
+
this.commandArguments.push('-jar', Compiler.JAR_PATH);
|
|
41
|
+
}
|
|
40
42
|
|
|
41
43
|
if (Array.isArray(args)) {
|
|
42
44
|
this.commandArguments = this.commandArguments.concat(args.slice());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "google-closure-compiler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20170409.0.0",
|
|
4
4
|
"description": "Check, compile, optimize and compress Javascript with Closure-Compiler",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,26 +37,25 @@
|
|
|
37
37
|
"homepage": "https://developers.google.com/closure/compiler/",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"chalk": "^1.0.0",
|
|
40
|
-
"vinyl": "^
|
|
40
|
+
"vinyl": "^2.0.1",
|
|
41
41
|
"vinyl-sourcemaps-apply": "^0.2.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"gulp": "^3.9.0",
|
|
45
|
-
"gulp-mocha": "^
|
|
46
|
-
"gulp-sourcemaps": "^
|
|
45
|
+
"gulp-mocha": "^4.0.1",
|
|
46
|
+
"gulp-sourcemaps": "^2.4.1",
|
|
47
47
|
"lodash": "^4.6.1",
|
|
48
|
-
"mocha": "^2.
|
|
48
|
+
"mocha": "^3.2.0",
|
|
49
49
|
"ncp": "^2.0.0",
|
|
50
50
|
"semver": "^5.1.0",
|
|
51
|
-
"should": "^
|
|
52
|
-
"stream-assert": "^2.0.3"
|
|
53
|
-
"vinyl": "^1.1.0"
|
|
51
|
+
"should": "^11.2.0",
|
|
52
|
+
"stream-assert": "^2.0.3"
|
|
54
53
|
},
|
|
55
54
|
"scripts": {
|
|
56
55
|
"test": "mocha",
|
|
57
56
|
"pretest": "./build_compiler.js"
|
|
58
57
|
},
|
|
59
58
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
59
|
+
"node": ">=4"
|
|
61
60
|
}
|
|
62
61
|
}
|