From cf7c967ff80b22fe78a17ec1caabd6dba21ff95e Mon Sep 17 00:00:00 2001 From: Frederic Ghilini Date: Sun, 12 Nov 2017 22:48:03 +0100 Subject: [PATCH] Fixed demo-app failing unit tests --- demo-app/.angular-cli.json | 9 ++- demo-app/package-lock.json | 130 +++++++++++------------------- demo-app/package.json | 32 ++++---- demo-app/src/app/app.component.ts | 1 + demo-app/src/polyfills.ts | 2 +- demo-app/tsconfig.json | 5 +- 6 files changed, 73 insertions(+), 106 deletions(-) diff --git a/demo-app/.angular-cli.json b/demo-app/.angular-cli.json index b4b6bce..10b7702 100644 --- a/demo-app/.angular-cli.json +++ b/demo-app/.angular-cli.json @@ -31,13 +31,16 @@ }, "lint": [ { - "project": "src/tsconfig.app.json" + "project": "src/tsconfig.app.json", + "exclude": "**/node_modules/**" }, { - "project": "src/tsconfig.spec.json" + "project": "src/tsconfig.spec.json", + "exclude": "**/node_modules/**" }, { - "project": "e2e/tsconfig.e2e.json" + "project": "e2e/tsconfig.e2e.json", + "exclude": "**/node_modules/**" } ], "test": { diff --git a/demo-app/package-lock.json b/demo-app/package-lock.json index a1dc19f..4aca169 100644 --- a/demo-app/package-lock.json +++ b/demo-app/package-lock.json @@ -49,9 +49,9 @@ } }, "@angular/animations": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-5.0.0.tgz", - "integrity": "sha1-ta0ZnGf5P3WVREd+/+ZnnhVJkfs=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-5.0.1.tgz", + "integrity": "sha1-qSsrGGpuWjGp8VhJEd1qp+FsXeE=", "requires": { "tslib": "1.7.1" } @@ -176,63 +176,45 @@ } }, "@angular/common": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-5.0.0.tgz", - "integrity": "sha1-+W1mpRe5ldG6mygwnxXC41lnWCU=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-5.0.1.tgz", + "integrity": "sha1-QwBas8i4/68Xaq+zuGupMcPkvfk=", "requires": { "tslib": "1.7.1" } }, "@angular/compiler": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.0.0.tgz", - "integrity": "sha1-uf+/GMijnYt9rOxHMZOpDiTMK8k=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-5.0.1.tgz", + "integrity": "sha1-f9TH+ku770wUaWL6lGuCczCmyO0=", "requires": { "tslib": "1.7.1" } }, - "@angular/compiler-cli": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-5.0.0.tgz", - "integrity": "sha1-Dsu5N9hKT43ZTwwqR7B9LkaUyFM=", - "dev": true, - "requires": { - "chokidar": "1.7.0", - "minimist": "1.2.0", - "reflect-metadata": "0.1.10", - "tsickle": "0.24.1" - } - }, "@angular/core": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.0.0.tgz", - "integrity": "sha1-T5dqIl993fNJkvLK2CTJVDpG9Mg=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-5.0.1.tgz", + "integrity": "sha1-pKdK/H4gWNMLgmPrbWbarOn0J7o=", "requires": { "tslib": "1.7.1" } }, "@angular/forms": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-5.0.0.tgz", - "integrity": "sha1-x/3fo1OWdZrphSkgowzdqMQe0d4=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-5.0.1.tgz", + "integrity": "sha1-afMDxME9o8qg3mNDdYg4i2rWKyE=", "requires": { "tslib": "1.7.1" } }, "@angular/http": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/http/-/http-5.0.0.tgz", - "integrity": "sha1-Byiivgz7sHhyfF64fUyF1T/smlE=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/http/-/http-5.0.1.tgz", + "integrity": "sha1-NQy99jz6yJOWE9dT/wce1YpgVhs=", "requires": { "tslib": "1.7.1" } }, - "@angular/language-service": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-5.0.0.tgz", - "integrity": "sha1-bMu2n0dXJw3QTsWFfTdjSy8CxAw=", - "dev": true - }, "@angular/material": { "version": "5.0.0-rc0", "resolved": "https://registry.npmjs.org/@angular/material/-/material-5.0.0-rc0.tgz", @@ -242,25 +224,25 @@ } }, "@angular/platform-browser": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.0.0.tgz", - "integrity": "sha1-xwOPfN6AcFtiAUiXIx4YLuyXb+0=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-5.0.1.tgz", + "integrity": "sha1-FIld0w7Sow7nuZx2t2R0j0bBqGI=", "requires": { "tslib": "1.7.1" } }, "@angular/platform-browser-dynamic": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.0.0.tgz", - "integrity": "sha1-iH4QbIsQOwQVz2FWpCXabYP0yJ0=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-5.0.1.tgz", + "integrity": "sha1-Fttn1S1FMVY6sVQpxr3+GLwb7cg=", "requires": { "tslib": "1.7.1" } }, "@angular/router": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-5.0.0.tgz", - "integrity": "sha1-/ktSGmc4QIvOMPk6U0mRQMk6T3Y=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-5.0.1.tgz", + "integrity": "sha1-msCPKTAu9gzf08eBDZbCZd7EY9Y=", "requires": { "tslib": "1.7.1" } @@ -333,9 +315,9 @@ } }, "@types/jasmine": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.6.0.tgz", - "integrity": "sha512-1ZZdFvYA5zARDXPj5+VF0bwDZWH/o0QQWJVDc5srdC/DngcCZXskR33eR/4PielGvBjLQpQOd6KiQbmtqVkeZA==", + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.6.3.tgz", + "integrity": "sha512-2dJf9//QxTnFBXHsCqLbB55jlMreJQie9HhgsZrSgHveOKCWVmgcXgRyvIi22Ndk/dJ/e2srLOstk2NgVbb7XA==", "dev": true }, "@types/jasminewd2": { @@ -344,26 +326,26 @@ "integrity": "sha512-hYDVmQZT5VA2kigd4H4bv7vl/OhlympwREUemqBdOqtrYTo5Ytm12a5W5/nGgGYdanGVxj0x/VhZ7J3hOg/YKg==", "dev": true, "requires": { - "@types/jasmine": "2.6.0" + "@types/jasmine": "2.6.3" } }, "@types/lodash": { - "version": "4.14.77", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.77.tgz", - "integrity": "sha512-sRCTcVQkIiQqRoQcazgN2PvRLS7d9BnSl8elRZR5UYlpm6XgU8F4j/0csz8WoaKKTUqa6rSuOy3Vph7AHfX7KQ==" + "version": "4.14.85", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.85.tgz", + "integrity": "sha512-HrZiwDl62if0z31+rB99CLlg7WzS7b+KmyW75XAHEl/ZG0De2ACo6skZ89Zh3jOWkjKObN0Apq3MUezg7u9NKQ==" }, "@types/lodash-es": { - "version": "4.14.7", - "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.14.7.tgz", - "integrity": "sha512-XuVzO7QLlMMVlIXjN9l4EFMBG7klqSWQgMYy04rYiY5Evl59N22os5v41JpDg34tXpv0oLJ+V5m2yws6JUq+TA==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.0.tgz", + "integrity": "sha512-h8lkWQSgT4qjs9PcIhcL2nWubZeXRVzjZxYlRFmcX9BW1PIk5qRc0djtRWZqtM+GDDFhwBt0ztRu72D/YxIcEw==", "requires": { - "@types/lodash": "4.14.77" + "@types/lodash": "4.14.85" } }, "@types/node": { - "version": "8.0.50", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.50.tgz", - "integrity": "sha512-N9OVsMBspboNvYaLAQnLEhb2eQ96lavogMR5LoH5k8nb1PvBZHSBFhzhsq2LNzGTBBOtBviOc1GiSu+wlM/pGw==", + "version": "8.0.51", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.51.tgz", + "integrity": "sha512-El3+WJk2D/ppWNd2X05aiP5l2k4EwF7KwheknQZls+I26eSICoWRhRIJ56jGgw2dqNGQ5LtNajmBU2ajS28EvQ==", "dev": true }, "@types/q": { @@ -6409,9 +6391,9 @@ "dev": true }, "ng2-md-datatable": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ng2-md-datatable/-/ng2-md-datatable-1.6.0.tgz", - "integrity": "sha512-d+nLh5kaOZREZYXglX1/kTV2Q94GuLeae3TpGe8lHsGm/pj+VAVnrdF9d4HYYuZ42MyjpM0KMcrJdxiTJMUcwQ==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/ng2-md-datatable/-/ng2-md-datatable-1.6.1.tgz", + "integrity": "sha512-OhElnOnmDUQpkR1Kl0iVE8qm6jlJJNGp26QRTNMx15GeE+LbhdfA9kqxGk2e2+BoINmC4+zhaBZbHS7OGRHSDg==", "requires": { "hammerjs": "2.0.8" } @@ -7818,9 +7800,9 @@ "dev": true }, "prettier": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.8.1.tgz", - "integrity": "sha512-YD5mApxnu/o/u7kiy5C4ouMfzJMXGEQdHyGHtQd0KwN/CrwTwD8RuTNzpInZEYZn9S8m10zDvVT5gAO4pp+0FA==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.8.2.tgz", + "integrity": "sha512-fHWjCwoRZgjP1rvLP7OGqOznq7xH1sHMQUFLX8qLRO79hI57+6xbc5vB904LxEkCfgFgyr3vv06JkafgCSzoZg==", "dev": true }, "pretty-error": { @@ -8283,12 +8265,6 @@ } } }, - "reflect-metadata": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.10.tgz", - "integrity": "sha1-tPg3BEFqytiZiMmxVjXUfgO5NEo=", - "dev": true - }, "regenerate": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.3.2.tgz", @@ -9531,18 +9507,6 @@ } } }, - "tsickle": { - "version": "0.24.1", - "resolved": "https://registry.npmjs.org/tsickle/-/tsickle-0.24.1.tgz", - "integrity": "sha512-XloFQZhVhgjpQsi3u2ORNRJvuID5sflOg6HfP093IqAbhE1+fIUXznULpdDwHgG4p+v8w78KdHruQtkWUKx5AQ==", - "dev": true, - "requires": { - "minimist": "1.2.0", - "mkdirp": "0.5.1", - "source-map": "0.5.7", - "source-map-support": "0.4.18" - } - }, "tslib": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.7.1.tgz", diff --git a/demo-app/package.json b/demo-app/package.json index aec57c8..4af38ed 100644 --- a/demo-app/package.json +++ b/demo-app/package.json @@ -12,32 +12,32 @@ }, "private": true, "dependencies": { - "@angular/animations": "^5.0.0", + "@angular/animations": "^5.0.1", "@angular/cdk": "^5.0.0-rc0", - "@angular/common": "^5.0.0", - "@angular/compiler": "^5.0.0", - "@angular/core": "^5.0.0", - "@angular/forms": "^5.0.0", - "@angular/http": "^5.0.0", + "@angular/common": "^5.0.1", + "@angular/compiler": "^5.0.1", + "@angular/core": "^5.0.1", + "@angular/forms": "^5.0.1", + "@angular/http": "^5.0.1", "@angular/material": "^5.0.0-rc0", - "@angular/platform-browser": "^5.0.0", - "@angular/platform-browser-dynamic": "^5.0.0", - "@angular/router": "^5.0.0", - "@types/lodash-es": "^4.14.7", + "@angular/platform-browser": "^5.0.1", + "@angular/platform-browser-dynamic": "^5.0.1", + "@angular/router": "^5.0.1", + "@types/lodash-es": "^4.17.0", "core-js": "^2.4.1", "lodash-es": "^4.17.4", - "ng2-md-datatable": "^1.6.0", + "ng2-md-datatable": "^1.6.1", "rxjs": "^5.5.2", "web-animations-js": "^2.3.1", "zone.js": "^0.8.18" }, "devDependencies": { "@angular/cli": "^1.5.0", - "@angular/compiler-cli": "^5.0.0", - "@angular/language-service": "^5.0.0", - "@types/jasmine": "~2.6.0", + "@angular/compiler-cli": "^5.0.1", + "@angular/language-service": "^5.0.1", + "@types/jasmine": "^2.6.3", "@types/jasminewd2": "~2.0.2", - "@types/node": "^8.0.50", + "@types/node": "^8.0.51", "codelyzer": "^4.0.1", "jasmine-core": "^2.8.0", "jasmine-spec-reporter": "^4.2.1", @@ -48,7 +48,7 @@ "karma-jasmine": "~1.1.0", "karma-jasmine-html-reporter": "^0.2.2", "karma-junit-reporter": "^1.2.0", - "prettier": "^1.8.1", + "prettier": "^1.8.2", "protractor": "~5.1.2", "ts-node": "~3.3.0", "tslint": "^5.8.0", diff --git a/demo-app/src/app/app.component.ts b/demo-app/src/app/app.component.ts index a083613..c1f0138 100644 --- a/demo-app/src/app/app.component.ts +++ b/demo-app/src/app/app.component.ts @@ -8,6 +8,7 @@ import { import shuffle from "lodash-es/shuffle"; import "rxjs/add/observable/from"; +import "rxjs/add/operator/let"; import { BehaviorSubject } from "rxjs/BehaviorSubject"; import { Observable } from "rxjs/Observable"; import { takeUntil } from "rxjs/operators"; diff --git a/demo-app/src/polyfills.ts b/demo-app/src/polyfills.ts index c001c07..3df6688 100644 --- a/demo-app/src/polyfills.ts +++ b/demo-app/src/polyfills.ts @@ -38,7 +38,7 @@ // import 'classlist.js'; // Run `npm install --save classlist.js`. // Evergreen browsers require these. -import "core-js/es6/reflect"; +// import "core-js/es6/reflect"; import "core-js/es7/reflect"; // Required to support Web Animations `@angular/animation`. diff --git a/demo-app/tsconfig.json b/demo-app/tsconfig.json index 4b8b671..affc9fc 100644 --- a/demo-app/tsconfig.json +++ b/demo-app/tsconfig.json @@ -4,12 +4,11 @@ "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, - "allowJs": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es2015", + "target": "es5", "typeRoots": ["node_modules/@types"], - "lib": ["es5", "es2015", "dom"] + "lib": ["es2017", "dom"] } }