@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.
- package/README.md +14 -15
- package/http/accepts.js +1 -2
- package/http/authorization.js +1 -2
- package/http/body.js +1 -2
- package/http/cache-control.js +1 -2
- package/http/compress.js +1 -2
- package/http/cookie.js +1 -2
- package/http/cors.js +1 -2
- package/http/csrf.js +1 -2
- package/http/handler.js +1 -2
- package/http/index.js +37 -4
- package/http/json-api-query.js +1 -2
- package/http/logger.js +1 -2
- package/http/main.js +2 -3
- package/http/precondition.js +1 -2
- package/http/prefer.js +1 -2
- package/http/rate-limit.js +1 -2
- package/http/security-headers.js +1 -2
- package/http/send.js +1 -2
- package/http/timeout.js +1 -2
- package/http/url.js +1 -2
- package/http/validate.js +1 -2
- package/lib/accepts.js +1 -2
- package/lib/attach-instance.js +0 -1
- package/lib/authorization.js +1 -2
- package/lib/body/multiparse.js +1 -2
- package/lib/body/multipart/headers.js +1 -2
- package/lib/body/writer.js +1 -2
- package/lib/cookie/cookie.js +1 -2
- package/lib/cookie/index.js +0 -1
- package/lib/cookie/jar.js +16 -12
- package/lib/cookie/parse.js +1 -2
- package/lib/cors.js +1 -2
- package/lib/csrf.js +1 -2
- package/lib/from-connect.js +2 -3
- package/lib/json-api-query/index.js +0 -1
- package/lib/json-api-query/validate.js +1 -2
- package/lib/link.js +1 -2
- package/lib/prefer.js +1 -2
- package/lib/query.js +1 -2
- package/lib/rate-limit.js +1 -2
- package/lib/sanitize-quoted-string.js +0 -1
- package/lib/security-headers.js +1 -2
- package/lib/validate.js +1 -2
- package/lib/vary.js +0 -1
- package/package.json +2 -2
- package/types/http/precondition.d.ts +1 -2
- package/types/lib/attach-instance.d.ts +0 -1
- package/types/lib/cookie/jar.d.ts +4 -0
- package/types/lib/from-connect.d.ts +2 -3
- package/types/lib/prefer.d.ts +1 -2
- package/types/lib/rate-limit.d.ts +1 -2
- package/types/lib/sanitize-quoted-string.d.ts +0 -1
- package/types/lib/vary.d.ts +0 -1
- package/types/utils/compose.d.ts +1 -2
- package/types/utils/iterables/range.d.ts +1 -2
- package/utils/attempt.js +1 -2
- package/utils/buffers/index.js +0 -1
- package/utils/buffers/match.js +1 -2
- package/utils/buffers/split.js +1 -2
- package/utils/compose-with.js +1 -2
- package/utils/compose.js +1 -2
- package/utils/flat-array.js +1 -2
- package/utils/get.js +1 -2
- package/utils/http-errors.js +1 -2
- package/utils/iterables/buffer-split.js +1 -2
- package/utils/iterables/chain.js +1 -2
- package/utils/iterables/exec-all.js +1 -2
- package/utils/iterables/filter.js +1 -2
- package/utils/iterables/for-each.js +1 -2
- package/utils/iterables/from-stream.js +1 -2
- package/utils/iterables/index.js +0 -1
- package/utils/iterables/map.js +1 -2
- package/utils/iterables/range.js +1 -2
- package/utils/iterables/reduce.js +1 -2
- package/utils/iterables/take.js +1 -2
- package/utils/observables/buffer-split.js +0 -1
- package/utils/observables/chain.js +0 -1
- package/utils/observables/index.js +0 -1
- package/utils/observables/map.js +0 -1
- package/utils/observables/take.js +0 -1
- package/utils/pick.js +1 -2
- package/utils/set.js +1 -2
- package/utils/streams/index.js +0 -1
- package/utils/streams/meter.js +1 -2
- package/utils/streams/tee.js +1 -2
- package/utils/type.js +1 -2
package/utils/streams/index.js
CHANGED
package/utils/streams/meter.js
CHANGED
|
@@ -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 => {
|
package/utils/streams/tee.js
CHANGED
|
@@ -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'
|