@webiny/utils 5.40.5 → 5.41.0-dbt.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/cacheKey.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference types="node" />
2
2
  import { BinaryToTextEncoding } from "crypto";
3
- export declare type ICacheKeyKeys = Record<string, any> | string | number;
3
+ export type ICacheKeyKeys = Record<string, any> | string | number;
4
4
  export interface ICacheKeyOptions {
5
5
  algorithm?: CacheKeyAlgorithmType;
6
6
  encoding?: BinaryToTextEncoding;
7
7
  }
8
- export declare type CacheKeyAlgorithmType = "md5" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512";
8
+ export type CacheKeyAlgorithmType = "md5" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512";
9
9
  export declare const createCacheKey: (input: ICacheKeyKeys, options?: ICacheKeyOptions) => string;
package/cursor.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type CursorInput = string | number | (string | number)[] | null;
2
- export declare type CursorOutput = string | null;
1
+ export type CursorInput = string | number | (string | number)[] | null;
2
+ export type CursorOutput = string | null;
3
3
  export declare const encodeCursor: (cursor?: CursorInput) => CursorOutput;
4
4
  export declare const decodeCursor: (cursor?: CursorOutput) => CursorInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/utils",
3
- "version": "5.40.5",
3
+ "version": "5.41.0-dbt.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "repository": {
@@ -15,7 +15,7 @@
15
15
  "directory": "dist"
16
16
  },
17
17
  "dependencies": {
18
- "@webiny/error": "5.40.5",
18
+ "@webiny/error": "5.41.0-dbt.0",
19
19
  "mdbid": "1.0.0",
20
20
  "nanoid": "3.3.7",
21
21
  "nanoid-dictionary": "4.3.0",
@@ -27,11 +27,11 @@
27
27
  "@babel/preset-env": "7.24.3",
28
28
  "@babel/preset-typescript": "7.24.1",
29
29
  "@babel/runtime": "7.24.1",
30
- "@webiny/cli": "5.40.5",
31
- "@webiny/project-utils": "5.40.5",
30
+ "@webiny/cli": "5.41.0-dbt.0",
31
+ "@webiny/project-utils": "5.41.0-dbt.0",
32
32
  "rimraf": "5.0.5",
33
33
  "ttypescript": "1.5.15",
34
- "typescript": "4.7.4"
34
+ "typescript": "4.9.5"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "zod": "^3.22.4"
@@ -47,5 +47,5 @@
47
47
  ]
48
48
  }
49
49
  },
50
- "gitHead": "f67778732392ed88f28da869ddacbf08a98cdec6"
50
+ "gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
51
51
  }
@@ -1,4 +1,4 @@
1
- declare type WithoutNullableKeys<Type> = {
1
+ type WithoutNullableKeys<Type> = {
2
2
  [Key in keyof Type]-?: WithoutNullableKeys<NonNullable<Type[Key]>>;
3
3
  };
4
4
  export declare const removeNullValues: <T extends Record<string, any>>(target: T) => WithoutNullableKeys<T>;