cloudcc-cli 2.0.5 → 2.0.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.
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
+ # ReleaseV2.0.7
2
+ #### Release Date: 2025-5-16
3
+ #### Release Scope: Full
4
+ #### Release Content
5
+ * Optimization
6
+ * create triggers add ccobject。
7
+
8
+ # ReleaseV2.0.6
9
+ #### Release Date: 2025-5-13
10
+ #### Release Scope: Full
11
+ #### Release Content
12
+ * Optimization
13
+ * Optimize the request header and ensure that the source field is included to facilitate source tracking build1
14
+
1
15
  # ReleaseV2.0.5
2
16
  #### Release Date: 2025-5-9
3
17
  #### Release Scope: Full
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -244,14 +244,15 @@ class Builder {
244
244
  "loadModel": obj.loadModel || "lazy",
245
245
  "belongOrgFlag": this.options.devConsoleConfig.belongOrgFlag || "custom"
246
246
  }
247
-
248
247
  let devSvcDispatch = this.options.devConsoleConfig.devSvcDispatch || '/devconsole'
248
+ header.source = this.options.devConsoleConfig.source || "cloudcc_cli"
249
249
  let res = await post(`${this.options.devConsoleConfig.baseUrl || BaseUrl}${devSvcDispatch}/custom/pc/1.0/post/insertCustomComp`,
250
250
  body, header);
251
251
  if (res.returnCode == 200) {
252
252
  console.error(chalk.green(`Success!`));
253
253
  console.log();
254
254
  } else {
255
+ console.log("res", res);
255
256
  console.error(chalk.red(`Fail: ${res.returnInfo}`));
256
257
  console.log();
257
258
  }
@@ -22,7 +22,7 @@ async function create(argvs) {
22
22
  import com.cloudcc.core.*;
23
23
 
24
24
  public class ${body.name} extends CCTrigger {
25
- public ${body.name}() {
25
+ public ${body.name}(CCObject record_new, CCObject record_old) {
26
26
  // @SOURCE_CONTENT_START
27
27
  System.out.print("hello World");
28
28
  // @SOURCE_CONTENT_END