From ce3462e9da1da80ef7884b94c611998eaa833f33 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 13 May 2020 15:47:46 -0700 Subject: [PATCH] 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);