fast-uri 1.0.1 → 2.0.0

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.
File without changes
File without changes
File without changes
@@ -10,75 +10,6 @@ on:
10
10
  - 'docs/**'
11
11
  - '*.md'
12
12
 
13
- env:
14
- CI: true
15
- COVERALLS: 0
16
-
17
13
  jobs:
18
14
  test:
19
- runs-on: ${{ matrix.os }}
20
- strategy:
21
- matrix:
22
- # Maintenance and active LTS
23
- node-version: [10, 12, 14, 16]
24
- os: [ubuntu-latest, windows-latest, macOS-latest]
25
- name: Node ${{ matrix.node-version }}
26
-
27
- steps:
28
- - uses: actions/checkout@v2
29
-
30
- - name: Use Node.js
31
- id: setup_node
32
- uses: actions/setup-node@v2
33
- with:
34
- node-version: ${{ matrix.node-version }}
35
-
36
- - name: Install Dependencies
37
- id: install
38
- run: npm install --ignore-scripts
39
-
40
- - name: Check licenses
41
- id: license_check
42
- run: |
43
- npm run license-checker --if-present
44
-
45
- # Unit and lint tests
46
- - name: Tests
47
- id: test
48
- run: npm run test:ci
49
-
50
- - name: Coveralls Parallel
51
- id: coveralls-parallel
52
- continue-on-error: true
53
- uses: coverallsapp/github-action@master
54
- with:
55
- github-token: ${{ secrets.github_token }}
56
- parallel: true
57
- flag-name: run-${{ matrix.node-version }}-${{ matrix.os }}
58
-
59
- - name: Should Trigger coverallsapp/github-action@master
60
- id: coveralls-trigger
61
- # https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#steps-context
62
- # when continue-on-error failed, outcome is failure and conclusion is success
63
- if: steps.coveralls-parallel.conclusion == 'success' && steps.coveralls-parallel.outcome != 'success'
64
- run: |
65
- echo "::set-output name=COVERALLS_TRIGGER::failure"
66
-
67
- coverage:
68
- needs: test
69
- runs-on: ubuntu-latest
70
- if: needs.test.outputs.COVERALLS != 'failure'
71
- steps:
72
- - name: Coveralls Finished
73
- uses: coverallsapp/github-action@master
74
- with:
75
- github-token: ${{ secrets.GITHUB_TOKEN }}
76
- parallel-finished: true
77
-
78
- automerge:
79
- needs: test
80
- runs-on: ubuntu-latest
81
- steps:
82
- - uses: fastify/github-action-merge-dependabot@v3.0.2
83
- with:
84
- github-token: ${{ secrets.GITHUB_TOKEN }}
15
+ uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
@@ -16,10 +16,10 @@ jobs:
16
16
  os: [ubuntu-latest]
17
17
 
18
18
  steps:
19
- - uses: actions/checkout@v2
19
+ - uses: actions/checkout@v3
20
20
 
21
21
  - name: Use Node.js
22
- uses: actions/setup-node@v2
22
+ uses: actions/setup-node@v3.1.1
23
23
  id: setup_node
24
24
  with:
25
25
  node-version: ${{ matrix.node-version }}
@@ -45,11 +45,11 @@ jobs:
45
45
  os: [ubuntu-latest]
46
46
 
47
47
  steps:
48
- - uses: actions/checkout@v2
48
+ - uses: actions/checkout@v3
49
49
 
50
50
  - name: Use Node.js
51
51
  id: setup_node
52
- uses: actions/setup-node@v2
52
+ uses: actions/setup-node@v3.1.1
53
53
  with:
54
54
  node-version: ${{ matrix.node-version }}
55
55
 
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  <div align="center">
4
4
 
5
5
  [![CI](https://github.com/fastify/fastify/workflows/ci/badge.svg)](https://github.com/fastify/fast-uri/actions/workflows/ci.yml)
6
- [![Coverage Status](https://coveralls.io/repos/github/fastify/fast-uri/badge.svg?branch=add_coveralls)](https://coveralls.io/github/fastify/fast-uri?branch=main)
7
6
  [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)
8
7
 
9
8
  </div>
@@ -102,7 +101,7 @@ urijs: parse IPv4 x 384,705 ops/sec ±0.34% (99 runs sampled)
102
101
  WHATWG URL: parse IPv4 NOT SUPPORTED
103
102
  fast-uri: parse IPv6 x 923,519 ops/sec ±0.09% (100 runs sampled)
104
103
  urijs: parse IPv6 x 289,070 ops/sec ±0.07% (95 runs sampled)
105
- WHATWG ULR: parse IPv6 NOT SUPPORTED
104
+ WHATWG URL: parse IPv6 NOT SUPPORTED
106
105
  fast-uri: parse URN x 2,596,395 ops/sec ±0.42% (98 runs sampled)
107
106
  urijs: parse URN x 1,152,412 ops/sec ±0.09% (97 runs sampled)
108
107
  WHATWG URL: parse URN x 1,183,307 ops/sec ±0.38% (100 runs sampled)
package/benchmark.js CHANGED
File without changes
package/index.d.ts CHANGED
File without changes
package/index.js CHANGED
File without changes
package/index.test-d.ts CHANGED
File without changes
package/lib/schemes.js CHANGED
File without changes
File without changes
package/lib/utils.js CHANGED
@@ -101,7 +101,7 @@ function normalizeIPv6 (host, opts = {}) {
101
101
  newHost += '%' + ipv6.zone
102
102
  escapedHost += '%25' + ipv6.zone
103
103
  }
104
- return { host: newHost, escapedHost: escapedHost, isIPV6: true }
104
+ return { host: newHost, escapedHost, isIPV6: true }
105
105
  } else {
106
106
  return { host, isIPV6: false }
107
107
  }
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "fast-uri",
3
- "description": "Dependency free RFC 3986 URI toolbox",
4
- "version": "1.0.1",
5
- "main": "index.js",
6
- "type": "commonjs",
7
- "types": "index.d.ts",
8
- "license": "MIT",
9
- "author": "Vincent Le Goff <vince.legoff@gmail.com> (https://github.com/zekth)",
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/fastify/fast-uri"
13
- },
14
- "bugs": {
15
- "url": "https://github.com/fastify/fast-uri/issues"
16
- },
17
- "homepage":"https://github.com/fastify/fast-uri",
18
- "scripts": {
19
- "bench": "node benchmark.js",
20
- "lint:fix": "standard --fix",
21
- "test:lint": "standard | snazzy",
22
- "test:typescript": "tsd",
23
- "test:unit": "tap -J test/*.test.js",
24
- "test:unit:dev": "tap -J test/*.test.js --coverage-report=html",
25
- "test": "npm run test:lint && npm run test:unit && npm run test:typescript",
26
- "test:ci": "npm run test:lint && npm run test:unit -- --cov --coverage-report=lcovonly && npm run test:typescript"
27
- },
28
- "devDependencies": {
29
- "benchmark": "^2.1.4",
30
- "coveralls": "^3.1.1",
31
- "snazzy": "^9.0.0",
32
- "standard": "^16.0.4",
33
- "tap": "^15.0.10",
34
- "tsd": "^0.19.0",
35
- "typescript": "^4.4.4",
36
- "uri-js": "^4.4.1"
37
- },
38
- "dependencies": {},
39
- "tap": {
40
- "check-coverage": false
41
- }
42
- }
1
+ {
2
+ "name": "fast-uri",
3
+ "description": "Dependency free RFC 3986 URI toolbox",
4
+ "version": "2.0.0",
5
+ "main": "index.js",
6
+ "type": "commonjs",
7
+ "types": "index.d.ts",
8
+ "license": "MIT",
9
+ "author": "Vincent Le Goff <vince.legoff@gmail.com> (https://github.com/zekth)",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/fastify/fast-uri"
13
+ },
14
+ "bugs": {
15
+ "url": "https://github.com/fastify/fast-uri/issues"
16
+ },
17
+ "homepage":"https://github.com/fastify/fast-uri",
18
+ "scripts": {
19
+ "bench": "node benchmark.js",
20
+ "lint:fix": "standard --fix",
21
+ "test:lint": "standard | snazzy",
22
+ "test:typescript": "tsd",
23
+ "test:unit": "tap -J test/*.test.js",
24
+ "test:unit:dev": "tap -J test/*.test.js --coverage-report=html",
25
+ "test": "npm run test:lint && npm run test:unit && npm run test:typescript",
26
+ "test:ci": "npm run test:lint && npm run test:unit -- --cov --coverage-report=lcovonly && npm run test:typescript"
27
+ },
28
+ "devDependencies": {
29
+ "benchmark": "^2.1.4",
30
+ "coveralls": "^3.1.1",
31
+ "snazzy": "^9.0.0",
32
+ "standard": "^17.0.0",
33
+ "tap": "^16.0.0",
34
+ "tsd": "^0.20.0",
35
+ "typescript": "^4.4.4",
36
+ "uri-js": "^4.4.1"
37
+ },
38
+ "dependencies": {},
39
+ "tap": {
40
+ "check-coverage": false
41
+ }
42
+ }
package/test/.gitkeep CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/types/.gitkeep CHANGED
File without changes