Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 49b00f5

Browse files
committed
build: update dependencies and add yarn.lock
1 parent cd1dd63 commit 49b00f5

File tree

9 files changed

+3658
-28
lines changed

9 files changed

+3658
-28
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
language: node_js
22
node_js:
33
- 6
4+
5+
cache:
6+
yarn: true
7+
directories:
8+
- node_modules
9+
410
before_script:
511
- export DISPLAY=:99.0
612
- sh -e /etc/init.d/xvfb start
713

8-
after_success: npm run cover
14+
after_success: npm run cover

karma.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ module.exports = function (config) {
66

77
files: [
88
{ pattern: 'node_modules/reflect-metadata/Reflect.js' },
9-
{ pattern: 'src/base.spec.ts' },
109
{ pattern: 'src/**/*.ts' }
1110
],
1211

@@ -35,6 +34,9 @@ module.exports = function (config) {
3534
},
3635
coverageOptions: {
3736
exclude: /((\.(d|spec|test|module))|index\.ts)/
37+
},
38+
compilerOptions: {
39+
lib: ['es6', 'dom']
3840
}
3941
},
4042

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-pipes",
3-
"version": "6.5.0",
3+
"version": "6.5.1",
44
"description": "Angular pipes library",
55
"main": "src/index.js",
66
"jsnext:main": "esm/index.js",
@@ -34,13 +34,11 @@
3434
],
3535
"license": "MIT",
3636
"devDependencies": {
37-
"@angular/compiler": "^2.4.5",
38-
"@angular/compiler-cli": "^2.4.5",
39-
"@angular/core": "^2.4.5",
40-
"@angular/platform-server": "^2.4.5",
41-
"@types/core-js": "^0.9.34",
37+
"@angular/compiler": "4.0.0-rc.5",
38+
"@angular/compiler-cli": "^4.0.0-rc.5",
39+
"@angular/core": "^4.0.0-rc.5",
40+
"@angular/platform-server": "^4.0.0-rc.5",
4241
"@types/jasmine": "^2.5.37",
43-
"core-js": "^2.4.1",
4442
"coveralls": "^2.11.15",
4543
"gulp": "^3.9.1",
4644
"gulp-clean": "^0.3.2",
@@ -49,14 +47,14 @@
4947
"karma-firefox-launcher": "^1.0.0",
5048
"karma-jasmine": "^1.0.2",
5149
"karma-spec-reporter": "0.0.26",
52-
"karma-typescript": "^2.1.6",
50+
"karma-typescript": "next",
5351
"reflect-metadata": "^0.1.3",
5452
"rollup": "^0.41.4",
5553
"rollup-plugin-node-resolve": "^2.0.0",
5654
"rollup-plugin-uglify": "^1.0.1",
5755
"rxjs": "^5.0.3",
58-
"typescript": "2.0.8",
59-
"zone.js": "^0.7.2"
56+
"typescript": "^2.0.8",
57+
"zone.js": "^0.8.4"
6058
},
6159
"dependencies": {}
6260
}

src/base.spec.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/string/slugify.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('SlugifyPipe', () => {
1313
});
1414

1515
it('Should return the input', () => {
16-
expect(pipe.transform(<any>2)).toEqual(2);
16+
expect(pipe.transform(2)).toEqual(2);
1717
});
1818

1919
});

src/string/slugify.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {isString} from '../utils/utils';
44
@Pipe({ name: 'slugify' })
55
export class SlugifyPipe implements PipeTransform {
66

7-
transform(input: string): string {
7+
transform(input: any): any {
88

99
if (!isString(input)) {
1010
return input;

tsconfig.esm.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
"noUnusedLocals": true,
1313
"suppressImplicitAnyIndexErrors": false,
1414
"declaration": true,
15-
"types": [
16-
"core-js"
17-
]
15+
"lib": ["es6", "dom"]
1816
},
1917
"exclude": [
2018
"node_modules",

tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
"noUnusedLocals": true,
1212
"suppressImplicitAnyIndexErrors": false,
1313
"declaration": true,
14-
"types": [
15-
"core-js"
16-
]
14+
"lib": ["es6", "dom"]
1715
},
1816
"exclude": [
1917
"node_modules",

0 commit comments

Comments
 (0)