From 9b1c844ab76bf5cca962779a793bf1ad94fec537 Mon Sep 17 00:00:00 2001 From: wpomier <55899540+pomgui@users.noreply.github.com> Date: Wed, 2 Sep 2020 23:59:08 -0300 Subject: [PATCH] small changes --- LICENSE | 4 ++-- README.md | 8 ++++---- lib/service/PiService.ts | 1 - package-lock.json | 4 ++-- package.json | 4 ++-- spec/service/PiService.spec.ts | 2 +- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/LICENSE b/LICENSE index 124a829..c9e4654 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 pomgui +Copyright (c) 2020 Pomgui Informatica Ltda Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index b49d51f..bffcf9b 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -# PiServices +# Pi Rest Services -PiServices is a typescript library that makes it easier to create a node REST server using +Pirest is a typescript library that makes it easier to create a node REST server using [decorators](https://www.typescriptlang.org/docs/handbook/decorators.html) to improve the reading and writing of REST services source code. ## Installation -Use npm to install piservices. +Use npm to install pirest. ```bash -npm install piservices --save +npm install pirest --save ``` ## Usage Example diff --git a/lib/service/PiService.ts b/lib/service/PiService.ts index f4aa69b..72bfbcd 100644 --- a/lib/service/PiService.ts +++ b/lib/service/PiService.ts @@ -1,5 +1,4 @@ import { Request, Response, Router, IRouterMatcher, Application } from "express"; -import { PiDatabase } from "../dao/PiDatabase"; import { PiDbFactoryFn, PiServiceOptions, PiExceptionHandlerParams, PiExtraParams } from "./types"; import { PiTypeDescriptor } from 'pirest-lib'; diff --git a/package-lock.json b/package-lock.json index cd8184b..b8eb939 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "piservices", + "name": "pirest", "version": "0.1.0", "lockfileVersion": 1, "requires": true, @@ -872,7 +872,7 @@ "dev": true }, "pirest-lib": { - "version": "file:../pirest-lib", + "version": "0.1.0", "dependencies": { "@types/jasmine": { "version": "3.4.4", diff --git a/package.json b/package.json index 743ae09..35eb89d 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,10 @@ }, "bin": {}, "keywords": [], - "author": "Wilfredo (https://github.com/pomgui)", + "author": "Wilfredo (https://github.com/pomgui)", "license": "MIT", "dependencies": { - "pirest-lib": "file:/pi/pirest-lib" + "pirest-lib": "^0.1.0" }, "devDependencies": { "@types/express": "^4.17.1", diff --git a/spec/service/PiService.spec.ts b/spec/service/PiService.spec.ts index 8744083..9a76279 100644 --- a/spec/service/PiService.spec.ts +++ b/spec/service/PiService.spec.ts @@ -1,4 +1,4 @@ -import { PiTypeDescriptor, PiFieldDescriptor, PiRestError, PiField, PiJstype, PiDescriptor } from "pirest-lib"; +import { PiTypeDescriptor, PiFieldDescriptor, PiField, PiJstype, PiDescriptor } from "pirest-lib"; import { PiGET, PiPOST, PiPUT, PiPATCH, PiDELETE, PiService } from '../../lib/service/PiService'; import * as express from 'express'; import * as request from 'supertest';