@colabo-utils/i-verify 1.0.0 → 1.1.0
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 +19 -0
- package/dist/cjs/index.js +48 -1
- package/dist/cjs/index.js.map +7 -1
- package/dist/esm/index.js +26 -1
- package/dist/esm/index.js.map +7 -1
- package/dist/types/dist/cjs/index.d.ts +2 -0
- package/dist/types/dist/esm/index.d.ts +3 -0
- package/dist/types/esbuild.d.mts +1 -0
- package/dist/types/rollup.config.d.ts +25 -0
- package/package.json +25 -4
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/lib/assertion.d.ts +0 -2
- package/dist/esm/lib/params.d.ts +0 -1
- package/dist/index.d.ts +0 -6
- /package/dist/{cjs → types}/index.d.ts +0 -0
- /package/dist/{cjs → types}/lib/assertion.d.ts +0 -0
- /package/dist/{cjs → types}/lib/params.d.ts +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# [@colabo-utils/i-verify-v1.1.0](https://github.com/Cha-OS/colabo/compare/@colabo-utils/i-verify-v1.0.0...@colabo-utils/i-verify-v1.1.0) (2025-02-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **@colabo:** :bug: Fixed rollup.config.js to import json files properly ([5a3a6a2](https://github.com/Cha-OS/colabo/commit/5a3a6a2dfedf60e729e61ffbbabb284c0ac470bc))
|
|
7
|
+
* **@colabo:** :bug: Fixed semantic-release to read centralized config ([387e586](https://github.com/Cha-OS/colabo/commit/387e586bfb9e20d85749974e4eff59fe79ea792d))
|
|
8
|
+
* **@colabo:** :bug: Fixed tsconfig types folder ([ea15b9c](https://github.com/Cha-OS/colabo/commit/ea15b9c562136b353ac78f730fcb2ab53a220414))
|
|
9
|
+
* **@colabo:** :bug: Fixed tsconfis for missing extends prop ([a32e995](https://github.com/Cha-OS/colabo/commit/a32e99552c6bfc5bc21635b61134dbc7b01f7690))
|
|
10
|
+
* **@colabo:** :bug: Fixed wrong path to typings ([594ae9c](https://github.com/Cha-OS/colabo/commit/594ae9c7b9fc69f8e863e9b7634050875306ddfe))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **@colabo:** :sparkles: Added live dependencies as "liveDependencies" in package.json files ([0a4e043](https://github.com/Cha-OS/colabo/commit/0a4e043910f9798783c36e359ffec826729f196a))
|
|
16
|
+
* **@colabo:** :sparkles: Added live dependencies into NX nx.implicitDependencies ([ac76050](https://github.com/Cha-OS/colabo/commit/ac76050167e5cfb305b5c7fac8fa7079693b2f44))
|
|
17
|
+
* **@colabo:** :sparkles: Added new scripts to package.json ([5aed9ab](https://github.com/Cha-OS/colabo/commit/5aed9abe85632e73dfa4deff7dbcf8b3a412066c))
|
|
18
|
+
* **@colabo:** :sparkles: Esbuild is puzzles builder ([ea34161](https://github.com/Cha-OS/colabo/commit/ea34161e30a1029b746833d7bb0a0e2f3aa825eb))
|
|
19
|
+
* **@colabo:** :sparkles: Fixed exports in package.json and introduced options for esbuild building ([fd3b665](https://github.com/Cha-OS/colabo/commit/fd3b6658718d7ff469716dff1faf055ed7cf3f16))
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,49 @@
|
|
|
1
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// index.ts
|
|
20
|
+
var index_exports = {};
|
|
21
|
+
__export(index_exports, {
|
|
22
|
+
MODULE_NAME: () => MODULE_NAME,
|
|
23
|
+
assert: () => assert,
|
|
24
|
+
assertIsDefined: () => assertIsDefined
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
|
|
28
|
+
// lib/params.ts
|
|
29
|
+
var MODULE_NAME = "@colabo-flow/i-core";
|
|
30
|
+
|
|
31
|
+
// lib/assertion.ts
|
|
32
|
+
var CAssertionError = class extends Error {
|
|
33
|
+
constructor(message = "") {
|
|
34
|
+
super();
|
|
35
|
+
this.message = message;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var AssertionError = CAssertionError;
|
|
39
|
+
var assert = (condition, message) => {
|
|
40
|
+
if (!condition) {
|
|
41
|
+
throw new AssertionError(message);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
function assertIsDefined(val, message) {
|
|
45
|
+
if (val === void 0 || val === null) {
|
|
46
|
+
throw new AssertionError(`Expected 'val' to be defined, but received ${val}. Error message: ${message}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
2
49
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../index.ts", "../../lib/params.ts", "../../lib/assertion.ts"],
|
|
4
|
+
"sourcesContent": ["export { MODULE_NAME } from \"./lib/params\";\n\nexport * from \"./lib/assertion\";\n", "export const MODULE_NAME: string = \"@colabo-flow/i-core\";\n", "interface IAssertionError extends Error {\n\tname: string;\n\tmessage: string;\n\tstack?: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface AssertionErrorConstructor {\n\t// new (message?: string): IAssertionError;\n\t// (message?: string): IAssertionError;\n\t// readonly prototype: IAssertionError;\n}\n\nclass CAssertionError extends Error implements IAssertionError, AssertionErrorConstructor {\n\tconstructor(public message: string = \"\") {\n\t\tsuper();\n\t}\n}\n// declare let AssertionError: AssertionErrorConstructor;\nconst AssertionError = CAssertionError;\n\n// This is necessary to avoid the error: `Assertions require every name in the call target to be declared with an explicit type annotation.ts(2775)`\n// `assertion.ts(16, 14): 'assert' needs an explicit type annotation.`\n// when using: `assert(pathStr || pathParts, \"Either `pathStr` or `pathParts` should be defined\");` as in [transform.ts](/colabo/src/isomorphic/puzzles/transform/json/lib/transform.ts)\n// https://github.com/microsoft/TypeScript/issues/36931#issuecomment-846131999\ntype Assert = (condition: unknown, message?: string) => asserts condition;\n// export const assert: Assert = (condition: unknown, message?: string): asserts condition => {\n// \tif (!condition) {\n// \t\tthrow new AssertionError(message);\n// \t}\n// };\n\nexport const assert: (condition: unknown, message?: string) => asserts condition = (condition: unknown, message?: string): asserts condition => {\n\tif (!condition) {\n\t\tthrow new AssertionError(message);\n\t}\n};\n\nexport function assertIsDefined<T>(val: T | undefined, message?: string): asserts val is NonNullable<T> {\n\tif (val === undefined || val === null) {\n\t\tthrow new AssertionError(`Expected 'val' to be defined, but received ${val}. Error message: ${message}`);\n\t}\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,cAAsB;;;ACanC,IAAM,kBAAN,cAA8B,MAA4D;AAAA,EACzF,YAAmB,UAAkB,IAAI;AACxC,UAAM;AADY;AAAA,EAEnB;AACD;AAEA,IAAM,iBAAiB;AAahB,IAAM,SAAsE,CAAC,WAAoB,YAAwC;AAC/I,MAAI,CAAC,WAAW;AACf,UAAM,IAAI,eAAe,OAAO;AAAA,EACjC;AACD;AAEO,SAAS,gBAAmB,KAAoB,SAAiD;AACvG,MAAI,QAAQ,UAAa,QAAQ,MAAM;AACtC,UAAM,IAAI,eAAe,8CAA8C,GAAG,oBAAoB,OAAO,EAAE;AAAA,EACxG;AACD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
// lib/params.ts
|
|
2
|
+
var MODULE_NAME = "@colabo-flow/i-core";
|
|
3
|
+
|
|
4
|
+
// lib/assertion.ts
|
|
5
|
+
var CAssertionError = class extends Error {
|
|
6
|
+
constructor(message = "") {
|
|
7
|
+
super();
|
|
8
|
+
this.message = message;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
var AssertionError = CAssertionError;
|
|
12
|
+
var assert = (condition, message) => {
|
|
13
|
+
if (!condition) {
|
|
14
|
+
throw new AssertionError(message);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
function assertIsDefined(val, message) {
|
|
18
|
+
if (val === void 0 || val === null) {
|
|
19
|
+
throw new AssertionError(`Expected 'val' to be defined, but received ${val}. Error message: ${message}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
MODULE_NAME,
|
|
24
|
+
assert,
|
|
25
|
+
assertIsDefined
|
|
26
|
+
};
|
|
2
27
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../lib/params.ts", "../../lib/assertion.ts"],
|
|
4
|
+
"sourcesContent": ["export const MODULE_NAME: string = \"@colabo-flow/i-core\";\n", "interface IAssertionError extends Error {\n\tname: string;\n\tmessage: string;\n\tstack?: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface AssertionErrorConstructor {\n\t// new (message?: string): IAssertionError;\n\t// (message?: string): IAssertionError;\n\t// readonly prototype: IAssertionError;\n}\n\nclass CAssertionError extends Error implements IAssertionError, AssertionErrorConstructor {\n\tconstructor(public message: string = \"\") {\n\t\tsuper();\n\t}\n}\n// declare let AssertionError: AssertionErrorConstructor;\nconst AssertionError = CAssertionError;\n\n// This is necessary to avoid the error: `Assertions require every name in the call target to be declared with an explicit type annotation.ts(2775)`\n// `assertion.ts(16, 14): 'assert' needs an explicit type annotation.`\n// when using: `assert(pathStr || pathParts, \"Either `pathStr` or `pathParts` should be defined\");` as in [transform.ts](/colabo/src/isomorphic/puzzles/transform/json/lib/transform.ts)\n// https://github.com/microsoft/TypeScript/issues/36931#issuecomment-846131999\ntype Assert = (condition: unknown, message?: string) => asserts condition;\n// export const assert: Assert = (condition: unknown, message?: string): asserts condition => {\n// \tif (!condition) {\n// \t\tthrow new AssertionError(message);\n// \t}\n// };\n\nexport const assert: (condition: unknown, message?: string) => asserts condition = (condition: unknown, message?: string): asserts condition => {\n\tif (!condition) {\n\t\tthrow new AssertionError(message);\n\t}\n};\n\nexport function assertIsDefined<T>(val: T | undefined, message?: string): asserts val is NonNullable<T> {\n\tif (val === undefined || val === null) {\n\t\tthrow new AssertionError(`Expected 'val' to be defined, but received ${val}. Error message: ${message}`);\n\t}\n}\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,cAAsB;;;ACanC,IAAM,kBAAN,cAA8B,MAA4D;AAAA,EACzF,YAAmB,UAAkB,IAAI;AACxC,UAAM;AADY;AAAA,EAEnB;AACD;AAEA,IAAM,iBAAiB;AAahB,IAAM,SAAsE,CAAC,WAAoB,YAAwC;AAC/I,MAAI,CAAC,WAAW;AACf,UAAM,IAAI,eAAe,OAAO;AAAA,EACjC;AACD;AAEO,SAAS,gBAAmB,KAAoB,SAAiD;AACvG,MAAI,QAAQ,UAAa,QAAQ,MAAM;AACtC,UAAM,IAAI,eAAe,8CAA8C,GAAG,oBAAoB,OAAO,EAAE;AAAA,EACxG;AACD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export default config;
|
|
2
|
+
declare const config: ({
|
|
3
|
+
input: string;
|
|
4
|
+
output: ({
|
|
5
|
+
file: any;
|
|
6
|
+
format: string;
|
|
7
|
+
sourcemap: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
} | {
|
|
10
|
+
file: any;
|
|
11
|
+
format: string;
|
|
12
|
+
sourcemap: boolean;
|
|
13
|
+
name?: undefined;
|
|
14
|
+
})[];
|
|
15
|
+
plugins: any[];
|
|
16
|
+
external?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
input: string;
|
|
19
|
+
output: {
|
|
20
|
+
file: string;
|
|
21
|
+
format: string;
|
|
22
|
+
}[];
|
|
23
|
+
external: RegExp[];
|
|
24
|
+
plugins: import("rollup").Plugin[];
|
|
25
|
+
})[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colabo-utils/i-verify",
|
|
3
3
|
"description": "Provides verify and assert utilities",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "https://github.com/Cha-OS/colabo"
|
|
14
14
|
},
|
|
15
|
-
"types": "dist/index.d.ts",
|
|
16
|
-
"typings": "dist/index.d.ts",
|
|
15
|
+
"types": "dist/types/index.d.ts",
|
|
16
|
+
"typings": "dist/types/index.d.ts",
|
|
17
17
|
"files": [
|
|
18
18
|
"dist",
|
|
19
19
|
"README.md",
|
|
@@ -21,7 +21,23 @@
|
|
|
21
21
|
"CHANGELOG.md"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "
|
|
24
|
+
"build": "yarn clean && yarn build:esbuild",
|
|
25
|
+
"clean": "rm -rf dist",
|
|
26
|
+
"build:rollup": "rollup -c",
|
|
27
|
+
"build:esbuild": "node esbuild.mjs",
|
|
28
|
+
"echo_name": "echo 'Paths: '; echo \"LERNA_ROOT_PATH: $LERNA_ROOT_PATH\"; echo \"LERNA_EXEC_PATH: $LERNA_EXEC_PATH\"; echo \"LERNA_PACKAGE_NAME: $LERNA_PACKAGE_NAME\"",
|
|
29
|
+
"install_deps": "yarn install",
|
|
30
|
+
"update_ver_deps": "tsx scripts/update-dependencies-versions.ts --package $LERNA_PACKAGE_NAME",
|
|
31
|
+
"deploy": "yarn install",
|
|
32
|
+
"_build": "yarn clean && yarn build:esbuild",
|
|
33
|
+
"package_build": "yarn clean && yarn build:esbuild",
|
|
34
|
+
"package_check": "tsx $COLABO_FOLDER/scripts/check-package.ts --configPath=\"$COLABO_FOLDER/scripts/config\"",
|
|
35
|
+
"package_pre_publish": "tsx $COLABO_FOLDER/scripts/pre-publish/single.ts",
|
|
36
|
+
"package_semantic_release": "npx --no-install semantic-release --branches=\"main,master,next,beta,alpha,2024.11.10-NUI-Chat, 2025.01.25-workspace-publishing-global\" --no-ci --debug -e semantic-release-monorepo",
|
|
37
|
+
"package_post_publish": "tsx $COLABO_FOLDER/scripts/post-publish/single.ts",
|
|
38
|
+
"package_publish": "echo \"Publishing the package: ${npm_package_name}\"",
|
|
39
|
+
"package_update_dependencies_versions": "tsx $COLABO_FOLDER/scripts/update-dependencies-versions/single.ts",
|
|
40
|
+
"package_install": "yarn install"
|
|
25
41
|
},
|
|
26
42
|
"devDependencies": {
|
|
27
43
|
"@rollup/plugin-commonjs": "^23.0.2",
|
|
@@ -37,9 +53,14 @@
|
|
|
37
53
|
"module": "dist/esm/index.js",
|
|
38
54
|
"exports": {
|
|
39
55
|
".": {
|
|
56
|
+
"types": "./dist/types/index.d.ts",
|
|
40
57
|
"import": "./dist/esm/index.js",
|
|
41
58
|
"require": "./dist/cjs/index.js"
|
|
42
59
|
},
|
|
43
60
|
"./package.json": "./package.json"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {},
|
|
63
|
+
"nx": {
|
|
64
|
+
"implicitDependencies": []
|
|
44
65
|
}
|
|
45
66
|
}
|
package/dist/esm/index.d.ts
DELETED
package/dist/esm/lib/params.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MODULE_NAME: string;
|
package/dist/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
declare const MODULE_NAME: string;
|
|
2
|
-
|
|
3
|
-
declare const assert: (condition: unknown, message?: string) => asserts condition;
|
|
4
|
-
declare function assertIsDefined<T>(val: T | undefined, message?: string): asserts val is NonNullable<T>;
|
|
5
|
-
|
|
6
|
-
export { MODULE_NAME, assert, assertIsDefined };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|