@clipboard-health/util-ts 0.3.3 → 0.3.4

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 CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.3.4](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.3...util-ts-0.3.4) (2023-04-28)
6
+
5
7
  ## [0.3.3](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.2...util-ts-0.3.3) (2023-04-26)
6
8
 
7
9
  ## [0.3.2](https://github.com/ClipboardHealth/cbh-core/compare/util-ts-0.3.1...util-ts-0.3.2) (2023-04-26)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/util-ts",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "main": "./src/index.js",
5
5
  "scripts": {
6
6
  "build": "nx build util-ts",
@@ -1,4 +1,4 @@
1
- import { NonEmptyArray, OneOrNonEmptyArray } from "./non-empty-array";
1
+ import { type NonEmptyArray, type OneOrNonEmptyArray } from "./non-empty-array";
2
2
  export type CbhIssue = {
3
3
  cause?: Error;
4
4
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cbh-error.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/cbh-error.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;gBAEpC,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC;CASjD"}
1
+ {"version":3,"file":"cbh-error.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/cbh-error.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAExB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;gBAEpC,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC;CASjD"}
@@ -1,3 +1,3 @@
1
1
  /** Force cast to the provided type. */
2
- export declare function forceCast<T>(val: unknown): T;
2
+ export declare function forceCast<T>(value: unknown): T;
3
3
  //# sourceMappingURL=force-cast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"force-cast.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/force-cast.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,OAAO,GAAG,CAAC,CAE5C"}
1
+ {"version":3,"file":"force-cast.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/force-cast.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,CAAC,CAE9C"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.forceCast = void 0;
4
4
  /** Force cast to the provided type. */
5
- function forceCast(val) {
6
- return val;
5
+ function forceCast(value) {
6
+ return value;
7
7
  }
8
8
  exports.forceCast = forceCast;
9
9
  //# sourceMappingURL=force-cast.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"force-cast.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/force-cast.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,SAAgB,SAAS,CAAI,GAAY;IACvC,OAAO,GAAQ,CAAC;AAClB,CAAC;AAFD,8BAEC"}
1
+ {"version":3,"file":"force-cast.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/force-cast.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,SAAgB,SAAS,CAAI,KAAc;IACzC,OAAO,KAAU,CAAC;AACpB,CAAC;AAFD,8BAEC"}
@@ -1,2 +1,2 @@
1
- export declare function isNullOrUndefined(val: unknown): val is null | undefined;
1
+ export declare function isNullOrUndefined(value: unknown): value is null | undefined;
2
2
  //# sourceMappingURL=is-null-or-undefined.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-null-or-undefined.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/is-null-or-undefined.ts"],"names":[],"mappings":"AACA,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,IAAI,GAAG,SAAS,CAEvE"}
1
+ {"version":3,"file":"is-null-or-undefined.d.ts","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/is-null-or-undefined.ts"],"names":[],"mappings":"AACA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,SAAS,CAE3E"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isNullOrUndefined = void 0;
4
4
  // eslint-disable-next-line @typescript-eslint/ban-types
5
- function isNullOrUndefined(val) {
6
- return val === null || val === undefined;
5
+ function isNullOrUndefined(value) {
6
+ return value === null || value === undefined;
7
7
  }
8
8
  exports.isNullOrUndefined = isNullOrUndefined;
9
9
  //# sourceMappingURL=is-null-or-undefined.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-null-or-undefined.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/is-null-or-undefined.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,SAAgB,iBAAiB,CAAC,GAAY;IAC5C,OAAO,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,CAAC;AAC3C,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"is-null-or-undefined.js","sourceRoot":"","sources":["../../../../../packages/util-ts/src/lib/is-null-or-undefined.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,SAAgB,iBAAiB,CAAC,KAAc;IAC9C,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;AAC/C,CAAC;AAFD,8CAEC"}