@nodesecure/rc 5.0.1 → 5.1.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 CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ## Requirements
10
10
 
11
- - [Node.js](https://nodejs.org/en/) v20 or higher
11
+ - [Node.js](https://nodejs.org/en/) v24 or higher
12
12
 
13
13
  ## Getting Started
14
14
 
@@ -1,5 +1,5 @@
1
1
  import { type Option } from "@openally/result";
2
- import type { RC } from "../rc.js";
2
+ import type { RC } from "../rc.ts";
3
3
  export interface MemoizeOptions {
4
4
  /**
5
5
  * If enabled it will overwrite (crush) the previous memoized RC
@@ -1,6 +1,6 @@
1
- import { Result } from "@openally/result";
1
+ import { type Result } from "@openally/result";
2
2
  import type { RequireAtLeastOne } from "type-fest";
3
- import { type RCGenerationMode, type RC } from "../rc.js";
3
+ import { type RCGenerationMode, type RC } from "../rc.ts";
4
4
  interface CreateReadOptions {
5
5
  /**
6
6
  * If enabled the file will be created if it does not exist on the disk.
@@ -1 +1 @@
1
- {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/functions/read.ts"],"names":[],"mappings":"AAMA,OAAO,EAAW,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnD,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,EAAE,EACR,MAAM,UAAU,CAAC;AAIlB,UAAU,iBAAiB;IACzB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAEnD;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,sBAAsB,GAAG,YAAY,CAAC,CAAC;AAEtG,wBAAsB,IAAI,CACxB,QAAQ,SAAgB,EACxB,OAAO,GAAE,WAAiC,GACzC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CA2B5C"}
1
+ {"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/functions/read.ts"],"names":[],"mappings":"AAMA,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnD,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,EAAE,EACR,MAAM,UAAU,CAAC;AAIlB,UAAU,iBAAiB;IACzB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAEnD;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,iBAAiB,CAAC,iBAAiB,EAAE,sBAAsB,GAAG,YAAY,CAAC,CAAC;AAEtG,wBAAsB,IAAI,CACxB,QAAQ,SAAgB,EACxB,OAAO,GAAE,WAAiC,GACzC,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CA2B5C"}
@@ -3,7 +3,7 @@ import path from "node:path";
3
3
  import { once } from "node:events";
4
4
  // Import Third-party Dependencies
5
5
  import { AsynchronousConfig } from "@openally/config";
6
- import { Ok, Err, Result } from "@openally/result";
6
+ import { Ok, Err } from "@openally/result";
7
7
  // Import Internal Dependencies
8
8
  import { JSONSchema, generateDefaultRC } from "../rc.js";
9
9
  import * as CONSTANTS from "../constants.js";
@@ -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,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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"}
@@ -1,5 +1,5 @@
1
- import { Result } from "@openally/result";
2
- import { type RC } from "../rc.js";
1
+ import { type Result } from "@openally/result";
2
+ import { type RC } from "../rc.ts";
3
3
  /**
4
4
  * Overwrite the complete payload. partialUpdate property is mandatory.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../src/functions/write.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAGnD,OAAO,EAAc,KAAK,EAAE,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,EAAE,CAAC;IACZ,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB;AAED;;IAEI;AACJ,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACrB,aAAa,EAAE,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;AAEtE,wBAAsB,KAAK,CACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAoB9C"}
1
+ {"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../src/functions/write.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAGxD,OAAO,EAAc,KAAK,EAAE,EAAE,MAAM,UAAU,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,EAAE,CAAC;IACZ,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB;AAED;;IAEI;AACJ,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACrB,aAAa,EAAE,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;AAEtE,wBAAsB,KAAK,CACzB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAoB9C"}
@@ -2,7 +2,7 @@
2
2
  import path from "node:path";
3
3
  // Import Third-party Dependencies
4
4
  import { AsynchronousConfig } from "@openally/config";
5
- import { Ok, Err, Result } from "@openally/result";
5
+ import { Ok, Err } from "@openally/result";
6
6
  // Import Internal Dependencies
7
7
  import { JSONSchema } from "../rc.js";
8
8
  import * as CONSTANTS from "../constants.js";
@@ -1 +1 @@
1
- {"version":3,"file":"write.js","sourceRoot":"","sources":["../../src/functions/write.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnD,+BAA+B;AAC/B,OAAO,EAAE,UAAU,EAAW,MAAM,UAAU,CAAC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AChB,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
@@ -1,6 +1,6 @@
1
- export * from "./functions/read.js";
2
- export * from "./functions/write.js";
3
- export * from "./functions/memoize.js";
4
- export * as CONSTANTS from "./constants.js";
5
- export { type RC, type CiConfiguration, type CiWarnings, type ReportConfiguration, type ReportChart, type ScannerConfiguration, JSONSchema, homedir } from "./rc.js";
1
+ export * from "./functions/read.ts";
2
+ export * from "./functions/write.ts";
3
+ export * from "./functions/memoize.ts";
4
+ export * as CONSTANTS from "./constants.ts";
5
+ export { type RC, type CiConfiguration, type CiWarnings, type ReportConfiguration, type ReportChart, type ScannerConfiguration, JSONSchema, homedir } from "./rc.ts";
6
6
  //# sourceMappingURL=index.d.ts.map
package/dist/rc.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as vulnera from "@nodesecure/vulnera";
2
- import { generateCIConfiguration, type CiConfiguration, type CiWarnings } from "./projects/ci.js";
3
- import { generateReportConfiguration, type ReportConfiguration, type ReportChart } from "./projects/report.js";
4
- import { generateScannerConfiguration, type ScannerConfiguration } from "./projects/scanner.js";
2
+ import { generateCIConfiguration, type CiConfiguration, type CiWarnings } from "./projects/ci.ts";
3
+ import { generateReportConfiguration, type ReportConfiguration, type ReportChart } from "./projects/report.ts";
4
+ import { generateScannerConfiguration, type ScannerConfiguration } from "./projects/scanner.ts";
5
5
  export declare const JSONSchema: any;
6
6
  export interface RC {
7
7
  /** version of the rc package used to generate the nodesecurerc file */
@@ -1,2 +1,2 @@
1
- export * from "./readJSON.js";
1
+ export * from "./readJSON.ts";
2
2
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodesecure/rc",
3
- "version": "5.0.1",
3
+ "version": "5.1.0",
4
4
  "description": "NodeSecure runtime configuration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -9,15 +9,21 @@
9
9
  "node": ">=20"
10
10
  },
11
11
  "scripts": {
12
- "build": "tsc",
12
+ "build": "tsc -b",
13
13
  "prepublishOnly": "npm run build",
14
- "test-only": "tsx --test ./test/**/*.spec.ts",
15
- "test:tsd": "npm run build && tsd",
16
- "test": "c8 -r html npm run test-only && npm run test:tsd"
14
+ "test-only": "node --test ./test/**/*.spec.ts",
15
+ "test-types": "npm run build && tsd && attw --pack . --profile esm-only",
16
+ "test": "c8 -r html npm run test-only && npm run test-types"
17
+ },
18
+ "publishConfig": {
19
+ "registry": "https://registry.npmjs.org",
20
+ "access": "public",
21
+ "provenance": true
17
22
  },
18
23
  "repository": {
19
24
  "type": "git",
20
- "url": "git+https://github.com/NodeSecure/scanner.git"
25
+ "url": "https://github.com/NodeSecure/scanner",
26
+ "directory": "workspaces/rc"
21
27
  },
22
28
  "files": [
23
29
  "dist"
@@ -36,16 +42,16 @@
36
42
  "devDependencies": {
37
43
  "@types/lodash.merge": "^4.6.7",
38
44
  "@types/zen-observable": "^0.8.4",
39
- "ajv": "^8.12.0"
45
+ "ajv": "6.12.6"
40
46
  },
41
47
  "dependencies": {
42
- "@nodesecure/js-x-ray": "^9.2.0",
48
+ "@nodesecure/js-x-ray": "11.3.0",
43
49
  "@nodesecure/npm-types": "^1.2.0",
44
50
  "@nodesecure/vulnera": "^2.0.1",
45
51
  "@openally/config": "^1.0.1",
46
- "@openally/result": "^1.2.1",
52
+ "@openally/result": "2.0.0",
47
53
  "lodash.merge": "^4.6.2",
48
- "type-fest": "^4.41.0"
54
+ "type-fest": "^5.0.1"
49
55
  },
50
56
  "tsd": {
51
57
  "directory": "test/types"