typedrest 0.3.4 → 0.3.7

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.
Files changed (75) hide show
  1. package/endpoints/Endpoint.js +13 -13
  2. package/endpoints/Endpoint.ts +13 -13
  3. package/endpoints/EntryEndpoint.js +12 -12
  4. package/endpoints/EntryEndpoint.ts +9 -9
  5. package/endpoints/generic/CollectionEndpoint.js +5 -4
  6. package/endpoints/generic/CollectionEndpoint.ts +2 -1
  7. package/endpoints/generic/ETagEndpointBase.js +20 -20
  8. package/endpoints/generic/ETagEndpointBase.ts +21 -21
  9. package/endpoints/generic/ElementEndpoint.js +33 -33
  10. package/endpoints/generic/ElementEndpoint.ts +31 -31
  11. package/endpoints/generic/GenericCollectionEndpoint.js +39 -39
  12. package/endpoints/generic/GenericCollectionEndpoint.ts +38 -37
  13. package/endpoints/generic/IndexerEndpoint.js +1 -1
  14. package/endpoints/generic/IndexerEndpoint.ts +1 -1
  15. package/endpoints/generic/index.js +6 -2
  16. package/endpoints/index.js +6 -2
  17. package/endpoints/raw/BlobEndpoint.js +22 -19
  18. package/endpoints/raw/BlobEndpoint.ts +21 -18
  19. package/endpoints/raw/UploadEndpoint.js +9 -6
  20. package/endpoints/raw/UploadEndpoint.ts +8 -5
  21. package/endpoints/raw/index.js +6 -2
  22. package/endpoints/rpc/ActionEndpoint.js +7 -7
  23. package/endpoints/rpc/ActionEndpoint.ts +5 -5
  24. package/endpoints/rpc/ConsumerEndpoint.js +7 -7
  25. package/endpoints/rpc/ConsumerEndpoint.ts +5 -5
  26. package/endpoints/rpc/FunctionEndpoint.js +7 -7
  27. package/endpoints/rpc/FunctionEndpoint.ts +5 -5
  28. package/endpoints/rpc/ProducerEndpoint.js +7 -7
  29. package/endpoints/rpc/ProducerEndpoint.ts +5 -5
  30. package/endpoints/rpc/RpcEndpointBase.js +4 -4
  31. package/endpoints/rpc/RpcEndpointBase.ts +4 -4
  32. package/endpoints/rpc/index.js +6 -2
  33. package/errors/DefaultErrorHandler.js +18 -18
  34. package/errors/DefaultErrorHandler.ts +10 -9
  35. package/errors/ErrorHandler.ts +1 -1
  36. package/errors/Errors.js +8 -9
  37. package/errors/Errors.ts +7 -9
  38. package/errors/index.js +6 -2
  39. package/http/FetchHttpClient.js +3 -3
  40. package/http/FetchHttpClient.ts +4 -3
  41. package/http/HttpClient.ts +1 -1
  42. package/http/ResponseCache.js +3 -3
  43. package/http/ResponseCache.ts +1 -1
  44. package/http/index.js +6 -2
  45. package/index.js +6 -2
  46. package/jest.config.js +12 -0
  47. package/links/AggregateLinkExtractor.js +2 -2
  48. package/links/AggregateLinkExtractor.ts +3 -2
  49. package/links/HalLinkExtractor.js +4 -4
  50. package/links/HalLinkExtractor.ts +3 -2
  51. package/links/HeaderLinkExtractor.js +4 -4
  52. package/links/HeaderLinkExtractor.ts +3 -2
  53. package/links/LinkExtractor.ts +1 -1
  54. package/links/index.js +6 -2
  55. package/package.json +9 -17
  56. package/serializers/JsonSerializer.js +3 -3
  57. package/serializers/JsonSerializer.ts +4 -4
  58. package/serializers/index.js +6 -2
  59. package/docs/assets/js/main.js +0 -51
  60. package/endpoints/_doc.js +0 -7
  61. package/endpoints/_doc.ts +0 -5
  62. package/endpoints/generic/_doc.js +0 -6
  63. package/endpoints/generic/_doc.ts +0 -4
  64. package/endpoints/raw/_doc.js +0 -6
  65. package/endpoints/raw/_doc.ts +0 -4
  66. package/endpoints/rpc/_doc.js +0 -6
  67. package/endpoints/rpc/_doc.ts +0 -4
  68. package/errors/_doc.js +0 -7
  69. package/errors/_doc.ts +0 -5
  70. package/http/_doc.js +0 -6
  71. package/http/_doc.ts +0 -4
  72. package/links/_doc.js +0 -7
  73. package/links/_doc.ts +0 -5
  74. package/serializers/_doc.js +0 -6
  75. package/serializers/_doc.ts +0 -4
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Generic endpoints allow you to model collections and elements.
4
- * @packageDocumentation
5
- */
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2RvYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl9kb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7R0FHRyJ9
@@ -1,4 +0,0 @@
1
- /**
2
- * Generic endpoints allow you to model collections and elements.
3
- * @packageDocumentation
4
- */
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Raw endpoints allow you to transmit binary data rather than serialized objects.
4
- * @packageDocumentation
5
- */
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2RvYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl9kb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7R0FHRyJ9
@@ -1,4 +0,0 @@
1
- /**
2
- * Raw endpoints allow you to transmit binary data rather than serialized objects.
3
- * @packageDocumentation
4
- */
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * RPC endpoints allow you to interact with non-RESTful resources that act like callable functions.
4
- * @packageDocumentation
5
- */
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2RvYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl9kb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7R0FHRyJ9
@@ -1,4 +0,0 @@
1
- /**
2
- * RPC endpoints allow you to interact with non-RESTful resources that act like callable functions.
3
- * @packageDocumentation
4
- */
package/errors/_doc.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /**
3
- * Handling errors in HTTP responses.
4
- * See [documentation](https://typedrest.net/error-handling/).
5
- * @packageDocumentation
6
- */
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2RvYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl9kb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7O0dBSUcifQ==
package/errors/_doc.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Handling errors in HTTP responses.
3
- * See [documentation](https://typedrest.net/error-handling/).
4
- * @packageDocumentation
5
- */
package/http/_doc.js DELETED
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Helper methods and structures for performing HTTP requests.
4
- * @packageDocumentation
5
- */
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2RvYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl9kb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7R0FHRyJ9
package/http/_doc.ts DELETED
@@ -1,4 +0,0 @@
1
- /**
2
- * Helper methods and structures for performing HTTP requests.
3
- * @packageDocumentation
4
- */
package/links/_doc.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /**
3
- * Handling links between HTTP resources.
4
- * See [documentation](https://typedrest.net/link-handling/).
5
- * @packageDocumentation
6
- */
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2RvYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl9kb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7O0dBSUcifQ==
package/links/_doc.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Handling links between HTTP resources.
3
- * See [documentation](https://typedrest.net/link-handling/).
4
- * @packageDocumentation
5
- */
@@ -1,6 +0,0 @@
1
- "use strict";
2
- /**
3
- * Serialization of entities sent to and received from the server.
4
- * @packageDocumentation
5
- */
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX2RvYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl9kb2MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7R0FHRyJ9
@@ -1,4 +0,0 @@
1
- /**
2
- * Serialization of entities sent to and received from the server.
3
- * @packageDocumentation
4
- */