cloudcc-cli 1.9.1 → 1.9.2

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,11 @@
1
+ # ReleaseV1.9.2
2
+ #### Release Date: 2025-2-11
3
+ #### Release Scope: Full
4
+ #### Release Content
5
+ * Optimization
6
+ * change javaContentRegular
7
+ * trigger add method name
8
+
1
9
  # ReleaseV1.9.1
2
10
  #### Release Date: 2025-2-10
3
11
  #### Release Scope: Full
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -12,7 +12,7 @@ async function create(name) {
12
12
  fs.mkdirSync(timerPath, { recursive: true })
13
13
 
14
14
  const javaTmp = `public class ${name} extends CCSchedule {
15
- public ${name}(){
15
+ public void demo(){
16
16
  // @SOURCE_CONTENT_START
17
17
  System.out.print("hello World");
18
18
  // @SOURCE_CONTENT_END
@@ -17,7 +17,7 @@ async function create(argvs) {
17
17
  fs.mkdirSync(triggersPath, { recursive: true });
18
18
 
19
19
  const javaTmp = `public class ${body.name} extends CCTrigger {
20
- public ${body.name}(){
20
+ public void demo(){
21
21
  // @SOURCE_CONTENT_START
22
22
  System.out.print("hello World");
23
23
  // @SOURCE_CONTENT_END
@@ -33,6 +33,9 @@
33
33
  "parserOptions": {
34
34
  "parser": "babel-eslint"
35
35
  },
36
+ "globals": {
37
+ "$CCDK": "readonly"
38
+ },
36
39
  "rules": {}
37
40
  },
38
41
  "browserslist": [
package/utils/utils.js CHANGED
@@ -92,6 +92,7 @@ async function getBusToken(path = process.cwd()) {
92
92
  }
93
93
  return false;
94
94
  }
95
- const javaContentRegular = /\/\/\s*@SOURCE_CONTENT_START\n([\s\S]*?)\n\/\/\s*@SOURCE_CONTENT_END/
95
+ const javaContentRegular = /\/\/\s*@SOURCE_CONTENT_START\r?\n([\s\S]*?)\r?\n\s*\/\/\s*@SOURCE_CONTENT_END/
96
+
96
97
 
97
98
  module.exports = { getBusToken, javaContentRegular }