@lcap/nasl-utils 4.4.0-beta.6 → 4.4.0-beta.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.
Files changed (45) hide show
  1. package/out/index.d.ts +5 -0
  2. package/out/index.d.ts.map +1 -1
  3. package/out/index.js +12 -1
  4. package/out/index.js.map +1 -1
  5. package/out/process.d.ts +10 -2
  6. package/out/process.d.ts.map +1 -1
  7. package/out/process.js +24 -2
  8. package/out/process.js.map +1 -1
  9. package/out/regex-validator/ExpressionLexer.d.ts +92 -0
  10. package/out/regex-validator/ExpressionLexer.d.ts.map +1 -0
  11. package/out/regex-validator/ExpressionLexer.js +814 -0
  12. package/out/regex-validator/ExpressionLexer.js.map +1 -0
  13. package/out/regex-validator/index.d.ts +5 -0
  14. package/out/regex-validator/index.d.ts.map +1 -0
  15. package/out/regex-validator/index.js +16 -0
  16. package/out/regex-validator/index.js.map +1 -0
  17. package/out/regex-validator/presetRegexr.d.ts +6 -0
  18. package/out/regex-validator/presetRegexr.d.ts.map +1 -0
  19. package/out/regex-validator/presetRegexr.js +30 -0
  20. package/out/regex-validator/presetRegexr.js.map +1 -0
  21. package/out/regex-validator/profiles/core.d.ts +347 -0
  22. package/out/regex-validator/profiles/core.d.ts.map +1 -0
  23. package/out/regex-validator/profiles/core.js +392 -0
  24. package/out/regex-validator/profiles/core.js.map +1 -0
  25. package/out/regex-validator/profiles/javascript.d.ts +12 -0
  26. package/out/regex-validator/profiles/javascript.d.ts.map +1 -0
  27. package/out/regex-validator/profiles/javascript.js +135 -0
  28. package/out/regex-validator/profiles/javascript.js.map +1 -0
  29. package/out/regex-validator/profiles/pcre.d.ts +44 -0
  30. package/out/regex-validator/profiles/pcre.d.ts.map +1 -0
  31. package/out/regex-validator/profiles/pcre.js +62 -0
  32. package/out/regex-validator/profiles/pcre.js.map +1 -0
  33. package/out/regex-validator/profiles/profiles.d.ts +6 -0
  34. package/out/regex-validator/profiles/profiles.d.ts.map +1 -0
  35. package/out/regex-validator/profiles/profiles.js +46 -0
  36. package/out/regex-validator/profiles/profiles.js.map +1 -0
  37. package/out/regex-validator/reference_content.d.ts +3 -0
  38. package/out/regex-validator/reference_content.d.ts.map +1 -0
  39. package/out/regex-validator/reference_content.js +790 -0
  40. package/out/regex-validator/reference_content.js.map +1 -0
  41. package/out/regex-validator/utils/Utils.d.ts +5 -0
  42. package/out/regex-validator/utils/Utils.d.ts.map +1 -0
  43. package/out/regex-validator/utils/Utils.js +16 -0
  44. package/out/regex-validator/utils/Utils.js.map +1 -0
  45. package/package.json +2 -2
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /*
3
+ RegExr: Learn, Build, & Test RegEx
4
+ Copyright (C) 2017 gskinner.com, inc.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ /*
21
+ The PCRE profile is almost a straight copy of the core profile.
22
+ */
23
+ let y = true, n = false;
24
+ let pcre = {
25
+ id: "pcre",
26
+ label: "PCRE",
27
+ browser: false,
28
+ flags: {
29
+ "u": n,
30
+ "y": n
31
+ },
32
+ badEscChars: "uUlLN".split("").reduce((o, c) => { o[c] = y; return o; }, {}),
33
+ escCharCodes: {
34
+ "v": n // vertical tab // PCRE support \v as vertical whitespace
35
+ },
36
+ tokens: {
37
+ "escunicodeu": n, // \uFFFF
38
+ "escunicodeub": n, // \u{00A9}
39
+ // octalo PCRE 8.34+
40
+ },
41
+ substTokens: {
42
+ "subst_$esc": n, // $$
43
+ "subst_$&match": n, // $&
44
+ "subst_$before": n, // $`
45
+ "subst_$after": n // $'
46
+ },
47
+ config: {
48
+ "reftooctalalways": n, // does a single digit reference \1 become an octal? (vs remain an unmatched ref)
49
+ "substdecomposeref": n, // will a subst reference decompose? (ex. \3 becomes "\" & "3" if < 3 groups)
50
+ "looseesc": n // should unrecognized escape sequences match the character (ex. \u could match "u") // disabled when `u` flag is set
51
+ },
52
+ docs: {
53
+ "escoctal": { ext: "+<p>The syntax <code>\\o{FFF}</code> is also supported.</p>" },
54
+ "numref": {
55
+ ext: "<p>There are multiple syntaxes for this feature: <code>\\1</code> <code>\\g1</code> <code>\\g{1}</code>.</p>" +
56
+ "<p>The latter syntaxes support relative values preceded by <code>+</code> or <code>-</code>. For example <code>\\g-1</code> would match the group preceding the reference.</p>"
57
+ },
58
+ "lazy": { ext: "+<p>This behaviour is reversed by the ungreedy (<code>U</code>) flag/modifier.</p>" }
59
+ }
60
+ };
61
+ exports.default = pcre;
62
+ //# sourceMappingURL=pcre.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pcre.js","sourceRoot":"","sources":["../../../src/regex-validator/profiles/pcre.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;EAgBE;;AAEF;;EAEE;AACF,IAAI,CAAC,GAAC,IAAI,EAAE,CAAC,GAAC,KAAK,CAAC;AAEpB,IAAI,IAAI,GAAG;IACV,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,KAAK;IAEd,KAAK,EAAE;QACN,GAAG,EAAE,CAAC;QACN,GAAG,EAAE,CAAC;KACN;IAED,WAAW,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA,CAAA,CAAC,EAAE,EAAE,CAAC;IAE1E,YAAY,EAAE;QACb,GAAG,EAAE,CAAC,CAAC,yDAAyD;KAChE;IAED,MAAM,EAAE;QACP,aAAa,EAAE,CAAC,EAAE,SAAS;QAC3B,cAAc,EAAE,CAAC,EAAE,WAAW;QAC9B,oBAAoB;KACpB;IAED,WAAW,EAAE;QACZ,YAAY,EAAE,CAAC,EAAE,KAAK;QACtB,eAAe,EAAE,CAAC,EAAE,KAAK;QACzB,eAAe,EAAE,CAAC,EAAE,KAAK;QACzB,cAAc,EAAE,CAAC,CAAC,KAAK;KACvB;IAED,MAAM,EAAE;QACP,kBAAkB,EAAE,CAAC,EAAE,iFAAiF;QACxG,mBAAmB,EAAE,CAAC,EAAE,6EAA6E;QACrG,UAAU,EAAE,CAAC,CAAC,qHAAqH;KACnI;IAED,IAAI,EAAE;QACL,UAAU,EAAC,EAAC,GAAG,EAAC,6DAA6D,EAAC;QAC9E,QAAQ,EAAC;YACR,GAAG,EAAC,8GAA8G;gBACjH,gLAAgL;SACjL;QACD,MAAM,EAAE,EAAE,GAAG,EAAC,oFAAoF,EAAE;KACpG;CACD,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -0,0 +1,6 @@
1
+ export default profiles;
2
+ declare namespace profiles {
3
+ let pcre: any;
4
+ let js: any;
5
+ }
6
+ //# sourceMappingURL=profiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/regex-validator/profiles/profiles.js"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /*
3
+ RegExr: Learn, Build, & Test RegEx
4
+ Copyright (C) 2017 gskinner.com, inc.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+ var __importDefault = (this && this.__importDefault) || function (mod) {
20
+ return (mod && mod.__esModule) ? mod : { "default": mod };
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ const core_1 = __importDefault(require("./core"));
24
+ const pcre_1 = __importDefault(require("./pcre"));
25
+ const javascript_1 = __importDefault(require("./javascript"));
26
+ let profiles = { core: core_1.default };
27
+ exports.default = profiles;
28
+ profiles.pcre = merge(core_1.default, pcre_1.default);
29
+ profiles.js = merge(core_1.default, javascript_1.default);
30
+ function merge(p1, p2) {
31
+ // merges p1 into p2, essentially just a simple deep copy without array support.
32
+ for (let n in p1) {
33
+ if (p2[n] === false) {
34
+ continue;
35
+ }
36
+ else if (typeof p1[n] === "object") {
37
+ p2[n] = merge(p1[n], p2[n] || {});
38
+ }
39
+ else if (p2[n] === undefined) {
40
+ p2[n] = p1[n];
41
+ }
42
+ }
43
+ return p2;
44
+ }
45
+ ;
46
+ //# sourceMappingURL=profiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../../src/regex-validator/profiles/profiles.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;EAgBE;;;;;AAEF,kDAA0B;AAC1B,kDAA0B;AAC1B,8DAA8B;AAE9B,IAAI,QAAQ,GAAG,EAAC,IAAI,EAAJ,cAAI,EAAC,CAAC;AACtB,kBAAe,QAAQ,CAAC;AAExB,QAAQ,CAAC,IAAI,GAAG,KAAK,CAAC,cAAI,EAAE,cAAI,CAAC,CAAC;AAClC,QAAQ,CAAC,EAAE,GAAG,KAAK,CAAC,cAAI,EAAE,oBAAE,CAAC,CAAC;AAE9B,SAAS,KAAK,CAAC,EAAE,EAAE,EAAE;IACpB,gFAAgF;IAChF,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;QAClB,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;YAAC,SAAS;QAAC,CAAC;aAC7B,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;YAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QAAC,CAAC;aACrE,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QAAC,CAAC;IACjD,CAAC;IACD,OAAO,EAAE,CAAC;AACX,CAAC;AAAA,CAAC"}
@@ -0,0 +1,3 @@
1
+ export default reference_content;
2
+ declare let reference_content: {};
3
+ //# sourceMappingURL=reference_content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reference_content.d.ts","sourceRoot":"","sources":["../../src/regex-validator/reference_content.js"],"names":[],"mappings":";AAsBI,kCAAsB"}