Skip to content

Commit 402d6ba

Browse files
committed
Move URLs to HTTPS
1 parent 4b4e8a8 commit 402d6ba

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
],
1515
"repository": "syntax-tree/mdast-util-definitions",
1616
"bugs": "https://github.com/syntax-tree/mdast-util-definitions/issues",
17-
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
17+
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
1818
"contributors": [
19-
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)"
19+
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
2020
],
2121
"files": [
2222
"index.js"

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ npm install mdast-util-definitions
1717
var remark = require('remark')
1818
var definitions = require('mdast-util-definitions')
1919

20-
var ast = remark().parse('[example]: http://example.com "Example"')
20+
var ast = remark().parse('[example]: https://example.com "Example"')
2121

2222
var definition = definitions(ast)
2323

@@ -82,7 +82,7 @@ repository, organisation, or community you agree to abide by its terms.
8282

8383
[license]: license
8484

85-
[author]: http://wooorm.com
85+
[author]: https://wooorm.com
8686

8787
[npm]: https://docs.npmjs.com/cli/install
8888

test.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ test('mdast-util-definitions', function(t) {
1616
'should fail without node'
1717
)
1818

19-
tree = remark().parse('[example]: http://example.com "Example"')
19+
tree = remark().parse('[example]: https://example.com "Example"')
2020
getDefinition = definitions(tree)
2121

2222
t.deepEqual(
2323
getDefinition('example'),
2424
{
2525
type: 'definition',
2626
identifier: 'example',
27-
url: 'http://example.com',
27+
url: 'https://example.com',
2828
title: 'Example',
2929
position: {
3030
start: {column: 1, line: 1, offset: 0},
31-
end: {column: 40, line: 1, offset: 39},
31+
end: {column: 41, line: 1, offset: 40},
3232
indent: []
3333
}
3434
},
@@ -37,19 +37,19 @@ test('mdast-util-definitions', function(t) {
3737

3838
t.equal(getDefinition('foo'), null, 'should return null when not found')
3939

40-
tree = remark().parse('[__proto__]: http://proto.com "Proto"')
40+
tree = remark().parse('[__proto__]: https://proto.com "Proto"')
4141
getDefinition = definitions(tree)
4242

4343
t.deepEqual(
4444
getDefinition('__proto__'),
4545
{
4646
type: 'definition',
4747
identifier: '__proto__',
48-
url: 'http://proto.com',
48+
url: 'https://proto.com',
4949
title: 'Proto',
5050
position: {
5151
start: {column: 1, line: 1, offset: 0},
52-
end: {column: 38, line: 1, offset: 37},
52+
end: {column: 39, line: 1, offset: 38},
5353
indent: []
5454
}
5555
},
@@ -62,17 +62,19 @@ test('mdast-util-definitions', function(t) {
6262
'should work on weird identifiers when not found'
6363
)
6464

65-
tree = remark().parse('[example]: http://one.com\n[example]: http://two.com')
65+
tree = remark().parse(
66+
'[example]: https://one.com\n[example]: https://two.com'
67+
)
6668

6769
t.deepEqual(
6870
definitions(tree)('example').url,
69-
'http://two.com',
71+
'https://two.com',
7072
'should prefer the last of duplicate definitions by default'
7173
)
7274

7375
t.deepEqual(
7476
definitions(tree, {commonmark: true})('example').url,
75-
'http://one.com',
77+
'https://one.com',
7678
'should prefer the first of duplicate definitions in commonmark mode'
7779
)
7880

0 commit comments

Comments
 (0)