Skip to content

Commit

Permalink
fix: Angular 10 support
Browse files Browse the repository at this point in the history
close #240
  • Loading branch information
urish committed Jul 3, 2020
1 parent ba26f85 commit 4d899d0
Show file tree
Hide file tree
Showing 3 changed files with 1,053 additions and 745 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,34 @@
},
"homepage": "https://github.com/urish/ngx-moment#readme",
"peerDependencies": {
"@angular/common": ">=2.0.0",
"@angular/core": ">=2.0.0",
"@angular/common": ">=7.0.0",
"@angular/core": ">=7.0.0",
"moment": "^2.19.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.8",
"@angular-devkit/build-ng-packagr": "~0.901.8",
"@angular/cli": "~9.1.8",
"@angular/common": "~9.1.8",
"@angular/compiler": "~9.1.8",
"@angular/compiler-cli": "~9.1.8",
"@angular/core": "~9.1.8",
"@angular/language-service": "~9.1.8",
"@angular/platform-browser": "~9.1.8",
"@angular-devkit/build-angular": "~0.1000.1",
"@angular-devkit/build-ng-packagr": "~0.1000.1",
"@angular/cli": "~10.0.1",
"@angular/common": "~10.0.2",
"@angular/compiler": "~10.0.2",
"@angular/compiler-cli": "~10.0.2",
"@angular/core": "~10.0.2",
"@angular/language-service": "~10.0.2",
"@angular/platform-browser": "~10.0.2",
"@types/jest": "^26.0.0",
"@types/node": "^12.0.0",
"core-js": "^2.5.4",
"husky": "^4.2.5",
"jest": "^26.0.1",
"lint-staged": "^10.2.10",
"moment": "^2.21.0",
"ng-packagr": "^9.1.5",
"ng-packagr": "^10.0.0",
"prettier": "^2.0.5",
"rxjs": "^6.5.3",
"rxjs": "^6.6.0",
"ts-jest": "^26.1.0",
"tslib": "^1.10.0",
"tslib": "^2.0.0",
"tslint": "~6.1.2",
"typescript": "~3.8.0",
"typescript": "~3.9.6",
"zone.js": "~0.10.3"
},
"jest": {
Expand Down
2 changes: 1 addition & 1 deletion src/moment.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const ANGULAR_MOMENT_PIPES = [
exports: ANGULAR_MOMENT_PIPES,
})
export class MomentModule {
static forRoot(options?: NgxMomentOptions): ModuleWithProviders {
static forRoot(options?: NgxMomentOptions): ModuleWithProviders<MomentModule> {
return {
ngModule: MomentModule,
providers: [
Expand Down
Loading

0 comments on commit 4d899d0

Please sign in to comment.