Skip to content

Commit aac3647

Browse files
author
Ben Taylor
authored
Merge pull request #17 from bentaylor2/http-https
Http https
2 parents 929c80c + 7d82ee9 commit aac3647

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ will add the following to your markup (will be minified):
4141
```html
4242
<script type="application/ld+json">
4343
{
44-
"@context":"http://schema.org/",
44+
"@context":"https://schema.org/",
4545
"@type":"Product",
4646
"name":"Product Name",
4747
"aggregateRating": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-structured-data",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"description": "Declarative JSON-LD Structured Data for ReactJS Apps",
55
"author": "Ben Taylor <benlt105@gmail.com>",
66
"private": false,

src/core/JSONLD.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const JSONLD = props => {
88
const { children, type, ...schema } = props.children.props;
99
const firstChild = new ChildClass(props.children.props).getJSON(true, schema);
1010
json = ChildClass.name === 'JSONLDNodeCollection'
11-
? Object.assign({'@context': 'http://schema.org/'}, {[type]: firstChild})
12-
: Object.assign({'@context': 'http://schema.org/'}, firstChild)
11+
? Object.assign({'@context': 'https://schema.org/'}, {[type]: firstChild})
12+
: Object.assign({'@context': 'https://schema.org/'}, firstChild)
1313
}
1414

1515
return (props.dangerouslyExposeHtml

src/example/containers/TextExamples.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const product = `
99
export const productOutput = `
1010
<script type="application/ld+json">
1111
{
12-
"@context":"http://schema.org/",
12+
"@context":"https://schema.org/",
1313
"@type":"Product",
1414
"name":"Product Name",
1515
"id":"product-x"
@@ -34,7 +34,7 @@ export const aggregateRating = `
3434
export const aggregateRatingOutput = `
3535
<script type="application/ld+json">
3636
{
37-
"@context":"http://schema.org/",
37+
"@context":"https://schema.org/",
3838
"@type":"AggregateRating",
3939
"ratingValue":4.3,
4040
"reviewCount":197,
@@ -82,7 +82,7 @@ export const reviews = `
8282
export const reviewsOutput = `
8383
<script type="application/ld+json">
8484
{
85-
"@context": "http://schema.org/",
85+
"@context": "https://schema.org/",
8686
"@graph": [{
8787
"@type": "Review",
8888
"name": "It's awesome",

0 commit comments

Comments
 (0)