Comparing
tslib@1.13.0
...
tslib@2.0.0
files: **/!(*.map|*.min.js)
@@ -103,13 +103,16 @@ | |||
103 | } | 103 | } |
104 | } | 104 | } |
105 | 105 | ||
106 | export function __createBinding(o, m, k, k2) { | 106 | export var __createBinding = Object.create ? (function(o, m, k, k2) { |
107 | if (k2 === undefined) k2 = k; | 107 | if (k2 === undefined) k2 = k; |
108 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
109 | }) : (function(o, m, k, k2) { | ||
110 | if (k2 === undefined) k2 = k; | ||
108 | o[k2] = m[k]; | 111 | o[k2] = m[k]; |
109 | } | 112 | }); |
110 | 113 | ||
111 | export function __exportStar(m, exports) { | 114 | export function __exportStar(m, exports) { |
112 | for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; | 115 | for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); |
113 | } | 116 | } |
114 | 117 | ||
115 | export function __values(o) { | 118 | export function __values(o) { |
@@ -190,11 +193,17 @@ | |||
190 | return cooked; | 193 | return cooked; |
191 | }; | 194 | }; |
192 | 195 | ||
196 | var __setModuleDefault = Object.create ? (function(o, v) { | ||
197 | Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
198 | }) : function(o, v) { | ||
199 | o["default"] = v; | ||
200 | }; | ||
201 | |||
193 | export function __importStar(mod) { | 202 | export function __importStar(mod) { |
194 | if (mod && mod.__esModule) return mod; | 203 | if (mod && mod.__esModule) return mod; |
195 | var result = {}; | 204 | var result = {}; |
196 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
197 | result.default = mod; | 205 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
206 | __setModuleDefault(result, mod); | ||
198 | return result; | 207 | return result; |
199 | } | 208 | } |
200 | 209 |
@@ -12,7 +12,6 @@ | |||
12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | 12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
13 | PERFORMANCE OF THIS SOFTWARE. | 13 | PERFORMANCE OF THIS SOFTWARE. |
14 | ***************************************************************************** */ | 14 | ***************************************************************************** */ |
15 | |||
16 | /* global global, define, System, Reflect, Promise */ | 15 | /* global global, define, System, Reflect, Promise */ |
17 | var __extends; | 16 | var __extends; |
18 | var __assign; | 17 | var __assign; |
@@ -144,15 +143,18 @@ | |||
144 | } | 143 | } |
145 | }; | 144 | }; |
146 | 145 | ||
147 | __createBinding = function(o, m, k, k2) { | 146 | __exportStar = function(m, exports) { |
147 | for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
148 | }; | ||
149 | |||
150 | __createBinding = Object.create ? (function(o, m, k, k2) { | ||
148 | if (k2 === undefined) k2 = k; | 151 | if (k2 === undefined) k2 = k; |
152 | Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
153 | }) : (function(o, m, k, k2) { | ||
154 | if (k2 === undefined) k2 = k; | ||
149 | o[k2] = m[k]; | 155 | o[k2] = m[k]; |
150 | }; | 156 | }); |
151 | 157 | ||
152 | __exportStar = function (m, exports) { | ||
153 | for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
154 | }; | ||
155 | |||
156 | __values = function (o) { | 158 | __values = function (o) { |
157 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | 159 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; |
158 | if (m) return m.call(o); | 160 | if (m) return m.call(o); |
@@ -231,11 +233,17 @@ | |||
231 | return cooked; | 233 | return cooked; |
232 | }; | 234 | }; |
233 | 235 | ||
236 | var __setModuleDefault = Object.create ? (function(o, v) { | ||
237 | Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
238 | }) : function(o, v) { | ||
239 | o["default"] = v; | ||
240 | }; | ||
241 | |||
234 | __importStar = function (mod) { | 242 | __importStar = function (mod) { |
235 | if (mod && mod.__esModule) return mod; | 243 | if (mod && mod.__esModule) return mod; |
236 | var result = {}; | 244 | var result = {}; |
237 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
238 | result["default"] = mod; | 245 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); |
246 | __setModuleDefault(result, mod); | ||
239 | return result; | 247 | return result; |
240 | }; | 248 | }; |
241 | 249 |
@@ -2,7 +2,7 @@ | |||
2 | "name": "tslib", | 2 | "name": "tslib", |
3 | "author": "Microsoft Corp.", | 3 | "author": "Microsoft Corp.", |
4 | "homepage": "https://www.typescriptlang.org/", | 4 | "homepage": "https://www.typescriptlang.org/", |
5 | "version": "1.13.0", | 5 | "version": "2.0.0", |
6 | "license": "0BSD", | 6 | "license": "0BSD", |
7 | "description": "Runtime library for TypeScript helper functions", | 7 | "description": "Runtime library for TypeScript helper functions", |
8 | "keywords": [ | 8 | "keywords": [ |
@@ -34,4 +34,4 @@ | |||
34 | export declare function __importDefault<T>(mod: T): T | { default: T }; | 34 | export declare function __importDefault<T>(mod: T): T | { default: T }; |
35 | export declare function __classPrivateFieldGet<T extends object, V>(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; | 35 | export declare function __classPrivateFieldGet<T extends object, V>(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; |
36 | export declare function __classPrivateFieldSet<T extends object, V>(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; | 36 | export declare function __classPrivateFieldSet<T extends object, V>(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; |
37 | export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; | 37 | export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; |