@tinywork/glass 1.0.18 → 1.0.19

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.
Files changed (2) hide show
  1. package/index.d.ts +4 -11
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -391,19 +391,12 @@ declare global {
391
391
  setItem<T>(key: string, value: T): IGlassExtensionInvokeResponse<void>;
392
392
 
393
393
  /** 保存cookie */
394
- setCookie(params: {
395
- name: string;
396
- origin?: string;
397
- path?: string;
398
- value: string;
399
- }): IGlassExtensionInvokeResponse<void>;
394
+ setCookie(params: Cookie): IGlassExtensionInvokeResponse<void>;
400
395
 
401
396
  /** 获取cookie */
402
- getCookie(params: {
403
- name: string;
404
- origin?: string;
405
- path?: string;
406
- }): IGlassExtensionInvokeResponse<string>;
397
+ getCookie(
398
+ params: Omit<Cookie, "value">
399
+ ): IGlassExtensionInvokeResponse<string>;
407
400
 
408
401
  /** 保存文档组 */
409
402
  saveGroup(group: GroupSchema): IGlassExtensionInvokeResponse<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [