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 | 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 | 111 | o[k2] = m[k]; |
109 | } | |
112 | }); | |
110 | 113 | |
111 | 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 | 118 | export function __values(o) { |
@@ -190,11 +193,17 @@ | ||
190 | 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 | 202 | export function __importStar(mod) { |
194 | 203 | if (mod && mod.__esModule) return mod; |
195 | 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 | 207 | return result; |
199 | 208 | } |
200 | 209 |
@@ -12,7 +12,6 @@ | ||
12 | 12 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
13 | 13 | PERFORMANCE OF THIS SOFTWARE. |
14 | 14 | ***************************************************************************** */ |
15 | ||
16 | 15 | /* global global, define, System, Reflect, Promise */ |
17 | 16 | var __extends; |
18 | 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 | 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 | 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 | 158 | __values = function (o) { |
157 | 159 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; |
158 | 160 | if (m) return m.call(o); |
@@ -231,11 +233,17 @@ | ||
231 | 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 | 242 | __importStar = function (mod) { |
235 | 243 | if (mod && mod.__esModule) return mod; |
236 | 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 | 247 | return result; |
240 | 248 | }; |
241 | 249 |
@@ -34,4 +34,4 @@ | ||
34 | 34 | export declare function __importDefault<T>(mod: T): T | { default: T }; |
35 | 35 | export declare function __classPrivateFieldGet<T extends object, V>(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; |
36 | 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; |