@centralping/ergo 0.1.0-beta.1 → 0.1.0-beta.2

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 (87) hide show
  1. package/README.md +14 -15
  2. package/http/accepts.js +1 -2
  3. package/http/authorization.js +1 -2
  4. package/http/body.js +1 -2
  5. package/http/cache-control.js +1 -2
  6. package/http/compress.js +1 -2
  7. package/http/cookie.js +1 -2
  8. package/http/cors.js +1 -2
  9. package/http/csrf.js +1 -2
  10. package/http/handler.js +1 -2
  11. package/http/index.js +37 -4
  12. package/http/json-api-query.js +1 -2
  13. package/http/logger.js +1 -2
  14. package/http/main.js +2 -3
  15. package/http/precondition.js +1 -2
  16. package/http/prefer.js +1 -2
  17. package/http/rate-limit.js +1 -2
  18. package/http/security-headers.js +1 -2
  19. package/http/send.js +1 -2
  20. package/http/timeout.js +1 -2
  21. package/http/url.js +1 -2
  22. package/http/validate.js +1 -2
  23. package/lib/accepts.js +1 -2
  24. package/lib/attach-instance.js +0 -1
  25. package/lib/authorization.js +1 -2
  26. package/lib/body/multiparse.js +1 -2
  27. package/lib/body/multipart/headers.js +1 -2
  28. package/lib/body/writer.js +1 -2
  29. package/lib/cookie/cookie.js +1 -2
  30. package/lib/cookie/index.js +0 -1
  31. package/lib/cookie/jar.js +16 -12
  32. package/lib/cookie/parse.js +1 -2
  33. package/lib/cors.js +1 -2
  34. package/lib/csrf.js +1 -2
  35. package/lib/from-connect.js +2 -3
  36. package/lib/json-api-query/index.js +0 -1
  37. package/lib/json-api-query/validate.js +1 -2
  38. package/lib/link.js +1 -2
  39. package/lib/prefer.js +1 -2
  40. package/lib/query.js +1 -2
  41. package/lib/rate-limit.js +1 -2
  42. package/lib/sanitize-quoted-string.js +0 -1
  43. package/lib/security-headers.js +1 -2
  44. package/lib/validate.js +1 -2
  45. package/lib/vary.js +0 -1
  46. package/package.json +2 -2
  47. package/types/http/precondition.d.ts +1 -2
  48. package/types/lib/attach-instance.d.ts +0 -1
  49. package/types/lib/cookie/jar.d.ts +4 -0
  50. package/types/lib/from-connect.d.ts +2 -3
  51. package/types/lib/prefer.d.ts +1 -2
  52. package/types/lib/rate-limit.d.ts +1 -2
  53. package/types/lib/sanitize-quoted-string.d.ts +0 -1
  54. package/types/lib/vary.d.ts +0 -1
  55. package/types/utils/compose.d.ts +1 -2
  56. package/types/utils/iterables/range.d.ts +1 -2
  57. package/utils/attempt.js +1 -2
  58. package/utils/buffers/index.js +0 -1
  59. package/utils/buffers/match.js +1 -2
  60. package/utils/buffers/split.js +1 -2
  61. package/utils/compose-with.js +1 -2
  62. package/utils/compose.js +1 -2
  63. package/utils/flat-array.js +1 -2
  64. package/utils/get.js +1 -2
  65. package/utils/http-errors.js +1 -2
  66. package/utils/iterables/buffer-split.js +1 -2
  67. package/utils/iterables/chain.js +1 -2
  68. package/utils/iterables/exec-all.js +1 -2
  69. package/utils/iterables/filter.js +1 -2
  70. package/utils/iterables/for-each.js +1 -2
  71. package/utils/iterables/from-stream.js +1 -2
  72. package/utils/iterables/index.js +0 -1
  73. package/utils/iterables/map.js +1 -2
  74. package/utils/iterables/range.js +1 -2
  75. package/utils/iterables/reduce.js +1 -2
  76. package/utils/iterables/take.js +1 -2
  77. package/utils/observables/buffer-split.js +0 -1
  78. package/utils/observables/chain.js +0 -1
  79. package/utils/observables/index.js +0 -1
  80. package/utils/observables/map.js +0 -1
  81. package/utils/observables/take.js +0 -1
  82. package/utils/pick.js +1 -2
  83. package/utils/set.js +1 -2
  84. package/utils/streams/index.js +0 -1
  85. package/utils/streams/meter.js +1 -2
  86. package/utils/streams/tee.js +1 -2
  87. package/utils/type.js +1 -2
@@ -2,7 +2,6 @@
2
2
  * @fileoverview Streams utilities barrel export.
3
3
  *
4
4
  * @module utils/streams
5
- * @version 0.1.0
6
5
  * @since 0.1.0
7
6
  * @requires ./meter.js
8
7
  * @requires ./tee.js
@@ -6,13 +6,12 @@
6
6
  * (InvalidLength). Used by `http/body.js` to enforce size constraints.
7
7
  *
8
8
  * @module utils/streams/meter
9
- * @version 0.1.0
10
9
  * @since 0.1.0
11
10
  * @requires node:stream
12
11
  *
13
12
  * @example
14
13
  * import {pipeline} from 'node:stream';
15
- * import meter from 'ergo/utils/streams/meter';
14
+ * import meter from '@centralping/ergo/utils/streams/meter';
16
15
  *
17
16
  * const m = meter({limit: 1024 * 1024, expected: 512});
18
17
  * pipeline(readable, m, writable, err => {
@@ -8,13 +8,12 @@
8
8
  * If no generator is provided, a no-op generator is used (pure passthrough).
9
9
  *
10
10
  * @module utils/streams/tee
11
- * @version 0.1.0
12
11
  * @since 0.1.0
13
12
  * @requires node:stream
14
13
  *
15
14
  * @example
16
15
  * import {pipeline} from 'node:stream';
17
- * import tee from 'ergo/utils/streams/tee';
16
+ * import tee from '@centralping/ergo/utils/streams/tee';
18
17
  *
19
18
  * async function* inspect(gen) {
20
19
  * let chunk;
package/utils/type.js CHANGED
@@ -9,11 +9,10 @@
9
9
  * Used throughout Ergo for duck-typing checks (e.g. `type(x) === 'AsyncGeneratorFunction'`).
10
10
  *
11
11
  * @module utils/type
12
- * @version 0.1.0
13
12
  * @since 0.1.0
14
13
  *
15
14
  * @example
16
- * import type from 'ergo/utils/type';
15
+ * import type from '@centralping/ergo/utils/type';
17
16
  *
18
17
  * type(42) // 'Number'
19
18
  * type(NaN) // 'NaN'