Skip to content

Commit f9cf9fa

Browse files
refactor: move parse-link-header package to @stdlib/_tools/github/
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 23f2ce9 commit f9cf9fa

12 files changed

Lines changed: 18 additions & 211 deletions

File tree

lib/node_modules/@stdlib/_tools/github/get/lib/resolve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var logger = require( 'debug' );
2424
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
25-
var parseHeader = require( '@stdlib/utils/parse-link-header' );
25+
var parseHeader = require( '@stdlib/_tools/github/parse-link-header' );
2626
var request = require( './request.js' );
2727
var flatten = require( './flatten.js' );
2828
var getOptions = require( './options.js' );

lib/node_modules/@stdlib/utils/parse-link-header/README.md renamed to lib/node_modules/@stdlib/_tools/github/parse-link-header/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
1919
-->
2020

21-
# parseLinkHeader
21+
# Parse Link Header
2222

2323
> Parse a Link header.
2424
@@ -27,7 +27,7 @@ limitations under the License.
2727
## Usage
2828

2929
```javascript
30-
var parseLinkHeader = require( '@stdlib/utils/parse-link-header' );
30+
var parseLinkHeader = require( '@stdlib/_tools/github/parse-link-header' );
3131
```
3232

3333
#### parseLinkHeader( header )
@@ -76,7 +76,7 @@ var out = parseLinkHeader( 'beep; boop' );
7676
<!-- eslint no-undef: "error" -->
7777

7878
```javascript
79-
var parseLinkHeader = require( '@stdlib/utils/parse-link-header' );
79+
var parseLinkHeader = require( '@stdlib/_tools/github/parse-link-header' );
8080

8181
var out = parseLinkHeader( '<https://api.github.com/user/repos?page=2&per_page=1>; rel="next", <https://api.github.com/user/repos?page=4&per_page=1>; rel="last"' );
8282
// returns { 'next': {...}, 'last': {...} }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
Usage: parseLinkHeader( header )
3+
4+
Parses a Link header and returns a mapping of link relations to parsed
5+
link values.

lib/node_modules/@stdlib/utils/parse-link-header/examples/index.js renamed to lib/node_modules/@stdlib/_tools/github/parse-link-header/examples/index.js

File renamed without changes.

lib/node_modules/@stdlib/utils/parse-link-header/lib/index.js renamed to lib/node_modules/@stdlib/_tools/github/parse-link-header/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
/**
2222
* Parse a Link header.
2323
*
24-
* @module @stdlib/utils/parse-link-header
24+
* @module @stdlib/_tools/github/parse-link-header
2525
*
2626
* @example
27-
* var parseLinkHeader = require( '@stdlib/utils/parse-link-header' );
27+
* var parseLinkHeader = require( '@stdlib/_tools/github/parse-link-header' );
2828
*
2929
* var out = parseLinkHeader( '<https://api.github.com/user/repos?page=2>; rel="next"' );
3030
* // returns { 'next': { 'url': 'https://api.github.com/user/repos?page=2', 'page': '2', 'rel': 'next' } }

lib/node_modules/@stdlib/utils/parse-link-header/lib/main.js renamed to lib/node_modules/@stdlib/_tools/github/parse-link-header/lib/main.js

File renamed without changes.

lib/node_modules/@stdlib/utils/parse-link-header/package.json renamed to lib/node_modules/@stdlib/_tools/github/parse-link-header/package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@stdlib/utils/parse-link-header",
2+
"name": "@stdlib/_tools/github/parse-link-header",
33
"version": "0.0.0",
44
"description": "Parse a Link header.",
55
"license": "Apache-2.0",
@@ -15,13 +15,11 @@
1515
],
1616
"main": "./lib",
1717
"directories": {
18-
"benchmark": "./benchmark",
1918
"doc": "./docs",
2019
"example": "./examples",
2120
"lib": "./lib",
2221
"test": "./test"
2322
},
24-
"types": "./docs/types",
2523
"scripts": {},
2624
"homepage": "https://github.com/stdlib-js/stdlib",
2725
"repository": {
@@ -50,18 +48,16 @@
5048
],
5149
"keywords": [
5250
"stdlib",
53-
"stdutils",
54-
"stdutil",
55-
"utilities",
56-
"utility",
57-
"utils",
58-
"util",
51+
"tools",
52+
"tool",
53+
"github",
54+
"git",
55+
"gh",
5956
"parse",
6057
"link",
6158
"header",
6259
"headers",
6360
"http",
64-
"pagination",
65-
"github"
61+
"pagination"
6662
]
6763
}

lib/node_modules/@stdlib/utils/parse-link-header/test/test.js renamed to lib/node_modules/@stdlib/_tools/github/parse-link-header/test/test.js

File renamed without changes.

lib/node_modules/@stdlib/utils/parse-link-header/benchmark/benchmark.js

Lines changed: 0 additions & 51 deletions
This file was deleted.

lib/node_modules/@stdlib/utils/parse-link-header/docs/repl.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)