@nodesecure/rc 2.1.0 → 4.0.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/README.md +16 -6
- package/dist/functions/read.d.ts +0 -1
- package/dist/functions/read.js +3 -3
- package/dist/functions/read.js.map +1 -1
- package/dist/functions/write.d.ts +0 -1
- package/dist/functions/write.js +3 -3
- package/dist/functions/write.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/projects/scanner.d.ts +4 -9
- package/dist/projects/scanner.js +3 -1
- package/dist/projects/scanner.js.map +1 -1
- package/dist/rc.d.ts +5 -5
- package/dist/rc.js +1 -1
- package/dist/rc.js.map +1 -1
- package/dist/schema/defs/contact.json +16 -0
- package/dist/schema/defs/scanner.json +12 -5
- package/dist/schema/nodesecurerc.json +3 -3
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -81,26 +81,27 @@ assert.deepEqual(configurationPayload, memoizedPayload);
|
|
|
81
81
|
|
|
82
82
|
## API
|
|
83
83
|
|
|
84
|
-
>
|
|
84
|
+
> [!NOTE]
|
|
85
|
+
> If `undefined`, the location will be assigned to `process.cwd()`.
|
|
85
86
|
|
|
86
87
|
### read(location?: string, options?: readOptions): Promise< Result< RC, NodeJS.ErrnoException > >
|
|
87
88
|
|
|
88
89
|
```ts
|
|
89
90
|
interface createReadOptions {
|
|
90
91
|
/**
|
|
91
|
-
* If enabled the file will be created if it does not exist on
|
|
92
|
+
* If enabled, the file will be created if it does not exist on disk.
|
|
92
93
|
*
|
|
93
94
|
* @default false
|
|
94
95
|
*/
|
|
95
96
|
createIfDoesNotExist?: boolean;
|
|
96
97
|
/**
|
|
97
|
-
*
|
|
98
|
+
* Generate a more or less complete configuration.
|
|
98
99
|
*
|
|
99
100
|
* @default `minimal`
|
|
100
101
|
*/
|
|
101
102
|
createMode?: RCGenerationMode | RCGenerationMode[];
|
|
102
103
|
/**
|
|
103
|
-
*
|
|
104
|
+
* Automatically cache the configuration when enabled.
|
|
104
105
|
*
|
|
105
106
|
* @default false
|
|
106
107
|
*/
|
|
@@ -220,9 +221,9 @@ await RC.read(void 0, { createMode: ["ci", "report"] });
|
|
|
220
221
|
|
|
221
222
|
## JSON Schema
|
|
222
223
|
|
|
223
|
-
The runtime configuration is validated
|
|
224
|
+
The runtime configuration is validated using a JSON Schema: `./src/schema/nodesecurerc.json`.
|
|
224
225
|
|
|
225
|
-
It can be retrieved
|
|
226
|
+
It can be retrieved via API if needed:
|
|
226
227
|
|
|
227
228
|
```ts
|
|
228
229
|
import * as RC from "@nodesecure/rc";
|
|
@@ -230,6 +231,15 @@ import * as RC from "@nodesecure/rc";
|
|
|
230
231
|
console.log(RC.JSONSchema);
|
|
231
232
|
```
|
|
232
233
|
|
|
234
|
+
The JSON schema is a composition of multiple definitions for each tool:
|
|
235
|
+
|
|
236
|
+
- [ci](./src/schema/defs/ci.json)
|
|
237
|
+
- [ciWarnings](./src/schema/defs/ciWarnings.json)
|
|
238
|
+
- [contact](./src/schema/defs/contact.json)
|
|
239
|
+
- [report](./src/schema/defs/report.json)
|
|
240
|
+
- [reportChart](./src/schema/defs/reportChart.json)
|
|
241
|
+
- [scanner](./src/schema/defs/scanner.json)
|
|
242
|
+
|
|
233
243
|
## Contributors ✨
|
|
234
244
|
|
|
235
245
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
package/dist/functions/read.d.ts
CHANGED
package/dist/functions/read.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { once } from "node:events";
|
|
4
4
|
// Import Third-party Dependencies
|
|
5
|
-
import
|
|
5
|
+
import { AsynchronousConfig } from "@openally/config";
|
|
6
6
|
import { Ok, Err } from "@openally/result";
|
|
7
7
|
// Import Internal Dependencies
|
|
8
8
|
import { JSONSchema, generateDefaultRC } from "../rc.js";
|
|
@@ -12,8 +12,8 @@ export async function read(location = process.cwd(), options = Object.create(nul
|
|
|
12
12
|
try {
|
|
13
13
|
const { createIfDoesNotExist = Boolean(options.createMode), createMode, memoize: memoizeRc = false } = options;
|
|
14
14
|
const cfgPath = path.join(location, CONSTANTS.CONFIGURATION_NAME);
|
|
15
|
-
const cfg = new
|
|
16
|
-
|
|
15
|
+
const cfg = new AsynchronousConfig(cfgPath, {
|
|
16
|
+
jsonSchema: JSONSchema,
|
|
17
17
|
createOnNoEntry: createIfDoesNotExist
|
|
18
18
|
});
|
|
19
19
|
await cfg.read(createIfDoesNotExist ? generateDefaultRC(createMode) : void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/functions/read.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,kCAAkC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/functions/read.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,GAAG,EAAU,MAAM,kBAAkB,CAAC;AAGnD,+BAA+B;AAC/B,OAAO,EAAM,UAAU,EAAE,iBAAiB,EAAoB,MAAM,UAAU,CAAC;AAC/E,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA0BvC,MAAM,CAAC,KAAK,UAAU,IAAI,CACxB,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,EACxB,UAAuB,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;IAE1C,IAAI,CAAC;QACH,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;QAE/G,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAClE,MAAM,GAAG,GAAG,IAAI,kBAAkB,CAAK,OAAO,EAAE;YAC9C,UAAU,EAAE,UAAU;YACtB,eAAe,EAAE,oBAAoB;SACtC,CAAC,CAAC;QAEH,MAAM,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC9E,IAAI,oBAAoB,EAAE,CAAC;YACzB,MAAM,IAAI,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;QACnC,CAAC;QACD,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;QAE3B,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,CAAC,MAAM,CAAC,CAAC;QAClB,CAAC;QAED,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAElB,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,GAAG,CAAC,KAA8B,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
package/dist/functions/write.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Import Node.js Dependencies
|
|
2
2
|
import path from "path";
|
|
3
3
|
// Import Third-party Dependencies
|
|
4
|
-
import
|
|
4
|
+
import { AsynchronousConfig } from "@openally/config";
|
|
5
5
|
import { Ok, Err } from "@openally/result";
|
|
6
6
|
// Import Internal Dependencies
|
|
7
7
|
import { JSONSchema } from "../rc.js";
|
|
@@ -10,8 +10,8 @@ export async function write(location = process.cwd(), options) {
|
|
|
10
10
|
try {
|
|
11
11
|
const { payload, partialUpdate = false } = options;
|
|
12
12
|
const cfgPath = path.join(location, CONSTANTS.CONFIGURATION_NAME);
|
|
13
|
-
const cfg = new
|
|
14
|
-
|
|
13
|
+
const cfg = new AsynchronousConfig(cfgPath, {
|
|
14
|
+
jsonSchema: JSONSchema
|
|
15
15
|
});
|
|
16
16
|
await cfg.read();
|
|
17
17
|
const newPayloadValue = partialUpdate ? Object.assign(cfg.payload, payload) : payload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../src/functions/write.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,kCAAkC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"write.js","sourceRoot":"","sources":["../../src/functions/write.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,GAAG,EAAU,MAAM,kBAAkB,CAAC;AAEnD,+BAA+B;AAC/B,OAAO,EAAM,UAAU,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,iBAAiB,CAAC;AAmB7C,MAAM,CAAC,KAAK,UAAU,KAAK,CACzB,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,EACxB,OAAqB;IAErB,IAAI,CAAC;QACH,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;QAEnD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAClE,MAAM,GAAG,GAAG,IAAI,kBAAkB,CAAK,OAAO,EAAE;YAC9C,UAAU,EAAE,UAAU;SACvB,CAAC,CAAC;QACH,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC;QAEjB,MAAM,eAAe,GAAG,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,OAAa,CAAC;QAC5F,GAAG,CAAC,OAAO,GAAG,eAAe,CAAC;QAE9B,MAAM,GAAG,CAAC,KAAK,EAAE,CAAC;QAElB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,EAAE,CAAC;QACb,OAAO,GAAG,CAAC,KAA8B,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export * from "./functions/read.js";
|
|
|
2
2
|
export * from "./functions/write.js";
|
|
3
3
|
export * from "./functions/memoize.js";
|
|
4
4
|
export * as CONSTANTS from "./constants.js";
|
|
5
|
-
export { type RC,
|
|
5
|
+
export { type RC, JSONSchema, homedir } from "./rc.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAW,UAAU,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
+
import type { Contact } from "@nodesecure/npm-types";
|
|
1
2
|
/**
|
|
2
3
|
* Configuration dedicated for NodeSecure scanner
|
|
3
4
|
* @see https://github.com/NodeSecure/scanner
|
|
4
5
|
*/
|
|
5
6
|
export interface ScannerConfiguration {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
flaggedAuthors: Author[];
|
|
7
|
+
highlight?: {
|
|
8
|
+
contacts: Contact[];
|
|
9
|
+
};
|
|
11
10
|
}
|
|
12
|
-
export type Author = {
|
|
13
|
-
name: string;
|
|
14
|
-
email: string;
|
|
15
|
-
};
|
|
16
11
|
export declare function generateScannerConfiguration(): {
|
|
17
12
|
scanner: ScannerConfiguration;
|
|
18
13
|
};
|
package/dist/projects/scanner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scanner.js","sourceRoot":"","sources":["../../src/projects/scanner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scanner.js","sourceRoot":"","sources":["../../src/projects/scanner.ts"],"names":[],"mappings":"AAaA,MAAM,UAAU,4BAA4B;IAC1C,MAAM,OAAO,GAAyB;QACpC,SAAS,EAAE;YACT,QAAQ,EAAE,EAAE;SACb;KACF,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC"}
|
package/dist/rc.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import i18n from "@nodesecure/i18n";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vulnera from "@nodesecure/vulnera";
|
|
3
3
|
import { generateCIConfiguration, type CiConfiguration, type CiWarnings } from "./projects/ci.js";
|
|
4
4
|
import { generateReportConfiguration, type ReportConfiguration, type ReportChart } from "./projects/report.js";
|
|
5
|
-
import { generateScannerConfiguration, type ScannerConfiguration
|
|
5
|
+
import { generateScannerConfiguration, type ScannerConfiguration } from "./projects/scanner.js";
|
|
6
6
|
export declare const JSONSchema: any;
|
|
7
7
|
export interface RC {
|
|
8
8
|
/** version of the rc package used to generate the nodesecurerc file */
|
|
@@ -19,9 +19,9 @@ export interface RC {
|
|
|
19
19
|
* Vulnerability strategy to use. Can be disabled by using `none` as value.
|
|
20
20
|
* @see https://github.com/NodeSecure/vuln#available-strategy
|
|
21
21
|
*
|
|
22
|
-
* @default `
|
|
22
|
+
* @default `github-advisory`
|
|
23
23
|
*/
|
|
24
|
-
strategy?:
|
|
24
|
+
strategy?: vulnera.Kind;
|
|
25
25
|
/**
|
|
26
26
|
* Package Registry (default to NPM public registry)
|
|
27
27
|
* @default `https://registry.npmjs.org`
|
|
@@ -45,4 +45,4 @@ export declare function generateDefaultRC(mode?: RCGenerationMode | RCGeneration
|
|
|
45
45
|
* Dedicated directory for NodeSecure to store the configuration in the os HOME directory.
|
|
46
46
|
*/
|
|
47
47
|
export declare function homedir(): string;
|
|
48
|
-
export { generateCIConfiguration, CiConfiguration, CiWarnings, generateReportConfiguration, ReportConfiguration, ReportChart, generateScannerConfiguration, ScannerConfiguration
|
|
48
|
+
export { generateCIConfiguration, CiConfiguration, CiWarnings, generateReportConfiguration, ReportConfiguration, ReportChart, generateScannerConfiguration, ScannerConfiguration };
|
package/dist/rc.js
CHANGED
|
@@ -19,7 +19,7 @@ export function generateDefaultRC(mode = "minimal") {
|
|
|
19
19
|
const minimalRC = {
|
|
20
20
|
version: "1.0.0",
|
|
21
21
|
i18n: "english",
|
|
22
|
-
strategy: "
|
|
22
|
+
strategy: "github-advisory",
|
|
23
23
|
registry: "https://registry.npmjs.org"
|
|
24
24
|
};
|
|
25
25
|
const complete = modes.has("complete");
|
package/dist/rc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rc.js","sourceRoot":"","sources":["../src/rc.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAM7B,+BAA+B;AAC/B,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,
|
|
1
|
+
{"version":3,"file":"rc.js","sourceRoot":"","sources":["../src/rc.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAM7B,+BAA+B;AAC/B,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EACL,uBAAuB,EAGxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,2BAA2B,EAG5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,4BAA4B,EAE7B,MAAM,uBAAuB,CAAC;AAE/B,YAAY;AACZ,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,EAAE,CAAC;AAmC/C;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,OAA8C,SAAS;IAEvD,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAEhE,MAAM,SAAS,GAAG;QAChB,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,SAAkB;QACxB,QAAQ,EAAE,iBAA0B;QACpC,QAAQ,EAAE,4BAA4B;KACvC,CAAC;IACF,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAEvC,OAAO,MAAM,CAAC,MAAM,CAClB,SAAS,EACT,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,uBAAuB,EAAE,CAAC,CAAC,CAAC,EAAE,EAC5D,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,2BAA2B,EAAE,CAAC,CAAC,CAAC,EAAE,EACpE,QAAQ,IAAI,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4BAA4B,EAAE,CAAC,CAAC,CAAC,EAAE,CACvE,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,OAAO;IACrB,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,8BAA8B,CAAC,CAAC;AACjE,CAAC;AAED,OAAO,EACL,uBAAuB,EAIvB,2BAA2B,EAI3B,4BAA4B,EAE7B,CAAC"}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
|
-
"
|
|
5
|
-
"type": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
4
|
+
"highlight": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"contacts": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"$ref": "#/$defs/contact"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"required": ["contacts"],
|
|
15
|
+
"additionalProperties": false
|
|
9
16
|
}
|
|
10
17
|
},
|
|
11
18
|
"additionalProperties": false
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"strategy": {
|
|
18
18
|
"type": "string",
|
|
19
19
|
"enum": [
|
|
20
|
-
"
|
|
21
|
-
"
|
|
20
|
+
"github-advisory",
|
|
21
|
+
"sonatype",
|
|
22
22
|
"snyk",
|
|
23
23
|
"none"
|
|
24
24
|
],
|
|
25
|
-
"default": "
|
|
25
|
+
"default": "github-advisory",
|
|
26
26
|
"description": "Vulnerability strategy to use"
|
|
27
27
|
},
|
|
28
28
|
"registry": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodesecure/rc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "NodeSecure runtime configuration",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"test": "npm run test-only && npm run test:tsd",
|
|
16
16
|
"test:tsd": "npm run build && tsd",
|
|
17
17
|
"coverage": "c8 -r html npm test",
|
|
18
|
-
"lint": "
|
|
18
|
+
"lint": "eslint src/**/*.ts"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -36,26 +36,26 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/NodeSecure/rc#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@nodesecure/eslint-config": "^
|
|
39
|
+
"@nodesecure/eslint-config": "^2.0.0-beta.0",
|
|
40
40
|
"@types/lodash.merge": "^4.6.7",
|
|
41
|
-
"@types/node": "^
|
|
41
|
+
"@types/node": "^22.0.0",
|
|
42
42
|
"@types/zen-observable": "^0.8.4",
|
|
43
43
|
"ajv": "^8.12.0",
|
|
44
|
-
"c8": "^
|
|
45
|
-
"
|
|
46
|
-
"glob": "^10.3.10",
|
|
44
|
+
"c8": "^10.1.2",
|
|
45
|
+
"glob": "^11.0.0",
|
|
47
46
|
"tsd": "^0.31.0",
|
|
48
|
-
"tsx": "^4.
|
|
49
|
-
"typescript": "^5.
|
|
47
|
+
"tsx": "^4.16.3",
|
|
48
|
+
"typescript": "^5.5.4"
|
|
50
49
|
},
|
|
51
50
|
"dependencies": {
|
|
52
|
-
"@nodesecure/i18n": "^4.0.
|
|
53
|
-
"@nodesecure/js-x-ray": "^7.
|
|
54
|
-
"@nodesecure/
|
|
51
|
+
"@nodesecure/i18n": "^4.0.1",
|
|
52
|
+
"@nodesecure/js-x-ray": "^7.3.0",
|
|
53
|
+
"@nodesecure/npm-types": "^1.0.0",
|
|
54
|
+
"@nodesecure/vulnera": "^2.0.1",
|
|
55
|
+
"@openally/config": "^1.0.1",
|
|
55
56
|
"@openally/result": "^1.2.1",
|
|
56
|
-
"@slimio/config": "^1.2.0",
|
|
57
57
|
"lodash.merge": "^4.6.2",
|
|
58
|
-
"type-fest": "^4.
|
|
58
|
+
"type-fest": "^4.23.0"
|
|
59
59
|
},
|
|
60
60
|
"tsd": {
|
|
61
61
|
"directory": "test/types",
|