@vtecx/vtecxnext 2.2.6 → 2.2.7

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/dist/vtecxnext.js +7 -10
  2. package/package.json +4 -4
package/dist/vtecxnext.js CHANGED
@@ -2289,20 +2289,17 @@ class VtecxNext {
2289
2289
  //console.log(`[vtecxnext addGroupByAdmin] start. group=${group} selfid=${selfid} uids=${uids}`)
2290
2290
  // 入力チェック
2291
2291
  checkUri(group, 'group key');
2292
+ checkNotNull(uids, 'uid');
2292
2293
  //checkNotNull(selfid, 'selfid (hierarchical name under my group alias)')
2293
2294
  // vte.cxへリクエスト
2294
2295
  const method = 'POST';
2295
2296
  const url = `${SERVLETPATH_PROVIDER}${group}?_addgroupByAdmin${selfid ? '&_selfid=' + selfid : ''}`;
2296
- let value;
2297
- if (uids) {
2298
- const feed = [];
2299
- for (const uid of uids) {
2300
- const entry = { 'link': [{ '___rel': 'self', '___href': `/_user/${uid}` }] };
2301
- feed.push(entry);
2302
- }
2303
- value = JSON.stringify(feed);
2297
+ const feed = [];
2298
+ for (const uid of uids) {
2299
+ const entry = { 'link': [{ '___rel': 'self', '___href': `/_user/${uid}` }] };
2300
+ feed.push(entry);
2304
2301
  }
2305
- checkNotNull(value, 'uid');
2302
+ const value = JSON.stringify(feed);
2306
2303
  let response;
2307
2304
  try {
2308
2305
  response = await this.requestVtecx(method, url, value);
@@ -4174,7 +4171,7 @@ const isBlank = (val) => {
4174
4171
  if (val === null || val === undefined || val === '') {
4175
4172
  return true;
4176
4173
  }
4177
- if (Array.isArray(val) && val.length === 0) {
4174
+ if (Array.isArray(val) && val.length <= 0) {
4178
4175
  return true;
4179
4176
  }
4180
4177
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtecx/vtecxnext",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "vte.cx Next.js api",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "homepage": "https://github.com/reflexworks/vtecxnext#readme",
24
24
  "devDependencies": {
25
- "@types/node": "^20.12.13",
25
+ "@types/node": "^22.7.9",
26
26
  "@types/sqlstring": "^2.3.2",
27
27
  "ts-node": "^10.9.2",
28
- "typescript": "^5.4.5"
28
+ "typescript": "^5.6.3"
29
29
  },
30
30
  "dependencies": {
31
- "next": "^14.2.3",
31
+ "next": "^14.2.16",
32
32
  "sqlstring": "^2.3.2"
33
33
  }
34
34
  }