@colabo-utils/i-verify 0.1.7 → 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 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
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});class e extends Error{constructor(e=""){super(),this.message=e}}const s=e;exports.MODULE_NAME="@colabo-flow/i-core",exports.assert=(e,r)=>{if(!e)throw new s(r)},exports.assertIsDefined=function(e,r){if(null==e)throw new s(`Expected 'val' to be defined, but received ${e}. Error message: ${r}`)};
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
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sources":["../../lib/assertion.ts","../../lib/params.ts"],"sourcesContent":["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;\nexport const assert: Assert = (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","export const MODULE_NAME: string = \"@colabo-flow/i-core\";\n"],"names":["CAssertionError","Error","constructor","message","super","this","AssertionError","condition","val"],"mappings":"oEAaA,MAAMA,UAAwBC,MAC7BC,YAAmBC,EAAkB,IACpCC,QADkBC,KAAOF,QAAPA,CAElB,EAGF,MAAMG,EAAiBN,sBCnBY,qCD0BL,CAACO,EAAoBJ,KAClD,IAAKI,EACJ,MAAM,IAAID,EAAeH,EACzB,0BAGc,SAAmBK,EAAoBL,GACtD,GAAIK,QACH,MAAM,IAAIF,EAAe,8CAA8CE,qBAAuBL,IAEhG"}
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
- const e="@colabo-flow/i-core";class o extends Error{constructor(e=""){super(),this.message=e}}const r=o,t=(e,o)=>{if(!e)throw new r(o)};function s(e,o){if(null==e)throw new r(`Expected 'val' to be defined, but received ${e}. Error message: ${o}`)}export{e as MODULE_NAME,t as assert,s as assertIsDefined};
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
@@ -1 +1,7 @@
1
- {"version":3,"file":"index.js","sources":["../../lib/params.ts","../../lib/assertion.ts"],"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;\nexport const assert: Assert = (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"],"names":["MODULE_NAME","CAssertionError","Error","constructor","message","super","this","AssertionError","assert","condition","assertIsDefined","val"],"mappings":"AAAO,MAAMA,EAAsB,sBCanC,MAAMC,UAAwBC,MAC7BC,YAAmBC,EAAkB,IACpCC,QADkBC,KAAOF,QAAPA,CAElB,EAGF,MAAMG,EAAiBN,EAOVO,EAAiB,CAACC,EAAoBL,KAClD,IAAKK,EACJ,MAAM,IAAIF,EAAeH,EACzB,EAGc,SAAAM,EAAmBC,EAAoBP,GACtD,GAAIO,QACH,MAAM,IAAIJ,EAAe,8CAA8CI,qBAAuBP,IAEhG"}
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,2 @@
1
+ declare const _exports: any;
2
+ export = _exports;
@@ -0,0 +1,3 @@
1
+ export var MODULE_NAME: string;
2
+ export function assert(condition: any, message: any): void;
3
+ export function assertIsDefined(val: any, message: any): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1,2 @@
1
- export { MODULE_NAME } from "./lib/params";
2
- export * from "./lib/assertion";
1
+ export { MODULE_NAME } from "./lib/params";
2
+ export * from "./lib/assertion";
@@ -0,0 +1,2 @@
1
+ export declare const assert: (condition: unknown, message?: string) => asserts condition;
2
+ export declare function assertIsDefined<T>(val: T | undefined, message?: string): asserts val is NonNullable<T>;
@@ -1 +1 @@
1
- export declare const MODULE_NAME: string;
1
+ export declare const MODULE_NAME: string;
@@ -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": "0.1.7",
4
+ "version": "1.1.0",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "publishConfig": {
@@ -10,23 +10,34 @@
10
10
  "license": "MIT",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git://github.com/Cha-OS/colabo.git"
13
+ "url": "https://github.com/Cha-OS/colabo"
14
14
  },
15
- "main": "dist/cjs/index.js",
16
- "module": "dist/esm/index.js",
17
- "exports": {
18
- ".": {
19
- "import": "./dist/esm/index.js",
20
- "require": "./dist/cjs/index.js"
21
- }
22
- },
23
- "types": "dist/index.d.ts",
24
- "typings": "dist/index.d.ts",
15
+ "types": "dist/types/index.d.ts",
16
+ "typings": "dist/types/index.d.ts",
25
17
  "files": [
26
- "dist"
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE",
21
+ "CHANGELOG.md"
27
22
  ],
28
23
  "scripts": {
29
- "build": "rollup -c"
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"
30
41
  },
31
42
  "devDependencies": {
32
43
  "@rollup/plugin-commonjs": "^23.0.2",
@@ -37,5 +48,19 @@
37
48
  "rollup-plugin-postcss": "^4.0.2",
38
49
  "rollup-plugin-terser": "^7.0.2",
39
50
  "rollup-plugin-typescript2": "^0.34.1"
51
+ },
52
+ "main": "dist/cjs/index.js",
53
+ "module": "dist/esm/index.js",
54
+ "exports": {
55
+ ".": {
56
+ "types": "./dist/types/index.d.ts",
57
+ "import": "./dist/esm/index.js",
58
+ "require": "./dist/cjs/index.js"
59
+ },
60
+ "./package.json": "./package.json"
61
+ },
62
+ "dependencies": {},
63
+ "nx": {
64
+ "implicitDependencies": []
40
65
  }
41
66
  }
@@ -1,4 +0,0 @@
1
- declare type Assert = (condition: unknown, message?: string) => asserts condition;
2
- export declare const assert: Assert;
3
- export declare function assertIsDefined<T>(val: T | undefined, message?: string): asserts val is NonNullable<T>;
4
- export {};
@@ -1 +0,0 @@
1
- export declare const MODULE_NAME: string;
@@ -1,2 +0,0 @@
1
- export { MODULE_NAME } from "./lib/params";
2
- export * from "./lib/assertion";
@@ -1,4 +0,0 @@
1
- declare type Assert = (condition: unknown, message?: string) => asserts condition;
2
- export declare const assert: Assert;
3
- export declare function assertIsDefined<T>(val: T | undefined, message?: string): asserts val is NonNullable<T>;
4
- export {};
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- declare const MODULE_NAME: string;
2
-
3
- declare type Assert = (condition: unknown, message?: string) => asserts condition;
4
- declare const assert: Assert;
5
- declare function assertIsDefined<T>(val: T | undefined, message?: string): asserts val is NonNullable<T>;
6
-
7
- export { MODULE_NAME, assert, assertIsDefined };