@nodesecure/rc 1.0.0 → 1.0.1

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
@@ -152,7 +152,7 @@ console.log(RC.JSONSchema);
152
152
  ## Contributors ✨
153
153
 
154
154
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
155
- [![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
155
+ [![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
156
156
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
157
157
 
158
158
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
@@ -160,6 +160,12 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
160
160
  <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
161
161
  <!-- prettier-ignore-start -->
162
162
  <!-- markdownlint-disable -->
163
+ <table>
164
+ <tr>
165
+ <td align="center"><a href="https://www.linkedin.com/in/thomas-gentilhomme/"><img src="https://avatars.githubusercontent.com/u/4438263?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gentilhomme</b></sub></a><br /><a href="https://github.com/NodeSecure/rc/commits?author=fraxken" title="Code">💻</a> <a href="https://github.com/NodeSecure/rc/issues?q=author%3Afraxken" title="Bug reports">🐛</a> <a href="https://github.com/NodeSecure/rc/pulls?q=is%3Apr+reviewed-by%3Afraxken" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/NodeSecure/rc/commits?author=fraxken" title="Documentation">📖</a> <a href="#security-fraxken" title="Security">🛡️</a></td>
166
+ <td align="center"><a href="https://dev.to/antoinecoulon"><img src="https://avatars.githubusercontent.com/u/43391199?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Antoine Coulon</b></sub></a><br /><a href="https://github.com/NodeSecure/rc/commits?author=antoine-coulon" title="Code">💻</a> <a href="https://github.com/NodeSecure/rc/issues?q=author%3Aantoine-coulon" title="Bug reports">🐛</a> <a href="https://github.com/NodeSecure/rc/pulls?q=is%3Apr+reviewed-by%3Aantoine-coulon" title="Reviewed Pull Requests">👀</a></td>
167
+ </tr>
168
+ </table>
163
169
 
164
170
  <!-- markdownlint-restore -->
165
171
  <!-- prettier-ignore-end -->
@@ -0,0 +1,74 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "version": {
5
+ "type": "string",
6
+ "description": "version of the rc package used to generate the nodesecurerc file"
7
+ },
8
+ "i18n": {
9
+ "type": "string",
10
+ "enum": ["french", "english"],
11
+ "default": "english",
12
+ "description": "Language to use for i18n"
13
+ },
14
+ "strategy": {
15
+ "type": "string",
16
+ "enum": ["npm", "node", "snyk", "none"],
17
+ "default": "npm",
18
+ "description": "Vulnerability strategy to use"
19
+ },
20
+ "ci": {
21
+ "$ref": "#/$defs/ci"
22
+ }
23
+ },
24
+ "required": ["version"],
25
+ "additionalProperties": false,
26
+ "$defs": {
27
+ "ci": {
28
+ "type": "object",
29
+ "properties": {
30
+ "reporters": {
31
+ "type": "array",
32
+ "minItems": 1,
33
+ "maxItems": 2,
34
+ "items": {
35
+ "type": "string",
36
+ "enum": ["html", "console"]
37
+ },
38
+ "default": ["console"]
39
+ },
40
+ "vulnerabilities": {
41
+ "type": "object",
42
+ "properties": {
43
+ "severity": {
44
+ "type": "string",
45
+ "enum": ["medium", "high", "critical", "all"],
46
+ "default": "all"
47
+ }
48
+ },
49
+ "additionalProperties": false
50
+ },
51
+ "warnings": {
52
+ "default": "off",
53
+ "description": "JS-X-Ray warnings configuration",
54
+ "oneOf": [
55
+ { "$ref": "#/$defs/ciWarnings" },
56
+ {
57
+ "type": "object",
58
+ "minProperties": 1,
59
+ "patternProperties": {
60
+ "^[A-Za-z-]+$": { "$ref": "#/$defs/ciWarnings" }
61
+ }
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ "required": ["reporters", "warnings"],
67
+ "additionalProperties": false
68
+ },
69
+ "ciWarnings": {
70
+ "type": "string",
71
+ "enum": ["off", "error", "warning"]
72
+ }
73
+ }
74
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodesecure/rc",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "NodeSecure runtime configuration",
5
5
  "exports": "./dist/index.js",
6
6
  "type": "module",