@nodesecure/tarball 2.1.0 → 2.2.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.
- package/dist/warnings.d.ts +83 -1
- package/dist/warnings.d.ts.map +1 -1
- package/dist/warnings.js +15 -0
- package/dist/warnings.js.map +1 -1
- package/package.json +16 -6
package/dist/warnings.d.ts
CHANGED
|
@@ -1,4 +1,86 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Warning, type WarningName } from "@nodesecure/js-x-ray/warnings";
|
|
2
|
+
export type TarballWarningName = WarningName | "zero-semver" | "empty-package";
|
|
3
|
+
export declare const warnings: Readonly<{
|
|
4
|
+
"zero-semver": {
|
|
5
|
+
i18n: string;
|
|
6
|
+
experimental: false;
|
|
7
|
+
severity: "Information";
|
|
8
|
+
};
|
|
9
|
+
"empty-package": {
|
|
10
|
+
i18n: string;
|
|
11
|
+
experimental: false;
|
|
12
|
+
severity: "Warning";
|
|
13
|
+
};
|
|
14
|
+
"parsing-error": {
|
|
15
|
+
i18n: string;
|
|
16
|
+
severity: "Information";
|
|
17
|
+
};
|
|
18
|
+
"unsafe-import": {
|
|
19
|
+
i18n: string;
|
|
20
|
+
severity: "Warning";
|
|
21
|
+
};
|
|
22
|
+
"unsafe-regex": {
|
|
23
|
+
i18n: string;
|
|
24
|
+
severity: "Warning";
|
|
25
|
+
};
|
|
26
|
+
"unsafe-stmt": {
|
|
27
|
+
code: string;
|
|
28
|
+
i18n: string;
|
|
29
|
+
severity: "Warning";
|
|
30
|
+
};
|
|
31
|
+
"encoded-literal": {
|
|
32
|
+
i18n: string;
|
|
33
|
+
severity: "Information";
|
|
34
|
+
};
|
|
35
|
+
"short-identifiers": {
|
|
36
|
+
i18n: string;
|
|
37
|
+
severity: "Warning";
|
|
38
|
+
};
|
|
39
|
+
"suspicious-literal": {
|
|
40
|
+
i18n: string;
|
|
41
|
+
severity: "Warning";
|
|
42
|
+
};
|
|
43
|
+
"suspicious-file": {
|
|
44
|
+
i18n: string;
|
|
45
|
+
severity: "Critical";
|
|
46
|
+
experimental: false;
|
|
47
|
+
};
|
|
48
|
+
"obfuscated-code": {
|
|
49
|
+
i18n: string;
|
|
50
|
+
severity: "Critical";
|
|
51
|
+
experimental: true;
|
|
52
|
+
};
|
|
53
|
+
"weak-crypto": {
|
|
54
|
+
i18n: string;
|
|
55
|
+
severity: "Information";
|
|
56
|
+
experimental: false;
|
|
57
|
+
};
|
|
58
|
+
"shady-link": {
|
|
59
|
+
i18n: string;
|
|
60
|
+
severity: "Warning";
|
|
61
|
+
experimental: false;
|
|
62
|
+
};
|
|
63
|
+
"unsafe-command": {
|
|
64
|
+
i18n: string;
|
|
65
|
+
severity: "Warning";
|
|
66
|
+
experimental: true;
|
|
67
|
+
};
|
|
68
|
+
"synchronous-io": {
|
|
69
|
+
i18n: string;
|
|
70
|
+
severity: "Warning";
|
|
71
|
+
experimental: true;
|
|
72
|
+
};
|
|
73
|
+
"serialize-environment": {
|
|
74
|
+
i18n: string;
|
|
75
|
+
severity: "Warning";
|
|
76
|
+
experimental: false;
|
|
77
|
+
};
|
|
78
|
+
"data-exfiltration": {
|
|
79
|
+
i18n: string;
|
|
80
|
+
severity: "Warning";
|
|
81
|
+
experimental: false;
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
2
84
|
export declare function getSemVerWarning(value: string): Warning;
|
|
3
85
|
export declare function getEmptyPackageWarning(): Warning;
|
|
4
86
|
//# sourceMappingURL=warnings.d.ts.map
|
package/dist/warnings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"warnings.d.ts","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,aAAa,GACb,eAAe,CAAC;AAEpB,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYuE,CAAC;AAE7F,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,GACZ,OAAO,CAWT;AAED,wBAAgB,sBAAsB,IAAI,OAAO,CAWhD"}
|
package/dist/warnings.js
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
// Import Third-party Dependencies
|
|
2
|
+
import { warnings as originalWarnings } from "@nodesecure/js-x-ray/warnings";
|
|
3
|
+
export const warnings = Object.freeze({
|
|
4
|
+
...originalWarnings,
|
|
5
|
+
"zero-semver": {
|
|
6
|
+
i18n: "sast_warnings.zero_semver",
|
|
7
|
+
experimental: false,
|
|
8
|
+
severity: "Information"
|
|
9
|
+
},
|
|
10
|
+
"empty-package": {
|
|
11
|
+
i18n: "sast_warnings.empty_package",
|
|
12
|
+
experimental: false,
|
|
13
|
+
severity: "Warning"
|
|
14
|
+
}
|
|
15
|
+
});
|
|
1
16
|
export function getSemVerWarning(value) {
|
|
2
17
|
return {
|
|
3
18
|
kind: "zero-semver",
|
package/dist/warnings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warnings.js","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"warnings.js","sourceRoot":"","sources":["../src/warnings.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,OAAO,EACL,QAAQ,IAAI,gBAAgB,EAG7B,MAAM,+BAA+B,CAAC;AAOvC,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC;IACpC,GAAG,gBAAgB;IACnB,aAAa,EAAE;QACb,IAAI,EAAE,2BAA2B;QACjC,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,aAAa;KACxB;IACD,eAAe,EAAE;QACf,IAAI,EAAE,6BAA6B;QACnC,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,SAAS;KACpB;CACF,CAA2F,CAAC;AAE7F,MAAM,UAAU,gBAAgB,CAC9B,KAAa;IAEb,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,cAAc;QACpB,KAAK;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,2BAA2B;QACjC,QAAQ,EAAE,aAAa;QACvB,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,KAAK;KACpB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO;QACL,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,cAAc;QACrB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,6BAA6B;QACnC,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,KAAK;KACpB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodesecure/tarball",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "NodeSecure tarball scanner",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"exports":
|
|
7
|
-
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"./warnings": {
|
|
12
|
+
"import": "./dist/warnings.js",
|
|
13
|
+
"types": "./dist/warnings.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
8
17
|
"scripts": {
|
|
9
18
|
"build": "tsc",
|
|
10
19
|
"prepublishOnly": "npm run build",
|
|
11
20
|
"test-only": "tsx --test ./test/**/*.spec.ts",
|
|
12
|
-
"test": "
|
|
21
|
+
"test-types": "attw --pack . --profile esm-only",
|
|
22
|
+
"test": "c8 -r html npm run test-only && npm run test-types"
|
|
13
23
|
},
|
|
14
24
|
"files": [
|
|
15
25
|
"dist"
|
|
@@ -29,9 +39,9 @@
|
|
|
29
39
|
},
|
|
30
40
|
"homepage": "https://github.com/NodeSecure/tree/master/workspaces/tarball#readme",
|
|
31
41
|
"dependencies": {
|
|
32
|
-
"@nodesecure/conformance": "^1.
|
|
42
|
+
"@nodesecure/conformance": "^1.2.0",
|
|
33
43
|
"@nodesecure/fs-walk": "^2.0.0",
|
|
34
|
-
"@nodesecure/js-x-ray": "^
|
|
44
|
+
"@nodesecure/js-x-ray": "^10.0.0",
|
|
35
45
|
"@nodesecure/mama": "^2.0.0",
|
|
36
46
|
"@nodesecure/npm-types": "^1.2.0",
|
|
37
47
|
"@nodesecure/utils": "^2.3.0",
|