@cqse/commons 1.0.0-beta.4 → 1.0.0-beta.5
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/lib/Exceptions.d.ts +1 -1
- package/lib/Exceptions.d.ts.map +1 -1
- package/lib/Exceptions.js +3 -4
- package/lib/Exceptions.js.map +1 -1
- package/package.json +1 -16
package/lib/Exceptions.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This is helpful for writing prototypes and not yet handling all possible cases.
|
|
6
6
|
*/
|
|
7
7
|
export declare class ImplementMeException extends Error {
|
|
8
|
-
private readonly _implementMeFor
|
|
8
|
+
private readonly _implementMeFor?;
|
|
9
9
|
constructor(implementMeFor?: string);
|
|
10
10
|
get message(): string;
|
|
11
11
|
}
|
package/lib/Exceptions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exceptions.d.ts","sourceRoot":"","sources":["../src/Exceptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Exceptions.d.ts","sourceRoot":"","sources":["../src/Exceptions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,oBAAqB,SAAQ,KAAK;IAC9C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAS;gBAE9B,cAAc,CAAC,EAAE,MAAM;IAKnC,IAAI,OAAO,IAAI,MAAM,CAMpB;CACD;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,KAAK;CAAG;AAEnD;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;CAAG;AAEtD;;GAEG;AACH,qBAAa,6BAA8B,SAAQ,KAAK;CAAG"}
|
package/lib/Exceptions.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidConfigurationException = exports.IllegalArgumentException = exports.IllegalStateException = exports.ImplementMeException = void 0;
|
|
4
|
-
const typescript_optional_1 = require("typescript-optional");
|
|
5
4
|
/**
|
|
6
5
|
* Excepting signaling that there is functionality that is supposed
|
|
7
6
|
* to be implemented in case the exception is thrown.
|
|
@@ -11,11 +10,11 @@ const typescript_optional_1 = require("typescript-optional");
|
|
|
11
10
|
class ImplementMeException extends Error {
|
|
12
11
|
constructor(implementMeFor) {
|
|
13
12
|
super('Implement me!');
|
|
14
|
-
this._implementMeFor =
|
|
13
|
+
this._implementMeFor = implementMeFor;
|
|
15
14
|
}
|
|
16
15
|
get message() {
|
|
17
|
-
if (this._implementMeFor
|
|
18
|
-
return `Implement me for: ${this._implementMeFor
|
|
16
|
+
if (this._implementMeFor) {
|
|
17
|
+
return `Implement me for: ${this._implementMeFor}`;
|
|
19
18
|
}
|
|
20
19
|
else {
|
|
21
20
|
return 'Implement me!';
|
package/lib/Exceptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exceptions.js","sourceRoot":"","sources":["../src/Exceptions.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"Exceptions.js","sourceRoot":"","sources":["../src/Exceptions.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,MAAa,oBAAqB,SAAQ,KAAK;IAG9C,YAAY,cAAuB;QAClC,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,IAAI,OAAO;QACV,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC;YAC1B,OAAO,qBAAqB,IAAI,CAAC,eAAe,EAAE,CAAC;QACpD,CAAC;aAAM,CAAC;YACP,OAAO,eAAe,CAAC;QACxB,CAAC;IACF,CAAC;CACD;AAfD,oDAeC;AAED;;GAEG;AACH,MAAa,qBAAsB,SAAQ,KAAK;CAAG;AAAnD,sDAAmD;AAEnD;;GAEG;AACH,MAAa,wBAAyB,SAAQ,KAAK;CAAG;AAAtD,4DAAsD;AAEtD;;GAEG;AACH,MAAa,6BAA8B,SAAQ,KAAK;CAAG;AAA3D,sEAA2D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cqse/commons",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.5",
|
|
4
4
|
"description": "A collection of generic functionality for TypeScript projects.",
|
|
5
5
|
"author": "CQSE GmbH",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -10,21 +10,6 @@
|
|
|
10
10
|
"dist/**/*",
|
|
11
11
|
"lib/**/*"
|
|
12
12
|
],
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"typescript-optional": "^2.0.1"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@babel/core": "^7.26.8",
|
|
18
|
-
"@babel/preset-env": "^7.26.8",
|
|
19
|
-
"@types/jest": "^29.5.14",
|
|
20
|
-
"@types/node": "^22.13.4",
|
|
21
|
-
"babel-jest": "^29.7.0",
|
|
22
|
-
"jest": "^29.7.0",
|
|
23
|
-
"rimraf": "^6.0.1",
|
|
24
|
-
"ts-jest": "^29.2.5",
|
|
25
|
-
"ts-node": "^10.9.2",
|
|
26
|
-
"typescript": "^5.7.3"
|
|
27
|
-
},
|
|
28
13
|
"publishConfig": {
|
|
29
14
|
"access": "public"
|
|
30
15
|
},
|