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.
Files changed (45) hide show
  1. package/README.md +327 -0
  2. package/compiler.jar +0 -0
  3. package/contrib/externs/angular-1.3-resource.js +6 -0
  4. package/contrib/externs/angular-1.3.js +4 -3
  5. package/contrib/externs/angular-1.4-resource.js +6 -0
  6. package/contrib/externs/angular-1.4.js +2 -2
  7. package/contrib/externs/angular-1.5-q_templated.js +19 -1
  8. package/contrib/externs/angular-1.5-resource.js +6 -0
  9. package/contrib/externs/angular-1.5.js +44 -9
  10. package/contrib/externs/angular-1.6-http-promise_templated.js +61 -0
  11. package/contrib/externs/angular-1.6-mocks.js +267 -0
  12. package/contrib/externs/angular-1.6-q_templated.js +194 -0
  13. package/contrib/externs/angular-1.6-resource.js +332 -0
  14. package/contrib/externs/{w3c_css.js → angular-1.6-test.js} +8 -6
  15. package/contrib/externs/angular-1.6.js +2646 -0
  16. package/contrib/externs/angular-cache-4.6.js +316 -0
  17. package/contrib/externs/angular-material-1.1.js +92 -33
  18. package/contrib/externs/angular-material.js +36 -5
  19. package/contrib/externs/chai-3.5.js +101 -2
  20. package/contrib/externs/chrome_extensions.js +267 -95
  21. package/contrib/externs/jasmine-2.0.js +23 -3
  22. package/contrib/externs/jquery-1.4.4.js +1 -1
  23. package/contrib/externs/jquery-1.5.js +1 -1
  24. package/contrib/externs/jquery-1.6.js +1 -1
  25. package/contrib/externs/jquery-3.0.js +2037 -0
  26. package/contrib/externs/jquery-3.1.js +2045 -0
  27. package/contrib/externs/maps/google_maps_api_v3.js +306 -263
  28. package/contrib/externs/maps/google_maps_api_v3_27.js +6732 -0
  29. package/contrib/externs/maps/google_maps_api_v3_28.js +6637 -0
  30. package/contrib/externs/maps/google_maps_api_v3_exp.js +41 -106
  31. package/contrib/externs/mocha-2.5.js +65 -14
  32. package/contrib/externs/polymer-1.0.js +43 -5
  33. package/contrib/externs/safari.js +58 -0
  34. package/contrib/externs/sinon-1.17.js +719 -10
  35. package/contrib/externs/sinon-chai-2.7.js +78 -0
  36. package/contrib/externs/w3c_eventsource.js +6 -17
  37. package/contrib/externs/web_component_tester-4.2.js +6 -0
  38. package/contrib/nodejs/crypto.js +6 -6
  39. package/lib/gulp/index.js +2 -2
  40. package/lib/node/closure-compiler.js +3 -1
  41. package/package.json +8 -9
  42. package/contrib/externs/jquery-1.3.2.externs.js +0 -714
  43. package/contrib/externs/w3c_gamepad.js +0 -91
  44. package/contrib/externs/w3c_midi.js +0 -293
  45. package/contrib/externs/w3c_pointer_events.js +0 -105
@@ -0,0 +1,332 @@
1
+ /*
2
+ * Copyright 2012 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 for Angular 1 ngResource.
19
+ *
20
+ * @see http://angularjs.org/
21
+ * @externs
22
+ */
23
+
24
+
25
+ /**
26
+ * The $resource service is a factory for creating a resource class.
27
+ *
28
+ * @typedef {function(string, !Object=,
29
+ * !Object.<string, angular.ResourceAction>=):angular.Resource}
30
+ */
31
+ angular.$resource;
32
+
33
+
34
+
35
+ /**
36
+ * A hash declaring a custom action that can extend the default set of resource
37
+ * actions. Defined as an interface so Closure doesn't rename the properties.
38
+ * @interface
39
+ */
40
+ angular.ResourceAction = function() {};
41
+
42
+
43
+ /**
44
+ * HTTP request method. Valid methods are: GET, POST, PUT, DELETE, and JSONP
45
+ * @type {string}
46
+ */
47
+ angular.ResourceAction.prototype.method;
48
+
49
+
50
+ /**
51
+ * Optional set of pre-bound parameters for this action. If any of the
52
+ * parameter value is a function, it will be executed every time when a param
53
+ * value needs to be obtained for a request (unless the param was overridden).
54
+ * @type {Object|undefined}
55
+ */
56
+ angular.ResourceAction.prototype.params;
57
+
58
+
59
+ /**
60
+ * action specific url override. The url templating is supported just like for
61
+ * the resource-level urls.
62
+ * @type {string|undefined}
63
+ */
64
+ angular.ResourceAction.prototype.url;
65
+
66
+
67
+ /**
68
+ * If true then the returned object for this action is an array, see returns
69
+ * section.
70
+ * @type {boolean|undefined}
71
+ */
72
+ angular.ResourceAction.prototype.isArray;
73
+
74
+
75
+ /**
76
+ * transform function or an array of such functions. The transform function
77
+ * takes the http request body and headers and returns its transformed
78
+ * (typically serialized) version.
79
+ * @type {function(Object, Object)|Array.<function(Object, Object)>|undefined}
80
+ */
81
+ angular.ResourceAction.prototype.transformRequest;
82
+
83
+
84
+ /**
85
+ * transform function or an array of such functions. The transform function
86
+ * takes the http response body and headers and returns its transformed
87
+ * (typically deserialized) version.
88
+ * @type {function(Object, Object)|Array.<function(Object, Object)>|undefined}
89
+ */
90
+ angular.ResourceAction.prototype.transformResponse;
91
+
92
+
93
+ /**
94
+ * If true, a default $http cache will be used to cache the GET request,
95
+ * otherwise if a cache instance built with $cacheFactory, this cache will be
96
+ * used for caching.
97
+ * @type {boolean|!angular.cacheFactory.Cache|undefined}
98
+ */
99
+ angular.ResourceAction.prototype.cache;
100
+
101
+
102
+ /**
103
+ * timeout in milliseconds, or promise that should abort the request when
104
+ * resolved.
105
+ * @type {number|!angular.$q.Promise|undefined}
106
+ */
107
+ angular.ResourceAction.prototype.timeout;
108
+
109
+
110
+ /**
111
+ * whether to set the withCredentials flag on the XHR object. See requests with
112
+ * credentials for more information.
113
+ * @type {boolean|undefined}
114
+ */
115
+ angular.ResourceAction.prototype.withCredentials;
116
+
117
+
118
+ /**
119
+ * see requestType.
120
+ * @type {string|undefined}
121
+ */
122
+ angular.ResourceAction.prototype.responseType;
123
+
124
+
125
+ /**
126
+ * The interceptor object has two optional methods - response and
127
+ * responseError. Both response and responseError interceptors get called
128
+ * with http response object. See $http interceptors.
129
+ * @type {Object|undefined}
130
+ */
131
+ angular.ResourceAction.prototype.interceptor;
132
+
133
+
134
+ /** @const */
135
+ angular.resource = {};
136
+
137
+
138
+ /**
139
+ * Data you want to send along with a POST xhr.
140
+ * @typedef {Object|Array|angular.ResourceInstance}
141
+ */
142
+ angular.resource.PostData;
143
+
144
+
145
+ /**
146
+ * Callback when the resource is fetched. The first argument is the resource
147
+ * instance or an array of resource instances.
148
+ *
149
+ * TODO(bourey): This can be cleaned up. The second argument is the header
150
+ * getter function, which should really be defined in AngularJS externs.js.
151
+ *
152
+ * @typedef {function(!angular.ResourceInstanceOrCollection,
153
+ * function(string=): (string|Object|null))}
154
+ */
155
+ angular.resource.Callback;
156
+
157
+
158
+ /**
159
+ * Errback when fetching resource failed. It is given the entire http response
160
+ * object to play with.
161
+ *
162
+ * @typedef {function(!angular.$http.Response)}
163
+ */
164
+ angular.resource.Errback;
165
+
166
+
167
+ /** @typedef {Object|angular.resource.Callback} */
168
+ angular.resource.ParamsOrCallback;
169
+
170
+
171
+ /** @typedef {angular.resource.ParamsOrCallback|angular.resource.PostData} */
172
+ angular.resource.ParamsDataOrCallback;
173
+
174
+ /** @typedef {
175
+ * function(
176
+ * (!angular.ResourceInstanceOrCollection|!angular.$http.Response),
177
+ * function(string=): (string|!Object|null))
178
+ * }
179
+ */
180
+ angular.resource.CallbackOrErrback;
181
+
182
+
183
+ /** @typedef {angular.resource.PostData|angular.resource.CallbackOrErrback} */
184
+ angular.resource.DataCallbackOrErrback;
185
+
186
+
187
+ /** @typedef {!angular.ResourceInstance|!Array.<!angular.ResourceInstance>} */
188
+ angular.ResourceInstanceOrCollection;
189
+
190
+
191
+
192
+ /**
193
+ * A Resource can be used as a constructor to create a ResourceInstance. It also
194
+ * has other functions for getting or querying for instances. Example usage:
195
+ *
196
+ * var Pony = $resource('/ponies');
197
+ * var pony = new Pony({name: 'Duke'});
198
+ *
199
+ * @typedef {function(new:angular.ResourceInstance, Object=)}
200
+ */
201
+ angular.Resource;
202
+
203
+ /**
204
+ * Re-open the Resource type definition via an artificial target -- Resource_.
205
+ * This lets us define functions on function objects, which is what Resource is.
206
+ *
207
+ * @type {angular.Resource}
208
+ */
209
+ angular.Resource_;
210
+
211
+
212
+ /**
213
+ * Usage: resourceClass.get([parameters], [success], [error])
214
+ *
215
+ * @param {angular.resource.ParamsOrCallback=} opt_paramsOrCallback
216
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
217
+ * @param {angular.resource.Errback=} opt_errback
218
+ * @return {!angular.ResourceInstance} Empty resource instance.
219
+ */
220
+ angular.Resource_.prototype.get = function(
221
+ opt_paramsOrCallback, opt_callbackOrErrback, opt_errback) {};
222
+
223
+
224
+ /**
225
+ * Usage: resourceClass.query([parameters], [success], [error])
226
+ *
227
+ * @param {angular.resource.ParamsOrCallback=} opt_paramsOrCallback
228
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
229
+ * @param {angular.resource.Errback=} opt_errback
230
+ * @return {!Array.<!angular.ResourceInstance>} Empty array of instances.
231
+ */
232
+ angular.Resource_.prototype.query = function(
233
+ opt_paramsOrCallback, opt_callbackOrErrback, opt_errback) {};
234
+
235
+
236
+ /**
237
+ * Usage: resourceClass.save([parameters], postData, [success], [error])
238
+ *
239
+ * @param {!angular.resource.ParamsDataOrCallback} paramsOrCallbackOrData
240
+ * @param {angular.resource.DataCallbackOrErrback=} opt_dataOrCallbackOrErrback
241
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
242
+ * @param {angular.resource.Errback=} opt_errback
243
+ */
244
+ angular.Resource_.prototype.save = function(
245
+ paramsOrCallbackOrData, opt_dataOrCallbackOrErrback, opt_callbackOrErrback,
246
+ opt_errback) {};
247
+
248
+
249
+ /**
250
+ * Usage: resourceClass.remove([parameters], postData, [success], [error])
251
+ *
252
+ * @param {!angular.resource.ParamsDataOrCallback} paramsOrCallbackOrData
253
+ * @param {angular.resource.DataCallbackOrErrback=} opt_dataOrCallbackOrErrback
254
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
255
+ * @param {angular.resource.Errback=} opt_errback
256
+ */
257
+ angular.Resource_.prototype.remove = function(
258
+ paramsOrCallbackOrData, opt_dataOrCallbackOrErrback, opt_callbackOrErrback,
259
+ opt_errback) {};
260
+
261
+
262
+ /**
263
+ * Usage: resourceClass['delete']([parameters], postData, [success], [error])
264
+ *
265
+ * @param {!angular.resource.ParamsDataOrCallback} paramsOrCallbackOrData
266
+ * @param {angular.resource.DataCallbackOrErrback=} opt_dataOrCallbackOrErrback
267
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
268
+ * @param {angular.resource.Errback=} opt_errback
269
+ */
270
+ angular.Resource_.prototype['delete'] = function(
271
+ paramsOrCallbackOrData, opt_dataOrCallbackOrErrback, opt_callbackOrErrback,
272
+ opt_errback) {};
273
+
274
+
275
+ /** @constructor */
276
+ angular.ResourceInstance = function() {};
277
+
278
+
279
+ /**
280
+ * @type {!angular.$q.Promise}
281
+ */
282
+ angular.ResourceInstance.prototype.$promise;
283
+
284
+
285
+ /**
286
+ * @type {boolean}
287
+ */
288
+ angular.ResourceInstance.prototype.$resolved;
289
+
290
+
291
+ /**
292
+ * Usage: resource.$get([parameters], [success], [error])
293
+ *
294
+ * @param {angular.resource.ParamsOrCallback=} opt_paramsOrCallback
295
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
296
+ * @param {angular.resource.Errback=} opt_errback
297
+ */
298
+ angular.ResourceInstance.prototype.$get = function(
299
+ opt_paramsOrCallback, opt_callbackOrErrback, opt_errback) {};
300
+
301
+
302
+ /**
303
+ * Usage: resource.$save([parameters], [success], [error])
304
+ *
305
+ * @param {angular.resource.ParamsOrCallback=} opt_paramsOrCallback
306
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
307
+ * @param {angular.resource.Errback=} opt_errback
308
+ */
309
+ angular.ResourceInstance.prototype.$save = function(
310
+ opt_paramsOrCallback, opt_callbackOrErrback, opt_errback) {};
311
+
312
+
313
+ /**
314
+ * Usage: resource.$remove([parameters], [success], [error])
315
+ *
316
+ * @param {angular.resource.ParamsOrCallback=} opt_paramsOrCallback
317
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
318
+ * @param {angular.resource.Errback=} opt_errback
319
+ */
320
+ angular.ResourceInstance.prototype.$remove = function(
321
+ opt_paramsOrCallback, opt_callbackOrErrback, opt_errback) {};
322
+
323
+
324
+ /**
325
+ * Usage: resource.$delete([parameters], [success], [error])
326
+ *
327
+ * @param {angular.resource.ParamsOrCallback=} opt_paramsOrCallback
328
+ * @param {angular.resource.CallbackOrErrback=} opt_callbackOrErrback
329
+ * @param {angular.resource.Errback=} opt_errback
330
+ */
331
+ angular.ResourceInstance.prototype.$delete = function(
332
+ opt_paramsOrCallback, opt_callbackOrErrback, opt_errback) {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2014 The Closure Compiler Authors.
2
+ * Copyright 2015 The Closure Compiler Authors.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -15,13 +15,15 @@
15
15
  */
16
16
 
17
17
  /**
18
- * @fileoverview Externs for CSS Will Change Module Level 1
19
- * @see http://www.w3.org/TR/css-will-change/
18
+ * @fileoverview Test externs for v1_5.
20
19
  * @externs
20
+ *
21
+ * Some AngularJS methods are only available when debug data is enabled,
22
+ * see https://docs.angularjs.org/guide/production#disabling-debug-data.
21
23
  */
22
24
 
23
25
  /**
24
- * @type {string}
25
- * @see http://www.w3.org/TR/css-will-change-1/#will-change
26
+ * Allows isolateScope to be used in angular tests.
27
+ * @return {!angular.Scope|undefined}
26
28
  */
27
- CSSProperties.prototype.willChange;
29
+ angular.JQLite.prototype.isolateScope = function() {};