cdk-common 2.0.861 → 2.0.863

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 (100) hide show
  1. package/.jsii +3 -3
  2. package/lib/main.js +1 -1
  3. package/node_modules/@types/node/README.md +1 -1
  4. package/node_modules/@types/node/buffer.d.ts +22 -22
  5. package/node_modules/@types/node/child_process.d.ts +3 -3
  6. package/node_modules/@types/node/crypto.d.ts +61 -61
  7. package/node_modules/@types/node/dgram.d.ts +1 -1
  8. package/node_modules/@types/node/fs.d.ts +2 -2
  9. package/node_modules/@types/node/http.d.ts +1 -1
  10. package/node_modules/@types/node/https.d.ts +2 -2
  11. package/node_modules/@types/node/net.d.ts +2 -2
  12. package/node_modules/@types/node/os.d.ts +1 -1
  13. package/node_modules/@types/node/package.json +2 -2
  14. package/node_modules/@types/node/perf_hooks.d.ts +1 -1
  15. package/node_modules/@types/node/process.d.ts +1 -1
  16. package/node_modules/@types/node/repl.d.ts +3 -3
  17. package/node_modules/@types/node/test.d.ts +31 -23
  18. package/node_modules/fast-uri/.gitattributes +2 -0
  19. package/node_modules/fast-uri/.github/.stale.yml +21 -0
  20. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  21. package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  22. package/node_modules/fast-uri/.github/workflows/ci.yml +22 -0
  23. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  24. package/node_modules/fast-uri/LICENSE +30 -0
  25. package/node_modules/fast-uri/README.md +125 -0
  26. package/node_modules/fast-uri/benchmark.js +105 -0
  27. package/node_modules/fast-uri/index.js +305 -0
  28. package/node_modules/fast-uri/lib/schemes.js +188 -0
  29. package/node_modules/fast-uri/lib/scopedChars.js +30 -0
  30. package/node_modules/fast-uri/lib/utils.js +236 -0
  31. package/node_modules/fast-uri/package.json +41 -0
  32. package/node_modules/fast-uri/test/.gitkeep +0 -0
  33. package/node_modules/fast-uri/test/compatibility.test.js +129 -0
  34. package/node_modules/fast-uri/test/equal.test.js +104 -0
  35. package/node_modules/fast-uri/test/parse.test.js +310 -0
  36. package/node_modules/fast-uri/test/resolve.test.js +76 -0
  37. package/node_modules/fast-uri/test/serialize.test.js +144 -0
  38. package/node_modules/fast-uri/types/index.d.ts +53 -0
  39. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  40. package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +1 -1
  41. package/node_modules/table/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
  42. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js +1 -1
  43. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  44. package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +1 -1
  45. package/node_modules/table/node_modules/ajv/lib/compile/index.ts +1 -1
  46. package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +1 -1
  47. package/node_modules/table/node_modules/ajv/lib/runtime/uri.ts +1 -1
  48. package/node_modules/table/node_modules/ajv/lib/types/index.ts +1 -1
  49. package/node_modules/table/node_modules/ajv/package.json +4 -4
  50. package/package.json +4 -4
  51. package/node_modules/punycode/LICENSE-MIT.txt +0 -20
  52. package/node_modules/punycode/README.md +0 -148
  53. package/node_modules/punycode/package.json +0 -58
  54. package/node_modules/punycode/punycode.es6.js +0 -444
  55. package/node_modules/punycode/punycode.js +0 -443
  56. package/node_modules/uri-js/LICENSE +0 -11
  57. package/node_modules/uri-js/README.md +0 -203
  58. package/node_modules/uri-js/dist/es5/uri.all.d.ts +0 -59
  59. package/node_modules/uri-js/dist/es5/uri.all.js +0 -1443
  60. package/node_modules/uri-js/dist/es5/uri.all.js.map +0 -1
  61. package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +0 -59
  62. package/node_modules/uri-js/dist/es5/uri.all.min.js +0 -3
  63. package/node_modules/uri-js/dist/es5/uri.all.min.js.map +0 -1
  64. package/node_modules/uri-js/dist/esnext/index.d.ts +0 -1
  65. package/node_modules/uri-js/dist/esnext/index.js +0 -17
  66. package/node_modules/uri-js/dist/esnext/index.js.map +0 -1
  67. package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +0 -3
  68. package/node_modules/uri-js/dist/esnext/regexps-iri.js +0 -3
  69. package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -1
  70. package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +0 -4
  71. package/node_modules/uri-js/dist/esnext/regexps-uri.js +0 -42
  72. package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -1
  73. package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +0 -3
  74. package/node_modules/uri-js/dist/esnext/schemes/http.js +0 -28
  75. package/node_modules/uri-js/dist/esnext/schemes/http.js.map +0 -1
  76. package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +0 -3
  77. package/node_modules/uri-js/dist/esnext/schemes/https.js +0 -9
  78. package/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -1
  79. package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +0 -12
  80. package/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -148
  81. package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -1
  82. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +0 -7
  83. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +0 -23
  84. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -1
  85. package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +0 -10
  86. package/node_modules/uri-js/dist/esnext/schemes/urn.js +0 -49
  87. package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -1
  88. package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +0 -7
  89. package/node_modules/uri-js/dist/esnext/schemes/ws.js +0 -41
  90. package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +0 -1
  91. package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +0 -3
  92. package/node_modules/uri-js/dist/esnext/schemes/wss.js +0 -9
  93. package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +0 -1
  94. package/node_modules/uri-js/dist/esnext/uri.d.ts +0 -59
  95. package/node_modules/uri-js/dist/esnext/uri.js +0 -480
  96. package/node_modules/uri-js/dist/esnext/uri.js.map +0 -1
  97. package/node_modules/uri-js/dist/esnext/util.d.ts +0 -6
  98. package/node_modules/uri-js/dist/esnext/util.js +0 -36
  99. package/node_modules/uri-js/dist/esnext/util.js.map +0 -1
  100. package/node_modules/uri-js/package.json +0 -77
@@ -299,49 +299,57 @@ declare module "node:test" {
299
299
  }
300
300
  interface RunOptions {
301
301
  /**
302
- * If a number is provided, then that many files would run in parallel.
303
- * If truthy, it would run (number of cpu cores - 1) files in parallel.
304
- * If falsy, it would only run one file at a time.
305
- * If unspecified, subtests inherit this value from their parent.
306
- * @default true
302
+ * If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file.
303
+ * If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time.
304
+ * @default false
307
305
  */
308
306
  concurrency?: number | boolean | undefined;
309
307
  /**
310
- * An array containing the list of files to run.
311
- * If unspecified, the test runner execution model will be used.
308
+ * An array containing the list of files to run. **Default** matching files from
309
+ * [test runner execution model](https://nodejs.org/docs/latest-v20.x/api/test.html#test-runner-execution-model).
312
310
  */
313
311
  files?: readonly string[] | undefined;
314
312
  /**
315
- * Allows aborting an in-progress test execution.
316
- * @default undefined
317
- */
318
- signal?: AbortSignal | undefined;
319
- /**
320
- * A number of milliseconds the test will fail after.
321
- * If unspecified, subtests inherit this value from their parent.
322
- * @default Infinity
313
+ * Configures the test runner to exit the process once all known
314
+ * tests have finished executing even if the event loop would
315
+ * otherwise remain active.
316
+ * @default false
323
317
  */
324
- timeout?: number | undefined;
318
+ forceExit?: boolean | undefined;
325
319
  /**
326
320
  * Sets inspector port of test child process.
327
321
  * If a nullish value is provided, each process gets its own port,
328
322
  * incremented from the primary's `process.debugPort`.
323
+ * @default undefined
329
324
  */
330
325
  inspectPort?: number | (() => number) | undefined;
331
- /**
332
- * That can be used to only run tests whose name matches the provided pattern.
333
- * Test name patterns are interpreted as JavaScript regular expressions.
334
- * For each test that is executed, any corresponding test hooks, such as `beforeEach()`, are also run.
335
- */
336
- testNamePatterns?: string | RegExp | string[] | RegExp[];
337
326
  /**
338
327
  * If truthy, the test context will only run tests that have the `only` option set
339
328
  */
340
329
  only?: boolean;
341
330
  /**
342
- * A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run.
331
+ * A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run.
332
+ * @default undefined
343
333
  */
344
334
  setup?: (root: Test) => void | Promise<void>;
335
+ /**
336
+ * Allows aborting an in-progress test execution.
337
+ */
338
+ signal?: AbortSignal | undefined;
339
+ /**
340
+ * A String, RegExp or a RegExp Array, that can be used to only run tests whose
341
+ * name matches the provided pattern. Test name patterns are interpreted as JavaScript
342
+ * regular expressions. For each test that is executed, any corresponding test hooks,
343
+ * such as `beforeEach()`, are also run.
344
+ * @default undefined
345
+ */
346
+ testNamePatterns?: string | RegExp | string[] | RegExp[];
347
+ /**
348
+ * A number of milliseconds the test execution will fail after.
349
+ * If unspecified, subtests inherit this value from their parent.
350
+ * @default Infinity
351
+ */
352
+ timeout?: number | undefined;
345
353
  /**
346
354
  * Whether to run in watch mode or not.
347
355
  * @default false
@@ -0,0 +1,2 @@
1
+ # Set default behavior to automatically convert line endings
2
+ * text=auto eol=lf
@@ -0,0 +1,21 @@
1
+ # Number of days of inactivity before an issue becomes stale
2
+ daysUntilStale: 15
3
+ # Number of days of inactivity before a stale issue is closed
4
+ daysUntilClose: 7
5
+ # Issues with these labels will never be considered stale
6
+ exemptLabels:
7
+ - "discussion"
8
+ - "feature request"
9
+ - "bug"
10
+ - "help wanted"
11
+ - "plugin suggestion"
12
+ - "good first issue"
13
+ # Label to use when marking an issue as stale
14
+ staleLabel: stale
15
+ # Comment to post when marking an issue as stale. Set to `false` to disable
16
+ markComment: >
17
+ This issue has been automatically marked as stale because it has not had
18
+ recent activity. It will be closed if no further activity occurs. Thank you
19
+ for your contributions.
20
+ # Comment to post when closing a stale issue. Set to `false` to disable
21
+ closeComment: false
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "monthly"
7
+ open-pull-requests-limit: 10
8
+
9
+ - package-ecosystem: "npm"
10
+ directory: "/"
11
+ schedule:
12
+ interval: "weekly"
13
+ open-pull-requests-limit: 10
@@ -0,0 +1,8 @@
1
+ comment: |
2
+ Hello! Thank you for contributing!
3
+ It appears that you have changed the code, but the tests that verify your change are missing. Could you please add them?
4
+ fileExtensions:
5
+ - '.ts'
6
+ - '.js'
7
+
8
+ testDir: 'test'
@@ -0,0 +1,22 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ - next
9
+ - 'v*'
10
+ paths-ignore:
11
+ - 'docs/**'
12
+ - '*.md'
13
+ pull_request:
14
+ paths-ignore:
15
+ - 'docs/**'
16
+ - '*.md'
17
+
18
+ jobs:
19
+ test:
20
+ uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
21
+ with:
22
+ license-check: true
@@ -0,0 +1,20 @@
1
+ name: package-manager-ci
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ - next
9
+ - 'v*'
10
+ paths-ignore:
11
+ - 'docs/**'
12
+ - '*.md'
13
+ pull_request:
14
+ paths-ignore:
15
+ - 'docs/**'
16
+ - '*.md'
17
+
18
+ jobs:
19
+ test:
20
+ uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v3
@@ -0,0 +1,30 @@
1
+ Copyright (c) 2021 The Fastify Team
2
+ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
3
+ All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above copyright
10
+ notice, this list of conditions and the following disclaimer in the
11
+ documentation and/or other materials provided with the distribution.
12
+ * The names of any contributors may not be used to endorse or promote
13
+ products derived from this software without specific prior written
14
+ permission.
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
20
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+
27
+ * * *
28
+
29
+ The complete list of contributors can be found at:
30
+ - https://github.com/garycourt/uri-js/graphs/contributors
@@ -0,0 +1,125 @@
1
+ # fast-uri
2
+
3
+ <div align="center">
4
+
5
+ [![CI](https://github.com/fastify/fast-uri/actions/workflows/ci.yml/badge.svg)](https://github.com/fastify/fast-uri/actions/workflows/ci.yml)
6
+ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
7
+
8
+ </div>
9
+
10
+ Dependency free RFC 3986 URI toolbox.
11
+
12
+ ## Usage
13
+
14
+ ## Options
15
+
16
+ All of the above functions can accept an additional options argument that is an object that can contain one or more of the following properties:
17
+
18
+ * `scheme` (string)
19
+ Indicates the scheme that the URI should be treated as, overriding the URI's normal scheme parsing behavior.
20
+
21
+ * `reference` (string)
22
+ If set to `"suffix"`, it indicates that the URI is in the suffix format and the parser will use the option's `scheme` property to determine the URI's scheme.
23
+
24
+ * `tolerant` (boolean, false)
25
+ If set to `true`, the parser will relax URI resolving rules.
26
+
27
+ * `absolutePath` (boolean, false)
28
+ If set to `true`, the serializer will not resolve a relative `path` component.
29
+
30
+ * `unicodeSupport` (boolean, false)
31
+ If set to `true`, the parser will unescape non-ASCII characters in the parsed output as per [RFC 3987](http://www.ietf.org/rfc/rfc3987.txt).
32
+
33
+ * `domainHost` (boolean, false)
34
+ If set to `true`, the library will treat the `host` component as a domain name, and convert IDNs (International Domain Names) as per [RFC 5891](http://www.ietf.org/rfc/rfc5891.txt).
35
+
36
+ ### Parse
37
+
38
+ ```js
39
+ const uri = require('fast-uri')
40
+ uri.parse('uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body')
41
+ // Output
42
+ {
43
+ scheme : "uri",
44
+ userinfo : "user:pass",
45
+ host : "example.com",
46
+ port : 123,
47
+ path : "/one/two.three",
48
+ query : "q1=a1&q2=a2",
49
+ fragment : "body"
50
+ }
51
+ ```
52
+
53
+ ### Serialize
54
+
55
+ ```js
56
+ const uri = require('fast-uri')
57
+ uri.serialize({scheme : "http", host : "example.com", fragment : "footer"})
58
+ // Output
59
+ "http://example.com/#footer"
60
+
61
+ ```
62
+
63
+ ### Resolve
64
+
65
+ ```js
66
+ const uri = require('fast-uri')
67
+ uri.resolve("uri://a/b/c/d?q", "../../g")
68
+ // Output
69
+ "uri://a/g"
70
+ ```
71
+
72
+ ### Equal
73
+
74
+ ```js
75
+ const uri = require('fast-uri')
76
+ uri.equal("example://a/b/c/%7Bfoo%7D", "eXAMPLE://a/./b/../b/%63/%7bfoo%7d")
77
+ // Output
78
+ true
79
+ ```
80
+
81
+ ## Scheme supports
82
+
83
+ fast-uri supports inserting custom [scheme](http://en.wikipedia.org/wiki/URI_scheme) dependent processing rules. Currently, fast-uri has built in support for the following schemes:
84
+
85
+ * http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\]
86
+ * https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\]
87
+ * ws \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\]
88
+ * wss \[[RFC 6455](http://www.ietf.org/rfc/rfc6455.txt)\]
89
+ * urn \[[RFC 2141](http://www.ietf.org/rfc/rfc2141.txt)\]
90
+ * urn:uuid \[[RFC 4122](http://www.ietf.org/rfc/rfc4122.txt)\]
91
+
92
+
93
+ ## Benchmarks
94
+
95
+ ```
96
+ fast-uri: parse domain x 1,306,864 ops/sec ±0.31% (100 runs sampled)
97
+ urijs: parse domain x 483,001 ops/sec ±0.09% (99 runs sampled)
98
+ WHATWG URL: parse domain x 862,461 ops/sec ±0.18% (97 runs sampled)
99
+ fast-uri: parse IPv4 x 2,381,452 ops/sec ±0.26% (96 runs sampled)
100
+ urijs: parse IPv4 x 384,705 ops/sec ±0.34% (99 runs sampled)
101
+ WHATWG URL: parse IPv4 NOT SUPPORTED
102
+ fast-uri: parse IPv6 x 923,519 ops/sec ±0.09% (100 runs sampled)
103
+ urijs: parse IPv6 x 289,070 ops/sec ±0.07% (95 runs sampled)
104
+ WHATWG URL: parse IPv6 NOT SUPPORTED
105
+ fast-uri: parse URN x 2,596,395 ops/sec ±0.42% (98 runs sampled)
106
+ urijs: parse URN x 1,152,412 ops/sec ±0.09% (97 runs sampled)
107
+ WHATWG URL: parse URN x 1,183,307 ops/sec ±0.38% (100 runs sampled)
108
+ fast-uri: parse URN uuid x 1,666,861 ops/sec ±0.10% (98 runs sampled)
109
+ urijs: parse URN uuid x 852,724 ops/sec ±0.17% (95 runs sampled)
110
+ WHATWG URL: parse URN uuid NOT SUPPORTED
111
+ fast-uri: serialize uri x 1,741,499 ops/sec ±0.57% (95 runs sampled)
112
+ urijs: serialize uri x 389,014 ops/sec ±0.28% (93 runs sampled)
113
+ fast-uri: serialize IPv6 x 441,095 ops/sec ±0.37% (97 runs sampled)
114
+ urijs: serialize IPv6 x 255,443 ops/sec ±0.58% (94 runs sampled)
115
+ fast-uri: serialize ws x 1,448,667 ops/sec ±0.25% (97 runs sampled)
116
+ urijs: serialize ws x 352,884 ops/sec ±0.08% (96 runs sampled)
117
+ fast-uri: resolve x 340,084 ops/sec ±0.98% (98 runs sampled)
118
+ urijs: resolve x 225,759 ops/sec ±0.37% (95 runs sampled)
119
+ ```
120
+
121
+ ## TODO
122
+
123
+ - [ ] Support MailTo
124
+ - [ ] Be 100% iso compatible with uri-js
125
+ - [ ] Add browser test stack
@@ -0,0 +1,105 @@
1
+ 'use strict'
2
+
3
+ const benchmark = require('benchmark')
4
+ const suite = new benchmark.Suite()
5
+ const fasturi = require('./')
6
+ const urijs = require('uri-js')
7
+
8
+ const base = 'uri://a/b/c/d;p?q'
9
+
10
+ const domain = 'https://example.com/foo#bar$fiz'
11
+ const ipv4 = '//10.10.10.10'
12
+ const ipv6 = '//[2001:db8::7]'
13
+ const urn = 'urn:foo:a123,456'
14
+ const urnuuid = 'urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6'
15
+
16
+ // Initialization as there is a lot to parse at first
17
+ // eg: regexes
18
+ fasturi.parse(domain)
19
+ urijs.parse(domain)
20
+
21
+ suite.add('fast-uri: parse domain', function () {
22
+ fasturi.parse(domain)
23
+ })
24
+ suite.add('urijs: parse domain', function () {
25
+ urijs.parse(domain)
26
+ })
27
+ suite.add('WHATWG URL: parse domain', function () {
28
+ // eslint-disable-next-line
29
+ new URL(domain)
30
+ })
31
+ suite.add('fast-uri: parse IPv4', function () {
32
+ fasturi.parse(ipv4)
33
+ })
34
+ suite.add('urijs: parse IPv4', function () {
35
+ urijs.parse(ipv4)
36
+ })
37
+ suite.add('fast-uri: parse IPv6', function () {
38
+ fasturi.parse(ipv6)
39
+ })
40
+ suite.add('urijs: parse IPv6', function () {
41
+ urijs.parse(ipv6)
42
+ })
43
+ suite.add('fast-uri: parse URN', function () {
44
+ fasturi.parse(urn)
45
+ })
46
+ suite.add('urijs: parse URN', function () {
47
+ urijs.parse(urn)
48
+ })
49
+ suite.add('WHATWG URL: parse URN', function () {
50
+ // eslint-disable-next-line
51
+ new URL(urn)
52
+ })
53
+ suite.add('fast-uri: parse URN uuid', function () {
54
+ fasturi.parse(urnuuid)
55
+ })
56
+ suite.add('urijs: parse URN uuid', function () {
57
+ urijs.parse(urnuuid)
58
+ })
59
+ suite.add('fast-uri: serialize uri', function () {
60
+ fasturi.serialize({
61
+ scheme: 'uri',
62
+ userinfo: 'foo:bar',
63
+ host: 'example.com',
64
+ port: 1,
65
+ path: 'path',
66
+ query: 'query',
67
+ fragment: 'fragment'
68
+ })
69
+ })
70
+ suite.add('urijs: serialize uri', function () {
71
+ urijs.serialize({
72
+ scheme: 'uri',
73
+ userinfo: 'foo:bar',
74
+ host: 'example.com',
75
+ port: 1,
76
+ path: 'path',
77
+ query: 'query',
78
+ fragment: 'fragment'
79
+ })
80
+ })
81
+ suite.add('fast-uri: serialize IPv6', function () {
82
+ fasturi.serialize({ host: '2606:2800:220:1:248:1893:25c8:1946' })
83
+ })
84
+ suite.add('urijs: serialize IPv6', function () {
85
+ urijs.serialize({ host: '2606:2800:220:1:248:1893:25c8:1946' })
86
+ })
87
+ suite.add('fast-uri: serialize ws', function () {
88
+ fasturi.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true })
89
+ })
90
+ suite.add('urijs: serialize ws', function () {
91
+ urijs.serialize({ scheme: 'ws', host: 'example.com', resourceName: '/foo?bar', secure: true })
92
+ })
93
+ suite.add('fast-uri: resolve', function () {
94
+ fasturi.resolve(base, '../../../g')
95
+ })
96
+ suite.add('urijs: resolve', function () {
97
+ urijs.resolve(base, '../../../g')
98
+ })
99
+ suite.on('cycle', cycle)
100
+
101
+ suite.run()
102
+
103
+ function cycle (e) {
104
+ console.log(e.target.toString())
105
+ }