gorig-cli 1.0.14 → 1.0.21

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/bin/cli.js CHANGED
@@ -3,53 +3,53 @@
3
3
  import chalk from 'chalk';
4
4
  import path from 'path';
5
5
 
6
- // 获取命令行参数
6
+ // Get command line arguments
7
7
  const args = process.argv.slice(2);
8
8
 
9
- // 验证是否提供了命令
9
+ // Validate if a command is provided
10
10
  if (args.length < 1) {
11
- console.error(chalk.red('请提供一个有效的命令,例如: create init'));
11
+ console.error(chalk.red('Please provide a valid command, e.g.: create or init'));
12
12
  process.exit(1);
13
13
  }
14
14
 
15
- // 提取命令
15
+ // Extract command
16
16
  const command = args[0];
17
17
 
18
- // 获取当前文件的目录
18
+ // Get current file directory
19
19
  const __dirname = path.dirname(new URL(import.meta.url).pathname);
20
20
 
21
- // 根据命令执行不同的逻辑
21
+ // Execute different logic based on command
22
22
  switch (command) {
23
23
  case 'create':
24
- // 动态导入 create.js,命令放在 commands 目录下
24
+ // Dynamically import create.js, commands are placed in the commands directory
25
25
  import(path.join(__dirname, '../commands/create.js')).then(module => {
26
26
  const createModule = module.default;
27
- createModule(args.slice(1)); // 将命令行的其他参数传递给 create.js
27
+ createModule(args.slice(1)); // Pass other command line arguments to create.js
28
28
  }).catch(error => {
29
- console.error(chalk.red('无法加载 create 命令模块:', error.message));
29
+ console.error(chalk.red('Failed to load create command module:', error.message));
30
30
  });
31
31
  break;
32
32
 
33
33
  case 'init':
34
- // 动态导入 init.js
34
+ // Dynamically import init.js
35
35
  import(path.join(__dirname, '../commands/init.js')).then(module => {
36
36
  const initModule = module.default;
37
- initModule(args.slice(1)); // 将命令行的其他参数传递给 init.js
37
+ initModule(args.slice(1)); // Pass other command line arguments to init.js
38
38
  }).catch(error => {
39
- console.error(chalk.red('无法加载 init 命令模块:', error.message));
39
+ console.error(chalk.red('Failed to load init command module:', error.message));
40
40
  });
41
41
  break;
42
42
  case 'doc':
43
43
  import(path.join(__dirname, '../commands/doc.js')).then(module => {
44
44
  const docModule = module.default;
45
- docModule(); // 执行 doc 命令
45
+ docModule(); // Execute doc command
46
46
  }).catch(error => {
47
- console.error(chalk.red('无法加载 doc 命令模块:', error.message));
47
+ console.error(chalk.red('Failed to load doc command module:', error.message));
48
48
  });
49
49
  break;
50
50
 
51
51
  default:
52
- console.error(chalk.red(`未知的命令: ${command}`));
53
- console.error(chalk.yellow('可用的命令: create, init'));
52
+ console.error(chalk.red(`Unknown command: ${command}`));
53
+ console.error(chalk.yellow('Available commands: create, init'));
54
54
  process.exit(1);
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gorig-cli",
3
- "version": "1.0.14",
3
+ "version": "1.0.21",
4
4
  "type": "module",
5
5
  "description": "gorig build tool",
6
6
  "main": "bin/cli.js",
@@ -1,16 +1,17 @@
1
1
  package cron
2
2
 
3
3
  import (
4
+ "context"
4
5
  "fmt"
5
6
  "github.com/jom-io/gorig/cronx"
6
7
  "github.com/jom-io/gorig/utils/logger"
7
8
  "time"
8
9
  )
9
10
 
10
- func test() {
11
- logger.Info(nil, fmt.Sprintf("hello, now is %s", time.Now().Format("2006-01-02 15:04:05")))
11
+ func test(ctx context.Context) {
12
+ logger.Info(ctx, fmt.Sprintf("hello, now is %s", time.Now().Format("2006-01-02 15:04:05")))
12
13
  }
13
14
 
14
15
  func init() {
15
- cronx.AddTask("*/10 * * * * *", test)
16
+ cronx.AddCronTask("*/10 * * * * *", test, 0)
16
17
  }
@@ -2,6 +2,7 @@ package domain
2
2
 
3
3
  import (
4
4
  "github.com/gin-gonic/gin"
5
+ "github.com/jom-io/gorig/apix/response"
5
6
  "github.com/jom-io/gorig/httpx"
6
7
  "github.com/jom-io/gorig/serv"
7
8
  configure "github.com/jom-io/gorig/utils/cofigure"
@@ -11,7 +12,7 @@ import (
11
12
  func init() {
12
13
  httpx.RegisterRouter(func(groupRouter *gin.RouterGroup) {
13
14
  groupRouter.GET("/", func(ctx *gin.Context) {
14
- httpx.Success(ctx, "hello world, this is <%= projectNameUpper %> project generated by gorig-cli")
15
+ response.Success(ctx, "Hello world, this is <%= projectNameUpper %> project generated by gorig-cli", nil)
15
16
  })
16
17
  })
17
18
  err := serv.RegisterService(
package/package-lock.json DELETED
@@ -1,757 +0,0 @@
1
- {
2
- "name": "gorig-cli",
3
- "version": "1.0.7",
4
- "lockfileVersion": 3,
5
- "requires": true,
6
- "packages": {
7
- "": {
8
- "name": "gorig-cli",
9
- "version": "1.0.7",
10
- "license": "MIT",
11
- "dependencies": {
12
- "chalk": "^5.3.0",
13
- "commander": "^12.1.0",
14
- "ejs": "^3.1.10",
15
- "fs-extra": "^11.2.0",
16
- "http-server": "^14.1.1",
17
- "semver": "^7.6.3"
18
- },
19
- "bin": {
20
- "gorig-cli": "bin/cli.js"
21
- }
22
- },
23
- "node_modules/ansi-styles": {
24
- "version": "4.3.0",
25
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/ansi-styles/-/ansi-styles-4.3.0.tgz",
26
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
27
- "license": "MIT",
28
- "dependencies": {
29
- "color-convert": "^2.0.1"
30
- },
31
- "engines": {
32
- "node": ">=8"
33
- },
34
- "funding": {
35
- "url": "https://github.com/chalk/ansi-styles?sponsor=1"
36
- }
37
- },
38
- "node_modules/async": {
39
- "version": "2.6.4",
40
- "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz",
41
- "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==",
42
- "license": "MIT",
43
- "dependencies": {
44
- "lodash": "^4.17.14"
45
- }
46
- },
47
- "node_modules/balanced-match": {
48
- "version": "1.0.2",
49
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/balanced-match/-/balanced-match-1.0.2.tgz",
50
- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
51
- "license": "MIT"
52
- },
53
- "node_modules/basic-auth": {
54
- "version": "2.0.1",
55
- "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz",
56
- "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==",
57
- "license": "MIT",
58
- "dependencies": {
59
- "safe-buffer": "5.1.2"
60
- },
61
- "engines": {
62
- "node": ">= 0.8"
63
- }
64
- },
65
- "node_modules/brace-expansion": {
66
- "version": "1.1.11",
67
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/brace-expansion/-/brace-expansion-1.1.11.tgz",
68
- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
69
- "license": "MIT",
70
- "dependencies": {
71
- "balanced-match": "^1.0.0",
72
- "concat-map": "0.0.1"
73
- }
74
- },
75
- "node_modules/call-bind": {
76
- "version": "1.0.7",
77
- "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz",
78
- "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==",
79
- "license": "MIT",
80
- "dependencies": {
81
- "es-define-property": "^1.0.0",
82
- "es-errors": "^1.3.0",
83
- "function-bind": "^1.1.2",
84
- "get-intrinsic": "^1.2.4",
85
- "set-function-length": "^1.2.1"
86
- },
87
- "engines": {
88
- "node": ">= 0.4"
89
- },
90
- "funding": {
91
- "url": "https://github.com/sponsors/ljharb"
92
- }
93
- },
94
- "node_modules/chalk": {
95
- "version": "5.3.0",
96
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/chalk/-/chalk-5.3.0.tgz",
97
- "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",
98
- "license": "MIT",
99
- "engines": {
100
- "node": "^12.17.0 || ^14.13 || >=16.0.0"
101
- },
102
- "funding": {
103
- "url": "https://github.com/chalk/chalk?sponsor=1"
104
- }
105
- },
106
- "node_modules/color-convert": {
107
- "version": "2.0.1",
108
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/color-convert/-/color-convert-2.0.1.tgz",
109
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
110
- "license": "MIT",
111
- "dependencies": {
112
- "color-name": "~1.1.4"
113
- },
114
- "engines": {
115
- "node": ">=7.0.0"
116
- }
117
- },
118
- "node_modules/color-name": {
119
- "version": "1.1.4",
120
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/color-name/-/color-name-1.1.4.tgz",
121
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
122
- "license": "MIT"
123
- },
124
- "node_modules/commander": {
125
- "version": "12.1.0",
126
- "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",
127
- "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",
128
- "license": "MIT",
129
- "engines": {
130
- "node": ">=18"
131
- }
132
- },
133
- "node_modules/concat-map": {
134
- "version": "0.0.1",
135
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/concat-map/-/concat-map-0.0.1.tgz",
136
- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
137
- "license": "MIT"
138
- },
139
- "node_modules/corser": {
140
- "version": "2.0.1",
141
- "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz",
142
- "integrity": "sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ==",
143
- "license": "MIT",
144
- "engines": {
145
- "node": ">= 0.4.0"
146
- }
147
- },
148
- "node_modules/debug": {
149
- "version": "3.2.7",
150
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
151
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
152
- "license": "MIT",
153
- "dependencies": {
154
- "ms": "^2.1.1"
155
- }
156
- },
157
- "node_modules/define-data-property": {
158
- "version": "1.1.4",
159
- "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
160
- "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
161
- "license": "MIT",
162
- "dependencies": {
163
- "es-define-property": "^1.0.0",
164
- "es-errors": "^1.3.0",
165
- "gopd": "^1.0.1"
166
- },
167
- "engines": {
168
- "node": ">= 0.4"
169
- },
170
- "funding": {
171
- "url": "https://github.com/sponsors/ljharb"
172
- }
173
- },
174
- "node_modules/ejs": {
175
- "version": "3.1.10",
176
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/ejs/-/ejs-3.1.10.tgz",
177
- "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",
178
- "license": "Apache-2.0",
179
- "dependencies": {
180
- "jake": "^10.8.5"
181
- },
182
- "bin": {
183
- "ejs": "bin/cli.js"
184
- },
185
- "engines": {
186
- "node": ">=0.10.0"
187
- }
188
- },
189
- "node_modules/es-define-property": {
190
- "version": "1.0.0",
191
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz",
192
- "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==",
193
- "license": "MIT",
194
- "dependencies": {
195
- "get-intrinsic": "^1.2.4"
196
- },
197
- "engines": {
198
- "node": ">= 0.4"
199
- }
200
- },
201
- "node_modules/es-errors": {
202
- "version": "1.3.0",
203
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
204
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
205
- "license": "MIT",
206
- "engines": {
207
- "node": ">= 0.4"
208
- }
209
- },
210
- "node_modules/eventemitter3": {
211
- "version": "4.0.7",
212
- "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
213
- "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==",
214
- "license": "MIT"
215
- },
216
- "node_modules/filelist": {
217
- "version": "1.0.4",
218
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/filelist/-/filelist-1.0.4.tgz",
219
- "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==",
220
- "license": "Apache-2.0",
221
- "dependencies": {
222
- "minimatch": "^5.0.1"
223
- }
224
- },
225
- "node_modules/filelist/node_modules/brace-expansion": {
226
- "version": "2.0.1",
227
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/brace-expansion/-/brace-expansion-2.0.1.tgz",
228
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
229
- "license": "MIT",
230
- "dependencies": {
231
- "balanced-match": "^1.0.0"
232
- }
233
- },
234
- "node_modules/filelist/node_modules/minimatch": {
235
- "version": "5.1.6",
236
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/minimatch/-/minimatch-5.1.6.tgz",
237
- "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
238
- "license": "ISC",
239
- "dependencies": {
240
- "brace-expansion": "^2.0.1"
241
- },
242
- "engines": {
243
- "node": ">=10"
244
- }
245
- },
246
- "node_modules/follow-redirects": {
247
- "version": "1.15.9",
248
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
249
- "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
250
- "funding": [
251
- {
252
- "type": "individual",
253
- "url": "https://github.com/sponsors/RubenVerborgh"
254
- }
255
- ],
256
- "license": "MIT",
257
- "engines": {
258
- "node": ">=4.0"
259
- },
260
- "peerDependenciesMeta": {
261
- "debug": {
262
- "optional": true
263
- }
264
- }
265
- },
266
- "node_modules/fs-extra": {
267
- "version": "11.2.0",
268
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/fs-extra/-/fs-extra-11.2.0.tgz",
269
- "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==",
270
- "license": "MIT",
271
- "dependencies": {
272
- "graceful-fs": "^4.2.0",
273
- "jsonfile": "^6.0.1",
274
- "universalify": "^2.0.0"
275
- },
276
- "engines": {
277
- "node": ">=14.14"
278
- }
279
- },
280
- "node_modules/function-bind": {
281
- "version": "1.1.2",
282
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
283
- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
284
- "license": "MIT",
285
- "funding": {
286
- "url": "https://github.com/sponsors/ljharb"
287
- }
288
- },
289
- "node_modules/get-intrinsic": {
290
- "version": "1.2.4",
291
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz",
292
- "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==",
293
- "license": "MIT",
294
- "dependencies": {
295
- "es-errors": "^1.3.0",
296
- "function-bind": "^1.1.2",
297
- "has-proto": "^1.0.1",
298
- "has-symbols": "^1.0.3",
299
- "hasown": "^2.0.0"
300
- },
301
- "engines": {
302
- "node": ">= 0.4"
303
- },
304
- "funding": {
305
- "url": "https://github.com/sponsors/ljharb"
306
- }
307
- },
308
- "node_modules/gopd": {
309
- "version": "1.2.0",
310
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
311
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
312
- "license": "MIT",
313
- "engines": {
314
- "node": ">= 0.4"
315
- },
316
- "funding": {
317
- "url": "https://github.com/sponsors/ljharb"
318
- }
319
- },
320
- "node_modules/graceful-fs": {
321
- "version": "4.2.11",
322
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/graceful-fs/-/graceful-fs-4.2.11.tgz",
323
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
324
- "license": "ISC"
325
- },
326
- "node_modules/has-flag": {
327
- "version": "4.0.0",
328
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/has-flag/-/has-flag-4.0.0.tgz",
329
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
330
- "license": "MIT",
331
- "engines": {
332
- "node": ">=8"
333
- }
334
- },
335
- "node_modules/has-property-descriptors": {
336
- "version": "1.0.2",
337
- "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
338
- "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
339
- "license": "MIT",
340
- "dependencies": {
341
- "es-define-property": "^1.0.0"
342
- },
343
- "funding": {
344
- "url": "https://github.com/sponsors/ljharb"
345
- }
346
- },
347
- "node_modules/has-proto": {
348
- "version": "1.1.0",
349
- "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.1.0.tgz",
350
- "integrity": "sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==",
351
- "license": "MIT",
352
- "dependencies": {
353
- "call-bind": "^1.0.7"
354
- },
355
- "engines": {
356
- "node": ">= 0.4"
357
- },
358
- "funding": {
359
- "url": "https://github.com/sponsors/ljharb"
360
- }
361
- },
362
- "node_modules/has-symbols": {
363
- "version": "1.1.0",
364
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
365
- "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
366
- "license": "MIT",
367
- "engines": {
368
- "node": ">= 0.4"
369
- },
370
- "funding": {
371
- "url": "https://github.com/sponsors/ljharb"
372
- }
373
- },
374
- "node_modules/hasown": {
375
- "version": "2.0.2",
376
- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
377
- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
378
- "license": "MIT",
379
- "dependencies": {
380
- "function-bind": "^1.1.2"
381
- },
382
- "engines": {
383
- "node": ">= 0.4"
384
- }
385
- },
386
- "node_modules/he": {
387
- "version": "1.2.0",
388
- "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
389
- "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
390
- "license": "MIT",
391
- "bin": {
392
- "he": "bin/he"
393
- }
394
- },
395
- "node_modules/html-encoding-sniffer": {
396
- "version": "3.0.0",
397
- "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz",
398
- "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==",
399
- "license": "MIT",
400
- "dependencies": {
401
- "whatwg-encoding": "^2.0.0"
402
- },
403
- "engines": {
404
- "node": ">=12"
405
- }
406
- },
407
- "node_modules/http-proxy": {
408
- "version": "1.18.1",
409
- "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz",
410
- "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==",
411
- "license": "MIT",
412
- "dependencies": {
413
- "eventemitter3": "^4.0.0",
414
- "follow-redirects": "^1.0.0",
415
- "requires-port": "^1.0.0"
416
- },
417
- "engines": {
418
- "node": ">=8.0.0"
419
- }
420
- },
421
- "node_modules/http-server": {
422
- "version": "14.1.1",
423
- "resolved": "https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz",
424
- "integrity": "sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==",
425
- "license": "MIT",
426
- "dependencies": {
427
- "basic-auth": "^2.0.1",
428
- "chalk": "^4.1.2",
429
- "corser": "^2.0.1",
430
- "he": "^1.2.0",
431
- "html-encoding-sniffer": "^3.0.0",
432
- "http-proxy": "^1.18.1",
433
- "mime": "^1.6.0",
434
- "minimist": "^1.2.6",
435
- "opener": "^1.5.1",
436
- "portfinder": "^1.0.28",
437
- "secure-compare": "3.0.1",
438
- "union": "~0.5.0",
439
- "url-join": "^4.0.1"
440
- },
441
- "bin": {
442
- "http-server": "bin/http-server"
443
- },
444
- "engines": {
445
- "node": ">=12"
446
- }
447
- },
448
- "node_modules/http-server/node_modules/chalk": {
449
- "version": "4.1.2",
450
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/chalk/-/chalk-4.1.2.tgz",
451
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
452
- "license": "MIT",
453
- "dependencies": {
454
- "ansi-styles": "^4.1.0",
455
- "supports-color": "^7.1.0"
456
- },
457
- "engines": {
458
- "node": ">=10"
459
- },
460
- "funding": {
461
- "url": "https://github.com/chalk/chalk?sponsor=1"
462
- }
463
- },
464
- "node_modules/iconv-lite": {
465
- "version": "0.6.3",
466
- "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
467
- "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
468
- "license": "MIT",
469
- "dependencies": {
470
- "safer-buffer": ">= 2.1.2 < 3.0.0"
471
- },
472
- "engines": {
473
- "node": ">=0.10.0"
474
- }
475
- },
476
- "node_modules/jake": {
477
- "version": "10.9.2",
478
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/jake/-/jake-10.9.2.tgz",
479
- "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==",
480
- "license": "Apache-2.0",
481
- "dependencies": {
482
- "async": "^3.2.3",
483
- "chalk": "^4.0.2",
484
- "filelist": "^1.0.4",
485
- "minimatch": "^3.1.2"
486
- },
487
- "bin": {
488
- "jake": "bin/cli.js"
489
- },
490
- "engines": {
491
- "node": ">=10"
492
- }
493
- },
494
- "node_modules/jake/node_modules/async": {
495
- "version": "3.2.6",
496
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/async/-/async-3.2.6.tgz",
497
- "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
498
- "license": "MIT"
499
- },
500
- "node_modules/jake/node_modules/chalk": {
501
- "version": "4.1.2",
502
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/chalk/-/chalk-4.1.2.tgz",
503
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
504
- "license": "MIT",
505
- "dependencies": {
506
- "ansi-styles": "^4.1.0",
507
- "supports-color": "^7.1.0"
508
- },
509
- "engines": {
510
- "node": ">=10"
511
- },
512
- "funding": {
513
- "url": "https://github.com/chalk/chalk?sponsor=1"
514
- }
515
- },
516
- "node_modules/jsonfile": {
517
- "version": "6.1.0",
518
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/jsonfile/-/jsonfile-6.1.0.tgz",
519
- "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
520
- "license": "MIT",
521
- "dependencies": {
522
- "universalify": "^2.0.0"
523
- },
524
- "optionalDependencies": {
525
- "graceful-fs": "^4.1.6"
526
- }
527
- },
528
- "node_modules/lodash": {
529
- "version": "4.17.21",
530
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
531
- "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
532
- "license": "MIT"
533
- },
534
- "node_modules/mime": {
535
- "version": "1.6.0",
536
- "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
537
- "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
538
- "license": "MIT",
539
- "bin": {
540
- "mime": "cli.js"
541
- },
542
- "engines": {
543
- "node": ">=4"
544
- }
545
- },
546
- "node_modules/minimatch": {
547
- "version": "3.1.2",
548
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/minimatch/-/minimatch-3.1.2.tgz",
549
- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
550
- "license": "ISC",
551
- "dependencies": {
552
- "brace-expansion": "^1.1.7"
553
- },
554
- "engines": {
555
- "node": "*"
556
- }
557
- },
558
- "node_modules/minimist": {
559
- "version": "1.2.8",
560
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
561
- "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
562
- "license": "MIT",
563
- "funding": {
564
- "url": "https://github.com/sponsors/ljharb"
565
- }
566
- },
567
- "node_modules/mkdirp": {
568
- "version": "0.5.6",
569
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
570
- "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
571
- "license": "MIT",
572
- "dependencies": {
573
- "minimist": "^1.2.6"
574
- },
575
- "bin": {
576
- "mkdirp": "bin/cmd.js"
577
- }
578
- },
579
- "node_modules/ms": {
580
- "version": "2.1.3",
581
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
582
- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
583
- "license": "MIT"
584
- },
585
- "node_modules/object-inspect": {
586
- "version": "1.13.3",
587
- "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz",
588
- "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==",
589
- "license": "MIT",
590
- "engines": {
591
- "node": ">= 0.4"
592
- },
593
- "funding": {
594
- "url": "https://github.com/sponsors/ljharb"
595
- }
596
- },
597
- "node_modules/opener": {
598
- "version": "1.5.2",
599
- "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz",
600
- "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==",
601
- "license": "(WTFPL OR MIT)",
602
- "bin": {
603
- "opener": "bin/opener-bin.js"
604
- }
605
- },
606
- "node_modules/portfinder": {
607
- "version": "1.0.32",
608
- "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.32.tgz",
609
- "integrity": "sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==",
610
- "license": "MIT",
611
- "dependencies": {
612
- "async": "^2.6.4",
613
- "debug": "^3.2.7",
614
- "mkdirp": "^0.5.6"
615
- },
616
- "engines": {
617
- "node": ">= 0.12.0"
618
- }
619
- },
620
- "node_modules/qs": {
621
- "version": "6.13.1",
622
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.1.tgz",
623
- "integrity": "sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==",
624
- "license": "BSD-3-Clause",
625
- "dependencies": {
626
- "side-channel": "^1.0.6"
627
- },
628
- "engines": {
629
- "node": ">=0.6"
630
- },
631
- "funding": {
632
- "url": "https://github.com/sponsors/ljharb"
633
- }
634
- },
635
- "node_modules/requires-port": {
636
- "version": "1.0.0",
637
- "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
638
- "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==",
639
- "license": "MIT"
640
- },
641
- "node_modules/safe-buffer": {
642
- "version": "5.1.2",
643
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
644
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
645
- "license": "MIT"
646
- },
647
- "node_modules/safer-buffer": {
648
- "version": "2.1.2",
649
- "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
650
- "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
651
- "license": "MIT"
652
- },
653
- "node_modules/secure-compare": {
654
- "version": "3.0.1",
655
- "resolved": "https://registry.npmjs.org/secure-compare/-/secure-compare-3.0.1.tgz",
656
- "integrity": "sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==",
657
- "license": "MIT"
658
- },
659
- "node_modules/semver": {
660
- "version": "7.6.3",
661
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
662
- "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
663
- "license": "ISC",
664
- "bin": {
665
- "semver": "bin/semver.js"
666
- },
667
- "engines": {
668
- "node": ">=10"
669
- }
670
- },
671
- "node_modules/set-function-length": {
672
- "version": "1.2.2",
673
- "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz",
674
- "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==",
675
- "license": "MIT",
676
- "dependencies": {
677
- "define-data-property": "^1.1.4",
678
- "es-errors": "^1.3.0",
679
- "function-bind": "^1.1.2",
680
- "get-intrinsic": "^1.2.4",
681
- "gopd": "^1.0.1",
682
- "has-property-descriptors": "^1.0.2"
683
- },
684
- "engines": {
685
- "node": ">= 0.4"
686
- }
687
- },
688
- "node_modules/side-channel": {
689
- "version": "1.0.6",
690
- "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz",
691
- "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==",
692
- "license": "MIT",
693
- "dependencies": {
694
- "call-bind": "^1.0.7",
695
- "es-errors": "^1.3.0",
696
- "get-intrinsic": "^1.2.4",
697
- "object-inspect": "^1.13.1"
698
- },
699
- "engines": {
700
- "node": ">= 0.4"
701
- },
702
- "funding": {
703
- "url": "https://github.com/sponsors/ljharb"
704
- }
705
- },
706
- "node_modules/supports-color": {
707
- "version": "7.2.0",
708
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/supports-color/-/supports-color-7.2.0.tgz",
709
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
710
- "license": "MIT",
711
- "dependencies": {
712
- "has-flag": "^4.0.0"
713
- },
714
- "engines": {
715
- "node": ">=8"
716
- }
717
- },
718
- "node_modules/union": {
719
- "version": "0.5.0",
720
- "resolved": "https://registry.npmjs.org/union/-/union-0.5.0.tgz",
721
- "integrity": "sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==",
722
- "dependencies": {
723
- "qs": "^6.4.0"
724
- },
725
- "engines": {
726
- "node": ">= 0.8.0"
727
- }
728
- },
729
- "node_modules/universalify": {
730
- "version": "2.0.1",
731
- "resolved": "https://mirrors.huaweicloud.com/repository/npm/universalify/-/universalify-2.0.1.tgz",
732
- "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
733
- "license": "MIT",
734
- "engines": {
735
- "node": ">= 10.0.0"
736
- }
737
- },
738
- "node_modules/url-join": {
739
- "version": "4.0.1",
740
- "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz",
741
- "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==",
742
- "license": "MIT"
743
- },
744
- "node_modules/whatwg-encoding": {
745
- "version": "2.0.0",
746
- "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz",
747
- "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==",
748
- "license": "MIT",
749
- "dependencies": {
750
- "iconv-lite": "0.6.3"
751
- },
752
- "engines": {
753
- "node": ">=12"
754
- }
755
- }
756
- }
757
- }