Skip to content

Commit

Permalink
angular version set for v13, email fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaer committed Jun 4, 2022
1 parent dd66529 commit ae42ea6
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 28 deletions.
4 changes: 2 additions & 2 deletions projects/angular-twitter-timeline/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
],
"parserOptions": {
"project": [
"projects/angular-twitter-timeline/tsconfig.lib.json",
"projects/angular-twitter-timeline/tsconfig.spec.json"
"./tsconfig.lib.json",
"./tsconfig.spec.json"
],
"createDefaultProgram": true
},
Expand Down
8 changes: 4 additions & 4 deletions projects/angular-twitter-timeline/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "angular-twitter-timeline",
"version": "1.0.0",
"version": "13.0.0",
"description": "Angular Public Twitter Timeline Widget",
"peerDependencies": {
"@angular/common": "^13.3.0",
"@angular/core": "^13.3.0"
"@angular/common": "^13.0.0",
"@angular/core": "^13.0.0"
},
"dependencies": {
"tslib": "^2.3.0"
Expand All @@ -14,7 +14,7 @@
"url": "https://github.com/mustafaer/angular-twitter-timeline.git"
},
"url": "https://github.com/mustafaer/angular-twitter-timeline/issues",
"email": "mustafaer@protonmail.com",
"email": "mustafaerpro@gmail.com",
"author": "Mustafa Er",
"license": "MIT",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import {ComponentFixture, TestBed} from '@angular/core/testing';

import { AngularTwitterTimelineComponent } from './angular-twitter-timeline.component';
import {AngularTwitterTimelineComponent} from './angular-twitter-timeline.component';

describe('AngularTwitterTimelineComponent', () => {
let component: AngularTwitterTimelineComponent;
let fixture: ComponentFixture<AngularTwitterTimelineComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ AngularTwitterTimelineComponent ]
declarations: [AngularTwitterTimelineComponent]
})
.compileComponents();
.compileComponents();
});

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ export class AngularTwitterTimelineComponent implements OnChanges {
nativeElement,
{...this.defaultOpts, ...this.opts}
)
.then((embed: any) => {
// console.log(embed);
.then(() => {
})
.catch((error: any) => console.error(error))
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { NgModule } from '@angular/core';
import { AngularTwitterTimelineComponent } from './angular-twitter-timeline.component';

import {NgModule} from '@angular/core';
import {AngularTwitterTimelineComponent} from './angular-twitter-timeline.component';


@NgModule({
declarations: [
AngularTwitterTimelineComponent
],
imports: [
],
imports: [],
exports: [
AngularTwitterTimelineComponent
]
})
export class AngularTwitterTimelineModule { }
export class AngularTwitterTimelineModule {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TestBed } from '@angular/core/testing';
import {TestBed} from '@angular/core/testing';

import { AngularTwitterTimelineService } from './angular-twitter-timeline.service';
import {AngularTwitterTimelineService} from './angular-twitter-timeline.service';

describe('AngularTwitterTimelineService', () => {
let service: AngularTwitterTimelineService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ export class AngularTwitterTimelineService {
private TWITTER_SCRIPT_ID = 'twitter-wjs';
private TWITTER_WIDGET_URL = 'https://platform.twitter.com/widgets.js';

constructor() {
}

loadScript(): Observable<any> {
return new Observable((observer) => {

Expand Down
7 changes: 2 additions & 5 deletions projects/angular-twitter-timeline/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
import {getTestBed} from '@angular/core/testing';
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';

declare const require: {
context(path: string, deep?: boolean, filter?: RegExp): {
Expand Down

0 comments on commit ae42ea6

Please sign in to comment.