typescript-src 1.0.0.0 → 1.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +2 -0
- data/Gemfile +4 -2
- data/Rakefile +20 -1
- data/lib/typescript-src/support/typescript/.npmignore +12 -0
- data/lib/typescript-src/support/typescript/CopyrightNotice.txt +15 -0
- data/lib/typescript-src/support/typescript/LICENSE.txt +55 -0
- data/lib/typescript-src/support/typescript/README.txt +27 -0
- data/lib/typescript-src/support/typescript/ThirdPartyNoticeText.txt +85 -0
- data/lib/{support → typescript-src/support/typescript/bin}/lib.d.ts +1 -1
- data/lib/{support → typescript-src/support/typescript/bin}/resources/cs/cz/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/cs/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/cz/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/de/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/en/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/en/us/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/es/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/fr/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/it/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/ja/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/ja/jp/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/ko/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/ko/kr/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/pl/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/pt/br/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/pt/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/ru/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/tr/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/zh/cn/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/resources/zh/tw/diagnosticMessages.generated.json +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/tsc +0 -0
- data/lib/{support → typescript-src/support/typescript/bin}/tsc.js +294 -154
- data/lib/{support → typescript-src/support/typescript/bin}/typescript.js +289 -152
- data/lib/typescript-src/support/typescript/package.json +61 -0
- data/lib/typescript-src.rb +37 -5
- data/test/test_type_script_src.rb +31 -0
- data/typescript-src.gemspec +20 -10
- metadata +60 -37
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZWU2ODdkMDYzODVhMDNkMGMyY2YyYzBhMWNhOThlOGIxN2E0OGFmNQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7c78e404a026a5709f2f75e20fe41519822675c2
|
4
|
+
data.tar.gz: 1cc6b74bd16f989d418e5cad0dfd8bae6abf6a79
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YzI5MmY2MmQyY2I4ZTA3ZDljMmFjMTM2OTRiZWVlYTc4NzcxOGFiZGJjZWFl
|
11
|
-
M2Q0YzdiYzExODM0MTlkZTg4ZDNkOTMzZGJjZGRiZGVjZWFlMTQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MTg4YzBlZGFiYjZlNmZjY2E2MWRiZjI5N2NlYWNkYjk0ZWQ5YzIwMjYyNjAz
|
14
|
-
OGVmYWYwYWI1ODhkZDI4ZTQzYTBkZTRkMmU0YmE3OGZmOGI4MjgwYzMxMTdl
|
15
|
-
Y2QzN2IwNDM1OWMyOTczMTdmNTYyMGIwZDg2MGRkN2I4ZmI1ZmQ=
|
6
|
+
metadata.gz: e405aa3536632515232a70395ea77db3b9b1738b7b20dfa4d92a02230a4acc2cd9f9b46dd8bc15efaa70f021539fab5126de54700bffd9f772bed2a4a945c96c
|
7
|
+
data.tar.gz: cc61307b237151ee46ccee034fb72c6fa75d9829cb38f93d9e2052177e27df1bf6d116952e36ed34b583b1f3c092f9df4f8d0b806ebc963bb45ad01acad01e30
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,2 +1,21 @@
|
|
1
1
|
#!/usr/bin/env rake
|
2
|
-
require
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'rake/testtask'
|
4
|
+
|
5
|
+
desc 'download the latest TypeScript source files'
|
6
|
+
task 'typescript:download' do
|
7
|
+
sh 'npm', 'install', '-g', 'typescript'
|
8
|
+
end
|
9
|
+
|
10
|
+
desc 'upgrade TypeScript source files'
|
11
|
+
task 'typescript:upgrade' => %i(typescript:download) do
|
12
|
+
mv 'node_modules/typescript', 'lib/support'
|
13
|
+
end
|
14
|
+
|
15
|
+
Rake::TestTask.new do |test|
|
16
|
+
test.libs << "test"
|
17
|
+
test.test_files = FileList['test/test*.rb']
|
18
|
+
test.verbose = true
|
19
|
+
end
|
20
|
+
|
21
|
+
task :default => :test
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*! *****************************************************************************
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
|
+
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
13
|
+
and limitations under the License.
|
14
|
+
***************************************************************************** */
|
15
|
+
|
@@ -0,0 +1,55 @@
|
|
1
|
+
Apache License
|
2
|
+
|
3
|
+
Version 2.0, January 2004
|
4
|
+
|
5
|
+
http://www.apache.org/licenses/
|
6
|
+
|
7
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
8
|
+
|
9
|
+
1. Definitions.
|
10
|
+
|
11
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
16
|
+
|
17
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
18
|
+
|
19
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
20
|
+
|
21
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
22
|
+
|
23
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
24
|
+
|
25
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
26
|
+
|
27
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
28
|
+
|
29
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
30
|
+
|
31
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
32
|
+
|
33
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
34
|
+
|
35
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
36
|
+
|
37
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
38
|
+
|
39
|
+
You must cause any modified files to carry prominent notices stating that You changed the files; and
|
40
|
+
|
41
|
+
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
42
|
+
|
43
|
+
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
44
|
+
|
45
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
46
|
+
|
47
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
48
|
+
|
49
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
50
|
+
|
51
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
52
|
+
|
53
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
54
|
+
|
55
|
+
END OF TERMS AND CONDITIONS
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# TypeScript
|
2
|
+
|
3
|
+
Scalable JavaScript development with types, classes and modules.
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
npm install -g typescript
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
tsc hello.ts
|
12
|
+
|
13
|
+
|
14
|
+
## Build
|
15
|
+
|
16
|
+
1. Install Node if you haven't already (http://nodejs.org/)
|
17
|
+
2. Install Jake, the tool we use to build our compiler (https://github.com/mde/jake). To do this, run "npm install -g jake".
|
18
|
+
3. To use jake, run one of the following commands:
|
19
|
+
- jake local - This builds the compiler. The output is in built/local in the public directory
|
20
|
+
- jake clean - deletes the build compiler
|
21
|
+
- jake LKG - This replaces the LKG (last known good) version of the compiler with the built one.
|
22
|
+
- This is a bootstrapping step to be executed whenever the built compiler reaches a stable state.
|
23
|
+
- jake tests - This builds the test infrastructure, using the built compiler.
|
24
|
+
- jake runtests - This runs the tests, using the built compiler and built test infrastructure.
|
25
|
+
- You can also override the host or specify a test for this command. Use host=<hostName> or tests=<testPath>.
|
26
|
+
- jake baseline-accept - This replaces the baseline test results with the results obtained from jake runtests.
|
27
|
+
- jake -T lists the above commands.
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/*!----------------- TypeScript ThirdPartyNotices -------------------------------------------------------
|
2
|
+
|
3
|
+
The TypeScript software is based on or incorporates material and code from the projects listed below
|
4
|
+
(collectively "Third Party Code"). Microsoft is not the original author of the
|
5
|
+
Third Party Code. The original copyright notice and the license, under which
|
6
|
+
Microsoft received such Third Party Code, are set forth below. Such license and
|
7
|
+
notices are provided for informational purposes only. Microsoft licenses the Third
|
8
|
+
Party Code to you under the terms of the Apache 2.0 License.
|
9
|
+
All Third Party Code licensed by Microsoft under the Apache License, Version 2.0 (the "License"); you
|
10
|
+
may not use this file except in compliance with the License. You may obtain a copy
|
11
|
+
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
|
13
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
14
|
+
EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR
|
15
|
+
CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
|
16
|
+
|
17
|
+
See the Apache Version 2.0 License for specific language governing permissions and
|
18
|
+
limitations under the License.
|
19
|
+
---------------------------------------------
|
20
|
+
Third Party Code Components
|
21
|
+
--------------------------------------------
|
22
|
+
---- Mozilla Developer Code---------
|
23
|
+
The following Mozilla Developer Code is under Public Domain as updated after Aug. 20, 2012, see, https://developer.mozilla.org/en-US/docs/Project:Copyrights
|
24
|
+
1. Array filter Compatibility Method,
|
25
|
+
Available at https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/filter
|
26
|
+
Any copyright is dedicated to the Public Domain.
|
27
|
+
|
28
|
+
2. Array forEach Compatibility Method,
|
29
|
+
Available at https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/forEach
|
30
|
+
Any copyright is dedicated to the Public Domain.
|
31
|
+
|
32
|
+
3. Array indexOf Compatibility Method,
|
33
|
+
Available at https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf
|
34
|
+
Any copyright is dedicated to the Public Domain.
|
35
|
+
|
36
|
+
4. Array map Compatibility Method,
|
37
|
+
Available at https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/map
|
38
|
+
Any copyright is dedicated to the Public Domain.
|
39
|
+
|
40
|
+
5. Array Reduce Compatibility Method,
|
41
|
+
Available at https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/Reduce
|
42
|
+
Any copyright is dedicated to the Public Domain.
|
43
|
+
|
44
|
+
6. String Trim Compatibility Method,
|
45
|
+
Available at https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/Trim
|
46
|
+
Any copyright is dedicated to the Public Domain.
|
47
|
+
|
48
|
+
7. Date now Compatibility Method,
|
49
|
+
Available at https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/now
|
50
|
+
Any copyright is dedicated to the Public Domain.
|
51
|
+
|
52
|
+
------------JSON2 Script------------------------
|
53
|
+
json2.js 2012-10-08
|
54
|
+
Public Domain.
|
55
|
+
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
|
56
|
+
See, http://www.JSON.org/js.html
|
57
|
+
|
58
|
+
--------------r.js----------------------
|
59
|
+
Copyright (c) 2010-2011 Dojo Foundation. All Rights Reserved.
|
60
|
+
Originally License under MIT License
|
61
|
+
-------------------------------------------------------------------------
|
62
|
+
Provided for Informational Purposes Only
|
63
|
+
MIT License
|
64
|
+
|
65
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
66
|
+
a copy of this software and associated documentation files (the
|
67
|
+
"Software"), to deal in the Software without restriction, including
|
68
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
69
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
70
|
+
permit persons to whom the Software is furnished to do so, subject to
|
71
|
+
the following conditions:
|
72
|
+
|
73
|
+
The above copyright notice and this permission notice shall be
|
74
|
+
included in all copies or substantial portions of the Software.
|
75
|
+
|
76
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
77
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
78
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
79
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
80
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
81
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
82
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
83
|
+
--------------------------------------------------------------------------------------
|
84
|
+
|
85
|
+
------------- End of ThirdPartyNotices --------------------------------------------------- */
|
@@ -12174,7 +12174,7 @@ interface MutationObserver {
|
|
12174
12174
|
}
|
12175
12175
|
declare var MutationObserver: {
|
12176
12176
|
prototype: MutationObserver;
|
12177
|
-
new (): MutationObserver;
|
12177
|
+
new (callback: (arr: MutationRecord[], observer: MutationObserver)=>any): MutationObserver;
|
12178
12178
|
}
|
12179
12179
|
|
12180
12180
|
interface AudioTrackList {
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|