chat4app-client-angular 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/karma.conf.js +44 -0
- package/ng-package.json +7 -0
- package/package.json +10 -18
- package/src/lib/chat4app-client-angular.component.spec.ts +25 -0
- package/src/lib/chat4app-client-angular.component.ts +20 -0
- package/src/lib/chat4app-client-angular.module.ts +12 -0
- package/src/lib/chat4app-client-angular.service.spec.ts +16 -0
- package/src/lib/chat4app-client-angular.service.ts +572 -0
- package/{public-api.d.ts → src/public-api.ts} +4 -1
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +26 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/bundles/chat4app-client-angular.umd.js +0 -465
- package/bundles/chat4app-client-angular.umd.js.map +0 -1
- package/bundles/chat4app-client-angular.umd.min.js +0 -2
- package/bundles/chat4app-client-angular.umd.min.js.map +0 -1
- package/chat4app-client-angular.d.ts +0 -5
- package/chat4app-client-angular.d.ts.map +0 -1
- package/chat4app-client-angular.metadata.json +0 -1
- package/esm2015/chat4app-client-angular.js +0 -5
- package/esm2015/lib/chat4app-client-angular.component.js +0 -18
- package/esm2015/lib/chat4app-client-angular.module.js +0 -12
- package/esm2015/lib/chat4app-client-angular.service.js +0 -356
- package/esm2015/public-api.js +0 -7
- package/fesm2015/chat4app-client-angular.js +0 -394
- package/fesm2015/chat4app-client-angular.js.map +0 -1
- package/lib/chat4app-client-angular.component.d.ts +0 -6
- package/lib/chat4app-client-angular.component.d.ts.map +0 -1
- package/lib/chat4app-client-angular.module.d.ts +0 -3
- package/lib/chat4app-client-angular.module.d.ts.map +0 -1
- package/lib/chat4app-client-angular.service.d.ts +0 -135
- package/lib/chat4app-client-angular.service.d.ts.map +0 -1
- package/public-api.d.ts.map +0 -1
package/karma.conf.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
jasmine: {
|
|
17
|
+
// you can add configuration options for Jasmine here
|
|
18
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
+
// for example, you can disable the random execution with `random: false`
|
|
20
|
+
// or set a specific seed with `seed: 4321`
|
|
21
|
+
},
|
|
22
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
+
},
|
|
24
|
+
jasmineHtmlReporter: {
|
|
25
|
+
suppressAll: true // removes the duplicated traces
|
|
26
|
+
},
|
|
27
|
+
coverageReporter: {
|
|
28
|
+
dir: require('path').join(__dirname, '../../coverage/chat4app-client-angular'),
|
|
29
|
+
subdir: '.',
|
|
30
|
+
reporters: [
|
|
31
|
+
{ type: 'html' },
|
|
32
|
+
{ type: 'text-summary' }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
reporters: ['progress', 'kjhtml'],
|
|
36
|
+
port: 9876,
|
|
37
|
+
colors: true,
|
|
38
|
+
logLevel: config.LOG_INFO,
|
|
39
|
+
autoWatch: true,
|
|
40
|
+
browsers: ['Chrome'],
|
|
41
|
+
singleRun: false,
|
|
42
|
+
restartOnFileChange: true
|
|
43
|
+
});
|
|
44
|
+
};
|
package/ng-package.json
ADDED
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "chat4app-client-angular",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^11.1.1",
|
|
6
|
-
"@angular/core": "^11.1.1"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.0.0"
|
|
10
|
-
}
|
|
11
|
-
"main": "bundles/chat4app-client-angular.umd.js",
|
|
12
|
-
"module": "fesm2015/chat4app-client-angular.js",
|
|
13
|
-
"es2015": "fesm2015/chat4app-client-angular.js",
|
|
14
|
-
"esm2015": "esm2015/chat4app-client-angular.js",
|
|
15
|
-
"fesm2015": "fesm2015/chat4app-client-angular.js",
|
|
16
|
-
"typings": "chat4app-client-angular.d.ts",
|
|
17
|
-
"metadata": "chat4app-client-angular.metadata.json",
|
|
18
|
-
"sideEffects": false
|
|
1
|
+
{
|
|
2
|
+
"name": "chat4app-client-angular",
|
|
3
|
+
"version": "0.0.7",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^11.1.1",
|
|
6
|
+
"@angular/core": "^11.1.1"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.0.0"
|
|
10
|
+
}
|
|
19
11
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { Chat4appClientAngularComponent } from './chat4app-client-angular.component';
|
|
4
|
+
|
|
5
|
+
describe('Chat4appClientAngularComponent', () => {
|
|
6
|
+
let component: Chat4appClientAngularComponent;
|
|
7
|
+
let fixture: ComponentFixture<Chat4appClientAngularComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ Chat4appClientAngularComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(Chat4appClientAngularComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-chat4app-client-angular',
|
|
5
|
+
template: `
|
|
6
|
+
<p>
|
|
7
|
+
chat4app-client-angular works!
|
|
8
|
+
</p>
|
|
9
|
+
`,
|
|
10
|
+
styles: [
|
|
11
|
+
]
|
|
12
|
+
})
|
|
13
|
+
export class Chat4appClientAngularComponent implements OnInit {
|
|
14
|
+
|
|
15
|
+
constructor() { }
|
|
16
|
+
|
|
17
|
+
ngOnInit(): void {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { Chat4appClientAngularComponent } from './chat4app-client-angular.component';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@NgModule({
|
|
7
|
+
declarations: [Chat4appClientAngularComponent],
|
|
8
|
+
imports: [
|
|
9
|
+
],
|
|
10
|
+
exports: [Chat4appClientAngularComponent]
|
|
11
|
+
})
|
|
12
|
+
export class Chat4appClientAngularModule { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { Chat4appClientAngularService } from './chat4app-client-angular.service';
|
|
4
|
+
|
|
5
|
+
describe('Chat4appClientAngularService', () => {
|
|
6
|
+
let service: Chat4appClientAngularService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(Chat4appClientAngularService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|