HttpUriPlugin.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "definitions": {
  3. "HttpUriOptions": {
  4. "description": "Options for building http resources.",
  5. "type": "object",
  6. "additionalProperties": false,
  7. "properties": {
  8. "allowedUris": {
  9. "$ref": "#/definitions/HttpUriOptionsAllowedUris"
  10. },
  11. "cacheLocation": {
  12. "description": "Location where resource content is stored for lockfile entries. It's also possible to disable storing by passing false.",
  13. "anyOf": [
  14. {
  15. "enum": [false]
  16. },
  17. {
  18. "type": "string",
  19. "absolutePath": true
  20. }
  21. ]
  22. },
  23. "frozen": {
  24. "description": "When set, anything that would lead to a modification of the lockfile or any resource content, will result in an error.",
  25. "type": "boolean"
  26. },
  27. "lockfileLocation": {
  28. "description": "Location of the lockfile.",
  29. "type": "string",
  30. "absolutePath": true
  31. },
  32. "proxy": {
  33. "description": "Proxy configuration, which can be used to specify a proxy server to use for HTTP requests.",
  34. "type": "string"
  35. },
  36. "upgrade": {
  37. "description": "When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.",
  38. "type": "boolean"
  39. }
  40. },
  41. "required": ["allowedUris"]
  42. },
  43. "HttpUriOptionsAllowedUris": {
  44. "description": "List of allowed URIs (resp. the beginning of them).",
  45. "type": "array",
  46. "items": {
  47. "description": "List of allowed URIs (resp. the beginning of them).",
  48. "anyOf": [
  49. {
  50. "description": "Allowed URI pattern.",
  51. "instanceof": "RegExp",
  52. "tsType": "RegExp"
  53. },
  54. {
  55. "description": "Allowed URI (resp. the beginning of it).",
  56. "type": "string",
  57. "pattern": "^https?://"
  58. },
  59. {
  60. "description": "Allowed URI filter function.",
  61. "instanceof": "Function",
  62. "tsType": "((uri: string) => boolean)"
  63. }
  64. ]
  65. }
  66. }
  67. },
  68. "title": "HttpUriPluginOptions",
  69. "oneOf": [
  70. {
  71. "$ref": "#/definitions/HttpUriOptions"
  72. }
  73. ]
  74. }