HttpUriPlugin.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. "upgrade": {
  33. "description": "When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.",
  34. "type": "boolean"
  35. }
  36. },
  37. "required": ["allowedUris"]
  38. },
  39. "HttpUriOptionsAllowedUris": {
  40. "description": "List of allowed URIs (resp. the beginning of them).",
  41. "type": "array",
  42. "items": {
  43. "description": "List of allowed URIs (resp. the beginning of them).",
  44. "anyOf": [
  45. {
  46. "description": "Allowed URI pattern.",
  47. "instanceof": "RegExp",
  48. "tsType": "RegExp"
  49. },
  50. {
  51. "description": "Allowed URI (resp. the beginning of it).",
  52. "type": "string",
  53. "pattern": "^https?://"
  54. },
  55. {
  56. "description": "Allowed URI filter function.",
  57. "instanceof": "Function",
  58. "tsType": "((uri: string) => boolean)"
  59. }
  60. ]
  61. }
  62. }
  63. },
  64. "title": "HttpUriPluginOptions",
  65. "oneOf": [
  66. {
  67. "$ref": "#/definitions/HttpUriOptions"
  68. }
  69. ]
  70. }