@security-alert/share 1.6.0 → 1.10.9
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
|
@@ -10,7 +10,7 @@ Install with [npm](https://www.npmjs.com/):
|
|
|
10
10
|
|
|
11
11
|
## Changelog
|
|
12
12
|
|
|
13
|
-
See [Releases page](https://github.com/
|
|
13
|
+
See [Releases page](https://github.com/security-alert/create-security-alert-issue/releases).
|
|
14
14
|
|
|
15
15
|
## Running tests
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ Install devDependencies and Run `npm test`:
|
|
|
22
22
|
|
|
23
23
|
Pull requests and stars are always welcome.
|
|
24
24
|
|
|
25
|
-
For bugs and feature requests, [please create an issue](https://github.com/
|
|
25
|
+
For bugs and feature requests, [please create an issue](https://github.com/security-alert/create-security-alert-issue/issues).
|
|
26
26
|
|
|
27
27
|
1. Fork it!
|
|
28
28
|
2. Create your feature branch: `git checkout -b my-new-feature`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type fetchVulnerabilityAlertsOptions = {
|
|
2
2
|
token: string;
|
|
3
3
|
owner: string;
|
|
4
4
|
repo: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type VulnerabilityAlertNode = {
|
|
7
7
|
id: string;
|
|
8
8
|
vulnerableManifestFilename: string;
|
|
9
9
|
vulnerableManifestPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VulnerabilityAlerts.js","sourceRoot":"","sources":["../src/VulnerabilityAlerts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2C;AAuC3C,SAAsB,wBAAwB,CAC1C,OAAwC;;QAExC,iEAAiE;QACjE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,iBAAO,
|
|
1
|
+
{"version":3,"file":"VulnerabilityAlerts.js","sourceRoot":"","sources":["../src/VulnerabilityAlerts.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA2C;AAuC3C,SAAsB,wBAAwB,CAC1C,OAAwC;;QAExC,iEAAiE;QACjE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,iBAAO,EAShC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA4CC,EACD;YACI,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,OAAO,EAAE;gBACL,aAAa,EAAE,SAAS,OAAO,CAAC,KAAK,EAAE;gBACvC,MAAM,EAAE,2CAA2C;aACtD;SACJ,CACJ,CAAC;QACF,OAAO,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE;YAC1D,OAAO,IAAI,CAAC,IAAI,CAAC;QACrB,CAAC,CAAC,CAAC;IACP,CAAC;CAAA;AAtED,4DAsEC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PackageDetails } from "./parser/Details";
|
|
2
|
-
export
|
|
2
|
+
export type fetchPackageOptions = {
|
|
3
3
|
token: string;
|
|
4
4
|
owner: string;
|
|
5
5
|
repo: string;
|
|
6
6
|
packageName: string;
|
|
7
7
|
packageFilePath: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type fetchPackageDetails = PackageDetails & {
|
|
10
10
|
packageManifestUrl: string;
|
|
11
11
|
};
|
|
12
12
|
export declare function fetchPackageDetails(options: fetchPackageOptions): Promise<fetchPackageDetails>;
|
package/lib/parser/Details.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type DependenciesType = "dependencies" | "devDependencies" | "unknown";
|
|
2
|
+
export type PackageDetails = {
|
|
3
3
|
name: string;
|
|
4
4
|
version: string;
|
|
5
5
|
packageFilePath: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@security-alert/share",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.9",
|
|
4
4
|
"description": "security alert shared lib",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"security",
|
|
11
11
|
"tool"
|
|
12
12
|
],
|
|
13
|
-
"homepage": "https://github.com/
|
|
13
|
+
"homepage": "https://github.com/security-alert/security-alert",
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/security-alert/security-alert/issues"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "https://github.com/
|
|
19
|
+
"url": "https://github.com/security-alert/security-alert.git"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"author": "azu",
|
|
@@ -39,29 +39,28 @@
|
|
|
39
39
|
"watch": "tsc -p . --watch"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/lodash": "^4.14.
|
|
42
|
+
"@types/lodash": "^4.14.191",
|
|
43
43
|
"@types/meow": "^5.0.0",
|
|
44
|
-
"@types/mocha": "^
|
|
44
|
+
"@types/mocha": "^10.0.1",
|
|
45
45
|
"@types/nock": "^11.1.0",
|
|
46
|
-
"@types/node": "^
|
|
46
|
+
"@types/node": "^18.11.18",
|
|
47
47
|
"cross-env": "^7.0.2",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"ts-node": "^10.7.0",
|
|
48
|
+
"mocha": "^10.2.0",
|
|
49
|
+
"nock": "^13.3.0",
|
|
50
|
+
"rimraf": "^4.0.4",
|
|
51
|
+
"ts-node": "^10.9.1",
|
|
53
52
|
"ts-node-test-register": "^10.0.0",
|
|
54
|
-
"typescript": "^4.
|
|
53
|
+
"typescript": "^4.9.4"
|
|
55
54
|
},
|
|
56
55
|
"dependencies": {
|
|
57
|
-
"@npm/types": "^1.0.
|
|
56
|
+
"@npm/types": "^1.0.2",
|
|
58
57
|
"@octokit/graphql": "^4.5.3",
|
|
59
58
|
"@octokit/rest": "^18.0.3",
|
|
60
59
|
"@octokit/types": "^6.34.0",
|
|
61
60
|
"@yarnpkg/lockfile": "^1.0.0",
|
|
62
61
|
"meow": "^7.0.1"
|
|
63
62
|
},
|
|
64
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "e39f24b9b4729ae26ab590906555d67270ae566d",
|
|
65
64
|
"publishConfig": {
|
|
66
65
|
"access": "public"
|
|
67
66
|
}
|
|
@@ -41,7 +41,15 @@ export async function fetchVulnerabilityAlerts(
|
|
|
41
41
|
options: fetchVulnerabilityAlertsOptions
|
|
42
42
|
): Promise<VulnerabilityAlertNode[]> {
|
|
43
43
|
// https://developer.github.com/v4/object/repository/#connections
|
|
44
|
-
const { repository } = await graphql
|
|
44
|
+
const { repository } = await graphql<{
|
|
45
|
+
repository: {
|
|
46
|
+
vulnerabilityAlerts: {
|
|
47
|
+
edges: {
|
|
48
|
+
node: VulnerabilityAlertNode;
|
|
49
|
+
}[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}>(
|
|
45
53
|
`
|
|
46
54
|
query vulnerabilityAlerts($owner: String!, $repo: String!) {
|
|
47
55
|
repository(owner: $owner, name: $repo) {
|