@ipetsadmin/contracts 1.0.0 → 1.0.2
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/CHANGELOG.md +21 -0
- package/README.md +2 -0
- package/dist/errors/BaseError.d.ts +1 -1
- package/dist/errors/BaseError.d.ts.map +1 -1
- package/dist/errors/BaseError.js +2 -1
- package/dist/errors/BaseError.js.map +1 -1
- package/dist/errors/BusinessError.d.ts +2 -2
- package/dist/errors/BusinessError.d.ts.map +1 -1
- package/dist/errors/BusinessError.js +4 -6
- package/dist/errors/BusinessError.js.map +1 -1
- package/dist/errors/ForbiddenError.d.ts +2 -2
- package/dist/errors/ForbiddenError.d.ts.map +1 -1
- package/dist/errors/ForbiddenError.js +4 -6
- package/dist/errors/ForbiddenError.js.map +1 -1
- package/dist/errors/NotFoundError.d.ts +2 -2
- package/dist/errors/NotFoundError.d.ts.map +1 -1
- package/dist/errors/NotFoundError.js +4 -6
- package/dist/errors/NotFoundError.js.map +1 -1
- package/dist/errors/ServerError.d.ts +2 -2
- package/dist/errors/ServerError.d.ts.map +1 -1
- package/dist/errors/ServerError.js +4 -6
- package/dist/errors/ServerError.js.map +1 -1
- package/dist/errors/UnauthorizedError.d.ts +2 -2
- package/dist/errors/UnauthorizedError.d.ts.map +1 -1
- package/dist/errors/UnauthorizedError.js +4 -6
- package/dist/errors/UnauthorizedError.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
19
19
|
|
|
20
20
|
### Security
|
|
21
21
|
|
|
22
|
+
## [1.0.2] - 2026-04-02
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- **Error classes are now true named exports** in `src/errors/*.ts` (`export class …` instead of `export default class`).
|
|
27
|
+
The barrel file re-exports them with `export * from '@/errors/…'`, which compiles to plain `__exportStar` assignments
|
|
28
|
+
on `exports` in CommonJS. This avoids the previous pattern where TypeScript emitted **getter-only** re-exports for
|
|
29
|
+
`export { default as X }`, which some runtimes, bundlers, and reflection-based tooling do not surface as normal
|
|
30
|
+
named exports.
|
|
31
|
+
- **`package.json` `exports` map** added (`types`, `require`, `default`) so Node and TypeScript
|
|
32
|
+
`moduleResolution` `node16` / `nodenext` resolve the package entry and types reliably.
|
|
33
|
+
|
|
34
|
+
## [1.0.1] - 2026-04-02
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- **Error exports from the package entry** (`src/index.ts`): attempted fix using `export { default as … } from '@/errors/…'`
|
|
39
|
+
(default exports are not re-exported by `export *`). Follow-up in **1.0.2** completes the fix with named class exports
|
|
40
|
+
and an `exports` field.
|
|
41
|
+
- **Public error API**: `ServerError` and `UnauthorizedError` re-exported from the package entry.
|
|
42
|
+
|
|
22
43
|
## [1.0.0] - 2026-04-02
|
|
23
44
|
|
|
24
45
|
### Added
|
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseError.d.ts","sourceRoot":"","sources":["../../src/errors/BaseError.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"BaseError.d.ts","sourceRoot":"","sources":["../../src/errors/BaseError.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAU,SAAQ,KAAK;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,aAAa,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE;CAO7D"}
|
package/dist/errors/BaseError.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseError = void 0;
|
|
3
4
|
class BaseError extends Error {
|
|
4
5
|
toErrorRecord() {
|
|
5
6
|
const obj = { error: this.message };
|
|
@@ -9,5 +10,5 @@ class BaseError extends Error {
|
|
|
9
10
|
return obj;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
exports.
|
|
13
|
+
exports.BaseError = BaseError;
|
|
13
14
|
//# sourceMappingURL=BaseError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseError.js","sourceRoot":"","sources":["../../src/errors/BaseError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseError.js","sourceRoot":"","sources":["../../src/errors/BaseError.ts"],"names":[],"mappings":";;;AAAA,MAAa,SAAU,SAAQ,KAAK;IAE3B,aAAa;QAClB,MAAM,GAAG,GAAyC,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC;QAC1E,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AATD,8BASC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BaseError from '../errors/BaseError';
|
|
2
|
-
export
|
|
1
|
+
import { BaseError } from '../errors/BaseError';
|
|
2
|
+
export declare class BusinessError extends BaseError {
|
|
3
3
|
details?: Record<string, unknown>;
|
|
4
4
|
constructor(message: string, details?: Record<string, unknown>);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessError.d.ts","sourceRoot":"","sources":["../../src/errors/BusinessError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"BusinessError.d.ts","sourceRoot":"","sources":["../../src/errors/BusinessError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,qBAAa,aAAc,SAAQ,SAAS;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtE"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
3
|
+
exports.BusinessError = void 0;
|
|
4
|
+
const BaseError_1 = require("../errors/BaseError");
|
|
7
5
|
const errors_1 = require("../enums/errors");
|
|
8
|
-
class BusinessError extends BaseError_1.
|
|
6
|
+
class BusinessError extends BaseError_1.BaseError {
|
|
9
7
|
constructor(message, details) {
|
|
10
8
|
super(message);
|
|
11
9
|
this.name = errors_1.Errors.BUSINESS_ERROR;
|
|
@@ -13,5 +11,5 @@ class BusinessError extends BaseError_1.default {
|
|
|
13
11
|
Object.setPrototypeOf(this, BusinessError.prototype);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
|
-
exports.
|
|
14
|
+
exports.BusinessError = BusinessError;
|
|
17
15
|
//# sourceMappingURL=BusinessError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessError.js","sourceRoot":"","sources":["../../src/errors/BusinessError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BusinessError.js","sourceRoot":"","sources":["../../src/errors/BusinessError.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,2CAAwC;AAExC,MAAa,aAAc,SAAQ,qBAAS;IAE1C,YAAmB,OAAe,EAAE,OAAiC;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAM,CAAC,cAAc,CAAC;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF;AARD,sCAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BaseError from '
|
|
2
|
-
export
|
|
1
|
+
import { BaseError } from '../errors/BaseError';
|
|
2
|
+
export declare class ForbiddenError extends BaseError {
|
|
3
3
|
details?: Record<string, unknown>;
|
|
4
4
|
constructor(message: string, details?: Record<string, unknown>);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForbiddenError.d.ts","sourceRoot":"","sources":["../../src/errors/ForbiddenError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"ForbiddenError.d.ts","sourceRoot":"","sources":["../../src/errors/ForbiddenError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,qBAAa,cAAe,SAAQ,SAAS;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtE"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
3
|
+
exports.ForbiddenError = void 0;
|
|
4
|
+
const BaseError_1 = require("../errors/BaseError");
|
|
7
5
|
const errors_1 = require("../enums/errors");
|
|
8
|
-
class ForbiddenError extends BaseError_1.
|
|
6
|
+
class ForbiddenError extends BaseError_1.BaseError {
|
|
9
7
|
constructor(message, details) {
|
|
10
8
|
super(message);
|
|
11
9
|
this.name = errors_1.Errors.FORBIDDEN_ERROR;
|
|
@@ -13,5 +11,5 @@ class ForbiddenError extends BaseError_1.default {
|
|
|
13
11
|
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
|
-
exports.
|
|
14
|
+
exports.ForbiddenError = ForbiddenError;
|
|
17
15
|
//# sourceMappingURL=ForbiddenError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForbiddenError.js","sourceRoot":"","sources":["../../src/errors/ForbiddenError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ForbiddenError.js","sourceRoot":"","sources":["../../src/errors/ForbiddenError.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,2CAAwC;AAExC,MAAa,cAAe,SAAQ,qBAAS;IAE3C,YAAmB,OAAe,EAAE,OAAiC;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAM,CAAC,eAAe,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;CACF;AARD,wCAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BaseError from '
|
|
2
|
-
export
|
|
1
|
+
import { BaseError } from '../errors/BaseError';
|
|
2
|
+
export declare class NotFoundError extends BaseError {
|
|
3
3
|
details?: Record<string, unknown>;
|
|
4
4
|
constructor(message: string, details?: Record<string, unknown>);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotFoundError.d.ts","sourceRoot":"","sources":["../../src/errors/NotFoundError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"NotFoundError.d.ts","sourceRoot":"","sources":["../../src/errors/NotFoundError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,qBAAa,aAAc,SAAQ,SAAS;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtE"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
3
|
+
exports.NotFoundError = void 0;
|
|
4
|
+
const BaseError_1 = require("../errors/BaseError");
|
|
7
5
|
const errors_1 = require("../enums/errors");
|
|
8
|
-
class NotFoundError extends BaseError_1.
|
|
6
|
+
class NotFoundError extends BaseError_1.BaseError {
|
|
9
7
|
constructor(message, details) {
|
|
10
8
|
super(message);
|
|
11
9
|
this.name = errors_1.Errors.NOT_FOUND_ERROR;
|
|
@@ -13,5 +11,5 @@ class NotFoundError extends BaseError_1.default {
|
|
|
13
11
|
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
|
-
exports.
|
|
14
|
+
exports.NotFoundError = NotFoundError;
|
|
17
15
|
//# sourceMappingURL=NotFoundError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NotFoundError.js","sourceRoot":"","sources":["../../src/errors/NotFoundError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NotFoundError.js","sourceRoot":"","sources":["../../src/errors/NotFoundError.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,2CAAwC;AAExC,MAAa,aAAc,SAAQ,qBAAS;IAE1C,YAAmB,OAAe,EAAE,OAAiC;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAM,CAAC,eAAe,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IACvD,CAAC;CACF;AARD,sCAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BaseError from '
|
|
2
|
-
export
|
|
1
|
+
import { BaseError } from '../errors/BaseError';
|
|
2
|
+
export declare class ServerError extends BaseError {
|
|
3
3
|
details?: Record<string, unknown>;
|
|
4
4
|
constructor(message: string, details?: Record<string, unknown>);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/errors/ServerError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/errors/ServerError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,qBAAa,WAAY,SAAQ,SAAS;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtE"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
3
|
+
exports.ServerError = void 0;
|
|
4
|
+
const BaseError_1 = require("../errors/BaseError");
|
|
7
5
|
const errors_1 = require("../enums/errors");
|
|
8
|
-
class ServerError extends BaseError_1.
|
|
6
|
+
class ServerError extends BaseError_1.BaseError {
|
|
9
7
|
constructor(message, details) {
|
|
10
8
|
super(message);
|
|
11
9
|
this.name = errors_1.Errors.SERVER_ERROR;
|
|
@@ -13,5 +11,5 @@ class ServerError extends BaseError_1.default {
|
|
|
13
11
|
Object.setPrototypeOf(this, ServerError.prototype);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
|
-
exports.
|
|
14
|
+
exports.ServerError = ServerError;
|
|
17
15
|
//# sourceMappingURL=ServerError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerError.js","sourceRoot":"","sources":["../../src/errors/ServerError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerError.js","sourceRoot":"","sources":["../../src/errors/ServerError.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,2CAAwC;AAExC,MAAa,WAAY,SAAQ,qBAAS;IAExC,YAAmB,OAAe,EAAE,OAAiC;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAM,CAAC,YAAY,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;CACF;AARD,kCAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import BaseError from '
|
|
2
|
-
export
|
|
1
|
+
import { BaseError } from '../errors/BaseError';
|
|
2
|
+
export declare class UnauthorizedError extends BaseError {
|
|
3
3
|
details?: Record<string, unknown>;
|
|
4
4
|
constructor(message: string, details?: Record<string, unknown>);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnauthorizedError.d.ts","sourceRoot":"","sources":["../../src/errors/UnauthorizedError.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"UnauthorizedError.d.ts","sourceRoot":"","sources":["../../src/errors/UnauthorizedError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,qBAAa,iBAAkB,SAAQ,SAAS;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtB,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMtE"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
3
|
+
exports.UnauthorizedError = void 0;
|
|
4
|
+
const BaseError_1 = require("../errors/BaseError");
|
|
7
5
|
const errors_1 = require("../enums/errors");
|
|
8
|
-
class UnauthorizedError extends BaseError_1.
|
|
6
|
+
class UnauthorizedError extends BaseError_1.BaseError {
|
|
9
7
|
constructor(message, details) {
|
|
10
8
|
super(message);
|
|
11
9
|
this.name = errors_1.Errors.UNAUTHORIZED_ERROR;
|
|
@@ -13,5 +11,5 @@ class UnauthorizedError extends BaseError_1.default {
|
|
|
13
11
|
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
|
-
exports.
|
|
14
|
+
exports.UnauthorizedError = UnauthorizedError;
|
|
17
15
|
//# sourceMappingURL=UnauthorizedError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnauthorizedError.js","sourceRoot":"","sources":["../../src/errors/UnauthorizedError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UnauthorizedError.js","sourceRoot":"","sources":["../../src/errors/UnauthorizedError.ts"],"names":[],"mappings":";;;AAAA,kDAA+C;AAC/C,2CAAwC;AAExC,MAAa,iBAAkB,SAAQ,qBAAS;IAE9C,YAAmB,OAAe,EAAE,OAAiC;QACnE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,eAAM,CAAC,kBAAkB,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACF;AARD,8CAQC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,4 +7,6 @@ export * from './errors/BaseError';
|
|
|
7
7
|
export * from './errors/BusinessError';
|
|
8
8
|
export * from './errors/ForbiddenError';
|
|
9
9
|
export * from './errors/NotFoundError';
|
|
10
|
+
export * from './errors/ServerError';
|
|
11
|
+
export * from './errors/UnauthorizedError';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,gBAAgB,CAAC;AAG/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAGlD,cAAc,gBAAgB,CAAC;AAG/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,4 +23,6 @@ __exportStar(require("./errors/BaseError"), exports);
|
|
|
23
23
|
__exportStar(require("./errors/BusinessError"), exports);
|
|
24
24
|
__exportStar(require("./errors/ForbiddenError"), exports);
|
|
25
25
|
__exportStar(require("./errors/NotFoundError"), exports);
|
|
26
|
+
__exportStar(require("./errors/ServerError"), exports);
|
|
27
|
+
__exportStar(require("./errors/UnauthorizedError"), exports);
|
|
26
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,+DAA6C;AAC7C,0EAAwD;AACxD,mEAAiD;AACjD,oEAAkD;AAGlD,iDAA+B;AAG/B,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,+DAA6C;AAC7C,0EAAwD;AACxD,mEAAiD;AACjD,oEAAkD;AAGlD,iDAA+B;AAG/B,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,yDAAuC;AACvC,uDAAqC;AACrC,6DAA2C"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ipetsadmin/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Shared types, enums, and interfaces for Truffa projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"files": [
|
|
8
15
|
"dist",
|
|
9
16
|
"README.md",
|