cdk-common 2.0.900 → 2.0.901

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 (96) hide show
  1. package/.jsii +2 -2
  2. package/lib/main.js +1 -1
  3. package/node_modules/fast-uri/.gitattributes +2 -0
  4. package/node_modules/fast-uri/.github/.stale.yml +21 -0
  5. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  6. package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  7. package/node_modules/fast-uri/.github/workflows/ci.yml +23 -0
  8. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  9. package/node_modules/fast-uri/.taprc +3 -0
  10. package/node_modules/fast-uri/LICENSE +30 -0
  11. package/node_modules/fast-uri/README.md +125 -0
  12. package/node_modules/fast-uri/benchmark.js +105 -0
  13. package/node_modules/fast-uri/index.js +309 -0
  14. package/node_modules/fast-uri/lib/schemes.js +188 -0
  15. package/node_modules/fast-uri/lib/scopedChars.js +30 -0
  16. package/node_modules/fast-uri/lib/utils.js +242 -0
  17. package/node_modules/fast-uri/package.json +39 -0
  18. package/node_modules/fast-uri/test/.gitkeep +0 -0
  19. package/node_modules/fast-uri/test/ajv.test.js +39 -0
  20. package/node_modules/fast-uri/test/compatibility.test.js +130 -0
  21. package/node_modules/fast-uri/test/equal.test.js +104 -0
  22. package/node_modules/fast-uri/test/parse.test.js +319 -0
  23. package/node_modules/fast-uri/test/resolve.test.js +76 -0
  24. package/node_modules/fast-uri/test/serialize.test.js +144 -0
  25. package/node_modules/fast-uri/test/uri-js.test.js +940 -0
  26. package/node_modules/fast-uri/test/util.test.js +24 -0
  27. package/node_modules/fast-uri/types/index.d.ts +53 -0
  28. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  29. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js +1 -0
  30. package/node_modules/table/node_modules/ajv/dist/compile/codegen/code.js.map +1 -1
  31. package/node_modules/table/node_modules/ajv/dist/compile/index.js.map +1 -1
  32. package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +2 -2
  33. package/node_modules/table/node_modules/ajv/dist/compile/resolve.js.map +1 -1
  34. package/node_modules/table/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
  35. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js +1 -1
  36. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  37. package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +3 -3
  38. package/node_modules/table/node_modules/ajv/dist/types/json-schema.d.ts +10 -10
  39. package/node_modules/table/node_modules/ajv/lib/compile/codegen/code.ts +1 -0
  40. package/node_modules/table/node_modules/ajv/lib/compile/index.ts +2 -2
  41. package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +2 -2
  42. package/node_modules/table/node_modules/ajv/lib/runtime/uri.ts +1 -1
  43. package/node_modules/table/node_modules/ajv/lib/types/index.ts +3 -3
  44. package/node_modules/table/node_modules/ajv/lib/types/json-schema.ts +10 -10
  45. package/node_modules/table/node_modules/ajv/package.json +5 -5
  46. package/package.json +1 -1
  47. package/node_modules/punycode/LICENSE-MIT.txt +0 -20
  48. package/node_modules/punycode/README.md +0 -148
  49. package/node_modules/punycode/package.json +0 -58
  50. package/node_modules/punycode/punycode.es6.js +0 -444
  51. package/node_modules/punycode/punycode.js +0 -443
  52. package/node_modules/uri-js/LICENSE +0 -11
  53. package/node_modules/uri-js/README.md +0 -203
  54. package/node_modules/uri-js/dist/es5/uri.all.d.ts +0 -59
  55. package/node_modules/uri-js/dist/es5/uri.all.js +0 -1443
  56. package/node_modules/uri-js/dist/es5/uri.all.js.map +0 -1
  57. package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +0 -59
  58. package/node_modules/uri-js/dist/es5/uri.all.min.js +0 -3
  59. package/node_modules/uri-js/dist/es5/uri.all.min.js.map +0 -1
  60. package/node_modules/uri-js/dist/esnext/index.d.ts +0 -1
  61. package/node_modules/uri-js/dist/esnext/index.js +0 -17
  62. package/node_modules/uri-js/dist/esnext/index.js.map +0 -1
  63. package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +0 -3
  64. package/node_modules/uri-js/dist/esnext/regexps-iri.js +0 -3
  65. package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -1
  66. package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +0 -4
  67. package/node_modules/uri-js/dist/esnext/regexps-uri.js +0 -42
  68. package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -1
  69. package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +0 -3
  70. package/node_modules/uri-js/dist/esnext/schemes/http.js +0 -28
  71. package/node_modules/uri-js/dist/esnext/schemes/http.js.map +0 -1
  72. package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +0 -3
  73. package/node_modules/uri-js/dist/esnext/schemes/https.js +0 -9
  74. package/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -1
  75. package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +0 -12
  76. package/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -148
  77. package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -1
  78. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +0 -7
  79. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +0 -23
  80. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -1
  81. package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +0 -10
  82. package/node_modules/uri-js/dist/esnext/schemes/urn.js +0 -49
  83. package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -1
  84. package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +0 -7
  85. package/node_modules/uri-js/dist/esnext/schemes/ws.js +0 -41
  86. package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +0 -1
  87. package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +0 -3
  88. package/node_modules/uri-js/dist/esnext/schemes/wss.js +0 -9
  89. package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +0 -1
  90. package/node_modules/uri-js/dist/esnext/uri.d.ts +0 -59
  91. package/node_modules/uri-js/dist/esnext/uri.js +0 -480
  92. package/node_modules/uri-js/dist/esnext/uri.js.map +0 -1
  93. package/node_modules/uri-js/dist/esnext/util.d.ts +0 -6
  94. package/node_modules/uri-js/dist/esnext/util.js +0 -36
  95. package/node_modules/uri-js/dist/esnext/util.js.map +0 -1
  96. package/node_modules/uri-js/package.json +0 -77
package/.jsii CHANGED
@@ -11118,6 +11118,6 @@
11118
11118
  "symbolId": "src/main:LambdaArmFunctionProps"
11119
11119
  }
11120
11120
  },
11121
- "version": "2.0.900",
11122
- "fingerprint": "USuhA3Ut7GVjPzBpNppA/qApyGApYkUTBH+2K/ZkeGo="
11121
+ "version": "2.0.901",
11122
+ "fingerprint": "I8JcNEQ1SfT6vac05OdNlM78F5NW1/Zqj9Lf9o8lcho="
11123
11123
  }
package/lib/main.js CHANGED
@@ -41,5 +41,5 @@ class LambdaArmFunction extends constructs_1.Construct {
41
41
  }
42
42
  exports.LambdaArmFunction = LambdaArmFunction;
43
43
  _a = JSII_RTTI_SYMBOL_1;
44
- LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.900" };
44
+ LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.901" };
45
45
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ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24uY29tL2xhbWJkYS9sYXRlc3QvZGcvZm91bmRhdGlvbi1hcmNoLmh0bWw/aWNtcGlkPWRvY3NfbGFtYmRhX3Jzc2ApO1xuICAgIH1cblxuICAgIHRoaXMubGFtYmRhRnVuY3Rpb24gPSBuZXcgbGFtYmRhLkZ1bmN0aW9uKHRoaXMsICdMYW1iZGFGdW5jdGlvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
@@ -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,23 @@
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@v4.2.0
21
+ with:
22
+ license-check: true
23
+ node-versions: '["16", "18", "20"]'
@@ -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@v4.1.0
@@ -0,0 +1,3 @@
1
+ disable-coverage: true
2
+ files:
3
+ - test/**/*.test.js
@@ -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
+ }