@xsai/shared 0.0.10 → 0.0.11

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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 藍+85CD
3
+ Copyright (c) 2024 Moeru AI
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.ts CHANGED
@@ -12,9 +12,7 @@ declare const objCamelToSnake: (obj: Record<string, unknown>) => {
12
12
  [k: string]: unknown;
13
13
  };
14
14
 
15
- declare const clean: (record: Record<string, undefined | unknown>) => {
16
- [k: string]: unknown;
17
- };
15
+ declare const clean: <T extends Record<string, undefined | unknown> = Record<string, unknown>>(record: T) => Record<keyof T, Exclude<T[keyof T], unknown>>;
18
16
 
19
17
  declare const requestUrl: (path: string, base?: string | URL) => URL;
20
18
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@xsai/shared",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
- "author": "藍+85CD",
5
+ "author": "Moeru AI",
6
6
  "license": "MIT",
7
- "homepage": "https://github.com/moeru-ai/xsai",
7
+ "homepage": "https://xsai.js.org",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/moeru-ai/xsai.git",