@blocklet/did-space-js 1.0.49 → 1.0.51

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.
@@ -28,8 +28,7 @@ const libs_1 = require("../../libs");
28
28
  const post_objects_sync_command_1 = require("../audit-log/post-objects-sync-command");
29
29
  const put_objects_sync_command_1 = require("../audit-log/put-objects-sync-command");
30
30
  const { name, version } = require('../../../package.json');
31
- let debug = (0, debug_1.default)(`${name}@${version}:sync-folder-push`);
32
- debug = console.error;
31
+ const debug = (0, debug_1.default)(`${name}@${version}:sync-folder-push`);
33
32
  /**
34
33
  * @see s3 sync https://stackoverflow.com/questions/27932345/downloading-folders-from-aws-s3-cp-or-sync
35
34
  * @see 具有 Keep-alive 和连接重用的 NodeJS https://azureossd.github.io/2022/03/10/NodeJS-with-Keep-Alives-and-Connection-Reuse/index.html
@@ -100,29 +100,29 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
100
100
  did: z.ZodEffects<z.ZodString, string, string>;
101
101
  } & {
102
102
  template: z.ZodLiteral<"post">;
103
- title: z.ZodString;
103
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
104
104
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
105
105
  url: z.ZodString;
106
106
  createdAt: z.ZodEffects<z.ZodString, string, string>;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  template: "post";
109
109
  did: string;
110
- title: string;
111
110
  tags: string[];
112
111
  url: string;
113
112
  createdAt: string;
113
+ title?: string | undefined;
114
114
  }, {
115
115
  template: "post";
116
116
  did: string;
117
- title: string;
118
117
  url: string;
119
118
  createdAt: string;
119
+ title?: string | undefined;
120
120
  tags?: string[] | undefined;
121
121
  }>, z.ZodObject<{
122
122
  did: z.ZodEffects<z.ZodString, string, string>;
123
123
  } & {
124
124
  template: z.ZodLiteral<"blog">;
125
- title: z.ZodString;
125
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
126
126
  image: z.ZodString;
127
127
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
128
128
  url: z.ZodString;
@@ -130,24 +130,24 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
130
130
  }, "strip", z.ZodTypeAny, {
131
131
  template: "blog";
132
132
  did: string;
133
- title: string;
134
133
  image: string;
135
134
  tags: string[];
136
135
  url: string;
137
136
  createdAt: string;
137
+ title?: string | undefined;
138
138
  }, {
139
139
  template: "blog";
140
140
  did: string;
141
- title: string;
142
141
  image: string;
143
142
  url: string;
144
143
  createdAt: string;
144
+ title?: string | undefined;
145
145
  tags?: string[] | undefined;
146
146
  }>, z.ZodObject<{
147
147
  did: z.ZodEffects<z.ZodString, string, string>;
148
148
  } & {
149
149
  template: z.ZodLiteral<"bookmark">;
150
- title: z.ZodString;
150
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
151
151
  image: z.ZodString;
152
152
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
153
153
  url: z.ZodString;
@@ -155,18 +155,18 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
155
155
  }, "strip", z.ZodTypeAny, {
156
156
  template: "bookmark";
157
157
  did: string;
158
- title: string;
159
158
  image: string;
160
159
  tags: string[];
161
160
  url: string;
162
161
  createdAt: string;
162
+ title?: string | undefined;
163
163
  }, {
164
164
  template: "bookmark";
165
165
  did: string;
166
- title: string;
167
166
  image: string;
168
167
  url: string;
169
168
  createdAt: string;
169
+ title?: string | undefined;
170
170
  tags?: string[] | undefined;
171
171
  }>, z.ZodObject<{
172
172
  did: z.ZodEffects<z.ZodString, string, string>;
@@ -197,7 +197,7 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
197
197
  did: z.ZodEffects<z.ZodString, string, string>;
198
198
  } & {
199
199
  template: z.ZodLiteral<"doc">;
200
- title: z.ZodString;
200
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, string | undefined>;
201
201
  image: z.ZodString;
202
202
  tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
203
203
  url: z.ZodString;
@@ -205,18 +205,18 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
205
205
  }, "strip", z.ZodTypeAny, {
206
206
  template: "doc";
207
207
  did: string;
208
- title: string;
209
208
  image: string;
210
209
  tags: string[];
211
210
  url: string;
212
211
  createdAt: string;
212
+ title?: string | undefined;
213
213
  }, {
214
214
  template: "doc";
215
215
  did: string;
216
- title: string;
217
216
  image: string;
218
217
  url: string;
219
218
  createdAt: string;
219
+ title?: string | undefined;
220
220
  tags?: string[] | undefined;
221
221
  }>]>;
222
222
  /**
@@ -279,26 +279,26 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
279
279
  } | {
280
280
  template: "post";
281
281
  did: string;
282
- title: string;
283
282
  tags: string[];
284
283
  url: string;
285
284
  createdAt: string;
285
+ title?: string | undefined;
286
286
  } | {
287
287
  template: "blog";
288
288
  did: string;
289
- title: string;
290
289
  image: string;
291
290
  tags: string[];
292
291
  url: string;
293
292
  createdAt: string;
293
+ title?: string | undefined;
294
294
  } | {
295
295
  template: "bookmark";
296
296
  did: string;
297
- title: string;
298
297
  image: string;
299
298
  tags: string[];
300
299
  url: string;
301
300
  createdAt: string;
301
+ title?: string | undefined;
302
302
  } | {
303
303
  template: "project";
304
304
  did: string;
@@ -310,11 +310,11 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
310
310
  } | {
311
311
  template: "doc";
312
312
  did: string;
313
- title: string;
314
313
  image: string;
315
314
  tags: string[];
316
315
  url: string;
317
316
  createdAt: string;
317
+ title?: string | undefined;
318
318
  };
319
319
  metadata: Record<string, any>;
320
320
  key: string;
@@ -356,25 +356,25 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
356
356
  } | {
357
357
  template: "post";
358
358
  did: string;
359
- title: string;
360
359
  url: string;
361
360
  createdAt: string;
361
+ title?: string | undefined;
362
362
  tags?: string[] | undefined;
363
363
  } | {
364
364
  template: "blog";
365
365
  did: string;
366
- title: string;
367
366
  image: string;
368
367
  url: string;
369
368
  createdAt: string;
369
+ title?: string | undefined;
370
370
  tags?: string[] | undefined;
371
371
  } | {
372
372
  template: "bookmark";
373
373
  did: string;
374
- title: string;
375
374
  image: string;
376
375
  url: string;
377
376
  createdAt: string;
377
+ title?: string | undefined;
378
378
  tags?: string[] | undefined;
379
379
  } | {
380
380
  template: "project";
@@ -387,10 +387,10 @@ export declare const PutPreviewObjectCommandInputSchema: z.ZodObject<{
387
387
  } | {
388
388
  template: "doc";
389
389
  did: string;
390
- title: string;
391
390
  image: string;
392
391
  url: string;
393
392
  createdAt: string;
393
+ title?: string | undefined;
394
394
  tags?: string[] | undefined;
395
395
  };
396
396
  key: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/did-space-js",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,14 +29,14 @@
29
29
  "link": "yarn link"
30
30
  },
31
31
  "dependencies": {
32
- "@arcblock/did": "^1.20.4",
33
- "@arcblock/jwt": "^1.20.4",
34
- "@arcblock/validator": "^1.20.4",
32
+ "@arcblock/did": "^1.20.6",
33
+ "@arcblock/jwt": "^1.20.6",
34
+ "@arcblock/validator": "^1.20.6",
35
35
  "@blocklet/env": "^1.16.42",
36
- "@did-space/core": "^1.0.49",
37
- "@ocap/mcrypto": "^1.20.4",
38
- "@ocap/util": "^1.20.4",
39
- "@ocap/wallet": "^1.20.4",
36
+ "@did-space/core": "^1.0.51",
37
+ "@ocap/mcrypto": "^1.20.6",
38
+ "@ocap/util": "^1.20.6",
39
+ "@ocap/wallet": "^1.20.6",
40
40
  "agentkeepalive": "^4.6.0",
41
41
  "axios": "^1.9.0",
42
42
  "base64-url": "^2.3.3",
@@ -58,7 +58,7 @@
58
58
  "p-queue": "6.6.2",
59
59
  "ufo": "^1.6.1",
60
60
  "xbytes": "^1.9.1",
61
- "zod": "^3.24.3"
61
+ "zod": "^3.24.4"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@arcblock/eslint-config-ts": "^0.3.3",
@@ -77,5 +77,5 @@
77
77
  "ts-jest": "^28.0.8",
78
78
  "typescript": "^4.9.5"
79
79
  },
80
- "gitHead": "7ca23ad7266d76c9cea2df49787f1964ad78b06b"
80
+ "gitHead": "c75ad031a81d00ddc1d93bedb8a459ec5e46cbb1"
81
81
  }