@alanszp/core 17.1.1 → 18.0.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/dist/types.d.ts CHANGED
@@ -6,3 +6,5 @@ export type RequiredNull<T> = {
6
6
  };
7
7
  export type Ensure<T, K extends keyof T> = T & RequiredNotNull<Pick<T, K>>;
8
8
  export type EnsureNull<T, K extends keyof T> = T & RequiredNull<Pick<T, K>>;
9
+ export declare function isNonEmptyString(elem: unknown): elem is string;
10
+ export declare function hasOwnProperty<X extends object, Y extends PropertyKey>(obj: X, prop: Y): obj is X & Record<Y, unknown>;
package/dist/types.js CHANGED
@@ -1,3 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isNonEmptyString = isNonEmptyString;
4
+ exports.hasOwnProperty = hasOwnProperty;
5
+ function isNonEmptyString(elem) {
6
+ return typeof elem === "string" && elem.length > 0;
7
+ }
8
+ // eslint-disable-next-line @typescript-eslint/ban-types
9
+ function hasOwnProperty(obj, prop) {
10
+ return obj.hasOwnProperty(prop);
11
+ }
3
12
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;AAYA,4CAEC;AAGD,wCAKC;AAVD,SAAgB,gBAAgB,CAAC,IAAa;IAC5C,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;AACrD,CAAC;AAED,wDAAwD;AACxD,SAAgB,cAAc,CAC5B,GAAM,EACN,IAAO;IAEP,OAAO,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alanszp/core",
3
- "version": "17.1.1",
3
+ "version": "18.0.0",
4
4
  "description": "Alan's core TS/JS lib.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "@types/node": "^20.11.17",
26
26
  "jest": "^29.7.0"
27
27
  },
28
- "gitHead": "6e31796ce37adcafc64671694660ce63461d548c"
28
+ "gitHead": "f32d7a2aff31ce70bdedfe93732e839d5bc03721"
29
29
  }