cdk-common 2.0.1065 → 2.0.1067

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/.jsii CHANGED
@@ -11700,6 +11700,6 @@
11700
11700
  "symbolId": "src/main:LambdaArmFunctionProps"
11701
11701
  }
11702
11702
  },
11703
- "version": "2.0.1065",
11704
- "fingerprint": "O+Z2N+nLzSz+7Qmg16Z7EOZILgBkrdAijFyBLq5WyHY="
11703
+ "version": "2.0.1067",
11704
+ "fingerprint": "6FjZdatoCt/tb+shHCZgvNOaXs74Jk0I7Uuu845QpmI="
11705
11705
  }
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.1065" };
44
+ LambdaArmFunction[_a] = { fqn: "cdk-common.LambdaArmFunction", version: "2.0.1067" };
45
45
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9tYWluLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsbUNBQW1DO0FBQ25DLGlEQUFpRDtBQUNqRCwyQ0FBdUM7QUFLdkMsTUFBYSxpQkFBa0IsU0FBUSxzQkFBUztJQUU5QyxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLEtBQTRCO1FBQ3BFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFFakIsSUFBSSxLQUFLLENBQUMsT0FBTyxLQUFLLE1BQU0sQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLENBQUM7WUFDakQsR0FBRyxDQUFDLFdBQVcsQ0FBQyxFQUFF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RoaXMsICdMYW1iZGFGdW5jdGlvbicsIHsgYXJjaGl0ZWN0dXJlOiBsYW1iZGEuQXJjaGl0ZWN0dXJlLkFSTV82NCwgLi4ucHJvcHMgfSk7XG4gIH1cbn0iXX0=
@@ -16,8 +16,43 @@ on:
16
16
  - '*.md'
17
17
 
18
18
  jobs:
19
+ test-regression-check-node10:
20
+ name: Test compatibility with Node.js 10
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ with:
25
+ persist-credentials: false
26
+
27
+ - uses: actions/setup-node@v4
28
+ with:
29
+ node-version: '10'
30
+ cache: 'npm'
31
+ cache-dependency-path: package.json
32
+ check-latest: true
33
+
34
+ - name: Install
35
+ run: |
36
+ npm install --ignore-scripts
37
+
38
+ - name: Copy project as fast-uri to node_node_modules
39
+ run: |
40
+ rm -rf ./node_modules/fast-uri/lib &&
41
+ rm -rf ./node_modules/fast-uri/index.js &&
42
+ cp -r ./lib ./node_modules/fast-uri/lib &&
43
+ cp ./index.js ./node_modules/fast-uri/index.js
44
+
45
+ - name: Run tests
46
+ run: |
47
+ npm run test:unit
48
+ env:
49
+ NODE_OPTIONS: no-network-family-autoselection
50
+
19
51
  test:
20
- uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5.0.0
52
+ needs:
53
+ - test-regression-check-node10
54
+ uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5
21
55
  with:
22
56
  license-check: true
57
+ lint: true
23
58
  node-versions: '["16", "18", "20", "22"]'
@@ -17,4 +17,4 @@ on:
17
17
 
18
18
  jobs:
19
19
  test:
20
- uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v5.0.0
20
+ uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v5
@@ -2,12 +2,13 @@
2
2
 
3
3
  <div align="center">
4
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/)
5
+ [![NPM version](https://img.shields.io/npm/v/fast-uri.svg?style=flat)](https://www.npmjs.com/package/fast-uri)
6
+ [![CI](https://github.com/fastify/fast-uri/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/fast-uri/actions/workflows/ci.yml)
7
+ [![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)
7
8
 
8
9
  </div>
9
10
 
10
- Dependency free RFC 3986 URI toolbox.
11
+ Dependency-free RFC 3986 URI toolbox.
11
12
 
12
13
  ## Usage
13
14
 
@@ -40,13 +41,13 @@ const uri = require('fast-uri')
40
41
  uri.parse('uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body')
41
42
  // Output
42
43
  {
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"
44
+ scheme: "uri",
45
+ userinfo: "user:pass",
46
+ host: "example.com",
47
+ port: 123,
48
+ path: "/one/two.three",
49
+ query: "q1=a1&q2=a2",
50
+ fragment: "body"
50
51
  }
51
52
  ```
52
53
 
@@ -54,7 +55,7 @@ uri.parse('uri://user:pass@example.com:123/one/two.three?q1=a1&q2=a2#body')
54
55
 
55
56
  ```js
56
57
  const uri = require('fast-uri')
57
- uri.serialize({scheme : "http", host : "example.com", fragment : "footer"})
58
+ uri.serialize({scheme: "http", host: "example.com", fragment: "footer"})
58
59
  // Output
59
60
  "http://example.com/#footer"
60
61
 
@@ -64,7 +65,7 @@ uri.serialize({scheme : "http", host : "example.com", fragment : "footer"})
64
65
 
65
66
  ```js
66
67
  const uri = require('fast-uri')
67
- uri.resolve("uri://a/b/c/d?q", "../../g")
68
+ uri.resolve("uri://a/b/c/d?q", "../../g")
68
69
  // Output
69
70
  "uri://a/g"
70
71
  ```
@@ -80,7 +81,7 @@ true
80
81
 
81
82
  ## Scheme supports
82
83
 
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
+ 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
 
85
86
  * http \[[RFC 2616](http://www.ietf.org/rfc/rfc2616.txt)\]
86
87
  * https \[[RFC 2818](http://www.ietf.org/rfc/rfc2818.txt)\]
@@ -123,3 +124,7 @@ urijs: resolve x 225,759 ops/sec ±0.37% (95 runs sampled)
123
124
  - [ ] Support MailTo
124
125
  - [ ] Be 100% iso compatible with uri-js
125
126
  - [ ] Add browser test stack
127
+
128
+ ## License
129
+
130
+ Licensed under [BSD-3-Clause](./LICENSE).
@@ -0,0 +1,6 @@
1
+ 'use strict'
2
+
3
+ module.exports = require('neostandard')({
4
+ ignores: require('neostandard').resolveIgnoresFromGitignore(),
5
+ ts: true
6
+ })
@@ -138,7 +138,7 @@ function serialize (cmpts, opts) {
138
138
  uriTokens.push(components.scheme, ':')
139
139
  }
140
140
 
141
- const authority = recomposeAuthority(components, options)
141
+ const authority = recomposeAuthority(components)
142
142
  if (authority !== undefined) {
143
143
  if (options.reference !== 'suffix') {
144
144
  uriTokens.push('//')
@@ -174,7 +174,7 @@ function serialize (cmpts, opts) {
174
174
  return uriTokens.join('')
175
175
  }
176
176
 
177
- const hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)))
177
+ const hexLookUp = Array.from({ length: 127 }, (_v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)))
178
178
 
179
179
  function nonSimpleDomain (value) {
180
180
  let code = 0
@@ -223,7 +223,7 @@ function parse (uri, opts) {
223
223
  if (parsed.host) {
224
224
  const ipv4result = normalizeIPv4(parsed.host)
225
225
  if (ipv4result.isIPV4 === false) {
226
- const ipv6result = normalizeIPv6(ipv4result.host, { isIPV4: false })
226
+ const ipv6result = normalizeIPv6(ipv4result.host)
227
227
  parsed.host = ipv6result.host.toLowerCase()
228
228
  isIP = ipv6result.isIPV6
229
229
  } else {
@@ -270,10 +270,10 @@ function parse (uri, opts) {
270
270
  if (gotEncoding && parsed.host !== undefined) {
271
271
  parsed.host = unescape(parsed.host)
272
272
  }
273
- if (parsed.path !== undefined && parsed.path.length) {
273
+ if (parsed.path && parsed.path.length) {
274
274
  parsed.path = escape(unescape(parsed.path))
275
275
  }
276
- if (parsed.fragment !== undefined && parsed.fragment.length) {
276
+ if (parsed.fragment && parsed.fragment.length) {
277
277
  parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))
278
278
  }
279
279
  }
@@ -2,9 +2,11 @@
2
2
 
3
3
  const { HEX } = require('./scopedChars')
4
4
 
5
+ const IPV4_REG = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u
6
+
5
7
  function normalizeIPv4 (host) {
6
8
  if (findToken(host, '.') < 3) { return { host, isIPV4: false } }
7
- const matches = host.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u) || []
9
+ const matches = host.match(IPV4_REG) || []
8
10
  const [address] = matches
9
11
  if (address) {
10
12
  return { host: stripLeadingZeros(address, '.'), isIPV4: true }
@@ -96,7 +98,7 @@ function getIPV6 (input) {
96
98
  return output
97
99
  }
98
100
 
99
- function normalizeIPv6 (host, opts = {}) {
101
+ function normalizeIPv6 (host) {
100
102
  if (findToken(host, ':') < 2) { return { host, isIPV6: false } }
101
103
  const ipv6 = getIPV6(host)
102
104
 
@@ -199,7 +201,7 @@ function normalizeComponentEncoding (components, esc) {
199
201
  return components
200
202
  }
201
203
 
202
- function recomposeAuthority (components, options) {
204
+ function recomposeAuthority (components) {
203
205
  const uriTokens = []
204
206
 
205
207
  if (components.userinfo !== undefined) {
@@ -214,7 +216,7 @@ function recomposeAuthority (components, options) {
214
216
  if (ipV4res.isIPV4) {
215
217
  host = ipV4res.host
216
218
  } else {
217
- const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false })
219
+ const ipV6res = normalizeIPv6(ipV4res.host)
218
220
  if (ipV6res.isIPV6 === true) {
219
221
  host = `[${ipV6res.escapedHost}]`
220
222
  } else {
@@ -1,12 +1,32 @@
1
1
  {
2
2
  "name": "fast-uri",
3
- "description": "Dependency free RFC 3986 URI toolbox",
4
- "version": "3.0.3",
3
+ "description": "Dependency-free RFC 3986 URI toolbox",
4
+ "version": "3.0.5",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
7
7
  "types": "types/index.d.ts",
8
8
  "license": "BSD-3-Clause",
9
9
  "author": "Vincent Le Goff <vince.legoff@gmail.com> (https://github.com/zekth)",
10
+ "contributors": [
11
+ {
12
+ "name": "Matteo Collina",
13
+ "email": "hello@matteocollina.com"
14
+ },
15
+ {
16
+ "name": "Gürgün Dayıoğlu",
17
+ "email": "hey@gurgun.day",
18
+ "url": "https://heyhey.to/G"
19
+ },
20
+ {
21
+ "name": "Aras Abbasi",
22
+ "email": "aras.abbasi@gmail.com"
23
+ },
24
+ {
25
+ "name": "Frazer Smith",
26
+ "email": "frazer.dev@icloud.com",
27
+ "url": "https://github.com/fdawgs"
28
+ }
29
+ ],
10
30
  "repository": {
11
31
  "type": "git",
12
32
  "url": "git+https://github.com/fastify/fast-uri.git"
@@ -15,13 +35,22 @@
15
35
  "url": "https://github.com/fastify/fast-uri/issues"
16
36
  },
17
37
  "homepage": "https://github.com/fastify/fast-uri",
38
+ "funding": [
39
+ {
40
+ "type": "github",
41
+ "url": "https://github.com/sponsors/fastify"
42
+ },
43
+ {
44
+ "type": "opencollective",
45
+ "url": "https://opencollective.com/fastify"
46
+ }
47
+ ],
18
48
  "scripts": {
19
49
  "bench": "node benchmark.js",
20
- "lint": "standard | snazzy",
21
- "lint:fix": "standard --fix",
22
- "test": "npm run lint && npm run test:unit && npm run test:typescript",
23
- "test:ci": "npm run lint && npm run test:unit -- --coverage-report=lcovonly && npm run test:typescript",
24
- "test:unit": "npx tape test/**/*.js",
50
+ "lint": "eslint",
51
+ "lint:fix": "eslint --fix",
52
+ "test": "npm run test:unit && npm run test:typescript",
53
+ "test:unit": "tape test/**/*.js",
25
54
  "test:unit:dev": "npm run test:unit -- --coverage-report=html",
26
55
  "test:typescript": "tsd"
27
56
  },
@@ -30,8 +59,8 @@
30
59
  "ajv": "^8.16.0",
31
60
  "benchmark": "^2.1.4",
32
61
  "coveralls": "^3.1.1",
33
- "snazzy": "^9.0.0",
34
- "standard": "^17.1.0",
62
+ "eslint": "^9.17.0",
63
+ "neostandard": "^0.12.0",
35
64
  "tape": "^5.8.1",
36
65
  "tsd": "^0.31.0",
37
66
  "uri-js": "^4.4.1"
@@ -30,21 +30,21 @@ declare namespace fastUri {
30
30
  */
31
31
  export type URIComponents = URIComponent
32
32
 
33
- export function normalize(uri: string, opts?: Options): string;
34
- export function normalize(uri: URIComponent, opts?: Options): URIComponent;
35
- export function normalize(uri: any, opts?: Options): any;
33
+ export function normalize (uri: string, opts?: Options): string
34
+ export function normalize (uri: URIComponent, opts?: Options): URIComponent
35
+ export function normalize (uri: any, opts?: Options): any
36
36
 
37
- export function resolve(baseURI: string, relativeURI: string, options?: Options): string
37
+ export function resolve (baseURI: string, relativeURI: string, options?: Options): string
38
38
 
39
- export function resolveComponent(base: URIComponent, relative: URIComponent, options?: Options, skipNormalization?: boolean): URIComponent
39
+ export function resolveComponent (base: URIComponent, relative: URIComponent, options?: Options, skipNormalization?: boolean): URIComponent
40
40
 
41
- export function parse(uri: string, opts?: Options): URIComponent;
41
+ export function parse (uri: string, opts?: Options): URIComponent
42
42
 
43
- export function serialize(component: URIComponent, opts?: Options): string;
43
+ export function serialize (component: URIComponent, opts?: Options): string
44
44
 
45
- export function equal(uriA: string, uriB: string): boolean;
45
+ export function equal (uriA: string, uriB: string): boolean
46
46
 
47
- export function resolve(base: string, path: string): string;
47
+ export function resolve (base: string, path: string): string
48
48
 
49
49
  export const fastUri: FastUri
50
50
  export { fastUri as default }
@@ -1,14 +1,14 @@
1
- import uri, { URIComponents, URIComponent, Options, options } from "..";
2
- import { expectDeprecated, expectType } from "tsd";
1
+ import uri, { URIComponents, URIComponent, Options, options } from '..'
2
+ import { expectDeprecated, expectType } from 'tsd'
3
3
 
4
- const parsed = uri.parse("foo");
5
- expectType<URIComponents>(parsed);
6
- const parsed2 = uri.parse("foo", {
7
- domainHost: true,
8
- scheme: 'https',
9
- unicodeSupport: false
4
+ const parsed = uri.parse('foo')
5
+ expectType<URIComponents>(parsed)
6
+ const parsed2 = uri.parse('foo', {
7
+ domainHost: true,
8
+ scheme: 'https',
9
+ unicodeSupport: false
10
10
  })
11
- expectType<URIComponents>(parsed2);
11
+ expectType<URIComponents>(parsed2)
12
12
 
13
13
  expectType<URIComponent>({} as URIComponents)
14
14
  expectDeprecated({} as URIComponents)
package/package.json CHANGED
@@ -88,7 +88,7 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "version": "2.0.1065",
91
+ "version": "2.0.1067",
92
92
  "jest": {
93
93
  "coverageProvider": "v8",
94
94
  "testMatch": [