@nasl/cli 0.1.15 → 0.1.17
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/build/nasl.bundle.js +4970 -4941
- package/dist/bin/nasl.mjs +243 -51
- package/dist/bin/nasl.mjs.map +1 -1
- package/dist/bin/naslc.mjs +196 -16
- package/dist/bin/naslc.mjs.map +1 -1
- package/dist/index.mjs +212 -49
- package/dist/index.mjs.map +1 -1
- package/out/apis/compileApi.d.ts.map +1 -1
- package/out/apis/compileApi.js +2 -4
- package/out/apis/compileApi.js.map +1 -1
- package/out/apis/createAppApi.js +1 -1
- package/out/apis/createAppApi.js.map +1 -1
- package/out/apis/createAxios.d.ts +7 -1
- package/out/apis/createAxios.d.ts.map +1 -1
- package/out/apis/createAxios.js +34 -5
- package/out/apis/createAxios.js.map +1 -1
- package/out/apis/openapi.d.ts +34 -0
- package/out/apis/openapi.d.ts.map +1 -0
- package/out/apis/openapi.js +114 -0
- package/out/apis/openapi.js.map +1 -0
- package/out/apis/transformApi.d.ts +1 -1
- package/out/apis/transformApi.d.ts.map +1 -1
- package/out/apis/transformApi.js +4 -6
- package/out/apis/transformApi.js.map +1 -1
- package/out/bin/nasl.js +63 -1
- package/out/bin/nasl.js.map +1 -1
- package/out/commands/check.d.ts.map +1 -1
- package/out/commands/check.js +1 -4
- package/out/commands/check.js.map +1 -1
- package/out/commands/compile.d.ts.map +1 -1
- package/out/commands/compile.js +1 -4
- package/out/commands/compile.js.map +1 -1
- package/out/commands/transform.d.ts.map +1 -1
- package/out/commands/transform.js +7 -19
- package/out/commands/transform.js.map +1 -1
- package/out/types/api.d.ts +8 -0
- package/out/types/api.d.ts.map +1 -1
- package/out/types/command.d.ts +1 -0
- package/out/types/command.d.ts.map +1 -1
- package/out/types/config.d.ts +6 -0
- package/out/types/config.d.ts.map +1 -1
- package/out/types/config.js +2 -2
- package/out/types/config.js.map +1 -1
- package/package.json +3 -1
package/out/types/config.d.ts
CHANGED
|
@@ -15,6 +15,12 @@ export interface NASLConfig {
|
|
|
15
15
|
srcDir: string;
|
|
16
16
|
/** 输出目录 */
|
|
17
17
|
outDir: string;
|
|
18
|
+
/** 是否使用 openapi 方式调用 */
|
|
19
|
+
useOPENAPI?: boolean;
|
|
20
|
+
/** lcap OpenAPI AK */
|
|
21
|
+
OPENAPI_AK?: string;
|
|
22
|
+
/** lcap OpenAPI SK */
|
|
23
|
+
OPENAPI_SK?: string;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* 默认配置
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,uBAAuB;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB;IACjB,cAAc,EAAE,kBAAkB,CAAC;IACnC,eAAe;IACf,mBAAmB,EAAE,uBAAuB,GAAG,gCAAgC,CAAC;IAChF,aAAa;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW;IACX,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,uBAAuB;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB;IACjB,cAAc,EAAE,kBAAkB,CAAC;IACnC,eAAe;IACf,mBAAmB,EAAE,uBAAuB,GAAG,gCAAgC,CAAC;IAChF,aAAa;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW;IACX,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,UAO5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,qBAAqB,CAAC"}
|
package/out/types/config.js
CHANGED
|
@@ -5,10 +5,10 @@ exports.CONFIG_FILE_NAME = exports.DEFAULT_CONFIG = void 0;
|
|
|
5
5
|
* 默认配置
|
|
6
6
|
*/
|
|
7
7
|
exports.DEFAULT_CONFIG = {
|
|
8
|
-
serverBaseURL: 'https://nasl.lcap.163yun.com
|
|
8
|
+
serverBaseURL: 'https://nasl.lcap.163yun.com',
|
|
9
9
|
representation: 'NaturalTS',
|
|
10
10
|
namespaceResolution: 'filename-as-namespace',
|
|
11
|
-
ideVersion: '4.
|
|
11
|
+
ideVersion: '4.4',
|
|
12
12
|
srcDir: 'src',
|
|
13
13
|
outDir: 'out',
|
|
14
14
|
};
|
package/out/types/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":";;;AA0BA;;GAEG;AACU,QAAA,cAAc,GAAe;IACtC,aAAa,EAAE,8BAA8B;IAC7C,cAAc,EAAE,WAAW;IAC3B,mBAAmB,EAAE,uBAAuB;IAC5C,UAAU,EAAE,KAAK;IACjB,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,KAAK;CAChB,CAAC;AAEF;;GAEG;AACU,QAAA,gBAAgB,GAAG,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nasl/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "NASL (Next Application Specific Language) CLI tool for checking, compiling and developing NASL code",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
45
45
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
46
46
|
"@types/node": "^20.0.0",
|
|
47
|
+
"@types/uuid": "9.0.8",
|
|
47
48
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
48
49
|
"@typescript-eslint/parser": "^8.0.0",
|
|
49
50
|
"eslint": "^8.0.0",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"lodash": "^4.17.21",
|
|
68
69
|
"prettier": "^3.6.2",
|
|
69
70
|
"style-loader": "^3.3.3",
|
|
71
|
+
"uuid": "^9.0.0",
|
|
70
72
|
"vue": "^3.4.0",
|
|
71
73
|
"vue-loader": "^17.3.0",
|
|
72
74
|
"vue-router": "^4.0.0",
|