@lcap/nasl 2.18.0-beta.4 → 2.18.0

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 (46) hide show
  1. package/out/concepts/MatchExpression__.d.ts +97 -0
  2. package/out/concepts/MatchExpression__.js +281 -0
  3. package/out/concepts/MatchExpression__.js.map +1 -0
  4. package/out/concepts/Param__.js +1 -1
  5. package/out/concepts/Param__.js.map +1 -1
  6. package/out/concepts/Return__.js +1 -1
  7. package/out/concepts/Return__.js.map +1 -1
  8. package/out/concepts/Variable__.js +1 -1
  9. package/out/concepts/Variable__.js.map +1 -1
  10. package/out/server/naslServer.js +27 -31
  11. package/out/server/naslServer.js.map +1 -1
  12. package/out/templator/sql-parser/index.d.ts +1 -0
  13. package/out/templator/sql-parser/index.js +228 -0
  14. package/out/templator/sql-parser/index.js.map +1 -0
  15. package/out/templator/sql-parser/parser.js +26664 -0
  16. package/out/templator/sql-parser/parser.js.map +1 -0
  17. package/package.json +2 -2
  18. package/src/automate/engine/dist/index.dev.js +517 -0
  19. package/src/common/dist/BaseNode.js +1101 -0
  20. package/src/concepts/Param__.ts +1 -1
  21. package/src/concepts/Return__.ts +1 -1
  22. package/src/concepts/Variable__.ts +1 -1
  23. package/src/concepts/basics/stdlib/dist/reference2TypeAnnotationList.js +24 -0
  24. package/src/concepts/dist/Anchor__.js +179 -0
  25. package/src/concepts/dist/Assignment__.js +301 -0
  26. package/src/concepts/dist/CallFunction__.js +473 -0
  27. package/src/concepts/dist/CallInterface__.js +533 -0
  28. package/src/concepts/dist/CallLogic__.js +864 -0
  29. package/src/concepts/dist/ForEachStatement__.js +426 -0
  30. package/src/concepts/dist/MatchCase__.js +587 -0
  31. package/src/concepts/dist/MemberExpression__.js +348 -0
  32. package/src/concepts/dist/Param__.js +537 -0
  33. package/src/concepts/dist/Return__.js +493 -0
  34. package/src/generator/dist/genBundleFiles.js +414 -0
  35. package/src/server/dist/formatTsUtils.js +683 -0
  36. package/src/server/dist/naslServer.js +3396 -0
  37. package/src/server/naslServer.ts +28 -31
  38. package/src/service/storage/dist/init.js +541 -0
  39. package/ts-worker/dist/webpack.config.dev.js +104 -0
  40. package/ts-worker/lib/dist/tsserver.dev.js +22953 -0
  41. package/ts-worker/sources/lib/dist/tsserver.dev.js +22912 -0
  42. package/dist/bundle.js +0 -3962
  43. package/dist/bundle.js.LICENSE.txt +0 -16
  44. package/out/generator/release.d.ts +0 -1
  45. package/out/generator/release.js +0 -51
  46. package/out/generator/release.js.map +0 -1
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ var path = require('path'); // const HtmlWebpackPlugin = require('html-webpack-plugin');
4
+
5
+
6
+ module.exports = {
7
+ mode: 'development',
8
+ //mode: 'production',
9
+ entry: {
10
+ bundle: './src/index.js'
11
+ },
12
+ output: {
13
+ path: path.resolve(__dirname, '../../../src/static/'),
14
+ filename: 'ts-worker.js'
15
+ },
16
+ target: 'webworker',
17
+ resolve: {
18
+ // Use our versions of Node modules.
19
+ alias: {// fs: 'browserfs/dist/shims/fs.js',
20
+ // os: require.resolve('os-browserify/browser'),
21
+ // // path: require.resolve('path-browserify'),
22
+ // buffer: 'browserfs/dist/shims/buffer.js',
23
+ // path: 'browserfs/dist/shims/path.js',
24
+ // processGlobal: 'browserfs/dist/shims/process.js',
25
+ // bufferGlobal: 'browserfs/dist/shims/bufferGlobal.js',
26
+ // bfsGlobal: require.resolve('browserfs'),
27
+ },
28
+ // DISABLE Webpack's built-in process and Buffer polyfills!
29
+ fallback: {
30
+ fs: false,
31
+ // fs: 'browserfs/dist/shims/fs.js',
32
+ crypto: require.resolve('crypto-browserify'),
33
+ stream: require.resolve('stream-browserify'),
34
+ // path: require.resolve('path-browserify'),
35
+ // processGlobal: 'browserfs/dist/shims/process.js',
36
+ // bufferGlobal: 'browserfs/dist/shims/bufferGlobal.js',
37
+ // bfsGlobal: require.resolve('browserfs'),
38
+ // process: false,
39
+ // Buffer: false,
40
+ child_process: false,
41
+ worker_threads: false,
42
+ net: false,
43
+ readline: false,
44
+ perf_hooks: false
45
+ },
46
+ extensions: ['.ts', '.tsx', '.js']
47
+ },
48
+ node: {
49
+ __dirname: true,
50
+ __filename: true
51
+ },
52
+ // REQUIRED to avoid issue "Uncaught TypeError: BrowserFS.BFSRequire is not a function"
53
+ // See: https://github.com/jvilk/BrowserFS/issues/201
54
+ module: {
55
+ // noParse: /browserfs\.js/,
56
+ rules: [{
57
+ test: /\.tsx?$/,
58
+ loader: 'ts-loader'
59
+ }, {
60
+ test: /\.jsx?$|\.tsx?$/,
61
+ loader: 'ifdef-loader'
62
+ }, {
63
+ include: [/node_modules[\\/]@?typescript[\\/]/ // /vusion-api\/out\/fs\/Library\.js$/,
64
+ // /prettier\/index\.js$/,
65
+ // /prettier\/third-party\.js$/,
66
+ // /prettier\/parser-glimmer\.js$/,
67
+ // /babel\/core\/lib\/config\/files\/plugins\.js$/,
68
+ // /babel\/core\/lib\/config\/files\/configuration\.js$/,
69
+ // /\/src\/extension\//,
70
+ // /node-plop\/lib\/node-plop\.js$/,
71
+ ],
72
+ use: [require.resolve('./webpack/loaders/non-webpack-require-loader')]
73
+ }]
74
+ },
75
+ plugins: [// Expose BrowserFS, process, and Buffer globals.
76
+ // NOTE: If you intend to use BrowserFS in a script tag, you do not need
77
+ // to expose a BrowserFS global.
78
+ // new NodePolyfillPlugin(),
79
+ // new webpack.ProvidePlugin({ BrowserFS: 'bfsGlobal', process: 'processGlobal', Buffer: 'bufferGlobal' }),
80
+ // 先不打开
81
+ // new HtmlWebpackPlugin({
82
+ // filename: 'index.html',
83
+ // chunks: ['bundle'],
84
+ // }),
85
+ // new HtmlWebpackPlugin({
86
+ // filename: 'webpack.html',
87
+ // chunks: ['webpack'],
88
+ // }),
89
+ ],
90
+ devServer: {
91
+ port: 8700,
92
+ // static: {
93
+ // directory: __dirname,
94
+ // },
95
+ proxy: {
96
+ '/src': {
97
+ target: 'http://localhost:8080',
98
+ pathRewrite: {
99
+ '/src': '/src'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ };