google-closure-compiler 20250412.0.0-nightly → 20250413.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 (131) hide show
  1. package/README.md +5 -30
  2. package/cli.js +3 -4
  3. package/externs/browser/decorators.js +276 -0
  4. package/externs/browser/deprecated.js +58 -0
  5. package/externs/browser/es6_proxy.js +143 -0
  6. package/externs/browser/fetchapi.js +449 -0
  7. package/externs/browser/fido.js +94 -0
  8. package/externs/browser/flash.js +226 -0
  9. package/externs/browser/gecko_css.js +126 -0
  10. package/externs/browser/gecko_dom.js +479 -0
  11. package/externs/browser/gecko_event.js +86 -0
  12. package/externs/browser/gecko_xml.js +73 -0
  13. package/externs/browser/google_legacy.js +31 -0
  14. package/externs/browser/html5.js +6647 -0
  15. package/externs/browser/ie_css.js +270 -0
  16. package/externs/browser/ie_dom.js +1232 -0
  17. package/externs/browser/ie_event.js +310 -0
  18. package/externs/browser/ie_vml.js +77 -0
  19. package/externs/browser/intersection_observer.js +178 -0
  20. package/externs/browser/intl.js +602 -0
  21. package/externs/browser/iphone.js +204 -0
  22. package/externs/browser/mediakeys.js +305 -0
  23. package/externs/browser/mediasource.js +155 -0
  24. package/externs/browser/nonstandard_anim_timing.js +97 -0
  25. package/externs/browser/nonstandard_audio.js +82 -0
  26. package/externs/browser/nonstandard_console.js +75 -0
  27. package/externs/browser/nonstandard_fileapi.js +1066 -0
  28. package/externs/browser/nonstandard_indexeddb.js +78 -0
  29. package/externs/browser/nonstandard_navigation_timing.js +38 -0
  30. package/externs/browser/nonstandard_selection.js +80 -0
  31. package/externs/browser/page_visibility.js +28 -0
  32. package/externs/browser/streamsapi.js +593 -0
  33. package/externs/browser/svg.js +10016 -0
  34. package/externs/browser/url.js +202 -0
  35. package/externs/browser/v8.js +134 -0
  36. package/externs/browser/w3c_abort.js +89 -0
  37. package/externs/browser/w3c_anim_timing.js +49 -0
  38. package/externs/browser/w3c_aria_mixin.js +286 -0
  39. package/externs/browser/w3c_audio.js +1660 -0
  40. package/externs/browser/w3c_batterystatus.js +85 -0
  41. package/externs/browser/w3c_clipboard.js +74 -0
  42. package/externs/browser/w3c_clipboardevent.js +47 -0
  43. package/externs/browser/w3c_composition_event.js +93 -0
  44. package/externs/browser/w3c_css.js +3790 -0
  45. package/externs/browser/w3c_css3d.js +199 -0
  46. package/externs/browser/w3c_device_sensor_event.js +122 -0
  47. package/externs/browser/w3c_dom1.js +1160 -0
  48. package/externs/browser/w3c_dom2.js +3151 -0
  49. package/externs/browser/w3c_dom3.js +555 -0
  50. package/externs/browser/w3c_dom4.js +289 -0
  51. package/externs/browser/w3c_elementtraversal.js +116 -0
  52. package/externs/browser/w3c_event.js +607 -0
  53. package/externs/browser/w3c_event3.js +77 -0
  54. package/externs/browser/w3c_eventsource.js +110 -0
  55. package/externs/browser/w3c_fileapi.js +302 -0
  56. package/externs/browser/w3c_gamepad.js +113 -0
  57. package/externs/browser/w3c_geolocation.js +130 -0
  58. package/externs/browser/w3c_geometry1.js +899 -0
  59. package/externs/browser/w3c_indexeddb.js +771 -0
  60. package/externs/browser/w3c_keyboardlock.js +47 -0
  61. package/externs/browser/w3c_mediacapabilities.js +206 -0
  62. package/externs/browser/w3c_midi.js +301 -0
  63. package/externs/browser/w3c_navigation.js +72 -0
  64. package/externs/browser/w3c_navigation_timing.js +437 -0
  65. package/externs/browser/w3c_netinfo.js +85 -0
  66. package/externs/browser/w3c_payment_request.js +401 -0
  67. package/externs/browser/w3c_permissions.js +112 -0
  68. package/externs/browser/w3c_permissions_policy.js +78 -0
  69. package/externs/browser/w3c_pointer_events.js +163 -0
  70. package/externs/browser/w3c_pointerlock.js +63 -0
  71. package/externs/browser/w3c_range.js +284 -0
  72. package/externs/browser/w3c_referrer_policy.js +36 -0
  73. package/externs/browser/w3c_requestidlecallback.js +76 -0
  74. package/externs/browser/w3c_rtc.js +3882 -0
  75. package/externs/browser/w3c_screen_orientation.js +53 -0
  76. package/externs/browser/w3c_screen_wake_lock.js +58 -0
  77. package/externs/browser/w3c_selection.js +209 -0
  78. package/externs/browser/w3c_selectors.js +113 -0
  79. package/externs/browser/w3c_serviceworker.js +739 -0
  80. package/externs/browser/w3c_speech.js +426 -0
  81. package/externs/browser/w3c_touch_event.js +296 -0
  82. package/externs/browser/w3c_trusted_types.js +142 -0
  83. package/externs/browser/w3c_vibration.js +38 -0
  84. package/externs/browser/w3c_webcodecs.js +1473 -0
  85. package/externs/browser/w3c_webcrypto.js +839 -0
  86. package/externs/browser/w3c_worklets.js +54 -0
  87. package/externs/browser/w3c_xml.js +533 -0
  88. package/externs/browser/web_animations.js +452 -0
  89. package/externs/browser/web_app_manifest.js +50 -0
  90. package/externs/browser/webassembly.js +223 -0
  91. package/externs/browser/webgl.js +3409 -0
  92. package/externs/browser/webgl2.js +2727 -0
  93. package/externs/browser/webgl2_compute.js +1609 -0
  94. package/externs/browser/webkit_css.js +456 -0
  95. package/externs/browser/webkit_dom.js +118 -0
  96. package/externs/browser/webkit_event.js +46 -0
  97. package/externs/browser/webkit_notifications.js +258 -0
  98. package/externs/browser/webkit_usercontent.js +55 -0
  99. package/externs/browser/weblocksapi.js +125 -0
  100. package/externs/browser/webstorage.js +171 -0
  101. package/externs/browser/whatwg_bitmap_context.js +37 -0
  102. package/externs/browser/whatwg_console.js +152 -0
  103. package/externs/browser/whatwg_encoding.js +99 -0
  104. package/externs/browser/whatwg_file_system.js +296 -0
  105. package/externs/browser/wicg_attribution_reporting.js +42 -0
  106. package/externs/browser/wicg_compression_stream.js +60 -0
  107. package/externs/browser/wicg_constructable_stylesheets.js +60 -0
  108. package/externs/browser/wicg_entries.js +169 -0
  109. package/externs/browser/wicg_file_handling.js +41 -0
  110. package/externs/browser/wicg_file_system_access.js +191 -0
  111. package/externs/browser/wicg_floc.js +41 -0
  112. package/externs/browser/wicg_ink.js +89 -0
  113. package/externs/browser/wicg_resizeobserver.js +100 -0
  114. package/externs/browser/wicg_scheduler.js +62 -0
  115. package/externs/browser/wicg_trust_token.js +89 -0
  116. package/externs/browser/wicg_uach.js +100 -0
  117. package/externs/browser/window.js +190 -0
  118. package/externs/es3.js +2716 -0
  119. package/externs/es5.js +284 -0
  120. package/externs/es6.js +2554 -0
  121. package/externs/es6_collections.js +323 -0
  122. package/index.js +13 -16
  123. package/lib/grunt/index.js +71 -92
  124. package/lib/grunt/vinyl-stream.js +12 -18
  125. package/lib/gulp/concat-to-json.js +30 -18
  126. package/lib/gulp/index.js +174 -181
  127. package/lib/gulp/json-to-vinyl.js +8 -8
  128. package/lib/node/{closure-compiler.js → index.js} +27 -51
  129. package/lib/utils.js +16 -14
  130. package/package.json +19 -16
  131. package/lib/logger.js +0 -89
@@ -0,0 +1,142 @@
1
+ /*
2
+ * Copyright 2018 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 Definitions for W3C's Trusted Types specification.
19
+ * @see https://w3c.github.io/webappsec-trusted-types/dist/spec/
20
+ * @externs
21
+ */
22
+
23
+
24
+ /** @constructor */
25
+ function TrustedHTML() {}
26
+
27
+ // function TrustedScript() was moved to `es3.js` so that is could be used by
28
+ // `eval()`.
29
+
30
+ /** @constructor */
31
+ function TrustedScriptURL() {}
32
+
33
+
34
+ /**
35
+ * @template Options
36
+ * @constructor
37
+ */
38
+ function TrustedTypePolicy() {}
39
+
40
+ /**
41
+ * @param {string} s
42
+ * @param {...*} args
43
+ * @return {!TrustedHTML}
44
+ */
45
+ TrustedTypePolicy.prototype.createHTML = function(s, args) {};
46
+
47
+ /**
48
+ * @param {string} s
49
+ * @param {...*} args
50
+ * @return {!TrustedScript}
51
+ */
52
+ TrustedTypePolicy.prototype.createScript = function(s, args) {};
53
+
54
+ /**
55
+ * @param {string} s
56
+ * @param {...*} args
57
+ * @return {!TrustedScriptURL}
58
+ */
59
+ TrustedTypePolicy.prototype.createScriptURL = function(s, args) {};
60
+
61
+
62
+ /** @constructor */
63
+ function TrustedTypePolicyFactory() {}
64
+
65
+ /** @record @private */
66
+ function TrustedTypePolicyOptions() {};
67
+
68
+ /**
69
+ * @type {(function(string, ...*): string)|undefined},
70
+ */
71
+ TrustedTypePolicyOptions.prototype.createHTML;
72
+
73
+ /**
74
+ * @type {(function(string, ...*): string)|undefined},
75
+ */
76
+ TrustedTypePolicyOptions.prototype.createScript;
77
+
78
+ /**
79
+ * @type {(function(string, ...*): string)|undefined},
80
+ */
81
+ TrustedTypePolicyOptions.prototype.createScriptURL;
82
+
83
+
84
+ /**
85
+ * @param {string} name
86
+ * @param {!TrustedTypePolicyOptions} policy
87
+ * @return {!TrustedTypePolicy}
88
+ */
89
+ TrustedTypePolicyFactory.prototype.createPolicy = function(name, policy) {};
90
+
91
+
92
+ /**
93
+ * @param {*} obj
94
+ * @return {boolean}
95
+ */
96
+ TrustedTypePolicyFactory.prototype.isHTML = function(obj) {};
97
+
98
+ /**
99
+ * @param {*} obj
100
+ * @return {boolean}
101
+ */
102
+ TrustedTypePolicyFactory.prototype.isScript = function(obj) {};
103
+
104
+ /**
105
+ * @param {*} obj
106
+ * @return {boolean}
107
+ */
108
+ TrustedTypePolicyFactory.prototype.isScriptURL = function(obj) {};
109
+
110
+
111
+ /** @type {!TrustedHTML} */
112
+ TrustedTypePolicyFactory.prototype.emptyHTML;
113
+
114
+
115
+ /** @type {!TrustedScript} */
116
+ TrustedTypePolicyFactory.prototype.emptyScript;
117
+
118
+ /**
119
+ * @param {string} tagName
120
+ * @param {string} attribute
121
+ * @param {string=} elementNs
122
+ * @param {string=} attrNs
123
+ * @return {?string}
124
+ */
125
+ TrustedTypePolicyFactory.prototype.getAttributeType = function(
126
+ tagName, attribute, elementNs, attrNs) {};
127
+
128
+ /**
129
+ * @param {string} tagName
130
+ * @param {string} property
131
+ * @param {string=} elementNs
132
+ * @return {?string}
133
+ */
134
+ TrustedTypePolicyFactory.prototype.getPropertyType = function(
135
+ tagName, property, elementNs) {};
136
+
137
+ /** @type {?TrustedTypePolicy} */
138
+ TrustedTypePolicyFactory.prototype.defaultPolicy;
139
+
140
+
141
+ /** @type {!TrustedTypePolicyFactory} */
142
+ var trustedTypes;
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright 2017 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 Definitions for Vibration API based on "W3C Recommendation 18 October 2016"
19
+ * @see https://www.w3.org/TR/2016/REC-vibration-20161018/
20
+ *
21
+ * @externs
22
+ * @author vobruba.martin@gmail.com (Martin Vobruba)
23
+ */
24
+
25
+
26
+ /**
27
+ * @typedef {number|!Array<number>}
28
+ * @see https://www.w3.org/TR/2016/REC-vibration-20161018/#idl-def-vibratepattern
29
+ */
30
+ var VibratePattern;
31
+
32
+
33
+ /**
34
+ * @param {!VibratePattern} pattern
35
+ * @return {boolean}
36
+ * @see https://www.w3.org/TR/2016/REC-vibration-20161018/#idl-def-navigator-vibrate(vibratepattern)
37
+ */
38
+ Navigator.prototype.vibrate = function(pattern) {};