@nocobase/plugin-verification 2.1.0-beta.21 → 2.1.0-beta.23

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.
@@ -238,37 +238,13 @@ class Client {
238
238
  let types = constructor.types();
239
239
  // let constructor = <any>output.constructor;
240
240
  for (let key of Object.keys(constructor.names())) {
241
- if (inputModel[key] !== null && inputModel[key] !== undefined) {
241
+ if (inputModel[key]) {
242
242
  if (isModelClass(types[key])) {
243
243
  output[key] = new types[key](output[key]);
244
244
  Client.convert(inputModel[key], output[key]);
245
+ continue;
245
246
  }
246
- else if (types[key] && types[key].type === 'array') {
247
- output[key] = inputModel[key].map(function (d) {
248
- if (isModelClass(types[key].itemType)) {
249
- var item = new types[key].itemType({});
250
- Client.convert(d, item);
251
- return item;
252
- }
253
- return d;
254
- });
255
- }
256
- else if (types[key] && types[key].type === 'map') {
257
- output[key] = {};
258
- Object.keys(inputModel[key]).map(function (d) {
259
- if (isModelClass(types[key].valueType)) {
260
- var item = new types[key].valueType({});
261
- Client.convert(inputModel[key][d], item);
262
- output[key][d] = item;
263
- }
264
- else {
265
- output[key][d] = inputModel[key][d];
266
- }
267
- });
268
- }
269
- else {
270
- output[key] = inputModel[key];
271
- }
247
+ output[key] = inputModel[key];
272
248
  }
273
249
  }
274
250
  }
@@ -369,7 +345,7 @@ class Client {
369
345
  return querystring_1.default.stringify(target, '&&');
370
346
  }
371
347
  else if (style === 'json') {
372
- return JSON.stringify(toMap(array));
348
+ return JSON.stringify(array);
373
349
  }
374
350
  else if (style === 'simple') {
375
351
  return array.join(',');
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/openapi-util",
3
- "version": "0.3.2",
3
+ "version": "0.2.9",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -105,7 +105,7 @@ function getAuthorizationQueryString(query: { [key: string]: string }): string {
105
105
  for (let i = 0; i < keys.length; i++) {
106
106
  const key = keys[i];
107
107
  let param = key + '='
108
- if (typeof query[key] !== 'undefined' && query[key] !== null) {
108
+ if (typeof query[key] !== 'undefined' && query[key] !== null ) {
109
109
  param = param + encode(query[key])
110
110
  }
111
111
  canonicalQueryArray.push(param)
@@ -230,33 +230,13 @@ export default class Client {
230
230
  let types = constructor.types();
231
231
  // let constructor = <any>output.constructor;
232
232
  for (let key of Object.keys(constructor.names())) {
233
- if (inputModel[key] !== null && inputModel[key] !== undefined) {
233
+ if (inputModel[key]) {
234
234
  if (isModelClass(types[key])) {
235
235
  output[key] = new types[key](output[key]);
236
236
  Client.convert(inputModel[key], output[key]);
237
- } else if (types[key] && types[key].type === 'array') {
238
- output[key] = inputModel[key].map(function (d) {
239
- if (isModelClass(types[key].itemType)) {
240
- var item = new types[key].itemType({});
241
- Client.convert(d, item);
242
- return item;
243
- }
244
- return d;
245
- });
246
- } else if (types[key] && types[key].type === 'map') {
247
- output[key] = {};
248
- Object.keys(inputModel[key]).map(function (d) {
249
- if (isModelClass(types[key].valueType)) {
250
- var item = new types[key].valueType({});
251
- Client.convert(inputModel[key][d], item);
252
- output[key][d] = item;
253
- } else {
254
- output[key][d] = inputModel[key][d];
255
- }
256
- });
257
- } else {
258
- output[key] = inputModel[key];
237
+ continue;
259
238
  }
239
+ output[key] = inputModel[key];
260
240
  }
261
241
  }
262
242
  }
@@ -364,7 +344,7 @@ export default class Client {
364
344
  replaceRepeatList(target, array, prefix);
365
345
  return querystring.stringify(target, '&&');
366
346
  } else if (style === 'json') {
367
- return JSON.stringify(toMap(array));
347
+ return JSON.stringify(array);
368
348
  } else if (style === 'simple') {
369
349
  return array.join(',');
370
350
  } else if (style === 'spaceDelimited') {
@@ -1 +1 @@
1
- {"name":"@alicloud/dysmsapi20170525","version":"2.0.17","description":"","main":"dist/client.js","scripts":{"test":"mocha --reporter spec --timeout 3000 test/*.test.js","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Alibaba Cloud SDK","license":"Apache-2.0","devDependencies":{"@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.4","@alicloud/openapi-client":"^0.4.1","@alicloud/endpoint-util":"^0.0.1","@alicloud/openapi-util":"^0.2.9"},"files":["dist","src"],"_lastModified":"2026-04-27T17:01:49.368Z"}
1
+ {"name":"@alicloud/dysmsapi20170525","version":"2.0.17","description":"","main":"dist/client.js","scripts":{"test":"mocha --reporter spec --timeout 3000 test/*.test.js","test-cov":"nyc -e .ts -r=html -r=text -r=lcov npm run test","build":"tsc","prepublishOnly":"tsc"},"author":"Alibaba Cloud SDK","license":"Apache-2.0","devDependencies":{"@types/node":"^12.12.26","nyc":"^15.0.0","source-map-support":"^0.5.16","ts-node":"^8.6.2","typescript":"^3.7.5"},"dependencies":{"@alicloud/tea-typescript":"^1.7.1","@alicloud/tea-util":"^1.4.4","@alicloud/openapi-client":"^0.4.1","@alicloud/endpoint-util":"^0.0.1","@alicloud/openapi-util":"^0.2.9"},"files":["dist","src"],"_lastModified":"2026-04-28T15:59:13.872Z"}