Skip to content

Commit de9dba2

Browse files
committed
fix: remove @secjs/exceptions
1 parent de21e40 commit de9dba2

File tree

6 files changed

+5
-30
lines changed

6 files changed

+5
-30
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ The intention behind this repository is to always maintain a `Utils` package wit
2525

2626
## Installation
2727

28-
> To use the high potential from this package you need to install first this other packages from SecJS,
29-
> it keeps as dev dependency because one day `@secjs/core` will install everything once.
30-
31-
```bash
32-
npm install @secjs/exceptions
33-
```
34-
35-
> Then you can install the package using:
36-
3728
```bash
3829
npm install @secjs/utils
3930
```

package-lock.json

Lines changed: 2 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Helpers/Folder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { Path } from './Path'
2424
import { Parser } from './Parser'
2525
import { randomBytes } from 'crypto'
2626
import { isAbsolute, join, parse, resolve } from 'path'
27-
import { InternalServerException } from '@secjs/exceptions'
2827
import { DirectoryContract } from '../Contracts/DirectoryContract'
2928
import { FolderAlreadyExistException } from '../Exceptions/FolderAlreadyExistException'
3029
import { FolderDoesntExistException } from '../Exceptions/FolderDoesntExistException'

src/Helpers/Parser.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import bytes from 'bytes'
1212

1313
import { Is } from './Is'
1414
import { String } from './String'
15-
import { InternalServerException } from '@secjs/exceptions'
1615
import { getReasonPhrase, getStatusCode } from 'http-status-codes'
1716
import { DBUrlParserContract } from '../Contracts/DBUrlParserContract'
1817
import { InvalidStringNumberException } from '../Exceptions/InvalidStringNumberException'

src/Helpers/Route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99

1010
import { Parser } from './Parser'
11-
import { InternalServerException } from '@secjs/exceptions'
1211
import { DifferentRoutesException } from '../Exceptions/DifferentRoutesException'
1312

1413
export class Route {

tests/Helpers/is.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Is } from '../../src/Helpers/Is'
2-
import { InternalServerException } from '@secjs/exceptions'
2+
import { Exception } from '../../src/Helpers/Exception'
33

44
describe('\n Is Class', () => {
55
it('should verify if is a valid json string', async () => {
@@ -122,7 +122,7 @@ describe('\n Is Class', () => {
122122
expect(Is.Error(0)).toBeFalsy()
123123
expect(Is.Error('')).toBeFalsy()
124124
expect(Is.Error(new Error())).toBeTruthy()
125-
expect(Is.Error(new InternalServerException())).toBeTruthy()
125+
expect(Is.Error(new Exception('Test'))).toBeTruthy()
126126
})
127127

128128
it('should verify if is a valid function', async () => {
@@ -139,7 +139,7 @@ describe('\n Is Class', () => {
139139
it('should verify if is a valid class', async () => {
140140
expect(Is.Class(0)).toBeFalsy()
141141
expect(Is.Class('')).toBeFalsy()
142-
expect(Is.Class(InternalServerException)).toBeTruthy()
142+
expect(Is.Class(Exception)).toBeTruthy()
143143
})
144144

145145
it('should verify if is a valid integer', async () => {

0 commit comments

Comments
 (0)