From 9c92f5868091e61f4e4b167c117a76e45c095c7f Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 25 Feb 2020 18:01:37 -0800 Subject: [PATCH 01/22] Remove reference to WeakMap from tslib.d.ts Unfortunately, `WeakMap` may not be declared when using tslib with a project that has `"lib": ["es5"]` set. --- tslib.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tslib.d.ts b/tslib.d.ts index caed5d7..44df07a 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -32,5 +32,5 @@ export declare function __asyncValues(o: any): any; export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: WeakMap): V; -export declare function __classPrivateFieldSet(receiver: T, privateMap: WeakMap, value: V): V; +export declare function __classPrivateFieldGet(receiver: object, privateMap: object): any; +export declare function __classPrivateFieldSet(receiver: object, privateMap: object, value: any): any; From b75bff8b05f68c13a5dbc11d4260e5a9691c425d Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 25 Feb 2020 18:05:48 -0800 Subject: [PATCH 02/22] Restore minimal type safety using a type literal --- tslib.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tslib.d.ts b/tslib.d.ts index 44df07a..1e0d500 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -32,5 +32,5 @@ export declare function __asyncValues(o: any): any; export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: object, privateMap: object): any; -export declare function __classPrivateFieldSet(receiver: object, privateMap: object, value: any): any; +export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V }): V; +export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; From 418ee9c7f626e154ea31bfe5b6ce927d7406b9bf Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 25 Feb 2020 18:08:44 -0800 Subject: [PATCH 03/22] Fix return type of 'get' --- tslib.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tslib.d.ts b/tslib.d.ts index 1e0d500..fbfded6 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -32,5 +32,5 @@ export declare function __asyncValues(o: any): any; export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V }): V; +export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; From c1f87f79190d61e1e4ca24af03894771cdf1aef9 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 26 Feb 2020 10:49:40 -0800 Subject: [PATCH 04/22] Update version to '1.11.1'. --- README.md | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 029bd51..a6b55e7 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ For JSPM users: "importHelpers": true, "baseUrl": "./", "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.11.0/tslib.d.ts"] + "tslib" : ["jspm_packages/npm/tslib@1.11.1/tslib.d.ts"] } } } diff --git a/bower.json b/bower.json index 391f368..ab3c4f5 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "Microsoft Corp." ], "homepage": "http://typescriptlang.org/", - "version": "1.11.0", + "version": "1.11.1", "license": "Apache-2.0", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/package.json b/package.json index da0223e..7d3b98c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tslib", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "1.11.0", + "version": "1.11.1", "license": "Apache-2.0", "description": "Runtime library for TypeScript helper functions", "keywords": [ From 11b9a947a793a4125f1edb08dd9b81d8658d3de7 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Thu, 16 Apr 2020 15:24:59 -0700 Subject: [PATCH 05/22] Switch to the Zero-Clause BSD license. --- CopyrightNotice.txt | 24 ++++++++--------- LICENSE.txt | 63 +++++++-------------------------------------- bower.json | 2 +- package.json | 2 +- tslib.d.ts | 18 ++++++------- tslib.es6.js | 18 ++++++------- tslib.js | 18 ++++++------- 7 files changed, 51 insertions(+), 94 deletions(-) diff --git a/CopyrightNotice.txt b/CopyrightNotice.txt index 0f6db1f..3f2bb12 100644 --- a/CopyrightNotice.txt +++ b/CopyrightNotice.txt @@ -1,15 +1,15 @@ /*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ diff --git a/LICENSE.txt b/LICENSE.txt index 8746124..5834b61 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,55 +1,12 @@ -Apache License +Copyright (c) Microsoft Corporation. All rights reserved. -Version 2.0, January 2004 +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"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. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"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. - -"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). - -"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. - -"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." - -"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. - -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. - -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. - -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: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and - -You must cause any modified files to carry prominent notices stating that You changed the files; and - -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 - -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. - -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. - -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. - -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. - -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. - -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. - -END OF TERMS AND CONDITIONS +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/bower.json b/bower.json index ab3c4f5..434c224 100644 --- a/bower.json +++ b/bower.json @@ -5,7 +5,7 @@ ], "homepage": "http://typescriptlang.org/", "version": "1.11.1", - "license": "Apache-2.0", + "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ "TypeScript", diff --git a/package.json b/package.json index 7d3b98c..07231b0 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", "version": "1.11.1", - "license": "Apache-2.0", + "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ "TypeScript", diff --git a/tslib.d.ts b/tslib.d.ts index fbfded6..67ade80 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -1,16 +1,16 @@ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ export declare function __extends(d: Function, b: Function): void; export declare function __assign(t: any, ...sources: any[]): any; diff --git a/tslib.es6.js b/tslib.es6.js index 4d84182..8544f01 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -1,16 +1,16 @@ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ diff --git a/tslib.js b/tslib.js index 459b59e..b24a7a4 100644 --- a/tslib.js +++ b/tslib.js @@ -1,16 +1,16 @@ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. -Licensed under the Apache License, Version 2.0 (the "License"); you may not use -this file except in compliance with the License. You may obtain a copy of the -License at http://www.apache.org/licenses/LICENSE-2.0 -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global global, define, System, Reflect, Promise */ var __extends; From 74f1ff794985b33657b599b611e82937e3074617 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 21 Apr 2020 16:54:49 -0700 Subject: [PATCH 06/22] Don't be so reserved about a relicense. --- CopyrightNotice.txt | 2 +- LICENSE.txt | 2 +- tslib.d.ts | 2 +- tslib.es6.js | 2 +- tslib.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CopyrightNotice.txt b/CopyrightNotice.txt index 3f2bb12..3d4c823 100644 --- a/CopyrightNotice.txt +++ b/CopyrightNotice.txt @@ -1,5 +1,5 @@ /*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. diff --git a/LICENSE.txt b/LICENSE.txt index 5834b61..bfe6430 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. diff --git a/tslib.d.ts b/tslib.d.ts index 67ade80..6310fbf 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -1,5 +1,5 @@ /*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. diff --git a/tslib.es6.js b/tslib.es6.js index 8544f01..1b8c2b3 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -1,5 +1,5 @@ /*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. diff --git a/tslib.js b/tslib.js index b24a7a4..5136250 100644 --- a/tslib.js +++ b/tslib.js @@ -1,5 +1,5 @@ /*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. +Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. From 3d93421d7be470d614f527ff207d47559c859510 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 5 May 2020 16:05:44 -0700 Subject: [PATCH 07/22] Update version to '1.11.2'. --- README.md | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6b55e7..44270f8 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ For JSPM users: "importHelpers": true, "baseUrl": "./", "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.11.1/tslib.d.ts"] + "tslib" : ["jspm_packages/npm/tslib@1.11.2/tslib.d.ts"] } } } diff --git a/bower.json b/bower.json index 434c224..a5be36a 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "Microsoft Corp." ], "homepage": "http://typescriptlang.org/", - "version": "1.11.1", + "version": "1.11.2", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/package.json b/package.json index 07231b0..0bbf47a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tslib", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "1.11.1", + "version": "1.11.2", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ From 6975099433525714b720a1c267d25614f487a3ac Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Tue, 5 May 2020 16:56:07 -0700 Subject: [PATCH 08/22] Update helpers for TS 3.9 (#99) --- tslib.d.ts | 1 + tslib.es6.js | 20 +++++++++++++++++--- tslib.js | 26 +++++++++++++++++++++----- 3 files changed, 39 insertions(+), 8 deletions(-) diff --git a/tslib.d.ts b/tslib.d.ts index 6310fbf..7c6a706 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -34,3 +34,4 @@ export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; +export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey); \ No newline at end of file diff --git a/tslib.es6.js b/tslib.es6.js index 1b8c2b3..ce26163 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -103,8 +103,16 @@ export function __generator(thisArg, body) { } } +export const __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +}); + export function __exportStar(m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); } export function __values(o) { @@ -185,11 +193,17 @@ export function __makeTemplateObject(cooked, raw) { return cooked; }; +const __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}; + export function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; } diff --git a/tslib.js b/tslib.js index 5136250..b79d531 100644 --- a/tslib.js +++ b/tslib.js @@ -35,6 +35,7 @@ var __importStar; var __importDefault; var __classPrivateFieldGet; var __classPrivateFieldSet; +var __createBinding; (function (factory) { var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; if (typeof define === "function" && define.amd) { @@ -142,9 +143,17 @@ var __classPrivateFieldSet; } }; - __exportStar = function (m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; - }; + __exportStar = function(m, exports) { + for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); + } + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); __values = function (o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; @@ -224,11 +233,17 @@ var __classPrivateFieldSet; return cooked; }; + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + __importStar = function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; @@ -260,6 +275,7 @@ var __classPrivateFieldSet; exporter("__awaiter", __awaiter); exporter("__generator", __generator); exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); From f283e5ceb1415e9deff61755abce0a4d2b504add Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 6 May 2020 13:37:15 -0700 Subject: [PATCH 09/22] Add :void --- tslib.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tslib.d.ts b/tslib.d.ts index 7c6a706..57ad995 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -34,4 +34,4 @@ export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey); \ No newline at end of file +export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; From b6c00205f8ffca59d44607984ea49f2c788d2aa5 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 6 May 2020 16:08:42 -0700 Subject: [PATCH 10/22] Remove links to spec from README --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 44270f8..d676096 100644 --- a/README.md +++ b/README.md @@ -134,11 +134,9 @@ There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob * Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). * Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. * [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). -* Read the language specification ([docx](http://go.microsoft.com/fwlink/?LinkId=267121), [pdf](http://go.microsoft.com/fwlink/?LinkId=267238)). # Documentation * [Quick tutorial](http://www.typescriptlang.org/Tutorial) * [Programming handbook](http://www.typescriptlang.org/Handbook) -* [Language specification](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md) * [Homepage](http://www.typescriptlang.org/) From 21f15b1fcf6bd5c029dda4382910af69f59cf756 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 12 May 2020 19:30:34 +0200 Subject: [PATCH 11/22] fix: add missing semi colons after method names See: https://github.com/microsoft/TypeScript/issues/38501 --- tslib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tslib.js b/tslib.js index b79d531..50dc71c 100644 --- a/tslib.js +++ b/tslib.js @@ -145,7 +145,7 @@ var __createBinding; __exportStar = function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); - } + }; __createBinding = Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; @@ -264,7 +264,7 @@ var __createBinding; } privateMap.set(receiver, value); return value; - } + }; exporter("__extends", __extends); exporter("__assign", __assign); From 3a2181005919fe65dc68b3407937eea60e04e753 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 12 May 2020 11:03:54 -0700 Subject: [PATCH 12/22] Update version to '1.12.0'. --- README.md | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d676096..b650737 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ For JSPM users: "importHelpers": true, "baseUrl": "./", "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.11.2/tslib.d.ts"] + "tslib" : ["jspm_packages/npm/tslib@1.11.3/tslib.d.ts"] } } } diff --git a/bower.json b/bower.json index a5be36a..b0363e0 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "Microsoft Corp." ], "homepage": "http://typescriptlang.org/", - "version": "1.11.2", + "version": "1.12.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/package.json b/package.json index 0bbf47a..d2edd79 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tslib", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "1.11.2", + "version": "1.12.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ From 835bc74c8d7d49a341efe4073375a2107bc5d42e Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 12 May 2020 11:44:18 -0700 Subject: [PATCH 13/22] Fix up version number in README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b650737..c14f87c 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ For JSPM users: "importHelpers": true, "baseUrl": "./", "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.11.3/tslib.d.ts"] + "tslib" : ["jspm_packages/npm/tslib@1.12.0/tslib.d.ts"] } } } From 12fca3bb5aa4a500d287621856a674379ed599dc Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 12:29:03 -0700 Subject: [PATCH 14/22] Revert changes to pre-3.9 behavior. --- tslib.d.ts | 1 - tslib.es6.js | 20 +++----------------- tslib.js | 26 +++++--------------------- 3 files changed, 8 insertions(+), 39 deletions(-) diff --git a/tslib.d.ts b/tslib.d.ts index 57ad995..6310fbf 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -34,4 +34,3 @@ export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; diff --git a/tslib.es6.js b/tslib.es6.js index ce26163..1b8c2b3 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -103,16 +103,8 @@ export function __generator(thisArg, body) { } } -export const __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -}); - export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } export function __values(o) { @@ -193,17 +185,11 @@ export function __makeTemplateObject(cooked, raw) { return cooked; }; -const __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}; - export function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result.default = mod; return result; } diff --git a/tslib.js b/tslib.js index 50dc71c..5136250 100644 --- a/tslib.js +++ b/tslib.js @@ -35,7 +35,6 @@ var __importStar; var __importDefault; var __classPrivateFieldGet; var __classPrivateFieldSet; -var __createBinding; (function (factory) { var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; if (typeof define === "function" && define.amd) { @@ -143,18 +142,10 @@ var __createBinding; } }; - __exportStar = function(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); + __exportStar = function (m, exports) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; }; - __createBinding = Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }); - __values = function (o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); @@ -233,17 +224,11 @@ var __createBinding; return cooked; }; - var __setModuleDefault = Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - }; - __importStar = function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; return result; }; @@ -264,7 +249,7 @@ var __createBinding; } privateMap.set(receiver, value); return value; - }; + } exporter("__extends", __extends); exporter("__assign", __assign); @@ -275,7 +260,6 @@ var __createBinding; exporter("__awaiter", __awaiter); exporter("__generator", __generator); exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); From e6dc41c6d73ee6aa45306682cbd07b941f09aea9 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 12:29:49 -0700 Subject: [PATCH 15/22] Update version number. --- README.md | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c14f87c..2038cf9 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ For JSPM users: "importHelpers": true, "baseUrl": "./", "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.12.0/tslib.d.ts"] + "tslib" : ["jspm_packages/npm/tslib@1.13.0/tslib.d.ts"] } } } diff --git a/bower.json b/bower.json index b0363e0..dd46530 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "Microsoft Corp." ], "homepage": "http://typescriptlang.org/", - "version": "1.12.0", + "version": "1.13.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/package.json b/package.json index d2edd79..72a6455 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tslib", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "1.12.0", + "version": "1.13.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ From ce3462e9da1da80ef7884b94c611998eaa833f33 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 15:47:46 -0700 Subject: [PATCH 16/22] Re-add '__createBinding'. --- tslib.d.ts | 1 + tslib.es6.js | 5 +++++ tslib.js | 8 ++++++++ 3 files changed, 14 insertions(+) diff --git a/tslib.d.ts b/tslib.d.ts index 6310fbf..0756b28 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -34,3 +34,4 @@ export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; +export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file diff --git a/tslib.es6.js b/tslib.es6.js index 1b8c2b3..02484cb 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -103,6 +103,11 @@ export function __generator(thisArg, body) { } } +export function __createBinding(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +} + export function __exportStar(m, exports) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } diff --git a/tslib.js b/tslib.js index 5136250..f89909f 100644 --- a/tslib.js +++ b/tslib.js @@ -12,6 +12,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ + /* global global, define, System, Reflect, Promise */ var __extends; var __assign; @@ -35,6 +36,7 @@ var __importStar; var __importDefault; var __classPrivateFieldGet; var __classPrivateFieldSet; +var __createBinding; (function (factory) { var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; if (typeof define === "function" && define.amd) { @@ -142,6 +144,11 @@ var __classPrivateFieldSet; } }; + __createBinding = function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }; + __exportStar = function (m, exports) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; }; @@ -260,6 +267,7 @@ var __classPrivateFieldSet; exporter("__awaiter", __awaiter); exporter("__generator", __generator); exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); exporter("__values", __values); exporter("__read", __read); exporter("__spread", __spread); From 0587b2af6880b43523de666d553bb81f13d049da Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 15:50:35 -0700 Subject: [PATCH 17/22] Add back 'p !== default' --- tslib.es6.js | 2 +- tslib.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tslib.es6.js b/tslib.es6.js index 02484cb..0e0d8d0 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -109,7 +109,7 @@ export function __createBinding(o, m, k, k2) { } export function __exportStar(m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; } export function __values(o) { diff --git a/tslib.js b/tslib.js index f89909f..18aa189 100644 --- a/tslib.js +++ b/tslib.js @@ -150,7 +150,7 @@ var __createBinding; }; __exportStar = function (m, exports) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; }; __values = function (o) { From 7b69d91f43032526bfa17a5292f0086ff3d7281c Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 15:52:14 -0700 Subject: [PATCH 18/22] Semicolon --- tslib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tslib.js b/tslib.js index 18aa189..e5b7c9b 100644 --- a/tslib.js +++ b/tslib.js @@ -256,7 +256,7 @@ var __createBinding; } privateMap.set(receiver, value); return value; - } + }; exporter("__extends", __extends); exporter("__assign", __assign); From 1a9d7477f357fe7ee043e6cdd47a72034b816d56 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 16:01:46 -0700 Subject: [PATCH 19/22] Revert "Revert changes to pre-3.9 behavior, update version to 1.13.0" --- README.md | 2 +- bower.json | 2 +- package.json | 2 +- tslib.d.ts | 2 +- tslib.es6.js | 19 ++++++++++++++----- tslib.js | 26 +++++++++++++++++--------- 6 files changed, 35 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 2038cf9..c14f87c 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ For JSPM users: "importHelpers": true, "baseUrl": "./", "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.13.0/tslib.d.ts"] + "tslib" : ["jspm_packages/npm/tslib@1.12.0/tslib.d.ts"] } } } diff --git a/bower.json b/bower.json index dd46530..b0363e0 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "Microsoft Corp." ], "homepage": "http://typescriptlang.org/", - "version": "1.13.0", + "version": "1.12.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/package.json b/package.json index 72a6455..d2edd79 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tslib", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "1.13.0", + "version": "1.12.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/tslib.d.ts b/tslib.d.ts index 0756b28..57ad995 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -34,4 +34,4 @@ export declare function __importStar(mod: T): T; export declare function __importDefault(mod: T): T | { default: T }; export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file +export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; diff --git a/tslib.es6.js b/tslib.es6.js index 0e0d8d0..ce26163 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -103,13 +103,16 @@ export function __generator(thisArg, body) { } } -export function __createBinding(o, m, k, k2) { +export const __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; -} +}); export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; + for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); } export function __values(o) { @@ -190,11 +193,17 @@ export function __makeTemplateObject(cooked, raw) { return cooked; }; +const __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}; + export function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; } diff --git a/tslib.js b/tslib.js index e5b7c9b..50dc71c 100644 --- a/tslib.js +++ b/tslib.js @@ -12,7 +12,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ - /* global global, define, System, Reflect, Promise */ var __extends; var __assign; @@ -144,14 +143,17 @@ var __createBinding; } }; - __createBinding = function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; + __exportStar = function(m, exports) { + for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; - __exportStar = function (m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; - }; + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); __values = function (o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; @@ -231,11 +233,17 @@ var __createBinding; return cooked; }; + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + __importStar = function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; From fa5c8a0b7641914313bf1f12bc37b13f68a5f395 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 16:04:21 -0700 Subject: [PATCH 20/22] Switch from const to var --- tslib.es6.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tslib.es6.js b/tslib.es6.js index ce26163..2c2ddf5 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -103,7 +103,7 @@ export function __generator(thisArg, body) { } } -export const __createBinding = Object.create ? (function(o, m, k, k2) { +export var __createBinding = Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { @@ -193,7 +193,7 @@ export function __makeTemplateObject(cooked, raw) { return cooked; }; -const __setModuleDefault = Object.create ? (function(o, v) { +var __setModuleDefault = Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; From 19e3f350152194d462c29579f4cf60eb6d3ff164 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 16:04:32 -0700 Subject: [PATCH 21/22] Switch to 2.0.0 --- README.md | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c14f87c..4f24d79 100644 --- a/README.md +++ b/README.md @@ -118,7 +118,7 @@ For JSPM users: "importHelpers": true, "baseUrl": "./", "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.12.0/tslib.d.ts"] + "tslib" : ["jspm_packages/npm/tslib@2.0.0/tslib.d.ts"] } } } diff --git a/bower.json b/bower.json index b0363e0..0486279 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "Microsoft Corp." ], "homepage": "http://typescriptlang.org/", - "version": "1.12.0", + "version": "2.0.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ diff --git a/package.json b/package.json index d2edd79..76d8726 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "tslib", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "1.12.0", + "version": "2.0.0", "license": "0BSD", "description": "Runtime library for TypeScript helper functions", "keywords": [ From 6934962c893bafd1292e9855a0c63613120b33da Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 27 May 2020 10:20:37 -0700 Subject: [PATCH 22/22] Skip default when initially iterating exports in __importStar, same as __exportStar --- tslib.es6.js | 2 +- tslib.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tslib.es6.js b/tslib.es6.js index 2c2ddf5..50cb804 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -202,7 +202,7 @@ var __setModuleDefault = Object.create ? (function(o, v) { export function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; } diff --git a/tslib.js b/tslib.js index 50dc71c..91230dd 100644 --- a/tslib.js +++ b/tslib.js @@ -242,7 +242,7 @@ var __createBinding; __importStar = function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; };