swagger-ui 5.17.13 → 5.18.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 +17 -0
- package/dist/swagger-ui-bundle.js +1 -1
- package/dist/swagger-ui-es-bundle-core.js +1 -1
- package/dist/swagger-ui-es-bundle-core.js.map +1 -1
- package/dist/swagger-ui-es-bundle.js +1 -1
- package/dist/swagger-ui-standalone-preset.js +1 -1
- package/dist/swagger-ui.css +1 -1
- package/dist/swagger-ui.css.map +1 -1
- package/dist/swagger-ui.js +1 -1
- package/dist/swagger-ui.js.map +1 -1
- package/package.json +30 -26
package/README.md
CHANGED
|
@@ -45,6 +45,23 @@ The OpenAPI Specification has undergone 5 revisions since initial creation in 20
|
|
|
45
45
|
| 1.0.13 | 2013-03-08 | 1.1, 1.2 | [tag v1.0.13](https://github.com/swagger-api/swagger-ui/tree/v1.0.13) |
|
|
46
46
|
| 1.0.1 | 2011-10-11 | 1.0, 1.1 | [tag v1.0.1](https://github.com/swagger-api/swagger-ui/tree/v1.0.1) |
|
|
47
47
|
|
|
48
|
+
## Anonymized analytics
|
|
49
|
+
|
|
50
|
+
SwaggerUI uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`:
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
// package.json
|
|
54
|
+
{
|
|
55
|
+
// ...
|
|
56
|
+
"scarfSettings": {
|
|
57
|
+
"enabled": false
|
|
58
|
+
}
|
|
59
|
+
// ...
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false` as part of the environment that installs your npm packages, e.g., `SCARF_ANALYTICS=false npm install`.
|
|
64
|
+
|
|
48
65
|
## Documentation
|
|
49
66
|
|
|
50
67
|
#### Usage
|