| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c3fabd6 commit 1232d1e
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ | |||
| 39 | 39 | "shelljs": "^0.7.0", | |
| 40 | 40 | "source-map-support": "^0.4.17", | |
| 41 | 41 | "time-grunt": "1.3.0", | |
| 42 | - "tslib": "^1.7.1", | ||
| 42 | + "tslib": "^1.9.3", | ||
| 43 | 43 | "tslint": "^5.4.3", | |
| 44 | 44 | "typedoc": "^0.5.10", | |
| 45 | 45 | "typedoc-plugin-external-module-name": "git://github.com/PanayotCankov/typedoc-plugin-external-module-name.git#with-js", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,8 @@ | |||
| 13 | 13 | } | |
| 14 | 14 | }, | |
| 15 | 15 | "dependencies": { | |
| 16 | - "tns-core-modules": "*" | ||
| 16 | + "tns-core-modules": "*", | ||
| 17 | + "tslib": "^1.9.3" | ||
| 17 | 18 | }, | |
| 18 | 19 | "devDependencies": { | |
| 19 | 20 | "babel-traverse": "6.9.0", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,18 +1,5 @@ | |||
| 1 | 1 | // Required by TypeScript compiler | |
| 2 | - require("./decorators"); | ||
| 3 | - | ||
| 4 | - // Required by V8 snapshot generator | ||
| 5 | - if (!global.__extends) { | ||
| 6 | - global.__extends = function (d, b) { | ||
| 7 | - for (var p in b) { | ||
| 8 | - if (b.hasOwnProperty(p)) { | ||
| 9 | - d[p] = b[p]; | ||
| 10 | - } | ||
| 11 | - } | ||
| 12 | - function __() { this.constructor = d; } | ||
| 13 | - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| 14 | - }; | ||
| 15 | - } | ||
| 2 | + require("./ts-helpers"); | ||
| 16 | 3 | ||
| 17 | 4 | // This method iterates all the keys in the source exports object and copies them to the destination exports one. | |
| 18 | 5 | // Note: the method will not check for naming collisions and will override any already existing entries in the destination exports. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,30 @@ | |||
| 1 | + // Required by V8 snapshot generator | ||
| 2 | + if (!global.__extends) { | ||
| 3 | + global.__extends = function (d, b) { | ||
| 4 | + for (var p in b) { | ||
| 5 | + if (b.hasOwnProperty(p)) { | ||
| 6 | + d[p] = b[p]; | ||
| 7 | + } | ||
| 8 | + } | ||
| 9 | + function __() { this.constructor = d; } | ||
| 10 | + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
| 11 | + }; | ||
| 12 | + } | ||
| 13 | + | ||
| 14 | + import * as tslib from "tslib"; | ||
| 15 | + | ||
| 16 | + // Bind the tslib helpers to global scope. | ||
| 17 | + // This is needed when we don't use importHelpers, which | ||
| 18 | + // breaks extending native-classes | ||
| 19 | + for (const fnName of Object.keys(tslib)) { | ||
| 20 | + if (typeof tslib[fnName] !== "function") { | ||
| 21 | + continue; | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + if (fnName in global) { | ||
| 25 | + // Don't override globals that are already defined (ex. __extends) | ||
| 26 | + continue; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + global[fnName] = tslib[fnName]; | ||
| 30 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | console.log("Loading inspector modules..."); | |
| 2 | - require("./globals/decorators"); | ||
| 2 | + require("./globals/ts-helpers"); | ||
| 3 | 3 | require("./debugger/webinspector-network"); | |
| 4 | 4 | require("./debugger/webinspector-dom"); | |
| 5 | 5 | require("./debugger/webinspector-css"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,8 @@ | |||
| 26 | 26 | "license": "Apache-2.0", | |
| 27 | 27 | "typings": "tns-core-modules.d.ts", | |
| 28 | 28 | "dependencies": { | |
| 29 | - "tns-core-modules-widgets": "next" | ||
| 29 | + "tns-core-modules-widgets": "next", | ||
| 30 | + "tslib": "^1.9.3" | ||
| 30 | 31 | }, | |
| 31 | 32 | "devDependencies": { | |
| 32 | 33 | "@types/node": "~7.0.5", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -495,7 +495,7 @@ export function transformConverter(text: string): TransformFunctionsInfo { | |||
| 495 | 495 | ||
| 496 | 496 | const usedTransforms = transformations.map(t => t.property); | |
| 497 | 497 | if (!hasDuplicates(usedTransforms)) { | |
| 498 | - const fullTransformations = Object.assign({}, IDENTITY_TRANSFORMATION); | ||
| 498 | + const fullTransformations = { ...IDENTITY_TRANSFORMATION }; | ||
| 499 | 499 | transformations.forEach(transform => { | |
| 500 | 500 | fullTransformations[transform.property] = transform.value; | |
| 501 | 501 | }); | |
@@ -1098,4 +1098,4 @@ export const visibilityProperty = new CssProperty<Style, Visibility>({ | |||
| 1098 | 1098 | target.view.isCollapsed = (newValue === Visibility.COLLAPSE); | |
| 1099 | 1099 | } | |
| 1100 | 1100 | }); | |
| 1101 | - visibilityProperty.register(Style); | ||
| 1101 | + visibilityProperty.register(Style); | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,6 +32,6 @@ | |||
| 32 | 32 | }, | |
| 33 | 33 | "homepage": "https://github.com/NativeScript/NativeScript#readme", | |
| 34 | 34 | "devDependencies": { | |
| 35 | - "typescript": "^2.6.1" | ||
| 35 | + "typescript": "~2.6.1" | ||
| 36 | 36 | } | |
| 37 | 37 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments