cdk-common 2.0.862 → 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 (90) 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/crypto.d.ts +3 -3
  5. package/node_modules/@types/node/fs.d.ts +2 -2
  6. package/node_modules/@types/node/net.d.ts +1 -1
  7. package/node_modules/@types/node/package.json +2 -2
  8. package/node_modules/fast-uri/.gitattributes +2 -0
  9. package/node_modules/fast-uri/.github/.stale.yml +21 -0
  10. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  11. package/node_modules/fast-uri/.github/tests_checker.yml +8 -0
  12. package/node_modules/fast-uri/.github/workflows/ci.yml +22 -0
  13. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +20 -0
  14. package/node_modules/fast-uri/LICENSE +30 -0
  15. package/node_modules/fast-uri/README.md +125 -0
  16. package/node_modules/fast-uri/benchmark.js +105 -0
  17. package/node_modules/fast-uri/index.js +305 -0
  18. package/node_modules/fast-uri/lib/schemes.js +188 -0
  19. package/node_modules/fast-uri/lib/scopedChars.js +30 -0
  20. package/node_modules/fast-uri/lib/utils.js +236 -0
  21. package/node_modules/fast-uri/package.json +41 -0
  22. package/node_modules/fast-uri/test/.gitkeep +0 -0
  23. package/node_modules/fast-uri/test/compatibility.test.js +129 -0
  24. package/node_modules/fast-uri/test/equal.test.js +104 -0
  25. package/node_modules/fast-uri/test/parse.test.js +310 -0
  26. package/node_modules/fast-uri/test/resolve.test.js +76 -0
  27. package/node_modules/fast-uri/test/serialize.test.js +144 -0
  28. package/node_modules/fast-uri/types/index.d.ts +53 -0
  29. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  30. package/node_modules/table/node_modules/ajv/dist/compile/resolve.d.ts +1 -1
  31. package/node_modules/table/node_modules/ajv/dist/runtime/uri.d.ts +1 -1
  32. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js +1 -1
  33. package/node_modules/table/node_modules/ajv/dist/runtime/uri.js.map +1 -1
  34. package/node_modules/table/node_modules/ajv/dist/types/index.d.ts +1 -1
  35. package/node_modules/table/node_modules/ajv/lib/compile/index.ts +1 -1
  36. package/node_modules/table/node_modules/ajv/lib/compile/resolve.ts +1 -1
  37. package/node_modules/table/node_modules/ajv/lib/runtime/uri.ts +1 -1
  38. package/node_modules/table/node_modules/ajv/lib/types/index.ts +1 -1
  39. package/node_modules/table/node_modules/ajv/package.json +4 -4
  40. package/package.json +3 -3
  41. package/node_modules/punycode/LICENSE-MIT.txt +0 -20
  42. package/node_modules/punycode/README.md +0 -148
  43. package/node_modules/punycode/package.json +0 -58
  44. package/node_modules/punycode/punycode.es6.js +0 -444
  45. package/node_modules/punycode/punycode.js +0 -443
  46. package/node_modules/uri-js/LICENSE +0 -11
  47. package/node_modules/uri-js/README.md +0 -203
  48. package/node_modules/uri-js/dist/es5/uri.all.d.ts +0 -59
  49. package/node_modules/uri-js/dist/es5/uri.all.js +0 -1443
  50. package/node_modules/uri-js/dist/es5/uri.all.js.map +0 -1
  51. package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +0 -59
  52. package/node_modules/uri-js/dist/es5/uri.all.min.js +0 -3
  53. package/node_modules/uri-js/dist/es5/uri.all.min.js.map +0 -1
  54. package/node_modules/uri-js/dist/esnext/index.d.ts +0 -1
  55. package/node_modules/uri-js/dist/esnext/index.js +0 -17
  56. package/node_modules/uri-js/dist/esnext/index.js.map +0 -1
  57. package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +0 -3
  58. package/node_modules/uri-js/dist/esnext/regexps-iri.js +0 -3
  59. package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -1
  60. package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +0 -4
  61. package/node_modules/uri-js/dist/esnext/regexps-uri.js +0 -42
  62. package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -1
  63. package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +0 -3
  64. package/node_modules/uri-js/dist/esnext/schemes/http.js +0 -28
  65. package/node_modules/uri-js/dist/esnext/schemes/http.js.map +0 -1
  66. package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +0 -3
  67. package/node_modules/uri-js/dist/esnext/schemes/https.js +0 -9
  68. package/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -1
  69. package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +0 -12
  70. package/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -148
  71. package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -1
  72. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +0 -7
  73. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +0 -23
  74. package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -1
  75. package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +0 -10
  76. package/node_modules/uri-js/dist/esnext/schemes/urn.js +0 -49
  77. package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -1
  78. package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +0 -7
  79. package/node_modules/uri-js/dist/esnext/schemes/ws.js +0 -41
  80. package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +0 -1
  81. package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +0 -3
  82. package/node_modules/uri-js/dist/esnext/schemes/wss.js +0 -9
  83. package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +0 -1
  84. package/node_modules/uri-js/dist/esnext/uri.d.ts +0 -59
  85. package/node_modules/uri-js/dist/esnext/uri.js +0 -480
  86. package/node_modules/uri-js/dist/esnext/uri.js.map +0 -1
  87. package/node_modules/uri-js/dist/esnext/util.d.ts +0 -6
  88. package/node_modules/uri-js/dist/esnext/util.js +0 -36
  89. package/node_modules/uri-js/dist/esnext/util.js.map +0 -1
  90. package/node_modules/uri-js/package.json +0 -77
package/.jsii CHANGED
@@ -3667,7 +3667,7 @@
3667
3667
  "stability": "experimental"
3668
3668
  },
3669
3669
  "homepage": "https://github.com/neilkuan/cdk-common.git",
3670
- "jsiiVersion": "5.3.36 (build 0087b04)",
3670
+ "jsiiVersion": "5.3.37 (build c365bc1)",
3671
3671
  "keywords": [
3672
3672
  "aws",
3673
3673
  "aws-cdk",
@@ -10986,6 +10986,6 @@
10986
10986
  "symbolId": "src/main:LambdaArmFunctionProps"
10987
10987
  }
10988
10988
  },
10989
- "version": "2.0.862",
10990
- "fingerprint": "qPubDO5VudmbN2VOauQAh2Mii0MIxl0hIoVEyAb/Gas="
10989
+ "version": "2.0.863",
10990
+ "fingerprint": "m7I5dA/ygNz3xBslolnQ95Wzkn3XH3RxpjHmN7teZfQ="
10991
10991
  }
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.862" };
44
+ LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.863" };
45
45
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxLQUFLLENBQUMsT0FBTyxLQUFLLE1BQU0sQ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ApO1xuICAgIH1cblxuICAgIHRoaXMubGFtYmRhRnVuY3Rpb24gPSBuZXcgbGFtYmRhLkZ1bmN0aW9uKHRoaXMsICdMYW1iZGFGdW5jdGlvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 02 Jun 2024 20:07:09 GMT
11
+ * Last updated: Mon, 03 Jun 2024 23:35:49 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -689,7 +689,7 @@ declare module "crypto" {
689
689
  authTagLength: number;
690
690
  }
691
691
  /**
692
- * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
692
+ * Creates and returns a `Cipher` object that uses the given `algorithm` and `password`.
693
693
  *
694
694
  * The `options` argument controls stream behavior and is optional except when a
695
695
  * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
@@ -978,7 +978,7 @@ declare module "crypto" {
978
978
  getAuthTag(): Buffer;
979
979
  }
980
980
  /**
981
- * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
981
+ * Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
982
982
  *
983
983
  * The `options` argument controls stream behavior and is optional except when a
984
984
  * cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the `authTagLength` option is required and specifies the length of the
@@ -2871,7 +2871,7 @@ declare module "crypto" {
2871
2871
  * });
2872
2872
  * ```
2873
2873
  *
2874
- * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
2874
+ * On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
2875
2875
  *
2876
2876
  * If this method is invoked as its `util.promisify()` ed version, it returns
2877
2877
  * a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
@@ -302,7 +302,7 @@ declare module "fs" {
302
302
  /**
303
303
  * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
304
304
  *
305
- * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read.
305
+ * A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read.
306
306
  *
307
307
  * Directory entries returned by this function are in no particular order as
308
308
  * provided by the operating system's underlying directory mechanisms.
@@ -3617,7 +3617,7 @@ declare module "fs" {
3617
3617
  /**
3618
3618
  * Tests a user's permissions for the file or directory specified by `path`.
3619
3619
  * The `mode` argument is an optional integer that specifies the accessibility
3620
- * checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
3620
+ * checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
3621
3621
  * (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
3622
3622
  * possible values of `mode`.
3623
3623
  *
@@ -564,7 +564,7 @@ declare module "net" {
564
564
  *
565
565
  * All `listen()` methods can take a `backlog` parameter to specify the maximum
566
566
  * length of the queue of pending connections. The actual length will be determined
567
- * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn`on Linux. The default value of this parameter is 511 (not 512).
567
+ * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512).
568
568
  *
569
569
  * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for
570
570
  * details).
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.14.0",
3
+ "version": "20.14.1",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -212,6 +212,6 @@
212
212
  "dependencies": {
213
213
  "undici-types": "~5.26.4"
214
214
  },
215
- "typesPublisherContentHash": "617b5661e3a7308e9f83ded9bbc7e6976f0ac4422f8b246b4dbca9a6e5f2e30a",
215
+ "typesPublisherContentHash": "455abc0b2a6d72d7977aaab5e4b453a7b36fbd90d6f0024b019fa63926420f36",
216
216
  "typeScriptVersion": "4.7"
217
217
  }
@@ -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
+ }