@ebi-wp/ebinocle-ng-rsclient
Advanced tools
Comparing version 4.8.0 to 4.8.1
{ | ||
"name": "@ebi-wp/ebinocle-ng-rsclient", | ||
"version": "4.8.0", | ||
"version": "4.8.1", | ||
"license": "Apache-2.0", | ||
"homepage": "https://www.ebi.ac.uk/ebisearch/", | ||
"description": "EBI Search REST interface client", | ||
"description": "EBI Search REST API interface client", | ||
"keywords": [ | ||
"EBI Search", | ||
"API", | ||
"REST", | ||
"Typescript" | ||
"REST" | ||
], | ||
"contributors": [ | ||
"Prasad Basutkar <prasadb@ebi.ac.uk>", | ||
"Young Mi Park <ympark@ebi.ac.uk>", | ||
"Tamer Gur <tgur@ebi.ac.uk>", | ||
"Nicola Buso <nbuso@ebi.ac.uk>" | ||
], | ||
"peerDependencies": { | ||
@@ -24,6 +17,6 @@ "@angular/common": "^14.0.2", | ||
}, | ||
"private": false, | ||
"dependencies": { | ||
"tslib": "^2.0.0" | ||
"tslib": "^2.3.0" | ||
}, | ||
"sideEffects": false, | ||
"module": "fesm2015/ebi-wp-ebinocle-ng-rsclient.mjs", | ||
@@ -47,4 +40,3 @@ "es2020": "fesm2020/ebi-wp-ebinocle-ng-rsclient.mjs", | ||
} | ||
}, | ||
"sideEffects": false | ||
} | ||
} |
@@ -1,35 +0,24 @@ | ||
# ebinocle-ng-rsclient | ||
# EbinocleNgRsclient | ||
> EBI Search Angular REST client | ||
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.1.0. | ||
## Install | ||
## Code scaffolding | ||
``` | ||
npm i @ebi-wp/ebinocle-ng-rsclient | ||
``` | ||
Run `ng generate component component-name --project ebinocle-ng-rsclient` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ebinocle-ng-rsclient`. | ||
> Note: Don't forget to add `--project ebinocle-ng-rsclient` or else it will be added to the default project in your `angular.json` file. | ||
## Usage example | ||
## Build | ||
The following example, creates a `SearchRequest` object, sets the domain and query. | ||
Then it gets the search results using that object. | ||
Run `ng build ebinocle-ng-rsclient` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
``` | ||
import { Component } from '@angular/core'; | ||
import { Configuration, SearchRequest, SearchService } from '@ebi-wp/ebinocle-ng-rsclient'; | ||
## Publishing | ||
@Component({ | ||
selector: 'app-search', | ||
templateUrl: './search.component.html' | ||
}) | ||
export class SearchComponent { | ||
constructor(private readonly searchService: SearchService) {} | ||
After building your library with `ng build ebinocle-ng-rsclient`, go to the dist folder `cd dist/ebinocle-ng-rsclient` and run `npm publish`. | ||
public search() { | ||
const searchRequest = new SearchRequest(new Configuration()); | ||
searchRequest.setDB('embl'); | ||
searchRequest.query = 'mouse'; | ||
## Running unit tests | ||
return this.searchService.getSearchResults(searchRequest); | ||
} | ||
} | ||
``` | ||
Run `ng test ebinocle-ng-rsclient` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
## Further help | ||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1276712
12566
2
25
Updatedtslib@^2.3.0