@pexip-engage-public/utils 0.2.6 → 0.2.8

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
@@ -1,5 +1,17 @@
1
1
  # @pexip-engage/utils
2
2
 
3
+ ## 0.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - 1271897: fix(deps): update all non-major dependencies
8
+
9
+ ## 0.2.7
10
+
11
+ ### Patch Changes
12
+
13
+ - b698aac: Update all non-major dependencies
14
+
3
15
  ## 0.2.6
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  export declare function createTypeGuard<Constraint extends string>(map: Record<Constraint, string | true>): {
2
- typeguard: (value?: unknown) => value is Constraint;
2
+ typeguard(value?: unknown): value is Constraint;
3
3
  values: [Constraint, ...Constraint[]];
4
4
  };
5
5
  //# sourceMappingURL=type-guard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type-guard.d.ts","sourceRoot":"","sources":["../src/type-guard.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,UAAU,SAAS,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7F,SAAS,WAA2B,OAAO,KAAG,KAAK,IAAI,UAAU;IAGjE,MAAM;EAET"}
1
+ {"version":3,"file":"type-guard.d.ts","sourceRoot":"","sources":["../src/type-guard.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,UAAU,SAAS,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7F,SAAS,SAAS,OAAO,GAAG,KAAK,IAAI,UAAU;IAG/C,MAAM;EAET"}
@@ -1,7 +1,7 @@
1
1
  import { keys } from "./object.js";
2
2
  export function createTypeGuard(map) {
3
3
  return {
4
- typeguard: function isValue(value) {
4
+ typeguard(value) {
5
5
  return typeof value === "string" && value in map;
6
6
  },
7
7
  values: keys(map),
@@ -1 +1 @@
1
- {"version":3,"file":"type-guard.js","sourceRoot":"","sources":["../src/type-guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,UAAU,eAAe,CAA4B,GAAsC;IAC/F,OAAO;QACL,SAAS,EAAE,SAAS,OAAO,CAAC,KAAe;YACzC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,GAAG,CAAC;QACnD,CAAC;QACD,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC;KAClB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"type-guard.js","sourceRoot":"","sources":["../src/type-guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,UAAU,eAAe,CAA4B,GAAsC;IAC/F,OAAO;QACL,SAAS,CAAC,KAAe;YACvB,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,GAAG,CAAC;QACnD,CAAC;QACD,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC;KAClB,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pexip-engage-public/utils",
3
- "version": "0.2.6",
3
+ "version": "0.2.8",
4
4
  "description": "Shared utils for Pexip Engage",
5
5
  "homepage": "https://github.com/skedify/frontend-mono/tree/develop/packages/utils#readme",
6
6
  "bugs": {
@@ -38,10 +38,10 @@
38
38
  "registry": "https://registry.npmjs.org"
39
39
  },
40
40
  "dependencies": {
41
- "react": "^19.2.5"
41
+ "react": "^19.2.6"
42
42
  },
43
43
  "devDependencies": {
44
- "vitest": "^4.1.4",
44
+ "vitest": "^4.1.6",
45
45
  "@pexip-engage/tsconfig": "0.1.3"
46
46
  },
47
47
  "scripts": {
package/src/type-guard.ts CHANGED
@@ -2,7 +2,7 @@ import { keys } from "./object.js";
2
2
 
3
3
  export function createTypeGuard<Constraint extends string>(map: Record<Constraint, string | true>) {
4
4
  return {
5
- typeguard: function isValue(value?: unknown): value is Constraint {
5
+ typeguard(value?: unknown): value is Constraint {
6
6
  return typeof value === "string" && value in map;
7
7
  },
8
8
  values: keys(map),